fix(pagination): 统一表格分页与密钥查询交互
统一各中心表格的分页样式和切换行为,保留密钥筛选条件与兑换码搜索分页。
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user