import type { FormValidateCallback } from "element-plus"; import type { FaLayoutGridBreakpoint } from "../../layoutGrid"; /** FaForm 的运行时 Props 定义 */ export declare const faFormProps: { /** Width of label, e.g. `'50px'`. All its direct child form items will inherit this value. `auto` is supported. */ labelWidth: { type: (NumberConstructor | StringConstructor)[]; default: string; }; /** Suffix of the label. */ labelSuffix: { type: StringConstructor; default: string; }; /** When validation fails, scroll to the first error form entry. */ scrollToError: { type: BooleanConstructor; default: boolean; }; /** 详情From,会删除 FormItem 的 paddinfa-bottom */ detailForm: BooleanConstructor; /** Grid布局 */ grid: { type: BooleanConstructor; default: boolean; }; /** Grid布局列配置 */ cols: { type: import("vue").PropType>; default: () => { xs: number; sm: number; md: number; lg: number; xl: number; }; }; model: ObjectConstructor; rules: { readonly type: import("vue").PropType | import("element-plus/es/utils/typescript.mjs").Arrayable>>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; labelPosition: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; requireAsteriskPosition: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; inline: BooleanConstructor; inlineMessage: BooleanConstructor; statusIcon: BooleanConstructor; showMessage: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; validateOnRuleChange: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; hideRequiredAsterisk: BooleanConstructor; scrollIntoViewOptions: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | (((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions)) | null)[], unknown, unknown, true, boolean>; size: { readonly type: import("vue").PropType>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; disabled: BooleanConstructor; }; /** FaForm 的运行时事件定义。 */ export declare const faFormEmits: { validate: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => boolean; }; /** FaForm 的插槽参数 */ export interface FaFormSlots extends Record { /** 默认内容插槽 */ default: { cols: Record; gap: [number, number]; }; } declare const _default: import("vue").DefineComponent>; default: () => { xs: number; sm: number; md: number; lg: number; xl: number; }; }; model: ObjectConstructor; rules: { readonly type: import("vue").PropType | import("element-plus/es/utils/typescript.mjs").Arrayable>>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; labelPosition: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; requireAsteriskPosition: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; inline: BooleanConstructor; inlineMessage: BooleanConstructor; statusIcon: BooleanConstructor; showMessage: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; validateOnRuleChange: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; hideRequiredAsterisk: BooleanConstructor; scrollIntoViewOptions: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | (((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions)) | null)[], unknown, unknown, true, boolean>; size: { readonly type: import("vue").PropType>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; disabled: BooleanConstructor; }>, { /** 对整个表单的内容进行验证。 接收一个回调函数,或返回 Promise。 */ validate: (callback?: FormValidateCallback) => import("element-plus").FormValidationResult; /** 验证具体的某个字段。 */ validateField: import("vue").ComputedRef<((props?: import("element-plus/es/utils/typescript.mjs").Arrayable, callback?: FormValidateCallback) => import("element-plus").FormValidationResult) | undefined>; /** 重置该表单项,将其值重置为初始值,并移除校验结果 */ resetFields: import("vue").ComputedRef<((props?: import("element-plus/es/utils/typescript.mjs").Arrayable) => void) | undefined>; /** 清理某个字段的表单验证信息。 */ clearValidate: import("vue").ComputedRef<((props?: import("element-plus/es/utils/typescript.mjs").Arrayable) => void) | undefined>; /** 滚动到指定的字段 */ scrollToField: import("vue").ComputedRef<((prop: import("element-plus").FormItemProp) => void) | undefined>; /** 获取所有字段的 context */ fields: import("vue").ComputedRef | undefined>; /** 获取指定字段的 context。 */ getField: import("vue").ComputedRef<((prop: import("element-plus").FormItemProp) => import("element-plus").FormItemContext | undefined) | undefined>; /** 设置表单字段的初始值。 */ setInitialValues: import("vue").ComputedRef<((initModel: Record) => void) | undefined>; /** 对整个表单的内容进行验证,带滚动。 接收一个回调函数,或返回 Promise。 */ validateScrollToField: () => import("element-plus").FormValidationResult; }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { validate: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => boolean; }, string, import("vue").PublicProps, Readonly>; default: () => { xs: number; sm: number; md: number; lg: number; xl: number; }; }; model: ObjectConstructor; rules: { readonly type: import("vue").PropType | import("element-plus/es/utils/typescript.mjs").Arrayable>>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; labelPosition: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; requireAsteriskPosition: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; inline: BooleanConstructor; inlineMessage: BooleanConstructor; statusIcon: BooleanConstructor; showMessage: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; validateOnRuleChange: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; hideRequiredAsterisk: BooleanConstructor; scrollIntoViewOptions: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | (((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions)) | null)[], unknown, unknown, true, boolean>; size: { readonly type: import("vue").PropType>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; disabled: BooleanConstructor; }>> & Readonly<{ onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined; }>, { disabled: boolean; grid: boolean; cols: string | number | Record; inline: boolean; labelPosition: import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType; requireAsteriskPosition: import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType; labelWidth: string | number; labelSuffix: string; inlineMessage: boolean; statusIcon: boolean; showMessage: import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType; validateOnRuleChange: import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType; hideRequiredAsterisk: boolean; scrollToError: boolean; scrollIntoViewOptions: import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | null)[], unknown, unknown>; detailForm: boolean; }, import("../../../utils").TypedSlotsDeclaration, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; export default _default;