@aplus-frontend/ui 0.2.7 → 0.2.9
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/es/index.mjs +151 -147
- package/es/src/ap-field/switch/index.vue.mjs +38 -37
- package/es/src/ap-form/drawer-form/index.vue.mjs +104 -99
- package/es/src/ap-modal/utils/createModal.mjs +14 -13
- package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +53 -0
- package/es/src/business/ap-group-search/ap-group-search.vue.mjs +4 -0
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +191 -0
- package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +355 -0
- package/es/src/business/ap-group-search/extension-select/index.vue.mjs +4 -0
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +124 -0
- package/es/src/business/ap-group-search/images/icon-down.vue.d.ts +3 -0
- package/es/src/business/ap-group-search/images/icon-down.vue.mjs +28 -0
- package/es/src/business/ap-group-search/images/icon-line-select.vue.d.ts +3 -0
- package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +45 -0
- package/es/src/business/ap-group-search/index.d.ts +2830 -0
- package/es/src/business/ap-group-search/index.mjs +14 -0
- package/es/src/business/ap-group-search/interface.d.ts +11 -0
- package/es/src/business/ap-group-search/interface.mjs +1 -0
- package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +357 -0
- package/es/src/business/ap-group-search/popover-select/index.vue.mjs +4 -0
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +192 -0
- package/es/src/business/ap-group-search/popover-select/style/css.d.ts +0 -0
- package/es/src/business/ap-group-search/popover-select/style/css.js +1 -0
- package/es/src/business/ap-group-search/popover-select/style/index.d.ts +0 -0
- package/es/src/business/ap-group-search/popover-select/style/index.js +1 -0
- package/es/src/business/ap-group-search/style/css.d.ts +0 -0
- package/es/src/business/ap-group-search/style/css.js +1 -0
- package/es/src/business/ap-group-search/style/index.d.ts +0 -0
- package/es/src/business/ap-group-search/style/index.js +1 -0
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +24 -23
- package/es/src/business/ap-table-modal/hooks/use-table-modal.mjs +17 -11
- package/es/src/business/index.d.ts +1 -0
- package/es/src/business/index.mjs +30 -26
- package/es/src/check-card/index.vue2.mjs +43 -43
- package/es/src/index.mjs +33 -29
- package/es/src/locale/lang/en.mjs +8 -0
- package/es/src/locale/lang/zh-cn.mjs +8 -0
- package/es/src/path-map.mjs +3 -1
- package/es/src/work-order-modal/createWorkOrder.mjs +13 -12
- package/lib/index.js +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +53 -0
- package/lib/src/business/ap-group-search/ap-group-search.vue.js +1 -0
- package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -0
- package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +355 -0
- package/lib/src/business/ap-group-search/extension-select/index.vue.js +1 -0
- package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -0
- package/lib/src/business/ap-group-search/images/icon-down.vue.d.ts +3 -0
- package/lib/src/business/ap-group-search/images/icon-down.vue.js +1 -0
- package/lib/src/business/ap-group-search/images/icon-line-select.vue.d.ts +3 -0
- package/lib/src/business/ap-group-search/images/icon-line-select.vue.js +1 -0
- package/lib/src/business/ap-group-search/index.d.ts +2830 -0
- package/lib/src/business/ap-group-search/index.js +1 -0
- package/lib/src/business/ap-group-search/interface.d.ts +11 -0
- package/lib/src/business/ap-group-search/interface.js +1 -0
- package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +357 -0
- package/lib/src/business/ap-group-search/popover-select/index.vue.js +1 -0
- package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -0
- package/lib/src/business/ap-group-search/popover-select/style/css.d.ts +0 -0
- package/lib/src/business/ap-group-search/popover-select/style/css.js +1 -0
- package/lib/src/business/ap-group-search/popover-select/style/index.d.ts +0 -0
- package/lib/src/business/ap-group-search/popover-select/style/index.js +1 -0
- package/lib/src/business/ap-group-search/style/css.d.ts +0 -0
- package/lib/src/business/ap-group-search/style/css.js +1 -0
- package/lib/src/business/ap-group-search/style/index.d.ts +0 -0
- package/lib/src/business/ap-group-search/style/index.js +1 -0
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.js +1 -1
- package/lib/src/business/index.d.ts +1 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/check-card/index.vue2.js +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/work-order-modal/createWorkOrder.js +1 -1
- package/package.json +6 -5
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
import { SelectValue, DefaultOptionType, LabeledValue } from '@aplus-frontend/antdv/es/select';
|
|
2
|
+
import { DefineComponent, ExtractPropTypes, PropType, CSSProperties, ComponentOptionsMixin, PublicProps } from 'vue';
|
|
3
|
+
import { VueTypeValidableDef } from '../../../../node_modules/vue-types';
|
|
4
|
+
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
5
|
+
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
6
|
+
import { SelectHandler, FieldNames, FilterFunc } from '@aplus-frontend/antdv/es/vc-select/Select';
|
|
7
|
+
import { RenderDOMFunc, DropdownRender, CustomTagProps } from '@aplus-frontend/antdv/es/vc-select/BaseSelect';
|
|
8
|
+
import { AlignType } from '@aplus-frontend/antdv/es/vc-trigger/interface';
|
|
9
|
+
declare const _default: DefineComponent<__VLS_TypePropsToOption<Omit<Partial< ExtractPropTypes<{
|
|
10
|
+
value: {
|
|
11
|
+
type: PropType<SelectValue>;
|
|
12
|
+
default: SelectValue;
|
|
13
|
+
};
|
|
14
|
+
defaultValue: {
|
|
15
|
+
type: PropType<SelectValue>;
|
|
16
|
+
default: SelectValue;
|
|
17
|
+
};
|
|
18
|
+
notFoundContent: VueTypeValidableDef<any>;
|
|
19
|
+
suffixIcon: VueTypeValidableDef<any>;
|
|
20
|
+
itemIcon: VueTypeValidableDef<any>;
|
|
21
|
+
size: {
|
|
22
|
+
type: PropType<ButtonSize>;
|
|
23
|
+
default: ButtonSize;
|
|
24
|
+
};
|
|
25
|
+
mode: {
|
|
26
|
+
type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
|
|
27
|
+
default: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
|
|
28
|
+
};
|
|
29
|
+
bordered: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
transitionName: StringConstructor;
|
|
34
|
+
choiceTransitionName: {
|
|
35
|
+
type: PropType<"">;
|
|
36
|
+
default: "";
|
|
37
|
+
};
|
|
38
|
+
popupClassName: StringConstructor;
|
|
39
|
+
dropdownClassName: StringConstructor;
|
|
40
|
+
placement: {
|
|
41
|
+
type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
|
|
42
|
+
default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
43
|
+
};
|
|
44
|
+
status: {
|
|
45
|
+
type: PropType<"" | "error" | "warning">;
|
|
46
|
+
default: "" | "error" | "warning";
|
|
47
|
+
};
|
|
48
|
+
'onUpdate:value': {
|
|
49
|
+
type: PropType<(val: SelectValue) => void>;
|
|
50
|
+
default: (val: SelectValue) => void;
|
|
51
|
+
};
|
|
52
|
+
children: PropType< VueNode[]>;
|
|
53
|
+
listHeight: NumberConstructor;
|
|
54
|
+
onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
55
|
+
onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
56
|
+
tabindex: NumberConstructor;
|
|
57
|
+
onClick: PropType<(e: MouseEvent) => void>;
|
|
58
|
+
onFocus: {
|
|
59
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
60
|
+
};
|
|
61
|
+
onBlur: {
|
|
62
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
63
|
+
};
|
|
64
|
+
onChange: PropType<(value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void>;
|
|
65
|
+
onKeydown: PropType<(e: KeyboardEvent) => void>;
|
|
66
|
+
onKeyup: PropType<(e: KeyboardEvent) => void>;
|
|
67
|
+
onMousedown: PropType<(e: MouseEvent) => void>;
|
|
68
|
+
onSelect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
69
|
+
open: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
default: any;
|
|
72
|
+
};
|
|
73
|
+
animation: StringConstructor;
|
|
74
|
+
direction: {
|
|
75
|
+
type: PropType<"rtl" | "ltr">;
|
|
76
|
+
};
|
|
77
|
+
disabled: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: any;
|
|
80
|
+
};
|
|
81
|
+
prefixCls: StringConstructor;
|
|
82
|
+
id: StringConstructor;
|
|
83
|
+
autofocus: BooleanConstructor;
|
|
84
|
+
getPopupContainer: {
|
|
85
|
+
type: PropType<RenderDOMFunc>;
|
|
86
|
+
};
|
|
87
|
+
virtual: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: any;
|
|
90
|
+
};
|
|
91
|
+
dropdownMatchSelectWidth: {
|
|
92
|
+
type: PropType<number | boolean>;
|
|
93
|
+
default: any;
|
|
94
|
+
};
|
|
95
|
+
options: PropType< DefaultOptionType[]>;
|
|
96
|
+
showAction: {
|
|
97
|
+
type: PropType<("click" | "focus")[]>;
|
|
98
|
+
};
|
|
99
|
+
onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
100
|
+
loading: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: any;
|
|
103
|
+
};
|
|
104
|
+
placeholder: VueTypeValidableDef<any>;
|
|
105
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
106
|
+
allowClear: {
|
|
107
|
+
type: BooleanConstructor;
|
|
108
|
+
default: any;
|
|
109
|
+
};
|
|
110
|
+
onSearch: PropType<(value: string) => void>;
|
|
111
|
+
fieldNames: PropType<FieldNames>;
|
|
112
|
+
dropdownStyle: {
|
|
113
|
+
type: PropType<CSSProperties>;
|
|
114
|
+
};
|
|
115
|
+
dropdownRender: {
|
|
116
|
+
type: PropType<DropdownRender>;
|
|
117
|
+
};
|
|
118
|
+
dropdownAlign: PropType<AlignType>;
|
|
119
|
+
showSearch: {
|
|
120
|
+
type: BooleanConstructor;
|
|
121
|
+
default: any;
|
|
122
|
+
};
|
|
123
|
+
searchValue: StringConstructor;
|
|
124
|
+
onInputKeyDown: PropType<(e: KeyboardEvent) => void>;
|
|
125
|
+
removeIcon: VueTypeValidableDef<any>;
|
|
126
|
+
maxTagCount: {
|
|
127
|
+
type: PropType<number | "responsive">;
|
|
128
|
+
};
|
|
129
|
+
maxTagTextLength: NumberConstructor;
|
|
130
|
+
maxTagPlaceholder: VueTypeValidableDef<any>;
|
|
131
|
+
tokenSeparators: {
|
|
132
|
+
type: PropType<string[]>;
|
|
133
|
+
};
|
|
134
|
+
tagRender: {
|
|
135
|
+
type: PropType<(props: CustomTagProps) => any>;
|
|
136
|
+
};
|
|
137
|
+
optionLabelRender: {
|
|
138
|
+
type: PropType<(option: Record<string, any>) => any>;
|
|
139
|
+
};
|
|
140
|
+
onClear: PropType<() => void>;
|
|
141
|
+
defaultOpen: {
|
|
142
|
+
type: BooleanConstructor;
|
|
143
|
+
default: any;
|
|
144
|
+
};
|
|
145
|
+
onDropdownVisibleChange: {
|
|
146
|
+
type: PropType<(open: boolean) => void>;
|
|
147
|
+
};
|
|
148
|
+
showArrow: {
|
|
149
|
+
type: BooleanConstructor;
|
|
150
|
+
default: any;
|
|
151
|
+
};
|
|
152
|
+
onPopupScroll: PropType<(e: UIEvent) => void>;
|
|
153
|
+
menuItemSelectedIcon: VueTypeValidableDef<any>;
|
|
154
|
+
listItemHeight: NumberConstructor;
|
|
155
|
+
inputValue: StringConstructor;
|
|
156
|
+
autoClearSearchValue: {
|
|
157
|
+
type: BooleanConstructor;
|
|
158
|
+
default: any;
|
|
159
|
+
};
|
|
160
|
+
filterOption: {
|
|
161
|
+
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
162
|
+
default: any;
|
|
163
|
+
};
|
|
164
|
+
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
|
|
165
|
+
optionFilterProp: StringConstructor;
|
|
166
|
+
optionLabelProp: StringConstructor;
|
|
167
|
+
defaultActiveFirstOption: {
|
|
168
|
+
type: BooleanConstructor;
|
|
169
|
+
default: any;
|
|
170
|
+
};
|
|
171
|
+
labelInValue: {
|
|
172
|
+
type: BooleanConstructor;
|
|
173
|
+
default: any;
|
|
174
|
+
};
|
|
175
|
+
}>>, "mode" | "suffixIcon">>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
176
|
+
change: (value: SelectValue) => void;
|
|
177
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<Omit<Partial< ExtractPropTypes<{
|
|
178
|
+
value: {
|
|
179
|
+
type: PropType<SelectValue>;
|
|
180
|
+
default: SelectValue;
|
|
181
|
+
};
|
|
182
|
+
defaultValue: {
|
|
183
|
+
type: PropType<SelectValue>;
|
|
184
|
+
default: SelectValue;
|
|
185
|
+
};
|
|
186
|
+
notFoundContent: VueTypeValidableDef<any>;
|
|
187
|
+
suffixIcon: VueTypeValidableDef<any>;
|
|
188
|
+
itemIcon: VueTypeValidableDef<any>;
|
|
189
|
+
size: {
|
|
190
|
+
type: PropType<ButtonSize>;
|
|
191
|
+
default: ButtonSize;
|
|
192
|
+
};
|
|
193
|
+
mode: {
|
|
194
|
+
type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
|
|
195
|
+
default: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
|
|
196
|
+
};
|
|
197
|
+
bordered: {
|
|
198
|
+
type: BooleanConstructor;
|
|
199
|
+
default: boolean;
|
|
200
|
+
};
|
|
201
|
+
transitionName: StringConstructor;
|
|
202
|
+
choiceTransitionName: {
|
|
203
|
+
type: PropType<"">;
|
|
204
|
+
default: "";
|
|
205
|
+
};
|
|
206
|
+
popupClassName: StringConstructor;
|
|
207
|
+
dropdownClassName: StringConstructor;
|
|
208
|
+
placement: {
|
|
209
|
+
type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
|
|
210
|
+
default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
211
|
+
};
|
|
212
|
+
status: {
|
|
213
|
+
type: PropType<"" | "error" | "warning">;
|
|
214
|
+
default: "" | "error" | "warning";
|
|
215
|
+
};
|
|
216
|
+
'onUpdate:value': {
|
|
217
|
+
type: PropType<(val: SelectValue) => void>;
|
|
218
|
+
default: (val: SelectValue) => void;
|
|
219
|
+
};
|
|
220
|
+
children: PropType< VueNode[]>;
|
|
221
|
+
listHeight: NumberConstructor;
|
|
222
|
+
onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
223
|
+
onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
224
|
+
tabindex: NumberConstructor;
|
|
225
|
+
onClick: PropType<(e: MouseEvent) => void>;
|
|
226
|
+
onFocus: {
|
|
227
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
228
|
+
};
|
|
229
|
+
onBlur: {
|
|
230
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
231
|
+
};
|
|
232
|
+
onChange: PropType<(value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void>;
|
|
233
|
+
onKeydown: PropType<(e: KeyboardEvent) => void>;
|
|
234
|
+
onKeyup: PropType<(e: KeyboardEvent) => void>;
|
|
235
|
+
onMousedown: PropType<(e: MouseEvent) => void>;
|
|
236
|
+
onSelect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
237
|
+
open: {
|
|
238
|
+
type: BooleanConstructor;
|
|
239
|
+
default: any;
|
|
240
|
+
};
|
|
241
|
+
animation: StringConstructor;
|
|
242
|
+
direction: {
|
|
243
|
+
type: PropType<"rtl" | "ltr">;
|
|
244
|
+
};
|
|
245
|
+
disabled: {
|
|
246
|
+
type: BooleanConstructor;
|
|
247
|
+
default: any;
|
|
248
|
+
};
|
|
249
|
+
prefixCls: StringConstructor;
|
|
250
|
+
id: StringConstructor;
|
|
251
|
+
autofocus: BooleanConstructor;
|
|
252
|
+
getPopupContainer: {
|
|
253
|
+
type: PropType<RenderDOMFunc>;
|
|
254
|
+
};
|
|
255
|
+
virtual: {
|
|
256
|
+
type: BooleanConstructor;
|
|
257
|
+
default: any;
|
|
258
|
+
};
|
|
259
|
+
dropdownMatchSelectWidth: {
|
|
260
|
+
type: PropType<number | boolean>;
|
|
261
|
+
default: any;
|
|
262
|
+
};
|
|
263
|
+
options: PropType< DefaultOptionType[]>;
|
|
264
|
+
showAction: {
|
|
265
|
+
type: PropType<("click" | "focus")[]>;
|
|
266
|
+
};
|
|
267
|
+
onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
268
|
+
loading: {
|
|
269
|
+
type: BooleanConstructor;
|
|
270
|
+
default: any;
|
|
271
|
+
};
|
|
272
|
+
placeholder: VueTypeValidableDef<any>;
|
|
273
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
274
|
+
allowClear: {
|
|
275
|
+
type: BooleanConstructor;
|
|
276
|
+
default: any;
|
|
277
|
+
};
|
|
278
|
+
onSearch: PropType<(value: string) => void>;
|
|
279
|
+
fieldNames: PropType<FieldNames>;
|
|
280
|
+
dropdownStyle: {
|
|
281
|
+
type: PropType<CSSProperties>;
|
|
282
|
+
};
|
|
283
|
+
dropdownRender: {
|
|
284
|
+
type: PropType<DropdownRender>;
|
|
285
|
+
};
|
|
286
|
+
dropdownAlign: PropType<AlignType>;
|
|
287
|
+
showSearch: {
|
|
288
|
+
type: BooleanConstructor;
|
|
289
|
+
default: any;
|
|
290
|
+
};
|
|
291
|
+
searchValue: StringConstructor;
|
|
292
|
+
onInputKeyDown: PropType<(e: KeyboardEvent) => void>;
|
|
293
|
+
removeIcon: VueTypeValidableDef<any>;
|
|
294
|
+
maxTagCount: {
|
|
295
|
+
type: PropType<number | "responsive">;
|
|
296
|
+
};
|
|
297
|
+
maxTagTextLength: NumberConstructor;
|
|
298
|
+
maxTagPlaceholder: VueTypeValidableDef<any>;
|
|
299
|
+
tokenSeparators: {
|
|
300
|
+
type: PropType<string[]>;
|
|
301
|
+
};
|
|
302
|
+
tagRender: {
|
|
303
|
+
type: PropType<(props: CustomTagProps) => any>;
|
|
304
|
+
};
|
|
305
|
+
optionLabelRender: {
|
|
306
|
+
type: PropType<(option: Record<string, any>) => any>;
|
|
307
|
+
};
|
|
308
|
+
onClear: PropType<() => void>;
|
|
309
|
+
defaultOpen: {
|
|
310
|
+
type: BooleanConstructor;
|
|
311
|
+
default: any;
|
|
312
|
+
};
|
|
313
|
+
onDropdownVisibleChange: {
|
|
314
|
+
type: PropType<(open: boolean) => void>;
|
|
315
|
+
};
|
|
316
|
+
showArrow: {
|
|
317
|
+
type: BooleanConstructor;
|
|
318
|
+
default: any;
|
|
319
|
+
};
|
|
320
|
+
onPopupScroll: PropType<(e: UIEvent) => void>;
|
|
321
|
+
menuItemSelectedIcon: VueTypeValidableDef<any>;
|
|
322
|
+
listItemHeight: NumberConstructor;
|
|
323
|
+
inputValue: StringConstructor;
|
|
324
|
+
autoClearSearchValue: {
|
|
325
|
+
type: BooleanConstructor;
|
|
326
|
+
default: any;
|
|
327
|
+
};
|
|
328
|
+
filterOption: {
|
|
329
|
+
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
330
|
+
default: any;
|
|
331
|
+
};
|
|
332
|
+
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
|
|
333
|
+
optionFilterProp: StringConstructor;
|
|
334
|
+
optionLabelProp: StringConstructor;
|
|
335
|
+
defaultActiveFirstOption: {
|
|
336
|
+
type: BooleanConstructor;
|
|
337
|
+
default: any;
|
|
338
|
+
};
|
|
339
|
+
labelInValue: {
|
|
340
|
+
type: BooleanConstructor;
|
|
341
|
+
default: any;
|
|
342
|
+
};
|
|
343
|
+
}>>, "mode" | "suffixIcon">>>> & {
|
|
344
|
+
onChange?: ((value: SelectValue) => any) | undefined;
|
|
345
|
+
}, {}, {}>;
|
|
346
|
+
export default _default;
|
|
347
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
348
|
+
type __VLS_TypePropsToOption<T> = {
|
|
349
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
350
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
351
|
+
} : {
|
|
352
|
+
type: PropType<T[K]>;
|
|
353
|
+
required: true;
|
|
354
|
+
};
|
|
355
|
+
};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { defineComponent as h, ref as r, watch as f, openBlock as g, createBlock as C, unref as i, normalizeStyle as y, withCtx as v, createVNode as w } from "vue";
|
|
2
|
+
import { Select as B } from "@aplus-frontend/antdv";
|
|
3
|
+
import "../popover-select/index.vue.mjs";
|
|
4
|
+
import "../../../config-provider/index.mjs";
|
|
5
|
+
import { useGlobalConfig as x } from "../../../config-provider/hooks/use-global-config.mjs";
|
|
6
|
+
import S from "../popover-select/index.vue2.mjs";
|
|
7
|
+
const P = /* @__PURE__ */ h({
|
|
8
|
+
__name: "index",
|
|
9
|
+
props: {
|
|
10
|
+
value: {},
|
|
11
|
+
defaultValue: {},
|
|
12
|
+
notFoundContent: {},
|
|
13
|
+
itemIcon: {},
|
|
14
|
+
size: {},
|
|
15
|
+
bordered: { type: Boolean },
|
|
16
|
+
transitionName: {},
|
|
17
|
+
choiceTransitionName: {},
|
|
18
|
+
popupClassName: {},
|
|
19
|
+
dropdownClassName: {},
|
|
20
|
+
placement: {},
|
|
21
|
+
status: {},
|
|
22
|
+
"onUpdate:value": {},
|
|
23
|
+
children: {},
|
|
24
|
+
listHeight: {},
|
|
25
|
+
onMouseenter: {},
|
|
26
|
+
onMouseleave: {},
|
|
27
|
+
tabindex: {},
|
|
28
|
+
onClick: {},
|
|
29
|
+
onFocus: {},
|
|
30
|
+
onBlur: {},
|
|
31
|
+
onChange: {},
|
|
32
|
+
onKeydown: {},
|
|
33
|
+
onKeyup: {},
|
|
34
|
+
onMousedown: {},
|
|
35
|
+
onSelect: {},
|
|
36
|
+
open: { type: Boolean },
|
|
37
|
+
animation: {},
|
|
38
|
+
direction: {},
|
|
39
|
+
disabled: { type: Boolean },
|
|
40
|
+
prefixCls: {},
|
|
41
|
+
id: {},
|
|
42
|
+
autofocus: { type: Boolean },
|
|
43
|
+
getPopupContainer: {},
|
|
44
|
+
virtual: { type: Boolean },
|
|
45
|
+
dropdownMatchSelectWidth: {},
|
|
46
|
+
options: {},
|
|
47
|
+
showAction: {},
|
|
48
|
+
onDeselect: {},
|
|
49
|
+
loading: { type: Boolean },
|
|
50
|
+
placeholder: {},
|
|
51
|
+
clearIcon: {},
|
|
52
|
+
allowClear: { type: Boolean },
|
|
53
|
+
onSearch: {},
|
|
54
|
+
fieldNames: {},
|
|
55
|
+
dropdownStyle: {},
|
|
56
|
+
dropdownRender: {},
|
|
57
|
+
dropdownAlign: {},
|
|
58
|
+
showSearch: { type: Boolean },
|
|
59
|
+
searchValue: {},
|
|
60
|
+
onInputKeyDown: {},
|
|
61
|
+
removeIcon: {},
|
|
62
|
+
maxTagCount: {},
|
|
63
|
+
maxTagTextLength: {},
|
|
64
|
+
maxTagPlaceholder: {},
|
|
65
|
+
tokenSeparators: {},
|
|
66
|
+
tagRender: {},
|
|
67
|
+
optionLabelRender: {},
|
|
68
|
+
onClear: {},
|
|
69
|
+
defaultOpen: { type: Boolean },
|
|
70
|
+
onDropdownVisibleChange: {},
|
|
71
|
+
showArrow: { type: Boolean },
|
|
72
|
+
onPopupScroll: {},
|
|
73
|
+
menuItemSelectedIcon: {},
|
|
74
|
+
listItemHeight: {},
|
|
75
|
+
inputValue: {},
|
|
76
|
+
autoClearSearchValue: { type: Boolean },
|
|
77
|
+
filterOption: {},
|
|
78
|
+
filterSort: {},
|
|
79
|
+
optionFilterProp: {},
|
|
80
|
+
optionLabelProp: {},
|
|
81
|
+
defaultActiveFirstOption: { type: Boolean },
|
|
82
|
+
labelInValue: { type: Boolean }
|
|
83
|
+
},
|
|
84
|
+
emits: ["change"],
|
|
85
|
+
setup(p, { emit: u }) {
|
|
86
|
+
const s = x("uiMode", "aplus"), o = p, n = r(), a = r(!1), d = u, c = (e) => {
|
|
87
|
+
e && (a.value = !1);
|
|
88
|
+
};
|
|
89
|
+
f(
|
|
90
|
+
() => o.value,
|
|
91
|
+
() => {
|
|
92
|
+
n.value = o.value;
|
|
93
|
+
},
|
|
94
|
+
{ immediate: !0 }
|
|
95
|
+
);
|
|
96
|
+
const t = (e) => {
|
|
97
|
+
n.value = e, d("change", e);
|
|
98
|
+
};
|
|
99
|
+
return (e, l) => (g(), C(i(B), {
|
|
100
|
+
value: n.value,
|
|
101
|
+
style: y(e.$attrs.style),
|
|
102
|
+
bordered: i(s) === "admin",
|
|
103
|
+
mode: "tags",
|
|
104
|
+
showArrow: !0,
|
|
105
|
+
open: a.value,
|
|
106
|
+
onDropdownVisibleChange: l[0] || (l[0] = (m) => a.value = m),
|
|
107
|
+
onChange: t,
|
|
108
|
+
maxTagCount: o.maxTagCount,
|
|
109
|
+
placeholder: o.placeholder
|
|
110
|
+
}, {
|
|
111
|
+
suffixIcon: v(() => [
|
|
112
|
+
w(S, {
|
|
113
|
+
value: n.value,
|
|
114
|
+
onSubmit: t,
|
|
115
|
+
onOpenChange: c
|
|
116
|
+
}, null, 8, ["value"])
|
|
117
|
+
]),
|
|
118
|
+
_: 1
|
|
119
|
+
}, 8, ["value", "style", "bordered", "open", "maxTagCount", "placeholder"]));
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
export {
|
|
123
|
+
P as default
|
|
124
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createElementVNode as o, openBlock as t, createElementBlock as e } from "vue";
|
|
2
|
+
import n from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
3
|
+
const c = {}, l = {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
6
|
+
fill: "none",
|
|
7
|
+
version: "1.1",
|
|
8
|
+
width: "16",
|
|
9
|
+
height: "16",
|
|
10
|
+
viewBox: "0 0 16 16"
|
|
11
|
+
}, r = /* @__PURE__ */ o("g", null, [
|
|
12
|
+
/* @__PURE__ */ o("g", null, [
|
|
13
|
+
/* @__PURE__ */ o("path", {
|
|
14
|
+
d: "M5.248374744964599,6C4.7452713449646,6,4.465567744964599,6.581959,4.7798537449645995,6.974817L7.5314787449646,10.414349999999999C7.7716787449646,10.714590000000001,8.2283287449646,10.714590000000001,8.4685187449646,10.414349999999999L11.2201487449646,6.974817C11.5344287449646,6.581959,11.254728744964599,6,10.751628744964599,6L5.248374744964599,6Z",
|
|
15
|
+
fill: "currentcolor",
|
|
16
|
+
"fill-opacity": "1"
|
|
17
|
+
})
|
|
18
|
+
])
|
|
19
|
+
], -1), i = [
|
|
20
|
+
r
|
|
21
|
+
];
|
|
22
|
+
function s(_, w) {
|
|
23
|
+
return t(), e("svg", l, i);
|
|
24
|
+
}
|
|
25
|
+
const d = /* @__PURE__ */ n(c, [["render", s]]);
|
|
26
|
+
export {
|
|
27
|
+
d as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { createElementVNode as Q, openBlock as l, createElementBlock as e } from "vue";
|
|
2
|
+
import t from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
3
|
+
const o = {}, n = {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
6
|
+
fill: "none",
|
|
7
|
+
version: "1.1",
|
|
8
|
+
width: "16",
|
|
9
|
+
height: "16",
|
|
10
|
+
viewBox: "0 0 16 16"
|
|
11
|
+
}, i = /* @__PURE__ */ Q("g", null, [
|
|
12
|
+
/* @__PURE__ */ Q("g", null, [
|
|
13
|
+
/* @__PURE__ */ Q("path", {
|
|
14
|
+
d: "M3,4.5L13,4.5Q13.0492,4.5,13.0975,4.509607Q13.1458,4.519215,13.1913,4.53806Q13.2368,4.556906,13.2778,4.584265Q13.3187,4.611625,13.3536,4.646447Q13.3884,4.681269,13.4157,4.722215Q13.4431,4.763161,13.4619,4.808658Q13.4808,4.854155,13.4904,4.9024549Q13.5,4.9507543,13.5,5Q13.5,5.0492457,13.4904,5.0975451Q13.4808,5.145845,13.4619,5.191342Q13.4431,5.236839,13.4157,5.277785Q13.3884,5.318731,13.3536,5.353553Q13.3187,5.388375,13.2778,5.415735Q13.2368,5.443094,13.1913,5.46194Q13.1458,5.480785,13.0975,5.490393Q13.0492,5.5,13,5.5L3,5.5Q2.9507543,5.5,2.9024549,5.490393Q2.854155,5.480785,2.808658,5.46194Q2.763161,5.443094,2.722215,5.415735Q2.681269,5.388375,2.646447,5.353553Q2.611625,5.318731,2.584265,5.277785Q2.556906,5.236839,2.5380599999999998,5.191342Q2.519215,5.145845,2.509607,5.0975451Q2.5,5.0492457,2.5,5Q2.5,4.9507543,2.509607,4.9024549Q2.519215,4.854155,2.5380599999999998,4.808658Q2.556906,4.763161,2.584265,4.722215Q2.611625,4.681269,2.646447,4.646447Q2.681269,4.611625,2.722215,4.584265Q2.763161,4.556906,2.808658,4.53806Q2.854155,4.519215,2.9024549,4.509607Q2.9507543,4.5,3,4.5Z",
|
|
15
|
+
"fill-rule": "evenodd",
|
|
16
|
+
fill: "#BFBFBF",
|
|
17
|
+
"fill-opacity": "1"
|
|
18
|
+
})
|
|
19
|
+
]),
|
|
20
|
+
/* @__PURE__ */ Q("g", null, [
|
|
21
|
+
/* @__PURE__ */ Q("path", {
|
|
22
|
+
d: "M3,7.5L13,7.5Q13.0492,7.5,13.0975,7.509607Q13.1458,7.519215,13.1913,7.53806Q13.2368,7.556906,13.2778,7.584265Q13.3187,7.611625,13.3536,7.646447Q13.3884,7.681269,13.4157,7.722215Q13.4431,7.763161,13.4619,7.808658Q13.4808,7.854155,13.4904,7.9024549Q13.5,7.9507543,13.5,8Q13.5,8.0492457,13.4904,8.0975451Q13.4808,8.145845,13.4619,8.191342Q13.4431,8.236839,13.4157,8.277785Q13.3884,8.318731,13.3536,8.353553Q13.3187,8.388375,13.2778,8.415735Q13.2368,8.443094,13.1913,8.46194Q13.1458,8.480785000000001,13.0975,8.490393Q13.0492,8.5,13,8.5L3,8.5Q2.9507543,8.5,2.9024549,8.490393Q2.854155,8.480785000000001,2.808658,8.46194Q2.763161,8.443094,2.722215,8.415735Q2.681269,8.388375,2.646447,8.353553Q2.611625,8.318731,2.584265,8.277785Q2.556906,8.236839,2.5380599999999998,8.191342Q2.519215,8.145845,2.509607,8.0975451Q2.5,8.0492457,2.5,8Q2.5,7.9507543,2.509607,7.9024549Q2.519215,7.854155,2.5380599999999998,7.808658Q2.556906,7.763161,2.584265,7.722215Q2.611625,7.681269,2.646447,7.646447Q2.681269,7.611625,2.722215,7.584265Q2.763161,7.556906,2.808658,7.53806Q2.854155,7.519215,2.9024549,7.509607Q2.9507543,7.5,3,7.5Z",
|
|
23
|
+
"fill-rule": "evenodd",
|
|
24
|
+
fill: "#BFBFBF",
|
|
25
|
+
"fill-opacity": "1"
|
|
26
|
+
})
|
|
27
|
+
]),
|
|
28
|
+
/* @__PURE__ */ Q("g", null, [
|
|
29
|
+
/* @__PURE__ */ Q("path", {
|
|
30
|
+
d: "M3,10.5L8,10.5Q8.04925,10.5,8.09755,10.509607Q8.14584,10.519214999999999,8.19134,10.53806Q8.23684,10.556906,8.27778,10.584265Q8.31873,10.611625,8.35355,10.646447Q8.38837,10.681269,8.41573,10.722215Q8.44309,10.763161,8.46194,10.808658Q8.48078,10.854155,8.49039,10.9024549Q8.5,10.9507543,8.5,11Q8.5,11.0492457,8.49039,11.0975451Q8.48078,11.145845,8.46194,11.191342Q8.44309,11.236839,8.41573,11.277785Q8.38837,11.318731,8.35355,11.353553Q8.31873,11.388375,8.27778,11.415735Q8.23684,11.443094,8.19134,11.46194Q8.14584,11.480785000000001,8.09755,11.490393Q8.04925,11.5,8,11.5L3,11.5Q2.9507543,11.5,2.9024549,11.490393Q2.854155,11.480785000000001,2.808658,11.46194Q2.763161,11.443094,2.722215,11.415735Q2.681269,11.388375,2.646447,11.353553Q2.611625,11.318731,2.584265,11.277785Q2.556906,11.236839,2.5380599999999998,11.191342Q2.519215,11.145845,2.509607,11.0975451Q2.5,11.0492457,2.5,11Q2.5,10.9507543,2.509607,10.9024549Q2.519215,10.854155,2.5380599999999998,10.808658Q2.556906,10.763161,2.584265,10.722215Q2.611625,10.681269,2.646447,10.646447Q2.681269,10.611625,2.722215,10.584265Q2.763161,10.556906,2.808658,10.53806Q2.854155,10.519214999999999,2.9024549,10.509607Q2.9507543,10.5,3,10.5Z",
|
|
31
|
+
"fill-rule": "evenodd",
|
|
32
|
+
fill: "#BFBFBF",
|
|
33
|
+
"fill-opacity": "1"
|
|
34
|
+
})
|
|
35
|
+
])
|
|
36
|
+
], -1), c = [
|
|
37
|
+
i
|
|
38
|
+
];
|
|
39
|
+
function r(d, f) {
|
|
40
|
+
return l(), e("svg", n, c);
|
|
41
|
+
}
|
|
42
|
+
const p = /* @__PURE__ */ t(o, [["render", r]]);
|
|
43
|
+
export {
|
|
44
|
+
p as default
|
|
45
|
+
};
|