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