yanzhen-design-vue
Version:
233 lines (232 loc) • 9.63 kB
TypeScript
import { ExtractEmitsTypes } from '@yanzhen-libs/utils-vue';
import { ExtractPropTypes } from 'vue';
export declare const selectOptions: {
ns: any;
class: any;
name: any;
};
export declare const selectName: any;
export declare const AntSelect: {
props: {
value: {
type: import('vue').PropType<(string | number) | import('ant-design-vue/es/select').LabeledValue>;
default: import('ant-design-vue/es/select').SelectValue;
};
defaultValue: {
type: import('vue').PropType<(string | number) | import('ant-design-vue/es/select').LabeledValue>;
default: import('ant-design-vue/es/select').SelectValue;
};
notFoundContent: import('vue').PropType<any>;
suffixIcon: import('vue').PropType<any>;
itemIcon: import('vue').PropType<any>;
size: {
type: import('vue').PropType<import('ant-design-vue/es/button').ButtonSize>;
default: import('ant-design-vue/es/button').ButtonSize;
};
mode: {
type: import('vue').PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
default: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
};
bordered: {
type: BooleanConstructor;
default: boolean;
};
transitionName: StringConstructor;
choiceTransitionName: {
type: import('vue').PropType<"">;
default: "";
};
popupClassName: StringConstructor;
dropdownClassName: StringConstructor;
placement: {
type: import('vue').PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
};
status: {
type: import('vue').PropType<"" | "error" | "warning">;
default: "" | "error" | "warning";
};
children: import('vue').PropType<import('ant-design-vue/es/_util/type').VueNode | import('ant-design-vue/es/_util/type').VueNode[]>;
listHeight: NumberConstructor;
tabindex: NumberConstructor;
open: {
type: BooleanConstructor;
default: any;
};
animation: StringConstructor;
direction: {
type: import('vue').PropType<"rtl" | "ltr">;
};
disabled: {
type: BooleanConstructor;
default: any;
};
prefixCls: StringConstructor;
id: StringConstructor;
autofocus: BooleanConstructor;
getPopupContainer: {
type: import('vue').PropType<import('ant-design-vue/es/vc-select/BaseSelect').RenderDOMFunc>;
};
virtual: {
type: BooleanConstructor;
default: any;
};
dropdownMatchSelectWidth: {
type: import('vue').PropType<number | boolean>;
default: any;
};
options: import('vue').PropType<import('ant-design-vue/es/select').DefaultOptionType[]>;
showAction: {
type: import('vue').PropType<("click" | "focus")[]>;
};
loading: {
type: BooleanConstructor;
default: any;
};
placeholder: import('vue').PropType<any>;
clearIcon: import('vue').PropType<any>;
allowClear: {
type: BooleanConstructor;
default: any;
};
fieldNames: import('vue').PropType<never>;
dropdownStyle: {
type: import('vue').PropType<import('vue').CSSProperties>;
};
dropdownRender: {
type: import('vue').PropType<import('ant-design-vue/es/vc-select/BaseSelect').DropdownRender>;
};
dropdownAlign: import('vue').PropType<never>;
showSearch: {
type: BooleanConstructor;
default: any;
};
searchValue: StringConstructor;
removeIcon: import('vue').PropType<any>;
maxTagCount: {
type: import('vue').PropType<number | "responsive">;
};
maxTagTextLength: NumberConstructor;
maxTagPlaceholder: import('vue').PropType<any>;
tokenSeparators: {
type: import('vue').PropType<string[]>;
};
tagRender: {
type: import('vue').PropType<(props: import('ant-design-vue/es/vc-select/BaseSelect').CustomTagProps) => any>;
};
optionLabelRender: {
type: import('vue').PropType<(option: Record<string, any>) => any>;
};
defaultOpen: {
type: BooleanConstructor;
default: any;
};
showArrow: {
type: BooleanConstructor;
default: any;
};
menuItemSelectedIcon: import('vue').PropType<any>;
listItemHeight: NumberConstructor;
inputValue: StringConstructor;
autoClearSearchValue: {
type: BooleanConstructor;
default: any;
};
filterOption: {
type: import('vue').PropType<boolean | import('ant-design-vue/es/vc-select/Select').FilterFunc<import('ant-design-vue/es/select').DefaultOptionType>>;
default: any;
};
filterSort: import('vue').PropType<(optionA: import('ant-design-vue/es/select').DefaultOptionType, optionB: import('ant-design-vue/es/select').DefaultOptionType) => number>;
optionFilterProp: StringConstructor;
optionLabelProp: StringConstructor;
defaultActiveFirstOption: {
type: BooleanConstructor;
default: any;
};
labelInValue: {
type: BooleanConstructor;
default: any;
};
};
emits: {
"update:value": (val: import('ant-design-vue/es/select').SelectValue) => void;
mouseenter: (e: MouseEvent) => void;
mouseleave: (e: MouseEvent) => void;
click: (e: MouseEvent) => void;
focus: (e: FocusEvent) => void;
blur: (e: FocusEvent) => void;
change: (value: import('ant-design-vue/es/select').SelectValue, option: import('ant-design-vue/es/select').DefaultOptionType | import('ant-design-vue/es/select').DefaultOptionType[]) => void;
keydown: (e: KeyboardEvent) => void;
keyup: (e: KeyboardEvent) => void;
mousedown: (e: MouseEvent) => void;
select: import('ant-design-vue/es/vc-select/Select').SelectHandler<(string | number) | import('ant-design-vue/es/select').LabeledValue, import('ant-design-vue/es/select').DefaultOptionType>;
deselect: import('ant-design-vue/es/vc-select/Select').SelectHandler<(string | number) | import('ant-design-vue/es/select').LabeledValue, import('ant-design-vue/es/select').DefaultOptionType>;
search: (value: string) => void;
"input-key-down": (e: KeyboardEvent) => void;
clear: () => void;
"dropdown-visible-change": (open: boolean) => void;
"popup-scroll": (e: UIEvent) => void;
};
};
export declare const selectExtraProps: {
max: {
type: NumberConstructor;
};
maxMsg: {
type: StringConstructor;
};
showTag: {
type: BooleanConstructor;
};
fetching: {
type: BooleanConstructor;
};
showCreateOption: {
type: BooleanConstructor;
};
dataSource: {
type: StringConstructor;
};
params: {
type: ObjectConstructor;
};
id: {
type: StringConstructor;
};
bizObjectModelCode: {
type: StringConstructor;
};
tswColumnCode: {
type: StringConstructor;
};
tswColumnBizType: {
type: StringConstructor;
};
createOptionMaxLength: import('@yanzhen-libs/utils-vue').EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
};
export declare const selectProps: {
[x: string]: any;
};
export declare const selectEmits: {
addOption: (value: string) => boolean;
"update:value": (val: import('ant-design-vue/es/select').SelectValue) => boolean;
mouseenter: (e: MouseEvent) => boolean;
mouseleave: (e: MouseEvent) => boolean;
click: (e: MouseEvent) => boolean;
focus: (e: FocusEvent) => boolean;
blur: (e: FocusEvent) => boolean;
change: (value: import('ant-design-vue/es/select').SelectValue, option: import('ant-design-vue/es/select').DefaultOptionType | import('ant-design-vue/es/select').DefaultOptionType[]) => boolean;
keydown: (e: KeyboardEvent) => boolean;
keyup: (e: KeyboardEvent) => boolean;
mousedown: (e: MouseEvent) => boolean;
select: (...args: ((import('ant-design-vue/es/vc-select/Select').RawValueType | import('ant-design-vue/es/vc-select/Select').LabelInValueType | import('ant-design-vue/es/select').DefaultOptionType) & ((string | number) | import('ant-design-vue/es/select').LabeledValue | import('ant-design-vue/es/select').DefaultOptionType))[]) => boolean;
deselect: (...args: ((import('ant-design-vue/es/vc-select/Select').RawValueType | import('ant-design-vue/es/vc-select/Select').LabelInValueType | import('ant-design-vue/es/select').DefaultOptionType) & ((string | number) | import('ant-design-vue/es/select').LabeledValue | import('ant-design-vue/es/select').DefaultOptionType))[]) => boolean;
search: (value: string) => boolean;
"input-key-down": (e: KeyboardEvent) => boolean;
clear: () => boolean;
"dropdown-visible-change": (open: boolean) => boolean;
"popup-scroll": (e: UIEvent) => boolean;
};
export type SelectProps = ExtractPropTypes<typeof selectProps>;
export type SelectPropsKey = keyof SelectProps;
export type SelectEmits = ExtractEmitsTypes<typeof selectEmits>;