UNPKG

tav-ui

Version:
17 lines (16 loc) 654 B
import type { ComputedRef, Ref } from 'vue'; import type { BasicTableProps, TableEmitType } from '../types/table'; declare type Recordable<T = any> = Record<string, T>; export declare function useTableExpand(propsRef: ComputedRef<BasicTableProps>, tableData: Ref<Recordable[]>, emit: TableEmitType): { getExpandOption: ComputedRef<{ expandedRowKeys?: undefined; onExpandedRowsChange?: undefined; } | { expandedRowKeys: string[]; onExpandedRowsChange: (keys: string[]) => void; }>; expandAll: () => void; expandRows: (keys: string[], cover?: boolean) => void; collapseAll: () => void; }; export {};