tdesign-react
Version:
TDesign Component for React
12 lines (11 loc) • 710 B
TypeScript
import { BaseTableCol, TableRowData, TableRowspanAndColspanFunc } from '../type';
export interface SkipSpansValue {
colspan?: number;
rowspan?: number;
skipped?: boolean;
}
export declare function getCellKey(row: TableRowData, rowKey: string, colKey: string, colIndex: number): string;
export default function useRowspanAndColspan(data: TableRowData[], columns: BaseTableCol<TableRowData>[], rowKey: string, rowspanAndColspan: TableRowspanAndColspanFunc<TableRowData>): {
skipSpansMap: Map<string, SkipSpansValue>;
getSkipSpansMap: (data: TableRowData[], columns: BaseTableCol<TableRowData>[], rowspanAndColspan: TableRowspanAndColspanFunc<TableRowData>) => Map<string, SkipSpansValue>;
};