UNPKG

tav-ui

Version:
12 lines (11 loc) 680 B
import type { FormProps } from 'tav-ui/es/components/form/src/types/form'; import type { ComputedRef, Slots } from 'vue'; import type { BasicTableProps, FetchParams } from '../types/table'; declare type Recordable<T = any> = Record<string, T>; export declare function useTableForm(propsRef: ComputedRef<BasicTableProps>, slots: Slots, fetch: (opt?: FetchParams | undefined) => Promise<Recordable<any>[] | undefined>, getLoading: ComputedRef<boolean | undefined>): { getFormProps: ComputedRef<Partial<FormProps>>; replaceFormSlotKey: (key: string) => string; getFormSlotKeys: ComputedRef<string[]>; handleSearchInfoChange: (info: Recordable) => void; }; export {};