st-comp 0.0.86 → 0.0.87
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 +1 -0
- package/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +2 -2
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +10 -10
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +8 -8
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +7 -7
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +10 -10
- package/es/Table.cjs +1 -20
- package/es/Table.js +390 -3589
- package/es/VarietySearch.cjs +2 -2
- package/es/VarietySearch.js +1414 -1349
- package/es/VirtualTable.cjs +4 -4
- package/es/VirtualTable.js +89 -89
- package/es/{base-4865d432.cjs → base-315cbfab.cjs} +1 -1
- package/es/{base-6faccb01.js → base-e85dae08.js} +31 -31
- package/es/{castArray-bdee0d50.js → castArray-b93d1330.js} +1 -1
- package/es/{castArray-3341cbb4.cjs → castArray-f54f6f75.cjs} +1 -1
- package/es/{config-provider-465c8253.cjs → config-provider-17c85684.cjs} +1 -1
- package/es/{config-provider-be0e9c36.js → config-provider-cb918d0f.js} +7 -7
- package/es/{el-button-1b9c4fd6.js → el-button-aab1dbd4.js} +8 -8
- package/es/{el-button-aad5268b.cjs → el-button-ec16f484.cjs} +1 -1
- package/es/{el-empty-608948d9.cjs → el-empty-16ceef82.cjs} +1 -1
- package/es/{el-empty-348c46f7.js → el-empty-ab3ce002.js} +14 -14
- package/es/el-icon-2d22f211.js +3795 -0
- package/es/el-icon-773986c7.cjs +20 -0
- package/es/el-overlay-6d0c5cc3.cjs +5 -0
- package/es/{el-overlay-400ac6ce.js → el-overlay-98d7f866.js} +48 -48
- package/es/{el-scrollbar-83abe3de.js → el-scrollbar-7b9d83d5.js} +3 -3
- package/es/{el-scrollbar-bc381e35.cjs → el-scrollbar-9473fd47.cjs} +1 -1
- package/es/el-select-d3f15536.cjs +9 -0
- package/es/{el-select-895360ba.js → el-select-fd76b16b.js} +206 -206
- package/es/{el-tag-30cecca3.js → el-tag-87576c55.js} +137 -137
- package/es/el-tag-a6a4d4ef.cjs +1 -0
- package/es/{focus-trap-5ac78614.js → focus-trap-067be6d2.js} +7 -7
- package/es/{focus-trap-a169f160.cjs → focus-trap-ea177336.cjs} +1 -1
- package/es/raf-b091dc88.js +6 -0
- package/es/{raf-5e5c53db.cjs → raf-c437ab23.cjs} +1 -1
- package/es/{scroll-264c50f3.js → scroll-510cef88.js} +1 -1
- package/es/{scroll-bb8039ba.cjs → scroll-a80e1458.cjs} +1 -1
- package/es/style.css +1 -1
- package/es/{use-form-item-0e9cae13.js → use-form-item-439ac27c.js} +47 -46
- package/es/{use-form-item-6cef6b15.cjs → use-form-item-7924b6c1.cjs} +2 -2
- package/es/{use-global-config-8c9c775f.js → use-global-config-857b51f5.js} +29 -29
- package/es/{use-global-config-17f3d7c7.cjs → use-global-config-d02be80b.cjs} +1 -1
- package/es/{vnode-abafec9e.cjs → vnode-85a610a2.cjs} +1 -1
- package/es/{vnode-b78096e3.js → vnode-8c7963dc.js} +4 -4
- package/es/{zh-cn-e4d38144.cjs → zh-cn-0024c96d.cjs} +1 -1
- package/es/{zh-cn-8aaa7dd2.js → zh-cn-c2b42b5f.js} +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +143 -143
- package/lib/{index-137cb843.js → index-b5647f94.js} +12708 -12646
- package/lib/{python-02b0f7eb.js → python-e2bb6788.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/VarietySearch/components/FactorScreen/index.vue +84 -27
- package/packages/VarietySearch/config.js +9 -5
- package/src/pages/VarietySearch/index.vue +41 -6
- package/es/el-icon-158ddc19.cjs +0 -1
- package/es/el-icon-d385d377.js +0 -593
- package/es/el-overlay-4713107e.cjs +0 -5
- package/es/el-select-7116533b.cjs +0 -9
- package/es/el-tag-2c7e5d4a.cjs +0 -1
- package/es/raf-92c5ed6d.js +0 -6
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { computed as v, getCurrentInstance as sl, ref as K, shallowRef as Re, watch as
|
|
2
|
-
import { t as dt, a as ct, u as zl, d as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { computed as v, getCurrentInstance as sl, ref as K, shallowRef as Re, watch as H, defineComponent as ge, useAttrs as nt, useSlots as ot, nextTick as D, onMounted as ml, toRef as it, withDirectives as We, openBlock as y, createElementBlock as k, 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 L, 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 Bl } from "./el-scrollbar-7b9d83d5.js";
|
|
3
|
+
import { j as pt, i as Nl, l as ft, E as vt, C as mt, a as ht, m as bt } from "./el-tag-87576c55.js";
|
|
4
|
+
import { z as gt, c as Ul, l as yt, i as fl, o as Gl, p as Ct, h as Pl, n as St, V as Yl, A as wt, B as Ot, E as Te, D as Xl, F as Rl, u as It, a as Et } from "./use-form-item-439ac27c.js";
|
|
5
|
+
import { o as Al, j as il, J as Tt, k as Ml, b as Jl, d as Ll, i as al, u as be, N as Lt, _ as He, e as vl, w as Dl, K as le, g as Kl, z as Pe, C as kt, L as kl, M as $t, f as Zl } from "./base-e85dae08.js";
|
|
6
6
|
import { m as Mt } from "./typescript-7ae59c4c.js";
|
|
7
|
-
import { U as te, i as Vt, E as
|
|
8
|
-
import { s as zt } from "./scroll-
|
|
7
|
+
import { U as te, i as Vt, E as Wl, C as xl } from "./focus-trap-067be6d2.js";
|
|
8
|
+
import { s as zt } from "./scroll-510cef88.js";
|
|
9
9
|
const Pt = () => Al && /firefox/i.test(window.navigator.userAgent);
|
|
10
|
-
var
|
|
10
|
+
var Hl = 1 / 0, At = 17976931348623157e292;
|
|
11
11
|
function Dt(e) {
|
|
12
12
|
if (!e)
|
|
13
13
|
return e === 0 ? e : 0;
|
|
14
|
-
if (e = dt(e), e ===
|
|
14
|
+
if (e = dt(e), e === Hl || e === -Hl) {
|
|
15
15
|
var l = e < 0 ? -1 : 1;
|
|
16
16
|
return l * At;
|
|
17
17
|
}
|
|
@@ -21,21 +21,21 @@ function Kt(e) {
|
|
|
21
21
|
var l = Dt(e), o = l % 1;
|
|
22
22
|
return l === l ? o ? l - o : l : 0;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function Ft(e, l, o, s) {
|
|
25
25
|
for (var c = e.length, u = o + (s ? 1 : -1); s ? u-- : ++u < c; )
|
|
26
26
|
if (l(e[u], u, e))
|
|
27
27
|
return u;
|
|
28
28
|
return -1;
|
|
29
29
|
}
|
|
30
|
-
var
|
|
30
|
+
var Bt = Math.max, Nt = Math.min;
|
|
31
31
|
function Rt(e, l, o) {
|
|
32
32
|
var s = e == null ? 0 : e.length;
|
|
33
33
|
if (!s)
|
|
34
34
|
return -1;
|
|
35
35
|
var c = s - 1;
|
|
36
|
-
return o !== void 0 && (c = Kt(o), c = o < 0 ?
|
|
36
|
+
return o !== void 0 && (c = Kt(o), c = o < 0 ? Bt(s + c, 0) : Nt(c, s - 1)), Ft(e, pt(l), c, !0);
|
|
37
37
|
}
|
|
38
|
-
const
|
|
38
|
+
const Wt = (e = "") => e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d"), Ht = (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 = {}) => {
|
|
39
39
|
const { excludeListeners: l = !1, excludeKeys: o } = e, s = v(() => ((o == null ? void 0 : o.value) || []).concat(jt)), c = sl();
|
|
40
40
|
return c ? v(() => {
|
|
41
41
|
var u;
|
|
@@ -88,7 +88,7 @@ function Yt(e, { afterFocus: l, afterBlur: o } = {}) {
|
|
|
88
88
|
var g;
|
|
89
89
|
(g = e.value) == null || g.focus();
|
|
90
90
|
};
|
|
91
|
-
return
|
|
91
|
+
return H(u, (g) => {
|
|
92
92
|
g && g.setAttribute("tabindex", "-1");
|
|
93
93
|
}), ct(u, "click", w), {
|
|
94
94
|
wrapperRef: u,
|
|
@@ -106,7 +106,7 @@ const Xt = `
|
|
|
106
106
|
z-index:-1000 !important;
|
|
107
107
|
top:0 !important;
|
|
108
108
|
right:0 !important;
|
|
109
|
-
`,
|
|
109
|
+
`, Jt = [
|
|
110
110
|
"letter-spacing",
|
|
111
111
|
"line-height",
|
|
112
112
|
"padding-top",
|
|
@@ -123,14 +123,14 @@ const Xt = `
|
|
|
123
123
|
"border-width",
|
|
124
124
|
"box-sizing"
|
|
125
125
|
];
|
|
126
|
-
function
|
|
126
|
+
function Zt(e) {
|
|
127
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"));
|
|
128
|
-
return { contextStyle:
|
|
128
|
+
return { contextStyle: Jt.map((p) => `${p}:${l.getPropertyValue(p)}`).join(";"), paddingSize: s, borderSize: c, boxSizing: o };
|
|
129
129
|
}
|
|
130
130
|
function ql(e, l = 1, o) {
|
|
131
131
|
var s;
|
|
132
132
|
_ || (_ = document.createElement("textarea"), document.body.appendChild(_));
|
|
133
|
-
const { paddingSize: c, borderSize: u, boxSizing: p, contextStyle: b } =
|
|
133
|
+
const { paddingSize: c, borderSize: u, boxSizing: p, contextStyle: b } = Zt(e);
|
|
134
134
|
_.setAttribute("style", `${b};${Xt}`), _.value = e.value || e.placeholder || "";
|
|
135
135
|
let f = _.scrollHeight;
|
|
136
136
|
const w = {};
|
|
@@ -146,7 +146,7 @@ function ql(e, l = 1, o) {
|
|
|
146
146
|
}
|
|
147
147
|
return w.height = `${f}px`, (s = _.parentNode) == null || s.removeChild(_), _ = void 0, w;
|
|
148
148
|
}
|
|
149
|
-
const xt =
|
|
149
|
+
const xt = Jl({
|
|
150
150
|
id: {
|
|
151
151
|
type: String,
|
|
152
152
|
default: void 0
|
|
@@ -154,7 +154,7 @@ const xt = Zl({
|
|
|
154
154
|
size: yt,
|
|
155
155
|
disabled: Boolean,
|
|
156
156
|
modelValue: {
|
|
157
|
-
type:
|
|
157
|
+
type: Ll([
|
|
158
158
|
String,
|
|
159
159
|
Number,
|
|
160
160
|
Object
|
|
@@ -170,7 +170,7 @@ const xt = Zl({
|
|
|
170
170
|
values: ["none", "both", "horizontal", "vertical"]
|
|
171
171
|
},
|
|
172
172
|
autosize: {
|
|
173
|
-
type:
|
|
173
|
+
type: Ll([Boolean, Object]),
|
|
174
174
|
default: !1
|
|
175
175
|
},
|
|
176
176
|
autocomplete: {
|
|
@@ -228,7 +228,7 @@ const xt = Zl({
|
|
|
228
228
|
default: !0
|
|
229
229
|
},
|
|
230
230
|
inputStyle: {
|
|
231
|
-
type:
|
|
231
|
+
type: Ll([Object, Array, String]),
|
|
232
232
|
default: () => Mt({})
|
|
233
233
|
},
|
|
234
234
|
autofocus: {
|
|
@@ -278,9 +278,9 @@ const xt = Zl({
|
|
|
278
278
|
n.is("focus", ye.value)
|
|
279
279
|
]), w = Ut({
|
|
280
280
|
excludeKeys: v(() => Object.keys(p.value))
|
|
281
|
-
}), { form: g, formItem: m } = Gl(), { inputId:
|
|
281
|
+
}), { form: g, formItem: m } = Gl(), { inputId: F } = Ct(s, {
|
|
282
282
|
formItemContext: m
|
|
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(),
|
|
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(), J = Re(s.inputStyle), oe = v(() => T.value || E.value), { wrapperRef: qe, isFocused: ye, handleFocus: ie, handleBlur: P } = Yt(oe, {
|
|
284
284
|
afterBlur() {
|
|
285
285
|
var r;
|
|
286
286
|
s.validateEvent && ((r = m == null ? void 0 : m.validate) == null || r.call(m, "blur").catch((h) => il(h)));
|
|
@@ -293,9 +293,9 @@ const xt = Zl({
|
|
|
293
293
|
s.inputStyle
|
|
294
294
|
]), Q = v(() => [
|
|
295
295
|
s.inputStyle,
|
|
296
|
-
|
|
296
|
+
J.value,
|
|
297
297
|
{ resize: s.resize }
|
|
298
|
-
]),
|
|
298
|
+
]), B = v(() => Vt(s.modelValue) ? "" : String(s.modelValue)), ue = v(() => s.clearable && !$.value && !s.readonly && !!B.value && (ye.value || q.value)), Ce = v(() => s.showPassword && !$.value && !s.readonly && !!B.value && (!!B.value || ye.value)), U = v(() => s.showWordLimit && !!w.value.maxlength && (s.type === "text" || s.type === "textarea") && !$.value && !s.readonly && !s.showPassword), Se = v(() => B.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);
|
|
299
299
|
zl(E, (r) => {
|
|
300
300
|
if (ce(), !U.value || s.resize !== "both")
|
|
301
301
|
return;
|
|
@@ -309,14 +309,14 @@ const xt = Zl({
|
|
|
309
309
|
if (!(!Al || r !== "textarea" || !E.value))
|
|
310
310
|
if (h) {
|
|
311
311
|
const M = vl(h) ? h.minRows : void 0, fe = vl(h) ? h.maxRows : void 0, Ie = ql(E.value, M, fe);
|
|
312
|
-
|
|
312
|
+
J.value = {
|
|
313
313
|
overflowY: "hidden",
|
|
314
314
|
...Ie
|
|
315
315
|
}, D(() => {
|
|
316
|
-
E.value.offsetHeight,
|
|
316
|
+
E.value.offsetHeight, J.value = Ie;
|
|
317
317
|
});
|
|
318
318
|
} else
|
|
319
|
-
|
|
319
|
+
J.value = {
|
|
320
320
|
minHeight: ql(E.value).minHeight
|
|
321
321
|
};
|
|
322
322
|
}, ce = ((r) => {
|
|
@@ -328,19 +328,19 @@ const xt = Zl({
|
|
|
328
328
|
((M = E.value) == null ? void 0 : M.offsetParent) === null || (r(), h = !0);
|
|
329
329
|
};
|
|
330
330
|
})(de), G = () => {
|
|
331
|
-
const r = oe.value, h = s.formatter ? s.formatter(
|
|
331
|
+
const r = oe.value, h = s.formatter ? s.formatter(B.value) : B.value;
|
|
332
332
|
!r || r.value === h || (r.value = h);
|
|
333
|
-
},
|
|
333
|
+
}, Le = async (r) => {
|
|
334
334
|
Ye();
|
|
335
335
|
let { value: h } = r.target;
|
|
336
336
|
if (s.formatter && (h = s.parser ? s.parser(h) : h), !ne.value) {
|
|
337
|
-
if (h ===
|
|
337
|
+
if (h === B.value) {
|
|
338
338
|
G();
|
|
339
339
|
return;
|
|
340
340
|
}
|
|
341
341
|
o(te, h), o("input", h), await D(), G(), Xe();
|
|
342
342
|
}
|
|
343
|
-
},
|
|
343
|
+
}, ke = (r) => {
|
|
344
344
|
o("change", r.target.value);
|
|
345
345
|
}, we = (r) => {
|
|
346
346
|
o("compositionstart", r), ne.value = !0;
|
|
@@ -350,16 +350,16 @@ const xt = Zl({
|
|
|
350
350
|
const M = (h = r.target) == null ? void 0 : h.value, fe = M[M.length - 1] || "";
|
|
351
351
|
ne.value = !_l(fe);
|
|
352
352
|
}, Me = (r) => {
|
|
353
|
-
o("compositionend", r), ne.value && (ne.value = !1,
|
|
353
|
+
o("compositionend", r), ne.value && (ne.value = !1, Le(r));
|
|
354
354
|
}, Ve = () => {
|
|
355
355
|
j.value = !j.value, pe();
|
|
356
356
|
}, pe = async () => {
|
|
357
357
|
var r;
|
|
358
358
|
await D(), (r = oe.value) == null || r.focus();
|
|
359
|
-
},
|
|
359
|
+
}, Je = () => {
|
|
360
360
|
var r;
|
|
361
361
|
return (r = oe.value) == null ? void 0 : r.blur();
|
|
362
|
-
},
|
|
362
|
+
}, Ze = (r) => {
|
|
363
363
|
q.value = !1, o("mouseleave", r);
|
|
364
364
|
}, xe = (r) => {
|
|
365
365
|
q.value = !0, o("mouseenter", r);
|
|
@@ -368,13 +368,13 @@ const xt = Zl({
|
|
|
368
368
|
}, _e = () => {
|
|
369
369
|
var r;
|
|
370
370
|
(r = oe.value) == null || r.select();
|
|
371
|
-
},
|
|
371
|
+
}, Fe = () => {
|
|
372
372
|
o(te, ""), o("change", ""), o("clear"), o("input", "");
|
|
373
373
|
};
|
|
374
|
-
return
|
|
374
|
+
return H(() => s.modelValue, () => {
|
|
375
375
|
var r;
|
|
376
376
|
D(() => de()), s.validateEvent && ((r = m == null ? void 0 : m.validate) == null || r.call(m, "change").catch((h) => il(h)));
|
|
377
|
-
}),
|
|
377
|
+
}), H(B, () => G()), H(() => s.type, async () => {
|
|
378
378
|
await D(), G(), de();
|
|
379
379
|
}), ml(() => {
|
|
380
380
|
!s.formatter && s.parser && il("ElInput", "If you set the parser, you also need to set the formatter."), G(), D(de);
|
|
@@ -385,21 +385,21 @@ const xt = Zl({
|
|
|
385
385
|
textareaStyle: Q,
|
|
386
386
|
autosize: it(s, "autosize"),
|
|
387
387
|
focus: pe,
|
|
388
|
-
blur:
|
|
388
|
+
blur: Je,
|
|
389
389
|
select: _e,
|
|
390
|
-
clear:
|
|
390
|
+
clear: Fe,
|
|
391
391
|
resizeTextarea: de
|
|
392
|
-
}), (r, h) =>
|
|
392
|
+
}), (r, h) => We((y(), k("div", El(a(p), {
|
|
393
393
|
class: a(b),
|
|
394
394
|
style: a(Qe),
|
|
395
395
|
role: r.containerRole,
|
|
396
396
|
onMouseenter: xe,
|
|
397
|
-
onMouseleave:
|
|
397
|
+
onMouseleave: Ze
|
|
398
398
|
}), [
|
|
399
399
|
I(" input "),
|
|
400
|
-
r.type !== "textarea" ? (y(),
|
|
400
|
+
r.type !== "textarea" ? (y(), k(Ae, { key: 0 }, [
|
|
401
401
|
I(" prepend slot "),
|
|
402
|
-
r.$slots.prepend ? (y(),
|
|
402
|
+
r.$slots.prepend ? (y(), k("div", {
|
|
403
403
|
key: 0,
|
|
404
404
|
class: S(a(n).be("group", "prepend"))
|
|
405
405
|
}, [
|
|
@@ -411,7 +411,7 @@ const xt = Zl({
|
|
|
411
411
|
class: S(a(f))
|
|
412
412
|
}, [
|
|
413
413
|
I(" prefix slot "),
|
|
414
|
-
r.$slots.prefix || r.prefixIcon ? (y(),
|
|
414
|
+
r.$slots.prefix || r.prefixIcon ? (y(), k("span", {
|
|
415
415
|
key: 0,
|
|
416
416
|
class: S(a(n).e("prefix"))
|
|
417
417
|
}, [
|
|
@@ -423,7 +423,7 @@ const xt = Zl({
|
|
|
423
423
|
key: 0,
|
|
424
424
|
class: S(a(n).e("icon"))
|
|
425
425
|
}, {
|
|
426
|
-
default:
|
|
426
|
+
default: L(() => [
|
|
427
427
|
(y(), V(Ne(r.prefixIcon)))
|
|
428
428
|
]),
|
|
429
429
|
_: 1
|
|
@@ -431,7 +431,7 @@ const xt = Zl({
|
|
|
431
431
|
], 2)
|
|
432
432
|
], 2)) : I("v-if", !0),
|
|
433
433
|
z("input", El({
|
|
434
|
-
id: a(
|
|
434
|
+
id: a(F),
|
|
435
435
|
ref_key: "input",
|
|
436
436
|
ref: T,
|
|
437
437
|
class: a(n).e("inner")
|
|
@@ -451,27 +451,27 @@ const xt = Zl({
|
|
|
451
451
|
onCompositionstart: we,
|
|
452
452
|
onCompositionupdate: $e,
|
|
453
453
|
onCompositionend: Me,
|
|
454
|
-
onInput:
|
|
454
|
+
onInput: Le,
|
|
455
455
|
onFocus: h[0] || (h[0] = (...M) => a(ie) && a(ie)(...M)),
|
|
456
456
|
onBlur: h[1] || (h[1] = (...M) => a(P) && a(P)(...M)),
|
|
457
|
-
onChange:
|
|
457
|
+
onChange: ke,
|
|
458
458
|
onKeydown: Oe
|
|
459
459
|
}), null, 16, ln),
|
|
460
460
|
I(" suffix slot "),
|
|
461
|
-
a(Ge) ? (y(),
|
|
461
|
+
a(Ge) ? (y(), k("span", {
|
|
462
462
|
key: 1,
|
|
463
463
|
class: S(a(n).e("suffix"))
|
|
464
464
|
}, [
|
|
465
465
|
z("span", {
|
|
466
466
|
class: S(a(n).e("suffix-inner"))
|
|
467
467
|
}, [
|
|
468
|
-
!a(ue) || !a(Ce) || !a(U) ? (y(),
|
|
468
|
+
!a(ue) || !a(Ce) || !a(U) ? (y(), k(Ae, { key: 0 }, [
|
|
469
469
|
X(r.$slots, "suffix"),
|
|
470
470
|
r.suffixIcon ? (y(), V(a(Te), {
|
|
471
471
|
key: 0,
|
|
472
472
|
class: S(a(n).e("icon"))
|
|
473
473
|
}, {
|
|
474
|
-
default:
|
|
474
|
+
default: L(() => [
|
|
475
475
|
(y(), V(Ne(r.suffixIcon)))
|
|
476
476
|
]),
|
|
477
477
|
_: 1
|
|
@@ -480,10 +480,10 @@ const xt = Zl({
|
|
|
480
480
|
a(ue) ? (y(), V(a(Te), {
|
|
481
481
|
key: 1,
|
|
482
482
|
class: S([a(n).e("icon"), a(n).e("clear")]),
|
|
483
|
-
onMousedown: ee(a(
|
|
484
|
-
onClick:
|
|
483
|
+
onMousedown: ee(a(Lt), ["prevent"]),
|
|
484
|
+
onClick: Fe
|
|
485
485
|
}, {
|
|
486
|
-
default:
|
|
486
|
+
default: L(() => [
|
|
487
487
|
he(a(Xl))
|
|
488
488
|
]),
|
|
489
489
|
_: 1
|
|
@@ -493,12 +493,12 @@ const xt = Zl({
|
|
|
493
493
|
class: S([a(n).e("icon"), a(n).e("password")]),
|
|
494
494
|
onClick: Ve
|
|
495
495
|
}, {
|
|
496
|
-
default:
|
|
496
|
+
default: L(() => [
|
|
497
497
|
(y(), V(Ne(a(je))))
|
|
498
498
|
]),
|
|
499
499
|
_: 1
|
|
500
500
|
}, 8, ["class"])) : I("v-if", !0),
|
|
501
|
-
a(U) ? (y(),
|
|
501
|
+
a(U) ? (y(), k("span", {
|
|
502
502
|
key: 3,
|
|
503
503
|
class: S(a(n).e("count"))
|
|
504
504
|
}, [
|
|
@@ -514,7 +514,7 @@ const xt = Zl({
|
|
|
514
514
|
a(n).is("loading", a(re) === "validating")
|
|
515
515
|
])
|
|
516
516
|
}, {
|
|
517
|
-
default:
|
|
517
|
+
default: L(() => [
|
|
518
518
|
(y(), V(Ne(a(ae))))
|
|
519
519
|
]),
|
|
520
520
|
_: 1
|
|
@@ -523,16 +523,16 @@ const xt = Zl({
|
|
|
523
523
|
], 2)) : I("v-if", !0)
|
|
524
524
|
], 2),
|
|
525
525
|
I(" append slot "),
|
|
526
|
-
r.$slots.append ? (y(),
|
|
526
|
+
r.$slots.append ? (y(), k("div", {
|
|
527
527
|
key: 1,
|
|
528
528
|
class: S(a(n).be("group", "append"))
|
|
529
529
|
}, [
|
|
530
530
|
X(r.$slots, "append")
|
|
531
531
|
], 2)) : I("v-if", !0)
|
|
532
|
-
], 64)) : (y(),
|
|
532
|
+
], 64)) : (y(), k(Ae, { key: 1 }, [
|
|
533
533
|
I(" textarea "),
|
|
534
534
|
z("textarea", El({
|
|
535
|
-
id: a(
|
|
535
|
+
id: a(F),
|
|
536
536
|
ref_key: "textarea",
|
|
537
537
|
ref: E,
|
|
538
538
|
class: a(O).e("inner")
|
|
@@ -549,13 +549,13 @@ const xt = Zl({
|
|
|
549
549
|
onCompositionstart: we,
|
|
550
550
|
onCompositionupdate: $e,
|
|
551
551
|
onCompositionend: Me,
|
|
552
|
-
onInput:
|
|
552
|
+
onInput: Le,
|
|
553
553
|
onFocus: h[2] || (h[2] = (...M) => a(ie) && a(ie)(...M)),
|
|
554
554
|
onBlur: h[3] || (h[3] = (...M) => a(P) && a(P)(...M)),
|
|
555
|
-
onChange:
|
|
555
|
+
onChange: ke,
|
|
556
556
|
onKeydown: Oe
|
|
557
557
|
}), null, 16, tn),
|
|
558
|
-
a(U) ? (y(),
|
|
558
|
+
a(U) ? (y(), k("span", {
|
|
559
559
|
key: 0,
|
|
560
560
|
style: se(De.value),
|
|
561
561
|
class: S(a(n).e("count"))
|
|
@@ -566,8 +566,8 @@ const xt = Zl({
|
|
|
566
566
|
]);
|
|
567
567
|
}
|
|
568
568
|
});
|
|
569
|
-
var an = /* @__PURE__ */
|
|
570
|
-
const sn = Dl(an), et =
|
|
569
|
+
var an = /* @__PURE__ */ He(on, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);
|
|
570
|
+
const sn = Dl(an), et = Jl({
|
|
571
571
|
type: {
|
|
572
572
|
type: String,
|
|
573
573
|
values: ["success", "info", "warning", "danger", ""],
|
|
@@ -602,7 +602,7 @@ const sn = Dl(an), et = Zl({
|
|
|
602
602
|
emits: rn,
|
|
603
603
|
setup(e, { emit: l }) {
|
|
604
604
|
const o = e, s = Pl(), c = be("tag"), u = v(() => {
|
|
605
|
-
const { type: f, hit: w, effect: g, closable: m, round:
|
|
605
|
+
const { type: f, hit: w, effect: g, closable: m, round: F } = o;
|
|
606
606
|
return [
|
|
607
607
|
c.b(),
|
|
608
608
|
c.is("closable", m),
|
|
@@ -610,14 +610,14 @@ const sn = Dl(an), et = Zl({
|
|
|
610
610
|
c.m(s.value),
|
|
611
611
|
c.m(g),
|
|
612
612
|
c.is("hit", w),
|
|
613
|
-
c.is("round",
|
|
613
|
+
c.is("round", F)
|
|
614
614
|
];
|
|
615
615
|
}), p = (f) => {
|
|
616
616
|
l("close", f);
|
|
617
617
|
}, b = (f) => {
|
|
618
618
|
l("click", f);
|
|
619
619
|
};
|
|
620
|
-
return (f, w) => f.disableTransitions ? (y(),
|
|
620
|
+
return (f, w) => f.disableTransitions ? (y(), k("span", {
|
|
621
621
|
key: 0,
|
|
622
622
|
class: S(a(u)),
|
|
623
623
|
style: se({ backgroundColor: f.color }),
|
|
@@ -633,7 +633,7 @@ const sn = Dl(an), et = Zl({
|
|
|
633
633
|
class: S(a(c).e("close")),
|
|
634
634
|
onClick: ee(p, ["stop"])
|
|
635
635
|
}, {
|
|
636
|
-
default:
|
|
636
|
+
default: L(() => [
|
|
637
637
|
he(a(Rl))
|
|
638
638
|
]),
|
|
639
639
|
_: 1
|
|
@@ -643,7 +643,7 @@ const sn = Dl(an), et = Zl({
|
|
|
643
643
|
name: `${a(c).namespace.value}-zoom-in-center`,
|
|
644
644
|
appear: ""
|
|
645
645
|
}, {
|
|
646
|
-
default:
|
|
646
|
+
default: L(() => [
|
|
647
647
|
z("span", {
|
|
648
648
|
class: S(a(u)),
|
|
649
649
|
style: se({ backgroundColor: f.color }),
|
|
@@ -659,7 +659,7 @@ const sn = Dl(an), et = Zl({
|
|
|
659
659
|
class: S(a(c).e("close")),
|
|
660
660
|
onClick: ee(p, ["stop"])
|
|
661
661
|
}, {
|
|
662
|
-
default:
|
|
662
|
+
default: L(() => [
|
|
663
663
|
he(a(Rl))
|
|
664
664
|
]),
|
|
665
665
|
_: 1
|
|
@@ -670,10 +670,10 @@ const sn = Dl(an), et = Zl({
|
|
|
670
670
|
}, 8, ["name"]));
|
|
671
671
|
}
|
|
672
672
|
});
|
|
673
|
-
var cn = /* @__PURE__ */
|
|
673
|
+
var cn = /* @__PURE__ */ He(dn, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);
|
|
674
674
|
const pn = Dl(cn), lt = Symbol("ElSelectGroup"), gl = Symbol("ElSelect");
|
|
675
675
|
function fn(e, l) {
|
|
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) :
|
|
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) : F(e.value, o.props.modelValue)), p = v(() => {
|
|
677
677
|
if (o.props.multiple) {
|
|
678
678
|
const n = o.props.modelValue || [];
|
|
679
679
|
return !u.value && n.length >= o.props.multipleLimit && o.props.multipleLimit > 0;
|
|
@@ -685,7 +685,7 @@ function fn(e, l) {
|
|
|
685
685
|
return n && n.some((E) => pl(le(E, T)) === le(O, T));
|
|
686
686
|
} else
|
|
687
687
|
return n && n.includes(O);
|
|
688
|
-
},
|
|
688
|
+
}, F = (n, O) => {
|
|
689
689
|
if (c.value) {
|
|
690
690
|
const { valueKey: T } = o.props;
|
|
691
691
|
return le(n, T) === le(O, T);
|
|
@@ -694,21 +694,21 @@ function fn(e, l) {
|
|
|
694
694
|
}, A = () => {
|
|
695
695
|
!e.disabled && !s.disabled && (o.hoverIndex = o.optionsArray.indexOf(g.proxy));
|
|
696
696
|
};
|
|
697
|
-
|
|
697
|
+
H(() => b.value, () => {
|
|
698
698
|
!e.created && !o.props.remote && o.setSelected();
|
|
699
|
-
}),
|
|
699
|
+
}), H(() => e.value, (n, O) => {
|
|
700
700
|
const { remote: T, valueKey: E } = o.props;
|
|
701
701
|
if (Object.is(n, O) || (o.onOptionDestroy(O, g.proxy), o.onOptionCreate(g.proxy)), !e.created && !T) {
|
|
702
702
|
if (E && typeof n == "object" && typeof O == "object" && n[E] === O[E])
|
|
703
703
|
return;
|
|
704
704
|
o.setSelected();
|
|
705
705
|
}
|
|
706
|
-
}),
|
|
706
|
+
}), H(() => s.disabled, () => {
|
|
707
707
|
l.groupDisabled = s.disabled;
|
|
708
708
|
}, { immediate: !0 });
|
|
709
709
|
const { queryChange: $ } = pl(o);
|
|
710
|
-
return
|
|
711
|
-
const { query: O } = a(n), T = new RegExp(
|
|
710
|
+
return H($, (n) => {
|
|
711
|
+
const { query: O } = a(n), T = new RegExp(Wt(O), "i");
|
|
712
712
|
l.visible = T.test(b.value) || e.created, l.visible || o.filteredOptionsCount--;
|
|
713
713
|
}, { immediate: !0 }), {
|
|
714
714
|
select: o,
|
|
@@ -752,7 +752,7 @@ const vn = ge({
|
|
|
752
752
|
b.cachedOptions.get(A) === m && !O && b.cachedOptions.delete(A);
|
|
753
753
|
}), b.onOptionDestroy(A, m);
|
|
754
754
|
});
|
|
755
|
-
function
|
|
755
|
+
function F() {
|
|
756
756
|
e.disabled !== !0 && s.groupDisabled !== !0 && b.handleOptionSelect(m);
|
|
757
757
|
}
|
|
758
758
|
return {
|
|
@@ -765,13 +765,13 @@ const vn = ge({
|
|
|
765
765
|
hoverItem: f,
|
|
766
766
|
visible: w,
|
|
767
767
|
hover: g,
|
|
768
|
-
selectOptionClick:
|
|
768
|
+
selectOptionClick: F,
|
|
769
769
|
states: s
|
|
770
770
|
};
|
|
771
771
|
}
|
|
772
772
|
});
|
|
773
773
|
function mn(e, l, o, s, c, u) {
|
|
774
|
-
return
|
|
774
|
+
return We((y(), k("li", {
|
|
775
775
|
class: S(e.containerKls),
|
|
776
776
|
onMouseenter: l[0] || (l[0] = (...p) => e.hoverItem && e.hoverItem(...p)),
|
|
777
777
|
onClick: l[1] || (l[1] = ee((...p) => e.selectOptionClick && e.selectOptionClick(...p), ["stop"]))
|
|
@@ -783,7 +783,7 @@ function mn(e, l, o, s, c, u) {
|
|
|
783
783
|
[hl, e.visible]
|
|
784
784
|
]);
|
|
785
785
|
}
|
|
786
|
-
var
|
|
786
|
+
var Fl = /* @__PURE__ */ He(vn, [["render", mn], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);
|
|
787
787
|
const hn = ge({
|
|
788
788
|
name: "ElSelectDropdown",
|
|
789
789
|
componentName: "ElSelectDropdown",
|
|
@@ -805,14 +805,14 @@ const hn = ge({
|
|
|
805
805
|
}
|
|
806
806
|
});
|
|
807
807
|
function bn(e, l, o, s, c, u) {
|
|
808
|
-
return y(),
|
|
808
|
+
return y(), k("div", {
|
|
809
809
|
class: S([e.ns.b("dropdown"), e.ns.is("multiple", e.isMultiple), e.popperClass]),
|
|
810
810
|
style: se({ [e.isFitInputWidth ? "width" : "minWidth"]: e.minWidth })
|
|
811
811
|
}, [
|
|
812
812
|
X(e.$slots, "default")
|
|
813
813
|
], 6);
|
|
814
814
|
}
|
|
815
|
-
var gn = /* @__PURE__ */
|
|
815
|
+
var gn = /* @__PURE__ */ He(hn, [["render", bn], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);
|
|
816
816
|
function yn(e) {
|
|
817
817
|
const { t: l } = Kl();
|
|
818
818
|
return bl({
|
|
@@ -850,12 +850,12 @@ const Cn = (e, l, o) => {
|
|
|
850
850
|
scope: "props",
|
|
851
851
|
ref: "https://element-plus.org/en-US/component/select.html#select-attributes"
|
|
852
852
|
}, v(() => e.suffixTransition === !1));
|
|
853
|
-
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), F = K(null), A = K(-1), $ = Re({ query: "" }), n = Re(""), O = K([]);
|
|
854
854
|
let T = 0;
|
|
855
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(() => {
|
|
856
856
|
const t = e.multiple ? Array.isArray(e.modelValue) && e.modelValue.length > 0 : e.modelValue !== void 0 && e.modelValue !== null && e.modelValue !== "";
|
|
857
857
|
return e.clearable && !j.value && l.inputHovering && t;
|
|
858
|
-
}),
|
|
858
|
+
}), J = v(() => e.remote && e.filterable && !e.remoteShowSuffix ? "" : e.suffixIcon), oe = v(() => c.is("reverse", J.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(() => {
|
|
859
859
|
const t = Array.from(l.options.values()), i = [];
|
|
860
860
|
return O.value.forEach((d) => {
|
|
861
861
|
const C = t.findIndex((N) => N.currentLabel === d);
|
|
@@ -872,32 +872,32 @@ const Cn = (e, l, o) => {
|
|
|
872
872
|
l.visible = t;
|
|
873
873
|
}
|
|
874
874
|
});
|
|
875
|
-
|
|
875
|
+
H([() => j.value, () => ae.value, () => E == null ? void 0 : E.size], () => {
|
|
876
876
|
D(() => {
|
|
877
877
|
Q();
|
|
878
878
|
});
|
|
879
|
-
}),
|
|
879
|
+
}), H(() => e.placeholder, (t) => {
|
|
880
880
|
l.cachedPlaceHolder = l.currentPlaceholder = t, e.multiple && Array.isArray(e.modelValue) && e.modelValue.length > 0 && (l.currentPlaceholder = "");
|
|
881
|
-
}),
|
|
882
|
-
e.multiple && (Q(), t && t.length > 0 || p.value && l.query !== "" ? l.currentPlaceholder = "" : l.currentPlaceholder = l.cachedPlaceHolder, e.filterable && !e.reserveKeyword && (l.query = "",
|
|
881
|
+
}), H(() => e.modelValue, (t, i) => {
|
|
882
|
+
e.multiple && (Q(), t && t.length > 0 || p.value && l.query !== "" ? l.currentPlaceholder = "" : l.currentPlaceholder = l.cachedPlaceHolder, e.filterable && !e.reserveKeyword && (l.query = "", B(l.query))), U(), e.filterable && !e.multiple && (l.inputLength = 20), !Nl(t, i) && e.validateEvent && (q == null || q.validate("change").catch((d) => il(d)));
|
|
883
883
|
}, {
|
|
884
884
|
flush: "post",
|
|
885
885
|
deep: !0
|
|
886
|
-
}),
|
|
887
|
-
var i, d, C, N,
|
|
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 ? (
|
|
886
|
+
}), H(() => l.visible, (t) => {
|
|
887
|
+
var i, d, C, N, W;
|
|
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 ? (W = p.value) == null || W.focus() : l.selectedLabel && (l.currentPlaceholder = `${l.selectedLabel}`, l.selectedLabel = ""), B(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(() => {
|
|
889
889
|
p.value && p.value.value === "" && l.selected.length === 0 && (l.currentPlaceholder = l.cachedPlaceHolder);
|
|
890
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);
|
|
891
|
-
}),
|
|
891
|
+
}), H(() => l.options.entries(), () => {
|
|
892
892
|
var t, i, d;
|
|
893
893
|
if (!Al)
|
|
894
894
|
return;
|
|
895
895
|
(i = (t = f.value) == null ? void 0 : t.updatePopper) == null || i.call(t), e.multiple && Q();
|
|
896
896
|
const C = ((d = m.value) == null ? void 0 : d.querySelectorAll("input")) || [];
|
|
897
|
-
(!e.filterable && !e.defaultFirstOption && !
|
|
897
|
+
(!e.filterable && !e.defaultFirstOption && !kt(e.modelValue) || !Array.from(C).includes(document.activeElement)) && U(), e.defaultFirstOption && (e.filterable || e.remote) && l.filteredOptionsCount && Ce();
|
|
898
898
|
}, {
|
|
899
899
|
flush: "post"
|
|
900
|
-
}),
|
|
900
|
+
}), H(() => l.hoverIndex, (t) => {
|
|
901
901
|
Ml(t) && t > -1 ? A.value = P.value[t] || {} : A.value = {}, P.value.forEach((i) => {
|
|
902
902
|
i.hover = A.value === i;
|
|
903
903
|
});
|
|
@@ -909,10 +909,10 @@ const Cn = (e, l, o) => {
|
|
|
909
909
|
return;
|
|
910
910
|
const d = u.value.$el.querySelector("input");
|
|
911
911
|
T = T || (d.clientHeight > 0 ? d.clientHeight + 2 : 0);
|
|
912
|
-
const C = g.value, N =
|
|
913
|
-
!(d.offsetParent === null) && (d.style.height = `${(l.selected.length === 0 ?
|
|
912
|
+
const C = g.value, N = Ht(ae.value || (E == null ? void 0 : E.size)), W = ae.value || N === T || T <= 0 ? N : T;
|
|
913
|
+
!(d.offsetParent === null) && (d.style.height = `${(l.selected.length === 0 ? W : Math.max(C ? C.clientHeight + (C.clientHeight > W ? 6 : 0) : 0, W)) - 2}px`), l.visible && ie.value !== !1 && ((i = (t = f.value) == null ? void 0 : t.updatePopper) == null || i.call(t));
|
|
914
914
|
});
|
|
915
|
-
},
|
|
915
|
+
}, B = async (t) => {
|
|
916
916
|
if (!(l.previousQuery === t || l.isOnComposition)) {
|
|
917
917
|
if (l.previousQuery === null && (Pe(e.filterMethod) || Pe(e.remoteMethod))) {
|
|
918
918
|
l.previousQuery = t;
|
|
@@ -951,23 +951,23 @@ const Cn = (e, l, o) => {
|
|
|
951
951
|
});
|
|
952
952
|
}, Se = (t) => {
|
|
953
953
|
let i;
|
|
954
|
-
const d =
|
|
954
|
+
const d = kl(t).toLowerCase() === "object", C = kl(t).toLowerCase() === "null", N = kl(t).toLowerCase() === "undefined";
|
|
955
955
|
for (let me = l.cachedOptions.size - 1; me >= 0; me--) {
|
|
956
|
-
const
|
|
957
|
-
if (d ? le(
|
|
956
|
+
const Z = Ke.value[me];
|
|
957
|
+
if (d ? le(Z.value, e.valueKey) === le(t, e.valueKey) : Z.value === t) {
|
|
958
958
|
i = {
|
|
959
959
|
value: t,
|
|
960
|
-
currentLabel:
|
|
961
|
-
isDisabled:
|
|
960
|
+
currentLabel: Z.currentLabel,
|
|
961
|
+
isDisabled: Z.isDisabled
|
|
962
962
|
};
|
|
963
963
|
break;
|
|
964
964
|
}
|
|
965
965
|
}
|
|
966
966
|
if (i)
|
|
967
967
|
return i;
|
|
968
|
-
const
|
|
968
|
+
const W = d ? t.label : !C && !N ? t : "", ve = {
|
|
969
969
|
value: t,
|
|
970
|
-
currentLabel:
|
|
970
|
+
currentLabel: W
|
|
971
971
|
};
|
|
972
972
|
return e.multiple && (ve.hitState = !1), ve;
|
|
973
973
|
}, Ue = () => {
|
|
@@ -982,15 +982,15 @@ const Cn = (e, l, o) => {
|
|
|
982
982
|
var t;
|
|
983
983
|
l.inputWidth = (t = u.value) == null ? void 0 : t.$el.offsetWidth;
|
|
984
984
|
}, Xe = () => {
|
|
985
|
-
e.filterable && l.query !== l.selectedLabel && (l.query = l.selectedLabel,
|
|
986
|
-
}, de =
|
|
985
|
+
e.filterable && l.query !== l.selectedLabel && (l.query = l.selectedLabel, B(l.query));
|
|
986
|
+
}, de = Bl(() => {
|
|
987
987
|
Xe();
|
|
988
|
-
}, ye.value), rl =
|
|
989
|
-
|
|
988
|
+
}, ye.value), rl = Bl((t) => {
|
|
989
|
+
B(t.target.value);
|
|
990
990
|
}, ye.value), ce = (t) => {
|
|
991
991
|
Nl(e.modelValue, t) || o.emit(xl, t);
|
|
992
|
-
}, G = (t) => Rt(t, (i) => !l.disabledOptions.has(i)),
|
|
993
|
-
if (t.code !==
|
|
992
|
+
}, G = (t) => Rt(t, (i) => !l.disabledOptions.has(i)), Le = (t) => {
|
|
993
|
+
if (t.code !== Wl.delete) {
|
|
994
994
|
if (t.target.value.length <= 0 && !Oe()) {
|
|
995
995
|
const i = e.modelValue.slice(), d = G(i);
|
|
996
996
|
if (d < 0)
|
|
@@ -999,7 +999,7 @@ const Cn = (e, l, o) => {
|
|
|
999
999
|
}
|
|
1000
1000
|
t.target.value.length === 1 && e.modelValue.length === 0 && (l.currentPlaceholder = l.cachedPlaceHolder);
|
|
1001
1001
|
}
|
|
1002
|
-
},
|
|
1002
|
+
}, ke = (t, i) => {
|
|
1003
1003
|
const d = l.selected.indexOf(i);
|
|
1004
1004
|
if (d > -1 && !j.value) {
|
|
1005
1005
|
const C = e.modelValue.slice();
|
|
@@ -1017,7 +1017,7 @@ const Cn = (e, l, o) => {
|
|
|
1017
1017
|
var i;
|
|
1018
1018
|
if (e.multiple) {
|
|
1019
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 = "",
|
|
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 = "", B(""), l.inputLength = 20), e.filterable && ((i = p.value) == null || i.focus());
|
|
1021
1021
|
} else
|
|
1022
1022
|
o.emit(te, t.value), ce(t.value), l.visible = !1;
|
|
1023
1023
|
Ve(), !l.visible && D(() => {
|
|
@@ -1028,29 +1028,29 @@ const Cn = (e, l, o) => {
|
|
|
1028
1028
|
return t.indexOf(i);
|
|
1029
1029
|
const d = e.valueKey;
|
|
1030
1030
|
let C = -1;
|
|
1031
|
-
return t.some((N,
|
|
1031
|
+
return t.some((N, W) => pl(le(N, d)) === le(i, d) ? (C = W, !0) : !1), C;
|
|
1032
1032
|
}, Ve = () => {
|
|
1033
1033
|
const t = p.value || u.value;
|
|
1034
1034
|
t && (t == null || t.focus());
|
|
1035
1035
|
}, pe = (t) => {
|
|
1036
|
-
var i, d, C, N,
|
|
1036
|
+
var i, d, C, N, W;
|
|
1037
1037
|
const ve = Array.isArray(t) ? t[0] : t;
|
|
1038
1038
|
let me = null;
|
|
1039
1039
|
if (ve != null && ve.value) {
|
|
1040
|
-
const
|
|
1041
|
-
|
|
1040
|
+
const Z = P.value.filter((R) => R.value === ve.value);
|
|
1041
|
+
Z.length > 0 && (me = Z[0].$el);
|
|
1042
1042
|
}
|
|
1043
1043
|
if (f.value && me) {
|
|
1044
|
-
const
|
|
1045
|
-
|
|
1044
|
+
const Z = (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
|
+
Z && zt(Z, me);
|
|
1046
1046
|
}
|
|
1047
|
-
(
|
|
1048
|
-
},
|
|
1047
|
+
(W = F.value) == null || W.handleScroll();
|
|
1048
|
+
}, Je = (t) => {
|
|
1049
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);
|
|
1050
|
-
},
|
|
1050
|
+
}, Ze = (t, i) => {
|
|
1051
1051
|
l.options.get(t) === i && (l.optionsCount--, l.filteredOptionsCount--, l.options.delete(t));
|
|
1052
1052
|
}, xe = (t) => {
|
|
1053
|
-
t.code !==
|
|
1053
|
+
t.code !== Wl.backspace && Oe(!1), l.inputLength = p.value.value.length * 15 + 20, Q();
|
|
1054
1054
|
}, Oe = (t) => {
|
|
1055
1055
|
if (!Array.isArray(l.selected))
|
|
1056
1056
|
return;
|
|
@@ -1060,12 +1060,12 @@ const Cn = (e, l, o) => {
|
|
|
1060
1060
|
}, _e = (t) => {
|
|
1061
1061
|
const i = t.target.value;
|
|
1062
1062
|
if (t.type === "compositionend")
|
|
1063
|
-
l.isOnComposition = !1, D(() =>
|
|
1063
|
+
l.isOnComposition = !1, D(() => B(i));
|
|
1064
1064
|
else {
|
|
1065
1065
|
const d = i[i.length - 1] || "";
|
|
1066
1066
|
l.isOnComposition = !_l(d);
|
|
1067
1067
|
}
|
|
1068
|
-
},
|
|
1068
|
+
}, Fe = () => {
|
|
1069
1069
|
D(() => pe(l.selected));
|
|
1070
1070
|
}, r = (t) => {
|
|
1071
1071
|
l.focused || ((e.automaticDropdown || e.filterable) && (e.filterable && !l.visible && (l.menuVisibleOnFocus = !0), l.visible = !0), l.focused = !0, o.emit("focus", t));
|
|
@@ -1102,9 +1102,9 @@ const Cn = (e, l, o) => {
|
|
|
1102
1102
|
l.mouseEnter = !0;
|
|
1103
1103
|
}, Ol = () => {
|
|
1104
1104
|
l.mouseEnter = !1;
|
|
1105
|
-
},
|
|
1105
|
+
}, Be = (t, i) => {
|
|
1106
1106
|
var d, C;
|
|
1107
|
-
|
|
1107
|
+
ke(t, i), (C = (d = w.value) == null ? void 0 : d.updatePopper) == null || C.call(d);
|
|
1108
1108
|
}, Il = v(() => ({
|
|
1109
1109
|
maxWidth: `${a(l.inputWidth) - 32 - (qe.value ? 22 : 0)}px`,
|
|
1110
1110
|
width: "100%"
|
|
@@ -1116,15 +1116,15 @@ const Cn = (e, l, o) => {
|
|
|
1116
1116
|
handleResize: Ge,
|
|
1117
1117
|
debouncedOnInputChange: de,
|
|
1118
1118
|
debouncedQueryChange: rl,
|
|
1119
|
-
deletePrevTag:
|
|
1120
|
-
deleteTag:
|
|
1119
|
+
deletePrevTag: Le,
|
|
1120
|
+
deleteTag: ke,
|
|
1121
1121
|
deleteSelected: we,
|
|
1122
1122
|
handleOptionSelect: $e,
|
|
1123
1123
|
scrollToOption: pe,
|
|
1124
1124
|
readonly: ne,
|
|
1125
1125
|
resetInputHeight: Q,
|
|
1126
1126
|
showClose: De,
|
|
1127
|
-
iconComponent:
|
|
1127
|
+
iconComponent: J,
|
|
1128
1128
|
iconReverse: oe,
|
|
1129
1129
|
showNewOption: re,
|
|
1130
1130
|
collapseTagSize: je,
|
|
@@ -1135,9 +1135,9 @@ const Cn = (e, l, o) => {
|
|
|
1135
1135
|
toggleLastOptionHitState: Oe,
|
|
1136
1136
|
resetInputState: xe,
|
|
1137
1137
|
handleComposition: _e,
|
|
1138
|
-
onOptionCreate:
|
|
1139
|
-
onOptionDestroy:
|
|
1140
|
-
handleMenuEnter:
|
|
1138
|
+
onOptionCreate: Je,
|
|
1139
|
+
onOptionDestroy: Ze,
|
|
1140
|
+
handleMenuEnter: Fe,
|
|
1141
1141
|
handleFocus: r,
|
|
1142
1142
|
focus: h,
|
|
1143
1143
|
blur: M,
|
|
@@ -1149,7 +1149,7 @@ const Cn = (e, l, o) => {
|
|
|
1149
1149
|
selectOption: dl,
|
|
1150
1150
|
getValueKey: ll,
|
|
1151
1151
|
navigateOptions: nl,
|
|
1152
|
-
handleDeleteTooltipTag:
|
|
1152
|
+
handleDeleteTooltipTag: Be,
|
|
1153
1153
|
dropMenuVisible: Qe,
|
|
1154
1154
|
queryChange: $,
|
|
1155
1155
|
groupQueryChange: n,
|
|
@@ -1163,7 +1163,7 @@ const Cn = (e, l, o) => {
|
|
|
1163
1163
|
tagTooltipRef: w,
|
|
1164
1164
|
tags: g,
|
|
1165
1165
|
selectWrapper: m,
|
|
1166
|
-
scrollbar:
|
|
1166
|
+
scrollbar: F,
|
|
1167
1167
|
handleMouseEnter: wl,
|
|
1168
1168
|
handleMouseLeave: Ol
|
|
1169
1169
|
};
|
|
@@ -1186,8 +1186,8 @@ var Sn = ge({
|
|
|
1186
1186
|
const b = (u = l.default) == null ? void 0 : u.call(l), f = [];
|
|
1187
1187
|
function w(g) {
|
|
1188
1188
|
Array.isArray(g) && g.forEach((m) => {
|
|
1189
|
-
var
|
|
1190
|
-
const O = (
|
|
1189
|
+
var F, A, $, n;
|
|
1190
|
+
const O = (F = (m == null ? void 0 : m.type) || {}) == null ? void 0 : F.name;
|
|
1191
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);
|
|
1192
1192
|
});
|
|
1193
1193
|
}
|
|
@@ -1201,7 +1201,7 @@ const jl = "ElSelect", wn = ge({
|
|
|
1201
1201
|
components: {
|
|
1202
1202
|
ElInput: sn,
|
|
1203
1203
|
ElSelectMenu: gn,
|
|
1204
|
-
ElOption:
|
|
1204
|
+
ElOption: Fl,
|
|
1205
1205
|
ElOptions: Sn,
|
|
1206
1206
|
ElTag: pn,
|
|
1207
1207
|
ElScrollbar: ft,
|
|
@@ -1322,7 +1322,7 @@ const jl = "ElSelect", wn = ge({
|
|
|
1322
1322
|
readonly: w,
|
|
1323
1323
|
handleResize: g,
|
|
1324
1324
|
collapseTagSize: m,
|
|
1325
|
-
debouncedOnInputChange:
|
|
1325
|
+
debouncedOnInputChange: F,
|
|
1326
1326
|
debouncedQueryChange: A,
|
|
1327
1327
|
deletePrevTag: $,
|
|
1328
1328
|
deleteTag: n,
|
|
@@ -1333,7 +1333,7 @@ const jl = "ElSelect", wn = ge({
|
|
|
1333
1333
|
resetInputHeight: ne,
|
|
1334
1334
|
managePlaceholder: j,
|
|
1335
1335
|
showClose: De,
|
|
1336
|
-
selectDisabled:
|
|
1336
|
+
selectDisabled: J,
|
|
1337
1337
|
iconComponent: oe,
|
|
1338
1338
|
iconReverse: qe,
|
|
1339
1339
|
showNewOption: ye,
|
|
@@ -1345,7 +1345,7 @@ const jl = "ElSelect", wn = ge({
|
|
|
1345
1345
|
onOptionDestroy: je,
|
|
1346
1346
|
handleMenuEnter: Qe,
|
|
1347
1347
|
handleFocus: Q,
|
|
1348
|
-
focus:
|
|
1348
|
+
focus: B,
|
|
1349
1349
|
blur: ue,
|
|
1350
1350
|
handleBlur: Ce,
|
|
1351
1351
|
handleClearClick: U,
|
|
@@ -1358,19 +1358,19 @@ const jl = "ElSelect", wn = ge({
|
|
|
1358
1358
|
handleDeleteTooltipTag: rl,
|
|
1359
1359
|
dropMenuVisible: ce,
|
|
1360
1360
|
reference: G,
|
|
1361
|
-
input:
|
|
1362
|
-
iOSInput:
|
|
1361
|
+
input: Le,
|
|
1362
|
+
iOSInput: ke,
|
|
1363
1363
|
tooltipRef: we,
|
|
1364
1364
|
tagTooltipRef: $e,
|
|
1365
1365
|
tags: Me,
|
|
1366
1366
|
selectWrapper: Ve,
|
|
1367
1367
|
scrollbar: pe,
|
|
1368
|
-
queryChange:
|
|
1369
|
-
groupQueryChange:
|
|
1368
|
+
queryChange: Je,
|
|
1369
|
+
groupQueryChange: Ze,
|
|
1370
1370
|
handleMouseEnter: xe,
|
|
1371
1371
|
handleMouseLeave: Oe,
|
|
1372
1372
|
showTagList: _e,
|
|
1373
|
-
collapseTagList:
|
|
1373
|
+
collapseTagList: Fe,
|
|
1374
1374
|
selectTagsStyle: r
|
|
1375
1375
|
} = Cn(e, u, l), {
|
|
1376
1376
|
inputWidth: h,
|
|
@@ -1388,28 +1388,28 @@ const jl = "ElSelect", wn = ge({
|
|
|
1388
1388
|
options: nl,
|
|
1389
1389
|
cachedOptions: wl,
|
|
1390
1390
|
optionsCount: Ol,
|
|
1391
|
-
prefixWidth:
|
|
1391
|
+
prefixWidth: Be
|
|
1392
1392
|
} = Vl(u), Il = v(() => {
|
|
1393
1393
|
const R = [o.b()], ze = a(f);
|
|
1394
1394
|
return ze && R.push(o.m(ze)), e.disabled && R.push(o.m("disabled")), R;
|
|
1395
1395
|
}), t = v(() => [
|
|
1396
1396
|
o.e("tags"),
|
|
1397
|
-
o.is("disabled", a(
|
|
1397
|
+
o.is("disabled", a(J))
|
|
1398
1398
|
]), i = v(() => [
|
|
1399
1399
|
o.b("tags-wrapper"),
|
|
1400
|
-
{ "has-prefix": a(
|
|
1400
|
+
{ "has-prefix": a(Be) && a(M).length }
|
|
1401
1401
|
]), d = v(() => [
|
|
1402
1402
|
o.e("input"),
|
|
1403
1403
|
o.is(a(f)),
|
|
1404
|
-
o.is("disabled", a(
|
|
1404
|
+
o.is("disabled", a(J))
|
|
1405
1405
|
]), C = v(() => [
|
|
1406
1406
|
o.e("input"),
|
|
1407
1407
|
o.is(a(f)),
|
|
1408
1408
|
o.em("input", "iOS")
|
|
1409
1409
|
]), N = v(() => [
|
|
1410
1410
|
o.is("empty", !e.allowCreate && !!a(dl) && a(Ie) === 0)
|
|
1411
|
-
]),
|
|
1412
|
-
marginLeft: `${a(
|
|
1411
|
+
]), W = v(() => ({ maxWidth: `${a(h) > 123 ? a(h) - 123 : a(h) - 75}px` })), ve = v(() => ({
|
|
1412
|
+
marginLeft: `${a(Be)}px`,
|
|
1413
1413
|
flexGrow: 1,
|
|
1414
1414
|
width: `${a(fe) / (a(h) - 32)}%`,
|
|
1415
1415
|
maxWidth: `${a(h) - 42}px`
|
|
@@ -1428,14 +1428,14 @@ const jl = "ElSelect", wn = ge({
|
|
|
1428
1428
|
selectWrapper: Ve,
|
|
1429
1429
|
selected: M,
|
|
1430
1430
|
setSelected: q,
|
|
1431
|
-
queryChange:
|
|
1432
|
-
groupQueryChange:
|
|
1431
|
+
queryChange: Je,
|
|
1432
|
+
groupQueryChange: Ze
|
|
1433
1433
|
})), ml(() => {
|
|
1434
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(() => {
|
|
1435
1435
|
const R = G.value && G.value.$el;
|
|
1436
1436
|
if (R && (h.value = R.getBoundingClientRect().width, l.slots.prefix)) {
|
|
1437
1437
|
const ze = R.querySelector(`.${s.e("prefix")}`);
|
|
1438
|
-
|
|
1438
|
+
Be.value = Math.max(ze.getBoundingClientRect().width + 11, 30);
|
|
1439
1439
|
}
|
|
1440
1440
|
}), q();
|
|
1441
1441
|
}), e.multiple && !Array.isArray(e.modelValue) && l.emit(te, []), !e.multiple && Array.isArray(e.modelValue) && l.emit(te, "");
|
|
@@ -1448,12 +1448,12 @@ const jl = "ElSelect", wn = ge({
|
|
|
1448
1448
|
onOptionsRendered: (R) => {
|
|
1449
1449
|
p.value = R;
|
|
1450
1450
|
},
|
|
1451
|
-
prefixWidth:
|
|
1451
|
+
prefixWidth: Be,
|
|
1452
1452
|
selectSize: f,
|
|
1453
1453
|
readonly: w,
|
|
1454
1454
|
handleResize: g,
|
|
1455
1455
|
collapseTagSize: m,
|
|
1456
|
-
debouncedOnInputChange:
|
|
1456
|
+
debouncedOnInputChange: F,
|
|
1457
1457
|
debouncedQueryChange: A,
|
|
1458
1458
|
deletePrevTag: $,
|
|
1459
1459
|
deleteTag: n,
|
|
@@ -1477,7 +1477,7 @@ const jl = "ElSelect", wn = ge({
|
|
|
1477
1477
|
resetInputHeight: ne,
|
|
1478
1478
|
managePlaceholder: j,
|
|
1479
1479
|
showClose: De,
|
|
1480
|
-
selectDisabled:
|
|
1480
|
+
selectDisabled: J,
|
|
1481
1481
|
iconComponent: oe,
|
|
1482
1482
|
iconReverse: qe,
|
|
1483
1483
|
showNewOption: ye,
|
|
@@ -1487,7 +1487,7 @@ const jl = "ElSelect", wn = ge({
|
|
|
1487
1487
|
handleComposition: re,
|
|
1488
1488
|
handleMenuEnter: Qe,
|
|
1489
1489
|
handleFocus: Q,
|
|
1490
|
-
focus:
|
|
1490
|
+
focus: B,
|
|
1491
1491
|
blur: ue,
|
|
1492
1492
|
handleBlur: Ce,
|
|
1493
1493
|
handleClearClick: U,
|
|
@@ -1499,8 +1499,8 @@ const jl = "ElSelect", wn = ge({
|
|
|
1499
1499
|
navigateOptions: de,
|
|
1500
1500
|
dropMenuVisible: ce,
|
|
1501
1501
|
reference: G,
|
|
1502
|
-
input:
|
|
1503
|
-
iOSInput:
|
|
1502
|
+
input: Le,
|
|
1503
|
+
iOSInput: ke,
|
|
1504
1504
|
tooltipRef: we,
|
|
1505
1505
|
popperPaneRef: me,
|
|
1506
1506
|
tags: Me,
|
|
@@ -1514,19 +1514,19 @@ const jl = "ElSelect", wn = ge({
|
|
|
1514
1514
|
scrollbarKls: N,
|
|
1515
1515
|
selectTagsStyle: r,
|
|
1516
1516
|
nsSelect: o,
|
|
1517
|
-
tagTextStyle:
|
|
1517
|
+
tagTextStyle: W,
|
|
1518
1518
|
inputStyle: ve,
|
|
1519
1519
|
handleMouseEnter: xe,
|
|
1520
1520
|
handleMouseLeave: Oe,
|
|
1521
1521
|
showTagList: _e,
|
|
1522
|
-
collapseTagList:
|
|
1522
|
+
collapseTagList: Fe,
|
|
1523
1523
|
tagTooltipRef: $e
|
|
1524
1524
|
};
|
|
1525
1525
|
}
|
|
1526
1526
|
}), On = ["disabled", "autocomplete", "aria-label"], In = ["disabled"], En = { style: { height: "100%", display: "flex", "justify-content": "center", "align-items": "center" } };
|
|
1527
1527
|
function Tn(e, l, o, s, c, u) {
|
|
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"),
|
|
1529
|
-
return
|
|
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"), F = Ee("el-scrollbar"), A = Ee("el-select-menu"), $ = st("click-outside");
|
|
1529
|
+
return We((y(), k("div", {
|
|
1530
1530
|
ref: "selectWrapper",
|
|
1531
1531
|
class: S(e.wrapperKls),
|
|
1532
1532
|
onMouseenter: l[22] || (l[22] = (...n) => e.handleMouseEnter && e.handleMouseEnter(...n)),
|
|
@@ -1550,13 +1550,13 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1550
1550
|
persistent: e.persistent,
|
|
1551
1551
|
onShow: e.handleMenuEnter
|
|
1552
1552
|
}, {
|
|
1553
|
-
default:
|
|
1553
|
+
default: L(() => [
|
|
1554
1554
|
z("div", {
|
|
1555
1555
|
class: "select-trigger",
|
|
1556
1556
|
onMouseenter: l[20] || (l[20] = (n) => e.inputHovering = !0),
|
|
1557
1557
|
onMouseleave: l[21] || (l[21] = (n) => e.inputHovering = !1)
|
|
1558
1558
|
}, [
|
|
1559
|
-
e.multiple ? (y(),
|
|
1559
|
+
e.multiple ? (y(), k("div", {
|
|
1560
1560
|
key: 0,
|
|
1561
1561
|
ref: "tags",
|
|
1562
1562
|
tabindex: "-1",
|
|
@@ -1568,11 +1568,11 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1568
1568
|
key: 0,
|
|
1569
1569
|
onAfterLeave: e.resetInputHeight
|
|
1570
1570
|
}, {
|
|
1571
|
-
default:
|
|
1571
|
+
default: L(() => [
|
|
1572
1572
|
z("span", {
|
|
1573
1573
|
class: S(e.tagWrapperKls)
|
|
1574
1574
|
}, [
|
|
1575
|
-
(y(!0),
|
|
1575
|
+
(y(!0), k(Ae, null, Tl(e.showTagList, (n) => (y(), V(p, {
|
|
1576
1576
|
key: e.getValueKey(n),
|
|
1577
1577
|
closable: !e.selectDisabled && !n.isDisabled,
|
|
1578
1578
|
size: e.collapseTagSize,
|
|
@@ -1581,7 +1581,7 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1581
1581
|
"disable-transitions": "",
|
|
1582
1582
|
onClose: (O) => e.deleteTag(O, n)
|
|
1583
1583
|
}, {
|
|
1584
|
-
default:
|
|
1584
|
+
default: L(() => [
|
|
1585
1585
|
z("span", {
|
|
1586
1586
|
class: S(e.nsSelect.e("tags-text")),
|
|
1587
1587
|
style: se(e.tagTextStyle)
|
|
@@ -1596,7 +1596,7 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1596
1596
|
type: e.tagType,
|
|
1597
1597
|
"disable-transitions": ""
|
|
1598
1598
|
}, {
|
|
1599
|
-
default:
|
|
1599
|
+
default: L(() => [
|
|
1600
1600
|
e.collapseTagsTooltip ? (y(), V(b, {
|
|
1601
1601
|
key: 0,
|
|
1602
1602
|
ref: "tagTooltipRef",
|
|
@@ -1606,16 +1606,16 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1606
1606
|
placement: "bottom",
|
|
1607
1607
|
teleported: e.teleported
|
|
1608
1608
|
}, {
|
|
1609
|
-
default:
|
|
1609
|
+
default: L(() => [
|
|
1610
1610
|
z("span", {
|
|
1611
1611
|
class: S(e.nsSelect.e("tags-text"))
|
|
1612
1612
|
}, "+ " + Y(e.selected.length - e.maxCollapseTags), 3)
|
|
1613
1613
|
]),
|
|
1614
|
-
content:
|
|
1614
|
+
content: L(() => [
|
|
1615
1615
|
z("div", {
|
|
1616
1616
|
class: S(e.nsSelect.e("collapse-tags"))
|
|
1617
1617
|
}, [
|
|
1618
|
-
(y(!0),
|
|
1618
|
+
(y(!0), k(Ae, null, Tl(e.collapseTagList, (n) => (y(), k("div", {
|
|
1619
1619
|
key: e.getValueKey(n),
|
|
1620
1620
|
class: S(e.nsSelect.e("collapse-tag"))
|
|
1621
1621
|
}, [
|
|
@@ -1629,7 +1629,7 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1629
1629
|
style: { margin: "2px" },
|
|
1630
1630
|
onClose: (O) => e.handleDeleteTooltipTag(O, n)
|
|
1631
1631
|
}, {
|
|
1632
|
-
default:
|
|
1632
|
+
default: L(() => [
|
|
1633
1633
|
z("span", {
|
|
1634
1634
|
class: S(e.nsSelect.e("tags-text")),
|
|
1635
1635
|
style: se({
|
|
@@ -1643,7 +1643,7 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1643
1643
|
], 2)
|
|
1644
1644
|
]),
|
|
1645
1645
|
_: 1
|
|
1646
|
-
}, 8, ["disabled", "effect", "teleported"])) : (y(),
|
|
1646
|
+
}, 8, ["disabled", "effect", "teleported"])) : (y(), k("span", {
|
|
1647
1647
|
key: 1,
|
|
1648
1648
|
class: S(e.nsSelect.e("tags-text"))
|
|
1649
1649
|
}, "+ " + Y(e.selected.length - e.maxCollapseTags), 3))
|
|
@@ -1658,12 +1658,12 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1658
1658
|
key: 1,
|
|
1659
1659
|
onAfterLeave: e.resetInputHeight
|
|
1660
1660
|
}, {
|
|
1661
|
-
default:
|
|
1661
|
+
default: L(() => [
|
|
1662
1662
|
z("span", {
|
|
1663
1663
|
class: S(e.tagWrapperKls),
|
|
1664
1664
|
style: se(e.prefixWidth && e.selected.length ? { marginLeft: `${e.prefixWidth}px` } : "")
|
|
1665
1665
|
}, [
|
|
1666
|
-
(y(!0),
|
|
1666
|
+
(y(!0), k(Ae, null, Tl(e.selected, (n) => (y(), V(p, {
|
|
1667
1667
|
key: e.getValueKey(n),
|
|
1668
1668
|
closable: !e.selectDisabled && !n.isDisabled,
|
|
1669
1669
|
size: e.collapseTagSize,
|
|
@@ -1672,7 +1672,7 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1672
1672
|
"disable-transitions": "",
|
|
1673
1673
|
onClose: (O) => e.deleteTag(O, n)
|
|
1674
1674
|
}, {
|
|
1675
|
-
default:
|
|
1675
|
+
default: L(() => [
|
|
1676
1676
|
z("span", {
|
|
1677
1677
|
class: S(e.nsSelect.e("tags-text")),
|
|
1678
1678
|
style: se({ maxWidth: e.inputWidth - 75 + "px" })
|
|
@@ -1684,7 +1684,7 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1684
1684
|
]),
|
|
1685
1685
|
_: 1
|
|
1686
1686
|
}, 8, ["onAfterLeave"])),
|
|
1687
|
-
e.filterable && !e.selectDisabled ?
|
|
1687
|
+
e.filterable && !e.selectDisabled ? We((y(), k("input", {
|
|
1688
1688
|
key: 2,
|
|
1689
1689
|
ref: "input",
|
|
1690
1690
|
"onUpdate:modelValue": l[0] || (l[0] = (n) => e.query = n),
|
|
@@ -1715,7 +1715,7 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1715
1715
|
]) : I("v-if", !0)
|
|
1716
1716
|
], 6)) : I("v-if", !0),
|
|
1717
1717
|
I(" fix: https://github.com/element-plus/element-plus/issues/11415 "),
|
|
1718
|
-
e.isIOS && !e.multiple && e.filterable && e.readonly ? (y(),
|
|
1718
|
+
e.isIOS && !e.multiple && e.filterable && e.readonly ? (y(), k("input", {
|
|
1719
1719
|
key: 1,
|
|
1720
1720
|
ref: "iOSInput",
|
|
1721
1721
|
class: S(e.iOSInputKls),
|
|
@@ -1753,12 +1753,12 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1753
1753
|
l[19] || (l[19] = x((n) => e.visible = !1, ["tab"]))
|
|
1754
1754
|
]
|
|
1755
1755
|
}, ut({
|
|
1756
|
-
suffix:
|
|
1756
|
+
suffix: L(() => [
|
|
1757
1757
|
e.iconComponent && !e.showClose ? (y(), V(f, {
|
|
1758
1758
|
key: 0,
|
|
1759
1759
|
class: S([e.nsSelect.e("caret"), e.nsSelect.e("icon"), e.iconReverse])
|
|
1760
1760
|
}, {
|
|
1761
|
-
default:
|
|
1761
|
+
default: L(() => [
|
|
1762
1762
|
(y(), V(Ne(e.iconComponent)))
|
|
1763
1763
|
]),
|
|
1764
1764
|
_: 1
|
|
@@ -1768,7 +1768,7 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1768
1768
|
class: S([e.nsSelect.e("caret"), e.nsSelect.e("icon")]),
|
|
1769
1769
|
onClick: e.handleClearClick
|
|
1770
1770
|
}, {
|
|
1771
|
-
default:
|
|
1771
|
+
default: L(() => [
|
|
1772
1772
|
(y(), V(Ne(e.clearIcon)))
|
|
1773
1773
|
]),
|
|
1774
1774
|
_: 1
|
|
@@ -1778,7 +1778,7 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1778
1778
|
}, [
|
|
1779
1779
|
e.$slots.prefix ? {
|
|
1780
1780
|
name: "prefix",
|
|
1781
|
-
fn:
|
|
1781
|
+
fn: L(() => [
|
|
1782
1782
|
z("div", En, [
|
|
1783
1783
|
X(e.$slots, "prefix")
|
|
1784
1784
|
])
|
|
@@ -1787,24 +1787,24 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1787
1787
|
]), 1032, ["id", "modelValue", "placeholder", "name", "autocomplete", "size", "disabled", "readonly", "class", "tabindex", "label", "onFocus", "onBlur", "onInput", "onPaste", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onKeydown"])
|
|
1788
1788
|
], 32)
|
|
1789
1789
|
]),
|
|
1790
|
-
content:
|
|
1790
|
+
content: L(() => [
|
|
1791
1791
|
he(A, null, {
|
|
1792
|
-
default:
|
|
1793
|
-
|
|
1792
|
+
default: L(() => [
|
|
1793
|
+
We(he(F, {
|
|
1794
1794
|
ref: "scrollbar",
|
|
1795
1795
|
tag: "ul",
|
|
1796
1796
|
"wrap-class": e.nsSelect.be("dropdown", "wrap"),
|
|
1797
1797
|
"view-class": e.nsSelect.be("dropdown", "list"),
|
|
1798
1798
|
class: S(e.scrollbarKls)
|
|
1799
1799
|
}, {
|
|
1800
|
-
default:
|
|
1800
|
+
default: L(() => [
|
|
1801
1801
|
e.showNewOption ? (y(), V(g, {
|
|
1802
1802
|
key: 0,
|
|
1803
1803
|
value: e.query,
|
|
1804
1804
|
created: !0
|
|
1805
1805
|
}, null, 8, ["value"])) : I("v-if", !0),
|
|
1806
1806
|
he(m, { onUpdateOptions: e.onOptionsRendered }, {
|
|
1807
|
-
default:
|
|
1807
|
+
default: L(() => [
|
|
1808
1808
|
X(e.$slots, "default")
|
|
1809
1809
|
]),
|
|
1810
1810
|
_: 3
|
|
@@ -1814,8 +1814,8 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1814
1814
|
}, 8, ["wrap-class", "view-class", "class"]), [
|
|
1815
1815
|
[hl, e.options.size > 0 && !e.loading]
|
|
1816
1816
|
]),
|
|
1817
|
-
e.emptyText && (!e.allowCreate || e.loading || e.allowCreate && e.options.size === 0) ? (y(),
|
|
1818
|
-
e.$slots.empty ? X(e.$slots, "empty", { key: 0 }) : (y(),
|
|
1817
|
+
e.emptyText && (!e.allowCreate || e.loading || e.allowCreate && e.options.size === 0) ? (y(), k(Ae, { key: 0 }, [
|
|
1818
|
+
e.$slots.empty ? X(e.$slots, "empty", { key: 0 }) : (y(), k("p", {
|
|
1819
1819
|
key: 1,
|
|
1820
1820
|
class: S(e.nsSelect.be("dropdown", "empty"))
|
|
1821
1821
|
}, Y(e.emptyText), 3))
|
|
@@ -1830,8 +1830,8 @@ function Tn(e, l, o, s, c, u) {
|
|
|
1830
1830
|
[$, e.handleClose, e.popperPaneRef]
|
|
1831
1831
|
]);
|
|
1832
1832
|
}
|
|
1833
|
-
var
|
|
1834
|
-
const
|
|
1833
|
+
var Ln = /* @__PURE__ */ He(wn, [["render", Tn], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);
|
|
1834
|
+
const kn = ge({
|
|
1835
1835
|
name: "ElOptionGroup",
|
|
1836
1836
|
componentName: "ElOptionGroup",
|
|
1837
1837
|
props: {
|
|
@@ -1854,7 +1854,7 @@ const Ln = ge({
|
|
|
1854
1854
|
g.type && g.type.name === "ElOption" && g.component && g.component.proxy ? w.push(g.component.proxy) : (m = g.children) != null && m.length && w.push(...p(g));
|
|
1855
1855
|
}), w;
|
|
1856
1856
|
}, { groupQueryChange: b } = pl(u);
|
|
1857
|
-
return
|
|
1857
|
+
return H(b, () => {
|
|
1858
1858
|
o.value = c.value.some((f) => f.visible === !0);
|
|
1859
1859
|
}, { flush: "post" }), {
|
|
1860
1860
|
visible: o,
|
|
@@ -1863,7 +1863,7 @@ const Ln = ge({
|
|
|
1863
1863
|
}
|
|
1864
1864
|
});
|
|
1865
1865
|
function $n(e, l, o, s, c, u) {
|
|
1866
|
-
return
|
|
1866
|
+
return We((y(), k("ul", {
|
|
1867
1867
|
class: S(e.ns.be("group", "wrap"))
|
|
1868
1868
|
}, [
|
|
1869
1869
|
z("li", {
|
|
@@ -1880,15 +1880,15 @@ function $n(e, l, o, s, c, u) {
|
|
|
1880
1880
|
[hl, e.visible]
|
|
1881
1881
|
]);
|
|
1882
1882
|
}
|
|
1883
|
-
var tt = /* @__PURE__ */
|
|
1884
|
-
const
|
|
1885
|
-
Option:
|
|
1883
|
+
var tt = /* @__PURE__ */ He(kn, [["render", $n], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);
|
|
1884
|
+
const Bn = Dl(Ln, {
|
|
1885
|
+
Option: Fl,
|
|
1886
1886
|
OptionGroup: tt
|
|
1887
|
-
}), Nn =
|
|
1888
|
-
|
|
1887
|
+
}), Nn = Zl(Fl);
|
|
1888
|
+
Zl(tt);
|
|
1889
1889
|
export {
|
|
1890
1890
|
Nn as E,
|
|
1891
|
-
|
|
1891
|
+
Bn as a,
|
|
1892
1892
|
sn as b,
|
|
1893
1893
|
pn as c
|
|
1894
1894
|
};
|