import { PropType, InjectionKey, ComponentInternalInstance } from 'vue'; import { ElTooltipProps } from 'element-plus'; import { ComponentPropsType } from '../shared'; import { default as Form } from './Form'; export declare const formProps: { /** * 表单模型 */ model: { type: PropType>; default(): any; }; /** * inline模式 */ inline: { type: BooleanConstructor; }; /** * inline模式显示列数 */ inlineColumns: { type: NumberConstructor; }; /** * 显示底部操作按钮 */ footer: { type: BooleanConstructor; default: boolean; }; /** * 提交按钮文本 */ submitText: { type: PropType; default: string; }; /** * 重置按钮文本 */ resetText: { type: PropType; default: string; }; /** * 表单提交处理方法 */ submitMethod: { type: PropType<(model: FormModel) => Promise>; }; /** * 是否在tooltip显示校验信息 */ tooltipMessage: { type: PropType>; default: undefined; }; /** * 回车键出发提交 */ enterSubmit: { type: BooleanConstructor; default: boolean; }; /** * 开启 sticky */ sticky: { type: BooleanConstructor; default: boolean; }; /** * 底部按钮对齐方式 */ footerAlign: { type: PropType<"left" | "center" | "right">; default: string; }; }; export type FormProps = ComponentPropsType; export type FormEmits = { change: [model: Record]; submit: [model: Record]; reset: []; }; export type FormInstance = InstanceType; export declare const formInstanceKey: InjectionKey; export type FormModel = Record; export declare const formModelKey: InjectionKey;