st-comp 0.0.178 → 0.0.180
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/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +3 -3
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +29 -33
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +14 -18
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +25 -30
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +457 -419
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +13 -16
- package/es/KlinePlus.cjs +3 -3
- package/es/KlinePlus.js +140 -142
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +274 -276
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +3 -3
- package/es/Table.cjs +1 -1
- package/es/Table.js +21 -23
- package/es/User.cjs +1 -1
- package/es/User.js +472 -482
- package/es/VarSelectDialog.cjs +3 -3
- package/es/VarSelectDialog.js +440 -2878
- package/es/VarietySearch.cjs +12 -12
- package/es/VarietySearch.js +1199 -1176
- package/es/VirtualTable.cjs +1 -13
- package/es/VirtualTable.js +1547 -1567
- package/es/{_initCloneObject-da90eef0.js → _initCloneObject-346b7ee2.js} +25 -26
- package/es/_initCloneObject-e2f0deb9.cjs +1 -0
- package/es/base-62a70f61.js +288 -0
- package/es/base-ef747d02.cjs +5 -0
- package/es/config-provider-178bb43c.cjs +1 -0
- package/es/config-provider-2e733cae.js +58 -0
- package/es/dayjs.min-2c20abe6.cjs +1 -0
- package/es/{dayjs.min-54a4e095.js → dayjs.min-8313b006.js} +96 -93
- package/es/{debounce-9e323221.cjs → debounce-0b77a317.cjs} +1 -1
- package/es/{debounce-3cec4646.js → debounce-5f2ec4be.js} +19 -19
- package/es/{dropdown-82b80e8b.js → dropdown-d06edf54.js} +49 -39
- package/es/dropdown-f2fec683.cjs +1 -0
- package/es/el-button-5b08c08a.js +272 -0
- package/es/el-button-fc46a173.cjs +1 -0
- package/es/el-dialog-0b7166c9.cjs +1 -0
- package/es/el-dialog-d8d0da7a.js +276 -0
- package/es/{el-divider-fd2b4e2e.js → el-divider-2f300113.js} +1 -1
- package/es/{el-divider-40c50ce7.cjs → el-divider-4713d74c.cjs} +1 -1
- package/es/{el-empty-412fc297.js → el-empty-87a86f30.js} +57 -80
- package/es/el-empty-bb2b0235.cjs +1 -0
- package/es/el-form-item-caffd133.cjs +12 -0
- package/es/el-form-item-ff9c7d98.js +1267 -0
- package/es/el-input-6db30c8c.js +531 -0
- package/es/el-input-9c912678.cjs +1 -0
- package/es/el-input-number-05f150e5.js +311 -0
- package/es/el-input-number-6fe73563.cjs +1 -0
- package/es/el-loading-8514feaa.cjs +1 -0
- package/es/el-loading-93842445.js +203 -0
- package/es/el-menu-item-7a57c1be.cjs +1 -0
- package/es/el-menu-item-a886fbdd.js +768 -0
- package/es/el-message-8aa674f2.js +406 -0
- package/es/el-message-aad5b42b.cjs +1 -0
- package/es/el-message-box-2b6b2b68.js +550 -0
- package/es/el-message-box-53f355d7.cjs +1 -0
- package/es/el-overlay-540b2a02.js +324 -0
- package/es/el-overlay-96630a2e.cjs +1 -0
- package/es/el-popconfirm-2afdf6fb.cjs +1 -0
- package/es/el-popconfirm-c18d8035.js +162 -0
- package/es/el-popper-544fd77e.js +2412 -0
- package/es/el-popper-73466d7a.cjs +1 -0
- package/es/el-scrollbar-691cfc11.cjs +1 -0
- package/es/el-scrollbar-fae984e3.js +763 -0
- package/es/el-segmented-a7493831.js +142 -0
- package/es/el-segmented-b6bd3c0e.cjs +1 -0
- package/es/el-select-5959e837.cjs +1 -0
- package/es/el-select-ea8feecf.js +1251 -0
- package/es/el-table-column-9ef52443.js +3878 -0
- package/es/el-table-column-b824ac5c.cjs +14 -0
- package/es/el-tag-2fc9b9eb.js +116 -0
- package/es/el-tag-ecad6d02.cjs +1 -0
- package/es/index-2e331d74.js +10 -0
- package/es/{index-a8e9ec0f.js → index-34592e82.js} +176 -182
- package/es/index-3a74eae4.cjs +1 -0
- package/es/{index-1c41bd56.js → index-5d4e5c51.js} +3 -3
- package/es/{index-e348d5e8.cjs → index-694bb944.cjs} +1 -1
- package/es/{index-ee1cebbc.js → index-74fb90c7.js} +5 -5
- package/es/{index-d577b81b.js → index-8d7ae5dc.js} +2 -2
- package/es/index-a9095b4a.js +163 -0
- package/es/index-a93dd9c4.cjs +1 -0
- package/es/index-ebd2fd7e.cjs +1 -0
- package/es/index-f1c702f6.cjs +1 -0
- package/es/{index-19fa1fcf.cjs → index-f6afafaa.cjs} +1 -1
- package/es/{raf-bfbf42e4.js → raf-41aed4d4.js} +1 -1
- package/es/{raf-07cb6953.cjs → raf-8249652f.cjs} +1 -1
- package/es/{scroll-e3cb691f.js → scroll-7d352c1f.js} +2 -2
- package/es/{scroll-4769a65d.cjs → scroll-b108dabd.cjs} +1 -1
- package/es/style.css +1 -1
- package/es/use-global-config-03735617.cjs +1 -0
- package/es/use-global-config-4b185eb5.js +71 -0
- package/es/validator-0e688e4e.cjs +1 -0
- package/es/validator-d12a8f8c.js +5 -0
- package/es/vnode-4db20540.cjs +1 -0
- package/es/vnode-a0795a4b.js +70 -0
- package/es/{zh-cn-d883afa8.js → zh-cn-0ff32188.js} +5 -4
- package/es/{zh-cn-b24a7dc9.cjs → zh-cn-adf19c4b.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +226 -245
- package/lib/{index-0f16f8b0.js → index-9341884f.js} +44358 -46367
- package/lib/{python-e9c32bc9.js → python-5c9b3e4e.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +2 -2
- package/packages/KlinePlus/index.vue +2 -1
- package/packages/VarSelectDialog/index.vue +43 -67
- package/packages/VarietySearch/components/FactorScreen/FactorDescription.vue +4 -2
- package/packages/VarietySearch/components/FactorScreen/index.vue +6 -4
- package/packages/index.ts +0 -2
- package/src/pages/VarSelectDialog/index.vue +1 -1
- package/src/router/routes.ts +0 -5
- package/es/Dialog.cjs +0 -1
- package/es/Dialog.js +0 -95
- package/es/_commonjsHelpers-10dfc225.js +0 -8
- package/es/_commonjsHelpers-87b0abe8.cjs +0 -1
- package/es/_initCloneObject-9ccbb113.cjs +0 -1
- package/es/base-bdc10baa.cjs +0 -5
- package/es/base-d9284bf0.js +0 -304
- package/es/castArray-37eb9980.cjs +0 -1
- package/es/castArray-b0ab0165.js +0 -10
- package/es/config-provider-ec6b09df.cjs +0 -1
- package/es/config-provider-f0151e9f.js +0 -47
- package/es/dayjs.min-19fb125f.cjs +0 -1
- package/es/dropdown-b2dab5bb.cjs +0 -1
- package/es/el-button-34665425.js +0 -237
- package/es/el-button-960edd49.cjs +0 -1
- package/es/el-dialog-a412484e.js +0 -267
- package/es/el-dialog-cd484c1f.cjs +0 -1
- package/es/el-empty-627ec09e.cjs +0 -1
- package/es/el-form-item-668ba024.js +0 -1263
- package/es/el-form-item-e1c3104b.cjs +0 -12
- package/es/el-input-22e66e37.js +0 -523
- package/es/el-input-5163bda3.cjs +0 -1
- package/es/el-input-number-481e21c5.js +0 -284
- package/es/el-input-number-eb54cde4.cjs +0 -1
- package/es/el-loading-15a5501c.cjs +0 -1
- package/es/el-loading-d4e403ab.js +0 -187
- package/es/el-menu-item-404c10e5.js +0 -772
- package/es/el-menu-item-ac89e804.cjs +0 -1
- package/es/el-message-ad87b9dd.cjs +0 -1
- package/es/el-message-box-41f39f6d.js +0 -558
- package/es/el-message-box-6694f827.cjs +0 -1
- package/es/el-message-ef506caa.js +0 -375
- package/es/el-overlay-4a9fa4e1.js +0 -269
- package/es/el-overlay-e5d318c3.cjs +0 -1
- package/es/el-popconfirm-7b9183aa.js +0 -140
- package/es/el-popconfirm-a497b279.cjs +0 -1
- package/es/el-popper-14a9d493.cjs +0 -1
- package/es/el-popper-e73466eb.js +0 -2263
- package/es/el-scrollbar-45318df0.js +0 -201
- package/es/el-scrollbar-8bf765f2.cjs +0 -1
- package/es/el-segmented-3ba6d664.cjs +0 -1
- package/es/el-segmented-41820018.js +0 -135
- package/es/el-select-1d2309a1.cjs +0 -1
- package/es/el-select-d7a00294.js +0 -1130
- package/es/el-table-column-a2d0c635.js +0 -3805
- package/es/el-table-column-be9a76bb.cjs +0 -14
- package/es/el-tag-7f391090.js +0 -280
- package/es/el-tag-8d49d4d2.cjs +0 -1
- package/es/index-02ca0096.cjs +0 -5
- package/es/index-3120be08.js +0 -14
- package/es/index-5b81f4da.cjs +0 -1
- package/es/index-85a32a00.js +0 -59
- package/es/index-8d3c5e96.cjs +0 -3
- package/es/index-94f38460.js +0 -306
- package/es/index-a99a5307.cjs +0 -1
- package/es/index-b90c746b.cjs +0 -1
- package/es/index-d94bae37.cjs +0 -1
- package/es/index-d99fdc6d.js +0 -159
- package/es/use-form-common-props-592797e2.cjs +0 -2
- package/es/use-form-common-props-cc347a83.js +0 -171
- package/es/use-global-config-584b62f1.cjs +0 -1
- package/es/use-global-config-c7f0a7e3.js +0 -73
- package/es/validator-10fa54fe.js +0 -5
- package/es/validator-af488a9a.cjs +0 -1
- package/es/vnode-1b827c99.cjs +0 -1
- package/es/vnode-6be33bb1.js +0 -14
- package/packages/Dialog/index.ts +0 -8
- package/packages/Dialog/index.vue +0 -54
- package/src/pages/Dialog/index.vue +0 -16
package/es/el-select-d7a00294.js
DELETED
|
@@ -1,1130 +0,0 @@
|
|
|
1
|
-
import { shallowRef as _t, ref as V, computed as r, inject as Se, getCurrentInstance as Ee, toRaw as xt, watch as G, defineComponent as ae, unref as Ie, reactive as ne, toRefs as Te, onBeforeUnmount as el, nextTick as F, withDirectives as le, openBlock as g, createElementBlock as I, normalizeClass as p, withModifiers as L, renderSlot as $, createElementVNode as T, toDisplayString as B, vShow as $e, onMounted as ke, normalizeStyle as he, createCommentVNode as k, watchEffect as tl, provide as lt, resolveComponent as K, resolveDirective as ll, toHandlerKey as nl, createVNode as A, withCtx as D, Fragment as Xe, renderList as Ye, createTextVNode as Je, createBlock as W, withKeys as ee, vModelText as ol, resolveDynamicComponent as Ve } from "vue";
|
|
2
|
-
import { b as al, B as sl, u as il, a as rl, E as ul } from "./el-popper-e73466eb.js";
|
|
3
|
-
import { t as Ze, E as dl } from "./index-1c41bd56.js";
|
|
4
|
-
import { o as cl, a as pl, E as fl } from "./index-ee1cebbc.js";
|
|
5
|
-
import { e as q, u as oe, _ as ye, g as P, x as me, E as _e, n as vl, p as ml, m as bl, y as te, F as hl, i as gl, b as Sl, d as be, w as yl, j as nt } from "./base-d9284bf0.js";
|
|
6
|
-
import { c as z } from "./castArray-b0ab0165.js";
|
|
7
|
-
import { h as Q, a as ot, u as Cl } from "./index-a8e9ec0f.js";
|
|
8
|
-
import { u as H, c as Ol } from "./el-scrollbar-45318df0.js";
|
|
9
|
-
import { u as wl, a as Il } from "./index-85a32a00.js";
|
|
10
|
-
import { u as Vl, b as El, o as Tl, V as $l, a as kl, d as Ml, i as xe, p as Rl } from "./use-form-common-props-cc347a83.js";
|
|
11
|
-
import { E as Dl, U as j, C as at } from "./index-94f38460.js";
|
|
12
|
-
import { s as Ll } from "./scroll-e3cb691f.js";
|
|
13
|
-
import { b as Bl, i as ge, C as Nl } from "./el-tag-7f391090.js";
|
|
14
|
-
import { t as Wl, d as Fl } from "./debounce-3cec4646.js";
|
|
15
|
-
var et = 1 / 0, zl = 17976931348623157e292;
|
|
16
|
-
function Pl(e) {
|
|
17
|
-
if (!e)
|
|
18
|
-
return e === 0 ? e : 0;
|
|
19
|
-
if (e = Wl(e), e === et || e === -et) {
|
|
20
|
-
var o = e < 0 ? -1 : 1;
|
|
21
|
-
return o * zl;
|
|
22
|
-
}
|
|
23
|
-
return e === e ? e : 0;
|
|
24
|
-
}
|
|
25
|
-
function Kl(e) {
|
|
26
|
-
var o = Pl(e), a = o % 1;
|
|
27
|
-
return o === o ? a ? o - a : o : 0;
|
|
28
|
-
}
|
|
29
|
-
function Al(e, o, a, c) {
|
|
30
|
-
for (var s = e.length, v = a + (c ? 1 : -1); c ? v-- : ++v < s; )
|
|
31
|
-
if (o(e[v], v, e))
|
|
32
|
-
return v;
|
|
33
|
-
return -1;
|
|
34
|
-
}
|
|
35
|
-
var Hl = Math.max, Gl = Math.min;
|
|
36
|
-
function Ul(e, o, a) {
|
|
37
|
-
var c = e == null ? 0 : e.length;
|
|
38
|
-
if (!c)
|
|
39
|
-
return -1;
|
|
40
|
-
var s = c - 1;
|
|
41
|
-
return a !== void 0 && (s = Kl(a), s = a < 0 ? Hl(c + s, 0) : Gl(s, c - 1)), Al(e, Bl(o), s, !0);
|
|
42
|
-
}
|
|
43
|
-
const jl = (e = "") => e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
44
|
-
function ql() {
|
|
45
|
-
const e = _t(), o = V(0), a = 11, c = r(() => ({
|
|
46
|
-
minWidth: `${Math.max(o.value, a)}px`
|
|
47
|
-
}));
|
|
48
|
-
return H(e, () => {
|
|
49
|
-
var v, l;
|
|
50
|
-
o.value = (l = (v = e.value) == null ? void 0 : v.getBoundingClientRect().width) != null ? l : 0;
|
|
51
|
-
}), {
|
|
52
|
-
calculatorRef: e,
|
|
53
|
-
calculatorWidth: o,
|
|
54
|
-
inputStyle: c
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
const st = Symbol("ElSelectGroup"), Ce = Symbol("ElSelect");
|
|
58
|
-
function Ql(e, o) {
|
|
59
|
-
const a = Se(Ce), c = Se(st, { disabled: !1 }), s = r(() => b(z(a.props.modelValue), e.value)), v = r(() => {
|
|
60
|
-
var f;
|
|
61
|
-
if (a.props.multiple) {
|
|
62
|
-
const h = z((f = a.props.modelValue) != null ? f : []);
|
|
63
|
-
return !s.value && h.length >= a.props.multipleLimit && a.props.multipleLimit > 0;
|
|
64
|
-
} else
|
|
65
|
-
return !1;
|
|
66
|
-
}), l = r(() => e.label || (q(e.value) ? "" : e.value)), S = r(() => e.value || e.label || ""), u = r(() => e.disabled || o.groupDisabled || v.value), m = Ee(), b = (f = [], h) => {
|
|
67
|
-
if (q(e.value)) {
|
|
68
|
-
const d = a.props.valueKey;
|
|
69
|
-
return f && f.some((E) => xt(Q(E, d)) === Q(h, d));
|
|
70
|
-
} else
|
|
71
|
-
return f && f.includes(h);
|
|
72
|
-
}, y = () => {
|
|
73
|
-
!e.disabled && !c.disabled && (a.states.hoveringIndex = a.optionsArray.indexOf(m.proxy));
|
|
74
|
-
}, w = (f) => {
|
|
75
|
-
const h = new RegExp(jl(f), "i");
|
|
76
|
-
o.visible = h.test(l.value) || e.created;
|
|
77
|
-
};
|
|
78
|
-
return G(() => l.value, () => {
|
|
79
|
-
!e.created && !a.props.remote && a.setSelected();
|
|
80
|
-
}), G(() => e.value, (f, h) => {
|
|
81
|
-
const { remote: d, valueKey: E } = a.props;
|
|
82
|
-
if (f !== h && (a.onOptionDestroy(h, m.proxy), a.onOptionCreate(m.proxy)), !e.created && !d) {
|
|
83
|
-
if (E && q(f) && q(h) && f[E] === h[E])
|
|
84
|
-
return;
|
|
85
|
-
a.setSelected();
|
|
86
|
-
}
|
|
87
|
-
}), G(() => c.disabled, () => {
|
|
88
|
-
o.groupDisabled = c.disabled;
|
|
89
|
-
}, { immediate: !0 }), {
|
|
90
|
-
select: a,
|
|
91
|
-
currentLabel: l,
|
|
92
|
-
currentValue: S,
|
|
93
|
-
itemSelected: s,
|
|
94
|
-
isDisabled: u,
|
|
95
|
-
hoverItem: y,
|
|
96
|
-
updateOption: w
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
const Xl = ae({
|
|
100
|
-
name: "ElOption",
|
|
101
|
-
componentName: "ElOption",
|
|
102
|
-
props: {
|
|
103
|
-
value: {
|
|
104
|
-
required: !0,
|
|
105
|
-
type: [String, Number, Boolean, Object]
|
|
106
|
-
},
|
|
107
|
-
label: [String, Number],
|
|
108
|
-
created: Boolean,
|
|
109
|
-
disabled: Boolean
|
|
110
|
-
},
|
|
111
|
-
setup(e) {
|
|
112
|
-
const o = oe("select"), a = ot(), c = r(() => [
|
|
113
|
-
o.be("dropdown", "item"),
|
|
114
|
-
o.is("disabled", Ie(S)),
|
|
115
|
-
o.is("selected", Ie(l)),
|
|
116
|
-
o.is("hovering", Ie(w))
|
|
117
|
-
]), s = ne({
|
|
118
|
-
index: -1,
|
|
119
|
-
groupDisabled: !1,
|
|
120
|
-
visible: !0,
|
|
121
|
-
hover: !1
|
|
122
|
-
}), {
|
|
123
|
-
currentLabel: v,
|
|
124
|
-
itemSelected: l,
|
|
125
|
-
isDisabled: S,
|
|
126
|
-
select: u,
|
|
127
|
-
hoverItem: m,
|
|
128
|
-
updateOption: b
|
|
129
|
-
} = Ql(e, s), { visible: y, hover: w } = Te(s), f = Ee().proxy;
|
|
130
|
-
u.onOptionCreate(f), el(() => {
|
|
131
|
-
const d = f.value, { selected: E } = u.states, se = E.some((ie) => ie.value === f.value);
|
|
132
|
-
F(() => {
|
|
133
|
-
u.states.cachedOptions.get(d) === f && !se && u.states.cachedOptions.delete(d);
|
|
134
|
-
}), u.onOptionDestroy(d, f);
|
|
135
|
-
});
|
|
136
|
-
function h() {
|
|
137
|
-
S.value || u.handleOptionSelect(f);
|
|
138
|
-
}
|
|
139
|
-
return {
|
|
140
|
-
ns: o,
|
|
141
|
-
id: a,
|
|
142
|
-
containerKls: c,
|
|
143
|
-
currentLabel: v,
|
|
144
|
-
itemSelected: l,
|
|
145
|
-
isDisabled: S,
|
|
146
|
-
select: u,
|
|
147
|
-
hoverItem: m,
|
|
148
|
-
updateOption: b,
|
|
149
|
-
visible: y,
|
|
150
|
-
hover: w,
|
|
151
|
-
selectOptionClick: h,
|
|
152
|
-
states: s
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
function Yl(e, o, a, c, s, v) {
|
|
157
|
-
return le((g(), I("li", {
|
|
158
|
-
id: e.id,
|
|
159
|
-
class: p(e.containerKls),
|
|
160
|
-
role: "option",
|
|
161
|
-
"aria-disabled": e.isDisabled || void 0,
|
|
162
|
-
"aria-selected": e.itemSelected,
|
|
163
|
-
onMousemove: e.hoverItem,
|
|
164
|
-
onClick: L(e.selectOptionClick, ["stop"])
|
|
165
|
-
}, [
|
|
166
|
-
$(e.$slots, "default", {}, () => [
|
|
167
|
-
T("span", null, B(e.currentLabel), 1)
|
|
168
|
-
])
|
|
169
|
-
], 42, ["id", "aria-disabled", "aria-selected", "onMousemove", "onClick"])), [
|
|
170
|
-
[$e, e.visible]
|
|
171
|
-
]);
|
|
172
|
-
}
|
|
173
|
-
var Me = /* @__PURE__ */ ye(Xl, [["render", Yl], ["__file", "option.vue"]]);
|
|
174
|
-
const Jl = ae({
|
|
175
|
-
name: "ElSelectDropdown",
|
|
176
|
-
componentName: "ElSelectDropdown",
|
|
177
|
-
setup() {
|
|
178
|
-
const e = Se(Ce), o = oe("select"), a = r(() => e.props.popperClass), c = r(() => e.props.multiple), s = r(() => e.props.fitInputWidth), v = V("");
|
|
179
|
-
function l() {
|
|
180
|
-
var S;
|
|
181
|
-
v.value = `${(S = e.selectRef) == null ? void 0 : S.offsetWidth}px`;
|
|
182
|
-
}
|
|
183
|
-
return ke(() => {
|
|
184
|
-
l(), H(e.selectRef, l);
|
|
185
|
-
}), {
|
|
186
|
-
ns: o,
|
|
187
|
-
minWidth: v,
|
|
188
|
-
popperClass: a,
|
|
189
|
-
isMultiple: c,
|
|
190
|
-
isFitInputWidth: s
|
|
191
|
-
};
|
|
192
|
-
}
|
|
193
|
-
});
|
|
194
|
-
function Zl(e, o, a, c, s, v) {
|
|
195
|
-
return g(), I("div", {
|
|
196
|
-
class: p([e.ns.b("dropdown"), e.ns.is("multiple", e.isMultiple), e.popperClass]),
|
|
197
|
-
style: he({ [e.isFitInputWidth ? "width" : "minWidth"]: e.minWidth })
|
|
198
|
-
}, [
|
|
199
|
-
e.$slots.header ? (g(), I("div", {
|
|
200
|
-
key: 0,
|
|
201
|
-
class: p(e.ns.be("dropdown", "header"))
|
|
202
|
-
}, [
|
|
203
|
-
$(e.$slots, "header")
|
|
204
|
-
], 2)) : k("v-if", !0),
|
|
205
|
-
$(e.$slots, "default"),
|
|
206
|
-
e.$slots.footer ? (g(), I("div", {
|
|
207
|
-
key: 1,
|
|
208
|
-
class: p(e.ns.be("dropdown", "footer"))
|
|
209
|
-
}, [
|
|
210
|
-
$(e.$slots, "footer")
|
|
211
|
-
], 2)) : k("v-if", !0)
|
|
212
|
-
], 6);
|
|
213
|
-
}
|
|
214
|
-
var _l = /* @__PURE__ */ ye(Jl, [["render", Zl], ["__file", "select-dropdown.vue"]]);
|
|
215
|
-
const xl = (e, o) => {
|
|
216
|
-
const { t: a } = Cl(), c = ot(), s = oe("select"), v = oe("input"), l = ne({
|
|
217
|
-
inputValue: "",
|
|
218
|
-
options: /* @__PURE__ */ new Map(),
|
|
219
|
-
cachedOptions: /* @__PURE__ */ new Map(),
|
|
220
|
-
optionValues: [],
|
|
221
|
-
selected: [],
|
|
222
|
-
selectionWidth: 0,
|
|
223
|
-
collapseItemWidth: 0,
|
|
224
|
-
selectedLabel: "",
|
|
225
|
-
hoveringIndex: -1,
|
|
226
|
-
previousQuery: null,
|
|
227
|
-
inputHovering: !1,
|
|
228
|
-
menuVisibleOnFocus: !1,
|
|
229
|
-
isBeforeHide: !1
|
|
230
|
-
}), S = V(null), u = V(null), m = V(null), b = V(null), y = V(null), w = V(null), f = V(null), h = V(null), d = V(null), E = V(null), se = V(null), {
|
|
231
|
-
isComposing: ie,
|
|
232
|
-
handleCompositionStart: rt,
|
|
233
|
-
handleCompositionUpdate: ut,
|
|
234
|
-
handleCompositionEnd: dt
|
|
235
|
-
} = wl({
|
|
236
|
-
afterComposition: (t) => Ae(t)
|
|
237
|
-
}), { wrapperRef: Re, isFocused: De, handleBlur: ct } = Il(y, {
|
|
238
|
-
beforeFocus() {
|
|
239
|
-
return J.value;
|
|
240
|
-
},
|
|
241
|
-
afterFocus() {
|
|
242
|
-
e.automaticDropdown && !C.value && (C.value = !0, l.menuVisibleOnFocus = !0);
|
|
243
|
-
},
|
|
244
|
-
beforeBlur(t) {
|
|
245
|
-
var n, i;
|
|
246
|
-
return ((n = m.value) == null ? void 0 : n.isFocusInsideContent(t)) || ((i = b.value) == null ? void 0 : i.isFocusInsideContent(t));
|
|
247
|
-
},
|
|
248
|
-
afterBlur() {
|
|
249
|
-
C.value = !1, l.menuVisibleOnFocus = !1;
|
|
250
|
-
}
|
|
251
|
-
}), C = V(!1), X = V(), { form: re, formItem: Y } = Vl(), { inputId: pt } = El(e, {
|
|
252
|
-
formItemContext: Y
|
|
253
|
-
}), { valueOnClear: ft, isEmptyValue: vt } = Tl(e), J = r(() => e.disabled || (re == null ? void 0 : re.disabled)), Oe = r(() => P(e.modelValue) ? e.modelValue.length > 0 : !vt(e.modelValue)), mt = r(() => {
|
|
254
|
-
var t;
|
|
255
|
-
return (t = re == null ? void 0 : re.statusIcon) != null ? t : !1;
|
|
256
|
-
}), bt = r(() => e.clearable && !J.value && l.inputHovering && Oe.value), Le = r(() => e.remote && e.filterable && !e.remoteShowSuffix ? "" : e.suffixIcon), ht = r(() => s.is("reverse", Le.value && C.value)), Be = r(() => (Y == null ? void 0 : Y.validateState) || ""), gt = r(() => $l[Be.value]), St = r(() => e.remote ? 300 : 0), yt = r(() => e.remote && !l.inputValue && l.options.size === 0), Ct = r(() => e.loading ? e.loadingText || a("el.select.loading") : e.filterable && l.inputValue && l.options.size > 0 && Z.value === 0 ? e.noMatchText || a("el.select.noMatch") : l.options.size === 0 ? e.noDataText || a("el.select.noData") : null), Z = r(() => M.value.filter((t) => t.visible).length), M = r(() => {
|
|
257
|
-
const t = Array.from(l.options.values()), n = [];
|
|
258
|
-
return l.optionValues.forEach((i) => {
|
|
259
|
-
const O = t.findIndex((R) => R.value === i);
|
|
260
|
-
O > -1 && n.push(t[O]);
|
|
261
|
-
}), n.length >= t.length ? n : t;
|
|
262
|
-
}), Ot = r(() => Array.from(l.cachedOptions.values())), wt = r(() => {
|
|
263
|
-
const t = M.value.filter((n) => !n.created).some((n) => n.currentLabel === l.inputValue);
|
|
264
|
-
return e.filterable && e.allowCreate && l.inputValue !== "" && !t;
|
|
265
|
-
}), Ne = () => {
|
|
266
|
-
e.filterable && te(e.filterMethod) || e.filterable && e.remote && te(e.remoteMethod) || M.value.forEach((t) => {
|
|
267
|
-
var n;
|
|
268
|
-
(n = t.updateOption) == null || n.call(t, l.inputValue);
|
|
269
|
-
});
|
|
270
|
-
}, We = kl(), It = r(() => ["small"].includes(We.value) ? "small" : "default"), Vt = r({
|
|
271
|
-
get() {
|
|
272
|
-
return C.value && !yt.value;
|
|
273
|
-
},
|
|
274
|
-
set(t) {
|
|
275
|
-
C.value = t;
|
|
276
|
-
}
|
|
277
|
-
}), Et = r(() => {
|
|
278
|
-
if (e.multiple && !me(e.modelValue))
|
|
279
|
-
return z(e.modelValue).length === 0 && !l.inputValue;
|
|
280
|
-
const t = P(e.modelValue) ? e.modelValue[0] : e.modelValue;
|
|
281
|
-
return e.filterable || me(t) ? !l.inputValue : !0;
|
|
282
|
-
}), Tt = r(() => {
|
|
283
|
-
var t;
|
|
284
|
-
const n = (t = e.placeholder) != null ? t : a("el.select.placeholder");
|
|
285
|
-
return e.multiple || !Oe.value ? n : l.selectedLabel;
|
|
286
|
-
}), $t = r(() => _e ? null : "mouseenter");
|
|
287
|
-
G(() => e.modelValue, (t, n) => {
|
|
288
|
-
e.multiple && e.filterable && !e.reserveKeyword && (l.inputValue = "", ue("")), de(), !ge(t, n) && e.validateEvent && (Y == null || Y.validate("change").catch((i) => vl(i)));
|
|
289
|
-
}, {
|
|
290
|
-
flush: "post",
|
|
291
|
-
deep: !0
|
|
292
|
-
}), G(() => C.value, (t) => {
|
|
293
|
-
t ? ue(l.inputValue) : (l.inputValue = "", l.previousQuery = null, l.isBeforeHide = !0), o("visible-change", t);
|
|
294
|
-
}), G(() => l.options.entries(), () => {
|
|
295
|
-
ml && (de(), e.defaultFirstOption && (e.filterable || e.remote) && Z.value && Fe());
|
|
296
|
-
}, {
|
|
297
|
-
flush: "post"
|
|
298
|
-
}), G(() => l.hoveringIndex, (t) => {
|
|
299
|
-
bl(t) && t > -1 ? X.value = M.value[t] || {} : X.value = {}, M.value.forEach((n) => {
|
|
300
|
-
n.hover = X.value === n;
|
|
301
|
-
});
|
|
302
|
-
}), tl(() => {
|
|
303
|
-
l.isBeforeHide || Ne();
|
|
304
|
-
});
|
|
305
|
-
const ue = (t) => {
|
|
306
|
-
l.previousQuery === t || ie.value || (l.previousQuery = t, e.filterable && te(e.filterMethod) ? e.filterMethod(t) : e.filterable && e.remote && te(e.remoteMethod) && e.remoteMethod(t), e.defaultFirstOption && (e.filterable || e.remote) && Z.value ? F(Fe) : F(kt));
|
|
307
|
-
}, Fe = () => {
|
|
308
|
-
const t = M.value.filter((R) => R.visible && !R.disabled && !R.states.groupDisabled), n = t.find((R) => R.created), i = t[0], O = M.value.map((R) => R.value);
|
|
309
|
-
l.hoveringIndex = je(O, n || i);
|
|
310
|
-
}, de = () => {
|
|
311
|
-
if (e.multiple)
|
|
312
|
-
l.selectedLabel = "";
|
|
313
|
-
else {
|
|
314
|
-
const n = P(e.modelValue) ? e.modelValue[0] : e.modelValue, i = ze(n);
|
|
315
|
-
l.selectedLabel = i.currentLabel, l.selected = [i];
|
|
316
|
-
return;
|
|
317
|
-
}
|
|
318
|
-
const t = [];
|
|
319
|
-
me(e.modelValue) || z(e.modelValue).forEach((n) => {
|
|
320
|
-
t.push(ze(n));
|
|
321
|
-
}), l.selected = t;
|
|
322
|
-
}, ze = (t) => {
|
|
323
|
-
let n;
|
|
324
|
-
const i = hl(t);
|
|
325
|
-
for (let U = l.cachedOptions.size - 1; U >= 0; U--) {
|
|
326
|
-
const N = Ot.value[U];
|
|
327
|
-
if (i ? Q(N.value, e.valueKey) === Q(t, e.valueKey) : N.value === t) {
|
|
328
|
-
n = {
|
|
329
|
-
value: t,
|
|
330
|
-
currentLabel: N.currentLabel,
|
|
331
|
-
get isDisabled() {
|
|
332
|
-
return N.isDisabled;
|
|
333
|
-
}
|
|
334
|
-
};
|
|
335
|
-
break;
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
if (n)
|
|
339
|
-
return n;
|
|
340
|
-
const O = i ? t.label : t ?? "";
|
|
341
|
-
return {
|
|
342
|
-
value: t,
|
|
343
|
-
currentLabel: O
|
|
344
|
-
};
|
|
345
|
-
}, kt = () => {
|
|
346
|
-
l.hoveringIndex = M.value.findIndex((t) => l.selected.some((n) => fe(n) === fe(t)));
|
|
347
|
-
}, Mt = () => {
|
|
348
|
-
l.selectionWidth = u.value.getBoundingClientRect().width;
|
|
349
|
-
}, Rt = () => {
|
|
350
|
-
l.collapseItemWidth = E.value.getBoundingClientRect().width;
|
|
351
|
-
}, we = () => {
|
|
352
|
-
var t, n;
|
|
353
|
-
(n = (t = m.value) == null ? void 0 : t.updatePopper) == null || n.call(t);
|
|
354
|
-
}, Pe = () => {
|
|
355
|
-
var t, n;
|
|
356
|
-
(n = (t = b.value) == null ? void 0 : t.updatePopper) == null || n.call(t);
|
|
357
|
-
}, Ke = () => {
|
|
358
|
-
l.inputValue.length > 0 && !C.value && (C.value = !0), ue(l.inputValue);
|
|
359
|
-
}, Ae = (t) => {
|
|
360
|
-
if (l.inputValue = t.target.value, e.remote)
|
|
361
|
-
He();
|
|
362
|
-
else
|
|
363
|
-
return Ke();
|
|
364
|
-
}, He = Fl(() => {
|
|
365
|
-
Ke();
|
|
366
|
-
}, St.value), _ = (t) => {
|
|
367
|
-
ge(e.modelValue, t) || o(at, t);
|
|
368
|
-
}, Dt = (t) => Ul(t, (n) => {
|
|
369
|
-
const i = l.cachedOptions.get(n);
|
|
370
|
-
return i && !i.disabled && !i.states.groupDisabled;
|
|
371
|
-
}), Lt = (t) => {
|
|
372
|
-
if (e.multiple && t.code !== Dl.delete && t.target.value.length <= 0) {
|
|
373
|
-
const n = z(e.modelValue).slice(), i = Dt(n);
|
|
374
|
-
if (i < 0)
|
|
375
|
-
return;
|
|
376
|
-
const O = n[i];
|
|
377
|
-
n.splice(i, 1), o(j, n), _(n), o("remove-tag", O);
|
|
378
|
-
}
|
|
379
|
-
}, Bt = (t, n) => {
|
|
380
|
-
const i = l.selected.indexOf(n);
|
|
381
|
-
if (i > -1 && !J.value) {
|
|
382
|
-
const O = z(e.modelValue).slice();
|
|
383
|
-
O.splice(i, 1), o(j, O), _(O), o("remove-tag", n.value);
|
|
384
|
-
}
|
|
385
|
-
t.stopPropagation(), pe();
|
|
386
|
-
}, Ge = (t) => {
|
|
387
|
-
t.stopPropagation();
|
|
388
|
-
const n = e.multiple ? [] : ft.value;
|
|
389
|
-
if (e.multiple)
|
|
390
|
-
for (const i of l.selected)
|
|
391
|
-
i.isDisabled && n.push(i.value);
|
|
392
|
-
o(j, n), _(n), l.hoveringIndex = -1, C.value = !1, o("clear"), pe();
|
|
393
|
-
}, Ue = (t) => {
|
|
394
|
-
var n;
|
|
395
|
-
if (e.multiple) {
|
|
396
|
-
const i = z((n = e.modelValue) != null ? n : []).slice(), O = je(i, t);
|
|
397
|
-
O > -1 ? i.splice(O, 1) : (e.multipleLimit <= 0 || i.length < e.multipleLimit) && i.push(t.value), o(j, i), _(i), t.created && ue(""), e.filterable && !e.reserveKeyword && (l.inputValue = "");
|
|
398
|
-
} else
|
|
399
|
-
o(j, t.value), _(t.value), C.value = !1;
|
|
400
|
-
pe(), !C.value && F(() => {
|
|
401
|
-
ce(t);
|
|
402
|
-
});
|
|
403
|
-
}, je = (t = [], n) => me(n) ? -1 : q(n.value) ? t.findIndex((i) => ge(Q(i, e.valueKey), fe(n))) : t.indexOf(n.value), ce = (t) => {
|
|
404
|
-
var n, i, O, R, U;
|
|
405
|
-
const N = P(t) ? t[0] : t;
|
|
406
|
-
let ve = null;
|
|
407
|
-
if (N != null && N.value) {
|
|
408
|
-
const x = M.value.filter((Zt) => Zt.value === N.value);
|
|
409
|
-
x.length > 0 && (ve = x[0].$el);
|
|
410
|
-
}
|
|
411
|
-
if (m.value && ve) {
|
|
412
|
-
const x = (R = (O = (i = (n = m.value) == null ? void 0 : n.popperRef) == null ? void 0 : i.contentRef) == null ? void 0 : O.querySelector) == null ? void 0 : R.call(O, `.${s.be("dropdown", "wrap")}`);
|
|
413
|
-
x && Ll(x, ve);
|
|
414
|
-
}
|
|
415
|
-
(U = se.value) == null || U.handleScroll();
|
|
416
|
-
}, Nt = (t) => {
|
|
417
|
-
l.options.set(t.value, t), l.cachedOptions.set(t.value, t);
|
|
418
|
-
}, Wt = (t, n) => {
|
|
419
|
-
l.options.get(t) === n && l.options.delete(t);
|
|
420
|
-
}, Ft = r(() => {
|
|
421
|
-
var t, n;
|
|
422
|
-
return (n = (t = m.value) == null ? void 0 : t.popperRef) == null ? void 0 : n.contentRef;
|
|
423
|
-
}), zt = () => {
|
|
424
|
-
l.isBeforeHide = !1, F(() => ce(l.selected));
|
|
425
|
-
}, pe = () => {
|
|
426
|
-
var t;
|
|
427
|
-
(t = y.value) == null || t.focus();
|
|
428
|
-
}, Pt = () => {
|
|
429
|
-
var t;
|
|
430
|
-
if (C.value) {
|
|
431
|
-
C.value = !1, F(() => {
|
|
432
|
-
var n;
|
|
433
|
-
return (n = y.value) == null ? void 0 : n.blur();
|
|
434
|
-
});
|
|
435
|
-
return;
|
|
436
|
-
}
|
|
437
|
-
(t = y.value) == null || t.blur();
|
|
438
|
-
}, Kt = (t) => {
|
|
439
|
-
Ge(t);
|
|
440
|
-
}, At = (t) => {
|
|
441
|
-
if (C.value = !1, De.value) {
|
|
442
|
-
const n = new FocusEvent("focus", t);
|
|
443
|
-
F(() => ct(n));
|
|
444
|
-
}
|
|
445
|
-
}, Ht = () => {
|
|
446
|
-
l.inputValue.length > 0 ? l.inputValue = "" : C.value = !1;
|
|
447
|
-
}, qe = () => {
|
|
448
|
-
J.value || (_e && (l.inputHovering = !0), l.menuVisibleOnFocus ? l.menuVisibleOnFocus = !1 : C.value = !C.value);
|
|
449
|
-
}, Gt = () => {
|
|
450
|
-
if (!C.value)
|
|
451
|
-
qe();
|
|
452
|
-
else {
|
|
453
|
-
const t = M.value[l.hoveringIndex];
|
|
454
|
-
t && !t.isDisabled && Ue(t);
|
|
455
|
-
}
|
|
456
|
-
}, fe = (t) => q(t.value) ? Q(t.value, e.valueKey) : t.value, Ut = r(() => M.value.filter((t) => t.visible).every((t) => t.isDisabled)), jt = r(() => e.multiple ? e.collapseTags ? l.selected.slice(0, e.maxCollapseTags) : l.selected : []), qt = r(() => e.multiple ? e.collapseTags ? l.selected.slice(e.maxCollapseTags) : [] : []), Qe = (t) => {
|
|
457
|
-
if (!C.value) {
|
|
458
|
-
C.value = !0;
|
|
459
|
-
return;
|
|
460
|
-
}
|
|
461
|
-
if (!(l.options.size === 0 || Z.value === 0 || ie.value) && !Ut.value) {
|
|
462
|
-
t === "next" ? (l.hoveringIndex++, l.hoveringIndex === l.options.size && (l.hoveringIndex = 0)) : t === "prev" && (l.hoveringIndex--, l.hoveringIndex < 0 && (l.hoveringIndex = l.options.size - 1));
|
|
463
|
-
const n = M.value[l.hoveringIndex];
|
|
464
|
-
(n.isDisabled || !n.visible) && Qe(t), F(() => ce(X.value));
|
|
465
|
-
}
|
|
466
|
-
}, Qt = () => {
|
|
467
|
-
if (!u.value)
|
|
468
|
-
return 0;
|
|
469
|
-
const t = window.getComputedStyle(u.value);
|
|
470
|
-
return Number.parseFloat(t.gap || "6px");
|
|
471
|
-
}, Xt = r(() => {
|
|
472
|
-
const t = Qt();
|
|
473
|
-
return { maxWidth: `${E.value && e.maxCollapseTags === 1 ? l.selectionWidth - l.collapseItemWidth - t : l.selectionWidth}px` };
|
|
474
|
-
}), Yt = r(() => ({ maxWidth: `${l.selectionWidth}px` })), Jt = (t) => {
|
|
475
|
-
o("popup-scroll", t);
|
|
476
|
-
};
|
|
477
|
-
return H(u, Mt), H(h, we), H(Re, we), H(d, Pe), H(E, Rt), ke(() => {
|
|
478
|
-
de();
|
|
479
|
-
}), {
|
|
480
|
-
inputId: pt,
|
|
481
|
-
contentId: c,
|
|
482
|
-
nsSelect: s,
|
|
483
|
-
nsInput: v,
|
|
484
|
-
states: l,
|
|
485
|
-
isFocused: De,
|
|
486
|
-
expanded: C,
|
|
487
|
-
optionsArray: M,
|
|
488
|
-
hoverOption: X,
|
|
489
|
-
selectSize: We,
|
|
490
|
-
filteredOptionsCount: Z,
|
|
491
|
-
updateTooltip: we,
|
|
492
|
-
updateTagTooltip: Pe,
|
|
493
|
-
debouncedOnInputChange: He,
|
|
494
|
-
onInput: Ae,
|
|
495
|
-
deletePrevTag: Lt,
|
|
496
|
-
deleteTag: Bt,
|
|
497
|
-
deleteSelected: Ge,
|
|
498
|
-
handleOptionSelect: Ue,
|
|
499
|
-
scrollToOption: ce,
|
|
500
|
-
hasModelValue: Oe,
|
|
501
|
-
shouldShowPlaceholder: Et,
|
|
502
|
-
currentPlaceholder: Tt,
|
|
503
|
-
mouseEnterEventName: $t,
|
|
504
|
-
needStatusIcon: mt,
|
|
505
|
-
showClose: bt,
|
|
506
|
-
iconComponent: Le,
|
|
507
|
-
iconReverse: ht,
|
|
508
|
-
validateState: Be,
|
|
509
|
-
validateIcon: gt,
|
|
510
|
-
showNewOption: wt,
|
|
511
|
-
updateOptions: Ne,
|
|
512
|
-
collapseTagSize: It,
|
|
513
|
-
setSelected: de,
|
|
514
|
-
selectDisabled: J,
|
|
515
|
-
emptyText: Ct,
|
|
516
|
-
handleCompositionStart: rt,
|
|
517
|
-
handleCompositionUpdate: ut,
|
|
518
|
-
handleCompositionEnd: dt,
|
|
519
|
-
onOptionCreate: Nt,
|
|
520
|
-
onOptionDestroy: Wt,
|
|
521
|
-
handleMenuEnter: zt,
|
|
522
|
-
focus: pe,
|
|
523
|
-
blur: Pt,
|
|
524
|
-
handleClearClick: Kt,
|
|
525
|
-
handleClickOutside: At,
|
|
526
|
-
handleEsc: Ht,
|
|
527
|
-
toggleMenu: qe,
|
|
528
|
-
selectOption: Gt,
|
|
529
|
-
getValueKey: fe,
|
|
530
|
-
navigateOptions: Qe,
|
|
531
|
-
dropdownMenuVisible: Vt,
|
|
532
|
-
showTagList: jt,
|
|
533
|
-
collapseTagList: qt,
|
|
534
|
-
popupScroll: Jt,
|
|
535
|
-
tagStyle: Xt,
|
|
536
|
-
collapseTagStyle: Yt,
|
|
537
|
-
popperRef: Ft,
|
|
538
|
-
inputRef: y,
|
|
539
|
-
tooltipRef: m,
|
|
540
|
-
tagTooltipRef: b,
|
|
541
|
-
prefixRef: w,
|
|
542
|
-
suffixRef: f,
|
|
543
|
-
selectRef: S,
|
|
544
|
-
wrapperRef: Re,
|
|
545
|
-
selectionRef: u,
|
|
546
|
-
scrollbarRef: se,
|
|
547
|
-
menuRef: h,
|
|
548
|
-
tagMenuRef: d,
|
|
549
|
-
collapseItemRef: E
|
|
550
|
-
};
|
|
551
|
-
};
|
|
552
|
-
var en = ae({
|
|
553
|
-
name: "ElOptions",
|
|
554
|
-
setup(e, { slots: o }) {
|
|
555
|
-
const a = Se(Ce);
|
|
556
|
-
let c = [];
|
|
557
|
-
return () => {
|
|
558
|
-
var s, v;
|
|
559
|
-
const l = (s = o.default) == null ? void 0 : s.call(o), S = [];
|
|
560
|
-
function u(m) {
|
|
561
|
-
P(m) && m.forEach((b) => {
|
|
562
|
-
var y, w, f, h;
|
|
563
|
-
const d = (y = (b == null ? void 0 : b.type) || {}) == null ? void 0 : y.name;
|
|
564
|
-
d === "ElOptionGroup" ? u(!gl(b.children) && !P(b.children) && te((w = b.children) == null ? void 0 : w.default) ? (f = b.children) == null ? void 0 : f.default() : b.children) : d === "ElOption" ? S.push((h = b.props) == null ? void 0 : h.value) : P(b.children) && u(b.children);
|
|
565
|
-
});
|
|
566
|
-
}
|
|
567
|
-
return l.length && u((v = l[0]) == null ? void 0 : v.children), ge(S, c) || (c = S, a && (a.states.optionValues = S)), l;
|
|
568
|
-
};
|
|
569
|
-
}
|
|
570
|
-
});
|
|
571
|
-
const tn = Sl({
|
|
572
|
-
name: String,
|
|
573
|
-
id: String,
|
|
574
|
-
modelValue: {
|
|
575
|
-
type: [Array, String, Number, Boolean, Object],
|
|
576
|
-
default: void 0
|
|
577
|
-
},
|
|
578
|
-
autocomplete: {
|
|
579
|
-
type: String,
|
|
580
|
-
default: "off"
|
|
581
|
-
},
|
|
582
|
-
automaticDropdown: Boolean,
|
|
583
|
-
size: Ml,
|
|
584
|
-
effect: {
|
|
585
|
-
type: be(String),
|
|
586
|
-
default: "light"
|
|
587
|
-
},
|
|
588
|
-
disabled: Boolean,
|
|
589
|
-
clearable: Boolean,
|
|
590
|
-
filterable: Boolean,
|
|
591
|
-
allowCreate: Boolean,
|
|
592
|
-
loading: Boolean,
|
|
593
|
-
popperClass: {
|
|
594
|
-
type: String,
|
|
595
|
-
default: ""
|
|
596
|
-
},
|
|
597
|
-
popperOptions: {
|
|
598
|
-
type: be(Object),
|
|
599
|
-
default: () => ({})
|
|
600
|
-
},
|
|
601
|
-
remote: Boolean,
|
|
602
|
-
loadingText: String,
|
|
603
|
-
noMatchText: String,
|
|
604
|
-
noDataText: String,
|
|
605
|
-
remoteMethod: Function,
|
|
606
|
-
filterMethod: Function,
|
|
607
|
-
multiple: Boolean,
|
|
608
|
-
multipleLimit: {
|
|
609
|
-
type: Number,
|
|
610
|
-
default: 0
|
|
611
|
-
},
|
|
612
|
-
placeholder: {
|
|
613
|
-
type: String
|
|
614
|
-
},
|
|
615
|
-
defaultFirstOption: Boolean,
|
|
616
|
-
reserveKeyword: {
|
|
617
|
-
type: Boolean,
|
|
618
|
-
default: !0
|
|
619
|
-
},
|
|
620
|
-
valueKey: {
|
|
621
|
-
type: String,
|
|
622
|
-
default: "value"
|
|
623
|
-
},
|
|
624
|
-
collapseTags: Boolean,
|
|
625
|
-
collapseTagsTooltip: Boolean,
|
|
626
|
-
maxCollapseTags: {
|
|
627
|
-
type: Number,
|
|
628
|
-
default: 1
|
|
629
|
-
},
|
|
630
|
-
teleported: al.teleported,
|
|
631
|
-
persistent: {
|
|
632
|
-
type: Boolean,
|
|
633
|
-
default: !0
|
|
634
|
-
},
|
|
635
|
-
clearIcon: {
|
|
636
|
-
type: xe,
|
|
637
|
-
default: cl
|
|
638
|
-
},
|
|
639
|
-
fitInputWidth: Boolean,
|
|
640
|
-
suffixIcon: {
|
|
641
|
-
type: xe,
|
|
642
|
-
default: pl
|
|
643
|
-
},
|
|
644
|
-
tagType: { ...Ze.type, default: "info" },
|
|
645
|
-
tagEffect: { ...Ze.effect, default: "light" },
|
|
646
|
-
validateEvent: {
|
|
647
|
-
type: Boolean,
|
|
648
|
-
default: !0
|
|
649
|
-
},
|
|
650
|
-
remoteShowSuffix: Boolean,
|
|
651
|
-
showArrow: {
|
|
652
|
-
type: Boolean,
|
|
653
|
-
default: !0
|
|
654
|
-
},
|
|
655
|
-
offset: {
|
|
656
|
-
type: Number,
|
|
657
|
-
default: 12
|
|
658
|
-
},
|
|
659
|
-
placement: {
|
|
660
|
-
type: be(String),
|
|
661
|
-
values: sl,
|
|
662
|
-
default: "bottom-start"
|
|
663
|
-
},
|
|
664
|
-
fallbackPlacements: {
|
|
665
|
-
type: be(Array),
|
|
666
|
-
default: ["bottom-start", "top-start", "right", "left"]
|
|
667
|
-
},
|
|
668
|
-
tabindex: {
|
|
669
|
-
type: [String, Number],
|
|
670
|
-
default: 0
|
|
671
|
-
},
|
|
672
|
-
appendTo: String,
|
|
673
|
-
...Rl,
|
|
674
|
-
...il(["ariaLabel"])
|
|
675
|
-
}), tt = "ElSelect", ln = ae({
|
|
676
|
-
name: tt,
|
|
677
|
-
componentName: tt,
|
|
678
|
-
components: {
|
|
679
|
-
ElSelectMenu: _l,
|
|
680
|
-
ElOption: Me,
|
|
681
|
-
ElOptions: en,
|
|
682
|
-
ElTag: dl,
|
|
683
|
-
ElScrollbar: rl,
|
|
684
|
-
ElTooltip: ul,
|
|
685
|
-
ElIcon: fl
|
|
686
|
-
},
|
|
687
|
-
directives: { ClickOutside: Nl },
|
|
688
|
-
props: tn,
|
|
689
|
-
emits: [
|
|
690
|
-
j,
|
|
691
|
-
at,
|
|
692
|
-
"remove-tag",
|
|
693
|
-
"clear",
|
|
694
|
-
"visible-change",
|
|
695
|
-
"focus",
|
|
696
|
-
"blur",
|
|
697
|
-
"popup-scroll"
|
|
698
|
-
],
|
|
699
|
-
setup(e, { emit: o }) {
|
|
700
|
-
const a = r(() => {
|
|
701
|
-
const { modelValue: u, multiple: m } = e, b = m ? [] : void 0;
|
|
702
|
-
return P(u) ? m ? u : b : m ? b : u;
|
|
703
|
-
}), c = ne({
|
|
704
|
-
...Te(e),
|
|
705
|
-
modelValue: a
|
|
706
|
-
}), s = xl(c, o), { calculatorRef: v, inputStyle: l } = ql();
|
|
707
|
-
lt(Ce, ne({
|
|
708
|
-
props: c,
|
|
709
|
-
states: s.states,
|
|
710
|
-
optionsArray: s.optionsArray,
|
|
711
|
-
handleOptionSelect: s.handleOptionSelect,
|
|
712
|
-
onOptionCreate: s.onOptionCreate,
|
|
713
|
-
onOptionDestroy: s.onOptionDestroy,
|
|
714
|
-
selectRef: s.selectRef,
|
|
715
|
-
setSelected: s.setSelected
|
|
716
|
-
}));
|
|
717
|
-
const S = r(() => e.multiple ? s.states.selected.map((u) => u.currentLabel) : s.states.selectedLabel);
|
|
718
|
-
return {
|
|
719
|
-
...s,
|
|
720
|
-
modelValue: a,
|
|
721
|
-
selectedLabel: S,
|
|
722
|
-
calculatorRef: v,
|
|
723
|
-
inputStyle: l
|
|
724
|
-
};
|
|
725
|
-
}
|
|
726
|
-
});
|
|
727
|
-
function nn(e, o, a, c, s, v) {
|
|
728
|
-
const l = K("el-tag"), S = K("el-tooltip"), u = K("el-icon"), m = K("el-option"), b = K("el-options"), y = K("el-scrollbar"), w = K("el-select-menu"), f = ll("click-outside");
|
|
729
|
-
return le((g(), I("div", {
|
|
730
|
-
ref: "selectRef",
|
|
731
|
-
class: p([e.nsSelect.b(), e.nsSelect.m(e.selectSize)]),
|
|
732
|
-
[nl(e.mouseEnterEventName)]: (h) => e.states.inputHovering = !0,
|
|
733
|
-
onMouseleave: (h) => e.states.inputHovering = !1
|
|
734
|
-
}, [
|
|
735
|
-
A(S, {
|
|
736
|
-
ref: "tooltipRef",
|
|
737
|
-
visible: e.dropdownMenuVisible,
|
|
738
|
-
placement: e.placement,
|
|
739
|
-
teleported: e.teleported,
|
|
740
|
-
"popper-class": [e.nsSelect.e("popper"), e.popperClass],
|
|
741
|
-
"popper-options": e.popperOptions,
|
|
742
|
-
"fallback-placements": e.fallbackPlacements,
|
|
743
|
-
effect: e.effect,
|
|
744
|
-
pure: "",
|
|
745
|
-
trigger: "click",
|
|
746
|
-
transition: `${e.nsSelect.namespace.value}-zoom-in-top`,
|
|
747
|
-
"stop-popper-mouse-event": !1,
|
|
748
|
-
"gpu-acceleration": !1,
|
|
749
|
-
persistent: e.persistent,
|
|
750
|
-
"append-to": e.appendTo,
|
|
751
|
-
"show-arrow": e.showArrow,
|
|
752
|
-
offset: e.offset,
|
|
753
|
-
onBeforeShow: e.handleMenuEnter,
|
|
754
|
-
onHide: (h) => e.states.isBeforeHide = !1
|
|
755
|
-
}, {
|
|
756
|
-
default: D(() => {
|
|
757
|
-
var h;
|
|
758
|
-
return [
|
|
759
|
-
T("div", {
|
|
760
|
-
ref: "wrapperRef",
|
|
761
|
-
class: p([
|
|
762
|
-
e.nsSelect.e("wrapper"),
|
|
763
|
-
e.nsSelect.is("focused", e.isFocused),
|
|
764
|
-
e.nsSelect.is("hovering", e.states.inputHovering),
|
|
765
|
-
e.nsSelect.is("filterable", e.filterable),
|
|
766
|
-
e.nsSelect.is("disabled", e.selectDisabled)
|
|
767
|
-
]),
|
|
768
|
-
onClick: L(e.toggleMenu, ["prevent"])
|
|
769
|
-
}, [
|
|
770
|
-
e.$slots.prefix ? (g(), I("div", {
|
|
771
|
-
key: 0,
|
|
772
|
-
ref: "prefixRef",
|
|
773
|
-
class: p(e.nsSelect.e("prefix"))
|
|
774
|
-
}, [
|
|
775
|
-
$(e.$slots, "prefix")
|
|
776
|
-
], 2)) : k("v-if", !0),
|
|
777
|
-
T("div", {
|
|
778
|
-
ref: "selectionRef",
|
|
779
|
-
class: p([
|
|
780
|
-
e.nsSelect.e("selection"),
|
|
781
|
-
e.nsSelect.is("near", e.multiple && !e.$slots.prefix && !!e.states.selected.length)
|
|
782
|
-
])
|
|
783
|
-
}, [
|
|
784
|
-
e.multiple ? $(e.$slots, "tag", { key: 0 }, () => [
|
|
785
|
-
(g(!0), I(Xe, null, Ye(e.showTagList, (d) => (g(), I("div", {
|
|
786
|
-
key: e.getValueKey(d),
|
|
787
|
-
class: p(e.nsSelect.e("selected-item"))
|
|
788
|
-
}, [
|
|
789
|
-
A(l, {
|
|
790
|
-
closable: !e.selectDisabled && !d.isDisabled,
|
|
791
|
-
size: e.collapseTagSize,
|
|
792
|
-
type: e.tagType,
|
|
793
|
-
effect: e.tagEffect,
|
|
794
|
-
"disable-transitions": "",
|
|
795
|
-
style: he(e.tagStyle),
|
|
796
|
-
onClose: (E) => e.deleteTag(E, d)
|
|
797
|
-
}, {
|
|
798
|
-
default: D(() => [
|
|
799
|
-
T("span", {
|
|
800
|
-
class: p(e.nsSelect.e("tags-text"))
|
|
801
|
-
}, [
|
|
802
|
-
$(e.$slots, "label", {
|
|
803
|
-
label: d.currentLabel,
|
|
804
|
-
value: d.value
|
|
805
|
-
}, () => [
|
|
806
|
-
Je(B(d.currentLabel), 1)
|
|
807
|
-
])
|
|
808
|
-
], 2)
|
|
809
|
-
]),
|
|
810
|
-
_: 2
|
|
811
|
-
}, 1032, ["closable", "size", "type", "effect", "style", "onClose"])
|
|
812
|
-
], 2))), 128)),
|
|
813
|
-
e.collapseTags && e.states.selected.length > e.maxCollapseTags ? (g(), W(S, {
|
|
814
|
-
key: 0,
|
|
815
|
-
ref: "tagTooltipRef",
|
|
816
|
-
disabled: e.dropdownMenuVisible || !e.collapseTagsTooltip,
|
|
817
|
-
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
818
|
-
effect: e.effect,
|
|
819
|
-
placement: "bottom",
|
|
820
|
-
teleported: e.teleported
|
|
821
|
-
}, {
|
|
822
|
-
default: D(() => [
|
|
823
|
-
T("div", {
|
|
824
|
-
ref: "collapseItemRef",
|
|
825
|
-
class: p(e.nsSelect.e("selected-item"))
|
|
826
|
-
}, [
|
|
827
|
-
A(l, {
|
|
828
|
-
closable: !1,
|
|
829
|
-
size: e.collapseTagSize,
|
|
830
|
-
type: e.tagType,
|
|
831
|
-
effect: e.tagEffect,
|
|
832
|
-
"disable-transitions": "",
|
|
833
|
-
style: he(e.collapseTagStyle)
|
|
834
|
-
}, {
|
|
835
|
-
default: D(() => [
|
|
836
|
-
T("span", {
|
|
837
|
-
class: p(e.nsSelect.e("tags-text"))
|
|
838
|
-
}, " + " + B(e.states.selected.length - e.maxCollapseTags), 3)
|
|
839
|
-
]),
|
|
840
|
-
_: 1
|
|
841
|
-
}, 8, ["size", "type", "effect", "style"])
|
|
842
|
-
], 2)
|
|
843
|
-
]),
|
|
844
|
-
content: D(() => [
|
|
845
|
-
T("div", {
|
|
846
|
-
ref: "tagMenuRef",
|
|
847
|
-
class: p(e.nsSelect.e("selection"))
|
|
848
|
-
}, [
|
|
849
|
-
(g(!0), I(Xe, null, Ye(e.collapseTagList, (d) => (g(), I("div", {
|
|
850
|
-
key: e.getValueKey(d),
|
|
851
|
-
class: p(e.nsSelect.e("selected-item"))
|
|
852
|
-
}, [
|
|
853
|
-
A(l, {
|
|
854
|
-
class: "in-tooltip",
|
|
855
|
-
closable: !e.selectDisabled && !d.isDisabled,
|
|
856
|
-
size: e.collapseTagSize,
|
|
857
|
-
type: e.tagType,
|
|
858
|
-
effect: e.tagEffect,
|
|
859
|
-
"disable-transitions": "",
|
|
860
|
-
onClose: (E) => e.deleteTag(E, d)
|
|
861
|
-
}, {
|
|
862
|
-
default: D(() => [
|
|
863
|
-
T("span", {
|
|
864
|
-
class: p(e.nsSelect.e("tags-text"))
|
|
865
|
-
}, [
|
|
866
|
-
$(e.$slots, "label", {
|
|
867
|
-
label: d.currentLabel,
|
|
868
|
-
value: d.value
|
|
869
|
-
}, () => [
|
|
870
|
-
Je(B(d.currentLabel), 1)
|
|
871
|
-
])
|
|
872
|
-
], 2)
|
|
873
|
-
]),
|
|
874
|
-
_: 2
|
|
875
|
-
}, 1032, ["closable", "size", "type", "effect", "onClose"])
|
|
876
|
-
], 2))), 128))
|
|
877
|
-
], 2)
|
|
878
|
-
]),
|
|
879
|
-
_: 3
|
|
880
|
-
}, 8, ["disabled", "effect", "teleported"])) : k("v-if", !0)
|
|
881
|
-
]) : k("v-if", !0),
|
|
882
|
-
T("div", {
|
|
883
|
-
class: p([
|
|
884
|
-
e.nsSelect.e("selected-item"),
|
|
885
|
-
e.nsSelect.e("input-wrapper"),
|
|
886
|
-
e.nsSelect.is("hidden", !e.filterable)
|
|
887
|
-
])
|
|
888
|
-
}, [
|
|
889
|
-
le(T("input", {
|
|
890
|
-
id: e.inputId,
|
|
891
|
-
ref: "inputRef",
|
|
892
|
-
"onUpdate:modelValue": (d) => e.states.inputValue = d,
|
|
893
|
-
type: "text",
|
|
894
|
-
name: e.name,
|
|
895
|
-
class: p([e.nsSelect.e("input"), e.nsSelect.is(e.selectSize)]),
|
|
896
|
-
disabled: e.selectDisabled,
|
|
897
|
-
autocomplete: e.autocomplete,
|
|
898
|
-
style: he(e.inputStyle),
|
|
899
|
-
tabindex: e.tabindex,
|
|
900
|
-
role: "combobox",
|
|
901
|
-
readonly: !e.filterable,
|
|
902
|
-
spellcheck: "false",
|
|
903
|
-
"aria-activedescendant": ((h = e.hoverOption) == null ? void 0 : h.id) || "",
|
|
904
|
-
"aria-controls": e.contentId,
|
|
905
|
-
"aria-expanded": e.dropdownMenuVisible,
|
|
906
|
-
"aria-label": e.ariaLabel,
|
|
907
|
-
"aria-autocomplete": "none",
|
|
908
|
-
"aria-haspopup": "listbox",
|
|
909
|
-
onKeydown: [
|
|
910
|
-
ee(L((d) => e.navigateOptions("next"), ["stop", "prevent"]), ["down"]),
|
|
911
|
-
ee(L((d) => e.navigateOptions("prev"), ["stop", "prevent"]), ["up"]),
|
|
912
|
-
ee(L(e.handleEsc, ["stop", "prevent"]), ["esc"]),
|
|
913
|
-
ee(L(e.selectOption, ["stop", "prevent"]), ["enter"]),
|
|
914
|
-
ee(L(e.deletePrevTag, ["stop"]), ["delete"])
|
|
915
|
-
],
|
|
916
|
-
onCompositionstart: e.handleCompositionStart,
|
|
917
|
-
onCompositionupdate: e.handleCompositionUpdate,
|
|
918
|
-
onCompositionend: e.handleCompositionEnd,
|
|
919
|
-
onInput: e.onInput,
|
|
920
|
-
onClick: L(e.toggleMenu, ["stop"])
|
|
921
|
-
}, null, 46, ["id", "onUpdate:modelValue", "name", "disabled", "autocomplete", "tabindex", "readonly", "aria-activedescendant", "aria-controls", "aria-expanded", "aria-label", "onKeydown", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onInput", "onClick"]), [
|
|
922
|
-
[ol, e.states.inputValue]
|
|
923
|
-
]),
|
|
924
|
-
e.filterable ? (g(), I("span", {
|
|
925
|
-
key: 0,
|
|
926
|
-
ref: "calculatorRef",
|
|
927
|
-
"aria-hidden": "true",
|
|
928
|
-
class: p(e.nsSelect.e("input-calculator")),
|
|
929
|
-
textContent: B(e.states.inputValue)
|
|
930
|
-
}, null, 10, ["textContent"])) : k("v-if", !0)
|
|
931
|
-
], 2),
|
|
932
|
-
e.shouldShowPlaceholder ? (g(), I("div", {
|
|
933
|
-
key: 1,
|
|
934
|
-
class: p([
|
|
935
|
-
e.nsSelect.e("selected-item"),
|
|
936
|
-
e.nsSelect.e("placeholder"),
|
|
937
|
-
e.nsSelect.is("transparent", !e.hasModelValue || e.expanded && !e.states.inputValue)
|
|
938
|
-
])
|
|
939
|
-
}, [
|
|
940
|
-
e.hasModelValue ? $(e.$slots, "label", {
|
|
941
|
-
key: 0,
|
|
942
|
-
label: e.currentPlaceholder,
|
|
943
|
-
value: e.modelValue
|
|
944
|
-
}, () => [
|
|
945
|
-
T("span", null, B(e.currentPlaceholder), 1)
|
|
946
|
-
]) : (g(), I("span", { key: 1 }, B(e.currentPlaceholder), 1))
|
|
947
|
-
], 2)) : k("v-if", !0)
|
|
948
|
-
], 2),
|
|
949
|
-
T("div", {
|
|
950
|
-
ref: "suffixRef",
|
|
951
|
-
class: p(e.nsSelect.e("suffix"))
|
|
952
|
-
}, [
|
|
953
|
-
e.iconComponent && !e.showClose ? (g(), W(u, {
|
|
954
|
-
key: 0,
|
|
955
|
-
class: p([e.nsSelect.e("caret"), e.nsSelect.e("icon"), e.iconReverse])
|
|
956
|
-
}, {
|
|
957
|
-
default: D(() => [
|
|
958
|
-
(g(), W(Ve(e.iconComponent)))
|
|
959
|
-
]),
|
|
960
|
-
_: 1
|
|
961
|
-
}, 8, ["class"])) : k("v-if", !0),
|
|
962
|
-
e.showClose && e.clearIcon ? (g(), W(u, {
|
|
963
|
-
key: 1,
|
|
964
|
-
class: p([
|
|
965
|
-
e.nsSelect.e("caret"),
|
|
966
|
-
e.nsSelect.e("icon"),
|
|
967
|
-
e.nsSelect.e("clear")
|
|
968
|
-
]),
|
|
969
|
-
onClick: e.handleClearClick
|
|
970
|
-
}, {
|
|
971
|
-
default: D(() => [
|
|
972
|
-
(g(), W(Ve(e.clearIcon)))
|
|
973
|
-
]),
|
|
974
|
-
_: 1
|
|
975
|
-
}, 8, ["class", "onClick"])) : k("v-if", !0),
|
|
976
|
-
e.validateState && e.validateIcon && e.needStatusIcon ? (g(), W(u, {
|
|
977
|
-
key: 2,
|
|
978
|
-
class: p([
|
|
979
|
-
e.nsInput.e("icon"),
|
|
980
|
-
e.nsInput.e("validateIcon"),
|
|
981
|
-
e.nsInput.is("loading", e.validateState === "validating")
|
|
982
|
-
])
|
|
983
|
-
}, {
|
|
984
|
-
default: D(() => [
|
|
985
|
-
(g(), W(Ve(e.validateIcon)))
|
|
986
|
-
]),
|
|
987
|
-
_: 1
|
|
988
|
-
}, 8, ["class"])) : k("v-if", !0)
|
|
989
|
-
], 2)
|
|
990
|
-
], 10, ["onClick"])
|
|
991
|
-
];
|
|
992
|
-
}),
|
|
993
|
-
content: D(() => [
|
|
994
|
-
A(w, { ref: "menuRef" }, {
|
|
995
|
-
default: D(() => [
|
|
996
|
-
e.$slots.header ? (g(), I("div", {
|
|
997
|
-
key: 0,
|
|
998
|
-
class: p(e.nsSelect.be("dropdown", "header")),
|
|
999
|
-
onClick: L(() => {
|
|
1000
|
-
}, ["stop"])
|
|
1001
|
-
}, [
|
|
1002
|
-
$(e.$slots, "header")
|
|
1003
|
-
], 10, ["onClick"])) : k("v-if", !0),
|
|
1004
|
-
le(A(y, {
|
|
1005
|
-
id: e.contentId,
|
|
1006
|
-
ref: "scrollbarRef",
|
|
1007
|
-
tag: "ul",
|
|
1008
|
-
"wrap-class": e.nsSelect.be("dropdown", "wrap"),
|
|
1009
|
-
"view-class": e.nsSelect.be("dropdown", "list"),
|
|
1010
|
-
class: p([e.nsSelect.is("empty", e.filteredOptionsCount === 0)]),
|
|
1011
|
-
role: "listbox",
|
|
1012
|
-
"aria-label": e.ariaLabel,
|
|
1013
|
-
"aria-orientation": "vertical",
|
|
1014
|
-
onScroll: e.popupScroll
|
|
1015
|
-
}, {
|
|
1016
|
-
default: D(() => [
|
|
1017
|
-
e.showNewOption ? (g(), W(m, {
|
|
1018
|
-
key: 0,
|
|
1019
|
-
value: e.states.inputValue,
|
|
1020
|
-
created: !0
|
|
1021
|
-
}, null, 8, ["value"])) : k("v-if", !0),
|
|
1022
|
-
A(b, null, {
|
|
1023
|
-
default: D(() => [
|
|
1024
|
-
$(e.$slots, "default")
|
|
1025
|
-
]),
|
|
1026
|
-
_: 3
|
|
1027
|
-
})
|
|
1028
|
-
]),
|
|
1029
|
-
_: 3
|
|
1030
|
-
}, 8, ["id", "wrap-class", "view-class", "class", "aria-label", "onScroll"]), [
|
|
1031
|
-
[$e, e.states.options.size > 0 && !e.loading]
|
|
1032
|
-
]),
|
|
1033
|
-
e.$slots.loading && e.loading ? (g(), I("div", {
|
|
1034
|
-
key: 1,
|
|
1035
|
-
class: p(e.nsSelect.be("dropdown", "loading"))
|
|
1036
|
-
}, [
|
|
1037
|
-
$(e.$slots, "loading")
|
|
1038
|
-
], 2)) : e.loading || e.filteredOptionsCount === 0 ? (g(), I("div", {
|
|
1039
|
-
key: 2,
|
|
1040
|
-
class: p(e.nsSelect.be("dropdown", "empty"))
|
|
1041
|
-
}, [
|
|
1042
|
-
$(e.$slots, "empty", {}, () => [
|
|
1043
|
-
T("span", null, B(e.emptyText), 1)
|
|
1044
|
-
])
|
|
1045
|
-
], 2)) : k("v-if", !0),
|
|
1046
|
-
e.$slots.footer ? (g(), I("div", {
|
|
1047
|
-
key: 3,
|
|
1048
|
-
class: p(e.nsSelect.be("dropdown", "footer")),
|
|
1049
|
-
onClick: L(() => {
|
|
1050
|
-
}, ["stop"])
|
|
1051
|
-
}, [
|
|
1052
|
-
$(e.$slots, "footer")
|
|
1053
|
-
], 10, ["onClick"])) : k("v-if", !0)
|
|
1054
|
-
]),
|
|
1055
|
-
_: 3
|
|
1056
|
-
}, 512)
|
|
1057
|
-
]),
|
|
1058
|
-
_: 3
|
|
1059
|
-
}, 8, ["visible", "placement", "teleported", "popper-class", "popper-options", "fallback-placements", "effect", "transition", "persistent", "append-to", "show-arrow", "offset", "onBeforeShow", "onHide"])
|
|
1060
|
-
], 16, ["onMouseleave"])), [
|
|
1061
|
-
[f, e.handleClickOutside, e.popperRef]
|
|
1062
|
-
]);
|
|
1063
|
-
}
|
|
1064
|
-
var on = /* @__PURE__ */ ye(ln, [["render", nn], ["__file", "select.vue"]]);
|
|
1065
|
-
const an = ae({
|
|
1066
|
-
name: "ElOptionGroup",
|
|
1067
|
-
componentName: "ElOptionGroup",
|
|
1068
|
-
props: {
|
|
1069
|
-
label: String,
|
|
1070
|
-
disabled: Boolean
|
|
1071
|
-
},
|
|
1072
|
-
setup(e) {
|
|
1073
|
-
const o = oe("select"), a = V(null), c = Ee(), s = V([]);
|
|
1074
|
-
lt(st, ne({
|
|
1075
|
-
...Te(e)
|
|
1076
|
-
}));
|
|
1077
|
-
const v = r(() => s.value.some((m) => m.visible === !0)), l = (m) => {
|
|
1078
|
-
var b, y;
|
|
1079
|
-
return ((b = m.type) == null ? void 0 : b.name) === "ElOption" && !!((y = m.component) != null && y.proxy);
|
|
1080
|
-
}, S = (m) => {
|
|
1081
|
-
const b = z(m), y = [];
|
|
1082
|
-
return b.forEach((w) => {
|
|
1083
|
-
var f, h;
|
|
1084
|
-
l(w) ? y.push(w.component.proxy) : (f = w.children) != null && f.length ? y.push(...S(w.children)) : (h = w.component) != null && h.subTree && y.push(...S(w.component.subTree));
|
|
1085
|
-
}), y;
|
|
1086
|
-
}, u = () => {
|
|
1087
|
-
s.value = S(c.subTree);
|
|
1088
|
-
};
|
|
1089
|
-
return ke(() => {
|
|
1090
|
-
u();
|
|
1091
|
-
}), Ol(a, u, {
|
|
1092
|
-
attributes: !0,
|
|
1093
|
-
subtree: !0,
|
|
1094
|
-
childList: !0
|
|
1095
|
-
}), {
|
|
1096
|
-
groupRef: a,
|
|
1097
|
-
visible: v,
|
|
1098
|
-
ns: o
|
|
1099
|
-
};
|
|
1100
|
-
}
|
|
1101
|
-
});
|
|
1102
|
-
function sn(e, o, a, c, s, v) {
|
|
1103
|
-
return le((g(), I("ul", {
|
|
1104
|
-
ref: "groupRef",
|
|
1105
|
-
class: p(e.ns.be("group", "wrap"))
|
|
1106
|
-
}, [
|
|
1107
|
-
T("li", {
|
|
1108
|
-
class: p(e.ns.be("group", "title"))
|
|
1109
|
-
}, B(e.label), 3),
|
|
1110
|
-
T("li", null, [
|
|
1111
|
-
T("ul", {
|
|
1112
|
-
class: p(e.ns.b("group"))
|
|
1113
|
-
}, [
|
|
1114
|
-
$(e.$slots, "default")
|
|
1115
|
-
], 2)
|
|
1116
|
-
])
|
|
1117
|
-
], 2)), [
|
|
1118
|
-
[$e, e.visible]
|
|
1119
|
-
]);
|
|
1120
|
-
}
|
|
1121
|
-
var it = /* @__PURE__ */ ye(an, [["render", sn], ["__file", "option-group.vue"]]);
|
|
1122
|
-
const On = yl(on, {
|
|
1123
|
-
Option: Me,
|
|
1124
|
-
OptionGroup: it
|
|
1125
|
-
}), wn = nt(Me);
|
|
1126
|
-
nt(it);
|
|
1127
|
-
export {
|
|
1128
|
-
wn as E,
|
|
1129
|
-
On as a
|
|
1130
|
-
};
|