UNPKG

tdesign-react

Version:
14 lines (13 loc) 706 B
/** * 多级表头相关逻辑 ** */ import { TdBaseTableProps, RowspanColspan } from '../type'; export type ThRowspanAndColspan = Map<any, RowspanColspan>; export type TableColumns = TdBaseTableProps['columns']; export declare function getNodeDepth(columns: TableColumns, depthMap: Map<any, number>, depth?: number): number; export declare function getChildrenNodeWidth(node: TableColumns[0], count?: number): number; export declare function getThRowspanAndColspan(columns: TableColumns): { rowspanAndColspanMap: ThRowspanAndColspan; leafColumns: import("../type").BaseTableCol<import("../type").TableRowData>[]; }; export declare function getThList(columns: TableColumns): Array<TableColumns>;