UNPKG

tdesign-vue-next

Version:
15 lines (14 loc) 729 B
import { Ref } from 'vue'; import { BaseTableCol, TableRowData, TableRowspanAndColspanFunc } from '../type'; export interface SkipSpansValue { colspan?: number; rowspan?: number; skipped?: boolean; startRowIndex?: number; startColIndex?: number; } export declare function getCellKey(row: TableRowData, rowKey: string, colKey: string, colIndex: number, rowIndex?: number): string; export declare function getRowKeyFromCell(cellKey: string): string; export default function useRowspanAndColspan(data: Ref<TableRowData[]>, columns: Ref<BaseTableCol<TableRowData>[]>, rowKey: Ref<string>, rowspanAndColspan: Ref<TableRowspanAndColspanFunc<TableRowData>>): { skipSpansMap: Ref<Map<string, SkipSpansValue>>; };