import { TimeSelectProps } from 'element-plus/es/components/time-select/src/time-select'; import { EpPropMergeType } from 'element-plus/es/utils'; import { ElTooltipProps, FormItemProps, ProgressFn, CascaderNode, InputAutoSize, AutocompleteProps, CheckboxGroupProps, ColorPickerProps, DatePickerProps, InputProps, InputNumberProps, RadioGroupProps, RateProps, ISelectProps, SliderProps, SwitchProps, TimePickerDefaultProps, TextProps, ImageProps, LinkProps, TagProps, ProgressProps } from 'element-plus'; import { LooseRequired } from '@vue/shared'; import { PlusFormProps, PlusFormItemProps, PlusRadioProps, PlusDatePickerProps, PlusInputTagProps } from 'plus-pro-components'; import { FormChangeCallBackParams } from './type'; import { Ref, DefineComponent, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, CSSProperties, PublicProps } from 'vue'; import { PageInfo, PlusColumn, RecordType, FieldValueType, Mutable, PropsItemType, OmitTypes, CascaderProps, OptionsType, RenderTypes, TableValueType, FormItemValueType, OptionsRow } from 'plus-pro-components/es/types'; export interface PlusTableColumnProps { columns?: PlusColumn[]; editable?: boolean | 'click' | 'dblclick'; tableDataLength?: number; subPageInfo?: Partial; } export interface PlusTableColumnEmits { (e: 'formChange', data: FormChangeCallBackParams): void; } declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps, { columns: () => never[]; tableDataLength: number; editable: boolean; subPageInfo: () => {}; }>, { plusDisplayItemInstance: Ref<({ $: ComponentInternalInstance; $data: {}; $props: Partial<{ index: number; formProps: PlusFormProps; rest: RecordType; column: PlusColumn; editable: boolean | "click" | "dblclick"; row: RecordType; }> & Omit<{ readonly index: number; readonly formProps: PlusFormProps; readonly rest: RecordType; readonly column: PlusColumn; readonly editable: boolean | "click" | "dblclick"; readonly row: RecordType; onChange?: ((data: { value: FieldValueType; prop: string; row: RecordType; }) => any) | undefined; } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{ index: { type: PropType; default: number; }; formProps: { type: PropType; default: () => {}; }; rest: { type: PropType; default: () => {}; }; column: { type: PropType; required: true; default: () => { prop: string; label: string; }; }; editable: { type: PropType; default: boolean; }; row: { type: PropType; required: true; default: () => {}; }; }>> & { onChange?: ((data: { value: FieldValueType; prop: string; row: RecordType; }) => any) | undefined; }, "index" | "formProps" | "rest" | "column" | "editable" | "row">; $attrs: { [x: string]: unknown; }; $refs: { [x: string]: unknown; }; $slots: Readonly<{ [name: string]: Slot | undefined; }>; $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase, {}, {}> | null; $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase, {}, {}> | null; $emit: (event: "change", data: { value: FieldValueType; prop: string; row: RecordType; }) => void; $el: any; $options: ComponentOptionsBase; default: number; }; formProps: { type: PropType; default: () => {}; }; rest: { type: PropType; default: () => {}; }; column: { type: PropType; required: true; default: () => { prop: string; label: string; }; }; editable: { type: PropType; default: boolean; }; row: { type: PropType; required: true; default: () => {}; }; }>> & { onChange?: ((data: { value: FieldValueType; prop: string; row: RecordType; }) => any) | undefined; }, { startCellEdit: () => void; stopCellEdit: () => void; getDisplayItemInstance: () => { isEdit: Ref; index: number; rowIndex: number; cellIndex: any; prop: string; formInstance: ComputedRef; }; }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { change: (data: { value: FieldValueType; prop: string; row: RecordType; }) => void; }, string, { index: number; formProps: PlusFormProps; rest: RecordType; column: PlusColumn; editable: boolean | "click" | "dblclick"; row: RecordType; }, {}, string, {}> & { beforeCreate?: ((() => void) | (() => void)[]) | undefined; created?: ((() => void) | (() => void)[]) | undefined; beforeMount?: ((() => void) | (() => void)[]) | undefined; mounted?: ((() => void) | (() => void)[]) | undefined; beforeUpdate?: ((() => void) | (() => void)[]) | undefined; updated?: ((() => void) | (() => void)[]) | undefined; activated?: ((() => void) | (() => void)[]) | undefined; deactivated?: ((() => void) | (() => void)[]) | undefined; beforeDestroy?: ((() => void) | (() => void)[]) | undefined; beforeUnmount?: ((() => void) | (() => void)[]) | undefined; destroyed?: ((() => void) | (() => void)[]) | undefined; unmounted?: ((() => void) | (() => void)[]) | undefined; renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined; renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined; errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase, {}, {}> | null, info: string) => boolean | void)[]) | undefined; }; $forceUpdate: () => void; $nextTick: nextTick; $watch any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions | undefined): WatchStopHandle; } & Omit; default: number; }; formProps: { type: PropType; default: () => {}; }; rest: { type: PropType; default: () => {}; }; column: { type: PropType; required: true; default: () => { prop: string; label: string; }; }; editable: { type: PropType; default: boolean; }; row: { type: PropType; required: true; default: () => {}; }; }>> & { onChange?: ((data: { value: FieldValueType; prop: string; row: RecordType; }) => any) | undefined; }, "startCellEdit" | "stopCellEdit" | "getDisplayItemInstance"> & ShallowUnwrapRef<{ startCellEdit: () => void; stopCellEdit: () => void; getDisplayItemInstance: () => { isEdit: Ref; index: number; rowIndex: number; cellIndex: any; prop: string; formInstance: ComputedRef; }; }> & {} & ComponentCustomProperties & {} & { $slots: Partial, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "modelValue" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & { readonly label: string | ComputedRef; readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | 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 | EpPropMergeType | undefined; step: string | number; format: string | ProgressFn | undefined; filterMethod: Function | ((node: CascaderNode, keyword: string) => boolean) | undefined; id: string | [string, string]; effect: string; 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 renderErrorMessage: ((props: PlusColumn & { value?: FieldValueType; error?: string | undefined; label?: string | undefined; }) => RenderTypes) | undefined; readonly optionsMap: { label?: string | undefined; value?: 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 | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | 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; clearable: boolean; index: number; }) => any>> & Partial, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "modelValue" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & { readonly label: string | ComputedRef; readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | 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 | EpPropMergeType | undefined; step: string | number; format: string | ProgressFn | undefined; filterMethod: Function | ((node: CascaderNode, keyword: string) => boolean) | undefined; id: string | [string, string]; effect: string; 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 renderErrorMessage: ((props: PlusColumn & { value?: FieldValueType; error?: string | undefined; label?: string | undefined; }) => RenderTypes) | undefined; readonly optionsMap: { label?: string | undefined; value?: 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 | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | 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; clearable: boolean; index: number; }) => any>> & Partial, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "modelValue" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & { readonly label: string | ComputedRef; readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | 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 | EpPropMergeType | undefined; step: string | number; format: string | ProgressFn | undefined; filterMethod: Function | ((node: CascaderNode, keyword: string) => boolean) | undefined; id: string | [string, string]; effect: string; 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 renderErrorMessage: ((props: PlusColumn & { value?: FieldValueType; error?: string | undefined; label?: string | undefined; }) => RenderTypes) | undefined; readonly optionsMap: { label?: string | undefined; value?: 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 | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | 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; clearable: boolean; index: number; }) => any>> & Partial[]; value: any; }) => any>> & { "edit-icon"?(_: {}): any; }; })[] | null | undefined>; }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { formChange: (data: FormChangeCallBackParams) => void; }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps, { columns: () => never[]; tableDataLength: number; editable: boolean; subPageInfo: () => {}; }>>> & { onFormChange?: ((data: FormChangeCallBackParams) => any) | undefined; }, { columns: PlusColumn[]; editable: boolean | "click" | "dblclick"; tableDataLength: number; subPageInfo: Partial; }, {}>, Partial any>> & Partial, (_: any) => any>> & Partial, (_: { column: any; prop: string; valueType: TableValueType | FormItemValueType; row: RecordType; index: number; rowIndex: number; fieldProps: RecordType; options: OptionsRow[]; value: any; }) => any>> & { "tooltip-icon"?(_: {}): 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; }; };