@aplus-frontend/ui
Version:
994 lines (993 loc) • 174 kB
TypeScript
import { ApTableValueFields } from './interface';
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentInternalInstance, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, CSSProperties, DefineComponent } from 'vue';
import { ApFormItemDateProps, ApFormItemDateRangeProps, ApFormItemNumberProps, ApFormItemRadioProps, ApFormItemSelectProps, ApFormItemSwitchProps, ApFormItemTextProps, ApFormItemTextAreaProps, ApFormItemCheckboxProps, ApFormItemTextPasswordProps, ApFormItemTreeSelectProps } from '../ap-form/items/interface';
import { ApFieldDateProps, ApFieldDateRangeProps, ApFieldNumberProps, FieldMode, ApFieldRadioProps, ApFieldSelectProps, ApFieldSwitchProps, ApFieldTextProps, ApFieldTextAreaProps, ApFieldCheckboxProps, ApFieldTextPasswordProps, ApFieldTreeSelectProps } from '../ap-field';
import { ApFormItemSlots, ApFormItemTextPassword, ApActionGroupProps, GroupActionTypes } from '..';
import { ValueType } from '@aplus-frontend/antdv/es/input-number/src/utils/MiniDecimal';
import { KeyboardEventHandler, FocusEventHandler, ChangeEventHandler, CompositionEventHandler, MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
import { ButtonSize, SizeType } from '@aplus-frontend/antdv/es/button';
import { VueTypeValidableDef } from '../../node_modules/vue-types';
import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
import { OnCleanup } from '@vue/reactivity';
import { RadioGroupChildOption } from '@aplus-frontend/antdv/es/radio/Group';
import { RadioGroupButtonStyle, RadioGroupOptionType } from '@aplus-frontend/antdv/es/radio/interface';
import { RadioChangeEvent, TreeSelectProps, CheckboxOptionType } from '@aplus-frontend/antdv';
import { SelectValue, DefaultOptionType, LabeledValue, BaseOptionType } from '@aplus-frontend/antdv/es/select';
import { SelectHandler, FieldNames, FilterFunc } from '@aplus-frontend/antdv/es/vc-select/Select';
import { RenderDOMFunc, CustomTagProps, DropdownRender, DisplayValueType } from '@aplus-frontend/antdv/es/vc-select/BaseSelect';
import { AlignType } from '@aplus-frontend/antdv/es/vc-trigger/interface';
import { Recordable, LiteralUnion } from '../type';
import { InputFocusOptions } from '@aplus-frontend/antdv/es/vc-input/utils/commonUtils';
import { ShowCountProps } from '@aplus-frontend/antdv/es/vc-input/inputProps';
import { ApFormItemTextGroup } from '../ap-form/items/text';
import { AutoSizeType } from '@aplus-frontend/antdv/es/input/inputProps';
import { LegacyDataNode, FieldNames, Key } from '@aplus-frontend/antdv/es/vc-tree-select/interface';
import { ChangeEventExtra, FieldNames, DefaultOptionType, BaseOptionType, SimpleModeConfig, LegacyDataNode } from '@aplus-frontend/antdv/es/vc-tree-select/TreeSelect';
import { CheckedStrategy } from '@aplus-frontend/antdv/es/vc-tree-select/utils/strategyUtil';
import { ExpandAction } from '@aplus-frontend/antdv/es/vc-tree/props';
import { ApFormatPresetType } from '../ap-field/date/interface';
import { Trigger } from '@aplus-frontend/antdv/es/dropdown/props';
import { ApTableIndexProps, ApTableStatusProps } from './components/interface';
/**
* 表格到查询表单的映射
*/
export declare const apTableFormItemMap: {
date: {
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFormItemDateProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
disabled: boolean;
colon: boolean;
required: boolean;
hasFeedback: boolean;
autoLink: boolean;
validateFirst: boolean;
field: Omit< ApFieldDateProps, "value" | "onUpdate:value">;
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly< ApFormItemDateProps> & Readonly<{}>, {}, {}, {}, {}, {
disabled: boolean;
colon: boolean;
required: boolean;
hasFeedback: boolean;
autoLink: boolean;
validateFirst: boolean;
field: Omit< ApFieldDateProps, "value" | "onUpdate:value">;
}>;
__isFragment?: never;
__isTeleport?: never;
__isSuspense?: never;
} & ComponentOptionsBase<Readonly< ApFormItemDateProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
disabled: boolean;
colon: boolean;
required: boolean;
hasFeedback: boolean;
autoLink: boolean;
validateFirst: boolean;
field: Omit< ApFieldDateProps, "value" | "onUpdate:value">;
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
$slots: Readonly<{
dateRender: any;
suffixIcon?: any;
prevIcon?: any;
nextIcon?: any;
superPrevIcon?: any;
superNextIcon?: any;
renderExtraFooter?: any;
monthCellRender?: any;
monthCellContentRender?: any;
clearIcon?: any;
default?: any;
} & Omit< ApFormItemSlots, "default">> & {
dateRender: any;
suffixIcon?: any;
prevIcon?: any;
nextIcon?: any;
superPrevIcon?: any;
superNextIcon?: any;
renderExtraFooter?: any;
monthCellRender?: any;
monthCellContentRender?: any;
clearIcon?: any;
default?: any;
} & Omit< ApFormItemSlots, "default">;
});
dateRange: {
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFormItemDateRangeProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
disabled: boolean;
colon: boolean;
required: boolean;
hasFeedback: boolean;
autoLink: boolean;
validateFirst: boolean;
field: Omit< ApFieldDateRangeProps, "value" | "onUpdate:value">;
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly< ApFormItemDateRangeProps> & Readonly<{}>, {}, {}, {}, {}, {
disabled: boolean;
colon: boolean;
required: boolean;
hasFeedback: boolean;
autoLink: boolean;
validateFirst: boolean;
field: Omit< ApFieldDateRangeProps, "value" | "onUpdate:value">;
}>;
__isFragment?: never;
__isTeleport?: never;
__isSuspense?: never;
} & ComponentOptionsBase<Readonly< ApFormItemDateRangeProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
disabled: boolean;
colon: boolean;
required: boolean;
hasFeedback: boolean;
autoLink: boolean;
validateFirst: boolean;
field: Omit< ApFieldDateRangeProps, "value" | "onUpdate:value">;
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
$slots: Readonly<{
suffixIcon?: any;
prevIcon?: any;
nextIcon?: any;
superPrevIcon?: any;
superNextIcon?: any;
dateRender?: any;
renderExtraFooter?: any;
default?: any;
separator?: any;
clearIcon?: any;
} & Omit< ApFormItemSlots, "default">> & {
suffixIcon?: any;
prevIcon?: any;
nextIcon?: any;
superPrevIcon?: any;
superNextIcon?: any;
dateRender?: any;
renderExtraFooter?: any;
default?: any;
separator?: any;
clearIcon?: any;
} & Omit< ApFormItemSlots, "default">;
});
number: {
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFormItemNumberProps> & Readonly<{}>, {
focus: () => void;
blur: () => void;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
disabled: boolean;
colon: boolean;
required: boolean;
hasFeedback: boolean;
autoLink: boolean;
validateFirst: boolean;
field: Omit< ApFieldNumberProps, "value" | "onUpdate:value">;
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
inputNumberRef: ({
$: ComponentInternalInstance;
$data: {};
$props: {
readonly mode?: FieldMode | undefined;
readonly class?: unknown;
readonly style?: unknown;
readonly size?: "small" | "large" | "middle" | undefined;
readonly step?: ValueType | undefined;
readonly onBlur?: ((e: FocusEvent) => void) | undefined;
readonly onChange?: ((value: ValueType) => void) | undefined;
readonly onFocus?: ((e: FocusEvent) => void) | undefined;
readonly onInput?: ((text: string) => void) | undefined;
readonly value?: ValueType | undefined;
readonly disabled?: boolean | undefined;
readonly prefixCls?: string | undefined;
readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
readonly keyboard?: boolean | undefined;
readonly autofocus?: boolean | undefined;
readonly 'onUpdate:value'?: (((value: ValueType) => void) & ((...args: any[]) => any)) | undefined;
readonly bordered?: boolean | undefined;
readonly readonly?: boolean | undefined;
readonly onPressEnter?: KeyboardEventHandler | undefined;
readonly status?: "" | "error" | "warning" | undefined;
readonly defaultValue?: ValueType | undefined;
readonly changeOnWheel?: boolean | undefined;
readonly stringMode?: boolean | undefined;
readonly min?: ValueType | undefined;
readonly max?: ValueType | undefined;
readonly controls?: boolean | undefined;
readonly parser?: ((displayValue: string) => ValueType) | undefined;
readonly formatter?: ((value: ValueType, info: {
userTyping: boolean;
input: string;
}) => string) | undefined;
readonly onStep?: ((value: ValueType, info: {
offset: ValueType;
type: "up" | "down";
}) => void) | undefined;
readonly type?: string | undefined;
readonly placeholder?: string | undefined;
readonly name?: string | undefined;
readonly id?: string | undefined;
readonly valueModifiers?: Record<string, any> | undefined;
readonly addonBefore?: any;
readonly addonAfter?: any;
readonly prefix?: any;
readonly suffix?: any;
readonly tabindex?: number | undefined;
readonly precision?: number | undefined;
readonly decimalSeparator?: string | undefined;
readonly emptyText?: string | undefined;
readonly thousands?: boolean | undefined;
readonly limitDecimalsRetain?: boolean | undefined;
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
$attrs: {
[x: string]: unknown;
};
$refs: {
[x: string]: unknown;
} & {
inputRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
size: {
type: PropType<ButtonSize>;
default: ButtonSize;
};
bordered: {
type: BooleanConstructor;
default: boolean;
};
placeholder: StringConstructor;
name: StringConstructor;
id: StringConstructor;
type: StringConstructor;
addonBefore: VueTypeValidableDef<any>;
addonAfter: VueTypeValidableDef<any>;
prefix: VueTypeValidableDef<any>;
suffix: VueTypeValidableDef<any>;
'onUpdate:value': {
type: PropType<(value: ValueType) => void>;
default: (value: ValueType) => void;
};
valueModifiers: ObjectConstructor;
status: {
type: PropType<"" | "error" | "warning">;
default: "" | "error" | "warning";
};
variant: {
type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
default: "filled" | "outlined" | "borderless" | "underlined";
};
changeOnWheel: {
type: BooleanConstructor;
default: boolean;
};
stringMode: {
type: BooleanConstructor;
default: boolean;
};
defaultValue: {
type: PropType<ValueType>;
default: ValueType;
};
value: {
type: PropType<ValueType>;
default: ValueType;
};
prefixCls: {
type: PropType<string>;
default: string;
};
min: {
type: PropType<ValueType>;
default: ValueType;
};
max: {
type: PropType<ValueType>;
default: ValueType;
};
step: {
type: PropType<ValueType>;
default: ValueType;
};
tabindex: NumberConstructor;
controls: {
type: BooleanConstructor;
default: boolean;
};
readonly: {
type: BooleanConstructor;
default: boolean;
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
autofocus: {
type: BooleanConstructor;
default: boolean;
};
keyboard: {
type: BooleanConstructor;
default: boolean;
};
parser: {
type: PropType<(displayValue: string) => ValueType>;
default: (displayValue: string) => ValueType;
};
formatter: {
type: PropType<(value: ValueType, info: {
userTyping: boolean;
input: string;
}) => string>;
default: (value: ValueType, info: {
userTyping: boolean;
input: string;
}) => string;
};
precision: NumberConstructor;
decimalSeparator: StringConstructor;
onInput: {
type: PropType<(text: string) => void>;
default: (text: string) => void;
};
onChange: {
type: PropType<(value: ValueType) => void>;
default: (value: ValueType) => void;
};
onPressEnter: {
type: PropType<KeyboardEventHandler>;
default: KeyboardEventHandler;
};
onStep: {
type: PropType<(value: ValueType, info: {
offset: ValueType;
type: "up" | "down";
}) => void>;
default: (value: ValueType, info: {
offset: ValueType;
type: "up" | "down";
}) => void;
};
onBlur: {
type: PropType<(e: FocusEvent) => void>;
default: (e: FocusEvent) => void;
};
onFocus: {
type: PropType<(e: FocusEvent) => void>;
default: (e: FocusEvent) => void;
};
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
size: ButtonSize;
value: ValueType;
onFocus: (e: FocusEvent) => void;
onBlur: (e: FocusEvent) => void;
onChange: (value: ValueType) => void;
onInput: (text: string) => void;
disabled: boolean;
max: ValueType;
min: ValueType;
prefixCls: string;
readonly: boolean;
autofocus: boolean;
variant: "filled" | "outlined" | "borderless" | "underlined";
bordered: boolean;
onPressEnter: KeyboardEventHandler;
'onUpdate:value': (value: ValueType) => void;
status: "" | "error" | "warning";
defaultValue: ValueType;
step: ValueType;
changeOnWheel: boolean;
stringMode: boolean;
controls: boolean;
keyboard: boolean;
parser: (displayValue: string) => ValueType;
formatter: (value: ValueType, info: {
userTyping: boolean;
input: string;
}) => string;
onStep: (value: ValueType, info: {
offset: ValueType;
type: "up" | "down";
}) => void;
}, true, {}, CustomSlotsType<{
addonBefore?: any;
addonAfter?: any;
prefix?: any;
suffix?: any;
default?: any;
upIcon?: any;
downIcon?: any;
}>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly< ExtractPropTypes<{
size: {
type: PropType<ButtonSize>;
default: ButtonSize;
};
bordered: {
type: BooleanConstructor;
default: boolean;
};
placeholder: StringConstructor;
name: StringConstructor;
id: StringConstructor;
type: StringConstructor;
addonBefore: VueTypeValidableDef<any>;
addonAfter: VueTypeValidableDef<any>;
prefix: VueTypeValidableDef<any>;
suffix: VueTypeValidableDef<any>;
'onUpdate:value': {
type: PropType<(value: ValueType) => void>;
default: (value: ValueType) => void;
};
valueModifiers: ObjectConstructor;
status: {
type: PropType<"" | "error" | "warning">;
default: "" | "error" | "warning";
};
variant: {
type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
default: "filled" | "outlined" | "borderless" | "underlined";
};
changeOnWheel: {
type: BooleanConstructor;
default: boolean;
};
stringMode: {
type: BooleanConstructor;
default: boolean;
};
defaultValue: {
type: PropType<ValueType>;
default: ValueType;
};
value: {
type: PropType<ValueType>;
default: ValueType;
};
prefixCls: {
type: PropType<string>;
default: string;
};
min: {
type: PropType<ValueType>;
default: ValueType;
};
max: {
type: PropType<ValueType>;
default: ValueType;
};
step: {
type: PropType<ValueType>;
default: ValueType;
};
tabindex: NumberConstructor;
controls: {
type: BooleanConstructor;
default: boolean;
};
readonly: {
type: BooleanConstructor;
default: boolean;
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
autofocus: {
type: BooleanConstructor;
default: boolean;
};
keyboard: {
type: BooleanConstructor;
default: boolean;
};
parser: {
type: PropType<(displayValue: string) => ValueType>;
default: (displayValue: string) => ValueType;
};
formatter: {
type: PropType<(value: ValueType, info: {
userTyping: boolean;
input: string;
}) => string>;
default: (value: ValueType, info: {
userTyping: boolean;
input: string;
}) => string;
};
precision: NumberConstructor;
decimalSeparator: StringConstructor;
onInput: {
type: PropType<(text: string) => void>;
default: (text: string) => void;
};
onChange: {
type: PropType<(value: ValueType) => void>;
default: (value: ValueType) => void;
};
onPressEnter: {
type: PropType<KeyboardEventHandler>;
default: KeyboardEventHandler;
};
onStep: {
type: PropType<(value: ValueType, info: {
offset: ValueType;
type: "up" | "down";
}) => void>;
default: (value: ValueType, info: {
offset: ValueType;
type: "up" | "down";
}) => void;
};
onBlur: {
type: PropType<(e: FocusEvent) => void>;
default: (e: FocusEvent) => void;
};
onFocus: {
type: PropType<(e: FocusEvent) => void>;
default: (e: FocusEvent) => void;
};
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
size: ButtonSize;
value: ValueType;
onFocus: (e: FocusEvent) => void;
onBlur: (e: FocusEvent) => void;
onChange: (value: ValueType) => void;
onInput: (text: string) => void;
disabled: boolean;
max: ValueType;
min: ValueType;
prefixCls: string;
readonly: boolean;
autofocus: boolean;
variant: "filled" | "outlined" | "borderless" | "underlined";
bordered: boolean;
onPressEnter: KeyboardEventHandler;
'onUpdate:value': (value: ValueType) => void;
status: "" | "error" | "warning";
defaultValue: ValueType;
step: ValueType;
changeOnWheel: boolean;
stringMode: boolean;
controls: boolean;
keyboard: boolean;
parser: (displayValue: string) => ValueType;
formatter: (value: ValueType, info: {
userTyping: boolean;
input: string;
}) => string;
onStep: (value: ValueType, info: {
offset: ValueType;
type: "up" | "down";
}) => void;
}> | null;
};
$slots: Readonly<{
[name: string]: Slot<any> | undefined;
}>;
$root: ComponentPublicInstance | null;
$parent: ComponentPublicInstance | null;
$host: Element | null;
$emit: (event: "update:value", ...args: any[]) => void;
$el: any;
$options: ComponentOptionsBase<Readonly< ApFieldNumberProps> & Readonly<{
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
}>, {
focus: () => void;
blur: () => void;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
"update:value": (...args: any[]) => void;
}, string, {
step: ValueType;
disabled: boolean;
keyboard: boolean;
bordered: boolean;
emptyText: string;
min: ValueType;
max: ValueType;
controls: boolean;
thousands: boolean;
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
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<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
} & Readonly<{
step: ValueType;
disabled: boolean;
keyboard: boolean;
bordered: boolean;
emptyText: string;
min: ValueType;
max: ValueType;
controls: boolean;
thousands: boolean;
}> & Omit<Readonly< ApFieldNumberProps> & Readonly<{
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
}>, "blur" | "focus" | ("step" | "disabled" | "keyboard" | "bordered" | "emptyText" | "min" | "max" | "controls" | "thousands")> & ShallowUnwrapRef<{
focus: () => void;
blur: () => void;
}> & {} & ComponentCustomProperties & {} & {
$slots: Readonly<{
addonBefore?: any;
addonAfter?: any;
prefix?: any;
default?: any;
upIcon?: any;
downIcon?: any;
}> & {
addonBefore?: any;
addonAfter?: any;
prefix?: any;
default?: any;
upIcon?: any;
downIcon?: any;
};
}) | null;
}, any, ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly< ApFormItemNumberProps> & Readonly<{}>, {
focus: () => void;
blur: () => void;
}, {}, {}, {}, {
disabled: boolean;
colon: boolean;
required: boolean;
hasFeedback: boolean;
autoLink: boolean;
validateFirst: boolean;
field: Omit< ApFieldNumberProps, "value" | "onUpdate:value">;
}>;
__isFragment?: never;
__isTeleport?: never;
__isSuspense?: never;
} & ComponentOptionsBase<Readonly< ApFormItemNumberProps> & Readonly<{}>, {
focus: () => void;
blur: () => void;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
disabled: boolean;
colon: boolean;
required: boolean;
hasFeedback: boolean;
autoLink: boolean;
validateFirst: boolean;
field: Omit< ApFieldNumberProps, "value" | "onUpdate:value">;
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
$slots: Readonly<{
addonBefore?: any;
addonAfter?: any;
prefix?: any;
default?: any;
upIcon?: any;
downIcon?: any;
} & Omit< ApFormItemSlots, "default">> & {
addonBefore?: any;
addonAfter?: any;
prefix?: any;
default?: any;
upIcon?: any;
downIcon?: any;
} & Omit< ApFormItemSlots, "default">;
});
radio: {
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFormItemRadioProps> & Readonly<{}>, {
focus: () => void;
blur: () => void;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
disabled: boolean;
colon: boolean;
required: boolean;
hasFeedback: boolean;
autoLink: boolean;
validateFirst: boolean;
field: Omit< ApFieldRadioProps, "value" | "onUpdate:value">;
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
radioRef: CreateComponentPublicInstanceWithMixins<Readonly< ApFieldRadioProps> & Readonly<{
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
}>, {
focus: () => void;
blur: () => void;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
"update:value": (...args: any[]) => void;
}, PublicProps, {
mode: FieldMode;
vertical: boolean;
disabled: boolean;
emptyText: string;
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
radioGroupRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
prefixCls: StringConstructor;
value: VueTypeValidableDef<any>;
size: {
type: PropType<"default" | "small" | "large">;
default: "default" | "small" | "large";
};
options: {
type: PropType<(string | number | RadioGroupChildOption)[]>;
default: (string | number | RadioGroupChildOption)[];
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
name: StringConstructor;
buttonStyle: {
type: PropType<RadioGroupButtonStyle>;
default: RadioGroupButtonStyle;
};
id: StringConstructor;
block: BooleanConstructor;
optionType: {
type: PropType<RadioGroupOptionType>;
default: RadioGroupOptionType;
};
onChange: {
type: PropType<(e: RadioChangeEvent) => void>;
default: (e: RadioChangeEvent) => void;
};
'onUpdate:value': {
type: PropType<(val: any) => void>;
default: (val: any) => void;
};
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
size: "default" | "small" | "large";
onChange: (e: RadioChangeEvent) => void;
block: boolean;
disabled: boolean;
'onUpdate:value': (val: any) => void;
options: (string | number | RadioGroupChildOption)[];
buttonStyle: RadioGroupButtonStyle;
optionType: RadioGroupOptionType;
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly< ExtractPropTypes<{
prefixCls: StringConstructor;
value: VueTypeValidableDef<any>;
size: {
type: PropType<"default" | "small" | "large">;
default: "default" | "small" | "large";
};
options: {
type: PropType<(string | number | RadioGroupChildOption)[]>;
default: (string | number | RadioGroupChildOption)[];
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
name: StringConstructor;
buttonStyle: {
type: PropType<RadioGroupButtonStyle>;
default: RadioGroupButtonStyle;
};
id: StringConstructor;
block: BooleanConstructor;
optionType: {
type: PropType<RadioGroupOptionType>;
default: RadioGroupOptionType;
};
onChange: {
type: PropType<(e: RadioChangeEvent) => void>;
default: (e: RadioChangeEvent) => void;
};
'onUpdate:value': {
type: PropType<(val: any) => void>;
default: (val: any) => void;
};
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
size: "default" | "small" | "large";
onChange: (e: RadioChangeEvent) => void;
block: boolean;
disabled: boolean;
'onUpdate:value': (val: any) => void;
options: (string | number | RadioGroupChildOption)[];
buttonStyle: RadioGroupButtonStyle;
optionType: RadioGroupOptionType;
}> | null;
}, any, ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly< ApFieldRadioProps> & Readonly<{
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
}>, {
focus: () => void;
blur: () => void;
}, {}, {}, {}, {
mode: FieldMode;
vertical: boolean;
disabled: boolean;
emptyText: string;
}> | null;
}, any, ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly< ApFormItemRadioProps> & Readonly<{}>, {
focus: () => void;
blur: () => void;
}, {}, {}, {}, {
disabled: boolean;
colon: boolean;
required: boolean;
hasFeedback: boolean;
autoLink: boolean;
validateFirst: boolean;
field: Omit< ApFieldRadioProps, "value" | "onUpdate:value">;
}>;
__isFragment?: never;
__isTeleport?: never;
__isSuspense?: never;
} & ComponentOptionsBase<Readonly< ApFormItemRadioProps> & Readonly<{}>, {
focus: () => void;
blur: () => void;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
disabled: boolean;
colon: boolean;
required: boolean;
hasFeedback: boolean;
autoLink: boolean;
validateFirst: boolean;
field: Omit< ApFieldRadioProps, "value" | "onUpdate:value">;
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
$slots: Readonly<{
label?: any;
help?: any;
extra?: any;
}> & {
label?: any;
help?: any;
extra?: any;
};
});
select: {
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFormItemSelectProps> & Readonly<{}>, {
focus: () => void;
blur: () => void;
request: () => void;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
disabled: boolean;
colon: boolean;
required: boolean;
hasFeedback: boolean;
autoLink: boolean;
validateFirst: boolean;
field: Omit< ApFieldSelectProps, "value" | "onUpdate:value">;
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
selectRef: ({
$: ComponentInternalInstance;
$data: {};
$props: {
readonly mode?: FieldMode | undefined;
readonly class?: unknown;
readonly style?: unknown;
readonly size?: "small" | "large" | "middle" | undefined;
readonly onBlur?: ((e: FocusEvent) => void) | undefined;
readonly onChange?: ((value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void) | undefined;
readonly onClick?: ((e: MouseEvent) => void) | undefined;
readonly onFocus?: ((e: FocusEvent) => void) | undefined;
readonly onKeydown?: ((e: KeyboardEvent) => void) | undefined;
readonly onKeyup?: ((e: KeyboardEvent) => void) | undefined;
readonly onMousedown?: ((e: MouseEvent) => void) | undefined;
readonly onMouseenter?: ((e: MouseEvent) => void) | undefined;
readonly onMouseleave?: ((e: MouseEvent) => void) | undefined;
readonly onSelect?: SelectHandler<(string | number) | LabeledValue, DefaultOptionType> | undefined;
readonly placement?: "topLeft" | "bottomLeft" | "bottomRight" | "topRight" | undefined;
readonly open?: boolean | undefined;
readonly disabled?: boolean | undefined;
readonly direction?: "ltr" | "rtl" | undefined;
readonly animation?: string | undefined;
readonly children?: VueNode[] | undefined;
readonly placeholder?: any;
readonly prefixCls?: string | undefined;
readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
readonly loading?: boolean | undefined;
readonly transitionName?: string | undefined;
readonly autofocus?: boolean | undefined;
readonly bordered?: boolean | undefined;
readonly id?: string | undefined;
readonly getPopupContainer?: RenderDOMFunc | undefined;
readonly virtual?: boolean | undefined;
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
readonly status?: "" | "error" | "warning" | undefined;
readonly defaultValue?: (string | number) | LabeledValue | (string | number)[] | LabeledValue[] | undefined;
readonly prefix?: any;
readonly clearIcon?: any;
readonly allowClear?: boolean | undefined;
readonly notFoundContent?: any;
readonly suffixIcon?: any;
readonly itemIcon?: any;
readonly showArrow?: boolean | undefined;
readonly maxCount?: number | undefined;
readonly choiceTransitionName?: "" | undefined;
readonly popupClassName?: string | undefined;
readonly dropdownClassName?: string | undefined;
readonly listHeight?: number | undefined;
readonly tabindex?: number | undefined;
readonly fieldNames?: FieldNames | undefined;
readonly inputValue?: string | undefined;
readonly searchValue?: string | undefined;
readonly autoClearSearchValue?: boolean | undefined;
readonly onDeselect?: SelectHandler<(string | number) | LabeledValue, DefaultOptionType> | undefined;
readonly filterOption?: boolean | FilterFunc<DefaultOptionType> | undefined;
readonly filterSort?: ((optionA: DefaultOptionType, optionB: DefaultOptionType) => number) | undefined;
readonly optionFilterProp?: string | undefined;
readonly optionLabelProp?: string | undefined;
readonly options?: DefaultOptionType[] | undefined;
readonly defaultActiveFirstOption?: boolean | undefined;
readonly listItemHeight?: number | undefined;
readonly onClickOption?: ((e: MouseEvent, value: SelectValue, selected: boolean) => boolean | Promise<boolean>) | undefined;
readonly menuItemSelectedIcon?: any;
readonly labelInValue?: boolean | undefined;
readonly showSearch?: boolean | undefined;
readonly tagRender?: ((props: CustomTagProps) => any) | undefined;
readonly optionLabelRender?: ((option: Record<string, any>) => any) | undefined;
readonly onClear?: (() => void) | undefined;
readonly defaultOpen?: boolean | undefined;
readonly onDropdownVisibleChange?: ((open: boolean) => void) | undefined;
readonly maxTagTextLength?: number | undefined;
readonly maxTagCount?: number | "responsive" | undefined;
readonly maxTagPlaceholder?: any;
readonly tokenSeparators?: string[] | undefined;
readonly removeIcon?: any;
readonly dropdownStyle?: CSSProperties | undefined;
readonly dropdownRender?: DropdownRender | undefined;
readonly dropdownAlign?: AlignType | undefined;
readonly showAction?: ("click" | "focus")[] | undefined;
readonly onPopupScroll?: ((e: UIEvent) => void) | undefined;
readonly onInputKeyDown?: ((e: KeyboardEvent) => void) | undefined;
readonly emptyText?: string | undefined;
readonly request?: ((value?: string, extraParams?: Recordable) => Promise< DefaultOptionType[] | undefined>) | undefined;
readonly multiple?: boolean | undefined;
readonly value?: (string | number) | LabeledValue | (string | number)[] | LabeledValue[] | undefined;
readonly 'onUpdate:value'?: (((val: SelectValue) => void) & ((...args: any[]) => any)) | undefined;
readonly searchMode?: "filter" | "request" | undefined;
readonly refetchOnFocus?: boolean | undefined;
readonly lazy?: boolean | undefined;
readonly addAll?: boolean | number | undefined;
readonly params?: Recordable | undefined;
readonly searchDelay?: number | undefined;
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
$attrs: {
[x: string]: unknown;
};