Files
SaaS-lib/lib/saas/config/table.config.ts
xuziqiang d0155dbe3c push
2024-05-15 17:29:42 +08:00

25 lines
721 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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' },
};