You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
721 B

4 months ago
export const tableConfig = {
pageField: 'data.page', //当前页
pageCount: 'data.pageCount', //当前页
sizeField: 'data.pageSize', // 每页数量
listField: 'data.data', // 数据集合
totalField: 'data.items', // 数据总数
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' },
};