export type Rule = { required?: boolean; trigger?: "blur" | "change"; validator?: (rule: Rule, value: any, callback: (error?: string) => void) => void; message?: string; type?: "string" | "number" | "boolean" | "method" | "regexp" | "integer" | "float" | "object" | "enum" | "date" | "url" | "hex" | "email" | "any"; pattern?: RegExp; min?: number; max?: number; range?: [number, number]; }; type __VLS_Props = { /** * 表单域 model 字段,在使用 validate、resetFields 方法的情况下,该属性是必填的 */ prop?: string; /** * 标签文本 */ label?: string; /** * 表单域标签的的宽度,例如 '50px'。支持 auto。 */ labelWidth?: string; /** * 是否必填,如不设置,则会根据校验规则自动生成 */ required?: boolean; /** * 表单验证规则 */ rules?: Rule[] | Rule; /** * 表单域验证错误信息, 设置该值会使表单验证状态变为error,并显示该错误信息 */ error?: string; /** * 是否显示校验错误信息 */ showMessage?: boolean; /** * 以行内形式展示校验信息 */ inlineMessage?: boolean; /** * 用于控制该表单域下组件的尺寸 */ size?: "medium" | "small" | "mini"; }; /** * 对该表单项进行重置,将其值重置为初始值并移除校验结果 */ declare function resetField(): void; /** * 移除该表单项的校验结果 */ declare function clearValidate(): void; declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: { error: string & { error: string; }[]; }; type __VLS_Slots = {} & { default?: (props: typeof __VLS_1) => any; } & { label?: (props: typeof __VLS_3) => any; } & { error?: (props: typeof __VLS_5) => any; }; declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, { resetField: typeof resetField; clearValidate: typeof clearValidate; }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly>>, {}>; declare const _default: __VLS_WithSlots; export default _default; type __VLS_TypePropsToOption = { [K in keyof T]-?: {} extends Pick ? { type: import('vue').PropType[K]>; } : { type: import('vue').PropType; required: true; }; }; type __VLS_WithSlots = T & { new (): { $scopedSlots: S; }; };