fix 分页字段配置问题

This commit is contained in:
xiaoma
2021-08-28 11:52:18 +08:00
parent 85f1dbd5e9
commit f11af4fc76

View File

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