@yqg/permission 1.3.8 → 1.3.9

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.
@@ -1,7 +1,7 @@
1
- import { a as ht, p as pt, d as Ve, r as fe, c as y, w as be, q as mt, s as M, E as ae, e as U, b as Ge, y as oe, a0 as gt, G as yt, K as ie, L as Ze, M as Me, P as Be, R as ye, u as W, N as we, F as bt, Y as Ct, f as St, U as et, z as wt } from "./index-DcRMlXfi.js";
2
- import { a as Y, _ as b, W as xt, X as Vt, ae as ut, aX as tt, Y as Ie, P as ve, N as It, R as it, V as kt, aN as je, $ as Nt, ar as Tt, as as Lt, aY as Et, c as at, b as _t, ak as $e, aj as Pt, a0 as Dt, ai as At, am as We, aU as Kt, aP as xe, aS as Ot } from "./yqg-permission-8e7RGZ5e.js";
3
- import { u as Ft, a as Ht, b as Rt, c as Mt, d as Bt, t as lt, B as jt, e as $t, f as Wt, g as Ut } from "./index-r4_L4Wy-.js";
4
- import { K as de, T as zt, c as Yt, a as Ye, u as Xt, g as qt, b as Gt, d as Jt, F as Qt, e as Zt, f as ea, r as ta, h as aa, i as la } from "./apply-modal-vNbmgdPR.js";
1
+ import { a as ht, p as pt, d as Ve, r as fe, c as y, w as be, q as mt, s as R, E as ae, e as U, b as Ge, y as oe, a0 as gt, G as yt, K as Ze, R as et, L as ie, M as Re, P as je, N as we, S as ye, u as W, F as bt, Y as Ct, j as St, z as wt } from "./index-CJ_Ktj6t.js";
2
+ import { a as X, _ as b, W as xt, X as Vt, ae as ut, aX as tt, Y as Ie, P as ve, N as It, Q as it, V as kt, aN as Be, a0 as Nt, ar as Tt, as as Lt, aY as Et, c as at, b as _t, ai as $e, ak as We, am as Pt, $ as Dt, aj as At, aV as Kt, aP as xe, aS as Ft } from "./yqg-permission-Cb-_sywm.js";
3
+ import { u as Ot, a as Ht, b as Mt, c as Rt, d as jt, t as lt, B as Bt, e as $t, f as Wt, g as Ut } from "./index-CZ6UV6_X.js";
4
+ import { K as de, T as zt, c as Xt, a as Xe, u as Yt, g as qt, b as Gt, d as Qt, F as Jt, e as Zt, f as ea, r as ta, h as aa, i as la } from "./apply-modal-B4niAWln.js";
5
5
  function na(e) {
6
6
  return Array.isArray(e) ? e : e !== void 0 ? [e] : [];
7
7
  }
@@ -18,7 +18,7 @@ function oa(e) {
18
18
  children: t || "children"
19
19
  };
20
20
  }
