import { PlusFormProps } from 'haotai-ui/es/components/form'; import { FieldValues, Mutable, PlusColumn, RecordType, TableValueType, FormItemValueType, OptionsType, OptionsRow, RenderTypes, FieldValueType, PropsItemType, FieldProps } from 'haotai-ui/es/types'; import { DrawerProps, ElTooltipProps, TableColumnCtx, FormItemProps, ColProps, DialogBeforeCloseFn, FormItemRule, FormItemProp, FormValidateCallback, FormValidationResult, FormItemContext } from 'element-plus'; import { ComputedRef, Ref, CSSProperties, DefineComponent, ComponentInternalInstance, Component, ComputedOptions, MethodOptions, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, PublicProps } from 'vue'; import { EpPropMergeType, EpPropFinalized, Arrayable } from 'element-plus/es/utils'; export interface PlusDrawerFormProps { modelValue?: FieldValues; visible?: boolean; /** * @deprecated v0.1.5 */ drawer?: Partial>; size?: string | number; form?: PlusFormProps; hasFooter?: boolean; cancelText?: string; confirmText?: string; confirmLoading?: boolean; hasErrorTip?: boolean; } export interface PlusDrawerFormEmits { (e: 'update:modelValue', values: FieldValues): void; (e: 'update:visible', visible: boolean): void; (e: 'confirm', values: FieldValues): void; (e: 'change', values: FieldValues, column: PlusColumn): void; (e: 'cancel'): void; (e: 'confirmError', errors: unknown): void; } declare function __VLS_template(): Partial, (_: { [x: string]: any; label?: string | ComputedRef; prop: string; width?: string | number; minWidth?: string | number; editable?: boolean; valueType?: TableValueType | FormItemValueType; hideInDescriptions?: boolean | Ref | ComputedRef; hideInForm?: boolean | Ref | ComputedRef; hideInTable?: boolean | Ref | ComputedRef; hideInSearch?: boolean | Ref | ComputedRef; descriptionsItemProps?: RecordType; options?: OptionsType; optionsMap?: { label?: string; value?: string; }; customGetStatus?: (data: { options: OptionsRow[]; value: string | number; row: RecordType; }) => OptionsRow; tooltip?: string | Partial< ElTooltipProps> | ComputedRef | ComputedRef>; render?: (value: any, data: { row: RecordType; column: PlusColumn; index: number; }) => RenderTypes; renderHTML?: (value: any, data: { row: RecordType; column: PlusColumn; index: number; }) => string; renderHeader?: (label: string, props: PlusColumn) => RenderTypes; renderDescriptionsItem?: (data: { value: string; column: PlusColumn; row: RecordType; }) => RenderTypes; renderDescriptionsLabel?: (data: { label: string; column: PlusColumn; row: RecordType; }) => RenderTypes; order?: number | ComputedRef; children?: PlusColumn[]; headerFilter?: boolean; disabledHeaderFilter?: boolean; tableColumnProps?: Partial, "label " | "prop" | "width" | "minWidth"> & { [key: string]: any; }>; preview?: boolean; linkText?: string; formatter?: (value: any, data: { row: RecordType; column: PlusColumn; index: number; }) => string | number; formProps?: Partial | ComputedRef> | ((value: FieldValueType, data: { row: Record; index: number; }) => Partial); formItemProps?: PropsItemType & { [key: string]: any; style?: CSSProperties; }>; fieldProps?: PropsItemType; renderField?: (value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes; colProps?: Partial & { [key: string]: any; style?: CSSProperties; }>; hasLabel?: boolean | Ref | ComputedRef; renderLabel?: (label: string, props: PlusColumn) => RenderTypes; renderExtra?: (column: PlusColumn) => RenderTypes; fieldSlots?: { [slotName: string]: (data?: any) => RenderTypes; }; fieldChildrenSlot?: (option?: OptionsRow) => RenderTypes; }) => any>> & Partial, (_: { [x: string]: any; label?: string | ComputedRef; prop: string; width?: string | number; minWidth?: string | number; editable?: boolean; valueType?: TableValueType | FormItemValueType; hideInDescriptions?: boolean | Ref | ComputedRef; hideInForm?: boolean | Ref | ComputedRef; hideInTable?: boolean | Ref | ComputedRef; hideInSearch?: boolean | Ref | ComputedRef; descriptionsItemProps?: RecordType; options?: OptionsType; optionsMap?: { label?: string; value?: string; }; customGetStatus?: (data: { options: OptionsRow[]; value: string | number; row: RecordType; }) => OptionsRow; tooltip?: string | Partial< ElTooltipProps> | ComputedRef | ComputedRef>; render?: (value: any, data: { row: RecordType; column: PlusColumn; index: number; }) => RenderTypes; renderHTML?: (value: any, data: { row: RecordType; column: PlusColumn; index: number; }) => string; renderHeader?: (label: string, props: PlusColumn) => RenderTypes; renderDescriptionsItem?: (data: { value: string; column: PlusColumn; row: RecordType; }) => RenderTypes; renderDescriptionsLabel?: (data: { label: string; column: PlusColumn; row: RecordType; }) => RenderTypes; order?: number | ComputedRef; children?: PlusColumn[]; headerFilter?: boolean; disabledHeaderFilter?: boolean; tableColumnProps?: Partial, "label " | "prop" | "width" | "minWidth"> & { [key: string]: any; }>; preview?: boolean; linkText?: string; formatter?: (value: any, data: { row: RecordType; column: PlusColumn; index: number; }) => string | number; formProps?: Partial | ComputedRef> | ((value: FieldValueType, data: { row: Record; index: number; }) => Partial); formItemProps?: PropsItemType & { [key: string]: any; style?: CSSProperties; }>; fieldProps?: PropsItemType; renderField?: (value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes; colProps?: Partial & { [key: string]: any; style?: CSSProperties; }>; hasLabel?: boolean | Ref | ComputedRef; renderLabel?: (label: string, props: PlusColumn) => RenderTypes; renderExtra?: (column: PlusColumn) => RenderTypes; fieldSlots?: { [slotName: string]: (data?: any) => RenderTypes; }; fieldChildrenSlot?: (option?: OptionsRow) => RenderTypes; }) => any>> & Partial, (_: { [x: string]: any; label?: string | ComputedRef; prop: string; width?: string | number; minWidth?: string | number; editable?: boolean; valueType?: TableValueType | FormItemValueType; hideInDescriptions?: boolean | Ref | ComputedRef; hideInForm?: boolean | Ref | ComputedRef; hideInTable?: boolean | Ref | ComputedRef; hideInSearch?: boolean | Ref | ComputedRef; descriptionsItemProps?: RecordType; options?: OptionsType; optionsMap?: { label?: string; value?: string; }; customGetStatus?: (data: { options: OptionsRow[]; value: string | number; row: RecordType; }) => OptionsRow; tooltip?: string | Partial< ElTooltipProps> | ComputedRef | ComputedRef>; render?: (value: any, data: { row: RecordType; column: PlusColumn; index: number; }) => RenderTypes; renderHTML?: (value: any, data: { row: RecordType; column: PlusColumn; index: number; }) => string; renderHeader?: (label: string, props: PlusColumn) => RenderTypes; renderDescriptionsItem?: (data: { value: string; column: PlusColumn; row: RecordType; }) => RenderTypes; renderDescriptionsLabel?: (data: { label: string; column: PlusColumn; row: RecordType; }) => RenderTypes; order?: number | ComputedRef; children?: PlusColumn[]; headerFilter?: boolean; disabledHeaderFilter?: boolean; tableColumnProps?: Partial, "label " | "prop" | "width" | "minWidth"> & { [key: string]: any; }>; preview?: boolean; linkText?: string; formatter?: (value: any, data: { row: RecordType; column: PlusColumn; index: number; }) => string | number; formProps?: Partial | ComputedRef> | ((value: FieldValueType, data: { row: Record; index: number; }) => Partial); formItemProps?: PropsItemType & { [key: string]: any; style?: CSSProperties; }>; fieldProps?: PropsItemType; renderField?: (value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes; colProps?: Partial & { [key: string]: any; style?: CSSProperties; }>; hasLabel?: boolean | Ref | ComputedRef; renderLabel?: (label: string, props: PlusColumn) => RenderTypes; renderExtra?: (column: PlusColumn) => RenderTypes; fieldSlots?: { [slotName: string]: (data?: any) => RenderTypes; }; fieldChildrenSlot?: (option?: OptionsRow) => RenderTypes; }) => any>> & { "drawer-header"?(_: {}): any; "form-footer"?(_: {}): any; "form-group-header"?(_: {}): any; "tooltip-icon"?(_: {}): any; "drawer-footer"?(_: { handleConfirm: () => Promise; handleCancel: () => void; }): any; }; declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps, { modelValue: () => {}; visible: boolean; hasFooter: boolean; cancelText: string; confirmText: string; confirmLoading: boolean; hasErrorTip: boolean; size: string; /** * @deprecated v0.1.5 */ drawer: () => {}; form: () => {}; }>, { drawerInstance: Ref<({ $: ComponentInternalInstance; $data: {}; $props: Partial<{ readonly title: string; readonly direction: EpPropMergeType; readonly overflow: boolean; readonly center: boolean; readonly size: EpPropMergeType; readonly modelValue: boolean; readonly appendTo: EpPropMergeType<(new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement) | ((new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement))[], unknown, unknown>; readonly showClose: EpPropMergeType; readonly ariaLevel: string; readonly alignCenter: boolean; readonly draggable: boolean; readonly fullscreen: boolean; readonly closeOnClickModal: EpPropMergeType; readonly closeOnPressEscape: EpPropMergeType; readonly lockScroll: EpPropMergeType; readonly modal: EpPropMergeType; readonly openDelay: number; readonly closeDelay: number; readonly headerAriaLevel: string; readonly appendToBody: boolean; readonly destroyOnClose: boolean; readonly trapFocus: boolean; readonly withHeader: EpPropMergeType; readonly modalFade: EpPropMergeType; }> & Omit<{ readonly appendTo: EpPropMergeType<(new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement) | ((new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement))[], unknown, unknown>; readonly size: EpPropMergeType; readonly title: string; readonly direction: EpPropMergeType; readonly overflow: boolean; readonly modelValue: boolean; readonly draggable: boolean; readonly fullscreen: boolean; readonly center: boolean; readonly closeOnPressEscape: EpPropMergeType; readonly showClose: EpPropMergeType; readonly appendToBody: boolean; readonly destroyOnClose: boolean; readonly closeOnClickModal: EpPropMergeType; readonly lockScroll: EpPropMergeType; readonly modal: EpPropMergeType; readonly openDelay: number; readonly closeDelay: number; readonly trapFocus: boolean; readonly headerAriaLevel: string; readonly alignCenter: boolean; readonly ariaLevel: string; readonly withHeader: EpPropMergeType; readonly modalFade: EpPropMergeType; readonly width?: EpPropMergeType | undefined; readonly zIndex?: number | undefined; readonly top?: string | undefined; readonly beforeClose?: DialogBeforeCloseFn | undefined; readonly modalClass?: string | undefined; readonly closeIcon?: EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown> | undefined; "onUpdate:modelValue"?: ((value: boolean) => any) | undefined; onClose?: (() => any) | undefined; onOpen?: (() => any) | undefined; onOpenAutoFocus?: (() => any) | undefined; onCloseAutoFocus?: (() => any) | undefined; onOpened?: (() => any) | undefined; onClosed?: (() => any) | undefined; } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{ readonly direction: EpPropFinalized; readonly size: EpPropFinalized; readonly withHeader: EpPropFinalized; readonly modalFade: EpPropFinalized; readonly headerAriaLevel: EpPropFinalized; readonly appendToBody: BooleanConstructor; readonly appendTo: EpPropFinalized<(new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement) | ((new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement))[], unknown, unknown, "body", boolean>; readonly beforeClose: { readonly type: PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly destroyOnClose: BooleanConstructor; readonly closeOnClickModal: EpPropFinalized; readonly closeOnPressEscape: EpPropFinalized; readonly lockScroll: EpPropFinalized; readonly modal: EpPropFinalized; readonly openDelay: EpPropFinalized; readonly closeDelay: EpPropFinalized; readonly top: { readonly type: PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly modelValue: BooleanConstructor; readonly modalClass: StringConstructor; readonly width: { readonly type: PropType>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly zIndex: { readonly type: PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly trapFocus: BooleanConstructor; readonly center: BooleanConstructor; readonly alignCenter: BooleanConstructor; readonly closeIcon: { readonly type: PropType (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly draggable: BooleanConstructor; readonly overflow: BooleanConstructor; readonly fullscreen: BooleanConstructor; readonly showClose: EpPropFinalized; readonly title: EpPropFinalized; readonly ariaLevel: EpPropFinalized; }>> & { "onUpdate:modelValue"?: ((value: boolean) => any) | undefined; onClose?: (() => any) | undefined; onOpen?: (() => any) | undefined; onOpenAutoFocus?: (() => any) | undefined; onCloseAutoFocus?: (() => any) | undefined; onOpened?: (() => any) | undefined; onClosed?: (() => any) | undefined; }, "appendTo" | "size" | "title" | "direction" | "overflow" | "modelValue" | "draggable" | "fullscreen" | "center" | "closeOnPressEscape" | "showClose" | "appendToBody" | "destroyOnClose" | "closeOnClickModal" | "lockScroll" | "modal" | "openDelay" | "closeDelay" | "trapFocus" | "headerAriaLevel" | "alignCenter" | "ariaLevel" | "withHeader" | "modalFade">; $attrs: { [x: string]: unknown; }; $refs: { [x: string]: unknown; }; $slots: Readonly<{ [name: string]: Slot | undefined; }>; $root: ComponentPublicInstance | null; $parent: ComponentPublicInstance | null; $emit: ((event: "open") => void) & ((event: "update:modelValue", value: boolean) => void) & ((event: "closed") => void) & ((event: "close") => void) & ((event: "opened") => void) & ((event: "openAutoFocus") => void) & ((event: "closeAutoFocus") => void); $el: any; $options: ComponentOptionsBase; readonly size: EpPropFinalized; readonly withHeader: EpPropFinalized; readonly modalFade: EpPropFinalized; readonly headerAriaLevel: EpPropFinalized; readonly appendToBody: BooleanConstructor; readonly appendTo: EpPropFinalized<(new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement) | ((new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement))[], unknown, unknown, "body", boolean>; readonly beforeClose: { readonly type: PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly destroyOnClose: BooleanConstructor; readonly closeOnClickModal: EpPropFinalized; readonly closeOnPressEscape: EpPropFinalized; readonly lockScroll: EpPropFinalized; readonly modal: EpPropFinalized; readonly openDelay: EpPropFinalized; readonly closeDelay: EpPropFinalized; readonly top: { readonly type: PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly modelValue: BooleanConstructor; readonly modalClass: StringConstructor; readonly width: { readonly type: PropType>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly zIndex: { readonly type: PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly trapFocus: BooleanConstructor; readonly center: BooleanConstructor; readonly alignCenter: BooleanConstructor; readonly closeIcon: { readonly type: PropType (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly draggable: BooleanConstructor; readonly overflow: BooleanConstructor; readonly fullscreen: BooleanConstructor; readonly showClose: EpPropFinalized; readonly title: EpPropFinalized; readonly ariaLevel: EpPropFinalized; }>> & { "onUpdate:modelValue"?: ((value: boolean) => any) | undefined; onClose?: (() => any) | undefined; onOpen?: (() => any) | undefined; onOpenAutoFocus?: (() => any) | undefined; onCloseAutoFocus?: (() => any) | undefined; onOpened?: (() => any) | undefined; onClosed?: (() => any) | undefined; }, { handleClose: () => void; afterEnter: () => void; afterLeave: () => void; }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { open: () => void; "update:modelValue": (value: boolean) => void; close: () => void; opened: () => void; closed: () => void; openAutoFocus: () => void; closeAutoFocus: () => void; }, string, { readonly title: string; readonly direction: EpPropMergeType; readonly overflow: boolean; readonly center: boolean; readonly size: EpPropMergeType; readonly modelValue: boolean; readonly appendTo: EpPropMergeType<(new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement) | ((new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement))[], unknown, unknown>; readonly showClose: EpPropMergeType; readonly ariaLevel: string; readonly alignCenter: boolean; readonly draggable: boolean; readonly fullscreen: boolean; readonly closeOnClickModal: EpPropMergeType; readonly closeOnPressEscape: EpPropMergeType; readonly lockScroll: EpPropMergeType; readonly modal: EpPropMergeType; readonly openDelay: number; readonly closeDelay: number; readonly headerAriaLevel: string; readonly appendToBody: boolean; readonly destroyOnClose: boolean; readonly trapFocus: boolean; readonly withHeader: EpPropMergeType; readonly modalFade: EpPropMergeType; }, {}, string, {}> & { beforeCreate?: (() => void) | (() => void)[]; created?: (() => void) | (() => void)[]; beforeMount?: (() => void) | (() => void)[]; mounted?: (() => void) | (() => void)[]; beforeUpdate?: (() => void) | (() => void)[]; updated?: (() => void) | (() => void)[]; activated?: (() => void) | (() => void)[]; deactivated?: (() => void) | (() => void)[]; beforeDestroy?: (() => void) | (() => void)[]; beforeUnmount?: (() => void) | (() => void)[]; destroyed?: (() => void) | (() => void)[]; unmounted?: (() => void) | (() => void)[]; renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]; renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]; errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[]; }; $forceUpdate: () => void; $nextTick: nextTick; $watch any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, (cleanupFn: () => void) => void]) => any : (...args: [any, any, (cleanupFn: () => void) => void]) => any, options?: WatchOptions): WatchStopHandle; } & Omit; readonly size: EpPropFinalized; readonly withHeader: EpPropFinalized; readonly modalFade: EpPropFinalized; readonly headerAriaLevel: EpPropFinalized; readonly appendToBody: BooleanConstructor; readonly appendTo: EpPropFinalized<(new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement) | ((new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement))[], unknown, unknown, "body", boolean>; readonly beforeClose: { readonly type: PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly destroyOnClose: BooleanConstructor; readonly closeOnClickModal: EpPropFinalized; readonly closeOnPressEscape: EpPropFinalized; readonly lockScroll: EpPropFinalized; readonly modal: EpPropFinalized; readonly openDelay: EpPropFinalized; readonly closeDelay: EpPropFinalized; readonly top: { readonly type: PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly modelValue: BooleanConstructor; readonly modalClass: StringConstructor; readonly width: { readonly type: PropType>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly zIndex: { readonly type: PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly trapFocus: BooleanConstructor; readonly center: BooleanConstructor; readonly alignCenter: BooleanConstructor; readonly closeIcon: { readonly type: PropType (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly draggable: BooleanConstructor; readonly overflow: BooleanConstructor; readonly fullscreen: BooleanConstructor; readonly showClose: EpPropFinalized; readonly title: EpPropFinalized; readonly ariaLevel: EpPropFinalized; }>> & { "onUpdate:modelValue"?: ((value: boolean) => any) | undefined; onClose?: (() => any) | undefined; onOpen?: (() => any) | undefined; onOpenAutoFocus?: (() => any) | undefined; onCloseAutoFocus?: (() => any) | undefined; onOpened?: (() => any) | undefined; onClosed?: (() => any) | undefined; }, "handleClose" | "afterEnter" | "afterLeave"> & ShallowUnwrapRef<{ handleClose: () => void; afterEnter: () => void; afterLeave: () => void; }> & {} & ComponentCustomProperties & {} & { $slots: { header?(_: { close: () => void; titleId: string; titleClass: string; }): any; title?(_: {}): any; default?(_: {}): any; footer?(_: {}): any; }; }) | undefined>; formInstance: ComputedRef<{ $: ComponentInternalInstance; $data: {}; $props: Partial<{ readonly inline: boolean; readonly disabled: boolean; readonly labelWidth: EpPropMergeType; readonly labelPosition: EpPropMergeType; readonly inlineMessage: boolean; readonly showMessage: EpPropMergeType; readonly requireAsteriskPosition: EpPropMergeType; readonly labelSuffix: string; readonly validateOnRuleChange: EpPropMergeType; readonly statusIcon: boolean; readonly hideRequiredAsterisk: boolean; readonly scrollToError: boolean; }> & Omit<{ readonly disabled: boolean; readonly labelPosition: EpPropMergeType; readonly requireAsteriskPosition: EpPropMergeType; readonly labelWidth: EpPropMergeType; readonly labelSuffix: string; readonly inline: boolean; readonly inlineMessage: boolean; readonly statusIcon: boolean; readonly showMessage: EpPropMergeType; readonly validateOnRuleChange: EpPropMergeType; readonly hideRequiredAsterisk: boolean; readonly scrollToError: boolean; readonly size?: EpPropMergeType | undefined; readonly model?: Record | undefined; readonly rules?: Partial>> | undefined; readonly scrollIntoViewOptions?: EpPropMergeType | undefined; onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined; } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{ readonly model: ObjectConstructor; readonly rules: { readonly type: PropType>>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly labelPosition: EpPropFinalized; readonly requireAsteriskPosition: EpPropFinalized; readonly labelWidth: EpPropFinalized; readonly labelSuffix: EpPropFinalized; readonly inline: BooleanConstructor; readonly inlineMessage: BooleanConstructor; readonly statusIcon: BooleanConstructor; readonly showMessage: EpPropFinalized; readonly validateOnRuleChange: EpPropFinalized; readonly hideRequiredAsterisk: BooleanConstructor; readonly scrollToError: BooleanConstructor; readonly scrollIntoViewOptions: { readonly type: PropType>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly size: { readonly type: PropType>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly disabled: BooleanConstructor; }>> & { onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined; }, "disabled" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inline" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">; $attrs: { [x: string]: unknown; }; $refs: { [x: string]: unknown; }; $slots: Readonly<{ [name: string]: Slot | undefined; }>; $root: ComponentPublicInstance | null; $parent: ComponentPublicInstance | null; $emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void; $el: any; $options: ComponentOptionsBase>>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly labelPosition: EpPropFinalized; readonly requireAsteriskPosition: EpPropFinalized; readonly labelWidth: EpPropFinalized; readonly labelSuffix: EpPropFinalized; readonly inline: BooleanConstructor; readonly inlineMessage: BooleanConstructor; readonly statusIcon: BooleanConstructor; readonly showMessage: EpPropFinalized; readonly validateOnRuleChange: EpPropFinalized; readonly hideRequiredAsterisk: BooleanConstructor; readonly scrollToError: BooleanConstructor; readonly scrollIntoViewOptions: { readonly type: PropType>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly size: { readonly type: PropType>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly disabled: BooleanConstructor; }>> & { onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined; }, { validate: (callback?: FormValidateCallback | undefined) => FormValidationResult; validateField: (props?: Arrayable | undefined, callback?: FormValidateCallback | undefined) => FormValidationResult; resetFields: (props?: Arrayable | undefined) => void; clearValidate: (props?: Arrayable | undefined) => void; scrollToField: (prop: FormItemProp) => void; fields: FormItemContext[]; }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { validate: (prop: FormItemProp, isValid: boolean, message: string) => void; }, string, { readonly inline: boolean; readonly disabled: boolean; readonly labelWidth: EpPropMergeType; readonly labelPosition: EpPropMergeType; readonly inlineMessage: boolean; readonly showMessage: EpPropMergeType; readonly requireAsteriskPosition: EpPropMergeType; readonly labelSuffix: string; readonly validateOnRuleChange: EpPropMergeType; readonly statusIcon: boolean; readonly hideRequiredAsterisk: boolean; readonly scrollToError: boolean; }, {}, string, {}> & { beforeCreate?: (() => void) | (() => void)[]; created?: (() => void) | (() => void)[]; beforeMount?: (() => void) | (() => void)[]; mounted?: (() => void) | (() => void)[]; beforeUpdate?: (() => void) | (() => void)[]; updated?: (() => void) | (() => void)[]; activated?: (() => void) | (() => void)[]; deactivated?: (() => void) | (() => void)[]; beforeDestroy?: (() => void) | (() => void)[]; beforeUnmount?: (() => void) | (() => void)[]; destroyed?: (() => void) | (() => void)[]; unmounted?: (() => void) | (() => void)[]; renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]; renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]; errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[]; }; $forceUpdate: () => void; $nextTick: nextTick; $watch any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, (cleanupFn: () => void) => void]) => any : (...args: [any, any, (cleanupFn: () => void) => void]) => any, options?: WatchOptions): WatchStopHandle; } & Omit>>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly labelPosition: EpPropFinalized; readonly requireAsteriskPosition: EpPropFinalized; readonly labelWidth: EpPropFinalized; readonly labelSuffix: EpPropFinalized; readonly inline: BooleanConstructor; readonly inlineMessage: BooleanConstructor; readonly statusIcon: BooleanConstructor; readonly showMessage: EpPropFinalized; readonly validateOnRuleChange: EpPropFinalized; readonly hideRequiredAsterisk: BooleanConstructor; readonly scrollToError: BooleanConstructor; readonly scrollIntoViewOptions: { readonly type: PropType>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly size: { readonly type: PropType>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly disabled: BooleanConstructor; }>> & { onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined; }, "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "fields"> & ShallowUnwrapRef<{ validate: (callback?: FormValidateCallback | undefined) => FormValidationResult; validateField: (props?: Arrayable | undefined, callback?: FormValidateCallback | undefined) => FormValidationResult; resetFields: (props?: Arrayable | undefined) => void; clearValidate: (props?: Arrayable | undefined) => void; scrollToField: (prop: FormItemProp) => void; fields: FormItemContext[]; }> & {} & ComponentCustomProperties & {} & { $slots: { default?(_: {}): any; }; }>; }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { "update:modelValue": (values: FieldValues) => void; "update:visible": (visible: boolean) => void; confirm: (values: FieldValues) => void; change: (values: FieldValues, column: PlusColumn) => void; cancel: () => void; confirmError: (errors: unknown) => void; }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps, { modelValue: () => {}; visible: boolean; hasFooter: boolean; cancelText: string; confirmText: string; confirmLoading: boolean; hasErrorTip: boolean; size: string; /** * @deprecated v0.1.5 */ drawer: () => {}; form: () => {}; }>>> & { "onUpdate:visible"?: ((visible: boolean) => any) | undefined; onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined; "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined; onCancel?: (() => any) | undefined; onConfirm?: ((values: FieldValues) => any) | undefined; onConfirmError?: ((errors: unknown) => any) | undefined; }, { visible: boolean; size: string | number; modelValue: FieldValues; hasErrorTip: boolean; hasFooter: boolean; form: PlusFormProps; confirmText: string; cancelText: string; confirmLoading: boolean; drawer: Partial>; }, {}>; declare const _default: __VLS_WithTemplateSlots>; export default _default; type __VLS_NonUndefinedable = T extends undefined ? never : T; type __VLS_TypePropsToRuntimeProps = { [K in keyof T]-?: {} extends Pick ? { type: PropType<__VLS_NonUndefinedable>; } : { type: PropType; required: true; }; }; type __VLS_WithDefaults = { [K in keyof Pick]: K extends keyof D ? __VLS_Prettify : P[K]; }; type __VLS_Prettify = { [K in keyof T]: T[K]; } & {}; type __VLS_WithTemplateSlots = T & { new (): { $slots: S; }; };