UNPKG

tav-ui

Version:
16 lines (15 loc) 642 B
import type { ComputedRef, Ref } from 'vue'; import type { BasicTableProps, TableActionType } from '../types/table'; declare type Nullable<T> = T | null; declare type Recordable<T = any> = Record<string, T>; declare type Instance = TableActionType & { wrapRef: Ref<Nullable<HTMLElement>>; getBindValues: ComputedRef<Recordable>; setCacheActionWidths: (...args: any) => void; }; declare type RetInstance = Omit<Instance, 'getBindValues'> & { getBindValues: ComputedRef<BasicTableProps>; }; export declare function createTableContext(instance: Instance): void; export declare function useTableContext(): RetInstance; export {};