fix 分页字段配置问题

This commit is contained in:
xiaoma
2021-08-28 11:54:42 +08:00
parent f11af4fc76
commit 82dc7d2589

View File

@@ -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],
};
});