import { PlusRadioProps, PlusDatePickerProps, PlusInputTagProps, PlusFormProps } from 'firefly-plus-components'; import { EpPropMergeType } from 'element-plus/es/utils'; import { PlusFormItemProps } from 'firefly-plus-components/es/components/form-item'; import { LooseRequired } from '@vue/shared'; import { PlusColumn, FieldValues, FieldValueType, Mutable, RecordType, TableValueType, PropsItemType, OmitTypes, CascaderProps, OptionsType, RenderTypes, FormItemValueType, OptionsRow, Extras } from 'firefly-plus-components/es/types'; import { RowProps, ColProps, ElTooltipProps, FormItemProps, ProgressFn, CascaderNode, InputAutoSize, AutocompleteProps, CheckboxGroupProps, ColorPickerProps, DatePickerProps, InputProps, InputNumberProps, RadioGroupProps, RateProps, ISelectProps, SliderProps, SwitchProps, TimePickerDefaultProps, TimeSelectProps, TextProps, ImageProps, LinkProps, TagProps, ProgressProps, TableColumnCtx } from 'element-plus'; import { Ref, ComputedRef, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, CSSProperties, PropType } from 'vue'; export interface PlusFormContentProps { modelValue?: FieldValues; hasLabel?: boolean; columns?: PlusColumn[]; rowProps?: Partial>; colProps?: Partial>; } export interface PlusFormContentEmits { (e: 'update:modelValue', values: FieldValues): void; (e: 'change', values: FieldValues, column: PlusColumn): void; } declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps, { modelValue: () => {}; hasLabel: boolean; rowProps: () => {}; colProps: () => {}; columns: () => never[]; }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { "update:modelValue": (values: FieldValues) => void; change: (values: FieldValues, column: PlusColumn) => void; }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps, { modelValue: () => {}; hasLabel: boolean; rowProps: () => {}; colProps: () => {}; columns: () => never[]; }>>> & { onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined; "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined; }, { columns: PlusColumn[]; hasLabel: boolean; modelValue: FieldValues; rowProps: Partial>; colProps: Partial>; }, {}>, Partial, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "hasLabel" | "modelValue" | "valueType" | "options" | "renderField" | "renderLabel" | "fieldSlots" | "fieldChildrenSlot">> & { readonly label: string | ComputedRef; readonly modelValue: string | number | boolean | RecordType | string[] | Date | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null; readonly hasLabel: boolean | Ref | ComputedRef; readonly tooltip: string | ElTooltipProps; readonly formItemProps: PropsItemType & { [key: string]: any; style?: CSSProperties | undefined; }>; readonly fieldProps: PropsItemType | undefined; step: string | number; format: string | ProgressFn | undefined; filterMethod: Function | ((node: CascaderNode, keyword: string) => boolean) | undefined; id: string | [string, string]; effect: EpPropMergeType<(new (...args: any[]) => "dark" | "light") | (() => "dark" | "light") | ((new (...args: any[]) => "dark" | "light") | (() => "dark" | "light"))[], 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< ISelectProps, 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 index: number; } & {}; }) => any>> & Partial, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "hasLabel" | "modelValue" | "valueType" | "options" | "renderField" | "renderLabel" | "fieldSlots" | "fieldChildrenSlot">> & { readonly label: string | ComputedRef; readonly modelValue: string | number | boolean | RecordType | string[] | Date | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null; readonly hasLabel: boolean | Ref | ComputedRef; readonly tooltip: string | ElTooltipProps; readonly formItemProps: PropsItemType & { [key: string]: any; style?: CSSProperties | undefined; }>; readonly fieldProps: PropsItemType | undefined; step: string | number; format: string | ProgressFn | undefined; filterMethod: Function | ((node: CascaderNode, keyword: string) => boolean) | undefined; id: string | [string, string]; effect: EpPropMergeType<(new (...args: any[]) => "dark" | "light") | (() => "dark" | "light") | ((new (...args: any[]) => "dark" | "light") | (() => "dark" | "light"))[], 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< ISelectProps, 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 index: number; } & {}; }) => any>> & Partial | undefined; prop: string; width?: string | number | undefined; minWidth?: string | number | undefined; editable?: boolean | undefined; extras?: Extras | undefined; valueType?: TableValueType | FormItemValueType; hideInDescriptions?: boolean | Ref | ComputedRef | undefined; hideInForm?: boolean | Ref | ComputedRef | undefined; hideInTable?: boolean | Ref | ComputedRef | undefined; hideInSearch?: boolean | Ref | ComputedRef | undefined; descriptionsItemProps?: RecordType | undefined; options?: OptionsType | undefined; customGetStatus?: ((data: { options: OptionsRow[]; value: string | number; row: RecordType; }) => OptionsRow) | undefined; tooltip?: string | ElTooltipProps | undefined; render?: ((value: any, data: { row: RecordType; column: PlusColumn; index: number; }) => RenderTypes) | undefined; renderHTML?: ((value: any, data: { row: RecordType; column: PlusColumn; index: number; }) => string) | undefined; renderHeader?: ((label: string, props: PlusColumn) => RenderTypes) | undefined; renderDescriptionsItem?: ((data: { value: string; column: PlusColumn; row: RecordType; }) => RenderTypes) | undefined; renderDescriptionsLabel?: ((data: { label: string; column: PlusColumn; row: RecordType; }) => RenderTypes) | undefined; order?: number | ComputedRef | undefined; headerFilter?: boolean | undefined; disabledHeaderFilter?: boolean | undefined; tableColumnProps?: Partial, "label " | "prop" | "width" | "minWidth"> & { [key: string]: any; }> | undefined; preview?: boolean | undefined; linkText?: string | undefined; formatter?: ((value: any, data: { row: RecordType; column: PlusColumn; index: number; }) => string | number) | undefined; formProps?: PropsItemType | undefined; formItemProps?: PropsItemType & { [key: string]: any; style?: CSSProperties | undefined; }> | undefined; fieldProps?: PropsItemType | undefined; step: string | number; format: string | ProgressFn | undefined; filterMethod: Function | ((node: CascaderNode, keyword: string) => boolean) | undefined; id: string | [string, string]; effect: EpPropMergeType<(new (...args: any[]) => "dark" | "light") | (() => "dark" | "light") | ((new (...args: any[]) => "dark" | "light") | (() => "dark" | "light"))[], 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< ISelectProps, 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>>>> | undefined; renderField?: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined; colProps?: Partial & { [key: string]: any; style?: CSSProperties | undefined; }> | undefined; hasLabel?: boolean | Ref | ComputedRef | undefined; renderLabel?: ((label: string, props: PlusColumn) => RenderTypes) | undefined; renderExtra?: ((column: PlusColumn) => RenderTypes) | undefined; fieldSlots?: { [slotName: string]: (data?: any) => RenderTypes; } | undefined; fieldChildrenSlot?: ((option?: OptionsRow | undefined) => RenderTypes) | undefined; }) => any>> & { "tooltip-icon"?(_: {}): any; "search-footer"?(_: {}): any; }>; 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; }; };