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
724 B

7 months ago
export const tableConfig = {
pageField: 'data.pages', //当前页
7 months ago
pageCount: 'data.pageCount', //当前页
sizeField: 'data.size', // 每页数量
listField: 'data.records', // 数据集合
totalField: 'data.total', // 数据总数
7 months ago
6 months ago
pageFieldOffset: 0, //前端页码1开始,后端0 偏移量 1
7 months ago
pageSizeOptions: ['10', '20', '40'], // 分页设置种类
defaultPageSize: 10, // 默认每页数量
paramsPageSizeField: 'pageSize',
6 months ago
paramsPageField: 'pageNum',
7 months ago
paramsOrderField: 'order',
columnActions: {
title: '操作',
width: 106,
dataIndex: 'tableAction',
fixed: 'right',
autoMergeAction: true,
autoCalcWidth: true,
actions: [],
},
scroll: { x: 'max-content' },
};