st-comp 0.0.75 → 0.0.77
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/components.d.ts +3 -0
- package/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +25 -223
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +15 -13
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +105 -102
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +45 -42
- package/es/MonacoEditor.cjs +1 -1
- package/es/MonacoEditor.js +1 -1
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +121 -117
- package/es/Table.cjs +3 -3
- package/es/Table.js +275 -271
- package/es/VarietySearch.cjs +2 -2
- package/es/VarietySearch.js +734 -716
- package/es/VirtualTable.cjs +13 -1
- package/es/VirtualTable.js +2724 -1
- package/es/{base-dbd10dcf.cjs → base-4865d432.cjs} +3 -3
- package/es/{base-00f6b0ab.js → base-6faccb01.js} +66 -65
- package/es/castArray-3341cbb4.cjs +1 -0
- package/es/castArray-bdee0d50.js +10 -0
- package/es/config-provider-465c8253.cjs +1 -0
- package/es/config-provider-be0e9c36.js +46 -0
- package/es/{el-button-12e38f0b.js → el-button-1b9c4fd6.js} +31 -31
- package/es/el-button-aad5268b.cjs +1 -0
- package/es/el-empty-348c46f7.js +204 -0
- package/es/el-empty-608948d9.cjs +1 -0
- package/es/el-icon-158ddc19.cjs +1 -0
- package/es/{el-icon-bacbcecf.js → el-icon-d385d377.js} +58 -57
- package/es/{el-overlay-ea0f5492.js → el-overlay-400ac6ce.js} +58 -57
- package/es/el-overlay-4713107e.cjs +5 -0
- package/es/el-scrollbar-83abe3de.js +248 -0
- package/es/el-scrollbar-bc381e35.cjs +1 -0
- package/es/el-select-7116533b.cjs +9 -0
- package/es/{el-select-f84b87d9.js → el-select-895360ba.js} +282 -280
- package/es/el-tag-2c7e5d4a.cjs +1 -0
- package/es/el-tag-30cecca3.js +2417 -0
- package/es/focus-trap-5ac78614.js +259 -0
- package/es/focus-trap-a169f160.cjs +1 -0
- package/es/{index-2cc1c02e.cjs → index-a091492d.cjs} +1 -1
- package/es/{index-16dfa199.js → index-caa490bf.js} +17 -14
- package/es/{python-336a8c96.js → python-0b8dfd75.js} +1 -1
- package/es/{python-044eec0c.cjs → python-bd86111b.cjs} +1 -1
- package/es/raf-5e5c53db.cjs +1 -0
- package/es/raf-92c5ed6d.js +6 -0
- package/es/{scroll-c6489061.js → scroll-264c50f3.js} +5 -5
- package/es/{scroll-891e3e9f.cjs → scroll-bb8039ba.cjs} +1 -1
- package/es/style.css +1 -1
- package/es/typescript-7ae59c4c.js +4 -0
- package/es/typescript-b63f8e83.cjs +1 -0
- package/es/use-form-item-0e9cae13.js +668 -0
- package/es/use-form-item-6cef6b15.cjs +3 -0
- package/es/use-global-config-17f3d7c7.cjs +1 -0
- package/es/use-global-config-8c9c775f.js +110 -0
- package/es/{vnode-b44a499a.cjs → vnode-abafec9e.cjs} +1 -1
- package/es/{vnode-229e6729.js → vnode-b78096e3.js} +4 -4
- package/es/{zh-cn-e0c3b8df.js → zh-cn-8aaa7dd2.js} +2 -2
- package/es/{zh-cn-5c01bb26.cjs → zh-cn-e4d38144.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +2 -2
- package/lib/{index-d7f5d65b.js → index-7d3b5736.js} +72 -50
- package/lib/{python-31d7356c.js → python-d1c44236.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/MonacoEditor/index.vue +5 -0
- package/packages/VarietySearch/config.js +44 -21
- package/packages/VarietySearch/index.vue +64 -24
- package/src/pages/MonacoEditor/index.vue +5 -0
- package/es/config-provider-33068fb6.cjs +0 -1
- package/es/config-provider-c98bd563.js +0 -148
- package/es/el-button-fc645d0f.cjs +0 -1
- package/es/el-icon-99876220.cjs +0 -1
- package/es/el-overlay-dcbc4437.cjs +0 -5
- package/es/el-scrollbar-6800cb98.js +0 -2653
- package/es/el-scrollbar-9da140ab.cjs +0 -1
- package/es/el-select-d22b5aa3.cjs +0 -9
- package/es/focus-trap-9f4b1039.js +0 -880
- package/es/focus-trap-fae33d9d.cjs +0 -3
|
@@ -1,42 +1,45 @@
|
|
|
1
|
-
import { computed as v, getCurrentInstance as sl, ref as K, shallowRef as Re, watch as W, defineComponent as ge, useAttrs as nt, useSlots as ot, nextTick as D, onMounted as ml, toRef as it, withDirectives as He, openBlock as y, createElementBlock as
|
|
2
|
-
import { t as dt,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { computed as v, getCurrentInstance as sl, ref as K, shallowRef as Re, watch as W, defineComponent as ge, useAttrs as nt, useSlots as ot, nextTick as D, onMounted as ml, toRef as it, withDirectives as He, openBlock as y, createElementBlock as L, mergeProps as El, unref as a, createCommentVNode as I, Fragment as Ae, normalizeClass as S, renderSlot as X, createElementVNode as z, createBlock as V, withCtx as k, resolveDynamicComponent as Ne, withModifiers as ee, createVNode as he, toDisplayString as Y, normalizeStyle as se, vShow as hl, Transition as $l, inject as cl, toRaw as pl, reactive as bl, toRefs as Vl, onBeforeUnmount as at, triggerRef as ol, provide as Ql, resolveComponent as Ee, resolveDirective as st, renderList as Tl, withKeys as x, vModelText as rt, createSlots as ut } from "vue";
|
|
2
|
+
import { t as dt, a as ct, u as zl, d as Fl } from "./el-scrollbar-83abe3de.js";
|
|
3
|
+
import { f as pt, i as Nl, j as ft, E as vt, C as mt, g as ht, t as bt } from "./el-tag-30cecca3.js";
|
|
4
|
+
import { A as gt, c as Ul, n as yt, i as fl, t as Gl, v as Ct, l as Pl, s as St, V as Yl, B as wt, D as Ot, E as Te, F as Xl, G as Rl, u as It, a as Et } from "./use-form-item-0e9cae13.js";
|
|
5
|
+
import { C as Al, j as il, Q as Tt, k as Ml, b as Zl, d as kl, i as al, u as be, N as kt, _ as We, e as vl, w as Dl, B as le, g as Kl, H as Pe, E as Lt, R as Ll, T as $t, f as Jl } from "./base-6faccb01.js";
|
|
6
|
+
import { m as Mt } from "./typescript-7ae59c4c.js";
|
|
7
|
+
import { U as te, i as Vt, E as Hl, C as xl } from "./focus-trap-5ac78614.js";
|
|
8
|
+
import { s as zt } from "./scroll-264c50f3.js";
|
|
9
|
+
const Pt = () => Al && /firefox/i.test(window.navigator.userAgent);
|
|
10
|
+
var Wl = 1 / 0, At = 17976931348623157e292;
|
|
11
|
+
function Dt(e) {
|
|
9
12
|
if (!e)
|
|
10
13
|
return e === 0 ? e : 0;
|
|
11
14
|
if (e = dt(e), e === Wl || e === -Wl) {
|
|
12
15
|
var l = e < 0 ? -1 : 1;
|
|
13
|
-
return l *
|
|
16
|
+
return l * At;
|
|
14
17
|
}
|
|
15
18
|
return e === e ? e : 0;
|
|
16
19
|
}
|
|
17
|
-
function
|
|
18
|
-
var l =
|
|
20
|
+
function Kt(e) {
|
|
21
|
+
var l = Dt(e), o = l % 1;
|
|
19
22
|
return l === l ? o ? l - o : l : 0;
|
|
20
23
|
}
|
|
21
|
-
function
|
|
24
|
+
function Bt(e, l, o, s) {
|
|
22
25
|
for (var c = e.length, u = o + (s ? 1 : -1); s ? u-- : ++u < c; )
|
|
23
26
|
if (l(e[u], u, e))
|
|
24
27
|
return u;
|
|
25
28
|
return -1;
|
|
26
29
|
}
|
|
27
|
-
var Ft = Math.max,
|
|
28
|
-
function
|
|
30
|
+
var Ft = Math.max, Nt = Math.min;
|
|
31
|
+
function Rt(e, l, o) {
|
|
29
32
|
var s = e == null ? 0 : e.length;
|
|
30
33
|
if (!s)
|
|
31
34
|
return -1;
|
|
32
35
|
var c = s - 1;
|
|
33
|
-
return o !== void 0 && (c =
|
|
36
|
+
return o !== void 0 && (c = Kt(o), c = o < 0 ? Ft(s + c, 0) : Nt(c, s - 1)), Bt(e, pt(l), c, !0);
|
|
34
37
|
}
|
|
35
|
-
const
|
|
38
|
+
const Ht = (e = "") => e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d"), Wt = (e) => gt[e || "default"], qt = (e) => ["", ...Ul].includes(e), _l = (e) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e), jt = ["class", "style"], Qt = /^on[A-Z]/, Ut = (e = {}) => {
|
|
36
39
|
const { excludeListeners: l = !1, excludeKeys: o } = e, s = v(() => ((o == null ? void 0 : o.value) || []).concat(jt)), c = sl();
|
|
37
40
|
return c ? v(() => {
|
|
38
41
|
var u;
|
|
39
|
-
return
|
|
42
|
+
return Tt(Object.entries((u = c.proxy) == null ? void 0 : u.$attrs).filter(([p]) => !s.value.includes(p) && !(l && Qt.test(p))));
|
|
40
43
|
}) : (il("use-attrs", "getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"), v(() => ({})));
|
|
41
44
|
};
|
|
42
45
|
function Gt(e) {
|
|
@@ -87,7 +90,7 @@ function Yt(e, { afterFocus: l, afterBlur: o } = {}) {
|
|
|
87
90
|
};
|
|
88
91
|
return W(u, (g) => {
|
|
89
92
|
g && g.setAttribute("tabindex", "-1");
|
|
90
|
-
}),
|
|
93
|
+
}), ct(u, "click", w), {
|
|
91
94
|
wrapperRef: u,
|
|
92
95
|
isFocused: p,
|
|
93
96
|
handleFocus: b,
|
|
@@ -98,12 +101,12 @@ let _;
|
|
|
98
101
|
const Xt = `
|
|
99
102
|
height:0 !important;
|
|
100
103
|
visibility:hidden !important;
|
|
101
|
-
${
|
|
104
|
+
${Pt() ? "" : "overflow:hidden !important;"}
|
|
102
105
|
position:absolute !important;
|
|
103
106
|
z-index:-1000 !important;
|
|
104
107
|
top:0 !important;
|
|
105
108
|
right:0 !important;
|
|
106
|
-
`,
|
|
109
|
+
`, Zt = [
|
|
107
110
|
"letter-spacing",
|
|
108
111
|
"line-height",
|
|
109
112
|
"padding-top",
|
|
@@ -120,14 +123,14 @@ const Xt = `
|
|
|
120
123
|
"border-width",
|
|
121
124
|
"box-sizing"
|
|
122
125
|
];
|
|
123
|
-
function
|
|
126
|
+
function Jt(e) {
|
|
124
127
|
const l = window.getComputedStyle(e), o = l.getPropertyValue("box-sizing"), s = Number.parseFloat(l.getPropertyValue("padding-bottom")) + Number.parseFloat(l.getPropertyValue("padding-top")), c = Number.parseFloat(l.getPropertyValue("border-bottom-width")) + Number.parseFloat(l.getPropertyValue("border-top-width"));
|
|
125
|
-
return { contextStyle:
|
|
128
|
+
return { contextStyle: Zt.map((p) => `${p}:${l.getPropertyValue(p)}`).join(";"), paddingSize: s, borderSize: c, boxSizing: o };
|
|
126
129
|
}
|
|
127
130
|
function ql(e, l = 1, o) {
|
|
128
131
|
var s;
|
|
129
132
|
_ || (_ = document.createElement("textarea"), document.body.appendChild(_));
|
|
130
|
-
const { paddingSize: c, borderSize: u, boxSizing: p, contextStyle: b } =
|
|
133
|
+
const { paddingSize: c, borderSize: u, boxSizing: p, contextStyle: b } = Jt(e);
|
|
131
134
|
_.setAttribute("style", `${b};${Xt}`), _.value = e.value || e.placeholder || "";
|
|
132
135
|
let f = _.scrollHeight;
|
|
133
136
|
const w = {};
|
|
@@ -151,7 +154,7 @@ const xt = Zl({
|
|
|
151
154
|
size: yt,
|
|
152
155
|
disabled: Boolean,
|
|
153
156
|
modelValue: {
|
|
154
|
-
type:
|
|
157
|
+
type: kl([
|
|
155
158
|
String,
|
|
156
159
|
Number,
|
|
157
160
|
Object
|
|
@@ -167,7 +170,7 @@ const xt = Zl({
|
|
|
167
170
|
values: ["none", "both", "horizontal", "vertical"]
|
|
168
171
|
},
|
|
169
172
|
autosize: {
|
|
170
|
-
type:
|
|
173
|
+
type: kl([Boolean, Object]),
|
|
171
174
|
default: !1
|
|
172
175
|
},
|
|
173
176
|
autocomplete: {
|
|
@@ -225,8 +228,8 @@ const xt = Zl({
|
|
|
225
228
|
default: !0
|
|
226
229
|
},
|
|
227
230
|
inputStyle: {
|
|
228
|
-
type:
|
|
229
|
-
default: () =>
|
|
231
|
+
type: kl([Object, Array, String]),
|
|
232
|
+
default: () => Mt({})
|
|
230
233
|
},
|
|
231
234
|
autofocus: {
|
|
232
235
|
type: Boolean,
|
|
@@ -267,7 +270,7 @@ const xt = Zl({
|
|
|
267
270
|
[n.bm("group", "prepend")]: u.prepend,
|
|
268
271
|
[n.m("prefix")]: u.prefix || s.prefixIcon,
|
|
269
272
|
[n.m("suffix")]: u.suffix || s.suffixIcon || s.clearable || s.showPassword,
|
|
270
|
-
[n.bm("suffix", "password-clear")]: ue.value &&
|
|
273
|
+
[n.bm("suffix", "password-clear")]: ue.value && Ce.value
|
|
271
274
|
},
|
|
272
275
|
c.class
|
|
273
276
|
]), f = v(() => [
|
|
@@ -275,9 +278,9 @@ const xt = Zl({
|
|
|
275
278
|
n.is("focus", ye.value)
|
|
276
279
|
]), w = Ut({
|
|
277
280
|
excludeKeys: v(() => Object.keys(p.value))
|
|
278
|
-
}), { form: g, formItem: m } = Gl(), { inputId:
|
|
281
|
+
}), { form: g, formItem: m } = Gl(), { inputId: B } = Ct(s, {
|
|
279
282
|
formItemContext: m
|
|
280
|
-
}), A = Pl(), $ =
|
|
283
|
+
}), A = Pl(), $ = St(), n = be("input"), O = be("textarea"), T = Re(), E = Re(), q = K(!1), ne = K(!1), j = K(!1), De = K(), Z = Re(s.inputStyle), oe = v(() => T.value || E.value), { wrapperRef: qe, isFocused: ye, handleFocus: ie, handleBlur: P } = Yt(oe, {
|
|
281
284
|
afterBlur() {
|
|
282
285
|
var r;
|
|
283
286
|
s.validateEvent && ((r = m == null ? void 0 : m.validate) == null || r.call(m, "blur").catch((h) => il(h)));
|
|
@@ -290,9 +293,9 @@ const xt = Zl({
|
|
|
290
293
|
s.inputStyle
|
|
291
294
|
]), Q = v(() => [
|
|
292
295
|
s.inputStyle,
|
|
293
|
-
|
|
296
|
+
Z.value,
|
|
294
297
|
{ resize: s.resize }
|
|
295
|
-
]),
|
|
298
|
+
]), F = v(() => Vt(s.modelValue) ? "" : String(s.modelValue)), ue = v(() => s.clearable && !$.value && !s.readonly && !!F.value && (ye.value || q.value)), Ce = v(() => s.showPassword && !$.value && !s.readonly && !!F.value && (!!F.value || ye.value)), U = v(() => s.showWordLimit && !!w.value.maxlength && (s.type === "text" || s.type === "textarea") && !$.value && !s.readonly && !s.showPassword), Se = v(() => F.value.length), Ue = v(() => !!U.value && Se.value > Number(w.value.maxlength)), Ge = v(() => !!u.suffix || !!s.suffixIcon || ue.value || s.showPassword || U.value || !!re.value && Ke.value), [Ye, Xe] = Gt(T);
|
|
296
299
|
zl(E, (r) => {
|
|
297
300
|
if (ce(), !U.value || s.resize !== "both")
|
|
298
301
|
return;
|
|
@@ -306,14 +309,14 @@ const xt = Zl({
|
|
|
306
309
|
if (!(!Al || r !== "textarea" || !E.value))
|
|
307
310
|
if (h) {
|
|
308
311
|
const M = vl(h) ? h.minRows : void 0, fe = vl(h) ? h.maxRows : void 0, Ie = ql(E.value, M, fe);
|
|
309
|
-
|
|
312
|
+
Z.value = {
|
|
310
313
|
overflowY: "hidden",
|
|
311
314
|
...Ie
|
|
312
315
|
}, D(() => {
|
|
313
|
-
E.value.offsetHeight,
|
|
316
|
+
E.value.offsetHeight, Z.value = Ie;
|
|
314
317
|
});
|
|
315
318
|
} else
|
|
316
|
-
|
|
319
|
+
Z.value = {
|
|
317
320
|
minHeight: ql(E.value).minHeight
|
|
318
321
|
};
|
|
319
322
|
}, ce = ((r) => {
|
|
@@ -325,19 +328,19 @@ const xt = Zl({
|
|
|
325
328
|
((M = E.value) == null ? void 0 : M.offsetParent) === null || (r(), h = !0);
|
|
326
329
|
};
|
|
327
330
|
})(de), G = () => {
|
|
328
|
-
const r = oe.value, h = s.formatter ? s.formatter(
|
|
331
|
+
const r = oe.value, h = s.formatter ? s.formatter(F.value) : F.value;
|
|
329
332
|
!r || r.value === h || (r.value = h);
|
|
330
|
-
},
|
|
333
|
+
}, ke = async (r) => {
|
|
331
334
|
Ye();
|
|
332
335
|
let { value: h } = r.target;
|
|
333
336
|
if (s.formatter && (h = s.parser ? s.parser(h) : h), !ne.value) {
|
|
334
|
-
if (h ===
|
|
337
|
+
if (h === F.value) {
|
|
335
338
|
G();
|
|
336
339
|
return;
|
|
337
340
|
}
|
|
338
341
|
o(te, h), o("input", h), await D(), G(), Xe();
|
|
339
342
|
}
|
|
340
|
-
},
|
|
343
|
+
}, Le = (r) => {
|
|
341
344
|
o("change", r.target.value);
|
|
342
345
|
}, we = (r) => {
|
|
343
346
|
o("compositionstart", r), ne.value = !0;
|
|
@@ -347,16 +350,16 @@ const xt = Zl({
|
|
|
347
350
|
const M = (h = r.target) == null ? void 0 : h.value, fe = M[M.length - 1] || "";
|
|
348
351
|
ne.value = !_l(fe);
|
|
349
352
|
}, Me = (r) => {
|
|
350
|
-
o("compositionend", r), ne.value && (ne.value = !1,
|
|
353
|
+
o("compositionend", r), ne.value && (ne.value = !1, ke(r));
|
|
351
354
|
}, Ve = () => {
|
|
352
355
|
j.value = !j.value, pe();
|
|
353
356
|
}, pe = async () => {
|
|
354
357
|
var r;
|
|
355
358
|
await D(), (r = oe.value) == null || r.focus();
|
|
356
|
-
},
|
|
359
|
+
}, Ze = () => {
|
|
357
360
|
var r;
|
|
358
361
|
return (r = oe.value) == null ? void 0 : r.blur();
|
|
359
|
-
},
|
|
362
|
+
}, Je = (r) => {
|
|
360
363
|
q.value = !1, o("mouseleave", r);
|
|
361
364
|
}, xe = (r) => {
|
|
362
365
|
q.value = !0, o("mouseenter", r);
|
|
@@ -365,13 +368,13 @@ const xt = Zl({
|
|
|
365
368
|
}, _e = () => {
|
|
366
369
|
var r;
|
|
367
370
|
(r = oe.value) == null || r.select();
|
|
368
|
-
},
|
|
371
|
+
}, Be = () => {
|
|
369
372
|
o(te, ""), o("change", ""), o("clear"), o("input", "");
|
|
370
373
|
};
|
|
371
374
|
return W(() => s.modelValue, () => {
|
|
372
375
|
var r;
|
|
373
376
|
D(() => de()), s.validateEvent && ((r = m == null ? void 0 : m.validate) == null || r.call(m, "change").catch((h) => il(h)));
|
|
374
|
-
}), W(
|
|
377
|
+
}), W(F, () => G()), W(() => s.type, async () => {
|
|
375
378
|
await D(), G(), de();
|
|
376
379
|
}), ml(() => {
|
|
377
380
|
!s.formatter && s.parser && il("ElInput", "If you set the parser, you also need to set the formatter."), G(), D(de);
|
|
@@ -382,45 +385,45 @@ const xt = Zl({
|
|
|
382
385
|
textareaStyle: Q,
|
|
383
386
|
autosize: it(s, "autosize"),
|
|
384
387
|
focus: pe,
|
|
385
|
-
blur:
|
|
388
|
+
blur: Ze,
|
|
386
389
|
select: _e,
|
|
387
|
-
clear:
|
|
390
|
+
clear: Be,
|
|
388
391
|
resizeTextarea: de
|
|
389
|
-
}), (r, h) => He((y(),
|
|
392
|
+
}), (r, h) => He((y(), L("div", El(a(p), {
|
|
390
393
|
class: a(b),
|
|
391
394
|
style: a(Qe),
|
|
392
395
|
role: r.containerRole,
|
|
393
396
|
onMouseenter: xe,
|
|
394
|
-
onMouseleave:
|
|
397
|
+
onMouseleave: Je
|
|
395
398
|
}), [
|
|
396
399
|
I(" input "),
|
|
397
|
-
r.type !== "textarea" ? (y(),
|
|
400
|
+
r.type !== "textarea" ? (y(), L(Ae, { key: 0 }, [
|
|
398
401
|
I(" prepend slot "),
|
|
399
|
-
r.$slots.prepend ? (y(),
|
|
402
|
+
r.$slots.prepend ? (y(), L("div", {
|
|
400
403
|
key: 0,
|
|
401
|
-
class:
|
|
404
|
+
class: S(a(n).be("group", "prepend"))
|
|
402
405
|
}, [
|
|
403
406
|
X(r.$slots, "prepend")
|
|
404
407
|
], 2)) : I("v-if", !0),
|
|
405
408
|
z("div", {
|
|
406
409
|
ref_key: "wrapperRef",
|
|
407
410
|
ref: qe,
|
|
408
|
-
class:
|
|
411
|
+
class: S(a(f))
|
|
409
412
|
}, [
|
|
410
413
|
I(" prefix slot "),
|
|
411
|
-
r.$slots.prefix || r.prefixIcon ? (y(),
|
|
414
|
+
r.$slots.prefix || r.prefixIcon ? (y(), L("span", {
|
|
412
415
|
key: 0,
|
|
413
|
-
class:
|
|
416
|
+
class: S(a(n).e("prefix"))
|
|
414
417
|
}, [
|
|
415
418
|
z("span", {
|
|
416
|
-
class:
|
|
419
|
+
class: S(a(n).e("prefix-inner"))
|
|
417
420
|
}, [
|
|
418
421
|
X(r.$slots, "prefix"),
|
|
419
422
|
r.prefixIcon ? (y(), V(a(Te), {
|
|
420
423
|
key: 0,
|
|
421
|
-
class:
|
|
424
|
+
class: S(a(n).e("icon"))
|
|
422
425
|
}, {
|
|
423
|
-
default:
|
|
426
|
+
default: k(() => [
|
|
424
427
|
(y(), V(Ne(r.prefixIcon)))
|
|
425
428
|
]),
|
|
426
429
|
_: 1
|
|
@@ -428,7 +431,7 @@ const xt = Zl({
|
|
|
428
431
|
], 2)
|
|
429
432
|
], 2)) : I("v-if", !0),
|
|
430
433
|
z("input", El({
|
|
431
|
-
id: a(
|
|
434
|
+
id: a(B),
|
|
432
435
|
ref_key: "input",
|
|
433
436
|
ref: T,
|
|
434
437
|
class: a(n).e("inner")
|
|
@@ -448,27 +451,27 @@ const xt = Zl({
|
|
|
448
451
|
onCompositionstart: we,
|
|
449
452
|
onCompositionupdate: $e,
|
|
450
453
|
onCompositionend: Me,
|
|
451
|
-
onInput:
|
|
454
|
+
onInput: ke,
|
|
452
455
|
onFocus: h[0] || (h[0] = (...M) => a(ie) && a(ie)(...M)),
|
|
453
456
|
onBlur: h[1] || (h[1] = (...M) => a(P) && a(P)(...M)),
|
|
454
|
-
onChange:
|
|
457
|
+
onChange: Le,
|
|
455
458
|
onKeydown: Oe
|
|
456
459
|
}), null, 16, ln),
|
|
457
460
|
I(" suffix slot "),
|
|
458
|
-
a(Ge) ? (y(),
|
|
461
|
+
a(Ge) ? (y(), L("span", {
|
|
459
462
|
key: 1,
|
|
460
|
-
class:
|
|
463
|
+
class: S(a(n).e("suffix"))
|
|
461
464
|
}, [
|
|
462
465
|
z("span", {
|
|
463
|
-
class:
|
|
466
|
+
class: S(a(n).e("suffix-inner"))
|
|
464
467
|
}, [
|
|
465
|
-
!a(ue) || !a(
|
|
468
|
+
!a(ue) || !a(Ce) || !a(U) ? (y(), L(Ae, { key: 0 }, [
|
|
466
469
|
X(r.$slots, "suffix"),
|
|
467
470
|
r.suffixIcon ? (y(), V(a(Te), {
|
|
468
471
|
key: 0,
|
|
469
|
-
class:
|
|
472
|
+
class: S(a(n).e("icon"))
|
|
470
473
|
}, {
|
|
471
|
-
default:
|
|
474
|
+
default: k(() => [
|
|
472
475
|
(y(), V(Ne(r.suffixIcon)))
|
|
473
476
|
]),
|
|
474
477
|
_: 1
|
|
@@ -476,42 +479,42 @@ const xt = Zl({
|
|
|
476
479
|
], 64)) : I("v-if", !0),
|
|
477
480
|
a(ue) ? (y(), V(a(Te), {
|
|
478
481
|
key: 1,
|
|
479
|
-
class:
|
|
482
|
+
class: S([a(n).e("icon"), a(n).e("clear")]),
|
|
480
483
|
onMousedown: ee(a(kt), ["prevent"]),
|
|
481
|
-
onClick:
|
|
484
|
+
onClick: Be
|
|
482
485
|
}, {
|
|
483
|
-
default:
|
|
486
|
+
default: k(() => [
|
|
484
487
|
he(a(Xl))
|
|
485
488
|
]),
|
|
486
489
|
_: 1
|
|
487
490
|
}, 8, ["class", "onMousedown"])) : I("v-if", !0),
|
|
488
|
-
a(
|
|
491
|
+
a(Ce) ? (y(), V(a(Te), {
|
|
489
492
|
key: 2,
|
|
490
|
-
class:
|
|
493
|
+
class: S([a(n).e("icon"), a(n).e("password")]),
|
|
491
494
|
onClick: Ve
|
|
492
495
|
}, {
|
|
493
|
-
default:
|
|
496
|
+
default: k(() => [
|
|
494
497
|
(y(), V(Ne(a(je))))
|
|
495
498
|
]),
|
|
496
499
|
_: 1
|
|
497
500
|
}, 8, ["class"])) : I("v-if", !0),
|
|
498
|
-
a(U) ? (y(),
|
|
501
|
+
a(U) ? (y(), L("span", {
|
|
499
502
|
key: 3,
|
|
500
|
-
class:
|
|
503
|
+
class: S(a(n).e("count"))
|
|
501
504
|
}, [
|
|
502
505
|
z("span", {
|
|
503
|
-
class:
|
|
504
|
-
}, Y(a(
|
|
506
|
+
class: S(a(n).e("count-inner"))
|
|
507
|
+
}, Y(a(Se)) + " / " + Y(a(w).maxlength), 3)
|
|
505
508
|
], 2)) : I("v-if", !0),
|
|
506
509
|
a(re) && a(ae) && a(Ke) ? (y(), V(a(Te), {
|
|
507
510
|
key: 4,
|
|
508
|
-
class:
|
|
511
|
+
class: S([
|
|
509
512
|
a(n).e("icon"),
|
|
510
513
|
a(n).e("validateIcon"),
|
|
511
514
|
a(n).is("loading", a(re) === "validating")
|
|
512
515
|
])
|
|
513
516
|
}, {
|
|
514
|
-
default:
|
|
517
|
+
default: k(() => [
|
|
515
518
|
(y(), V(Ne(a(ae))))
|
|
516
519
|
]),
|
|
517
520
|
_: 1
|
|
@@ -520,16 +523,16 @@ const xt = Zl({
|
|
|
520
523
|
], 2)) : I("v-if", !0)
|
|
521
524
|
], 2),
|
|
522
525
|
I(" append slot "),
|
|
523
|
-
r.$slots.append ? (y(),
|
|
526
|
+
r.$slots.append ? (y(), L("div", {
|
|
524
527
|
key: 1,
|
|
525
|
-
class:
|
|
528
|
+
class: S(a(n).be("group", "append"))
|
|
526
529
|
}, [
|
|
527
530
|
X(r.$slots, "append")
|
|
528
531
|
], 2)) : I("v-if", !0)
|
|
529
|
-
], 64)) : (y(),
|
|
532
|
+
], 64)) : (y(), L(Ae, { key: 1 }, [
|
|
530
533
|
I(" textarea "),
|
|
531
534
|
z("textarea", El({
|
|
532
|
-
id: a(
|
|
535
|
+
id: a(B),
|
|
533
536
|
ref_key: "textarea",
|
|
534
537
|
ref: E,
|
|
535
538
|
class: a(O).e("inner")
|
|
@@ -546,17 +549,17 @@ const xt = Zl({
|
|
|
546
549
|
onCompositionstart: we,
|
|
547
550
|
onCompositionupdate: $e,
|
|
548
551
|
onCompositionend: Me,
|
|
549
|
-
onInput:
|
|
552
|
+
onInput: ke,
|
|
550
553
|
onFocus: h[2] || (h[2] = (...M) => a(ie) && a(ie)(...M)),
|
|
551
554
|
onBlur: h[3] || (h[3] = (...M) => a(P) && a(P)(...M)),
|
|
552
|
-
onChange:
|
|
555
|
+
onChange: Le,
|
|
553
556
|
onKeydown: Oe
|
|
554
557
|
}), null, 16, tn),
|
|
555
|
-
a(U) ? (y(),
|
|
558
|
+
a(U) ? (y(), L("span", {
|
|
556
559
|
key: 0,
|
|
557
560
|
style: se(De.value),
|
|
558
|
-
class:
|
|
559
|
-
}, Y(a(
|
|
561
|
+
class: S(a(n).e("count"))
|
|
562
|
+
}, Y(a(Se)) + " / " + Y(a(w).maxlength), 7)) : I("v-if", !0)
|
|
560
563
|
], 64))
|
|
561
564
|
], 16, en)), [
|
|
562
565
|
[hl, r.type !== "hidden"]
|
|
@@ -599,7 +602,7 @@ const sn = Dl(an), et = Zl({
|
|
|
599
602
|
emits: rn,
|
|
600
603
|
setup(e, { emit: l }) {
|
|
601
604
|
const o = e, s = Pl(), c = be("tag"), u = v(() => {
|
|
602
|
-
const { type: f, hit: w, effect: g, closable: m, round:
|
|
605
|
+
const { type: f, hit: w, effect: g, closable: m, round: B } = o;
|
|
603
606
|
return [
|
|
604
607
|
c.b(),
|
|
605
608
|
c.is("closable", m),
|
|
@@ -607,30 +610,30 @@ const sn = Dl(an), et = Zl({
|
|
|
607
610
|
c.m(s.value),
|
|
608
611
|
c.m(g),
|
|
609
612
|
c.is("hit", w),
|
|
610
|
-
c.is("round",
|
|
613
|
+
c.is("round", B)
|
|
611
614
|
];
|
|
612
615
|
}), p = (f) => {
|
|
613
616
|
l("close", f);
|
|
614
617
|
}, b = (f) => {
|
|
615
618
|
l("click", f);
|
|
616
619
|
};
|
|
617
|
-
return (f, w) => f.disableTransitions ? (y(),
|
|
620
|
+
return (f, w) => f.disableTransitions ? (y(), L("span", {
|
|
618
621
|
key: 0,
|
|
619
|
-
class:
|
|
622
|
+
class: S(a(u)),
|
|
620
623
|
style: se({ backgroundColor: f.color }),
|
|
621
624
|
onClick: b
|
|
622
625
|
}, [
|
|
623
626
|
z("span", {
|
|
624
|
-
class:
|
|
627
|
+
class: S(a(c).e("content"))
|
|
625
628
|
}, [
|
|
626
629
|
X(f.$slots, "default")
|
|
627
630
|
], 2),
|
|
628
631
|
f.closable ? (y(), V(a(Te), {
|
|
629
632
|
key: 0,
|
|
630
|
-
class:
|
|
633
|
+
class: S(a(c).e("close")),
|
|
631
634
|
onClick: ee(p, ["stop"])
|
|
632
635
|
}, {
|
|
633
|
-
default:
|
|
636
|
+
default: k(() => [
|
|
634
637
|
he(a(Rl))
|
|
635
638
|
]),
|
|
636
639
|
_: 1
|
|
@@ -640,23 +643,23 @@ const sn = Dl(an), et = Zl({
|
|
|
640
643
|
name: `${a(c).namespace.value}-zoom-in-center`,
|
|
641
644
|
appear: ""
|
|
642
645
|
}, {
|
|
643
|
-
default:
|
|
646
|
+
default: k(() => [
|
|
644
647
|
z("span", {
|
|
645
|
-
class:
|
|
648
|
+
class: S(a(u)),
|
|
646
649
|
style: se({ backgroundColor: f.color }),
|
|
647
650
|
onClick: b
|
|
648
651
|
}, [
|
|
649
652
|
z("span", {
|
|
650
|
-
class:
|
|
653
|
+
class: S(a(c).e("content"))
|
|
651
654
|
}, [
|
|
652
655
|
X(f.$slots, "default")
|
|
653
656
|
], 2),
|
|
654
657
|
f.closable ? (y(), V(a(Te), {
|
|
655
658
|
key: 0,
|
|
656
|
-
class:
|
|
659
|
+
class: S(a(c).e("close")),
|
|
657
660
|
onClick: ee(p, ["stop"])
|
|
658
661
|
}, {
|
|
659
|
-
default:
|
|
662
|
+
default: k(() => [
|
|
660
663
|
he(a(Rl))
|
|
661
664
|
]),
|
|
662
665
|
_: 1
|
|
@@ -670,7 +673,7 @@ const sn = Dl(an), et = Zl({
|
|
|
670
673
|
var cn = /* @__PURE__ */ We(dn, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);
|
|
671
674
|
const pn = Dl(cn), lt = Symbol("ElSelectGroup"), gl = Symbol("ElSelect");
|
|
672
675
|
function fn(e, l) {
|
|
673
|
-
const o = cl(gl), s = cl(lt, { disabled: !1 }), c = v(() => Object.prototype.toString.call(e.value).toLowerCase() === "[object object]"), u = v(() => o.props.multiple ? m(o.props.modelValue, e.value) :
|
|
676
|
+
const o = cl(gl), s = cl(lt, { disabled: !1 }), c = v(() => Object.prototype.toString.call(e.value).toLowerCase() === "[object object]"), u = v(() => o.props.multiple ? m(o.props.modelValue, e.value) : B(e.value, o.props.modelValue)), p = v(() => {
|
|
674
677
|
if (o.props.multiple) {
|
|
675
678
|
const n = o.props.modelValue || [];
|
|
676
679
|
return !u.value && n.length >= o.props.multipleLimit && o.props.multipleLimit > 0;
|
|
@@ -682,7 +685,7 @@ function fn(e, l) {
|
|
|
682
685
|
return n && n.some((E) => pl(le(E, T)) === le(O, T));
|
|
683
686
|
} else
|
|
684
687
|
return n && n.includes(O);
|
|
685
|
-
},
|
|
688
|
+
}, B = (n, O) => {
|
|
686
689
|
if (c.value) {
|
|
687
690
|
const { valueKey: T } = o.props;
|
|
688
691
|
return le(n, T) === le(O, T);
|
|
@@ -705,7 +708,7 @@ function fn(e, l) {
|
|
|
705
708
|
}, { immediate: !0 });
|
|
706
709
|
const { queryChange: $ } = pl(o);
|
|
707
710
|
return W($, (n) => {
|
|
708
|
-
const { query: O } = a(n), T = new RegExp(
|
|
711
|
+
const { query: O } = a(n), T = new RegExp(Ht(O), "i");
|
|
709
712
|
l.visible = T.test(b.value) || e.created, l.visible || o.filteredOptionsCount--;
|
|
710
713
|
}, { immediate: !0 }), {
|
|
711
714
|
select: o,
|
|
@@ -749,7 +752,7 @@ const vn = ge({
|
|
|
749
752
|
b.cachedOptions.get(A) === m && !O && b.cachedOptions.delete(A);
|
|
750
753
|
}), b.onOptionDestroy(A, m);
|
|
751
754
|
});
|
|
752
|
-
function
|
|
755
|
+
function B() {
|
|
753
756
|
e.disabled !== !0 && s.groupDisabled !== !0 && b.handleOptionSelect(m);
|
|
754
757
|
}
|
|
755
758
|
return {
|
|
@@ -762,14 +765,14 @@ const vn = ge({
|
|
|
762
765
|
hoverItem: f,
|
|
763
766
|
visible: w,
|
|
764
767
|
hover: g,
|
|
765
|
-
selectOptionClick:
|
|
768
|
+
selectOptionClick: B,
|
|
766
769
|
states: s
|
|
767
770
|
};
|
|
768
771
|
}
|
|
769
772
|
});
|
|
770
773
|
function mn(e, l, o, s, c, u) {
|
|
771
|
-
return He((y(),
|
|
772
|
-
class:
|
|
774
|
+
return He((y(), L("li", {
|
|
775
|
+
class: S(e.containerKls),
|
|
773
776
|
onMouseenter: l[0] || (l[0] = (...p) => e.hoverItem && e.hoverItem(...p)),
|
|
774
777
|
onClick: l[1] || (l[1] = ee((...p) => e.selectOptionClick && e.selectOptionClick(...p), ["stop"]))
|
|
775
778
|
}, [
|
|
@@ -780,7 +783,7 @@ function mn(e, l, o, s, c, u) {
|
|
|
780
783
|
[hl, e.visible]
|
|
781
784
|
]);
|
|
782
785
|
}
|
|
783
|
-
var
|
|
786
|
+
var Bl = /* @__PURE__ */ We(vn, [["render", mn], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);
|
|
784
787
|
const hn = ge({
|
|
785
788
|
name: "ElSelectDropdown",
|
|
786
789
|
componentName: "ElSelectDropdown",
|
|
@@ -802,8 +805,8 @@ const hn = ge({
|
|
|
802
805
|
}
|
|
803
806
|
});
|
|
804
807
|
function bn(e, l, o, s, c, u) {
|
|
805
|
-
return y(),
|
|
806
|
-
class:
|
|
808
|
+
return y(), L("div", {
|
|
809
|
+
class: S([e.ns.b("dropdown"), e.ns.is("multiple", e.isMultiple), e.popperClass]),
|
|
807
810
|
style: se({ [e.isFitInputWidth ? "width" : "minWidth"]: e.minWidth })
|
|
808
811
|
}, [
|
|
809
812
|
X(e.$slots, "default")
|
|
@@ -838,25 +841,25 @@ function yn(e) {
|
|
|
838
841
|
focused: !1
|
|
839
842
|
});
|
|
840
843
|
}
|
|
841
|
-
const
|
|
844
|
+
const Cn = (e, l, o) => {
|
|
842
845
|
const { t: s } = Kl(), c = be("select");
|
|
843
|
-
|
|
846
|
+
It({
|
|
844
847
|
from: "suffixTransition",
|
|
845
848
|
replacement: "override style scheme",
|
|
846
849
|
version: "2.3.0",
|
|
847
850
|
scope: "props",
|
|
848
851
|
ref: "https://element-plus.org/en-US/component/select.html#select-attributes"
|
|
849
852
|
}, v(() => e.suffixTransition === !1));
|
|
850
|
-
const u = K(null), p = K(null), b = K(null), f = K(null), w = K(null), g = K(null), m = K(null),
|
|
853
|
+
const u = K(null), p = K(null), b = K(null), f = K(null), w = K(null), g = K(null), m = K(null), B = K(null), A = K(-1), $ = Re({ query: "" }), n = Re(""), O = K([]);
|
|
851
854
|
let T = 0;
|
|
852
855
|
const { form: E, formItem: q } = Gl(), ne = v(() => !e.filterable || e.multiple || !l.visible), j = v(() => e.disabled || (E == null ? void 0 : E.disabled)), De = v(() => {
|
|
853
856
|
const t = e.multiple ? Array.isArray(e.modelValue) && e.modelValue.length > 0 : e.modelValue !== void 0 && e.modelValue !== null && e.modelValue !== "";
|
|
854
857
|
return e.clearable && !j.value && l.inputHovering && t;
|
|
855
|
-
}),
|
|
858
|
+
}), Z = v(() => e.remote && e.filterable && !e.remoteShowSuffix ? "" : e.suffixIcon), oe = v(() => c.is("reverse", Z.value && l.visible && e.suffixTransition)), qe = v(() => (E == null ? void 0 : E.statusIcon) && (q == null ? void 0 : q.validateState) && Yl[q == null ? void 0 : q.validateState]), ye = v(() => e.remote ? 300 : 0), ie = v(() => e.loading ? e.loadingText || s("el.select.loading") : e.remote && l.query === "" && l.options.size === 0 ? !1 : e.filterable && l.query && l.options.size > 0 && l.filteredOptionsCount === 0 ? e.noMatchText || s("el.select.noMatch") : l.options.size === 0 ? e.noDataText || s("el.select.noData") : null), P = v(() => {
|
|
856
859
|
const t = Array.from(l.options.values()), i = [];
|
|
857
860
|
return O.value.forEach((d) => {
|
|
858
|
-
const
|
|
859
|
-
|
|
861
|
+
const C = t.findIndex((N) => N.currentLabel === d);
|
|
862
|
+
C > -1 && i.push(t[C]);
|
|
860
863
|
}), i.length >= t.length ? i : t;
|
|
861
864
|
}), Ke = v(() => Array.from(l.cachedOptions.values())), re = v(() => {
|
|
862
865
|
const t = P.value.filter((i) => !i.created).some((i) => i.currentLabel === l.query);
|
|
@@ -876,13 +879,13 @@ const Sn = (e, l, o) => {
|
|
|
876
879
|
}), W(() => e.placeholder, (t) => {
|
|
877
880
|
l.cachedPlaceHolder = l.currentPlaceholder = t, e.multiple && Array.isArray(e.modelValue) && e.modelValue.length > 0 && (l.currentPlaceholder = "");
|
|
878
881
|
}), W(() => e.modelValue, (t, i) => {
|
|
879
|
-
e.multiple && (Q(), t && t.length > 0 || p.value && l.query !== "" ? l.currentPlaceholder = "" : l.currentPlaceholder = l.cachedPlaceHolder, e.filterable && !e.reserveKeyword && (l.query = "",
|
|
882
|
+
e.multiple && (Q(), t && t.length > 0 || p.value && l.query !== "" ? l.currentPlaceholder = "" : l.currentPlaceholder = l.cachedPlaceHolder, e.filterable && !e.reserveKeyword && (l.query = "", F(l.query))), U(), e.filterable && !e.multiple && (l.inputLength = 20), !Nl(t, i) && e.validateEvent && (q == null || q.validate("change").catch((d) => il(d)));
|
|
880
883
|
}, {
|
|
881
884
|
flush: "post",
|
|
882
885
|
deep: !0
|
|
883
886
|
}), W(() => l.visible, (t) => {
|
|
884
|
-
var i, d,
|
|
885
|
-
t ? ((d = (i = f.value) == null ? void 0 : i.updatePopper) == null || d.call(i), e.filterable && (l.filteredOptionsCount = l.optionsCount, l.query = e.remote ? "" : l.selectedLabel, (N = (
|
|
887
|
+
var i, d, C, N, H;
|
|
888
|
+
t ? ((d = (i = f.value) == null ? void 0 : i.updatePopper) == null || d.call(i), e.filterable && (l.filteredOptionsCount = l.optionsCount, l.query = e.remote ? "" : l.selectedLabel, (N = (C = b.value) == null ? void 0 : C.focus) == null || N.call(C), e.multiple ? (H = p.value) == null || H.focus() : l.selectedLabel && (l.currentPlaceholder = `${l.selectedLabel}`, l.selectedLabel = ""), F(l.query), !e.multiple && !e.remote && ($.value.query = "", ol($), ol(n)))) : (e.filterable && (Pe(e.filterMethod) && e.filterMethod(""), Pe(e.remoteMethod) && e.remoteMethod("")), l.query = "", l.previousQuery = null, l.selectedLabel = "", l.inputLength = 20, l.menuVisibleOnFocus = !1, Ue(), D(() => {
|
|
886
889
|
p.value && p.value.value === "" && l.selected.length === 0 && (l.currentPlaceholder = l.cachedPlaceHolder);
|
|
887
890
|
}), e.multiple || (l.selected && (e.filterable && e.allowCreate && l.createdSelected && l.createdLabel ? l.selectedLabel = l.createdLabel : l.selectedLabel = l.selected.currentLabel, e.filterable && (l.query = l.selectedLabel)), e.filterable && (l.currentPlaceholder = l.cachedPlaceHolder))), o.emit("visible-change", t);
|
|
888
891
|
}), W(() => l.options.entries(), () => {
|
|
@@ -890,8 +893,8 @@ const Sn = (e, l, o) => {
|
|
|
890
893
|
if (!Al)
|
|
891
894
|
return;
|
|
892
895
|
(i = (t = f.value) == null ? void 0 : t.updatePopper) == null || i.call(t), e.multiple && Q();
|
|
893
|
-
const
|
|
894
|
-
(!e.filterable && !e.defaultFirstOption &&
|
|
896
|
+
const C = ((d = m.value) == null ? void 0 : d.querySelectorAll("input")) || [];
|
|
897
|
+
(!e.filterable && !e.defaultFirstOption && !Lt(e.modelValue) || !Array.from(C).includes(document.activeElement)) && U(), e.defaultFirstOption && (e.filterable || e.remote) && l.filteredOptionsCount && Ce();
|
|
895
898
|
}, {
|
|
896
899
|
flush: "post"
|
|
897
900
|
}), W(() => l.hoverIndex, (t) => {
|
|
@@ -906,10 +909,10 @@ const Sn = (e, l, o) => {
|
|
|
906
909
|
return;
|
|
907
910
|
const d = u.value.$el.querySelector("input");
|
|
908
911
|
T = T || (d.clientHeight > 0 ? d.clientHeight + 2 : 0);
|
|
909
|
-
const
|
|
910
|
-
!(d.offsetParent === null) && (d.style.height = `${(l.selected.length === 0 ? H : Math.max(
|
|
912
|
+
const C = g.value, N = Wt(ae.value || (E == null ? void 0 : E.size)), H = ae.value || N === T || T <= 0 ? N : T;
|
|
913
|
+
!(d.offsetParent === null) && (d.style.height = `${(l.selected.length === 0 ? H : Math.max(C ? C.clientHeight + (C.clientHeight > H ? 6 : 0) : 0, H)) - 2}px`), l.visible && ie.value !== !1 && ((i = (t = f.value) == null ? void 0 : t.updatePopper) == null || i.call(t));
|
|
911
914
|
});
|
|
912
|
-
},
|
|
915
|
+
}, F = async (t) => {
|
|
913
916
|
if (!(l.previousQuery === t || l.isOnComposition)) {
|
|
914
917
|
if (l.previousQuery === null && (Pe(e.filterMethod) || Pe(e.remoteMethod))) {
|
|
915
918
|
l.previousQuery = t;
|
|
@@ -924,45 +927,45 @@ const Sn = (e, l, o) => {
|
|
|
924
927
|
l.inputLength = e.collapseTags ? Math.min(50, i) : i, ue();
|
|
925
928
|
}
|
|
926
929
|
Q();
|
|
927
|
-
}), e.remote && Pe(e.remoteMethod) ? (l.hoverIndex = -1, e.remoteMethod(t)) : Pe(e.filterMethod) ? (e.filterMethod(t), ol(n)) : (l.filteredOptionsCount = l.optionsCount, $.value.query = t, ol($), ol(n)), e.defaultFirstOption && (e.filterable || e.remote) && l.filteredOptionsCount && (await D(),
|
|
930
|
+
}), e.remote && Pe(e.remoteMethod) ? (l.hoverIndex = -1, e.remoteMethod(t)) : Pe(e.filterMethod) ? (e.filterMethod(t), ol(n)) : (l.filteredOptionsCount = l.optionsCount, $.value.query = t, ol($), ol(n)), e.defaultFirstOption && (e.filterable || e.remote) && l.filteredOptionsCount && (await D(), Ce());
|
|
928
931
|
}
|
|
929
932
|
}, ue = () => {
|
|
930
933
|
l.currentPlaceholder !== "" && (l.currentPlaceholder = p.value.value ? "" : l.cachedPlaceHolder);
|
|
931
|
-
},
|
|
932
|
-
const t = P.value.filter((
|
|
934
|
+
}, Ce = () => {
|
|
935
|
+
const t = P.value.filter((C) => C.visible && !C.disabled && !C.states.groupDisabled), i = t.find((C) => C.created), d = t[0];
|
|
933
936
|
l.hoverIndex = Me(P.value, i || d);
|
|
934
937
|
}, U = () => {
|
|
935
938
|
var t;
|
|
936
939
|
if (e.multiple)
|
|
937
940
|
l.selectedLabel = "";
|
|
938
941
|
else {
|
|
939
|
-
const d =
|
|
942
|
+
const d = Se(e.modelValue);
|
|
940
943
|
(t = d.props) != null && t.created ? (l.createdLabel = d.props.value, l.createdSelected = !0) : l.createdSelected = !1, l.selectedLabel = d.currentLabel, l.selected = d, e.filterable && (l.query = l.selectedLabel);
|
|
941
944
|
return;
|
|
942
945
|
}
|
|
943
946
|
const i = [];
|
|
944
947
|
Array.isArray(e.modelValue) && e.modelValue.forEach((d) => {
|
|
945
|
-
i.push(
|
|
948
|
+
i.push(Se(d));
|
|
946
949
|
}), l.selected = i, D(() => {
|
|
947
950
|
Q();
|
|
948
951
|
});
|
|
949
|
-
},
|
|
952
|
+
}, Se = (t) => {
|
|
950
953
|
let i;
|
|
951
|
-
const d =
|
|
954
|
+
const d = Ll(t).toLowerCase() === "object", C = Ll(t).toLowerCase() === "null", N = Ll(t).toLowerCase() === "undefined";
|
|
952
955
|
for (let me = l.cachedOptions.size - 1; me >= 0; me--) {
|
|
953
|
-
const
|
|
954
|
-
if (d ? le(
|
|
956
|
+
const J = Ke.value[me];
|
|
957
|
+
if (d ? le(J.value, e.valueKey) === le(t, e.valueKey) : J.value === t) {
|
|
955
958
|
i = {
|
|
956
959
|
value: t,
|
|
957
|
-
currentLabel:
|
|
958
|
-
isDisabled:
|
|
960
|
+
currentLabel: J.currentLabel,
|
|
961
|
+
isDisabled: J.isDisabled
|
|
959
962
|
};
|
|
960
963
|
break;
|
|
961
964
|
}
|
|
962
965
|
}
|
|
963
966
|
if (i)
|
|
964
967
|
return i;
|
|
965
|
-
const H = d ? t.label : !
|
|
968
|
+
const H = d ? t.label : !C && !N ? t : "", ve = {
|
|
966
969
|
value: t,
|
|
967
970
|
currentLabel: H
|
|
968
971
|
};
|
|
@@ -979,14 +982,14 @@ const Sn = (e, l, o) => {
|
|
|
979
982
|
var t;
|
|
980
983
|
l.inputWidth = (t = u.value) == null ? void 0 : t.$el.offsetWidth;
|
|
981
984
|
}, Xe = () => {
|
|
982
|
-
e.filterable && l.query !== l.selectedLabel && (l.query = l.selectedLabel,
|
|
983
|
-
}, de =
|
|
985
|
+
e.filterable && l.query !== l.selectedLabel && (l.query = l.selectedLabel, F(l.query));
|
|
986
|
+
}, de = Fl(() => {
|
|
984
987
|
Xe();
|
|
985
|
-
}, ye.value), rl =
|
|
986
|
-
|
|
988
|
+
}, ye.value), rl = Fl((t) => {
|
|
989
|
+
F(t.target.value);
|
|
987
990
|
}, ye.value), ce = (t) => {
|
|
988
|
-
|
|
989
|
-
}, G = (t) =>
|
|
991
|
+
Nl(e.modelValue, t) || o.emit(xl, t);
|
|
992
|
+
}, G = (t) => Rt(t, (i) => !l.disabledOptions.has(i)), ke = (t) => {
|
|
990
993
|
if (t.code !== Hl.delete) {
|
|
991
994
|
if (t.target.value.length <= 0 && !Oe()) {
|
|
992
995
|
const i = e.modelValue.slice(), d = G(i);
|
|
@@ -996,11 +999,11 @@ const Sn = (e, l, o) => {
|
|
|
996
999
|
}
|
|
997
1000
|
t.target.value.length === 1 && e.modelValue.length === 0 && (l.currentPlaceholder = l.cachedPlaceHolder);
|
|
998
1001
|
}
|
|
999
|
-
},
|
|
1002
|
+
}, Le = (t, i) => {
|
|
1000
1003
|
const d = l.selected.indexOf(i);
|
|
1001
1004
|
if (d > -1 && !j.value) {
|
|
1002
|
-
const
|
|
1003
|
-
|
|
1005
|
+
const C = e.modelValue.slice();
|
|
1006
|
+
C.splice(d, 1), o.emit(te, C), ce(C), o.emit("remove-tag", i.value);
|
|
1004
1007
|
}
|
|
1005
1008
|
t.stopPropagation(), h();
|
|
1006
1009
|
}, we = (t) => {
|
|
@@ -1013,8 +1016,8 @@ const Sn = (e, l, o) => {
|
|
|
1013
1016
|
}, $e = (t) => {
|
|
1014
1017
|
var i;
|
|
1015
1018
|
if (e.multiple) {
|
|
1016
|
-
const d = (e.modelValue || []).slice(),
|
|
1017
|
-
|
|
1019
|
+
const d = (e.modelValue || []).slice(), C = Me(d, t.value);
|
|
1020
|
+
C > -1 ? d.splice(C, 1) : (e.multipleLimit <= 0 || d.length < e.multipleLimit) && d.push(t.value), o.emit(te, d), ce(d), t.created && (l.query = "", F(""), l.inputLength = 20), e.filterable && ((i = p.value) == null || i.focus());
|
|
1018
1021
|
} else
|
|
1019
1022
|
o.emit(te, t.value), ce(t.value), l.visible = !1;
|
|
1020
1023
|
Ve(), !l.visible && D(() => {
|
|
@@ -1024,45 +1027,45 @@ const Sn = (e, l, o) => {
|
|
|
1024
1027
|
if (!vl(i))
|
|
1025
1028
|
return t.indexOf(i);
|
|
1026
1029
|
const d = e.valueKey;
|
|
1027
|
-
let
|
|
1028
|
-
return t.some((N, H) => pl(le(N, d)) === le(i, d) ? (
|
|
1030
|
+
let C = -1;
|
|
1031
|
+
return t.some((N, H) => pl(le(N, d)) === le(i, d) ? (C = H, !0) : !1), C;
|
|
1029
1032
|
}, Ve = () => {
|
|
1030
1033
|
const t = p.value || u.value;
|
|
1031
1034
|
t && (t == null || t.focus());
|
|
1032
1035
|
}, pe = (t) => {
|
|
1033
|
-
var i, d,
|
|
1036
|
+
var i, d, C, N, H;
|
|
1034
1037
|
const ve = Array.isArray(t) ? t[0] : t;
|
|
1035
1038
|
let me = null;
|
|
1036
1039
|
if (ve != null && ve.value) {
|
|
1037
|
-
const
|
|
1038
|
-
|
|
1040
|
+
const J = P.value.filter((R) => R.value === ve.value);
|
|
1041
|
+
J.length > 0 && (me = J[0].$el);
|
|
1039
1042
|
}
|
|
1040
1043
|
if (f.value && me) {
|
|
1041
|
-
const
|
|
1042
|
-
|
|
1044
|
+
const J = (N = (C = (d = (i = f.value) == null ? void 0 : i.popperRef) == null ? void 0 : d.contentRef) == null ? void 0 : C.querySelector) == null ? void 0 : N.call(C, `.${c.be("dropdown", "wrap")}`);
|
|
1045
|
+
J && zt(J, me);
|
|
1043
1046
|
}
|
|
1044
|
-
(H =
|
|
1045
|
-
},
|
|
1047
|
+
(H = B.value) == null || H.handleScroll();
|
|
1048
|
+
}, Ze = (t) => {
|
|
1046
1049
|
l.optionsCount++, l.filteredOptionsCount++, l.options.set(t.value, t), l.cachedOptions.set(t.value, t), t.disabled && l.disabledOptions.set(t.value, t);
|
|
1047
|
-
},
|
|
1050
|
+
}, Je = (t, i) => {
|
|
1048
1051
|
l.options.get(t) === i && (l.optionsCount--, l.filteredOptionsCount--, l.options.delete(t));
|
|
1049
1052
|
}, xe = (t) => {
|
|
1050
1053
|
t.code !== Hl.backspace && Oe(!1), l.inputLength = p.value.value.length * 15 + 20, Q();
|
|
1051
1054
|
}, Oe = (t) => {
|
|
1052
1055
|
if (!Array.isArray(l.selected))
|
|
1053
1056
|
return;
|
|
1054
|
-
const i = G(l.selected.map((
|
|
1057
|
+
const i = G(l.selected.map((C) => C.value)), d = l.selected[i];
|
|
1055
1058
|
if (d)
|
|
1056
1059
|
return t === !0 || t === !1 ? (d.hitState = t, t) : (d.hitState = !d.hitState, d.hitState);
|
|
1057
1060
|
}, _e = (t) => {
|
|
1058
1061
|
const i = t.target.value;
|
|
1059
1062
|
if (t.type === "compositionend")
|
|
1060
|
-
l.isOnComposition = !1, D(() =>
|
|
1063
|
+
l.isOnComposition = !1, D(() => F(i));
|
|
1061
1064
|
else {
|
|
1062
1065
|
const d = i[i.length - 1] || "";
|
|
1063
1066
|
l.isOnComposition = !_l(d);
|
|
1064
1067
|
}
|
|
1065
|
-
},
|
|
1068
|
+
}, Be = () => {
|
|
1066
1069
|
D(() => pe(l.selected));
|
|
1067
1070
|
}, r = (t) => {
|
|
1068
1071
|
l.focused || ((e.automaticDropdown || e.filterable) && (e.filterable && !l.visible && (l.menuVisibleOnFocus = !0), l.visible = !0), l.focused = !0, o.emit("focus", t));
|
|
@@ -1073,8 +1076,8 @@ const Sn = (e, l, o) => {
|
|
|
1073
1076
|
var t, i, d;
|
|
1074
1077
|
l.visible = !1, (t = u.value) == null || t.blur(), (d = (i = b.value) == null ? void 0 : i.blur) == null || d.call(i);
|
|
1075
1078
|
}, fe = (t) => {
|
|
1076
|
-
var i, d,
|
|
1077
|
-
(i = f.value) != null && i.isFocusInsideContent(t) || (d = w.value) != null && d.isFocusInsideContent(t) || (
|
|
1079
|
+
var i, d, C;
|
|
1080
|
+
(i = f.value) != null && i.isFocusInsideContent(t) || (d = w.value) != null && d.isFocusInsideContent(t) || (C = m.value) != null && C.contains(t.relatedTarget) || (l.visible && ul(), l.focused = !1, o.emit("blur", t));
|
|
1078
1081
|
}, Ie = (t) => {
|
|
1079
1082
|
we(t);
|
|
1080
1083
|
}, ul = () => {
|
|
@@ -1085,7 +1088,7 @@ const Sn = (e, l, o) => {
|
|
|
1085
1088
|
t && !l.mouseEnter || j.value || (l.menuVisibleOnFocus ? l.menuVisibleOnFocus = !1 : (!f.value || !f.value.isFocusInsideContent()) && (l.visible = !l.visible), h());
|
|
1086
1089
|
}, dl = () => {
|
|
1087
1090
|
l.visible ? P.value[l.hoverIndex] && $e(P.value[l.hoverIndex]) : el();
|
|
1088
|
-
}, ll = (t) => vl(t.value) ? le(t.value, e.valueKey) : t.value, tl = v(() => P.value.filter((t) => t.visible).every((t) => t.disabled)),
|
|
1091
|
+
}, ll = (t) => vl(t.value) ? le(t.value, e.valueKey) : t.value, tl = v(() => P.value.filter((t) => t.visible).every((t) => t.disabled)), Cl = v(() => e.multiple ? l.selected.slice(0, e.maxCollapseTags) : []), Sl = v(() => e.multiple ? l.selected.slice(e.maxCollapseTags) : []), nl = (t) => {
|
|
1089
1092
|
if (!l.visible) {
|
|
1090
1093
|
l.visible = !0;
|
|
1091
1094
|
return;
|
|
@@ -1099,9 +1102,9 @@ const Sn = (e, l, o) => {
|
|
|
1099
1102
|
l.mouseEnter = !0;
|
|
1100
1103
|
}, Ol = () => {
|
|
1101
1104
|
l.mouseEnter = !1;
|
|
1102
|
-
},
|
|
1103
|
-
var d,
|
|
1104
|
-
|
|
1105
|
+
}, Fe = (t, i) => {
|
|
1106
|
+
var d, C;
|
|
1107
|
+
Le(t, i), (C = (d = w.value) == null ? void 0 : d.updatePopper) == null || C.call(d);
|
|
1105
1108
|
}, Il = v(() => ({
|
|
1106
1109
|
maxWidth: `${a(l.inputWidth) - 32 - (qe.value ? 22 : 0)}px`,
|
|
1107
1110
|
width: "100%"
|
|
@@ -1113,15 +1116,15 @@ const Sn = (e, l, o) => {
|
|
|
1113
1116
|
handleResize: Ge,
|
|
1114
1117
|
debouncedOnInputChange: de,
|
|
1115
1118
|
debouncedQueryChange: rl,
|
|
1116
|
-
deletePrevTag:
|
|
1117
|
-
deleteTag:
|
|
1119
|
+
deletePrevTag: ke,
|
|
1120
|
+
deleteTag: Le,
|
|
1118
1121
|
deleteSelected: we,
|
|
1119
1122
|
handleOptionSelect: $e,
|
|
1120
1123
|
scrollToOption: pe,
|
|
1121
1124
|
readonly: ne,
|
|
1122
1125
|
resetInputHeight: Q,
|
|
1123
1126
|
showClose: De,
|
|
1124
|
-
iconComponent:
|
|
1127
|
+
iconComponent: Z,
|
|
1125
1128
|
iconReverse: oe,
|
|
1126
1129
|
showNewOption: re,
|
|
1127
1130
|
collapseTagSize: je,
|
|
@@ -1132,9 +1135,9 @@ const Sn = (e, l, o) => {
|
|
|
1132
1135
|
toggleLastOptionHitState: Oe,
|
|
1133
1136
|
resetInputState: xe,
|
|
1134
1137
|
handleComposition: _e,
|
|
1135
|
-
onOptionCreate:
|
|
1136
|
-
onOptionDestroy:
|
|
1137
|
-
handleMenuEnter:
|
|
1138
|
+
onOptionCreate: Ze,
|
|
1139
|
+
onOptionDestroy: Je,
|
|
1140
|
+
handleMenuEnter: Be,
|
|
1138
1141
|
handleFocus: r,
|
|
1139
1142
|
focus: h,
|
|
1140
1143
|
blur: M,
|
|
@@ -1146,12 +1149,12 @@ const Sn = (e, l, o) => {
|
|
|
1146
1149
|
selectOption: dl,
|
|
1147
1150
|
getValueKey: ll,
|
|
1148
1151
|
navigateOptions: nl,
|
|
1149
|
-
handleDeleteTooltipTag:
|
|
1152
|
+
handleDeleteTooltipTag: Fe,
|
|
1150
1153
|
dropMenuVisible: Qe,
|
|
1151
1154
|
queryChange: $,
|
|
1152
1155
|
groupQueryChange: n,
|
|
1153
|
-
showTagList:
|
|
1154
|
-
collapseTagList:
|
|
1156
|
+
showTagList: Cl,
|
|
1157
|
+
collapseTagList: Sl,
|
|
1155
1158
|
selectTagsStyle: Il,
|
|
1156
1159
|
reference: u,
|
|
1157
1160
|
input: p,
|
|
@@ -1160,12 +1163,12 @@ const Sn = (e, l, o) => {
|
|
|
1160
1163
|
tagTooltipRef: w,
|
|
1161
1164
|
tags: g,
|
|
1162
1165
|
selectWrapper: m,
|
|
1163
|
-
scrollbar:
|
|
1166
|
+
scrollbar: B,
|
|
1164
1167
|
handleMouseEnter: wl,
|
|
1165
1168
|
handleMouseLeave: Ol
|
|
1166
1169
|
};
|
|
1167
1170
|
};
|
|
1168
|
-
var
|
|
1171
|
+
var Sn = ge({
|
|
1169
1172
|
name: "ElOptions",
|
|
1170
1173
|
emits: ["update-options"],
|
|
1171
1174
|
setup(e, { slots: l, emit: o }) {
|
|
@@ -1183,8 +1186,8 @@ var Cn = ge({
|
|
|
1183
1186
|
const b = (u = l.default) == null ? void 0 : u.call(l), f = [];
|
|
1184
1187
|
function w(g) {
|
|
1185
1188
|
Array.isArray(g) && g.forEach((m) => {
|
|
1186
|
-
var
|
|
1187
|
-
const O = (
|
|
1189
|
+
var B, A, $, n;
|
|
1190
|
+
const O = (B = (m == null ? void 0 : m.type) || {}) == null ? void 0 : B.name;
|
|
1188
1191
|
O === "ElOptionGroup" ? w(!al(m.children) && !Array.isArray(m.children) && Pe((A = m.children) == null ? void 0 : A.default) ? ($ = m.children) == null ? void 0 : $.default() : m.children) : O === "ElOption" ? f.push((n = m.props) == null ? void 0 : n.label) : Array.isArray(m.children) && w(m.children);
|
|
1189
1192
|
});
|
|
1190
1193
|
}
|
|
@@ -1198,8 +1201,8 @@ const jl = "ElSelect", wn = ge({
|
|
|
1198
1201
|
components: {
|
|
1199
1202
|
ElInput: sn,
|
|
1200
1203
|
ElSelectMenu: gn,
|
|
1201
|
-
ElOption:
|
|
1202
|
-
ElOptions:
|
|
1204
|
+
ElOption: Bl,
|
|
1205
|
+
ElOptions: Sn,
|
|
1203
1206
|
ElTag: pn,
|
|
1204
1207
|
ElScrollbar: ft,
|
|
1205
1208
|
ElTooltip: vt,
|
|
@@ -1220,7 +1223,7 @@ const jl = "ElSelect", wn = ge({
|
|
|
1220
1223
|
automaticDropdown: Boolean,
|
|
1221
1224
|
size: {
|
|
1222
1225
|
type: String,
|
|
1223
|
-
validator:
|
|
1226
|
+
validator: qt
|
|
1224
1227
|
},
|
|
1225
1228
|
effect: {
|
|
1226
1229
|
type: String,
|
|
@@ -1280,7 +1283,7 @@ const jl = "ElSelect", wn = ge({
|
|
|
1280
1283
|
fitInputWidth: Boolean,
|
|
1281
1284
|
suffixIcon: {
|
|
1282
1285
|
type: fl,
|
|
1283
|
-
default:
|
|
1286
|
+
default: Et
|
|
1284
1287
|
},
|
|
1285
1288
|
tagType: { ...et.type, default: "info" },
|
|
1286
1289
|
validateEvent: {
|
|
@@ -1304,7 +1307,7 @@ const jl = "ElSelect", wn = ge({
|
|
|
1304
1307
|
},
|
|
1305
1308
|
emits: [
|
|
1306
1309
|
te,
|
|
1307
|
-
|
|
1310
|
+
xl,
|
|
1308
1311
|
"remove-tag",
|
|
1309
1312
|
"clear",
|
|
1310
1313
|
"visible-change",
|
|
@@ -1319,7 +1322,7 @@ const jl = "ElSelect", wn = ge({
|
|
|
1319
1322
|
readonly: w,
|
|
1320
1323
|
handleResize: g,
|
|
1321
1324
|
collapseTagSize: m,
|
|
1322
|
-
debouncedOnInputChange:
|
|
1325
|
+
debouncedOnInputChange: B,
|
|
1323
1326
|
debouncedQueryChange: A,
|
|
1324
1327
|
deletePrevTag: $,
|
|
1325
1328
|
deleteTag: n,
|
|
@@ -1330,7 +1333,7 @@ const jl = "ElSelect", wn = ge({
|
|
|
1330
1333
|
resetInputHeight: ne,
|
|
1331
1334
|
managePlaceholder: j,
|
|
1332
1335
|
showClose: De,
|
|
1333
|
-
selectDisabled:
|
|
1336
|
+
selectDisabled: Z,
|
|
1334
1337
|
iconComponent: oe,
|
|
1335
1338
|
iconReverse: qe,
|
|
1336
1339
|
showNewOption: ye,
|
|
@@ -1342,11 +1345,11 @@ const jl = "ElSelect", wn = ge({
|
|
|
1342
1345
|
onOptionDestroy: je,
|
|
1343
1346
|
handleMenuEnter: Qe,
|
|
1344
1347
|
handleFocus: Q,
|
|
1345
|
-
focus:
|
|
1348
|
+
focus: F,
|
|
1346
1349
|
blur: ue,
|
|
1347
|
-
handleBlur:
|
|
1350
|
+
handleBlur: Ce,
|
|
1348
1351
|
handleClearClick: U,
|
|
1349
|
-
handleClose:
|
|
1352
|
+
handleClose: Se,
|
|
1350
1353
|
handleKeydownEscape: Ue,
|
|
1351
1354
|
toggleMenu: Ge,
|
|
1352
1355
|
selectOption: Ye,
|
|
@@ -1355,21 +1358,21 @@ const jl = "ElSelect", wn = ge({
|
|
|
1355
1358
|
handleDeleteTooltipTag: rl,
|
|
1356
1359
|
dropMenuVisible: ce,
|
|
1357
1360
|
reference: G,
|
|
1358
|
-
input:
|
|
1359
|
-
iOSInput:
|
|
1361
|
+
input: ke,
|
|
1362
|
+
iOSInput: Le,
|
|
1360
1363
|
tooltipRef: we,
|
|
1361
1364
|
tagTooltipRef: $e,
|
|
1362
1365
|
tags: Me,
|
|
1363
1366
|
selectWrapper: Ve,
|
|
1364
1367
|
scrollbar: pe,
|
|
1365
|
-
queryChange:
|
|
1366
|
-
groupQueryChange:
|
|
1368
|
+
queryChange: Ze,
|
|
1369
|
+
groupQueryChange: Je,
|
|
1367
1370
|
handleMouseEnter: xe,
|
|
1368
1371
|
handleMouseLeave: Oe,
|
|
1369
1372
|
showTagList: _e,
|
|
1370
|
-
collapseTagList:
|
|
1373
|
+
collapseTagList: Be,
|
|
1371
1374
|
selectTagsStyle: r
|
|
1372
|
-
} =
|
|
1375
|
+
} = Cn(e, u, l), {
|
|
1373
1376
|
inputWidth: h,
|
|
1374
1377
|
selected: M,
|
|
1375
1378
|
inputLength: fe,
|
|
@@ -1380,33 +1383,33 @@ const jl = "ElSelect", wn = ge({
|
|
|
1380
1383
|
query: dl,
|
|
1381
1384
|
inputHovering: ll,
|
|
1382
1385
|
currentPlaceholder: tl,
|
|
1383
|
-
menuVisibleOnFocus:
|
|
1384
|
-
isOnComposition:
|
|
1386
|
+
menuVisibleOnFocus: Cl,
|
|
1387
|
+
isOnComposition: Sl,
|
|
1385
1388
|
options: nl,
|
|
1386
1389
|
cachedOptions: wl,
|
|
1387
1390
|
optionsCount: Ol,
|
|
1388
|
-
prefixWidth:
|
|
1391
|
+
prefixWidth: Fe
|
|
1389
1392
|
} = Vl(u), Il = v(() => {
|
|
1390
1393
|
const R = [o.b()], ze = a(f);
|
|
1391
1394
|
return ze && R.push(o.m(ze)), e.disabled && R.push(o.m("disabled")), R;
|
|
1392
1395
|
}), t = v(() => [
|
|
1393
1396
|
o.e("tags"),
|
|
1394
|
-
o.is("disabled", a(
|
|
1397
|
+
o.is("disabled", a(Z))
|
|
1395
1398
|
]), i = v(() => [
|
|
1396
1399
|
o.b("tags-wrapper"),
|
|
1397
|
-
{ "has-prefix": a(
|
|
1400
|
+
{ "has-prefix": a(Fe) && a(M).length }
|
|
1398
1401
|
]), d = v(() => [
|
|
1399
1402
|
o.e("input"),
|
|
1400
1403
|
o.is(a(f)),
|
|
1401
|
-
o.is("disabled", a(
|
|
1402
|
-
]),
|
|
1404
|
+
o.is("disabled", a(Z))
|
|
1405
|
+
]), C = v(() => [
|
|
1403
1406
|
o.e("input"),
|
|
1404
1407
|
o.is(a(f)),
|
|
1405
1408
|
o.em("input", "iOS")
|
|
1406
1409
|
]), N = v(() => [
|
|
1407
1410
|
o.is("empty", !e.allowCreate && !!a(dl) && a(Ie) === 0)
|
|
1408
1411
|
]), H = v(() => ({ maxWidth: `${a(h) > 123 ? a(h) - 123 : a(h) - 75}px` })), ve = v(() => ({
|
|
1409
|
-
marginLeft: `${a(
|
|
1412
|
+
marginLeft: `${a(Fe)}px`,
|
|
1410
1413
|
flexGrow: 1,
|
|
1411
1414
|
width: `${a(fe) / (a(h) - 32)}%`,
|
|
1412
1415
|
maxWidth: `${a(h) - 42}px`
|
|
@@ -1425,14 +1428,14 @@ const jl = "ElSelect", wn = ge({
|
|
|
1425
1428
|
selectWrapper: Ve,
|
|
1426
1429
|
selected: M,
|
|
1427
1430
|
setSelected: q,
|
|
1428
|
-
queryChange:
|
|
1429
|
-
groupQueryChange:
|
|
1431
|
+
queryChange: Ze,
|
|
1432
|
+
groupQueryChange: Je
|
|
1430
1433
|
})), ml(() => {
|
|
1431
1434
|
u.cachedPlaceHolder = tl.value = e.placeholder || (() => c("el.select.placeholder")), e.multiple && Array.isArray(e.modelValue) && e.modelValue.length > 0 && (tl.value = ""), zl(Ve, g), e.remote && e.multiple && ne(), D(() => {
|
|
1432
1435
|
const R = G.value && G.value.$el;
|
|
1433
1436
|
if (R && (h.value = R.getBoundingClientRect().width, l.slots.prefix)) {
|
|
1434
1437
|
const ze = R.querySelector(`.${s.e("prefix")}`);
|
|
1435
|
-
|
|
1438
|
+
Fe.value = Math.max(ze.getBoundingClientRect().width + 11, 30);
|
|
1436
1439
|
}
|
|
1437
1440
|
}), q();
|
|
1438
1441
|
}), e.multiple && !Array.isArray(e.modelValue) && l.emit(te, []), !e.multiple && Array.isArray(e.modelValue) && l.emit(te, "");
|
|
@@ -1441,16 +1444,16 @@ const jl = "ElSelect", wn = ge({
|
|
|
1441
1444
|
return (ze = (R = we.value) == null ? void 0 : R.popperRef) == null ? void 0 : ze.contentRef;
|
|
1442
1445
|
});
|
|
1443
1446
|
return {
|
|
1444
|
-
isIOS:
|
|
1447
|
+
isIOS: $t,
|
|
1445
1448
|
onOptionsRendered: (R) => {
|
|
1446
1449
|
p.value = R;
|
|
1447
1450
|
},
|
|
1448
|
-
prefixWidth:
|
|
1451
|
+
prefixWidth: Fe,
|
|
1449
1452
|
selectSize: f,
|
|
1450
1453
|
readonly: w,
|
|
1451
1454
|
handleResize: g,
|
|
1452
1455
|
collapseTagSize: m,
|
|
1453
|
-
debouncedOnInputChange:
|
|
1456
|
+
debouncedOnInputChange: B,
|
|
1454
1457
|
debouncedQueryChange: A,
|
|
1455
1458
|
deletePrevTag: $,
|
|
1456
1459
|
deleteTag: n,
|
|
@@ -1468,13 +1471,13 @@ const jl = "ElSelect", wn = ge({
|
|
|
1468
1471
|
query: dl,
|
|
1469
1472
|
inputHovering: ll,
|
|
1470
1473
|
currentPlaceholder: tl,
|
|
1471
|
-
menuVisibleOnFocus:
|
|
1472
|
-
isOnComposition:
|
|
1474
|
+
menuVisibleOnFocus: Cl,
|
|
1475
|
+
isOnComposition: Sl,
|
|
1473
1476
|
options: nl,
|
|
1474
1477
|
resetInputHeight: ne,
|
|
1475
1478
|
managePlaceholder: j,
|
|
1476
1479
|
showClose: De,
|
|
1477
|
-
selectDisabled:
|
|
1480
|
+
selectDisabled: Z,
|
|
1478
1481
|
iconComponent: oe,
|
|
1479
1482
|
iconReverse: qe,
|
|
1480
1483
|
showNewOption: ye,
|
|
@@ -1484,11 +1487,11 @@ const jl = "ElSelect", wn = ge({
|
|
|
1484
1487
|
handleComposition: re,
|
|
1485
1488
|
handleMenuEnter: Qe,
|
|
1486
1489
|
handleFocus: Q,
|
|
1487
|
-
focus:
|
|
1490
|
+
focus: F,
|
|
1488
1491
|
blur: ue,
|
|
1489
|
-
handleBlur:
|
|
1492
|
+
handleBlur: Ce,
|
|
1490
1493
|
handleClearClick: U,
|
|
1491
|
-
handleClose:
|
|
1494
|
+
handleClose: Se,
|
|
1492
1495
|
handleKeydownEscape: Ue,
|
|
1493
1496
|
toggleMenu: Ge,
|
|
1494
1497
|
selectOption: Ye,
|
|
@@ -1496,8 +1499,8 @@ const jl = "ElSelect", wn = ge({
|
|
|
1496
1499
|
navigateOptions: de,
|
|
1497
1500
|
dropMenuVisible: ce,
|
|
1498
1501
|
reference: G,
|
|
1499
|
-
input:
|
|
1500
|
-
iOSInput:
|
|
1502
|
+
input: ke,
|
|
1503
|
+
iOSInput: Le,
|
|
1501
1504
|
tooltipRef: we,
|
|
1502
1505
|
popperPaneRef: me,
|
|
1503
1506
|
tags: Me,
|
|
@@ -1507,7 +1510,7 @@ const jl = "ElSelect", wn = ge({
|
|
|
1507
1510
|
tagsKls: t,
|
|
1508
1511
|
tagWrapperKls: i,
|
|
1509
1512
|
inputKls: d,
|
|
1510
|
-
iOSInputKls:
|
|
1513
|
+
iOSInputKls: C,
|
|
1511
1514
|
scrollbarKls: N,
|
|
1512
1515
|
selectTagsStyle: r,
|
|
1513
1516
|
nsSelect: o,
|
|
@@ -1516,16 +1519,16 @@ const jl = "ElSelect", wn = ge({
|
|
|
1516
1519
|
handleMouseEnter: xe,
|
|
1517
1520
|
handleMouseLeave: Oe,
|
|
1518
1521
|
showTagList: _e,
|
|
1519
|
-
collapseTagList:
|
|
1522
|
+
collapseTagList: Be,
|
|
1520
1523
|
tagTooltipRef: $e
|
|
1521
1524
|
};
|
|
1522
1525
|
}
|
|
1523
1526
|
}), On = ["disabled", "autocomplete", "aria-label"], In = ["disabled"], En = { style: { height: "100%", display: "flex", "justify-content": "center", "align-items": "center" } };
|
|
1524
1527
|
function Tn(e, l, o, s, c, u) {
|
|
1525
|
-
const p = Ee("el-tag"), b = Ee("el-tooltip"), f = Ee("el-icon"), w = Ee("el-input"), g = Ee("el-option"), m = Ee("el-options"),
|
|
1526
|
-
return He((y(),
|
|
1528
|
+
const p = Ee("el-tag"), b = Ee("el-tooltip"), f = Ee("el-icon"), w = Ee("el-input"), g = Ee("el-option"), m = Ee("el-options"), B = Ee("el-scrollbar"), A = Ee("el-select-menu"), $ = st("click-outside");
|
|
1529
|
+
return He((y(), L("div", {
|
|
1527
1530
|
ref: "selectWrapper",
|
|
1528
|
-
class:
|
|
1531
|
+
class: S(e.wrapperKls),
|
|
1529
1532
|
onMouseenter: l[22] || (l[22] = (...n) => e.handleMouseEnter && e.handleMouseEnter(...n)),
|
|
1530
1533
|
onMouseleave: l[23] || (l[23] = (...n) => e.handleMouseLeave && e.handleMouseLeave(...n)),
|
|
1531
1534
|
onClick: l[24] || (l[24] = ee((...n) => e.toggleMenu && e.toggleMenu(...n), ["stop"]))
|
|
@@ -1547,17 +1550,17 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1547
1550
|
persistent: e.persistent,
|
|
1548
1551
|
onShow: e.handleMenuEnter
|
|
1549
1552
|
}, {
|
|
1550
|
-
default:
|
|
1553
|
+
default: k(() => [
|
|
1551
1554
|
z("div", {
|
|
1552
1555
|
class: "select-trigger",
|
|
1553
1556
|
onMouseenter: l[20] || (l[20] = (n) => e.inputHovering = !0),
|
|
1554
1557
|
onMouseleave: l[21] || (l[21] = (n) => e.inputHovering = !1)
|
|
1555
1558
|
}, [
|
|
1556
|
-
e.multiple ? (y(),
|
|
1559
|
+
e.multiple ? (y(), L("div", {
|
|
1557
1560
|
key: 0,
|
|
1558
1561
|
ref: "tags",
|
|
1559
1562
|
tabindex: "-1",
|
|
1560
|
-
class:
|
|
1563
|
+
class: S(e.tagsKls),
|
|
1561
1564
|
style: se(e.selectTagsStyle),
|
|
1562
1565
|
onClick: l[15] || (l[15] = (...n) => e.focus && e.focus(...n))
|
|
1563
1566
|
}, [
|
|
@@ -1565,11 +1568,11 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1565
1568
|
key: 0,
|
|
1566
1569
|
onAfterLeave: e.resetInputHeight
|
|
1567
1570
|
}, {
|
|
1568
|
-
default:
|
|
1571
|
+
default: k(() => [
|
|
1569
1572
|
z("span", {
|
|
1570
|
-
class:
|
|
1573
|
+
class: S(e.tagWrapperKls)
|
|
1571
1574
|
}, [
|
|
1572
|
-
(y(!0),
|
|
1575
|
+
(y(!0), L(Ae, null, Tl(e.showTagList, (n) => (y(), V(p, {
|
|
1573
1576
|
key: e.getValueKey(n),
|
|
1574
1577
|
closable: !e.selectDisabled && !n.isDisabled,
|
|
1575
1578
|
size: e.collapseTagSize,
|
|
@@ -1578,9 +1581,9 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1578
1581
|
"disable-transitions": "",
|
|
1579
1582
|
onClose: (O) => e.deleteTag(O, n)
|
|
1580
1583
|
}, {
|
|
1581
|
-
default:
|
|
1584
|
+
default: k(() => [
|
|
1582
1585
|
z("span", {
|
|
1583
|
-
class:
|
|
1586
|
+
class: S(e.nsSelect.e("tags-text")),
|
|
1584
1587
|
style: se(e.tagTextStyle)
|
|
1585
1588
|
}, Y(n.currentLabel), 7)
|
|
1586
1589
|
]),
|
|
@@ -1593,7 +1596,7 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1593
1596
|
type: e.tagType,
|
|
1594
1597
|
"disable-transitions": ""
|
|
1595
1598
|
}, {
|
|
1596
|
-
default:
|
|
1599
|
+
default: k(() => [
|
|
1597
1600
|
e.collapseTagsTooltip ? (y(), V(b, {
|
|
1598
1601
|
key: 0,
|
|
1599
1602
|
ref: "tagTooltipRef",
|
|
@@ -1603,18 +1606,18 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1603
1606
|
placement: "bottom",
|
|
1604
1607
|
teleported: e.teleported
|
|
1605
1608
|
}, {
|
|
1606
|
-
default:
|
|
1609
|
+
default: k(() => [
|
|
1607
1610
|
z("span", {
|
|
1608
|
-
class:
|
|
1611
|
+
class: S(e.nsSelect.e("tags-text"))
|
|
1609
1612
|
}, "+ " + Y(e.selected.length - e.maxCollapseTags), 3)
|
|
1610
1613
|
]),
|
|
1611
|
-
content:
|
|
1614
|
+
content: k(() => [
|
|
1612
1615
|
z("div", {
|
|
1613
|
-
class:
|
|
1616
|
+
class: S(e.nsSelect.e("collapse-tags"))
|
|
1614
1617
|
}, [
|
|
1615
|
-
(y(!0),
|
|
1618
|
+
(y(!0), L(Ae, null, Tl(e.collapseTagList, (n) => (y(), L("div", {
|
|
1616
1619
|
key: e.getValueKey(n),
|
|
1617
|
-
class:
|
|
1620
|
+
class: S(e.nsSelect.e("collapse-tag"))
|
|
1618
1621
|
}, [
|
|
1619
1622
|
he(p, {
|
|
1620
1623
|
class: "in-tooltip",
|
|
@@ -1626,9 +1629,9 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1626
1629
|
style: { margin: "2px" },
|
|
1627
1630
|
onClose: (O) => e.handleDeleteTooltipTag(O, n)
|
|
1628
1631
|
}, {
|
|
1629
|
-
default:
|
|
1632
|
+
default: k(() => [
|
|
1630
1633
|
z("span", {
|
|
1631
|
-
class:
|
|
1634
|
+
class: S(e.nsSelect.e("tags-text")),
|
|
1632
1635
|
style: se({
|
|
1633
1636
|
maxWidth: e.inputWidth - 75 + "px"
|
|
1634
1637
|
})
|
|
@@ -1640,9 +1643,9 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1640
1643
|
], 2)
|
|
1641
1644
|
]),
|
|
1642
1645
|
_: 1
|
|
1643
|
-
}, 8, ["disabled", "effect", "teleported"])) : (y(),
|
|
1646
|
+
}, 8, ["disabled", "effect", "teleported"])) : (y(), L("span", {
|
|
1644
1647
|
key: 1,
|
|
1645
|
-
class:
|
|
1648
|
+
class: S(e.nsSelect.e("tags-text"))
|
|
1646
1649
|
}, "+ " + Y(e.selected.length - e.maxCollapseTags), 3))
|
|
1647
1650
|
]),
|
|
1648
1651
|
_: 1
|
|
@@ -1655,12 +1658,12 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1655
1658
|
key: 1,
|
|
1656
1659
|
onAfterLeave: e.resetInputHeight
|
|
1657
1660
|
}, {
|
|
1658
|
-
default:
|
|
1661
|
+
default: k(() => [
|
|
1659
1662
|
z("span", {
|
|
1660
|
-
class:
|
|
1663
|
+
class: S(e.tagWrapperKls),
|
|
1661
1664
|
style: se(e.prefixWidth && e.selected.length ? { marginLeft: `${e.prefixWidth}px` } : "")
|
|
1662
1665
|
}, [
|
|
1663
|
-
(y(!0),
|
|
1666
|
+
(y(!0), L(Ae, null, Tl(e.selected, (n) => (y(), V(p, {
|
|
1664
1667
|
key: e.getValueKey(n),
|
|
1665
1668
|
closable: !e.selectDisabled && !n.isDisabled,
|
|
1666
1669
|
size: e.collapseTagSize,
|
|
@@ -1669,9 +1672,9 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1669
1672
|
"disable-transitions": "",
|
|
1670
1673
|
onClose: (O) => e.deleteTag(O, n)
|
|
1671
1674
|
}, {
|
|
1672
|
-
default:
|
|
1675
|
+
default: k(() => [
|
|
1673
1676
|
z("span", {
|
|
1674
|
-
class:
|
|
1677
|
+
class: S(e.nsSelect.e("tags-text")),
|
|
1675
1678
|
style: se({ maxWidth: e.inputWidth - 75 + "px" })
|
|
1676
1679
|
}, Y(n.currentLabel), 7)
|
|
1677
1680
|
]),
|
|
@@ -1681,12 +1684,12 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1681
1684
|
]),
|
|
1682
1685
|
_: 1
|
|
1683
1686
|
}, 8, ["onAfterLeave"])),
|
|
1684
|
-
e.filterable && !e.selectDisabled ? He((y(),
|
|
1687
|
+
e.filterable && !e.selectDisabled ? He((y(), L("input", {
|
|
1685
1688
|
key: 2,
|
|
1686
1689
|
ref: "input",
|
|
1687
1690
|
"onUpdate:modelValue": l[0] || (l[0] = (n) => e.query = n),
|
|
1688
1691
|
type: "text",
|
|
1689
|
-
class:
|
|
1692
|
+
class: S(e.inputKls),
|
|
1690
1693
|
disabled: e.selectDisabled,
|
|
1691
1694
|
autocomplete: e.autocomplete,
|
|
1692
1695
|
style: se(e.inputStyle),
|
|
@@ -1712,10 +1715,10 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1712
1715
|
]) : I("v-if", !0)
|
|
1713
1716
|
], 6)) : I("v-if", !0),
|
|
1714
1717
|
I(" fix: https://github.com/element-plus/element-plus/issues/11415 "),
|
|
1715
|
-
e.isIOS && !e.multiple && e.filterable && e.readonly ? (y(),
|
|
1718
|
+
e.isIOS && !e.multiple && e.filterable && e.readonly ? (y(), L("input", {
|
|
1716
1719
|
key: 1,
|
|
1717
1720
|
ref: "iOSInput",
|
|
1718
|
-
class:
|
|
1721
|
+
class: S(e.iOSInputKls),
|
|
1719
1722
|
disabled: e.selectDisabled,
|
|
1720
1723
|
type: "text"
|
|
1721
1724
|
}, null, 10, In)) : I("v-if", !0),
|
|
@@ -1732,7 +1735,7 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1732
1735
|
disabled: e.selectDisabled,
|
|
1733
1736
|
readonly: e.readonly,
|
|
1734
1737
|
"validate-event": !1,
|
|
1735
|
-
class:
|
|
1738
|
+
class: S([e.nsSelect.is("focus", e.visible)]),
|
|
1736
1739
|
tabindex: e.multiple && e.filterable ? -1 : void 0,
|
|
1737
1740
|
label: e.ariaLabel,
|
|
1738
1741
|
onFocus: e.handleFocus,
|
|
@@ -1750,22 +1753,22 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1750
1753
|
l[19] || (l[19] = x((n) => e.visible = !1, ["tab"]))
|
|
1751
1754
|
]
|
|
1752
1755
|
}, ut({
|
|
1753
|
-
suffix:
|
|
1756
|
+
suffix: k(() => [
|
|
1754
1757
|
e.iconComponent && !e.showClose ? (y(), V(f, {
|
|
1755
1758
|
key: 0,
|
|
1756
|
-
class:
|
|
1759
|
+
class: S([e.nsSelect.e("caret"), e.nsSelect.e("icon"), e.iconReverse])
|
|
1757
1760
|
}, {
|
|
1758
|
-
default:
|
|
1761
|
+
default: k(() => [
|
|
1759
1762
|
(y(), V(Ne(e.iconComponent)))
|
|
1760
1763
|
]),
|
|
1761
1764
|
_: 1
|
|
1762
1765
|
}, 8, ["class"])) : I("v-if", !0),
|
|
1763
1766
|
e.showClose && e.clearIcon ? (y(), V(f, {
|
|
1764
1767
|
key: 1,
|
|
1765
|
-
class:
|
|
1768
|
+
class: S([e.nsSelect.e("caret"), e.nsSelect.e("icon")]),
|
|
1766
1769
|
onClick: e.handleClearClick
|
|
1767
1770
|
}, {
|
|
1768
|
-
default:
|
|
1771
|
+
default: k(() => [
|
|
1769
1772
|
(y(), V(Ne(e.clearIcon)))
|
|
1770
1773
|
]),
|
|
1771
1774
|
_: 1
|
|
@@ -1775,7 +1778,7 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1775
1778
|
}, [
|
|
1776
1779
|
e.$slots.prefix ? {
|
|
1777
1780
|
name: "prefix",
|
|
1778
|
-
fn:
|
|
1781
|
+
fn: k(() => [
|
|
1779
1782
|
z("div", En, [
|
|
1780
1783
|
X(e.$slots, "prefix")
|
|
1781
1784
|
])
|
|
@@ -1784,24 +1787,24 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1784
1787
|
]), 1032, ["id", "modelValue", "placeholder", "name", "autocomplete", "size", "disabled", "readonly", "class", "tabindex", "label", "onFocus", "onBlur", "onInput", "onPaste", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onKeydown"])
|
|
1785
1788
|
], 32)
|
|
1786
1789
|
]),
|
|
1787
|
-
content:
|
|
1790
|
+
content: k(() => [
|
|
1788
1791
|
he(A, null, {
|
|
1789
|
-
default:
|
|
1790
|
-
He(he(
|
|
1792
|
+
default: k(() => [
|
|
1793
|
+
He(he(B, {
|
|
1791
1794
|
ref: "scrollbar",
|
|
1792
1795
|
tag: "ul",
|
|
1793
1796
|
"wrap-class": e.nsSelect.be("dropdown", "wrap"),
|
|
1794
1797
|
"view-class": e.nsSelect.be("dropdown", "list"),
|
|
1795
|
-
class:
|
|
1798
|
+
class: S(e.scrollbarKls)
|
|
1796
1799
|
}, {
|
|
1797
|
-
default:
|
|
1800
|
+
default: k(() => [
|
|
1798
1801
|
e.showNewOption ? (y(), V(g, {
|
|
1799
1802
|
key: 0,
|
|
1800
1803
|
value: e.query,
|
|
1801
1804
|
created: !0
|
|
1802
1805
|
}, null, 8, ["value"])) : I("v-if", !0),
|
|
1803
1806
|
he(m, { onUpdateOptions: e.onOptionsRendered }, {
|
|
1804
|
-
default:
|
|
1807
|
+
default: k(() => [
|
|
1805
1808
|
X(e.$slots, "default")
|
|
1806
1809
|
]),
|
|
1807
1810
|
_: 3
|
|
@@ -1811,10 +1814,10 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1811
1814
|
}, 8, ["wrap-class", "view-class", "class"]), [
|
|
1812
1815
|
[hl, e.options.size > 0 && !e.loading]
|
|
1813
1816
|
]),
|
|
1814
|
-
e.emptyText && (!e.allowCreate || e.loading || e.allowCreate && e.options.size === 0) ? (y(),
|
|
1815
|
-
e.$slots.empty ? X(e.$slots, "empty", { key: 0 }) : (y(),
|
|
1817
|
+
e.emptyText && (!e.allowCreate || e.loading || e.allowCreate && e.options.size === 0) ? (y(), L(Ae, { key: 0 }, [
|
|
1818
|
+
e.$slots.empty ? X(e.$slots, "empty", { key: 0 }) : (y(), L("p", {
|
|
1816
1819
|
key: 1,
|
|
1817
|
-
class:
|
|
1820
|
+
class: S(e.nsSelect.be("dropdown", "empty"))
|
|
1818
1821
|
}, Y(e.emptyText), 3))
|
|
1819
1822
|
], 64)) : I("v-if", !0)
|
|
1820
1823
|
]),
|
|
@@ -1827,8 +1830,8 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1827
1830
|
[$, e.handleClose, e.popperPaneRef]
|
|
1828
1831
|
]);
|
|
1829
1832
|
}
|
|
1830
|
-
var
|
|
1831
|
-
const
|
|
1833
|
+
var kn = /* @__PURE__ */ We(wn, [["render", Tn], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);
|
|
1834
|
+
const Ln = ge({
|
|
1832
1835
|
name: "ElOptionGroup",
|
|
1833
1836
|
componentName: "ElOptionGroup",
|
|
1834
1837
|
props: {
|
|
@@ -1860,15 +1863,15 @@ const kn = ge({
|
|
|
1860
1863
|
}
|
|
1861
1864
|
});
|
|
1862
1865
|
function $n(e, l, o, s, c, u) {
|
|
1863
|
-
return He((y(),
|
|
1864
|
-
class:
|
|
1866
|
+
return He((y(), L("ul", {
|
|
1867
|
+
class: S(e.ns.be("group", "wrap"))
|
|
1865
1868
|
}, [
|
|
1866
1869
|
z("li", {
|
|
1867
|
-
class:
|
|
1870
|
+
class: S(e.ns.be("group", "title"))
|
|
1868
1871
|
}, Y(e.label), 3),
|
|
1869
1872
|
z("li", null, [
|
|
1870
1873
|
z("ul", {
|
|
1871
|
-
class:
|
|
1874
|
+
class: S(e.ns.b("group"))
|
|
1872
1875
|
}, [
|
|
1873
1876
|
X(e.$slots, "default")
|
|
1874
1877
|
], 2)
|
|
@@ -1877,16 +1880,15 @@ function $n(e, l, o, s, c, u) {
|
|
|
1877
1880
|
[hl, e.visible]
|
|
1878
1881
|
]);
|
|
1879
1882
|
}
|
|
1880
|
-
var tt = /* @__PURE__ */ We(
|
|
1881
|
-
const
|
|
1882
|
-
Option:
|
|
1883
|
+
var tt = /* @__PURE__ */ We(Ln, [["render", $n], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);
|
|
1884
|
+
const Fn = Dl(kn, {
|
|
1885
|
+
Option: Bl,
|
|
1883
1886
|
OptionGroup: tt
|
|
1884
|
-
}),
|
|
1885
|
-
|
|
1887
|
+
}), Nn = Jl(Bl);
|
|
1888
|
+
Jl(tt);
|
|
1886
1889
|
export {
|
|
1887
|
-
|
|
1888
|
-
|
|
1890
|
+
Nn as E,
|
|
1891
|
+
Fn as a,
|
|
1889
1892
|
sn as b,
|
|
1890
|
-
pn as c
|
|
1891
|
-
qt as m
|
|
1893
|
+
pn as c
|
|
1892
1894
|
};
|