@aplus-frontend/ui 0.2.6 → 0.2.8

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.
Files changed (75) hide show
  1. package/es/index.mjs +151 -147
  2. package/es/src/ap-field/interface.d.ts +2 -1
  3. package/es/src/ap-field/switch/index.vue.mjs +50 -49
  4. package/es/src/ap-form/drawer-form/index.vue.mjs +104 -99
  5. package/es/src/ap-table/constants.d.ts +7 -1189
  6. package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +50 -0
  7. package/es/src/business/ap-group-search/ap-group-search.vue.mjs +4 -0
  8. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +184 -0
  9. package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +355 -0
  10. package/es/src/business/ap-group-search/extension-select/index.vue.mjs +4 -0
  11. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +118 -0
  12. package/es/src/business/ap-group-search/images/icon-down.vue.d.ts +3 -0
  13. package/es/src/business/ap-group-search/images/icon-down.vue.mjs +28 -0
  14. package/es/src/business/ap-group-search/images/icon-line-select.vue.d.ts +3 -0
  15. package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +45 -0
  16. package/es/src/business/ap-group-search/index.d.ts +2823 -0
  17. package/es/src/business/ap-group-search/index.mjs +14 -0
  18. package/es/src/business/ap-group-search/interface.d.ts +11 -0
  19. package/es/src/business/ap-group-search/interface.mjs +1 -0
  20. package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +357 -0
  21. package/es/src/business/ap-group-search/popover-select/index.vue.mjs +4 -0
  22. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +192 -0
  23. package/es/src/business/ap-group-search/popover-select/style/css.d.ts +0 -0
  24. package/es/src/business/ap-group-search/popover-select/style/css.js +1 -0
  25. package/es/src/business/ap-group-search/popover-select/style/index.d.ts +0 -0
  26. package/es/src/business/ap-group-search/popover-select/style/index.js +1 -0
  27. package/es/src/business/ap-group-search/style/css.d.ts +0 -0
  28. package/es/src/business/ap-group-search/style/css.js +1 -0
  29. package/es/src/business/ap-group-search/style/index.d.ts +0 -0
  30. package/es/src/business/ap-group-search/style/index.js +1 -0
  31. package/es/src/business/index.d.ts +1 -0
  32. package/es/src/business/index.mjs +30 -26
  33. package/es/src/check-card/index.vue2.mjs +43 -43
  34. package/es/src/index.mjs +33 -29
  35. package/es/src/locale/lang/en.mjs +8 -0
  36. package/es/src/locale/lang/zh-cn.mjs +8 -0
  37. package/es/src/path-map.mjs +3 -1
  38. package/lib/index.js +1 -1
  39. package/lib/src/ap-field/interface.d.ts +2 -1
  40. package/lib/src/ap-field/switch/index.vue.js +1 -1
  41. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  42. package/lib/src/ap-table/constants.d.ts +7 -1189
  43. package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +50 -0
  44. package/lib/src/business/ap-group-search/ap-group-search.vue.js +1 -0
  45. package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -0
  46. package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +355 -0
  47. package/lib/src/business/ap-group-search/extension-select/index.vue.js +1 -0
  48. package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -0
  49. package/lib/src/business/ap-group-search/images/icon-down.vue.d.ts +3 -0
  50. package/lib/src/business/ap-group-search/images/icon-down.vue.js +1 -0
  51. package/lib/src/business/ap-group-search/images/icon-line-select.vue.d.ts +3 -0
  52. package/lib/src/business/ap-group-search/images/icon-line-select.vue.js +1 -0
  53. package/lib/src/business/ap-group-search/index.d.ts +2823 -0
  54. package/lib/src/business/ap-group-search/index.js +1 -0
  55. package/lib/src/business/ap-group-search/interface.d.ts +11 -0
  56. package/lib/src/business/ap-group-search/interface.js +1 -0
  57. package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +357 -0
  58. package/lib/src/business/ap-group-search/popover-select/index.vue.js +1 -0
  59. package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -0
  60. package/lib/src/business/ap-group-search/popover-select/style/css.d.ts +0 -0
  61. package/lib/src/business/ap-group-search/popover-select/style/css.js +1 -0
  62. package/lib/src/business/ap-group-search/popover-select/style/index.d.ts +0 -0
  63. package/lib/src/business/ap-group-search/popover-select/style/index.js +1 -0
  64. package/lib/src/business/ap-group-search/style/css.d.ts +0 -0
  65. package/lib/src/business/ap-group-search/style/css.js +1 -0
  66. package/lib/src/business/ap-group-search/style/index.d.ts +0 -0
  67. package/lib/src/business/ap-group-search/style/index.js +1 -0
  68. package/lib/src/business/index.d.ts +1 -0
  69. package/lib/src/business/index.js +1 -1
  70. package/lib/src/check-card/index.vue2.js +1 -1
  71. package/lib/src/index.js +1 -1
  72. package/lib/src/locale/lang/en.js +1 -1
  73. package/lib/src/locale/lang/zh-cn.js +1 -1
  74. package/lib/src/path-map.js +1 -1
  75. package/package.json +21 -8
