UNPKG

tav-ui

Version:
18 lines (17 loc) 650 B
import type { FormActionType } from 'tav-ui/es/components/form/src/types/form'; import type { ComputedRef, Ref } from 'vue'; import type { BasicTableProps, TableActionType } from '../types/table'; declare type Props = Partial<DynamicProps<BasicTableProps>>; declare type DynamicProps<T> = { [P in keyof T]: Ref<T[P]> | T[P] | ComputedRef<T[P]>; }; declare type UseTableMethod = TableActionType & { getForm: () => FormActionType; }; export declare function useTable(tableProps?: Props): [ (instance: TableActionType, formInstance: UseTableMethod) => void, TableActionType & { getForm: () => FormActionType; } ]; export {};