import { PropType } from 'vue'; import { ComponentPropsType, BaseSize } from '../shared'; import { FormRules } from 'element-plus'; export declare const dialogFormProps: { modelValue: { type: BooleanConstructor; default: boolean; }; size: { type: PropType; }; formProps: { type: PropType>; }; submit: { type: (BooleanConstructor | StringConstructor)[]; default: string; }; cancel: { type: (BooleanConstructor | StringConstructor)[]; default: string; }; /** * 表单模型 */ model: { type: PropType>; default(): any; }; rules: { type: PropType; }; /** * 表单提交处理方法, return true 关闭弹窗 */ submitMethod: { type: PropType<(model: Record) => Promise>; }; }; export type DialogFormEmits = { 'update:modelValue': [value: boolean]; submit: [model: Record]; close: []; }; export type DialogFormProps = ComponentPropsType;