UNPKG

@cblink/finches-ui

Version:

A Component Library for Vue 3

21 lines (20 loc) 789 B
import type { ComputedRef, Ref } from 'vue'; interface UseFormActionContext { emit: any; getProps: ComputedRef<any>; getSchema: ComputedRef<any>; formModel: any; defaultValueRef: Ref; formElRef: Ref; handleFormValues: Function; } export declare function useFormEvents({ emit, getProps, formModel, getSchema, defaultValueRef, formElRef, handleFormValues, }: UseFormActionContext): { setFieldsValue: (values: any) => Promise<void>; validateFields: (nameList?: string[] | undefined) => Promise<any>; handleSubmit: (e?: any) => Promise<void>; resetFields: () => Promise<void>; clearValidate: (name?: string | string[] | undefined) => Promise<void>; validate: (nameList?: any) => Promise<any>; getAllFieldsValue: () => any; }; export {};