tdesign-vue
Version:
12 lines (11 loc) • 603 B
TypeScript
import { Ref } from '@vue/composition-api';
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: Ref<TableRowData[]>, columns: Ref<BaseTableCol<TableRowData>[]>, rowKey: Ref<string>, rowspanAndColspan: Ref<TableRowspanAndColspanFunc<TableRowData>>): {
skipSpansMap: Ref<Map<string, SkipSpansValue>>;
};