fix(pagination): 统一表格分页与密钥查询交互

统一各中心表格的分页样式和切换行为,保留密钥筛选条件与兑换码搜索分页。
This commit is contained in:
zhanjunhao
2026-11-20 12:52:45 +08:00
parent 94ac3db60c
commit 9145ed5834
32 changed files with 416 additions and 401 deletions
+3 -3
View File
@@ -145,7 +145,7 @@ async function modelTestFixture() {
),
Typography: { Text: 'Text' },
},
'../../../ui/CenterActionTable': 'Table',
'@/components/ui': { Table: 'Table' },
'lucide-react': { Search: 'Search' },
'./model-test-modal.css': {},
'../../../../helpers': {},
@@ -180,13 +180,13 @@ async function modelTestFixture() {
};
}
test('Model test dialog passes the complete filtered list to native Ant pagination', async () => {
test('Model test dialog passes the complete filtered list to local table pagination', async () => {
const { table, models } = await modelTestFixture();
assert.deepEqual(
Array.from(table.dataSource, (row) => row.model),
models,
);
assert.equal(table.pagination.total, 24);
assert.equal(table.pagination.total, undefined);
assert.equal(table.pagination.current, 2);
assert.equal(table.pagination.pageSize, 5);
const html = renderToStaticMarkup(React.createElement(AntTable, table));