Commit ab46110
fix(list): show real match total in record-count bar under server pagination (#2873)
The record-count status bar read `data.length`, which under server-side
pagination (#2212) is only the current page window — so a 158-row result
paginated 100/page showed "100 条记录" / "58 条记录" instead of the true
total, and nothing else surfaced the count. It now shows `serverTotal` when
known, falling back to `data.length` for in-memory (non-paginated / grouped /
non-grid) views, which are unchanged.
Browser-verified against the showcase contacts list (158 rows); grouped and
flat views both behave correctly, with a regression test on the ListView →
grid server-pagination contract.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 0502a7c commit ab46110
3 files changed
Lines changed: 40 additions & 1 deletion
File tree
- .changeset
- packages/plugin-list/src
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2536 | 2536 | | |
2537 | 2537 | | |
2538 | 2538 | | |
2539 | | - | |
| 2539 | + | |
| 2540 | + | |
| 2541 | + | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
2540 | 2549 | | |
2541 | 2550 | | |
2542 | 2551 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
127 | 139 | | |
128 | 140 | | |
129 | 141 | | |
| |||
0 commit comments