ng-alain / ng-alain

NG-ZORRO admin panel front-end framework (surge mirror https://ng-alain-doc.surge.sh)
https://ng-alain.com
MIT License
4.54k stars 1.16k forks source link

st statistical seems only support data on current page #2530

Open hpstory opened 2 weeks ago

hpstory commented 2 weeks ago

What problem does this feature solve?

st statistical seems only support data on current page. As the example in the doc, if I use pagination, only the data on the current page will be counted. Should the statistics include all/filtered data in the columns of the table? Statistical doc

What does the proposed API look like?

statistics include all/filtered data in the columns of the table

cipchk commented 2 weeks ago

Indeed.

In fact, after implementing the summary row in nz-table, I should have refactored the statistics row, because the statistics row becomes ineffective when there are fixed columns.

Of course, it is also possible to recalculate when the trigger type is loaded, though this would lose the meaning of the statistics. However, this is currently the best solution.