UNPKG

@fesjs/fes-design

Version:
20 lines (19 loc) 768 B
import type { RowKey, RowType } from './interface'; import type { ColumnInst } from './column'; export declare const getRowKey: ({ row, rowKey, }: { row: RowType; rowKey?: RowKey; }) => any; /** * 考虑到存在聚合表头的场景,需要根据原始列数据的格式计算出聚合表头中每个单元格的 rowSpan、colSpan 和它所属的level * @param {} originColumns * @returns HeaderRows */ export declare function getHeaderRows(originColumns: ColumnInst[]): ColumnInst[][]; /** * 返回最终叶子列,也就是跟数据对应的列 * @param {*} originColumns * @returns Columns */ export declare function getColumns(originColumns: ColumnInst[]): any[]; export declare const getCellValue: (row?: RowType, column?: ColumnInst) => any;