修复分页器

This commit is contained in:
lai committed 2025-02-20 14:48:27 +08:00
1 parent 8368a082ea
commit 1dd6d27d64
3 files changed
+10 -4

No files matched your search

+6 -2
View File
@@ -85,16 +85,20 @@ export function useTable<A extends AntDesign.TableApiFn>(config: AntDesign.AntDe
// size: 'f',
current: 1,
pageSize: 10,
defaultPageSize: 10,
responsive: true,
onChange: async (current: number, pageSize: number) => {
pagination.current = current;
pagination.pageSize = pageSize;
updateSearchParams({
pageNum: current,
pageSize
});
getData();
}
},
showTotal: (total: number) =>
$t('common.tablePaginationTotal', { total: total })
});
// this is for mobile, if the system does not support mobile, you can use `pagination` directly
+2 -1
View File
@@ -66,7 +66,8 @@ const local: any = {
yesOrNo: {
yes: 'Yes',
no: 'No'
}
},
tablePaginationTotal: 'Total {total} items',
},
request: {
logout: 'Logout user after request failed',
+2 -1
View File
@@ -66,7 +66,8 @@ const local:any = {
yesOrNo: {
yes: '是',
no: '否'
}
},
tablePaginationTotal: '总共 {total} 条',
},
request: {
logout: '请求失败后登出用户',