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:
@@ -14,16 +14,15 @@ export function usePagination(refProps: ComputedRef<BasicTableProps>) {
|
||||
if (!unref(show) || (isBoolean(pagination) && !pagination)) {
|
||||
return false;
|
||||
}
|
||||
const { pageField, totalField } = APISETTING;
|
||||
const { totalField } = APISETTING;
|
||||
return {
|
||||
page: unref(configRef)[pageField],
|
||||
pageCount: unref(configRef)[totalField],
|
||||
pageSize: DEFAULTPAGESIZE,
|
||||
pageSizes: PAGESIZES,
|
||||
showSizePicker: true,
|
||||
showQuickJumper: true,
|
||||
...(isBoolean(pagination) ? {} : pagination),
|
||||
...unref(configRef),
|
||||
pageCount: unref(configRef)[totalField],
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user