fangguo-component 1.1.1 → 1.1.2
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/dist/{FgCascader.vue_vue_type_style_index_0_lang-DXwP88Bn.js → FgCascader.vue_vue_type_style_index_0_lang-BUZDDcVn.js} +49 -48
- package/dist/components/cascader/index.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{index-CQzFbjNL.js → index-BRcBDlVs.js} +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
|
@@ -36,11 +36,11 @@ var pt = (e, t, n) => new Promise((l, a) => {
|
|
|
36
36
|
}, y = (m) => m.done ? l(m.value) : Promise.resolve(m.value).then(d, r);
|
|
37
37
|
y((n = n.apply(e, t)).next());
|
|
38
38
|
});
|
|
39
|
-
import { getCurrentScope as en, onScopeDispose as tn, watch as Q, computed as S, toValue as ve, shallowRef as Et, getCurrentInstance as wt, onMounted as Re, warn as nn, defineComponent as Ce, h as Ge, inject as $t, resolveComponent as le, openBlock as $, createElementBlock as K, normalizeClass as F, createBlock as Z, withModifiers as $e, withCtx as H, createElementVNode as pe, createVNode as ne, createCommentVNode as he, Fragment as Ae, ref as
|
|
39
|
+
import { getCurrentScope as en, onScopeDispose as tn, watch as Q, computed as S, toValue as ve, shallowRef as Et, getCurrentInstance as wt, onMounted as Re, warn as nn, defineComponent as Ce, h as Ge, inject as $t, resolveComponent as le, openBlock as $, createElementBlock as K, normalizeClass as F, createBlock as Z, withModifiers as $e, withCtx as H, createElementVNode as pe, createVNode as ne, createCommentVNode as he, Fragment as Ae, ref as P, normalizeStyle as Ie, createTextVNode as ln, toDisplayString as fe, provide as sn, reactive as an, onBeforeUpdate as on, nextTick as re, renderList as Oe, useAttrs as rn, unref as L, withDirectives as De, vShow as ft, renderSlot as At, withKeys as cn, vModelText as un, useSlots as dn, useModel as pn, onBeforeUnmount as fn, mergeProps as hn, mergeModels as ht, render as vt } from "vue";
|
|
40
40
|
import { p as Qe } from "./index-DIX8TpoT.js";
|
|
41
|
-
import { fromPairs as vn, isEqual as
|
|
42
|
-
import { ArrowRight as yn, Loading as
|
|
43
|
-
import { useNamespace as be, ElIcon as
|
|
41
|
+
import { fromPairs as vn, isEqual as Le, flattenDeep as mn, cloneDeep as Lt, debounce as gn } from "lodash-unified";
|
|
42
|
+
import { ArrowRight as yn, Loading as Pt, Check as Tt, CircleClose as bn, ArrowDown as Nn } from "@element-plus/icons-vue";
|
|
43
|
+
import { useNamespace as be, ElIcon as Pe, ElRadio as Cn, ElCheckbox as kn, ElScrollbar as Vt, useLocale as Mt, UPDATE_MODEL_EVENT as ze, CHANGE_EVENT as Be, EVENT_CODE as Y, tagProps as Sn, useTooltipContentProps as En, CommonProps as wn, useSizeProp as $n, useFormItem as An, useFormSize as Ln, ElConfigProvider as Pn, ElTooltip as mt, ElInput as Tn, ElTag as gt, ClickOutside as Vn } from "element-plus";
|
|
44
44
|
import { b as Mn } from "./vue-virtual-scroller.esm-CH-jx4ri.js";
|
|
45
45
|
import { _ as et } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
46
46
|
Qe.env.NODE_ENV !== "production" && Object.freeze({});
|
|
@@ -219,9 +219,9 @@ const zt = "__epPropKey", ye = (e) => e, Yn = (e) => We(e) && !!e[zt], Qn = (e,
|
|
|
219
219
|
ElCheckbox: kn,
|
|
220
220
|
ElRadio: Cn,
|
|
221
221
|
NodeContent: nl,
|
|
222
|
-
ElIcon:
|
|
222
|
+
ElIcon: Pe,
|
|
223
223
|
Check: Tt,
|
|
224
|
-
Loading:
|
|
224
|
+
Loading: Pt,
|
|
225
225
|
ArrowRight: yn
|
|
226
226
|
},
|
|
227
227
|
props: {
|
|
@@ -364,8 +364,8 @@ const ol = /* @__PURE__ */ et(ll, [["render", al]]), rl = (e, t = "14px sans-ser
|
|
|
364
364
|
}, il = Ce({
|
|
365
365
|
name: "CustomCascaderMenu",
|
|
366
366
|
components: {
|
|
367
|
-
Loading:
|
|
368
|
-
ElIcon:
|
|
367
|
+
Loading: Pt,
|
|
368
|
+
ElIcon: Pe,
|
|
369
369
|
ElScrollbar: Vt,
|
|
370
370
|
RecycleScroller: Mn,
|
|
371
371
|
CustomCascaderNode: ol
|
|
@@ -383,7 +383,7 @@ const ol = /* @__PURE__ */ et(ll, [["render", al]]), rl = (e, t = "14px sans-ser
|
|
|
383
383
|
setup(e) {
|
|
384
384
|
const t = wt(), n = be("cascader-menu"), { t: l } = Mt(), a = tl();
|
|
385
385
|
let d = null, r = null;
|
|
386
|
-
const y = $t(st), m =
|
|
386
|
+
const y = $t(st), m = P(null), u = S(() => !e.nodes.length), f = S(() => !y.initialLoaded), g = S(() => `cascader-menu-${a}-${e.index}`), C = S(() => {
|
|
387
387
|
if (!e.nodes.length) return 180;
|
|
388
388
|
const T = 110;
|
|
389
389
|
let B = 0;
|
|
@@ -614,12 +614,12 @@ class kt {
|
|
|
614
614
|
if (a) return a;
|
|
615
615
|
}
|
|
616
616
|
return this.getFlattedNodes(n).find(
|
|
617
|
-
(a) =>
|
|
617
|
+
(a) => Le(a.value, t) || Le(a.pathValues, t)
|
|
618
618
|
) || null;
|
|
619
619
|
}
|
|
620
620
|
getSameNode(t) {
|
|
621
621
|
return t && this.getFlattedNodes(!1).find(
|
|
622
|
-
({ value: l, level: a }) =>
|
|
622
|
+
({ value: l, level: a }) => Le(t.value, l) && t.level === a
|
|
623
623
|
) || null;
|
|
624
624
|
}
|
|
625
625
|
}
|
|
@@ -730,7 +730,7 @@ const fl = Bt({
|
|
|
730
730
|
let l = !1;
|
|
731
731
|
const a = be("cascader"), d = vl(e);
|
|
732
732
|
let r = null;
|
|
733
|
-
const y =
|
|
733
|
+
const y = P(!0), m = P([]), u = P(0), f = P(null), g = P([]), C = P(null), E = P([]), _ = S(() => d.value.expandTrigger === "hover"), W = S(() => e.renderLabel || n.default), ee = (o) => {
|
|
734
734
|
var p, b;
|
|
735
735
|
const i = o == null ? void 0 : o.$el;
|
|
736
736
|
return (p = i == null ? void 0 : i.classList) != null && p.contains("vue-recycle-scroller") ? i : ((b = i == null ? void 0 : i.querySelector) == null ? void 0 : b.call(i, ".vue-recycle-scroller")) || i;
|
|
@@ -801,7 +801,7 @@ const fl = Bt({
|
|
|
801
801
|
E.value = N, f.value = i ? k : (R = k[0]) != null ? R : null;
|
|
802
802
|
}, te = (o = !1, i = !1) => {
|
|
803
803
|
const { modelValue: p } = e, { lazy: b, multiple: N, checkStrictly: k } = d.value, R = !k;
|
|
804
|
-
if (!(!y.value || l || !i &&
|
|
804
|
+
if (!(!y.value || l || !i && Le(p, f.value)))
|
|
805
805
|
if (b && !o) {
|
|
806
806
|
const U = Nt(mn(Ct(p))).map((G) => r == null ? void 0 : r.getNodeByValue(G)).filter((G) => !!G && !G.loaded && !G.loading);
|
|
807
807
|
U.length ? U.forEach((G) => {
|
|
@@ -809,7 +809,7 @@ const fl = Bt({
|
|
|
809
809
|
}) : te(!0, i);
|
|
810
810
|
} else {
|
|
811
811
|
const q = N ? Ct(p) : [p], U = Nt(q.map((G) => r == null ? void 0 : r.getNodeByValue(G, R)));
|
|
812
|
-
ue(U, i), f.value =
|
|
812
|
+
ue(U, i), f.value = Lt(p);
|
|
813
813
|
}
|
|
814
814
|
}, ue = (o, i = !0) => {
|
|
815
815
|
var J;
|
|
@@ -881,7 +881,7 @@ const fl = Bt({
|
|
|
881
881
|
), Q(
|
|
882
882
|
() => f.value,
|
|
883
883
|
(o) => {
|
|
884
|
-
|
|
884
|
+
Le(o, e.modelValue) || (t(ze, o), t(Be, o));
|
|
885
885
|
}
|
|
886
886
|
), on(() => m.value = []), Re(() => !Xe(e.modelValue) && te()), {
|
|
887
887
|
ns: a,
|
|
@@ -1058,7 +1058,7 @@ const Nl = /* @__PURE__ */ et(yl, [["render", bl]]), Cl = Bt(xe(de({}, wn), {
|
|
|
1058
1058
|
]
|
|
1059
1059
|
}, a = e, d = n, r = rn();
|
|
1060
1060
|
let y = 0, m = 0;
|
|
1061
|
-
const u = be("cascader"), f = be("input"), { t: g } = Mt(), { form: C, formItem: E } = An(), _ =
|
|
1061
|
+
const u = be("cascader"), f = be("input"), { t: g } = Mt(), { form: C, formItem: E } = An(), _ = P(null), W = P(null), ee = P(null), T = P(null), B = P(null), D = P(!1), j = P(!1), O = P(!1), A = P(!1), I = P(""), x = P(""), z = P([]), ie = P([]), ce = P([]), te = P(!1), ue = P(), h = S(() => r.style), o = S(() => a.disabled || (C == null ? void 0 : C.disabled)), i = S(() => a.placeholder || g("el.cascader.placeholder")), p = S(() => x.value || z.value.length > 0 || te.value ? "" : i.value), b = Ln(), N = S(() => ["small"].includes(b.value) ? "small" : "default"), k = S(() => !!a.props.multiple), R = S(() => !a.filterable || k.value), q = S(() => k.value ? x.value : I.value), U = S(() => {
|
|
1062
1062
|
var s;
|
|
1063
1063
|
return ((s = T.value) == null ? void 0 : s.checkedNodes) || [];
|
|
1064
1064
|
}), G = S(() => !a.clearable || o.value || O.value || !j.value ? !1 : !!U.value.length), me = S(() => {
|
|
@@ -1066,7 +1066,7 @@ const Nl = /* @__PURE__ */ et(yl, [["render", bl]]), Cl = Bt(xe(de({}, wn), {
|
|
|
1066
1066
|
return v.length ? k.value ? "" : v[0].calcText(s, c) : "";
|
|
1067
1067
|
}), Ve = S({
|
|
1068
1068
|
get() {
|
|
1069
|
-
return
|
|
1069
|
+
return Lt(a.modelValue);
|
|
1070
1070
|
},
|
|
1071
1071
|
set(s) {
|
|
1072
1072
|
d(ze, s), d(Be, s), a.validateEvent && (E == null || E.validate("change").catch((c) => It(c)));
|
|
@@ -1213,7 +1213,7 @@ const Nl = /* @__PURE__ */ et(yl, [["render", bl]]), Cl = Bt(xe(de({}, wn), {
|
|
|
1213
1213
|
Fn(c) ? c.then(ot).catch(() => {
|
|
1214
1214
|
}) : c !== !1 ? ot() : X();
|
|
1215
1215
|
}, a.debounce), Je = (s, c) => {
|
|
1216
|
-
!D.value && J(!0), !(c != null && c.isComposing) && (s ? _t() : X());
|
|
1216
|
+
!D.value && J(!0), !(c != null && c.isComposing) && (s = s.trim(), s ? _t() : X());
|
|
1217
1217
|
}, Gt = () => {
|
|
1218
1218
|
var c;
|
|
1219
1219
|
const s = (c = W.value) == null ? void 0 : c.input;
|
|
@@ -1245,20 +1245,20 @@ const Nl = /* @__PURE__ */ et(yl, [["render", bl]]), Cl = Bt(xe(de({}, wn), {
|
|
|
1245
1245
|
* @description cascader content ref
|
|
1246
1246
|
*/
|
|
1247
1247
|
contentRef: Ee
|
|
1248
|
-
}), (s, c) => ($(), Z(
|
|
1248
|
+
}), (s, c) => ($(), Z(L(Pn), { "z-index": 3e3 }, {
|
|
1249
1249
|
default: H(() => [
|
|
1250
|
-
ne(
|
|
1250
|
+
ne(L(mt), {
|
|
1251
1251
|
ref_key: "tooltipRef",
|
|
1252
1252
|
ref: _,
|
|
1253
1253
|
visible: D.value,
|
|
1254
1254
|
teleported: s.teleported,
|
|
1255
|
-
"popper-class": [
|
|
1255
|
+
"popper-class": [L(u).e("dropdown"), s.popperClass],
|
|
1256
1256
|
"popper-options": l,
|
|
1257
1257
|
"fallback-placements": ["bottom-start", "bottom", "top-start", "top", "right", "left"],
|
|
1258
1258
|
"stop-popper-mouse-event": !1,
|
|
1259
1259
|
"gpu-acceleration": !1,
|
|
1260
1260
|
placement: "bottom-start",
|
|
1261
|
-
transition: `${
|
|
1261
|
+
transition: `${L(u).namespace.value}-zoom-in-top`,
|
|
1262
1262
|
effect: "light",
|
|
1263
1263
|
pure: "",
|
|
1264
1264
|
persistent: "",
|
|
@@ -1273,7 +1273,7 @@ const Nl = /* @__PURE__ */ et(yl, [["render", bl]]), Cl = Bt(xe(de({}, wn), {
|
|
|
1273
1273
|
onMouseenter: c[6] || (c[6] = (v) => j.value = !0),
|
|
1274
1274
|
onMouseleave: c[7] || (c[7] = (v) => j.value = !1)
|
|
1275
1275
|
}, [
|
|
1276
|
-
ne(
|
|
1276
|
+
ne(L(Tn), {
|
|
1277
1277
|
ref_key: "input",
|
|
1278
1278
|
ref: W,
|
|
1279
1279
|
modelValue: I.value,
|
|
@@ -1282,7 +1282,7 @@ const Nl = /* @__PURE__ */ et(yl, [["render", bl]]), Cl = Bt(xe(de({}, wn), {
|
|
|
1282
1282
|
readonly: R.value,
|
|
1283
1283
|
disabled: o.value,
|
|
1284
1284
|
"validate-event": !1,
|
|
1285
|
-
size:
|
|
1285
|
+
size: L(b),
|
|
1286
1286
|
class: F(Se.value),
|
|
1287
1287
|
tabindex: k.value && s.filterable && !o.value ? -1 : void 0,
|
|
1288
1288
|
onCompositionstart: ge,
|
|
@@ -1293,22 +1293,22 @@ const Nl = /* @__PURE__ */ et(yl, [["render", bl]]), Cl = Bt(xe(de({}, wn), {
|
|
|
1293
1293
|
onInput: Je
|
|
1294
1294
|
}, {
|
|
1295
1295
|
suffix: H(() => [
|
|
1296
|
-
G.value ? ($(), Z(
|
|
1296
|
+
G.value ? ($(), Z(L(Pe), {
|
|
1297
1297
|
key: "clear",
|
|
1298
|
-
class: F([
|
|
1298
|
+
class: F([L(f).e("icon"), "icon-circle-close"]),
|
|
1299
1299
|
onClick: $e(jt, ["stop"])
|
|
1300
1300
|
}, {
|
|
1301
1301
|
default: H(() => [
|
|
1302
|
-
ne(
|
|
1302
|
+
ne(L(bn))
|
|
1303
1303
|
]),
|
|
1304
1304
|
_: 1
|
|
1305
|
-
}, 8, ["class"])) : ($(), Z(
|
|
1305
|
+
}, 8, ["class"])) : ($(), Z(L(Pe), {
|
|
1306
1306
|
key: "arrow-down",
|
|
1307
1307
|
class: F(ke.value),
|
|
1308
1308
|
onClick: c[0] || (c[0] = $e((v) => J(), ["stop"]))
|
|
1309
1309
|
}, {
|
|
1310
1310
|
default: H(() => [
|
|
1311
|
-
ne(
|
|
1311
|
+
ne(L(Nn))
|
|
1312
1312
|
]),
|
|
1313
1313
|
_: 1
|
|
1314
1314
|
}, 8, ["class"]))
|
|
@@ -1319,9 +1319,9 @@ const Nl = /* @__PURE__ */ et(yl, [["render", bl]]), Cl = Bt(xe(de({}, wn), {
|
|
|
1319
1319
|
key: 0,
|
|
1320
1320
|
ref_key: "tagWrapper",
|
|
1321
1321
|
ref: ee,
|
|
1322
|
-
class: F(
|
|
1322
|
+
class: F(L(u).e("tags"))
|
|
1323
1323
|
}, [
|
|
1324
|
-
($(!0), K(Ae, null, Oe(z.value, (v) => ($(), Z(
|
|
1324
|
+
($(!0), K(Ae, null, Oe(z.value, (v) => ($(), Z(L(gt), {
|
|
1325
1325
|
key: v.key,
|
|
1326
1326
|
type: s.tagType,
|
|
1327
1327
|
size: N.value,
|
|
@@ -1331,7 +1331,7 @@ const Nl = /* @__PURE__ */ et(yl, [["render", bl]]), Cl = Bt(xe(de({}, wn), {
|
|
|
1331
1331
|
onClose: (M) => Ke(v)
|
|
1332
1332
|
}, {
|
|
1333
1333
|
default: H(() => [
|
|
1334
|
-
v.isCollapseTag === !1 ? ($(), K("span", Sl, fe(v.text), 1)) : ($(), Z(
|
|
1334
|
+
v.isCollapseTag === !1 ? ($(), K("span", Sl, fe(v.text), 1)) : ($(), Z(L(mt), {
|
|
1335
1335
|
key: 1,
|
|
1336
1336
|
disabled: D.value || !s.collapseTagsTooltip,
|
|
1337
1337
|
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
@@ -1343,14 +1343,14 @@ const Nl = /* @__PURE__ */ et(yl, [["render", bl]]), Cl = Bt(xe(de({}, wn), {
|
|
|
1343
1343
|
]),
|
|
1344
1344
|
content: H(() => [
|
|
1345
1345
|
pe("div", {
|
|
1346
|
-
class: F(
|
|
1346
|
+
class: F(L(u).e("collapse-tags")),
|
|
1347
1347
|
style: Ie(at.value)
|
|
1348
1348
|
}, [
|
|
1349
1349
|
($(!0), K(Ae, null, Oe(ie.value.slice(s.maxCollapseTags), (M, ae) => ($(), K("div", {
|
|
1350
1350
|
key: ae,
|
|
1351
|
-
class: F(
|
|
1351
|
+
class: F(L(u).e("collapse-tag"))
|
|
1352
1352
|
}, [
|
|
1353
|
-
($(), Z(
|
|
1353
|
+
($(), Z(L(gt), {
|
|
1354
1354
|
key: M.key,
|
|
1355
1355
|
class: "in-tooltip",
|
|
1356
1356
|
type: s.tagType,
|
|
@@ -1377,7 +1377,7 @@ const Nl = /* @__PURE__ */ et(yl, [["render", bl]]), Cl = Bt(xe(de({}, wn), {
|
|
|
1377
1377
|
key: 0,
|
|
1378
1378
|
"onUpdate:modelValue": c[2] || (c[2] = (v) => x.value = v),
|
|
1379
1379
|
type: "text",
|
|
1380
|
-
class: F(
|
|
1380
|
+
class: F(L(u).e("search-input")),
|
|
1381
1381
|
placeholder: me.value ? "" : i.value,
|
|
1382
1382
|
onInput: c[3] || (c[3] = (v) => Je(x.value, v)),
|
|
1383
1383
|
onClick: c[4] || (c[4] = $e((v) => J(!0), ["stop"])),
|
|
@@ -1392,7 +1392,7 @@ const Nl = /* @__PURE__ */ et(yl, [["render", bl]]), Cl = Bt(xe(de({}, wn), {
|
|
|
1392
1392
|
]) : he("", !0)
|
|
1393
1393
|
], 2)) : he("", !0)
|
|
1394
1394
|
], 38)), [
|
|
1395
|
-
[
|
|
1395
|
+
[L(Vn), () => J(!1), Ee.value]
|
|
1396
1396
|
])
|
|
1397
1397
|
]),
|
|
1398
1398
|
content: H(() => [
|
|
@@ -1411,33 +1411,33 @@ const Nl = /* @__PURE__ */ et(yl, [["render", bl]]), Cl = Bt(xe(de({}, wn), {
|
|
|
1411
1411
|
}, null, 8, ["inputWidth", "modelValue", "options", "props", "render-label"]), [
|
|
1412
1412
|
[ft, !O.value]
|
|
1413
1413
|
]),
|
|
1414
|
-
s.filterable ? De(($(), Z(
|
|
1414
|
+
s.filterable ? De(($(), Z(L(Vt), {
|
|
1415
1415
|
key: 0,
|
|
1416
1416
|
ref_key: "suggestionPanel",
|
|
1417
1417
|
ref: B,
|
|
1418
1418
|
tag: "ul",
|
|
1419
|
-
class: F(
|
|
1420
|
-
"view-class":
|
|
1419
|
+
class: F(L(u).e("suggestion-panel")),
|
|
1420
|
+
"view-class": L(u).e("suggestion-list"),
|
|
1421
1421
|
onKeydown: Jt
|
|
1422
1422
|
}, {
|
|
1423
1423
|
default: H(() => [
|
|
1424
1424
|
ce.value.length ? ($(!0), K(Ae, { key: 0 }, Oe(ce.value, (v) => ($(), K("li", {
|
|
1425
1425
|
key: v.uid,
|
|
1426
|
-
class: F([
|
|
1426
|
+
class: F([L(u).e("suggestion-item"), L(u).is("checked", v.checked)]),
|
|
1427
1427
|
tabindex: -1,
|
|
1428
1428
|
onClick: (M) => Ut(v)
|
|
1429
1429
|
}, [
|
|
1430
1430
|
pe("span", null, fe(v.text), 1),
|
|
1431
|
-
v.checked ? ($(), Z(
|
|
1431
|
+
v.checked ? ($(), Z(L(Pe), { key: 0 }, {
|
|
1432
1432
|
default: H(() => [
|
|
1433
|
-
ne(
|
|
1433
|
+
ne(L(Tt))
|
|
1434
1434
|
]),
|
|
1435
1435
|
_: 1
|
|
1436
1436
|
})) : he("", !0)
|
|
1437
1437
|
], 10, wl))), 128)) : At(s.$slots, "empty", { key: 1 }, () => [
|
|
1438
1438
|
pe("li", {
|
|
1439
|
-
class: F(
|
|
1440
|
-
}, fe(
|
|
1439
|
+
class: F(L(u).e("empty-text"))
|
|
1440
|
+
}, fe(L(g)("el.cascader.noMatch")), 3)
|
|
1441
1441
|
])
|
|
1442
1442
|
]),
|
|
1443
1443
|
_: 3
|
|
@@ -1510,7 +1510,7 @@ const Nl = /* @__PURE__ */ et(yl, [["render", bl]]), Cl = Bt(xe(de({}, wn), {
|
|
|
1510
1510
|
}),
|
|
1511
1511
|
emits: /* @__PURE__ */ ht(["change"], ["update:modelValue"]),
|
|
1512
1512
|
setup(e, { emit: t }) {
|
|
1513
|
-
const n = dn(), l = e, a = pn(e, "modelValue"), d =
|
|
1513
|
+
const n = dn(), l = e, a = pn(e, "modelValue"), d = P(0), r = de({ expandTrigger: "hover", emitPath: !1 }, l.props), y = t, m = P(), u = P(!1);
|
|
1514
1514
|
let f = null, g, C, E = [];
|
|
1515
1515
|
const _ = S(() => l.selectAll && l.options.length > 0 ? [{ [r.label || "label"]: "全选", [r.value || "value"]: "ALL" }, ...l.options] : l.options), W = (h, o) => {
|
|
1516
1516
|
if (o === "add") {
|
|
@@ -1557,7 +1557,8 @@ const Nl = /* @__PURE__ */ et(yl, [["render", bl]]), Cl = Bt(xe(de({}, wn), {
|
|
|
1557
1557
|
});
|
|
1558
1558
|
});
|
|
1559
1559
|
}, A = (h, o) => {
|
|
1560
|
-
o = o.trim(), l.filterSelectAll && (j(), h.keyword = o, E = E.filter((p) => p.keyword === o))
|
|
1560
|
+
if (o = o.trim(), l.filterSelectAll && (j(), h.keyword = o, E = E.filter((p) => p.keyword === o)), h.value === "ALL")
|
|
1561
|
+
return !1;
|
|
1561
1562
|
const i = l.filterMethod ? l.filterMethod(h, o) : I(h, o);
|
|
1562
1563
|
return i && l.filterSelectAll && !E.find((p) => p.uid === h.uid) && E.push(de({}, h)), l.filterSelectAll && g && (g.style.display = E.length ? "flex" : "none"), l.labelIds.length && i && O(h), i;
|
|
1563
1564
|
};
|
|
@@ -1565,7 +1566,7 @@ const Nl = /* @__PURE__ */ et(yl, [["render", bl]]), Cl = Bt(xe(de({}, wn), {
|
|
|
1565
1566
|
const i = o.toLowerCase(), p = (b, N) => b.toLowerCase().includes(N);
|
|
1566
1567
|
return p(h.label, i) || p(h.text, i);
|
|
1567
1568
|
}
|
|
1568
|
-
const x =
|
|
1569
|
+
const x = P(!1), z = (h) => {
|
|
1569
1570
|
a.value = h, y("change", h);
|
|
1570
1571
|
}, ie = (h, o = []) => {
|
|
1571
1572
|
const i = [];
|
package/dist/components/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as e } from "../ArgHover.vue_vue_type_style_index_0_lang-CMhRP09M.js";
|
|
2
|
-
import { _ as a } from "../FgCascader.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { _ as a } from "../FgCascader.vue_vue_type_style_index_0_lang-BUZDDcVn.js";
|
|
3
3
|
import { _ as s } from "../CitySelect.vue_vue_type_script_setup_true_lang-8EbHD3Nt.js";
|
|
4
4
|
import { _ as g } from "../DragResizable.vue_vue_type_style_index_0_lang-CHv0gJmo.js";
|
|
5
5
|
import { _ as f } from "../HSelectAll.vue_vue_type_script_setup_true_lang-Blq9xpfa.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as o } from "./ArgHover.vue_vue_type_style_index_0_lang-CMhRP09M.js";
|
|
2
|
-
import { _ as r } from "./FgCascader.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { _ as r } from "./FgCascader.vue_vue_type_style_index_0_lang-BUZDDcVn.js";
|
|
3
3
|
import { _ as m } from "./CitySelect.vue_vue_type_script_setup_true_lang-8EbHD3Nt.js";
|
|
4
4
|
import { _ as t } from "./DragResizable.vue_vue_type_style_index_0_lang-CHv0gJmo.js";
|
|
5
5
|
import { _ as e } from "./HSelectAll.vue_vue_type_script_setup_true_lang-Blq9xpfa.js";
|
package/dist/index.js
CHANGED
|
@@ -9,12 +9,12 @@ var t = (a, e, s) => e in a ? m(a, e, { enumerable: !0, configurable: !0, writab
|
|
|
9
9
|
l.call(e, s) && t(a, s, e[s]);
|
|
10
10
|
return a;
|
|
11
11
|
};
|
|
12
|
-
import { c as p } from "./index-
|
|
12
|
+
import { c as p } from "./index-BRcBDlVs.js";
|
|
13
13
|
import { t as f } from "./index-epuVZjZV.js";
|
|
14
14
|
import { d as g } from "./index-CeWudY6u.js";
|
|
15
15
|
import { h as c } from "./index-DpPsTMp0.js";
|
|
16
16
|
import { _ as A } from "./ArgHover.vue_vue_type_style_index_0_lang-CMhRP09M.js";
|
|
17
|
-
import { _ } from "./FgCascader.vue_vue_type_style_index_0_lang-
|
|
17
|
+
import { _ } from "./FgCascader.vue_vue_type_style_index_0_lang-BUZDDcVn.js";
|
|
18
18
|
import { _ as L } from "./CitySelect.vue_vue_type_script_setup_true_lang-8EbHD3Nt.js";
|
|
19
19
|
import { _ as E } from "./DragResizable.vue_vue_type_style_index_0_lang-CHv0gJmo.js";
|
|
20
20
|
import { _ as U } from "./HSelectAll.vue_vue_type_script_setup_true_lang-Blq9xpfa.js";
|