Files
SaaS-lib/lib/saas/config/table.config.ts

25 lines
726 B
TypeScript
Raw Normal View History

2024-05-15 17:29:42 +08:00
export const tableConfig = {
2024-06-07 15:11:04 +08:00
pageField: 'data.current', //当前页
2024-05-15 17:29:42 +08:00
pageCount: 'data.pageCount', //当前页
2024-05-21 16:42:16 +08:00
sizeField: 'data.size', // 每页数量
listField: 'data.records', // 数据集合
totalField: 'data.total', // 数据总数
2024-05-15 17:29:42 +08:00
2024-06-04 10:54:02 +08:00
pageFieldOffset: 0, //前端页码1开始后端0 偏移量 1
2024-05-15 17:29:42 +08:00
pageSizeOptions: ['10', '20', '40'], // 分页设置种类
defaultPageSize: 10, // 默认每页数量
paramsPageSizeField: 'pageSize',
2024-05-28 18:00:25 +08:00
paramsPageField: 'pageNum',
2024-05-15 17:29:42 +08:00
paramsOrderField: 'order',
columnActions: {
title: '操作',
width: 106,
dataIndex: 'tableAction',
fixed: 'right',
autoMergeAction: true,
autoCalcWidth: true,
actions: [],
},
scroll: { x: 'max-content' },
};