push
This commit is contained in:
22
lib/paas/config/table.config.ts
Normal file
22
lib/paas/config/table.config.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
export const tableConfig = {
|
||||
pageField: 'page', //当前页
|
||||
sizeField: 'pageSize', // 每页数量
|
||||
listField: 'data', // 数据集合
|
||||
totalField: 'totalCount', // 数据总数
|
||||
pageFieldOffset: 1, //前端页码1开始,后端0 偏移量 1
|
||||
pageSizeOptions: ['10', '20', '40'], // 分页设置种类
|
||||
defaultPageSize: 10, // 默认每页数量
|
||||
paramsPageSizeField: 'pageSize',
|
||||
paramsPageField: 'page',
|
||||
paramsOrderField: 'order',
|
||||
columnActions: {
|
||||
title: '操作',
|
||||
width: 106,
|
||||
dataIndex: 'tableAction',
|
||||
fixed: 'right',
|
||||
autoMergeAction: true,
|
||||
autoCalcWidth: true,
|
||||
actions: [],
|
||||
},
|
||||
scroll: { x: 'max-content' },
|
||||
};
|
||||
Reference in New Issue
Block a user