UNPKG

@schema-render/search-table-react

Version:
15 lines (14 loc) 704 B
import type { ISearchTableProps } from '../../../typings'; import type { IColumnType } from '../../../typings/table.d'; /** * 处理原始 columns 数据 * 1、减少 key 字段声明,用 dataIndex 作为唯一字段 * 2、统一处理无数据列以中横线 “-” 显示 * 3、统一居中展示 * 4、以上内容,子节点一并同样处理 * * @param rawColumns 原始 columns * @param table table 属性 * @param finalValueTypeProcessors valueType 处理器 */ export declare function processRawColumns(rawColumns: IColumnType<string>[], table: ISearchTableProps['table'], finalValueTypeProcessors: Required<ISearchTableProps['table']>['registerValueType']): IColumnType<string>[];