epic-designer
Version:
基于vue3的设计器,可视化开发页面表单
15 lines (14 loc) • 447 B
TypeScript
import { FormDataModel } from '../../../types/src/index';
import { InjectionKey, Ref } from 'vue';
export declare const FORM_CONTEXT_KEY: InjectionKey<FormDataModel>;
export declare const FORM_INSTANCES_KEY: InjectionKey<{
[name: string]: any;
}>;
export declare function useForm(formName: string): {
formData: Record<string, unknown>;
formInstances: Ref<{
[name: string]: any;
}, {
[name: string]: any;
}>;
};