21
- function Xe(e) {
21
+ function Ye(e) {
22
22
  return e.disabled || e.disableCheckbox || e.checkable === !1;
23
23
  }
24
24
  function ra(e, s) {
@@ -62,7 +62,7 @@ const ua = {
62
62
  slots: l,
63
63
  expose: t
64
64
  } = s;
65
- const a = Ft(), n = Ht(), o = ca(), r = fe(), d = Rt(() => o.treeData, [() => a.open, () => o.treeData], (v) => v[0]), c = y(() => {
65
+ const a = Ot(), n = Ht(), o = ca(), r = fe(), d = Mt(() => o.treeData, [() => a.open, () => o.treeData], (v) => v[0]), c = y(() => {
66
66
  const {
67
67
  checkable: v,
68
68
  halfCheckedKeys: V,
@@ -84,7 +84,7 @@ const ua = {
84
84
  immediate: !0,
85
85
  flush: "post"
86
86
  });
87
- const u = y(() => String(a.searchValue).toLowerCase()), f = (v) => u.value ? String(v[n.treeNodeFilterProp]).toLowerCase().includes(u.value) : !1, p = M(n.treeDefaultExpandedKeys), w = M(null);
87
+ const u = y(() => String(a.searchValue).toLowerCase()), f = (v) => u.value ? String(v[n.treeNodeFilterProp]).toLowerCase().includes(u.value) : !1, p = R(n.treeDefaultExpandedKeys), w = R(null);
88
88
  be(() => a.searchValue, () => {
89
89
  a.searchValue && (w.value = ra(ae(o.treeData), ae(o.fieldNames)));
90
90
  }, {
@@ -95,19 +95,19 @@ const ua = {
95
95
  p.value = v, w.value = v, (V = n.onTreeExpand) === null || V === void 0 || V.call(n, v);
96
96
  }, g = (v) => {
97
97
  v.preventDefault();
98
- }, O = (v, V) => {
98
+ }, F = (v, V) => {
99
99
  let {
100
100
  node: E
101
101
  } = V;
102
102
  var D, T;
103
103
  const {
104
104
  checkable: z,
105
- checkedKeys: X
105
+ checkedKeys: Y
106
106
  } = n;
107
- z && Xe(E) || ((D = o.onSelect) === null || D === void 0 || D.call(o, E.key, {
108
- selected: !X.includes(E.key)
107
+ z && Ye(E) || ((D = o.onSelect) === null || D === void 0 || D.call(o, E.key, {
108
+ selected: !Y.includes(E.key)
109
109
  }), a.multiple || (T = a.toggleOpen) === null || T === void 0 || T.call(a, !1));
110
- }, A = fe(null), K = y(() => n.keyEntities[A.value]), F = (v) => {
110
+ }, A = fe(null), K = y(() => n.keyEntities[A.value]), O = (v) => {
111
111
  A.value = v;
112
112
  };
113
113
  return t({
@@ -134,7 +134,7 @@ const ua = {
134
134
  selectable: D,
135
135
  value: T
136
136
  } = K.value.node || {};
137
- D !== !1 && O(null, {
137
+ D !== !1 && F(null, {
138
138
  node: {
139
139
  key: A.value
140
140
  },
@@ -158,8 +158,8 @@ const ua = {
158
158
  open: T,
159
159
  notFoundContent: z = (v = l.notFoundContent) === null || v === void 0 ? void 0 : v.call(l)
160
160
  } = a, {
161
- listHeight: X,
162
- listItemHeight: B,
161
+ listHeight: Y,
162
+ listItemHeight: j,
163
163
  virtual: le,
164
164
  dropdownMatchSelectWidth: q,
165
165
  treeExpandAction: re
@@ -182,21 +182,21 @@ const ua = {
182
182
  class: `${V}-empty`,
183
183
  onMousedown: g
184
184
  }, [z]);
185
- const J = {
185
+ const Q = {
186
186
  fieldNames: o.fieldNames
187
187
  };
188
- return ue && (J.loadedKeys = ue), x.value && (J.expandedKeys = x.value), U("div", {
188
+ return ue && (Q.loadedKeys = ue), x.value && (Q.expandedKeys = x.value), U("div", {
189
189
  onMousedown: g
190
190
  }, [K.value && T && U("span", {
191
191
  style: ua,
192
192
  "aria-live": "assertive"
193
- }, [K.value.node.value]), U(zt, Y(Y({
193
+ }, [K.value.node.value]), U(zt, X(X({
194
194
  ref: r,
195
195
  focusable: !1,
196
196
  prefixCls: `${V}-tree`,
197
197
  treeData: d.value,
198
- height: X,
199
- itemHeight: B,
198
+ height: Y,
199
+ itemHeight: j,
200
200
  virtual: le !== !1 && q !== !1,
201
201
  multiple: E,
202
202
  icon: ne,
@@ -211,10 +211,10 @@ const ua = {
211
211
  checkedKeys: c.value,
212
212
  selectedKeys: se ? [] : H,
213
213
  defaultExpandAll: ce
214
- }, J), {}, {
215
- onActiveChange: F,
216
- onSelect: O,
217
- onCheck: O,
214
+ }, Q), {}, {
215
+ onActiveChange: O,
216
+ onSelect: F,
217
+ onCheck: F,
218
218
  onExpand: S,
219
219
  onLoad: _,
220
220
  filterTreeNode: f,
@@ -224,10 +224,10 @@ const ua = {
224
224
  }))]);
225
225
  };
226
226
  }
227
- }), da = "SHOW_ALL", vt = "SHOW_PARENT", Je = "SHOW_CHILD";
227
+ }), da = "SHOW_ALL", vt = "SHOW_PARENT", Qe = "SHOW_CHILD";
228
228
  function ot(e, s, l, t) {
229
229
  const a = new Set(e);
230
- return s === Je ? e.filter((n) => {
230
+ return s === Qe ? e.filter((n) => {
231
231
  const o = l[n];
232
232
  return !(o && o.children && o.children.some((r) => {
233
233
  let {
@@ -238,11 +238,11 @@ function ot(e, s, l, t) {
238
238
  let {
239
239
  node: d
240
240
  } = r;
241
- return Xe(d) || a.has(d[t.value]);
241
+ return Ye(d) || a.has(d[t.value]);
242
242
  }));
243
243
  }) : s === vt ? e.filter((n) => {
244
244
  const o = l[n], r = o ? o.parent : null;
245
- return !(r && !Xe(r.node) && a.has(r.key));
245
+ return !(r && !Ye(r.node) && a.has(r.key));
246
246
  }) : e;
247
247
  }
248
248
  const he = () => null;
@@ -282,14 +282,14 @@ function ha(e) {
282
282
  disabled: w || w === "" || void 0,
283
283
  disableCheckbox: x || x === "" || void 0
284
284
  }, g = b(b({}, c), S), {
285
- title: O = (a = r.title) === null || a === void 0 ? void 0 : a.call(r, g),
285
+ title: F = (a = r.title) === null || a === void 0 ? void 0 : a.call(r, g),
286
286
  switcherIcon: A = (n = r.switcherIcon) === null || n === void 0 ? void 0 : n.call(r, g)
287
- } = c, K = va(c, ["title", "switcherIcon"]), F = (o = r.default) === null || o === void 0 ? void 0 : o.call(r), v = b(b(b({}, K), {
288
- title: O,
287
+ } = c, K = va(c, ["title", "switcherIcon"]), O = (o = r.default) === null || o === void 0 ? void 0 : o.call(r), v = b(b(b({}, K), {
288
+ title: F,
289
289
  switcherIcon: A,
290
290
  key: d,
291
291
  isLeaf: u
292
- }), S), V = s(F);
292
+ }), S), V = s(O);
293
293
  return V.length && (v.children = V), v;
294
294
  });
295
295
  }
@@ -311,16 +311,16 @@ function pa(e, s, l, t, a, n) {
311
311
  function c(u) {
312
312
  let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "0", p = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
313
313
  return u.map((w, x) => {
314
- const S = `${f}-${x}`, g = w[n.value], O = l.includes(g), A = c(w[n.children] || [], S, O), K = U(he, w, {
315
- default: () => [A.map((F) => F.node)]
314
+ const S = `${f}-${x}`, g = w[n.value], F = l.includes(g), A = c(w[n.children] || [], S, F), K = U(he, w, {
315
+ default: () => [A.map((O) => O.node)]
316
316
  });
317
- if (s === g && (o = K), O) {
318
- const F = {
317
+ if (s === g && (o = K), F) {
318
+ const O = {
319
319
  pos: S,
320
320
  node: K,
321
321
  children: A
322
322
  };
323
- return p || r.push(F), F;
323
+ return p || r.push(O), O;
324
324
  }
325
325
  return null;
326
326
  }).filter((w) => w);
@@ -374,7 +374,7 @@ function ma(e, s) {
374
374
  }), o;
375
375
  }
376
376
  function ga(e, s, l) {
377
- const t = M();
377
+ const t = R();
378
378
  return be([l, e, s], () => {
379
379
  const a = l.value;
380
380
  e.value ? t.value = l.value ? ma(ae(e.value), b({
@@ -388,9 +388,9 @@ function ga(e, s, l) {
388
388
  }), t;
389
389
  }
390
390
  const ya = (e) => {
391
- const s = M({
391
+ const s = R({
392
392
  valueLabels: /* @__PURE__ */ new Map()
393
- }), l = M();
393
+ }), l = R();
394
394
  return be(e, () => {
395
395
  l.value = ae(e.value);
396
396
  }, {
@@ -410,9 +410,9 @@ const ya = (e) => {
410
410
  return s.value.valueLabels = n, o;
411
411
  })];
412
412
  }, ba = (e, s) => {
413
- const l = M(/* @__PURE__ */ new Map()), t = M({});
413
+ const l = R(/* @__PURE__ */ new Map()), t = R({});
414
414
  return Ge(() => {
415
- const a = s.value, n = Yt(e.value, {
415
+ const a = s.value, n = Xt(e.value, {
416
416
  fieldNames: a,
417
417
  initWrapper: (o) => b(b({}, o), {
418
418
  valueEntities: /* @__PURE__ */ new Map()
@@ -428,7 +428,7 @@ const ya = (e) => {
428
428
  keyEntities: t
429
429
  };
430
430
  }, Ca = (e, s, l, t, a, n) => {
431
- const o = M([]), r = M([]);
431
+ const o = R([]), r = R([]);
432
432
  return Ge(() => {
433
433
  let d = e.value.map((f) => {
434
434
  let {
@@ -445,7 +445,7 @@ const ya = (e) => {
445
445
  l.value && ({
446
446
  checkedKeys: d,
447
447
  halfCheckedKeys: c
448
- } = Ye(d, !0, t.value, a.value, n.value)), o.value = Array.from(/* @__PURE__ */ new Set([...u, ...d])), r.value = c;
448
+ } = Xe(d, !0, t.value, a.value, n.value)), o.value = Array.from(/* @__PURE__ */ new Set([...u, ...d])), r.value = c;
449
449
  }), [o, r];
450
450
  }, Sa = (e, s, l) => {
451
451
  let {
@@ -473,7 +473,7 @@ const ya = (e) => {
473
473
  let p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
474
474
  const w = [];
475
475
  for (let x = 0, S = f.length; x < S; x++) {
476
- const g = f[x], O = g[o], A = p || c(r, qe(g)), K = u(O || [], A);
476
+ const g = f[x], F = g[o], A = p || c(r, qe(g)), K = u(F || [], A);
477
477
  (A || K.length) && w.push(b(b({}, g), {
478
478
  [o]: K
479
479
  }));
@@ -633,7 +633,7 @@ const xa = Ve({
633
633
  props: ut(ft(), {
634
634
  treeNodeFilterProp: "value",
635
635
  autoClearSearchValue: !0,
636
- showCheckedStrategy: Je,
636
+ showCheckedStrategy: Qe,
637
637
  listHeight: 200,
638
638
  listItemHeight: 20,
639
639
  prefixCls: "vc-tree-select"
@@ -644,7 +644,7 @@ const xa = Ve({
644
644
  expose: t,
645
645
  slots: a
646
646
  } = s;
647
- const n = Mt(oe(e, "id")), o = y(() => e.treeCheckable && !e.treeCheckStrictly), r = y(() => e.treeCheckable || e.treeCheckStrictly), d = y(() => e.treeCheckStrictly || e.labelInValue), c = y(() => r.value || e.multiple), u = y(() => oa(e.fieldNames)), [f, p] = tt("", {
647
+ const n = Rt(oe(e, "id")), o = y(() => e.treeCheckable && !e.treeCheckStrictly), r = y(() => e.treeCheckable || e.treeCheckStrictly), d = y(() => e.treeCheckStrictly || e.labelInValue), c = y(() => r.value || e.multiple), u = y(() => oa(e.fieldNames)), [f, p] = tt("", {
648
648
  value: y(() => e.searchValue !== void 0 ? e.searchValue : e.inputValue),
649
649
  postState: (i) => i || ""
650
650
  }), w = (i) => {
@@ -653,7 +653,7 @@ const xa = Ve({
653
653
  }, x = ga(oe(e, "treeData"), oe(e, "children"), oe(e, "treeDataSimpleMode")), {
654
654
  keyEntities: S,
655
655
  valueEntities: g
656
- } = ba(x, u), O = (i) => {
656
+ } = ba(x, u), F = (i) => {
657
657
  const h = [], m = [];
658
658
  return i.forEach((k) => {
659
659
  g.value.has(k) ? m.push(k) : h.push(k);
@@ -678,9 +678,9 @@ const xa = Ve({
678
678
  return k;
679
679
  }
680
680
  }
681
- }, F = (i) => na(i).map((m) => wa(m) ? {
681
+ }, O = (i) => na(i).map((m) => wa(m) ? {
682
682
  value: m
683
- } : m), v = (i) => F(i).map((m) => {
683
+ } : m), v = (i) => O(i).map((m) => {
684
684
  let {
685
685
  label: k
686
686
  } = m;
@@ -698,20 +698,20 @@ const xa = Ve({
698
698
  };
699
699
  }), [V, E] = tt(e.defaultValue, {
700
700
  value: oe(e, "value")
701
- }), D = y(() => F(V.value)), T = M([]), z = M([]);
701
+ }), D = y(() => O(V.value)), T = R([]), z = R([]);
702
702
  Ge(() => {
703
703
  const i = [], h = [];
704
704
  D.value.forEach((m) => {
705
705
  m.halfChecked ? h.push(m) : i.push(m);
706
706
  }), T.value = i, z.value = h;
707
707
  });
708
- const X = y(() => T.value.map((i) => i.value)), {
709
- maxLevel: B,
708
+ const Y = y(() => T.value.map((i) => i.value)), {
709
+ maxLevel: j,
710
710
  levelEntities: le
711
- } = Xt(S), [q, re] = Ca(T, z, o, S, B, le), se = y(() => {
711
+ } = Yt(S), [q, re] = Ca(T, z, o, S, j, le), se = y(() => {
712
712
  const m = ot(q.value, e.showCheckedStrategy, S.value, u.value).map((L) => {
713
- var I, N, R;
714
- return (R = (N = (I = S.value[L]) === null || I === void 0 ? void 0 : I.node) === null || N === void 0 ? void 0 : N[u.value.value]) !== null && R !== void 0 ? R : L;
713
+ var I, N, M;
714
+ return (M = (N = (I = S.value[L]) === null || I === void 0 ? void 0 : I.node) === null || N === void 0 ? void 0 : N[u.value.value]) !== null && M !== void 0 ? M : L;
715
715
  }).map((L) => {
716
716
  const I = T.value.find((N) => N.value === L);
717
717
  return {
@@ -745,15 +745,15 @@ const xa = Ve({
745
745
  const $ = z.value.filter((te) => !P.includes(te.value));
746
746
  N = [...N, ...$];
747
747
  }
748
- const R = v(N), Z = {
748
+ const M = v(N), Z = {
749
749
  // [Legacy] Always return as array contains label & value
750
750
  preValue: T.value,
751
751
  triggerValue: L
752
752
  };
753
753
  let ee = !0;
754
754
  (e.treeCheckStrictly || m === "selection" && !I) && (ee = !1), pa(Z, L, i, x.value, ee, u.value), r.value ? Z.checked = I : Z.selected = I;
755
- const j = d.value ? R : R.map(($) => $.value);
756
- e.onChange(c.value ? j : j[0], d.value ? null : R.map(($) => $.label), Z);
755
+ const B = d.value ? M : M.map(($) => $.value);
756
+ e.onChange(c.value ? B : B[0], d.value ? null : M.map(($) => $.label), Z);
757
757
  }
758
758
  }, G = (i, h) => {
759
759
  let {
@@ -761,35 +761,34 @@ const xa = Ve({
761
761
  source: k
762
762
  } = h;
763
763
  var P, L, I;
764
- const N = ae(S.value), R = ae(g.value), Z = N[i], ee = Z == null ? void 0 : Z.node, j = (P = ee == null ? void 0 : ee[u.value.value]) !== null && P !== void 0 ? P : i;
764
+ const N = ae(S.value), M = ae(g.value), Z = N[i], ee = Z == null ? void 0 : Z.node, B = (P = ee == null ? void 0 : ee[u.value.value]) !== null && P !== void 0 ? P : i;
765
765
  if (!c.value)
766
- ne([j], {
766
+ ne([B], {
767
767
  selected: !0,
768
- triggerValue: j
768
+ triggerValue: B
769
769
  }, "option");
770
770
  else {
771
- let $ = m ? [...X.value, j] : q.value.filter((te) => te !== j);
771
+ let $ = m ? [...Y.value, B] : q.value.filter((te) => te !== B);
772
772
  if (o.value) {
773
773
  const {
774
774
  missingRawValues: te,
775
775
  existRawValues: Se
776
- } = O($), Qe = Se.map((Re) => R.get(Re).key);
776
+ } = F($), Je = Se.map((Me) => M.get(Me).key);
777
777
  let He;
778
778
  m ? {
779
779
  checkedKeys: He
780
- } = Ye(Qe, !0, N, B.value, le.value) : {
780
+ } = Xe(Je, !0, N, j.value, le.value) : {
781
781
  checkedKeys: He
782
- } = Ye(Qe, {
783
- checked: !1,
782
+ } = Xe(Je, {
784
783
  halfCheckedKeys: re.value
785
- }, N, B.value, le.value), $ = [...te, ...He.map((Re) => N[Re].node[u.value.value])];
784
+ }, N, j.value, le.value), $ = [...te, ...He.map((Me) => N[Me].node[u.value.value])];
786
785
  }
787
786
  ne($, {
788
787
  selected: m,
789
- triggerValue: j
788
+ triggerValue: B
790
789
  }, k || "option");
791
790
  }
792
- m || !c.value ? (L = e.onSelect) === null || L === void 0 || L.call(e, j, qe(ee)) : (I = e.onDeselect) === null || I === void 0 || I.call(e, j, qe(ee));
791
+ m || !c.value ? (L = e.onSelect) === null || L === void 0 || L.call(e, B, qe(ee)) : (I = e.onDeselect) === null || I === void 0 || I.call(e, B, qe(ee));
793
792
  }, pe = (i) => {
794
793
  if (e.onDropdownVisibleChange) {
795
794
  const h = {};
@@ -817,7 +816,7 @@ const xa = Ve({
817
816
  onTreeLoad: _,
818
817
  // Expanded
819
818
  treeDefaultExpandAll: H,
820
- treeExpandedKeys: J,
819
+ treeExpandedKeys: Q,
821
820
  treeDefaultExpandedKeys: ke,
822
821
  onTreeExpand: Ne,
823
822
  // Options
@@ -831,10 +830,10 @@ const xa = Ve({
831
830
  switcherIcon: De,
832
831
  treeMotion: Ae,
833
832
  customSlots: Ke,
834
- dropdownMatchSelectWidth: Oe,
835
- treeExpandAction: Fe
833
+ dropdownMatchSelectWidth: Fe,
834
+ treeExpandAction: Oe
836
835
  } = gt(e);
837
- Bt(lt({
836
+ jt(lt({
838
837
  checkable: r,
839
838
  loadData: ue,
840
839
  treeLoadedKeys: C,
@@ -842,7 +841,7 @@ const xa = Ve({
842
841
  checkedKeys: q,
843
842
  halfCheckedKeys: re,
844
843
  treeDefaultExpandAll: H,
845
- treeExpandedKeys: J,
844
+ treeExpandedKeys: Q,
846
845
  treeDefaultExpandedKeys: ke,
847
846
  onTreeExpand: Ne,
848
847
  treeIcon: Ce,
@@ -860,22 +859,22 @@ const xa = Ve({
860
859
  treeData: A,
861
860
  fieldNames: u,
862
861
  onSelect: G,
863
- dropdownMatchSelectWidth: Oe,
864
- treeExpandAction: Fe
862
+ dropdownMatchSelectWidth: Fe,
863
+ treeExpandAction: Oe
865
864
  }));
866
- const Q = fe();
865
+ const J = fe();
867
866
  return t({
868
867
  focus() {
869
868
  var i;
870
- (i = Q.value) === null || i === void 0 || i.focus();
869
+ (i = J.value) === null || i === void 0 || i.focus();
871
870
  },
872
871
  blur() {
873
872
  var i;
874
- (i = Q.value) === null || i === void 0 || i.blur();
873
+ (i = J.value) === null || i === void 0 || i.blur();
875
874
  },
876
875
  scrollTo(i) {
877
876
  var h;
878
- (h = Q.value) === null || h === void 0 || h.scrollTo(i);
877
+ (h = J.value) === null || h === void 0 || h.scrollTo(i);
879
878
  }
880
879
  }), () => {
881
880
  var i;
@@ -930,8 +929,8 @@ const xa = Ve({
930
929
  "switcherIcon",
931
930
  "treeMotion"
932
931
  ]);
933
- return U(jt, Y(Y(Y({
934
- ref: Q
932
+ return U(Bt, X(X(X({
933
+ ref: J
935
934
  }, l), h), {}, {
936
935
  id: n,
937
936
  prefixCls: e.prefixCls,
@@ -1009,18 +1008,18 @@ const rt = (e, s, l) => l !== void 0 ? l : `${e}-${s}`;
1009
1008
  function ka() {
1010
1009
  return b(b({}, Ie(ft(), ["showTreeIcon", "treeMotion", "inputIcon", "getInputElement", "treeLine", "customSlots"])), {
1011
1010
  suffixIcon: ve.any,
1012
- size: $e(),
1013
- bordered: Pt(),
1011
+ size: We(),
1012
+ bordered: At(),
1014
1013
  treeLine: Dt([Boolean, Object]),
1015
- replaceFields: At(),
1016
- placement: $e(),
1017
- status: $e(),
1014
+ replaceFields: Pt(),
1015
+ placement: We(),
1016
+ status: We(),
1018
1017
  popupClassName: String,
1019
1018
  /** @deprecated Please use `popupClassName` instead */
1020
1019
  dropdownClassName: String,
1021
- "onUpdate:value": We(),
1022
- "onUpdate:treeExpandedKeys": We(),
1023
- "onUpdate:searchValue": We()
1020
+ "onUpdate:value": $e(),
1021
+ "onUpdate:treeExpandedKeys": $e(),
1022
+ "onUpdate:searchValue": $e()
1024
1023
  });
1025
1024
  }
1026
1025
  const Ue = Ve({
@@ -1044,8 +1043,8 @@ const Ue = Ve({
1044
1043
  expose: a,
1045
1044
  emit: n
1046
1045
  } = s;
1047
- kt(!(e.treeData === void 0 && t.default)), je(e.multiple !== !1 || !e.treeCheckable, "TreeSelect", "`multiple` will always be `true` when `treeCheckable` is true"), je(e.replaceFields === void 0, "TreeSelect", "`replaceFields` is deprecated, please use fieldNames instead"), je(!e.dropdownClassName, "TreeSelect", "`dropdownClassName` is deprecated. Please use `popupClassName` instead.");
1048
- const o = Jt(), r = Qt.useInject(), d = y(() => Zt(r.status, e.status)), {
1046
+ kt(!(e.treeData === void 0 && t.default)), Be(e.multiple !== !1 || !e.treeCheckable, "TreeSelect", "`multiple` will always be `true` when `treeCheckable` is true"), Be(e.replaceFields === void 0, "TreeSelect", "`replaceFields` is deprecated, please use fieldNames instead"), Be(!e.dropdownClassName, "TreeSelect", "`dropdownClassName` is deprecated. Please use `popupClassName` instead.");
1047
+ const o = Qt(), r = Jt.useInject(), d = y(() => Zt(r.status, e.status)), {
1049
1048
  prefixCls: c,
1050
1049
  renderEmpty: u,
1051
1050
  direction: f,
@@ -1054,15 +1053,15 @@ const Ue = Ve({
1054
1053
  size: x,
1055
1054
  getPopupContainer: S,
1056
1055
  getPrefixCls: g,
1057
- disabled: O
1056
+ disabled: F
1058
1057
  } = Nt("select", e), {
1059
1058
  compactSize: A,
1060
1059
  compactItemClassnames: K
1061
- } = Tt(c, f), F = y(() => A.value || x.value), v = Lt(), V = y(() => {
1060
+ } = Tt(c, f), O = y(() => A.value || x.value), v = Lt(), V = y(() => {
1062
1061
  var C;
1063
- return (C = O.value) !== null && C !== void 0 ? C : v.value;
1064
- }), E = y(() => g()), D = y(() => e.placement !== void 0 ? e.placement : f.value === "rtl" ? "bottomRight" : "bottomLeft"), T = y(() => rt(E.value, Et(D.value), e.transitionName)), z = y(() => rt(E.value, "", e.choiceTransitionName)), X = y(() => g("select-tree", e.prefixCls)), B = y(() => g("tree-select", e.prefixCls)), [le, q] = Wt(c), [re] = Ia(B, X), se = y(() => at(e.popupClassName || e.dropdownClassName, `${B.value}-dropdown`, {
1065
- [`${B.value}-dropdown-rtl`]: f.value === "rtl"
1062
+ return (C = F.value) !== null && C !== void 0 ? C : v.value;
1063
+ }), E = y(() => g()), D = y(() => e.placement !== void 0 ? e.placement : f.value === "rtl" ? "bottomRight" : "bottomLeft"), T = y(() => rt(E.value, Et(D.value), e.transitionName)), z = y(() => rt(E.value, "", e.choiceTransitionName)), Y = y(() => g("select-tree", e.prefixCls)), j = y(() => g("tree-select", e.prefixCls)), [le, q] = Wt(c), [re] = Ia(j, Y), se = y(() => at(e.popupClassName || e.dropdownClassName, `${j.value}-dropdown`, {
1064
+ [`${j.value}-dropdown-rtl`]: f.value === "rtl"
1066
1065
  }, q.value)), ce = y(() => !!(e.treeCheckable || e.multiple)), ne = y(() => e.showArrow !== void 0 ? e.showArrow : e.loading || !ce.value), G = fe();
1067
1066
  a({
1068
1067
  focus() {
@@ -1088,7 +1087,7 @@ const Ue = Ve({
1088
1087
  return () => {
1089
1088
  var C, _, H;
1090
1089
  const {
1091
- notFoundContent: J = (C = t.notFoundContent) === null || C === void 0 ? void 0 : C.call(t),
1090
+ notFoundContent: Q = (C = t.notFoundContent) === null || C === void 0 ? void 0 : C.call(t),
1092
1091
  prefixCls: ke,
1093
1092
  bordered: Ne,
1094
1093
  listHeight: Te,
@@ -1100,10 +1099,10 @@ const Ue = Ve({
1100
1099
  switcherIcon: De = (_ = t.switcherIcon) === null || _ === void 0 ? void 0 : _.call(t),
1101
1100
  fieldNames: Ae = e.replaceFields,
1102
1101
  id: Ke = o.id.value,
1103
- placeholder: Oe = (H = t.placeholder) === null || H === void 0 ? void 0 : H.call(t)
1102
+ placeholder: Fe = (H = t.placeholder) === null || H === void 0 ? void 0 : H.call(t)
1104
1103
  } = e, {
1105
- isFormItemInput: Fe,
1106
- hasFeedback: Q,
1104
+ isFormItemInput: Oe,
1105
+ hasFeedback: J,
1107
1106
  feedbackIcon: i
1108
1107
  } = r, {
1109
1108
  suffixIcon: h,
@@ -1112,20 +1111,20 @@ const Ue = Ve({
1112
1111
  } = Ut(b(b({}, e), {
1113
1112
  multiple: ce.value,
1114
1113
  showArrow: ne.value,
1115
- hasFeedback: Q,
1114
+ hasFeedback: J,
1116
1115
  feedbackIcon: i,
1117
1116
  prefixCls: c.value
1118
1117
  }), t);
1119
1118
  let P;
1120
- J !== void 0 ? P = J : P = u("Select");
1121
- const L = Ie(e, ["suffixIcon", "itemIcon", "removeIcon", "clearIcon", "switcherIcon", "bordered", "status", "onUpdate:value", "onUpdate:treeExpandedKeys", "onUpdate:searchValue"]), I = at(!ke && B.value, {
1122
- [`${c.value}-lg`]: F.value === "large",
1123
- [`${c.value}-sm`]: F.value === "small",
1119
+ Q !== void 0 ? P = Q : P = u("Select");
1120
+ const L = Ie(e, ["suffixIcon", "itemIcon", "removeIcon", "clearIcon", "switcherIcon", "bordered", "status", "onUpdate:value", "onUpdate:treeExpandedKeys", "onUpdate:searchValue"]), I = at(!ke && j.value, {
1121
+ [`${c.value}-lg`]: O.value === "large",
1122
+ [`${c.value}-sm`]: O.value === "small",
1124
1123
  [`${c.value}-rtl`]: f.value === "rtl",
1125
1124
  [`${c.value}-borderless`]: !Ne,
1126
- [`${c.value}-in-form-item`]: Fe
1127
- }, ea(c.value, d.value, Q), K.value, l.class, q.value), N = {};
1128
- return e.treeData === void 0 && t.default && (N.children = _t(t.default())), le(re(U(xa, Y(Y(Y(Y({}, l), L), {}, {
1125
+ [`${c.value}-in-form-item`]: Oe
1126
+ }, ea(c.value, d.value, J), K.value, l.class, q.value), N = {};
1127
+ return e.treeData === void 0 && t.default && (N.children = _t(t.default())), le(re(U(xa, X(X(X(X({}, l), L), {}, {
1129
1128
  disabled: V.value,
1130
1129
  virtual: p.value,
1131
1130
  dropdownMatchSelectWidth: w.value,
@@ -1141,7 +1140,7 @@ const Ue = Ve({
1141
1140
  multiple: Ee,
1142
1141
  removeIcon: m,
1143
1142
  clearIcon: k,
1144
- switcherIcon: (R) => ta(X.value, De, R, t.leafIcon, Ce),
1143
+ switcherIcon: (M) => ta(Y.value, De, M, t.leafIcon, Ce),
1145
1144
  showTreeIcon: _e,
1146
1145
  notFoundContent: P,
1147
1146
  getPopupContainer: S == null ? void 0 : S.value,
@@ -1161,8 +1160,8 @@ const Ue = Ve({
1161
1160
  }),
1162
1161
  maxTagPlaceholder: e.maxTagPlaceholder || t.maxTagPlaceholder,
1163
1162
  placement: D.value,
1164
- showArrow: Q || Pe,
1165
- placeholder: Oe
1163
+ showArrow: J || Pe,
1164
+ placeholder: Fe
1166
1165
  }), b(b({}, t), {
1167
1166
  treeCheckable: () => U("span", {
1168
1167
  class: `${c.value}-tree-checkbox-inner`
@@ -1174,7 +1173,7 @@ const Ue = Ve({
1174
1173
  TreeNode: he,
1175
1174
  SHOW_ALL: da,
1176
1175
  SHOW_PARENT: vt,
1177
- SHOW_CHILD: Je,
1176
+ SHOW_CHILD: Qe,
1178
1177
  install: (e) => (e.component(Ue.name, Ue), e.component(st.displayName, st), e)
1179
1178
  }), ze = yt({});
1180
1179
  function Na(e) {
@@ -1195,7 +1194,7 @@ const Ta = { class: "crane-required" }, La = { class: "crane-category-tips" }, E
1195
1194
  }, _a = { key: 1 }, Pa = {
1196
1195
  key: 0,
1197
1196
  style: { color: "#ff4d4f", "font-size": "12px" }
1198
- }, Da = -1, Aa = /* @__PURE__ */ Ve({
1197
+ }, Da = /* @__PURE__ */ Ve({
1199
1198
  __name: "category-selector",
1200
1199
  props: {
1201
1200
  categoryList: {
@@ -1222,10 +1221,10 @@ const Ta = { class: "crane-required" }, La = { class: "crane-category-tips" }, E
1222
1221
  ref_key: "formRef",
1223
1222
  ref: o
1224
1223
  }, {
1225
- default: Me(() => [
1226
- Be("div", Ta, ye(W(xe)("category")), 1),
1227
- Be("div", La, ye(W(xe)("categotySelectTips")), 1),
1228
- f[1] || (f[1] = Be("div", { class: "crane-category-line" }, null, -1)),
1224
+ default: Re(() => [
1225
+ je("div", Ta, ye(W(xe)("category")), 1),
1226
+ je("div", La, ye(W(xe)("categotySelectTips")), 1),
1227
+ f[1] || (f[1] = je("div", { class: "crane-category-line" }, null, -1)),
1229
1228
  (ie(!0), we(bt, null, Ct(a.value.categoryList, (p, w) => {
1230
1229
  var x;
1231
1230
  return St((ie(), Ze(W(aa), {
@@ -1234,7 +1233,7 @@ const Ta = { class: "crane-required" }, La = { class: "crane-category-tips" }, E
1234
1233
  name: ["categoryList", w, "attributeValueIds_view"],
1235
1234
  rules: [{ required: !0, message: W(xe)("pleaseChoose"), trigger: ["change", "blur"] }]
1236
1235
  }, {
1237
- default: Me(() => {
1236
+ default: Re(() => {
1238
1237
  var S;
1239
1238
  return [
1240
1239
  U(W(ct), {
@@ -1252,12 +1251,12 @@ const Ta = { class: "crane-required" }, La = { class: "crane-category-tips" }, E
1252
1251
  treeNodeLabelProp: "attributeName",
1253
1252
  "show-checked-strategy": W(l)
1254
1253
  }, {
1255
- title: Me(({ attributeName: g }) => [
1254
+ title: Re(({ attributeName: g }) => [
1256
1255
  r.value.toLowerCase() && g.includes(r.value.toLowerCase()) ? (ie(), we("span", Ea, ye(g), 1)) : (ie(), we("span", _a, ye(g), 1))
1257
1256
  ]),
1258
1257
  _: 2
1259
1258
  }, 1032, ["tree-data", "value", "onUpdate:value", "searchValue", "show-checked-strategy"]),
1260
- (S = p.attributeValueIds_view) != null && S.includes(Da) ? (ie(), we("span", Pa, ye(W(xe)("categoryChangeTips", { category: p.categoryName })), 1)) : et("", !0)
1259
+ (S = p.attributeValueIds_view) != null && S.includes(-1) ? (ie(), we("span", Pa, ye(W(xe)("categoryChangeTips", { category: p.categoryName })), 1)) : et("", !0)
1261
1260
  ];
1262
1261
  }),
1263
1262
  _: 2
@@ -1266,10 +1265,11 @@ const Ta = { class: "crane-required" }, La = { class: "crane-category-tips" }, E
1266
1265
  ]);
1267
1266
  }), 128))
1268
1267
  ]),
1269
- _: 1
1268
+ _: 1,
1269
+ __: [1]
1270
1270
  }, 8, ["model"])) : et("", !0);
1271
1271
  }
1272
- }), Ra = /* @__PURE__ */ Ot(Aa, [["__scopeId", "data-v-e4f4ff30"]]);
1272
+ }), Ha = /* @__PURE__ */ Ft(Da, [["__scopeId", "data-v-21167b98"]]);
1273
1273
  export {
1274
- Ra as default
1274
+ Ha as default
1275
1275
  };