sard-uniapp
Version:
sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
11 lines (10 loc) • 419 B
TypeScript
import { type FieldName, type FormContext, type FormProps } from './common';
export declare function useForm(props: FormProps): {
expose: {
validate: (nameList?: FieldName[]) => Promise<void>;
reset: (nameList?: FieldName[]) => Promise<void>;
clearValidate: (nameList?: FieldName[]) => Promise<void>;
scrollToField: (name: FieldName) => void;
};
formContext: FormContext;
};