修改分页
This commit is contained in:
@@ -79,13 +79,12 @@ export function useTable<A extends AntDesign.TableApiFn>(config: AntDesign.AntDe
|
||||
|
||||
const pagination: TablePaginationConfig = reactive({
|
||||
showSizeChanger: true,
|
||||
pageSizeOptions: [10, 15, 20, 25, 30],
|
||||
pageSizeOptions: ['5','10', '15', '20','30'],
|
||||
total: 0,
|
||||
simple: false,
|
||||
// size: 'f',
|
||||
size: 'default',
|
||||
current: 1,
|
||||
pageSize: 10,
|
||||
defaultPageSize: 10,
|
||||
pageSize: 5,
|
||||
defaultPageSize: 5,
|
||||
responsive: true,
|
||||
onChange: async (current: number, pageSize: number) => {
|
||||
pagination.current = current;
|
||||
@@ -105,7 +104,6 @@ export function useTable<A extends AntDesign.TableApiFn>(config: AntDesign.AntDe
|
||||
const mobilePagination = computed(() => {
|
||||
const p: TablePaginationConfig = {
|
||||
...pagination,
|
||||
simple: appStore.isMobile
|
||||
};
|
||||
|
||||
return p;
|
||||
|
||||
Reference in New Issue
Block a user