@@ -0,0 +1,50 @@
1
+ import { SelectValue } from '@aplus-frontend/antdv/es/select';
2
+ import { GroupSearchProps } from './interface';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
4
+ declare function __VLS_template(): {
5
+ slots: {
6
+ search?(_: {
7
+ value: any;
8
+ change: (e: any) => void;
9
+ key: SelectValue;
10
+ }): any;
11
+ };
12
+ refs: {};
13
+ attrs: Partial<{}>;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<GroupSearchProps>, {
17
+ hasAll: boolean;
18
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
19
+ "update:value": (...args: any[]) => void;
20
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GroupSearchProps>, {
21
+ hasAll: boolean;
22
+ }>>> & {
23
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
24
+ }, {
25
+ hasAll: boolean;
26
+ }, {}>;
27
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
+ export default _default;
29
+ type __VLS_WithDefaults<P, D> = {
30
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
31
+ default: D[K];
32
+ }> : P[K];
33
+ };
34
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
35
+ type __VLS_TypePropsToOption<T> = {
36
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
37
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
38
+ } : {
39
+ type: PropType<T[K]>;
40
+ required: true;
41
+ };
42
+ };
43
+ type __VLS_WithTemplateSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
48
+ type __VLS_PrettifyLocal<T> = {
49
+ [K in keyof T]: T[K];
50
+ } & {};
@@ -0,0 +1,4 @@
1
+ import f from "./ap-group-search.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,184 @@
1
+ import { defineComponent as I, computed as c, onMounted as V, watch as L, unref as t, openBlock as P, createElementBlock as O, normalizeClass as f, createVNode as i, withCtx as y, normalizeStyle as M, renderSlot as N } from "vue";
2
+ import { Flex as K, Select as T } from "@aplus-frontend/antdv";
3
+ import j from "./images/icon-down.vue.mjs";
4
+ import "./extension-select/index.vue.mjs";
5
+ import { useControllableValue as F } from "../../hooks/useControllableValue.mjs";
6
+ import "../../config-provider/index.mjs";
7
+ import { useLocale as R } from "../../config-provider/hooks/use-locale.mjs";
8
+ import { useGlobalConfig as $ } from "../../config-provider/hooks/use-global-config.mjs";
9
+ import { useNamespace as D } from "../../config-provider/hooks/use-namespace.mjs";
10
+ import E from "./extension-select/index.vue2.mjs";
11
+ const d = "GROUP_SEARCH_ALL", Z = /* @__PURE__ */ I({
12
+ __name: "ap-group-search",
13
+ props: {
14
+ value: {},
15
+ defaultValue: {},
16
+ notFoundContent: {},
17
+ suffixIcon: {},
18
+ itemIcon: {},
19
+ size: {},
20
+ mode: {},
21
+ bordered: { type: Boolean },
22
+ transitionName: {},
23
+ choiceTransitionName: {},
24
+ popupClassName: {},
25
+ dropdownClassName: {},
26
+ placement: {},
27
+ status: {},
28
+ "onUpdate:value": {},
29
+ children: {},
30
+ listHeight: {},
31
+ onMouseenter: {},
32
+ onMouseleave: {},
33
+ tabindex: {},
34
+ onClick: {},
35
+ onFocus: {},
36
+ onBlur: {},
37
+ onChange: {},
38
+ onKeydown: {},
39
+ onKeyup: {},
40
+ onMousedown: {},
41
+ onSelect: {},
42
+ open: { type: Boolean },
43
+ animation: {},
44
+ direction: {},
45
+ disabled: { type: Boolean },
46
+ prefixCls: {},
47
+ id: {},
48
+ autofocus: { type: Boolean },
49
+ getPopupContainer: {},
50
+ virtual: { type: Boolean },
51
+ dropdownMatchSelectWidth: {},
52
+ options: {},
53
+ showAction: {},
54
+ onDeselect: {},
55
+ loading: { type: Boolean },
56
+ placeholder: {},
57
+ clearIcon: {},
58
+ allowClear: { type: Boolean },
59
+ onSearch: {},
60
+ fieldNames: {},
61
+ dropdownStyle: {},
62
+ dropdownRender: {},
63
+ dropdownAlign: {},
64
+ showSearch: { type: Boolean },
65
+ searchValue: {},
66
+ onInputKeyDown: {},
67
+ removeIcon: {},
68
+ maxTagCount: {},
69
+ maxTagTextLength: {},
70
+ maxTagPlaceholder: {},
71
+ tokenSeparators: {},
72
+ tagRender: {},
73
+ optionLabelRender: {},
74
+ onClear: {},
75
+ defaultOpen: { type: Boolean },
76
+ onDropdownVisibleChange: {},
77
+ showArrow: { type: Boolean },
78
+ onPopupScroll: {},
79
+ menuItemSelectedIcon: {},
80
+ listItemHeight: {},
81
+ inputValue: {},
82
+ autoClearSearchValue: { type: Boolean },
83
+ filterOption: {},
84
+ filterSort: {},
85
+ optionFilterProp: {},
86
+ optionLabelProp: {},
87
+ defaultActiveFirstOption: { type: Boolean },
88
+ labelInValue: { type: Boolean },
89
+ hasAll: { type: Boolean, default: !0 },
90
+ style: { type: [Boolean, null, String, Object, Array] }
91
+ },
92
+ emits: ["update:value"],
93
+ setup(v, { emit: g }) {
94
+ const { t: m } = R(), C = $("uiMode", "aplus"), n = v, S = g, { value: a, updateValue: p } = F(n, S), w = (e) => {
95
+ let o = e;
96
+ e === d && (o = n.options.map((l) => l.value)), p({
97
+ ...a.value,
98
+ key: o
99
+ });
100
+ }, B = c(() => {
101
+ let e = [];
102
+ return n.hasAll && (e = [
103
+ { value: d, label: m("ap.apGroupSearch.all") }
104
+ ]), [...e, ...n.options];
105
+ }), b = c(() => {
106
+ var r, s;
107
+ const e = (r = a == null ? void 0 : a.value) == null ? void 0 : r.key, o = m("ap.apGroupSearch.defaultPlaceholder");
108
+ if (!e) return o;
109
+ const l = toString.call(e) === "[object Array]" ? e : [e];
110
+ return ((s = n.options) == null ? void 0 : s.filter((u) => l.includes(u.value)).map((u) => u.label).join("/")) || o;
111
+ });
112
+ V(() => {
113
+ L(
114
+ () => n.hasAll,
115
+ () => {
116
+ var e, o;
117
+ n.hasAll && !((e = t(a)) != null && e.key) && p({
118
+ ...t(a),
119
+ key: (o = n.options) == null ? void 0 : o.map((l) => l.value)
120
+ });
121
+ },
122
+ {
123
+ immediate: !0
124
+ }
125
+ );
126
+ });
127
+ const A = c(() => {
128
+ var l, r;
129
+ const e = Object.prototype.toString, o = (l = t(a)) == null ? void 0 : l.key;
130
+ if (o)
131
+ return e.call(o) === "[object Array]" && (o == null ? void 0 : o.length) === ((r = n.options) == null ? void 0 : r.length) ? d : o;
132
+ }), h = (e) => {
133
+ var o;
134
+ e !== ((o = t(a)) == null ? void 0 : o.value) && p({
135
+ ...a.value,
136
+ value: e
137
+ });
138
+ }, { b: _, e: k, em: x } = D("ap-group-search");
139
+ return (e, o) => (P(), O("div", {
140
+ class: f(t(_)())
141
+ }, [
142
+ i(t(K), null, {
143
+ default: y(() => {
144
+ var l, r;
145
+ return [
146
+ i(t(T), {
147
+ value: A.value,
148
+ style: M(n.style),
149
+ class: f(`${e.$attrs.class} ${t(C) === "admin" ? t(x)("search", "admin") : t(k)("search")}`),
150
+ options: B.value,
151
+ bordered: !1,
152
+ onChange: w
153
+ }, {
154
+ suffixIcon: y(() => [
155
+ i(j)
156
+ ]),
157
+ _: 1
158
+ }, 8, ["value", "style", "class", "options"]),
159
+ N(e.$slots, "search", {
160
+ value: (l = t(a)) == null ? void 0 : l.value,
161
+ change: h,
162
+ key: (r = t(a)) == null ? void 0 : r.key
163
+ }, () => {
164
+ var s;
165
+ return [
166
+ i(E, {
167
+ style: { width: "100%" },
168
+ maxTagCount: "responsive",
169
+ value: (s = t(a)) == null ? void 0 : s.value,
170
+ onChange: h,
171
+ placeholder: b.value
172
+ }, null, 8, ["value", "placeholder"])
173
+ ];
174
+ })
175
+ ];
176
+ }),
177
+ _: 3
178
+ })
179
+ ], 2));
180
+ }
181
+ });
182
+ export {
183
+ Z as default
184
+ };
@@ -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,4 @@
1
+ import f from "./index.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };