@antsoo-lib/components 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +6360 -6412
- package/dist/index.umd.js +83 -83
- package/dist/src/_util/ActionButton.d.ts +385 -0
- package/dist/src/_util/BaseInput.d.ts +80 -0
- package/dist/src/_util/BaseInputInner.d.ts +76 -0
- package/dist/src/_util/Portal.d.ts +22 -0
- package/dist/src/_util/PortalWrapper.d.ts +42 -0
- package/dist/src/alert/index.d.ts +158 -0
- package/dist/src/auto-complete/index.d.ts +773 -0
- package/dist/src/avatar/Avatar.d.ts +88 -0
- package/dist/src/badge/Badge.d.ts +128 -0
- package/dist/src/badge/Ribbon.d.ts +43 -0
- package/dist/src/badge/ScrollNumber.d.ts +28 -0
- package/dist/src/breadcrumb/Breadcrumb.d.ts +66 -0
- package/dist/src/breadcrumb/BreadcrumbItem.d.ts +1489 -0
- package/dist/src/button/button.d.ts +115 -0
- package/dist/src/button/buttonTypes.d.ts +59 -0
- package/dist/src/card/Card.d.ts +155 -0
- package/dist/src/carousel/index.d.ts +576 -0
- package/dist/src/cascader/index.d.ts +735 -0
- package/dist/src/checkbox/Checkbox.d.ts +117 -0
- package/dist/src/checkbox/interface.d.ts +168 -0
- package/dist/src/collapse/Collapse.d.ts +133 -0
- package/dist/src/collapse/CollapsePanel.d.ts +133 -0
- package/dist/src/collapse/PanelContent.d.ts +126 -0
- package/dist/src/collapse/commonProps.d.ts +125 -0
- package/dist/src/comment/index.d.ts +81 -0
- package/dist/src/date-picker/generatePicker/index.d.ts +7404 -0
- package/dist/src/descriptions/index.d.ts +173 -0
- package/dist/src/drawer/index.d.ts +501 -0
- package/dist/src/dropdown/dropdown-button.d.ts +556 -0
- package/dist/src/dropdown/dropdown.d.ts +503 -0
- package/dist/src/dropdown/props.d.ts +465 -0
- package/dist/src/float-button/BackTop.d.ts +67 -0
- package/dist/src/float-button/FloatButton.d.ts +57 -0
- package/dist/src/float-button/FloatButtonGroup.d.ts +92 -0
- package/dist/src/float-button/interface.d.ts +108 -0
- package/dist/src/form/Form.d.ts +796 -0
- package/dist/src/form/FormItem.d.ts +192 -0
- package/dist/src/image/index.d.ts +75 -0
- package/dist/src/input/Input.d.ts +198 -0
- package/dist/src/input/Password.d.ts +222 -0
- package/dist/src/input/ResizableTextArea.d.ts +222 -0
- package/dist/src/input/Search.d.ts +199 -0
- package/dist/src/input/TextArea.d.ts +223 -0
- package/dist/src/input/inputProps.d.ts +211 -0
- package/dist/src/input-number/index.d.ts +611 -0
- package/dist/src/layout/Sider.d.ts +115 -0
- package/dist/src/layout/index.d.ts +298 -0
- package/dist/src/list/Item.d.ts +48 -0
- package/dist/src/list/ItemMeta.d.ts +27 -0
- package/dist/src/list/index.d.ts +962 -0
- package/dist/src/mentions/index.d.ts +351 -0
- package/dist/src/menu/src/ItemGroup.d.ts +31 -0
- package/dist/src/menu/src/MenuItem.d.ts +75 -0
- package/dist/src/menu/src/SubMenu.d.ts +87 -0
- package/dist/src/modal/Modal.d.ts +1026 -0
- package/dist/src/page-header/index.d.ts +456 -0
- package/dist/src/pagination/Select.d.ts +723 -0
- package/dist/src/popconfirm/index.d.ts +1105 -0
- package/dist/src/radio/Group.d.ts +123 -0
- package/dist/src/radio/Radio.d.ts +155 -0
- package/dist/src/radio/RadioButton.d.ts +107 -0
- package/dist/src/rate/Star.d.ts +76 -0
- package/dist/src/rate/index.d.ts +160 -0
- package/dist/src/result/index.d.ts +70 -0
- package/dist/src/select/index.d.ts +567 -0
- package/dist/src/slider/SliderTooltip.d.ts +144 -0
- package/dist/src/spin/Spin.d.ts +44 -0
- package/dist/src/switch/index.d.ts +220 -0
- package/dist/src/table/Table.d.ts +1162 -0
- package/dist/src/table/index.d.ts +1494 -0
- package/dist/src/tabs/src/TabNavList/OperationNode.d.ts +150 -0
- package/dist/src/tabs/src/TabNavList/index.d.ts +171 -0
- package/dist/src/tabs/src/TabPanelList/TabPane.d.ts +105 -0
- package/dist/src/tabs/src/Tabs.d.ts +305 -0
- package/dist/src/tag/index.d.ts +102 -0
- package/dist/src/timeline/Timeline.d.ts +43 -0
- package/dist/src/timeline/TimelineItem.d.ts +50 -0
- package/dist/src/tooltip/Tooltip.d.ts +233 -0
- package/dist/src/tooltip/index.d.ts +251 -0
- package/dist/src/tour/index.d.ts +1024 -0
- package/dist/src/tour/interface.d.ts +208 -0
- package/dist/src/transfer/ListBody.d.ts +81 -0
- package/dist/src/transfer/ListItem.d.ts +70 -0
- package/dist/src/transfer/index.d.ts +712 -0
- package/dist/src/transfer/list.d.ts +166 -0
- package/dist/src/tree/DirectoryTree.d.ts +799 -0
- package/dist/src/tree/Tree.d.ts +895 -0
- package/dist/src/tree/index.d.ts +1636 -0
- package/dist/src/tree-select/index.d.ts +1078 -0
- package/dist/src/vc-cascader/Cascader.d.ts +973 -0
- package/dist/src/vc-checkbox/Checkbox.d.ts +78 -0
- package/dist/src/vc-dialog/Content.d.ts +182 -0
- package/dist/src/vc-dialog/Dialog.d.ts +170 -0
- package/dist/src/vc-dialog/DialogWrap.d.ts +167 -0
- package/dist/src/vc-dialog/IDialogPropTypes.d.ts +80 -0
- package/dist/src/vc-drawer/src/DrawerChild.d.ts +165 -0
- package/dist/src/vc-drawer/src/IDrawerPropTypes.d.ts +148 -0
- package/dist/src/vc-dropdown/Dropdown.d.ts +167 -0
- package/dist/src/vc-image/src/Image.d.ts +115 -0
- package/dist/src/vc-image/src/Preview.d.ts +293 -0
- package/dist/src/vc-input/BaseInput.d.ts +99 -0
- package/dist/src/vc-input/Input.d.ts +197 -0
- package/dist/src/vc-input/inputProps.d.ts +170 -0
- package/dist/src/vc-mentions/src/Mentions.d.ts +94 -0
- package/dist/src/vc-mentions/src/mentionsProps.d.ts +127 -0
- package/dist/src/vc-overflow/Item.d.ts +35 -0
- package/dist/src/vc-overflow/Overflow.d.ts +90 -0
- package/dist/src/vc-overflow/RawItem.d.ts +46 -0
- package/dist/src/vc-pagination/Options.d.ts +62 -0
- package/dist/src/vc-pagination/Pager.d.ts +76 -0
- package/dist/src/vc-pagination/Pagination.d.ts +246 -0
- package/dist/src/vc-select/BaseSelect.d.ts +579 -0
- package/dist/src/vc-select/Select.d.ts +510 -0
- package/dist/src/vc-select/Selector/Input.d.ts +187 -0
- package/dist/src/vc-slider/src/Range.d.ts +238 -0
- package/dist/src/vc-slider/src/Slider.d.ts +238 -0
- package/dist/src/vc-slider/src/common/createSlider.d.ts +237 -0
- package/dist/src/vc-steps/Step.d.ts +164 -0
- package/dist/src/vc-steps/Steps.d.ts +154 -0
- package/dist/src/vc-tooltip/src/Content.d.ts +18 -0
- package/dist/src/vc-tooltip/src/Tooltip.d.ts +195 -0
- package/dist/src/vc-tour/Tour.d.ts +654 -0
- package/dist/src/vc-tree/MotionTreeNode.d.ts +123 -0
- package/dist/src/vc-tree/Tree.d.ts +439 -0
- package/dist/src/vc-tree/TreeNode.d.ts +115 -0
- package/dist/src/vc-tree/props.d.ts +354 -0
- package/dist/src/vc-tree-select/TreeSelect.d.ts +708 -0
- package/dist/src/vc-trigger/Trigger.d.ts +358 -0
- package/dist/src/vc-trigger/interface.d.ts +208 -0
- package/dist/src/vc-virtual-list/List.d.ts +107 -0
- package/package.json +7 -7
|
@@ -0,0 +1,510 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType, CSSProperties, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { Key, VueNode } from '../_util/type';
|
|
3
|
+
import { DisplayValueType, CustomTagProps, DropdownRender, Placement, RenderDOMFunc } from './BaseSelect';
|
|
4
|
+
import { VueTypeValidableDef } from 'vue-types';
|
|
5
|
+
import { AlignType } from '../vc-trigger/interface';
|
|
6
|
+
type ArrayElementType<T> = T extends (infer E)[] ? E : T;
|
|
7
|
+
export type OnActiveValue = (active: RawValueType, index: number, info?: {
|
|
8
|
+
source?: 'keyboard' | 'mouse';
|
|
9
|
+
}) => void;
|
|
10
|
+
export type OnInternalSelect = (value: RawValueType, info: {
|
|
11
|
+
selected: boolean;
|
|
12
|
+
}) => void;
|
|
13
|
+
export type RawValueType = string | number;
|
|
14
|
+
export interface LabelInValueType {
|
|
15
|
+
label: any;
|
|
16
|
+
originLabel?: any;
|
|
17
|
+
value: RawValueType;
|
|
18
|
+
/** @deprecated `key` is useless since it should always same as `value` */
|
|
19
|
+
key?: Key;
|
|
20
|
+
}
|
|
21
|
+
export type DraftValueType = RawValueType | LabelInValueType | DisplayValueType | (RawValueType | LabelInValueType | DisplayValueType)[];
|
|
22
|
+
export type FilterFunc<OptionType> = (inputValue: string, option?: OptionType) => boolean;
|
|
23
|
+
export interface FieldNames {
|
|
24
|
+
value?: string;
|
|
25
|
+
label?: string;
|
|
26
|
+
options?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface BaseOptionType {
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
[name: string]: any;
|
|
31
|
+
}
|
|
32
|
+
export interface DefaultOptionType extends BaseOptionType {
|
|
33
|
+
label?: any;
|
|
34
|
+
value?: string | number | null;
|
|
35
|
+
children?: Omit<DefaultOptionType, 'children'>[];
|
|
36
|
+
}
|
|
37
|
+
export type SelectHandler<ValueType = any, OptionType extends BaseOptionType = DefaultOptionType> = ((value: RawValueType | LabelInValueType, option: OptionType) => void) | ((value: ValueType, option: OptionType) => void);
|
|
38
|
+
export declare function selectProps<ValueType = any, OptionType extends BaseOptionType = DefaultOptionType>(): {
|
|
39
|
+
prefixCls: StringConstructor;
|
|
40
|
+
id: StringConstructor;
|
|
41
|
+
backfill: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: undefined;
|
|
44
|
+
};
|
|
45
|
+
fieldNames: PropType<FieldNames>;
|
|
46
|
+
/** @deprecated Use `searchValue` instead */
|
|
47
|
+
inputValue: StringConstructor;
|
|
48
|
+
searchValue: StringConstructor;
|
|
49
|
+
onSearch: PropType<(value: string) => void>;
|
|
50
|
+
autoClearSearchValue: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: undefined;
|
|
53
|
+
};
|
|
54
|
+
onSelect: PropType<SelectHandler<ArrayElementType<ValueType>, OptionType>>;
|
|
55
|
+
onDeselect: PropType<SelectHandler<ArrayElementType<ValueType>, OptionType>>;
|
|
56
|
+
/**
|
|
57
|
+
* In Select, `false` means do nothing.
|
|
58
|
+
* In TreeSelect, `false` will highlight match item.
|
|
59
|
+
* It's by design.
|
|
60
|
+
*/
|
|
61
|
+
filterOption: {
|
|
62
|
+
type: PropType<boolean | FilterFunc<OptionType>>;
|
|
63
|
+
default: undefined;
|
|
64
|
+
};
|
|
65
|
+
filterSort: PropType<(optionA: OptionType, optionB: OptionType) => number>;
|
|
66
|
+
optionFilterProp: StringConstructor;
|
|
67
|
+
optionLabelProp: StringConstructor;
|
|
68
|
+
options: PropType<OptionType[]>;
|
|
69
|
+
defaultActiveFirstOption: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
default: undefined;
|
|
72
|
+
};
|
|
73
|
+
virtual: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: undefined;
|
|
76
|
+
};
|
|
77
|
+
listHeight: NumberConstructor;
|
|
78
|
+
listItemHeight: NumberConstructor;
|
|
79
|
+
menuItemSelectedIcon: VueTypeValidableDef<any>;
|
|
80
|
+
mode: PropType<"combobox" | "multiple" | "tags">;
|
|
81
|
+
labelInValue: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: undefined;
|
|
84
|
+
};
|
|
85
|
+
value: VueTypeValidableDef<any>;
|
|
86
|
+
defaultValue: VueTypeValidableDef<any>;
|
|
87
|
+
onChange: PropType<(value: ValueType, option: OptionType | OptionType[]) => void>;
|
|
88
|
+
children: PropType<VueNode[]>;
|
|
89
|
+
showSearch: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: undefined;
|
|
92
|
+
};
|
|
93
|
+
tagRender: {
|
|
94
|
+
type: PropType<(props: CustomTagProps) => any>;
|
|
95
|
+
};
|
|
96
|
+
optionLabelRender: {
|
|
97
|
+
type: PropType<(option: Record<string, any>) => any>;
|
|
98
|
+
};
|
|
99
|
+
direction: {
|
|
100
|
+
type: PropType<"ltr" | "rtl">;
|
|
101
|
+
};
|
|
102
|
+
tabindex: NumberConstructor;
|
|
103
|
+
autofocus: BooleanConstructor;
|
|
104
|
+
notFoundContent: VueTypeValidableDef<any>;
|
|
105
|
+
placeholder: VueTypeValidableDef<any>;
|
|
106
|
+
onClear: PropType<() => void>;
|
|
107
|
+
choiceTransitionName: StringConstructor;
|
|
108
|
+
disabled: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
default: undefined;
|
|
111
|
+
};
|
|
112
|
+
loading: {
|
|
113
|
+
type: BooleanConstructor;
|
|
114
|
+
default: undefined;
|
|
115
|
+
};
|
|
116
|
+
open: {
|
|
117
|
+
type: BooleanConstructor;
|
|
118
|
+
default: undefined;
|
|
119
|
+
};
|
|
120
|
+
defaultOpen: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
default: undefined;
|
|
123
|
+
};
|
|
124
|
+
onDropdownVisibleChange: {
|
|
125
|
+
type: PropType<(open: boolean) => void>;
|
|
126
|
+
};
|
|
127
|
+
getInputElement: {
|
|
128
|
+
type: PropType<() => any>;
|
|
129
|
+
};
|
|
130
|
+
getRawInputElement: {
|
|
131
|
+
type: PropType<() => any>;
|
|
132
|
+
};
|
|
133
|
+
maxTagTextLength: NumberConstructor;
|
|
134
|
+
maxTagCount: {
|
|
135
|
+
type: PropType<number | "responsive">;
|
|
136
|
+
};
|
|
137
|
+
maxTagPlaceholder: VueTypeValidableDef<any>;
|
|
138
|
+
tokenSeparators: {
|
|
139
|
+
type: PropType<string[]>;
|
|
140
|
+
};
|
|
141
|
+
allowClear: {
|
|
142
|
+
type: BooleanConstructor;
|
|
143
|
+
default: undefined;
|
|
144
|
+
};
|
|
145
|
+
showArrow: {
|
|
146
|
+
type: BooleanConstructor;
|
|
147
|
+
default: undefined;
|
|
148
|
+
};
|
|
149
|
+
inputIcon: VueTypeValidableDef<any>;
|
|
150
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
151
|
+
removeIcon: VueTypeValidableDef<any>;
|
|
152
|
+
animation: StringConstructor;
|
|
153
|
+
transitionName: StringConstructor;
|
|
154
|
+
dropdownStyle: {
|
|
155
|
+
type: PropType< CSSProperties>;
|
|
156
|
+
};
|
|
157
|
+
dropdownClassName: StringConstructor;
|
|
158
|
+
dropdownMatchSelectWidth: {
|
|
159
|
+
type: PropType<boolean | number>;
|
|
160
|
+
default: undefined;
|
|
161
|
+
};
|
|
162
|
+
dropdownRender: {
|
|
163
|
+
type: PropType< DropdownRender>;
|
|
164
|
+
};
|
|
165
|
+
dropdownAlign: PropType< AlignType>;
|
|
166
|
+
placement: {
|
|
167
|
+
type: PropType< Placement>;
|
|
168
|
+
};
|
|
169
|
+
getPopupContainer: {
|
|
170
|
+
type: PropType< RenderDOMFunc>;
|
|
171
|
+
};
|
|
172
|
+
showAction: {
|
|
173
|
+
type: PropType<("focus" | "click")[]>;
|
|
174
|
+
};
|
|
175
|
+
onBlur: {
|
|
176
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
177
|
+
};
|
|
178
|
+
onFocus: {
|
|
179
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
180
|
+
};
|
|
181
|
+
onKeyup: PropType<(e: KeyboardEvent) => void>;
|
|
182
|
+
onKeydown: PropType<(e: KeyboardEvent) => void>;
|
|
183
|
+
onMousedown: PropType<(e: MouseEvent) => void>;
|
|
184
|
+
onPopupScroll: PropType<(e: UIEvent) => void>;
|
|
185
|
+
onInputKeyDown: PropType<(e: KeyboardEvent) => void>;
|
|
186
|
+
onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
187
|
+
onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
188
|
+
onClick: PropType<(e: MouseEvent) => void>;
|
|
189
|
+
};
|
|
190
|
+
export type SelectProps = Partial<ExtractPropTypes<ReturnType<typeof selectProps>>>;
|
|
191
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
192
|
+
prefixCls: StringConstructor;
|
|
193
|
+
id: StringConstructor;
|
|
194
|
+
backfill: {
|
|
195
|
+
type: BooleanConstructor;
|
|
196
|
+
default: undefined;
|
|
197
|
+
};
|
|
198
|
+
fieldNames: PropType<FieldNames>;
|
|
199
|
+
/** @deprecated Use `searchValue` instead */
|
|
200
|
+
inputValue: StringConstructor;
|
|
201
|
+
searchValue: StringConstructor;
|
|
202
|
+
onSearch: PropType<(value: string) => void>;
|
|
203
|
+
autoClearSearchValue: {
|
|
204
|
+
type: BooleanConstructor;
|
|
205
|
+
default: undefined;
|
|
206
|
+
};
|
|
207
|
+
onSelect: PropType<SelectHandler<any, DefaultOptionType>>;
|
|
208
|
+
onDeselect: PropType<SelectHandler<any, DefaultOptionType>>;
|
|
209
|
+
/**
|
|
210
|
+
* In Select, `false` means do nothing.
|
|
211
|
+
* In TreeSelect, `false` will highlight match item.
|
|
212
|
+
* It's by design.
|
|
213
|
+
*/
|
|
214
|
+
filterOption: {
|
|
215
|
+
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
216
|
+
default: undefined;
|
|
217
|
+
};
|
|
218
|
+
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
|
|
219
|
+
optionFilterProp: StringConstructor;
|
|
220
|
+
optionLabelProp: StringConstructor;
|
|
221
|
+
options: PropType<DefaultOptionType[]>;
|
|
222
|
+
defaultActiveFirstOption: {
|
|
223
|
+
type: BooleanConstructor;
|
|
224
|
+
default: undefined;
|
|
225
|
+
};
|
|
226
|
+
virtual: {
|
|
227
|
+
type: BooleanConstructor;
|
|
228
|
+
default: undefined;
|
|
229
|
+
};
|
|
230
|
+
listHeight: NumberConstructor;
|
|
231
|
+
listItemHeight: NumberConstructor;
|
|
232
|
+
menuItemSelectedIcon: VueTypeValidableDef<any>;
|
|
233
|
+
mode: PropType<"combobox" | "multiple" | "tags">;
|
|
234
|
+
labelInValue: {
|
|
235
|
+
type: BooleanConstructor;
|
|
236
|
+
default: undefined;
|
|
237
|
+
};
|
|
238
|
+
value: VueTypeValidableDef<any>;
|
|
239
|
+
defaultValue: VueTypeValidableDef<any>;
|
|
240
|
+
onChange: PropType<(value: any, option: DefaultOptionType | DefaultOptionType[]) => void>;
|
|
241
|
+
children: PropType<VueNode[]>;
|
|
242
|
+
showSearch: {
|
|
243
|
+
type: BooleanConstructor;
|
|
244
|
+
default: undefined;
|
|
245
|
+
};
|
|
246
|
+
tagRender: {
|
|
247
|
+
type: PropType<(props: CustomTagProps) => any>;
|
|
248
|
+
};
|
|
249
|
+
optionLabelRender: {
|
|
250
|
+
type: PropType<(option: Record<string, any>) => any>;
|
|
251
|
+
};
|
|
252
|
+
direction: {
|
|
253
|
+
type: PropType<"ltr" | "rtl">;
|
|
254
|
+
};
|
|
255
|
+
tabindex: NumberConstructor;
|
|
256
|
+
autofocus: BooleanConstructor;
|
|
257
|
+
notFoundContent: VueTypeValidableDef<any>;
|
|
258
|
+
placeholder: VueTypeValidableDef<any>;
|
|
259
|
+
onClear: PropType<() => void>;
|
|
260
|
+
choiceTransitionName: StringConstructor;
|
|
261
|
+
disabled: {
|
|
262
|
+
type: BooleanConstructor;
|
|
263
|
+
default: undefined;
|
|
264
|
+
};
|
|
265
|
+
loading: {
|
|
266
|
+
type: BooleanConstructor;
|
|
267
|
+
default: undefined;
|
|
268
|
+
};
|
|
269
|
+
open: {
|
|
270
|
+
type: BooleanConstructor;
|
|
271
|
+
default: undefined;
|
|
272
|
+
};
|
|
273
|
+
defaultOpen: {
|
|
274
|
+
type: BooleanConstructor;
|
|
275
|
+
default: undefined;
|
|
276
|
+
};
|
|
277
|
+
onDropdownVisibleChange: {
|
|
278
|
+
type: PropType<(open: boolean) => void>;
|
|
279
|
+
};
|
|
280
|
+
getInputElement: {
|
|
281
|
+
type: PropType<() => any>;
|
|
282
|
+
};
|
|
283
|
+
getRawInputElement: {
|
|
284
|
+
type: PropType<() => any>;
|
|
285
|
+
};
|
|
286
|
+
maxTagTextLength: NumberConstructor;
|
|
287
|
+
maxTagCount: {
|
|
288
|
+
type: PropType<number | "responsive">;
|
|
289
|
+
};
|
|
290
|
+
maxTagPlaceholder: VueTypeValidableDef<any>;
|
|
291
|
+
tokenSeparators: {
|
|
292
|
+
type: PropType<string[]>;
|
|
293
|
+
};
|
|
294
|
+
allowClear: {
|
|
295
|
+
type: BooleanConstructor;
|
|
296
|
+
default: undefined;
|
|
297
|
+
};
|
|
298
|
+
showArrow: {
|
|
299
|
+
type: BooleanConstructor;
|
|
300
|
+
default: undefined;
|
|
301
|
+
};
|
|
302
|
+
inputIcon: VueTypeValidableDef<any>;
|
|
303
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
304
|
+
removeIcon: VueTypeValidableDef<any>;
|
|
305
|
+
animation: StringConstructor;
|
|
306
|
+
transitionName: StringConstructor;
|
|
307
|
+
dropdownStyle: {
|
|
308
|
+
type: PropType< CSSProperties>;
|
|
309
|
+
};
|
|
310
|
+
dropdownClassName: StringConstructor;
|
|
311
|
+
dropdownMatchSelectWidth: {
|
|
312
|
+
type: PropType<boolean | number>;
|
|
313
|
+
default: undefined;
|
|
314
|
+
};
|
|
315
|
+
dropdownRender: {
|
|
316
|
+
type: PropType< DropdownRender>;
|
|
317
|
+
};
|
|
318
|
+
dropdownAlign: PropType< AlignType>;
|
|
319
|
+
placement: {
|
|
320
|
+
type: PropType< Placement>;
|
|
321
|
+
};
|
|
322
|
+
getPopupContainer: {
|
|
323
|
+
type: PropType< RenderDOMFunc>;
|
|
324
|
+
};
|
|
325
|
+
showAction: {
|
|
326
|
+
type: PropType<("focus" | "click")[]>;
|
|
327
|
+
};
|
|
328
|
+
onBlur: {
|
|
329
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
330
|
+
};
|
|
331
|
+
onFocus: {
|
|
332
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
333
|
+
};
|
|
334
|
+
onKeyup: PropType<(e: KeyboardEvent) => void>;
|
|
335
|
+
onKeydown: PropType<(e: KeyboardEvent) => void>;
|
|
336
|
+
onMousedown: PropType<(e: MouseEvent) => void>;
|
|
337
|
+
onPopupScroll: PropType<(e: UIEvent) => void>;
|
|
338
|
+
onInputKeyDown: PropType<(e: KeyboardEvent) => void>;
|
|
339
|
+
onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
340
|
+
onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
341
|
+
onClick: PropType<(e: MouseEvent) => void>;
|
|
342
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
343
|
+
prefixCls: StringConstructor;
|
|
344
|
+
id: StringConstructor;
|
|
345
|
+
backfill: {
|
|
346
|
+
type: BooleanConstructor;
|
|
347
|
+
default: undefined;
|
|
348
|
+
};
|
|
349
|
+
fieldNames: PropType<FieldNames>;
|
|
350
|
+
/** @deprecated Use `searchValue` instead */
|
|
351
|
+
inputValue: StringConstructor;
|
|
352
|
+
searchValue: StringConstructor;
|
|
353
|
+
onSearch: PropType<(value: string) => void>;
|
|
354
|
+
autoClearSearchValue: {
|
|
355
|
+
type: BooleanConstructor;
|
|
356
|
+
default: undefined;
|
|
357
|
+
};
|
|
358
|
+
onSelect: PropType<SelectHandler<any, DefaultOptionType>>;
|
|
359
|
+
onDeselect: PropType<SelectHandler<any, DefaultOptionType>>;
|
|
360
|
+
/**
|
|
361
|
+
* In Select, `false` means do nothing.
|
|
362
|
+
* In TreeSelect, `false` will highlight match item.
|
|
363
|
+
* It's by design.
|
|
364
|
+
*/
|
|
365
|
+
filterOption: {
|
|
366
|
+
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
367
|
+
default: undefined;
|
|
368
|
+
};
|
|
369
|
+
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
|
|
370
|
+
optionFilterProp: StringConstructor;
|
|
371
|
+
optionLabelProp: StringConstructor;
|
|
372
|
+
options: PropType<DefaultOptionType[]>;
|
|
373
|
+
defaultActiveFirstOption: {
|
|
374
|
+
type: BooleanConstructor;
|
|
375
|
+
default: undefined;
|
|
376
|
+
};
|
|
377
|
+
virtual: {
|
|
378
|
+
type: BooleanConstructor;
|
|
379
|
+
default: undefined;
|
|
380
|
+
};
|
|
381
|
+
listHeight: NumberConstructor;
|
|
382
|
+
listItemHeight: NumberConstructor;
|
|
383
|
+
menuItemSelectedIcon: VueTypeValidableDef<any>;
|
|
384
|
+
mode: PropType<"combobox" | "multiple" | "tags">;
|
|
385
|
+
labelInValue: {
|
|
386
|
+
type: BooleanConstructor;
|
|
387
|
+
default: undefined;
|
|
388
|
+
};
|
|
389
|
+
value: VueTypeValidableDef<any>;
|
|
390
|
+
defaultValue: VueTypeValidableDef<any>;
|
|
391
|
+
onChange: PropType<(value: any, option: DefaultOptionType | DefaultOptionType[]) => void>;
|
|
392
|
+
children: PropType<VueNode[]>;
|
|
393
|
+
showSearch: {
|
|
394
|
+
type: BooleanConstructor;
|
|
395
|
+
default: undefined;
|
|
396
|
+
};
|
|
397
|
+
tagRender: {
|
|
398
|
+
type: PropType<(props: CustomTagProps) => any>;
|
|
399
|
+
};
|
|
400
|
+
optionLabelRender: {
|
|
401
|
+
type: PropType<(option: Record<string, any>) => any>;
|
|
402
|
+
};
|
|
403
|
+
direction: {
|
|
404
|
+
type: PropType<"ltr" | "rtl">;
|
|
405
|
+
};
|
|
406
|
+
tabindex: NumberConstructor;
|
|
407
|
+
autofocus: BooleanConstructor;
|
|
408
|
+
notFoundContent: VueTypeValidableDef<any>;
|
|
409
|
+
placeholder: VueTypeValidableDef<any>;
|
|
410
|
+
onClear: PropType<() => void>;
|
|
411
|
+
choiceTransitionName: StringConstructor;
|
|
412
|
+
disabled: {
|
|
413
|
+
type: BooleanConstructor;
|
|
414
|
+
default: undefined;
|
|
415
|
+
};
|
|
416
|
+
loading: {
|
|
417
|
+
type: BooleanConstructor;
|
|
418
|
+
default: undefined;
|
|
419
|
+
};
|
|
420
|
+
open: {
|
|
421
|
+
type: BooleanConstructor;
|
|
422
|
+
default: undefined;
|
|
423
|
+
};
|
|
424
|
+
defaultOpen: {
|
|
425
|
+
type: BooleanConstructor;
|
|
426
|
+
default: undefined;
|
|
427
|
+
};
|
|
428
|
+
onDropdownVisibleChange: {
|
|
429
|
+
type: PropType<(open: boolean) => void>;
|
|
430
|
+
};
|
|
431
|
+
getInputElement: {
|
|
432
|
+
type: PropType<() => any>;
|
|
433
|
+
};
|
|
434
|
+
getRawInputElement: {
|
|
435
|
+
type: PropType<() => any>;
|
|
436
|
+
};
|
|
437
|
+
maxTagTextLength: NumberConstructor;
|
|
438
|
+
maxTagCount: {
|
|
439
|
+
type: PropType<number | "responsive">;
|
|
440
|
+
};
|
|
441
|
+
maxTagPlaceholder: VueTypeValidableDef<any>;
|
|
442
|
+
tokenSeparators: {
|
|
443
|
+
type: PropType<string[]>;
|
|
444
|
+
};
|
|
445
|
+
allowClear: {
|
|
446
|
+
type: BooleanConstructor;
|
|
447
|
+
default: undefined;
|
|
448
|
+
};
|
|
449
|
+
showArrow: {
|
|
450
|
+
type: BooleanConstructor;
|
|
451
|
+
default: undefined;
|
|
452
|
+
};
|
|
453
|
+
inputIcon: VueTypeValidableDef<any>;
|
|
454
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
455
|
+
removeIcon: VueTypeValidableDef<any>;
|
|
456
|
+
animation: StringConstructor;
|
|
457
|
+
transitionName: StringConstructor;
|
|
458
|
+
dropdownStyle: {
|
|
459
|
+
type: PropType< CSSProperties>;
|
|
460
|
+
};
|
|
461
|
+
dropdownClassName: StringConstructor;
|
|
462
|
+
dropdownMatchSelectWidth: {
|
|
463
|
+
type: PropType<boolean | number>;
|
|
464
|
+
default: undefined;
|
|
465
|
+
};
|
|
466
|
+
dropdownRender: {
|
|
467
|
+
type: PropType< DropdownRender>;
|
|
468
|
+
};
|
|
469
|
+
dropdownAlign: PropType< AlignType>;
|
|
470
|
+
placement: {
|
|
471
|
+
type: PropType< Placement>;
|
|
472
|
+
};
|
|
473
|
+
getPopupContainer: {
|
|
474
|
+
type: PropType< RenderDOMFunc>;
|
|
475
|
+
};
|
|
476
|
+
showAction: {
|
|
477
|
+
type: PropType<("focus" | "click")[]>;
|
|
478
|
+
};
|
|
479
|
+
onBlur: {
|
|
480
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
481
|
+
};
|
|
482
|
+
onFocus: {
|
|
483
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
484
|
+
};
|
|
485
|
+
onKeyup: PropType<(e: KeyboardEvent) => void>;
|
|
486
|
+
onKeydown: PropType<(e: KeyboardEvent) => void>;
|
|
487
|
+
onMousedown: PropType<(e: MouseEvent) => void>;
|
|
488
|
+
onPopupScroll: PropType<(e: UIEvent) => void>;
|
|
489
|
+
onInputKeyDown: PropType<(e: KeyboardEvent) => void>;
|
|
490
|
+
onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
491
|
+
onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
492
|
+
onClick: PropType<(e: MouseEvent) => void>;
|
|
493
|
+
}>> & Readonly<{}>, {
|
|
494
|
+
open: boolean;
|
|
495
|
+
disabled: boolean;
|
|
496
|
+
autofocus: boolean;
|
|
497
|
+
virtual: boolean;
|
|
498
|
+
dropdownMatchSelectWidth: number | boolean;
|
|
499
|
+
loading: boolean;
|
|
500
|
+
allowClear: boolean;
|
|
501
|
+
defaultOpen: boolean;
|
|
502
|
+
showSearch: boolean;
|
|
503
|
+
showArrow: boolean;
|
|
504
|
+
backfill: boolean;
|
|
505
|
+
autoClearSearchValue: boolean;
|
|
506
|
+
filterOption: boolean | FilterFunc<DefaultOptionType>;
|
|
507
|
+
defaultActiveFirstOption: boolean;
|
|
508
|
+
labelInValue: boolean;
|
|
509
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
510
|
+
export default _default;
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { ChangeEventHandler, ClipboardEventHandler, CompositionEventHandler, FocusEventHandler, KeyboardEventHandler, MouseEventHandler } from '../../_util/EventInterface';
|
|
3
|
+
import { VueTypeValidableDef, VueTypeDef } from 'vue-types';
|
|
4
|
+
import { VueNode } from '../../_util/type';
|
|
5
|
+
export declare const inputProps: {
|
|
6
|
+
inputRef: VueTypeValidableDef<any>;
|
|
7
|
+
prefixCls: StringConstructor;
|
|
8
|
+
id: StringConstructor;
|
|
9
|
+
inputElement: VueTypeValidableDef<VueNode>;
|
|
10
|
+
disabled: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
autofocus: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: undefined;
|
|
17
|
+
};
|
|
18
|
+
autocomplete: StringConstructor;
|
|
19
|
+
editable: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: undefined;
|
|
22
|
+
};
|
|
23
|
+
activeDescendantId: StringConstructor;
|
|
24
|
+
value: StringConstructor;
|
|
25
|
+
open: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: undefined;
|
|
28
|
+
};
|
|
29
|
+
tabindex: VueTypeDef<string | number>;
|
|
30
|
+
/** Pass accessibility props to input */
|
|
31
|
+
attrs: VueTypeValidableDef<{
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
}> & {
|
|
34
|
+
default: () => {
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
onKeydown: {
|
|
39
|
+
type: PropType<KeyboardEventHandler>;
|
|
40
|
+
};
|
|
41
|
+
onMousedown: {
|
|
42
|
+
type: PropType<MouseEventHandler>;
|
|
43
|
+
};
|
|
44
|
+
onChange: {
|
|
45
|
+
type: PropType<ChangeEventHandler>;
|
|
46
|
+
};
|
|
47
|
+
onPaste: {
|
|
48
|
+
type: PropType<ClipboardEventHandler>;
|
|
49
|
+
};
|
|
50
|
+
onCompositionstart: {
|
|
51
|
+
type: PropType<CompositionEventHandler>;
|
|
52
|
+
};
|
|
53
|
+
onCompositionend: {
|
|
54
|
+
type: PropType<CompositionEventHandler>;
|
|
55
|
+
};
|
|
56
|
+
onFocus: {
|
|
57
|
+
type: PropType<FocusEventHandler>;
|
|
58
|
+
};
|
|
59
|
+
onBlur: {
|
|
60
|
+
type: PropType<FocusEventHandler>;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export type InputProps = Partial<ExtractPropTypes<typeof inputProps>>;
|
|
64
|
+
declare const Input: DefineComponent<ExtractPropTypes<{
|
|
65
|
+
inputRef: VueTypeValidableDef<any>;
|
|
66
|
+
prefixCls: StringConstructor;
|
|
67
|
+
id: StringConstructor;
|
|
68
|
+
inputElement: VueTypeValidableDef<VueNode>;
|
|
69
|
+
disabled: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
default: undefined;
|
|
72
|
+
};
|
|
73
|
+
autofocus: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: undefined;
|
|
76
|
+
};
|
|
77
|
+
autocomplete: StringConstructor;
|
|
78
|
+
editable: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: undefined;
|
|
81
|
+
};
|
|
82
|
+
activeDescendantId: StringConstructor;
|
|
83
|
+
value: StringConstructor;
|
|
84
|
+
open: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: undefined;
|
|
87
|
+
};
|
|
88
|
+
tabindex: VueTypeDef<string | number>;
|
|
89
|
+
/** Pass accessibility props to input */
|
|
90
|
+
attrs: VueTypeValidableDef<{
|
|
91
|
+
[key: string]: any;
|
|
92
|
+
}> & {
|
|
93
|
+
default: () => {
|
|
94
|
+
[key: string]: any;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
onKeydown: {
|
|
98
|
+
type: PropType<KeyboardEventHandler>;
|
|
99
|
+
};
|
|
100
|
+
onMousedown: {
|
|
101
|
+
type: PropType<MouseEventHandler>;
|
|
102
|
+
};
|
|
103
|
+
onChange: {
|
|
104
|
+
type: PropType<ChangeEventHandler>;
|
|
105
|
+
};
|
|
106
|
+
onPaste: {
|
|
107
|
+
type: PropType<ClipboardEventHandler>;
|
|
108
|
+
};
|
|
109
|
+
onCompositionstart: {
|
|
110
|
+
type: PropType<CompositionEventHandler>;
|
|
111
|
+
};
|
|
112
|
+
onCompositionend: {
|
|
113
|
+
type: PropType<CompositionEventHandler>;
|
|
114
|
+
};
|
|
115
|
+
onFocus: {
|
|
116
|
+
type: PropType<FocusEventHandler>;
|
|
117
|
+
};
|
|
118
|
+
onBlur: {
|
|
119
|
+
type: PropType<FocusEventHandler>;
|
|
120
|
+
};
|
|
121
|
+
}>, () => any, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
122
|
+
inputRef: VueTypeValidableDef<any>;
|
|
123
|
+
prefixCls: StringConstructor;
|
|
124
|
+
id: StringConstructor;
|
|
125
|
+
inputElement: VueTypeValidableDef<VueNode>;
|
|
126
|
+
disabled: {
|
|
127
|
+
type: BooleanConstructor;
|
|
128
|
+
default: undefined;
|
|
129
|
+
};
|
|
130
|
+
autofocus: {
|
|
131
|
+
type: BooleanConstructor;
|
|
132
|
+
default: undefined;
|
|
133
|
+
};
|
|
134
|
+
autocomplete: StringConstructor;
|
|
135
|
+
editable: {
|
|
136
|
+
type: BooleanConstructor;
|
|
137
|
+
default: undefined;
|
|
138
|
+
};
|
|
139
|
+
activeDescendantId: StringConstructor;
|
|
140
|
+
value: StringConstructor;
|
|
141
|
+
open: {
|
|
142
|
+
type: BooleanConstructor;
|
|
143
|
+
default: undefined;
|
|
144
|
+
};
|
|
145
|
+
tabindex: VueTypeDef<string | number>;
|
|
146
|
+
/** Pass accessibility props to input */
|
|
147
|
+
attrs: VueTypeValidableDef<{
|
|
148
|
+
[key: string]: any;
|
|
149
|
+
}> & {
|
|
150
|
+
default: () => {
|
|
151
|
+
[key: string]: any;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
onKeydown: {
|
|
155
|
+
type: PropType<KeyboardEventHandler>;
|
|
156
|
+
};
|
|
157
|
+
onMousedown: {
|
|
158
|
+
type: PropType<MouseEventHandler>;
|
|
159
|
+
};
|
|
160
|
+
onChange: {
|
|
161
|
+
type: PropType<ChangeEventHandler>;
|
|
162
|
+
};
|
|
163
|
+
onPaste: {
|
|
164
|
+
type: PropType<ClipboardEventHandler>;
|
|
165
|
+
};
|
|
166
|
+
onCompositionstart: {
|
|
167
|
+
type: PropType<CompositionEventHandler>;
|
|
168
|
+
};
|
|
169
|
+
onCompositionend: {
|
|
170
|
+
type: PropType<CompositionEventHandler>;
|
|
171
|
+
};
|
|
172
|
+
onFocus: {
|
|
173
|
+
type: PropType<FocusEventHandler>;
|
|
174
|
+
};
|
|
175
|
+
onBlur: {
|
|
176
|
+
type: PropType<FocusEventHandler>;
|
|
177
|
+
};
|
|
178
|
+
}>> & Readonly<{}>, {
|
|
179
|
+
open: boolean;
|
|
180
|
+
disabled: boolean;
|
|
181
|
+
attrs: {
|
|
182
|
+
[key: string]: any;
|
|
183
|
+
};
|
|
184
|
+
autofocus: boolean;
|
|
185
|
+
editable: boolean;
|
|
186
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
187
|
+
export default Input;
|