feat(PageContent): 增加pagination、request、parseData配置参数

This commit is contained in:
cshaptx4869
2024-05-29 16:19:51 +08:00
parent ef1df3218d
commit 7804dcef30
3 changed files with 128 additions and 65 deletions

View File

@@ -8,6 +8,12 @@ const contentConfig: IContentConfig<UserQuery> = {
border: true,
highlightCurrentRow: true,
},
pagination: {
background: true,
layout: "prev,pager,next,jumper,total,sizes",
pageSize: 20,
pageSizes: [10, 20, 30, 50],
},
indexAction: function (params) {
if ("createAt" in params) {
const createAt = params.createAt as string[];