Commit 3af4ae2b authored by 田翔's avatar 田翔

feat: 支持配置分页选项配置

parent 7c909f20
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "6.10.1", "version": "6.10.2",
"description": "6.10.1 文本框只读无数据时默认高度", "description": "6.10.2 支持配置分页选项配置",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -64,6 +64,7 @@ const Account = (props, ref) => { ...@@ -64,6 +64,7 @@ const Account = (props, ref) => {
getDeleted, getDeleted,
accountId, accountId,
defaultType, defaultType,
pageSizes,
} = props; } = props;
const userID = window?.globalConfig?.userInfo?.OID || 1; const userID = window?.globalConfig?.userInfo?.OID || 1;
let initParams = { let initParams = {
...@@ -634,6 +635,7 @@ const Account = (props, ref) => { ...@@ -634,6 +635,7 @@ const Account = (props, ref) => {
<div className={styles.pagination}> <div className={styles.pagination}>
<Pagination <Pagination
showQuickJumper showQuickJumper
pageSizeOptions={pageSizes ? pageSizes.split(',').map(v => Number(v)) : [10, 20, 50, 100]}
pageSize={params.pageSize} pageSize={params.pageSize}
current={params.pageIndex} current={params.pageIndex}
total={params.total} total={params.total}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment