@yqg/permission 1.3.0-alpha.1 → 1.3.0-alpha.3

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,5 +1,5 @@
1
- import { f as La, i as Pl, _ as b, P as ee, a as H, c as ne, b as Al, s as dt, w as He, I as Je, d as Ml, e as Gt, g as Ba, S as Mt, h as Ot, j as St, k as Nl, l as Fl, m as Ha, n as Nr, o as _l, M as za, p as ja, q as Va, r as Rl, t as On, u as Wa, v as ka, x as Dl, y as Kl, U as ho, z as Fr, A as yn, B as _r, C as Ll, D as qa, E as Bl, F as Ga, G as Hl, H as zl, J as jl, K as yo, L as Vl, N as Et, O as Wl, Q as Qe, R as Ze, T as Ua, V as Rr, W as ot, X as kl, Y as De, Z as ql, $ as Ve, a0 as vt, a1 as Dr, a2 as En, a3 as Gl, a4 as Xa, a5 as Ya, a6 as Ul, a7 as Kr, a8 as In, a9 as Lr, aa as Qa, ab as Tn, ac as Za, ad as Ja, ae as lt, af as Xl, ag as Yl, ah as Ql, ai as qe, aj as Ae, ak as ur, al as ut, am as Ye, an as dr, ao as Pn, ap as xt, aq as bo, ar as Zl, as as ei, at as xo, au as bn, av as ti, aw as Jl, ax as es, ay as ts, az as ns, aA as rs, aB as os, aC as as, aD as is, aE as xn, aF as ls, aG as ni, aH as ss, aI as cs, aJ as us, aK as ds, aL as fs, aM as ps, aN as vs, aO as It, aP as $e, aQ as Br, aR as gs, aS as ms, aT as Dt, aU as Un, aV as hs, aW as Xn } from "./yqg-permission-BjVCs5lN.js";
2
- import { d as ie, G as at, l as Ue, v as An, x as Hr, w as ce, g as Ut, s as W, e as w, r as ae, c as A, m as kt, o as je, E as Nt, q as _e, b as Me, p as Ge, a as $t, F as it, f as Mn, z as Nn, H as ys, k as Fn, u as de, W as bs, i as So, n as $o, X as xs, K as Be, L as Lt, y as ri, P as ft, Y as Ss, R as ht, N as fr, S as Co, M as nt, U as Sn, Z as wo, _ as $s, V as Oo } from "./index-wLkVeDMW.js";
1
+ import { f as La, i as Pl, _ as b, P as ee, a as H, c as ne, b as Al, s as dt, w as He, I as Je, d as Ml, e as Gt, g as Ba, S as Mt, h as Ot, j as St, k as Nl, l as Fl, m as Ha, n as Nr, o as _l, M as za, p as ja, q as Va, r as Rl, t as On, u as Wa, v as ka, x as Dl, y as Kl, U as ho, z as Fr, A as yn, B as _r, C as Ll, D as qa, E as Bl, F as Ga, G as Hl, H as zl, J as jl, K as yo, L as Vl, N as Et, O as Wl, Q as Qe, R as Ze, T as Ua, V as Rr, W as ot, X as kl, Y as De, Z as ql, $ as Ve, a0 as vt, a1 as Dr, a2 as En, a3 as Gl, a4 as Xa, a5 as Ya, a6 as Ul, a7 as Kr, a8 as In, a9 as Lr, aa as Qa, ab as Tn, ac as Za, ad as Ja, ae as lt, af as Xl, ag as Yl, ah as Ql, ai as qe, aj as Ae, ak as ur, al as ut, am as Ye, an as dr, ao as Pn, ap as xt, aq as bo, ar as Zl, as as ei, at as xo, au as bn, av as ti, aw as Jl, ax as es, ay as ts, az as ns, aA as rs, aB as os, aC as as, aD as is, aE as xn, aF as ls, aG as ni, aH as ss, aI as cs, aJ as us, aK as ds, aL as fs, aM as ps, aN as vs, aO as It, aP as $e, aQ as Br, aR as gs, aS as ms, aT as Dt, aU as Un, aV as hs, aW as Xn } from "./yqg-permission-C7I2t23j.js";
2
+ import { d as ie, G as at, l as Ue, v as An, x as Hr, w as ce, g as Ut, s as W, e as w, r as ae, c as A, m as kt, o as je, E as Nt, q as _e, b as Me, p as Ge, a as $t, F as it, f as Mn, z as Nn, H as ys, k as Fn, u as de, W as bs, i as So, n as $o, X as xs, K as Be, L as Lt, y as ri, P as ft, Y as Ss, R as ht, N as fr, S as Co, M as nt, U as Sn, Z as wo, _ as $s, V as Oo } from "./index-BNldYMQw.js";
3
3
  const oi = ie({
4
4
  compatConfig: {
5
5
  MODE: 3
@@ -12652,9 +12652,9 @@ const qg = { key: 0 }, Gg = { key: 0 }, Ug = {
12652
12652
  emits: /* @__PURE__ */ wo(["onSubmit", "onSuccess"], ["update:modelValue"]),
12653
12653
  setup(e, { emit: t }) {
12654
12654
  const n = Oo(
12655
- () => import("./category-selector-BQ0-kg3o.js")
12655
+ () => import("./category-selector-iOHRBhRt.js")
12656
12656
  ), r = Oo(
12657
- () => import("./permission-item-Df_aagL1.js")
12657
+ () => import("./permission-item-DQA5sauU.js")
12658
12658
  ), o = e, a = t, i = $s(e, "modelValue"), l = ae(!1), s = A(() => o.permissionList), c = ri(o, "workNumber"), d = ae(), u = ae(), f = ae();
12659
12659
  let v = ae([]);
12660
12660
  const S = ae([]), m = ae([]), p = at({
@@ -12724,7 +12724,7 @@ const qg = { key: 0 }, Gg = { key: 0 }, Ug = {
12724
12724
  }), R = R.slice(0, R.length - F), p.features = p.features.concat(R), Xn.warning($e("maxCountTips", { count: 5 }));
12725
12725
  return;
12726
12726
  }
12727
- p.features = y, S.value = kg(s.value, p.features);
12727
+ p.features = y, S.value = kg(s.value, p.features), console.log(S.value, p.features);
12728
12728
  };
12729
12729
  return ce(() => i.value, (y) => {
12730
12730
  var I;
@@ -12760,7 +12760,7 @@ const qg = { key: 0 }, Gg = { key: 0 }, Ug = {
12760
12760
  s.value.length ? Sn("", !0) : (Be(), ft("span", qg, ht(de($e)("noPermissionTips")), 1)),
12761
12761
  w(de(Fg), {
12762
12762
  checkable: "",
12763
- defaultExpandAll: !0,
12763
+ "default-expand-all": !0,
12764
12764
  "tree-data": s.value,
12765
12765
  height: 200,
12766
12766
  checkedKeys: p.features,
@@ -12835,7 +12835,7 @@ const qg = { key: 0 }, Gg = { key: 0 }, Ug = {
12835
12835
  _: 1
12836
12836
  }, 8, ["open", "title", "okText", "ok-button-props", "cancelText"]));
12837
12837
  }
12838
- }), Yg = /* @__PURE__ */ Br(Xg, [["__scopeId", "data-v-e5d24373"]]), Jg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12838
+ }), Yg = /* @__PURE__ */ Br(Xg, [["__scopeId", "data-v-ffc07c35"]]), Jg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12839
12839
  __proto__: null,
12840
12840
  default: Yg
12841
12841
  }, Symbol.toStringTag, { value: "Module" }));
@@ -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, $ as gt, G as yt, K as ue, L as Ze, M as Me, N as Be, R as ye, u as W, P as we, F as bt, Y as Ct, f as St, U as et, z as wt } from "./index-wLkVeDMW.js";
2
- import { a as X, _ as b, W as xt, X as Vt, ae as it, aX as tt, Y as Ie, P as ve, N as It, R as ut, V as kt, aN as $e, $ as Nt, ar as Tt, as as Lt, aY as Et, c as at, b as _t, ak as je, aj as Pt, a0 as Dt, ai as At, am as We, aU as Kt, aP as xe, aQ as Ft } from "./yqg-permission-BjVCs5lN.js";
3
- import { u as Ot, a as Ht, b as Rt, c as Mt, d as Bt, t as lt, B as $t, e as jt, f as Wt, g as Ut } from "./index-D_0ZQip-.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-CpmDDWWV.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 M, E as ae, e as U, b as Ge, y as oe, $ as gt, G as yt, K as ie, L as Ze, M as Me, N as Be, R as ye, u as W, P as we, F as bt, Y as Ct, f as St, U as et, z as wt } from "./index-BNldYMQw.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, R as it, V as kt, aN as $e, $ as Nt, ar as Tt, as as Lt, aY as Et, c as at, b as _t, ak as je, aj as Pt, a0 as Dt, ai as At, am as We, aU as Kt, aP as xe, aQ as Ft } from "./yqg-permission-C7I2t23j.js";
3
+ import { u as Ot, a as Ht, b as Rt, c as Mt, d as Bt, t as lt, B as $t, e as jt, f as Wt, g as Ut } from "./index-arXtw86e.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-DJ-rohnO.js";
5
5
  function na(e) {
6
6
  return Array.isArray(e) ? e : e !== void 0 ? [e] : [];
7
7
  }
@@ -42,7 +42,7 @@ function sa(e) {
42
42
  function ca() {
43
43
  return ht(dt, {});
44
44
  }
45
- const ia = {
45
+ const ua = {
46
46
  width: 0,
47
47
  height: 0,
48
48
  display: "flex",
@@ -51,7 +51,7 @@ const ia = {
51
51
  border: 0,
52
52
  padding: 0,
53
53
  margin: 0
54
- }, ua = Ve({
54
+ }, ia = Ve({
55
55
  compatConfig: {
56
56
  MODE: 3
57
57
  },
@@ -84,7 +84,7 @@ const ia = {
84
84
  immediate: !0,
85
85
  flush: "post"
86
86
  });
87
- const i = y(() => String(a.searchValue).toLowerCase()), f = (v) => i.value ? String(v[n.treeNodeFilterProp]).toLowerCase().includes(i.value) : !1, m = 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, m = M(n.treeDefaultExpandedKeys), w = M(null);
88
88
  be(() => a.searchValue, () => {
89
89
  a.searchValue && (w.value = ra(ae(o.treeData), ae(o.fieldNames)));
90
90
  }, {
@@ -171,7 +171,7 @@ const ia = {
171
171
  switcherIcon: pe,
172
172
  treeLine: me,
173
173
  loadData: ge,
174
- treeLoadedKeys: ie,
174
+ treeLoadedKeys: ue,
175
175
  treeMotion: C,
176
176
  onTreeLoad: _,
177
177
  checkedKeys: H
@@ -185,10 +185,10 @@ const ia = {
185
185
  const Q = {
186
186
  fieldNames: o.fieldNames
187
187
  };
188
- return ie && (Q.loadedKeys = ie), x.value && (Q.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
- style: ia,
191
+ style: ua,
192
192
  "aria-live": "assertive"
193
193
  }, [K.value.node.value]), U(zt, X(X({
194
194
  ref: r,
@@ -270,13 +270,13 @@ function ha(e) {
270
270
  for (const [E, D] of Object.entries(t.props))
271
271
  c[Vt(E)] = D;
272
272
  const {
273
- isLeaf: i,
273
+ isLeaf: u,
274
274
  checkable: f,
275
275
  selectable: m,
276
276
  disabled: w,
277
277
  disableCheckbox: x
278
278
  } = c, S = {
279
- isLeaf: i || i === "" || void 0,
279
+ isLeaf: u || u === "" || void 0,
280
280
  checkable: f || f === "" || void 0,
281
281
  selectable: m || m === "" || void 0,
282
282
  disabled: w || w === "" || void 0,
@@ -288,7 +288,7 @@ function ha(e) {
288
288
  title: F,
289
289
  switcherIcon: A,
290
290
  key: d,
291
- isLeaf: i
291
+ isLeaf: u
292
292
  }), S), V = s(O);
293
293
  return V.length && (v.children = V), v;
294
294
  });
@@ -308,9 +308,9 @@ function qe(e) {
308
308
  function pa(e, s, l, t, a, n) {
309
309
  let o = null, r = null;
310
310
  function d() {
311
- function c(i) {
311
+ function c(u) {
312
312
  let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "0", m = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
313
- return i.map((w, x) => {
313
+ return u.map((w, x) => {
314
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
315
  default: () => [A.map((O) => O.node)]
316
316
  });
@@ -325,14 +325,14 @@ function pa(e, s, l, t, a, n) {
325
325
  return null;
326
326
  }).filter((w) => w);
327
327
  }
328
- r || (r = [], c(t), r.sort((i, f) => {
328
+ r || (r = [], c(t), r.sort((u, f) => {
329
329
  let {
330
330
  node: {
331
331
  props: {
332
332
  value: m
333
333
  }
334
334
  }
335
- } = i, {
335
+ } = u, {
336
336
  node: {
337
337
  props: {
338
338
  value: w
@@ -351,9 +351,9 @@ function pa(e, s, l, t, a, n) {
351
351
  get() {
352
352
  return d(), a ? r : r.map((c) => {
353
353
  let {
354
- node: i
354
+ node: u
355
355
  } = c;
356
- return i;
356
+ return u;
357
357
  });
358
358
  }
359
359
  });
@@ -366,11 +366,11 @@ function ma(e, s) {
366
366
  } = s;
367
367
  const n = {}, o = [];
368
368
  return e.map((d) => {
369
- const c = b({}, d), i = c[l];
370
- return n[i] = c, c.key = c.key || i, c;
369
+ const c = b({}, d), u = c[l];
370
+ return n[u] = c, c.key = c.key || u, c;
371
371
  }).forEach((d) => {
372
- const c = d[t], i = n[c];
373
- i && (i.children = i.children || [], i.children.push(d)), (c === a || !i && a === null) && o.push(d);
372
+ const c = d[t], u = n[c];
373
+ u && (u.children = u.children || [], u.children.push(d)), (c === a || !u && a === null) && o.push(d);
374
374
  }), o;
375
375
  }
376
376
  function ga(e, s, l) {
@@ -402,9 +402,9 @@ const ya = (e) => {
402
402
  var d;
403
403
  const {
404
404
  value: c
405
- } = r, i = (d = r.label) !== null && d !== void 0 ? d : a.get(c);
406
- return n.set(c, i), b(b({}, r), {
407
- label: i
405
+ } = r, u = (d = r.label) !== null && d !== void 0 ? d : a.get(c);
406
+ return n.set(c, u), b(b({}, r), {
407
+ label: u
408
408
  });
409
409
  });
410
410
  return s.value.valueLabels = n, o;
@@ -441,11 +441,11 @@ const ya = (e) => {
441
441
  } = f;
442
442
  return m;
443
443
  });
444
- const i = d.filter((f) => !t.value[f]);
444
+ const u = d.filter((f) => !t.value[f]);
445
445
  l.value && ({
446
446
  checkedKeys: d,
447
447
  halfCheckedKeys: c
448
- } = Xe(d, !0, t.value, a.value, n.value)), o.value = Array.from(/* @__PURE__ */ new Set([...i, ...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 {
@@ -469,18 +469,18 @@ const ya = (e) => {
469
469
  return String(x).toUpperCase().includes(f);
470
470
  };
471
471
  }
472
- function i(f) {
472
+ function u(f) {
473
473
  let m = 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], F = g[o], A = m || c(r, qe(g)), K = i(F || [], A);
476
+ const g = f[x], F = g[o], A = m || c(r, qe(g)), K = u(F || [], A);
477
477
  (A || K.length) && w.push(b(b({}, g), {
478
478
  [o]: K
479
479
  }));
480
480
  }
481
481
  return w;
482
482
  }
483
- return i(e.value);
483
+ return u(e.value);
484
484
  });
485
485
  };
486
486
  function ft() {
@@ -630,7 +630,7 @@ const xa = Ve({
630
630
  },
631
631
  name: "TreeSelect",
632
632
  inheritAttrs: !1,
633
- props: it(ft(), {
633
+ props: ut(ft(), {
634
634
  treeNodeFilterProp: "value",
635
635
  autoClearSearchValue: !0,
636
636
  showCheckedStrategy: Qe,
@@ -644,43 +644,43 @@ 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), i = y(() => oa(e.fieldNames)), [f, m] = tt("", {
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, m] = tt("", {
648
648
  value: y(() => e.searchValue !== void 0 ? e.searchValue : e.inputValue),
649
- postState: (u) => u || ""
650
- }), w = (u) => {
649
+ postState: (i) => i || ""
650
+ }), w = (i) => {
651
651
  var h;
652
- m(u), (h = e.onSearch) === null || h === void 0 || h.call(e, u);
652
+ m(i), (h = e.onSearch) === null || h === void 0 || h.call(e, i);
653
653
  }, x = ga(oe(e, "treeData"), oe(e, "children"), oe(e, "treeDataSimpleMode")), {
654
654
  keyEntities: S,
655
655
  valueEntities: g
656
- } = ba(x, i), F = (u) => {
656
+ } = ba(x, u), F = (i) => {
657
657
  const h = [], p = [];
658
- return u.forEach((k) => {
658
+ return i.forEach((k) => {
659
659
  g.value.has(k) ? p.push(k) : h.push(k);
660
660
  }), {
661
661
  missingRawValues: h,
662
662
  existRawValues: p
663
663
  };
664
664
  }, A = Sa(x, f, {
665
- fieldNames: i,
665
+ fieldNames: u,
666
666
  treeNodeFilterProp: oe(e, "treeNodeFilterProp"),
667
667
  filterTreeNode: oe(e, "filterTreeNode")
668
- }), K = (u) => {
669
- if (u) {
668
+ }), K = (i) => {
669
+ if (i) {
670
670
  if (e.treeNodeLabelProp)
671
- return u[e.treeNodeLabelProp];
671
+ return i[e.treeNodeLabelProp];
672
672
  const {
673
673
  _title: h
674
- } = i.value;
674
+ } = u.value;
675
675
  for (let p = 0; p < h.length; p += 1) {
676
- const k = u[h[p]];
676
+ const k = i[h[p]];
677
677
  if (k !== void 0)
678
678
  return k;
679
679
  }
680
680
  }
681
- }, O = (u) => na(u).map((p) => wa(p) ? {
681
+ }, O = (i) => na(i).map((p) => wa(p) ? {
682
682
  value: p
683
- } : p), v = (u) => O(u).map((p) => {
683
+ } : p), v = (i) => O(i).map((p) => {
684
684
  let {
685
685
  label: k
686
686
  } = p;
@@ -700,18 +700,18 @@ const xa = Ve({
700
700
  value: oe(e, "value")
701
701
  }), D = y(() => O(V.value)), T = M([]), z = M([]);
702
702
  Ge(() => {
703
- const u = [], h = [];
703
+ const i = [], h = [];
704
704
  D.value.forEach((p) => {
705
- p.halfChecked ? h.push(p) : u.push(p);
706
- }), T.value = u, z.value = h;
705
+ p.halfChecked ? h.push(p) : i.push(p);
706
+ }), T.value = i, z.value = h;
707
707
  });
708
- const Y = y(() => T.value.map((u) => u.value)), {
708
+ const Y = y(() => T.value.map((i) => i.value)), {
709
709
  maxLevel: B,
710
710
  levelEntities: le
711
711
  } = Yt(S), [q, re] = Ca(T, z, o, S, B, le), se = y(() => {
712
- const p = ot(q.value, e.showCheckedStrategy, S.value, i.value).map((L) => {
712
+ const p = ot(q.value, e.showCheckedStrategy, S.value, u.value).map((L) => {
713
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[i.value.value]) !== null && R !== void 0 ? R : L;
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;
715
715
  }).map((L) => {
716
716
  const I = T.value.find((N) => N.value === L);
717
717
  return {
@@ -725,13 +725,13 @@ const xa = Ve({
725
725
  label: (I = L.label) !== null && I !== void 0 ? I : L.value
726
726
  });
727
727
  });
728
- }), [ce] = ya(se), ne = (u, h, p) => {
729
- const k = v(u);
728
+ }), [ce] = ya(se), ne = (i, h, p) => {
729
+ const k = v(i);
730
730
  if (E(k), e.autoClearSearchValue && m(""), e.onChange) {
731
- let P = u;
732
- o.value && (P = ot(u, e.showCheckedStrategy, S.value, i.value).map((te) => {
731
+ let P = i;
732
+ o.value && (P = ot(i, e.showCheckedStrategy, S.value, u.value).map((te) => {
733
733
  const Se = g.value.get(te);
734
- return Se ? Se.node[i.value.value] : te;
734
+ return Se ? Se.node[u.value.value] : te;
735
735
  }));
736
736
  const {
737
737
  triggerValue: L,
@@ -751,17 +751,17 @@ const xa = Ve({
751
751
  triggerValue: L
752
752
  };
753
753
  let ee = !0;
754
- (e.treeCheckStrictly || p === "selection" && !I) && (ee = !1), pa(Z, L, u, x.value, ee, i.value), r.value ? Z.checked = I : Z.selected = I;
754
+ (e.treeCheckStrictly || p === "selection" && !I) && (ee = !1), pa(Z, L, i, x.value, ee, u.value), r.value ? Z.checked = I : Z.selected = I;
755
755
  const $ = d.value ? R : R.map((j) => j.value);
756
756
  e.onChange(c.value ? $ : $[0], d.value ? null : R.map((j) => j.label), Z);
757
757
  }
758
- }, G = (u, h) => {
758
+ }, G = (i, h) => {
759
759
  let {
760
760
  selected: p,
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[u], ee = Z == null ? void 0 : Z.node, $ = (P = ee == null ? void 0 : ee[i.value.value]) !== null && P !== void 0 ? P : u;
764
+ const N = ae(S.value), R = ae(g.value), Z = N[i], ee = Z == null ? void 0 : Z.node, $ = (P = ee == null ? void 0 : ee[u.value.value]) !== null && P !== void 0 ? P : i;
765
765
  if (!c.value)
766
766
  ne([$], {
767
767
  selected: !0,
@@ -782,7 +782,7 @@ const xa = Ve({
782
782
  } = Xe(Je, {
783
783
  checked: !1,
784
784
  halfCheckedKeys: re.value
785
- }, N, B.value, le.value), j = [...te, ...He.map((Re) => N[Re].node[i.value.value])];
785
+ }, N, B.value, le.value), j = [...te, ...He.map((Re) => N[Re].node[u.value.value])];
786
786
  }
787
787
  ne(j, {
788
788
  selected: p,
@@ -790,17 +790,17 @@ const xa = Ve({
790
790
  }, k || "option");
791
791
  }
792
792
  p || !c.value ? (L = e.onSelect) === null || L === void 0 || L.call(e, $, qe(ee)) : (I = e.onDeselect) === null || I === void 0 || I.call(e, $, qe(ee));
793
- }, pe = (u) => {
793
+ }, pe = (i) => {
794
794
  if (e.onDropdownVisibleChange) {
795
795
  const h = {};
796
796
  Object.defineProperty(h, "documentClickClose", {
797
797
  get() {
798
798
  return !1;
799
799
  }
800
- }), e.onDropdownVisibleChange(u, h);
800
+ }), e.onDropdownVisibleChange(i, h);
801
801
  }
802
- }, me = (u, h) => {
803
- const p = u.map((k) => k.value);
802
+ }, me = (i, h) => {
803
+ const p = i.map((k) => k.value);
804
804
  if (h.type === "clear") {
805
805
  ne(p, {}, "selection");
806
806
  return;
@@ -812,7 +812,7 @@ const xa = Ve({
812
812
  }, {
813
813
  treeNodeFilterProp: ge,
814
814
  // Data
815
- loadData: ie,
815
+ loadData: ue,
816
816
  treeLoadedKeys: C,
817
817
  onTreeLoad: _,
818
818
  // Expanded
@@ -836,7 +836,7 @@ const xa = Ve({
836
836
  } = gt(e);
837
837
  Bt(lt({
838
838
  checkable: r,
839
- loadData: ie,
839
+ loadData: ue,
840
840
  treeLoadedKeys: C,
841
841
  onTreeLoad: _,
842
842
  checkedKeys: q,
@@ -858,7 +858,7 @@ const xa = Ve({
858
858
  listHeight: Le,
859
859
  listItemHeight: Ee,
860
860
  treeData: A,
861
- fieldNames: i,
861
+ fieldNames: u,
862
862
  onSelect: G,
863
863
  dropdownMatchSelectWidth: Fe,
864
864
  treeExpandAction: Oe
@@ -866,19 +866,19 @@ const xa = Ve({
866
866
  const J = fe();
867
867
  return t({
868
868
  focus() {
869
- var u;
870
- (u = J.value) === null || u === void 0 || u.focus();
869
+ var i;
870
+ (i = J.value) === null || i === void 0 || i.focus();
871
871
  },
872
872
  blur() {
873
- var u;
874
- (u = J.value) === null || u === void 0 || u.blur();
873
+ var i;
874
+ (i = J.value) === null || i === void 0 || i.blur();
875
875
  },
876
- scrollTo(u) {
876
+ scrollTo(i) {
877
877
  var h;
878
- (h = J.value) === null || h === void 0 || h.scrollTo(u);
878
+ (h = J.value) === null || h === void 0 || h.scrollTo(i);
879
879
  }
880
880
  }), () => {
881
- var u;
881
+ var i;
882
882
  const h = Ie(e, [
883
883
  "id",
884
884
  "prefixCls",
@@ -940,11 +940,11 @@ const xa = Ve({
940
940
  onDisplayValuesChange: me,
941
941
  searchValue: f.value,
942
942
  onSearch: w,
943
- OptionList: ua,
943
+ OptionList: ia,
944
944
  emptyOptions: !x.value.length,
945
945
  onDropdownVisibleChange: pe,
946
946
  tagRender: e.tagRender || a.tagRender,
947
- dropdownMatchSelectWidth: (u = e.dropdownMatchSelectWidth) !== null && u !== void 0 ? u : !0
947
+ dropdownMatchSelectWidth: (i = e.dropdownMatchSelectWidth) !== null && i !== void 0 ? i : !0
948
948
  }), a);
949
949
  };
950
950
  }
@@ -964,7 +964,7 @@ const xa = Ve({
964
964
  padding: `${e.paddingXS}px ${e.paddingXS / 2}px`
965
965
  },
966
966
  // ====================== Tree ======================
967
- qt(l, ut(e, {
967
+ qt(l, it(e, {
968
968
  colorBgContainer: t
969
969
  })),
970
970
  {
@@ -999,7 +999,7 @@ const xa = Ve({
999
999
  };
1000
1000
  function Ia(e, s) {
1001
1001
  return It("TreeSelect", (l) => {
1002
- const t = ut(l, {
1002
+ const t = it(l, {
1003
1003
  treePrefixCls: s.value
1004
1004
  });
1005
1005
  return [Va(t)];
@@ -1029,7 +1029,7 @@ const Ue = Ve({
1029
1029
  },
1030
1030
  name: "ATreeSelect",
1031
1031
  inheritAttrs: !1,
1032
- props: it(ka(), {
1032
+ props: ut(ka(), {
1033
1033
  choiceTransitionName: "",
1034
1034
  listHeight: 256,
1035
1035
  treeIcon: !1,
@@ -1047,7 +1047,7 @@ const Ue = Ve({
1047
1047
  kt(!(e.treeData === void 0 && t.default)), $e(e.multiple !== !1 || !e.treeCheckable, "TreeSelect", "`multiple` will always be `true` when `treeCheckable` is true"), $e(e.replaceFields === void 0, "TreeSelect", "`replaceFields` is deprecated, please use fieldNames instead"), $e(!e.dropdownClassName, "TreeSelect", "`dropdownClassName` is deprecated. Please use `popupClassName` instead.");
1048
1048
  const o = Qt(), r = Jt.useInject(), d = y(() => Zt(r.status, e.status)), {
1049
1049
  prefixCls: c,
1050
- renderEmpty: i,
1050
+ renderEmpty: u,
1051
1051
  direction: f,
1052
1052
  virtual: m,
1053
1053
  dropdownMatchSelectWidth: w,
@@ -1082,7 +1082,7 @@ const Ue = Ve({
1082
1082
  n("update:treeExpandedKeys", C), n("treeExpand", C);
1083
1083
  }, ge = (C) => {
1084
1084
  n("update:searchValue", C), n("search", C);
1085
- }, ie = (C) => {
1085
+ }, ue = (C) => {
1086
1086
  n("blur", C), o.onFieldBlur();
1087
1087
  };
1088
1088
  return () => {
@@ -1104,7 +1104,7 @@ const Ue = Ve({
1104
1104
  } = e, {
1105
1105
  isFormItemInput: Oe,
1106
1106
  hasFeedback: J,
1107
- feedbackIcon: u
1107
+ feedbackIcon: i
1108
1108
  } = r, {
1109
1109
  suffixIcon: h,
1110
1110
  removeIcon: p,
@@ -1113,11 +1113,11 @@ const Ue = Ve({
1113
1113
  multiple: ce.value,
1114
1114
  showArrow: ne.value,
1115
1115
  hasFeedback: J,
1116
- feedbackIcon: u,
1116
+ feedbackIcon: i,
1117
1117
  prefixCls: c.value
1118
1118
  }), t);
1119
1119
  let P;
1120
- Q !== void 0 ? P = Q : P = i("Select");
1120
+ Q !== void 0 ? P = Q : P = u("Select");
1121
1121
  const L = Ie(e, ["suffixIcon", "itemIcon", "removeIcon", "clearIcon", "switcherIcon", "bordered", "status", "onUpdate:value", "onUpdate:treeExpandedKeys", "onUpdate:searchValue"]), I = at(!ke && B.value, {
1122
1122
  [`${c.value}-lg`]: O.value === "large",
1123
1123
  [`${c.value}-sm`]: O.value === "small",
@@ -1149,7 +1149,7 @@ const Ue = Ve({
1149
1149
  dropdownClassName: se.value,
1150
1150
  choiceTransitionName: z.value,
1151
1151
  onChange: pe,
1152
- onBlur: ie,
1152
+ onBlur: ue,
1153
1153
  onSearch: ge,
1154
1154
  onTreeExpand: me
1155
1155
  }, N), {}, {
@@ -1178,14 +1178,14 @@ const Ue = Ve({
1178
1178
  install: (e) => (e.component(Ue.name, Ue), e.component(st.displayName, st), e)
1179
1179
  }), ze = yt({});
1180
1180
  function Na(e) {
1181
- return be(() => e, (s) => {
1181
+ return be(() => e.categoryList, (s) => {
1182
1182
  s.forEach(async (l) => {
1183
1183
  if (!ze[l.id]) {
1184
1184
  const t = await Kt.getCategoryValues(l.id), { flatAttributeValue: a, treeAttributeValue: n, showWay: o } = t.body;
1185
1185
  ze[l.id] = o === "TREE" ? n : a;
1186
1186
  }
1187
1187
  });
1188
- }, { immediate: !0 }), {
1188
+ }, { immediate: !0, deep: !0 }), {
1189
1189
  categoryValuesMap: ze
1190
1190
  };
1191
1191
  }
@@ -1206,16 +1206,16 @@ const Ta = { class: "crane-required" }, La = { class: "crane-category-tips" }, E
1206
1206
  setup(e, { expose: s }) {
1207
1207
  const l = ct.SHOW_PARENT, t = e, a = y(() => ({
1208
1208
  categoryList: t.categoryList
1209
- })), n = y(() => Object.values(d).some((i) => i.length > 0)), o = fe(), r = fe(""), { categoryValuesMap: d } = Na(t.categoryList);
1209
+ })), n = y(() => Object.values(d).some((u) => u.length > 0)), o = fe(), r = fe(""), { categoryValuesMap: d } = Na(t);
1210
1210
  return s({
1211
- validate: () => new Promise((i, f) => {
1211
+ validate: () => new Promise((u, f) => {
1212
1212
  o.value.validate().then(() => {
1213
- i(!0);
1213
+ u(!0);
1214
1214
  }).catch(() => {
1215
1215
  f(!1);
1216
1216
  });
1217
1217
  })
1218
- }), (i, f) => n.value ? (ue(), Ze(W(la), {
1218
+ }), (u, f) => n.value ? (ie(), Ze(W(la), {
1219
1219
  key: 0,
1220
1220
  class: "crane-category-wraper",
1221
1221
  model: a.value,
@@ -1226,9 +1226,9 @@ const Ta = { class: "crane-required" }, La = { class: "crane-category-tips" }, E
1226
1226
  Be("div", Ta, ye(W(xe)("category")), 1),
1227
1227
  Be("div", La, ye(W(xe)("categotySelectTips")), 1),
1228
1228
  f[1] || (f[1] = Be("div", { class: "crane-category-line" }, null, -1)),
1229
- (ue(!0), we(bt, null, Ct(a.value.categoryList, (m, w) => {
1229
+ (ie(!0), we(bt, null, Ct(a.value.categoryList, (m, w) => {
1230
1230
  var x;
1231
- return St((ue(), Ze(W(aa), {
1231
+ return St((ie(), Ze(W(aa), {
1232
1232
  key: m.id,
1233
1233
  label: m.categoryName,
1234
1234
  name: ["categoryList", w, "attributeValueIds_view"],
@@ -1253,11 +1253,11 @@ const Ta = { class: "crane-required" }, La = { class: "crane-category-tips" }, E
1253
1253
  "show-checked-strategy": W(l)
1254
1254
  }, {
1255
1255
  title: Me(({ attributeName: g }) => [
1256
- r.value.toLowerCase() && g.includes(r.value.toLowerCase()) ? (ue(), we("span", Ea, ye(g), 1)) : (ue(), we("span", _a, ye(g), 1))
1256
+ r.value.toLowerCase() && g.includes(r.value.toLowerCase()) ? (ie(), we("span", Ea, ye(g), 1)) : (ie(), we("span", _a, ye(g), 1))
1257
1257
  ]),
1258
1258
  _: 2
1259
1259
  }, 1032, ["tree-data", "value", "onUpdate:value", "searchValue", "show-checked-strategy"]),
1260
- (S = m.attributeValueIds_view) != null && S.includes(-1) ? (ue(), we("span", Pa, ye(W(xe)("categoryChangeTips")), 1)) : et("", !0)
1260
+ (S = m.attributeValueIds_view) != null && S.includes(-1) ? (ie(), we("span", Pa, ye(W(xe)("categoryChangeTips")), 1)) : et("", !0)
1261
1261
  ];
1262
1262
  }),
1263
1263
  _: 2
@@ -1269,7 +1269,7 @@ const Ta = { class: "crane-required" }, La = { class: "crane-category-tips" }, E
1269
1269
  _: 1
1270
1270
  }, 8, ["model"])) : et("", !0);
1271
1271
  }
1272
- }), Ha = /* @__PURE__ */ Ft(Da, [["__scopeId", "data-v-5bc5b7db"]]);
1272
+ }), Ha = /* @__PURE__ */ Ft(Da, [["__scopeId", "data-v-68a2b49c"]]);
1273
1273
  export {
1274
1274
  Ha as default
1275
1275
  };
@@ -4944,7 +4944,7 @@ function Mf(e) {
4944
4944
  function Of(e) {
4945
4945
  return se(e) ? document.querySelector(e) : e;
4946
4946
  }
4947
- const If = /* @__PURE__ */ qo(() => import("./yqg-permission-BjVCs5lN.js").then((e) => e.b8)), Nf = (e) => {
4947
+ const If = /* @__PURE__ */ qo(() => import("./yqg-permission-C7I2t23j.js").then((e) => e.b8)), Nf = (e) => {
4948
4948
  customElements.define(
4949
4949
  e,
4950
4950
  /* @__PURE__ */ bf(If, {
@@ -4964,18 +4964,16 @@ class Ff {
4964
4964
  console.error("yqg-permission is not supported in this environment");
4965
4965
  return;
4966
4966
  }
4967
- if (this.hasInit) {
4968
- console.warn("yqg-permission has already been initialized");
4969
- return;
4967
+ if (!this.hasInit) {
4968
+ if (this.hasInit = !0, t != null && t.tagName)
4969
+ if (/^yqg-permission(-\S+)?/.test(t.tagName))
4970
+ this.tagName = t.tagName;
4971
+ else {
4972
+ console.error(`${t.tagName} is invalid tagName`);
4973
+ return;
4974
+ }
4975
+ window.customElements.get(this.tagName) || Nf(this.tagName);
4970
4976
  }
4971
- if (this.hasInit = !0, t != null && t.tagName)
4972
- if (/^yqg-permission(-\S+)?/.test(t.tagName))
4973
- this.tagName = t.tagName;
4974
- else {
4975
- console.error(`${t.tagName} is invalid tagName`);
4976
- return;
4977
- }
4978
- window.customElements.get(this.tagName) || Nf(this.tagName);
4979
4977
  }
4980
4978
  }
4981
4979
  const _r = new Ff();
@@ -1,6 +1,6 @@
1
- import { _ as g, P as c, a as B, c as ae, b4 as tt, ap as pn, ae as ot, a1 as it, Z as at, I as mn, ab as lt, ac as rt, aD as st, b5 as gn, ao as Y, Q as We, b6 as Le, R as ie, b7 as vn, N as ut, O as ct } from "./yqg-permission-BjVCs5lN.js";
2
- import { d as ne, c as R, r as le, e as f, i as dt, m as ft, a as Ie, p as Ce, x as pt, s as A, w as oe, b as hn, l as ge, S as Ae, F as we, o as _e, X as mt, G as on, $ as gt } from "./index-wLkVeDMW.js";
3
- import { B as vt, R as yn, p as bn, K as P, j as Sn, S as ht } from "./apply-modal-CpmDDWWV.js";
1
+ import { _ as g, P as c, a as B, c as ae, b4 as tt, ap as pn, ae as ot, a1 as it, Z as at, I as mn, ab as lt, ac as rt, aD as st, b5 as gn, ao as Y, Q as We, b6 as Le, R as ie, b7 as vn, N as ut, O as ct } from "./yqg-permission-C7I2t23j.js";
2
+ import { d as ne, c as R, r as le, e as f, i as dt, m as ft, a as Ie, p as Ce, x as pt, s as A, w as oe, b as hn, l as ge, S as Ae, F as we, o as _e, X as mt, G as on, $ as gt } from "./index-BNldYMQw.js";
3
+ import { B as vt, R as yn, p as bn, K as P, j as Sn, S as ht } from "./apply-modal-DJ-rohnO.js";
4
4
  function an(e, n) {
5
5
  const {
6
6
  key: o