import { EpPropMergeType } from 'element-plus/es/utils'; import { LooseRequired } from '@vue/shared'; import { FormInstance, ElTooltipProps, FormItemProps, ProgressFn, CascaderNode, PopperEffect, InputAutoSize, AutocompleteProps, CheckboxGroupProps, ColorPickerProps, DatePickerProps, InputProps, InputNumberProps, RadioGroupProps, RateProps, SelectProps, SliderProps, SwitchProps, TimePickerDefaultProps, TimeSelectProps, TextProps, ImageProps, LinkProps, TagProps, ProgressProps } from 'element-plus'; import { FieldValues, PlusColumn, RecordType, Mutable, PropsItemType, OmitTypes, CascaderProps, OptionsType, RenderTypes, TableValueType, FormItemValueType, FieldValueType, OptionsRow } from 'yc-pro-components'; import { PlusDialogProps, PlusFormProps, PlusFormItemProps, PlusRadioProps, PlusDatePickerProps, PlusInputTagProps } from 'packages/yc-components'; import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Ref, CSSProperties, Component } from 'vue'; import { default as DialogForm } from './src/index.vue'; export type { PlusDialogFormProps } from './src/index.vue'; export type PlusDialogFormInstance = InstanceType; export declare const PlusDialogForm: { new (...args: any[]): CreateComponentPublicInstance; default: () => {}; }; form: { type: PropType; default: () => {}; }; visible: { type: PropType; default: boolean; }; modelValue: { type: PropType; default: () => {}; }; hasErrorTip: { type: PropType; default: boolean; }; }>> & { onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined; "onUpdate:visible"?: ((visible: boolean) => any) | undefined; "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined; onClose?: (() => any) | undefined; onCancel?: (() => any) | undefined; onConfirm?: ((values: FieldValues) => any) | undefined; onConfirmError?: ((errors: unknown) => any) | undefined; }, { handleConfirm: () => void; handleCancel: () => void; formInstance: ComputedRef; }, 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; close: () => void; confirmError: (errors: unknown) => void; }, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{ dialog: { type: PropType; default: () => {}; }; form: { type: PropType; default: () => {}; }; visible: { type: PropType; default: boolean; }; modelValue: { type: PropType; default: () => {}; }; hasErrorTip: { type: PropType; default: boolean; }; }>> & { onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined; "onUpdate:visible"?: ((visible: boolean) => any) | undefined; "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined; onClose?: (() => any) | undefined; onCancel?: (() => any) | undefined; onConfirm?: ((values: FieldValues) => any) | undefined; onConfirmError?: ((errors: unknown) => any) | undefined; }, { dialog: PlusDialogProps; form: PlusFormProps; visible: boolean; modelValue: FieldValues; hasErrorTip: boolean; }, true, {}, {}, { P: {}; B: {}; D: {}; C: {}; M: {}; Defaults: {}; }, Readonly< ExtractPropTypes<{ dialog: { type: PropType; default: () => {}; }; form: { type: PropType; default: () => {}; }; visible: { type: PropType; default: boolean; }; modelValue: { type: PropType; default: () => {}; }; hasErrorTip: { type: PropType; default: boolean; }; }>> & { onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined; "onUpdate:visible"?: ((visible: boolean) => any) | undefined; "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined; onClose?: (() => any) | undefined; onCancel?: (() => any) | undefined; onConfirm?: ((values: FieldValues) => any) | undefined; onConfirmError?: ((errors: unknown) => any) | undefined; }, { handleConfirm: () => void; handleCancel: () => void; formInstance: ComputedRef; }, {}, {}, {}, { dialog: PlusDialogProps; form: PlusFormProps; visible: boolean; modelValue: FieldValues; hasErrorTip: boolean; }>; __isFragment?: undefined; __isTeleport?: undefined; __isSuspense?: undefined; } & ComponentOptionsBase; default: () => {}; }; form: { type: PropType; default: () => {}; }; visible: { type: PropType; default: boolean; }; modelValue: { type: PropType; default: () => {}; }; hasErrorTip: { type: PropType; default: boolean; }; }>> & { onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined; "onUpdate:visible"?: ((visible: boolean) => any) | undefined; "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined; onClose?: (() => any) | undefined; onCancel?: (() => any) | undefined; onConfirm?: ((values: FieldValues) => any) | undefined; onConfirmError?: ((errors: unknown) => any) | undefined; }, { handleConfirm: () => void; handleCancel: () => void; formInstance: ComputedRef; }, 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; close: () => void; confirmError: (errors: unknown) => void; }, string, { dialog: PlusDialogProps; form: PlusFormProps; visible: boolean; modelValue: FieldValues; hasErrorTip: boolean; }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => { $slots: Partial, (_: { column: Readonly, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & { readonly label: string | ComputedRef; readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null; readonly hasLabel: boolean | Ref | ComputedRef; readonly tooltip: string | Partial< Mutable & { style?: CSSProperties | undefined; class?: any; } & RecordType> | ComputedRef | ComputedRef & { style?: CSSProperties | undefined; class?: any; } & RecordType>>; readonly formItemProps: PropsItemType< Mutable & { [key: string]: any; style?: CSSProperties | undefined; }>; readonly fieldProps: PropsItemType | undefined; step: string | number; format: string | ProgressFn | undefined; filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined; id: string | [string, string]; effect: EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>; height: string | number; autosize: InputAutoSize; } & Mutable & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< SelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes>>>>; readonly options: OptionsType; readonly fieldSlots: { [slotName: string]: (data?: any) => RenderTypes; }; readonly valueType: TableValueType | FormItemValueType; readonly renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined; readonly renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined; readonly fieldChildrenSlot: ((option?: OptionsRow | undefined) => RenderTypes) | undefined; readonly renderErrorMessage: ((props: PlusColumn & { value?: FieldValueType; error?: string | undefined; label?: string | undefined; }) => RenderTypes) | undefined; readonly optionsMap: { label?: string | undefined; value?: string | undefined; } | undefined; readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow[] | Promise< OptionsRow[]>) | { store?: any; method?: string | undefined; transform?: ((data: any) => OptionsRow[]) | undefined; dictCode?: string | undefined; } | undefined; readonly clearable: boolean; readonly index: number; } & { readonly clearable: boolean; }; label: string; fieldProps: RecordType; formItemProps: RecordType; options: OptionsRow[]; fieldInstance?: any; valueIsReady?: Ref | undefined; prop: string; modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null; hasLabel: boolean | Ref | ComputedRef; tooltip: string | Partial< Mutable & { style?: CSSProperties | undefined; class?: any; } & RecordType> | ComputedRef | ComputedRef & { style?: CSSProperties | undefined; class?: any; } & RecordType>>; fieldSlots: { [slotName: string]: (data?: any) => RenderTypes; }; valueType: TableValueType | FormItemValueType; renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined; renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined; fieldChildrenSlot: ((option?: OptionsRow | undefined) => RenderTypes) | undefined; renderErrorMessage: ((props: PlusColumn & { value?: FieldValueType; error?: string | undefined; label?: string | undefined; }) => RenderTypes) | undefined; optionsMap: { label?: string | undefined; value?: string | undefined; } | undefined; autoDict: boolean | ((column: PlusColumn) => OptionsRow[] | Promise< OptionsRow[]>) | { store?: any; method?: string | undefined; transform?: ((data: any) => OptionsRow[]) | undefined; dictCode?: string | undefined; } | undefined; clearable: boolean; index: number; }) => any>> & { "dialog-header"?(_: {}): any; "dialog-footer"?(_: { handleConfirm: () => void; handleCancel: () => void; }): any; "form-footer"?(_: { handleReset: () => void; handleSubmit: () => void; }): any; "form-group-header"?(_: { title: string; columns: PlusColumn[] | undefined; icon: Component | undefined; index: number; }): any; }; });