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

22 lines
663 B
TypeScript

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import { ProColumns } from "@ant-design/pro-components";
// 通用列表配置
export const proTableCommonOptions: Record<string,any> = {
scrollX: 'max-content', // 保证左右侧列的固定,并能保证没列标题不换行
scrollY: 500, // 保证列表高度固定
commscrollX: 1300,
searchLabelWidth: 'auto', // 整体对齐label根据实际字数自适应
}
// 默认索引列配置
export const proTableIndexColumnOptions : ProColumns = {
title: '序号',
dataIndex: 'index',
valueType: 'indexBorder', // 增加该属性以添加边框
fixed: 'left', // 将该列固定在左侧
width: 70,
align:'center'
}