UNPKG

xdesign-vue-next

Version:

XDesign Component for vue-next

12 lines (11 loc) 586 B
import { Ref } from 'vue'; 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>>; };