mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-02-04 13:42:27 +08:00
fix 分页字段配置问题
This commit is contained in:
@@ -16,14 +16,14 @@ export function usePagination(refProps: ComputedRef<BasicTableProps>) {
|
||||
}
|
||||
const { pageField, totalField } = APISETTING;
|
||||
return {
|
||||
page: unref(configRef)[pageField],
|
||||
pageCount: unref(configRef)[totalField],
|
||||
pageSize: DEFAULTPAGESIZE,
|
||||
pageSizes: PAGESIZES,
|
||||
showSizePicker: true,
|
||||
showQuickJumper: true,
|
||||
...(isBoolean(pagination) ? {} : pagination),
|
||||
...unref(configRef),
|
||||
page: unref(configRef)[pageField],
|
||||
pageCount: unref(configRef)[totalField],
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user