ss-component-new 1.3.113 → 1.3.114

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.
Files changed (112) hide show
  1. package/dist/{MTLLoader-BviVUPWi.cjs → MTLLoader-DcIQb_s3.cjs} +1 -1
  2. package/dist/{MTLLoader-y4B1LPuT.js → MTLLoader-iRxhJhIF.js} +34 -34
  3. package/dist/{OrbitControls-Cqppy3wb.cjs → OrbitControls-9REskSZo.cjs} +1 -1
  4. package/dist/{OrbitControls-390k2OM3.js → OrbitControls-PQJZejy_.js} +1 -1
  5. package/dist/{URDFLoader-C2tFq0lk.cjs → URDFLoader-BuABv8Tv.cjs} +1 -1
  6. package/dist/{URDFLoader-BlbEAIgR.js → URDFLoader-Buak6sTX.js} +222 -222
  7. package/dist/{animationData-DfDLy_M4.js → animationData-DJhhkfHw.js} +18 -18
  8. package/dist/{animationData-B1Jlpr7b.cjs → animationData-DiCszzEt.cjs} +1 -1
  9. package/dist/{array-DLBDgy0c.js → array-Be4dCwU5.js} +5 -5
  10. package/dist/{array-ymebeoXj.cjs → array-BsWbhqqH.cjs} +1 -1
  11. package/dist/{iconfont-cBX7rs7k.cjs → iconfont-CTi1EROO.cjs} +1 -1
  12. package/dist/{iconfont-BYa5tDrN.js → iconfont-Dkz3EhnP.js} +37 -37
  13. package/dist/{index-JJBPRJiI.cjs → index-1ATQxYGc.cjs} +1 -1
  14. package/dist/{index-UytjSmc1.cjs → index-69FRQH94.cjs} +1 -1
  15. package/dist/{index-4p0yEeUu.js → index-B2WIMplB.js} +1 -1
  16. package/dist/{index--hQDmx_x.js → index-B2pcDjLn.js} +2 -2
  17. package/dist/{index-pE8_wnGy.cjs → index-B9sLkbkE.cjs} +1 -1
  18. package/dist/{index-DdCyGfF9.cjs → index-BBrdsI9W.cjs} +1 -1
  19. package/dist/{index-DJoiySWn.cjs → index-BEpwtI2Q.cjs} +1 -1
  20. package/dist/{index-BXZlLwr6.cjs → index-Bd8mah99.cjs} +1 -1
  21. package/dist/{index-CXtLJs5O.js → index-BhJTGJWX.js} +27 -25
  22. package/dist/{index-C2yeqxnB.js → index-BhPhyI8f.js} +3 -3
  23. package/dist/{index-bbJ9Y_oO.js → index-BhU0rWGt.js} +3 -3
  24. package/dist/index-BhsUBoCD.cjs +1 -0
  25. package/dist/{index-DpirbR20.js → index-Bjm0BPhX.js} +12 -12
  26. package/dist/{index-BmlomuGZ.cjs → index-Bk8qPn0a.cjs} +1 -1
  27. package/dist/{index-BfNg0B2v.js → index-BsoWrBpk.js} +33 -33
  28. package/dist/{index-DpIzJvIr.cjs → index-BuaAY6T_.cjs} +1 -1
  29. package/dist/{index-DaX27S_0.js → index-BugYnyXc.js} +31 -31
  30. package/dist/{index-DMzBNabY.js → index-Bz_ZsUz_.js} +1 -1
  31. package/dist/{index-D6UEkdRE.cjs → index-C1HjpqRi.cjs} +1 -1
  32. package/dist/{index-CXkaTWVT.js → index-C3LqP4qY.js} +2 -2
  33. package/dist/{index-DovAfsVt.js → index-C4NqB81x.js} +2 -2
  34. package/dist/{index-D0e2ki27.js → index-CMMIt7u5.js} +63 -64
  35. package/dist/{index-DLK6UU4l.cjs → index-C_CGGyPH.cjs} +1 -1
  36. package/dist/{index-CYXsxIou.js → index-CdOlTQZV.js} +1 -1
  37. package/dist/{index-CVwsrCrZ.cjs → index-CdzQfZvY.cjs} +12 -12
  38. package/dist/{index-CaV5K0t4.js → index-Cn5h5u4P.js} +2408 -2005
  39. package/dist/{index-Cg30L32X.cjs → index-CpZcO0Vv.cjs} +3 -3
  40. package/dist/{index-BxmhgJuz.js → index-Cw0eFU8n.js} +1 -1
  41. package/dist/{index-CXlemLjY.js → index-D8c3Spt0.js} +1 -1
  42. package/dist/{index-Drd5_tIE.js → index-DHrzZlzn.js} +2 -2
  43. package/dist/{index-CEiscADV.cjs → index-DVhZbYfk.cjs} +1 -1
  44. package/dist/{index-CJiEoadC.js → index-Dar27fP9.js} +5 -5
  45. package/dist/index-DavcqNxP.cjs +1 -0
  46. package/dist/{index-DczQgLYk.cjs → index-DbAWw4as.cjs} +5 -5
  47. package/dist/{index-C6_KNp1M.cjs → index-DbnQZ22f.cjs} +1 -1
  48. package/dist/{index-CIoHy7Dg.js → index-Ddn_i6kt.js} +3 -3
  49. package/dist/index-DgBjwajW.js +456 -0
  50. package/dist/{index-SeEbZNcJ.cjs → index-DhFQdrUj.cjs} +1 -1
  51. package/dist/index-DiowIVZT.cjs +36 -0
  52. package/dist/{index-YwMY3Aya.js → index-DkgsdCot.js} +7 -7
  53. package/dist/{index-NdxRkX7O.js → index-Do9OpnU6.js} +316 -316
  54. package/dist/{index-DONt1we8.js → index-DpdFnDS3.js} +128 -78
  55. package/dist/{index-mabPGJUl.js → index-DqljyATQ.js} +1924 -1902
  56. package/dist/{index-B9g8IV0C.cjs → index-Dxxg-n__.cjs} +1 -1
  57. package/dist/{index-B22a33l9.js → index-DzSpBcvn.js} +1 -1
  58. package/dist/{index-BjAtlMRE.cjs → index-OS-qw-PB.cjs} +1 -1
  59. package/dist/{index-BVURmufk.js → index-RJF35C5O.js} +7 -7
  60. package/dist/index-SJHk-hwy.cjs +1 -0
  61. package/dist/index-TspEOSLc.cjs +1 -0
  62. package/dist/{index-DnJB2OQC.cjs → index-d198q36G.cjs} +1 -1
  63. package/dist/{index-CVySIgt4.cjs → index-eOampyhu.cjs} +1 -1
  64. package/dist/index-h4MsH7WN.cjs +1 -0
  65. package/dist/{index-DBdrmcqM.cjs → index-hSBc9pHD.cjs} +1 -1
  66. package/dist/index-kP2LUcSw.cjs +1 -0
  67. package/dist/{index-BIOl9xBh.js → index-p6bofhog.js} +2 -2
  68. package/dist/{index-D39f9FDD.cjs → index-rgLAMPYl.cjs} +1 -1
  69. package/dist/{index-8TMkI46d.js → index-tXc9-Dpz.js} +5 -5
  70. package/dist/{index-Cu75UXH1.js → index-wT_u7Sip.js} +2 -2
  71. package/dist/{index.vue_vue_type_style_index_0_scoped_92c12abe_lang-zw0_MXm-.js → index.vue_vue_type_style_index_0_scoped_92c12abe_lang-Cp7jnXuw.js} +19045 -19450
  72. package/dist/{index.vue_vue_type_style_index_0_scoped_92c12abe_lang-CvIVRrBm.cjs → index.vue_vue_type_style_index_0_scoped_92c12abe_lang-CuQjU1nB.cjs} +397 -397
  73. package/dist/{index.vue_vue_type_style_index_1_lang-B2vRPxHe.cjs → index.vue_vue_type_style_index_1_lang-AEdMqNIL.cjs} +2 -2
  74. package/dist/{index.vue_vue_type_style_index_1_lang-B88Ne666.js → index.vue_vue_type_style_index_1_lang-DzaXkSeA.js} +134 -134
  75. package/dist/{main-b1OREkjD.js → main-BuHWLsd1.js} +4 -4
  76. package/dist/{main-ChE0Sl1V.cjs → main-CvEytDJd.cjs} +1 -1
  77. package/dist/{menuIndex-QovY60sY.cjs → menuIndex-7DwfwtqQ.cjs} +1 -1
  78. package/dist/{menuIndex-BlBV6RY8.js → menuIndex-BpEQqtCU.js} +1 -1
  79. package/dist/ss-component.cjs +1 -1
  80. package/dist/ss-component.css +1 -1
  81. package/dist/ss-component.js +10 -10
  82. package/dist/ss-component2.cjs +1 -1
  83. package/dist/ss-component2.js +12 -12
  84. package/dist/{threeModel-BTiM-_yY.cjs → threeModel-BBPdmBqX.cjs} +1 -1
  85. package/dist/{threeModel-CUViA1pV.js → threeModel-qPRHxt0O.js} +62 -62
  86. package/dist/{threePreview-fEcukbqP.js → threePreview-BNspl3PQ.js} +102 -102
  87. package/dist/{threePreview-DiDVwpOj.cjs → threePreview-BQfgRzYJ.cjs} +1 -1
  88. package/dist/{threeSceneView-CxhlNkvh.cjs → threeSceneView-BTG6qz5g.cjs} +1 -1
  89. package/dist/{threeSceneView-BsxoPqAA.js → threeSceneView-Dkw-3Lex.js} +133 -133
  90. package/dist/{threeSceneViewForCPMPIP-CCTwBiPg.js → threeSceneViewForCPMPIP-BUGbgcyW.js} +8 -8
  91. package/dist/{threeSceneViewForCPMPIP-Bq9A66VO.cjs → threeSceneViewForCPMPIP-DZtGuJLA.cjs} +1 -1
  92. package/dist/{threeTrackPathView-D7zto1f1.cjs → threeTrackPathView-BMRciFya.cjs} +1 -1
  93. package/dist/{threeTrackPathView-DbqptnRu.js → threeTrackPathView-D5aLq-PQ.js} +94 -94
  94. package/dist/{threeViewerHost-B9vgyTcM.js → threeViewerHost-B5ajpfKi.js} +17 -17
  95. package/dist/{threeViewerHost-Dhc4vxhv.cjs → threeViewerHost-DZgqSUXb.cjs} +1 -1
  96. package/dist/{urdfTree-CfUfqc73.cjs → urdfTree-CXoYn4F5.cjs} +1 -1
  97. package/dist/{urdfTree-B9gafrR3.js → urdfTree-DVRrRAEg.js} +1 -1
  98. package/dist/{workpieceTreePanel-DzEBifIL.cjs → workpieceTreePanel--Lz2aEfm.cjs} +1 -1
  99. package/dist/{workpieceTreePanel-CoUx6lll.js → workpieceTreePanel-myjwdWI9.js} +81 -81
  100. package/package.json +1 -1
  101. package/dist/index-8ddlDjHL.js +0 -455
  102. package/dist/index-BLGT4-wX.cjs +0 -1
  103. package/dist/index-CTGhzBZx.cjs +0 -1
  104. package/dist/index-D7Ao1GyZ.cjs +0 -1
  105. package/dist/index-DUqjjluX.cjs +0 -1
  106. package/dist/index-NtRUaVwS.cjs +0 -1
  107. package/dist/index-aMvM6ti6.cjs +0 -1
  108. package/dist/index-kutaq0AT.cjs +0 -36
  109. package/dist/obj/model.mtl +0 -42
  110. package/dist/obj/model.obj +0 -26110
  111. package/public/obj/model.mtl +0 -42
  112. package/public/obj/model.obj +0 -26110
@@ -1,7 +1,6 @@
1
- import { computed as b, getCurrentInstance as Le, inject as pe, unref as d, ref as B, onMounted as me, watch as Y, toRef as Ge, onUnmounted as Dn, shallowRef as Ke, nextTick as D, defineComponent as ne, useAttrs as Kn, useSlots as ln, createElementBlock as P, openBlock as y, normalizeStyle as qe, normalizeClass as S, createCommentVNode as M, Fragment as Ue, createElementVNode as z, renderSlot as W, createBlock as A, withCtx as O, resolveDynamicComponent as U, mergeProps as ct, withModifiers as ue, toDisplayString as te, onBeforeUnmount as Re, provide as un, Text as Un, reactive as cn, createVNode as le, h as Wn, watchEffect as Yn, isRef as Gn, onScopeDispose as qn, markRaw as dt, toRefs as Xn, resolveComponent as Me, Transition as jn, withDirectives as tt, withKeys as Oe, vShow as nt, createTextVNode as Ft, isVNode as dn, render as fn } from "vue";
2
- import { S as Pt, q as vn, G as bt, H as pn, h as Ot, I as Jn, J as Se, K as Ht, N as Zn, O as je, P as fe, Q as ee, R as Qn, T as Ae, A as eo, U as hn, V as ve, W as to, X as no, Y as oo, Z as ao, _ as ot, $ as Be, a0 as Ne, a1 as he, a2 as so, a3 as ro, a4 as io, a5 as lo, a6 as re, a7 as Ee, a8 as Xe, a9 as mn, aa as yt, ab as Et, ac as uo, ad as ft, ae as co, af as $t, ag as fo, ah as vo, ai as po, aj as ho, ak as mo, al as go, am as bo, an as yo, ao as zt, ap as Vt, aq as _t, ar as Eo } from "./index-WLdc1goT.js";
3
- import { B as gn, D as So, E as wo, n as bn, l as Co } from "./index-CaV5K0t4.js";
4
- import { al as To, am as ko } from "./index.vue_vue_type_style_index_0_scoped_92c12abe_lang-zw0_MXm-.js";
1
+ import { computed as b, getCurrentInstance as Le, inject as pe, unref as d, ref as x, onMounted as me, watch as Y, toRef as Ge, onUnmounted as Dn, shallowRef as Ke, nextTick as D, defineComponent as ne, useAttrs as Kn, useSlots as ln, createElementBlock as P, openBlock as y, normalizeStyle as qe, normalizeClass as S, createCommentVNode as M, Fragment as Ue, createElementVNode as z, renderSlot as W, createBlock as A, withCtx as O, resolveDynamicComponent as U, mergeProps as ct, withModifiers as ue, toDisplayString as te, onBeforeUnmount as Re, provide as un, Text as Un, reactive as cn, createVNode as le, h as Wn, watchEffect as Yn, isRef as Gn, onScopeDispose as qn, markRaw as dt, toRefs as Xn, resolveComponent as Me, Transition as jn, withDirectives as tt, withKeys as Oe, vShow as nt, createTextVNode as Ft, isVNode as dn, render as fn } from "vue";
2
+ import { S as Pt, q as vn, G as bt, H as pn, h as Ot, I as Jn, J as Se, K as Ht, N as Zn, O as je, P as fe, Q as ee, R as Qn, T as Ae, A as eo, U as hn, V as ve, W as to, X as no, Y as oo, Z as ao, _ as ot, $ as xe, a0 as Ne, a1 as he, a2 as so, a3 as ro, a4 as io, a5 as lo, a6 as re, a7 as Ee, a8 as Xe, a9 as mn, aa as yt, ab as Et, ac as uo, ad as ft, ae as co, af as $t, ag as fo, ah as vo, ai as po, aj as ho, ak as mo, al as go, am as bo, an as yo, ao as zt, ap as Vt, aq as _t, ar as Eo } from "./index-WLdc1goT.js";
3
+ import { I as gn, M as So, r as wo, t as Co, N as To, x as bn, q as ko } from "./index-Cn5h5u4P.js";
5
4
  import { i as yn } from "./isNil-CjWwlQS3.js";
6
5
  var Dt = Pt ? Pt.isConcatSpreadable : void 0;
7
6
  function Io(e) {
@@ -19,10 +18,10 @@ function Ao(e) {
19
18
  var t = e == null ? 0 : e.length;
20
19
  return t ? Mo(e) : [];
21
20
  }
22
- function Bo(e) {
23
- return To(ko(e, void 0, Ao), e + "");
21
+ function xo(e) {
22
+ return wo(Co(e, void 0, Ao), e + "");
24
23
  }
25
- function xo(e, t) {
24
+ function Bo(e, t) {
26
25
  return e != null && t in Object(e);
27
26
  }
28
27
  function Lo(e, t, n) {
@@ -33,10 +32,10 @@ function Lo(e, t, n) {
33
32
  break;
34
33
  e = e[r];
35
34
  }
36
- return s || ++o != a ? s : (a = e == null ? 0 : e.length, !!a && wo(a) && bn(r, a) && (vn(e) || gn(e)));
35
+ return s || ++o != a ? s : (a = e == null ? 0 : e.length, !!a && To(a) && bn(r, a) && (vn(e) || gn(e)));
37
36
  }
38
37
  function Ro(e, t) {
39
- return e != null && Lo(e, t, xo);
38
+ return e != null && Lo(e, t, Bo);
40
39
  }
41
40
  function No(e, t, n, o) {
42
41
  if (!Ot(e))
@@ -50,7 +49,7 @@ function No(e, t, n, o) {
50
49
  var p = i[f];
51
50
  u = void 0, u === void 0 && (u = Ot(p) ? p : bn(t[a + 1]) ? [] : {});
52
51
  }
53
- Co(i, f, u), i = i[f];
52
+ ko(i, f, u), i = i[f];
54
53
  }
55
54
  return e;
56
55
  }
@@ -66,7 +65,7 @@ function Po(e, t) {
66
65
  return Ro(e, o);
67
66
  });
68
67
  }
69
- var Oo = Bo(function(e, t) {
68
+ var Oo = xo(function(e, t) {
70
69
  return e == null ? {} : Po(e, t);
71
70
  });
72
71
  const We = "update:modelValue", Kt = "change", at = "input";
@@ -290,7 +289,7 @@ usage: app.provide(ID_INJECTION_KEY, {
290
289
  disableIdGeneration: n,
291
290
  disableIdManagement: o
292
291
  }) => {
293
- n || (n = B(!1)), o || (o = B(!1));
292
+ n || (n = x(!1)), o || (o = x(!1));
294
293
  const a = Le(), s = () => {
295
294
  let u = a == null ? void 0 : a.parent;
296
295
  for (; u; ) {
@@ -301,7 +300,7 @@ usage: app.provide(ID_INJECTION_KEY, {
301
300
  u = u.parent;
302
301
  }
303
302
  return !1;
304
- }, r = B();
303
+ }, r = x();
305
304
  let i;
306
305
  const f = b(() => {
307
306
  var u;
@@ -325,7 +324,7 @@ usage: app.provide(ID_INJECTION_KEY, {
325
324
  return (o = (n = t == null ? void 0 : t.proxy) == null ? void 0 : n.$props) == null ? void 0 : o[e];
326
325
  });
327
326
  }, Cn = (e, t = {}) => {
328
- const n = B(void 0), o = t.prop ? n : wn("size"), a = t.global ? n : ao(), s = t.form ? { size: void 0 } : pe(St, void 0), r = t.formItem ? { size: void 0 } : pe(En, void 0);
327
+ const n = x(void 0), o = t.prop ? n : wn("size"), a = t.global ? n : ao(), s = t.form ? { size: void 0 } : pe(St, void 0), r = t.formItem ? { size: void 0 } : pe(En, void 0);
329
328
  return b(() => o.value || d(e) || (r == null ? void 0 : r.size) || (s == null ? void 0 : s.size) || a.value || "");
330
329
  }, wt = (e) => {
331
330
  const t = wn("disabled"), n = pe(St, void 0);
@@ -360,12 +359,12 @@ function ea(e, {
360
359
  beforeBlur: a,
361
360
  afterBlur: s
362
361
  } = {}) {
363
- const r = Le(), { emit: i } = r, f = Ke(), u = B(!1), p = (m) => {
364
- const l = Be(n) ? n(m) : !1;
362
+ const r = Le(), { emit: i } = r, f = Ke(), u = x(!1), p = (m) => {
363
+ const l = xe(n) ? n(m) : !1;
365
364
  d(t) || u.value || l || (u.value = !0, i("focus", m), o == null || o());
366
365
  }, E = (m) => {
367
366
  var l;
368
- const h = Be(a) ? a(m) : !1;
367
+ const h = xe(a) ? a(m) : !1;
369
368
  d(t) || m.relatedTarget && ((l = f.value) != null && l.contains(m.relatedTarget)) || h || (u.value = !1, i("blur", m), s == null || s());
370
369
  }, w = (m) => {
371
370
  var l, h;
@@ -385,7 +384,7 @@ function na({
385
384
  afterComposition: e,
386
385
  emit: t
387
386
  }) {
388
- const n = B(!1), o = (i) => {
387
+ const n = x(!1), o = (i) => {
389
388
  t == null || t("compositionstart", i), n.value = !0;
390
389
  }, a = (i) => {
391
390
  var f;
@@ -453,7 +452,7 @@ const Tn = "ElInput", aa = ne({
453
452
  o.type === "textarea" ? h.b() : l.b(),
454
453
  l.m(w.value),
455
454
  l.is("disabled", m.value),
456
- l.is("exceed", xn.value),
455
+ l.is("exceed", Bn.value),
457
456
  {
458
457
  [l.b("group")]: r.prepend || r.append,
459
458
  [l.m("prefix")]: r.prefix || o.prefixIcon,
@@ -467,7 +466,7 @@ const Tn = "ElInput", aa = ne({
467
466
  l.is("focus", H.value)
468
467
  ]), { form: u, formItem: p } = Sn(), { inputId: E } = jo(o, {
469
468
  formItemContext: p
470
- }), w = Cn(), m = wt(), l = he("input"), h = he("textarea"), k = Ke(), v = Ke(), g = B(!1), C = B(!1), V = B(), G = Ke(o.inputStyle), L = b(() => k.value || v.value), { wrapperRef: X, isFocused: H, handleFocus: j, handleBlur: J } = ea(L, {
469
+ }), w = Cn(), m = wt(), l = he("input"), h = he("textarea"), k = Ke(), v = Ke(), g = x(!1), C = x(!1), V = x(), G = Ke(o.inputStyle), L = b(() => k.value || v.value), { wrapperRef: X, isFocused: H, handleFocus: j, handleBlur: J } = ea(L, {
471
470
  disabled: m,
472
471
  afterBlur() {
473
472
  var c;
@@ -476,13 +475,13 @@ const Tn = "ElInput", aa = ne({
476
475
  }), Ce = b(() => {
477
476
  var c;
478
477
  return (c = u == null ? void 0 : u.statusIcon) != null ? c : !1;
479
- }), x = b(() => (p == null ? void 0 : p.validateState) || ""), Te = b(() => x.value && so[x.value]), Ze = b(() => C.value ? ro : io), Fe = b(() => [
478
+ }), B = b(() => (p == null ? void 0 : p.validateState) || ""), Te = b(() => B.value && so[B.value]), Ze = b(() => C.value ? ro : io), Fe = b(() => [
480
479
  a.style
481
480
  ]), Pe = b(() => [
482
481
  o.inputStyle,
483
482
  G.value,
484
483
  { resize: o.resize }
485
- ]), T = b(() => yn(o.modelValue) ? "" : String(o.modelValue)), F = b(() => o.clearable && !m.value && !o.readonly && !!T.value && (H.value || g.value)), $ = b(() => o.showPassword && !m.value && !!T.value), Z = b(() => o.showWordLimit && !!o.maxlength && (o.type === "text" || o.type === "textarea") && !m.value && !o.readonly && !o.showPassword), Qe = b(() => T.value.length), xn = b(() => !!Z.value && Qe.value > Number(o.maxlength)), Ln = b(() => !!r.suffix || !!o.suffixIcon || F.value || o.showPassword || Z.value || !!x.value && Ce.value), Rn = b(() => !!Object.keys(o.modelModifiers).length), [Nn, Fn] = oa(k);
484
+ ]), T = b(() => yn(o.modelValue) ? "" : String(o.modelValue)), F = b(() => o.clearable && !m.value && !o.readonly && !!T.value && (H.value || g.value)), $ = b(() => o.showPassword && !m.value && !!T.value), Z = b(() => o.showWordLimit && !!o.maxlength && (o.type === "text" || o.type === "textarea") && !m.value && !o.readonly && !o.showPassword), Qe = b(() => T.value.length), Bn = b(() => !!Z.value && Qe.value > Number(o.maxlength)), Ln = b(() => !!r.suffix || !!o.suffixIcon || F.value || o.showPassword || Z.value || !!B.value && Ce.value), Rn = b(() => !!Object.keys(o.modelModifiers).length), [Nn, Fn] = oa(k);
486
485
  lo(v, (c) => {
487
486
  if (Pn(), !Z.value || o.resize !== "both")
488
487
  return;
@@ -539,8 +538,8 @@ const Tn = "ElInput", aa = ne({
539
538
  I = It(I), o.modelModifiers.lazy && n(We, I), n(Kt, I), await D(), ge();
540
539
  }, {
541
540
  isComposing: At,
542
- handleCompositionStart: Bt,
543
- handleCompositionUpdate: xt,
541
+ handleCompositionStart: xt,
542
+ handleCompositionUpdate: Bt,
544
543
  handleCompositionEnd: Lt
545
544
  } = na({ emit: n, afterComposition: et }), On = () => {
546
545
  C.value = !C.value;
@@ -653,8 +652,8 @@ const Tn = "ElInput", aa = ne({
653
652
  autofocus: c.autofocus,
654
653
  role: c.containerRole,
655
654
  inputmode: c.inputmode,
656
- onCompositionstart: d(Bt),
657
- onCompositionupdate: d(xt),
655
+ onCompositionstart: d(xt),
656
+ onCompositionupdate: d(Bt),
658
657
  onCompositionend: d(Lt),
659
658
  onInput: et,
660
659
  onChange: Mt,
@@ -714,12 +713,12 @@ const Tn = "ElInput", aa = ne({
714
713
  class: S(d(l).e("count-inner"))
715
714
  }, te(d(Qe)) + " / " + te(c.maxlength), 3)
716
715
  ], 2)) : M("v-if", !0),
717
- d(x) && d(Te) && d(Ce) ? (y(), A(d(re), {
716
+ d(B) && d(Te) && d(Ce) ? (y(), A(d(re), {
718
717
  key: 4,
719
718
  class: S([
720
719
  d(l).e("icon"),
721
720
  d(l).e("validateIcon"),
722
- d(l).is("loading", d(x) === "validating")
721
+ d(l).is("loading", d(B) === "validating")
723
722
  ])
724
723
  }, {
725
724
  default: O(() => [
@@ -758,8 +757,8 @@ const Tn = "ElInput", aa = ne({
758
757
  autofocus: c.autofocus,
759
758
  rows: c.rows,
760
759
  role: c.containerRole,
761
- onCompositionstart: d(Bt),
762
- onCompositionupdate: d(xt),
760
+ onCompositionstart: d(xt),
761
+ onCompositionupdate: d(Bt),
763
762
  onCompositionend: d(Lt),
764
763
  onInput: et,
765
764
  onFocus: d(j),
@@ -786,7 +785,7 @@ const ia = mn(ra), st = "focus-trap.focus-after-trapped", rt = "focus-trap.focus
786
785
  }, ua = {
787
786
  cancelable: !0,
788
787
  bubbles: !1
789
- }, Xt = "focusAfterTrapped", jt = "focusAfterReleased", ca = Symbol("elFocusTrap"), Tt = B(), Je = B(0), kt = B(0);
788
+ }, Xt = "focusAfterTrapped", jt = "focusAfterReleased", ca = Symbol("elFocusTrap"), Tt = x(), Je = x(0), kt = x(0);
790
789
  let $e = 0;
791
790
  const kn = (e) => {
792
791
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
@@ -889,7 +888,7 @@ const tn = (e) => {
889
888
  "release-requested"
890
889
  ],
891
890
  setup(e, { emit: t }) {
892
- const n = B();
891
+ const n = x();
893
892
  let o, a;
894
893
  const { focusReason: s } = ga();
895
894
  ba((l) => {
@@ -911,21 +910,21 @@ const tn = (e) => {
911
910
  const H = g, [j, J] = fa(H);
912
911
  if (j && J) {
913
912
  if (!C && X === J) {
914
- const x = Ve({
913
+ const B = Ve({
915
914
  focusReason: s.value
916
915
  });
917
- t("focusout-prevented", x), x.defaultPrevented || (l.preventDefault(), V && ae(j, !0));
916
+ t("focusout-prevented", B), B.defaultPrevented || (l.preventDefault(), V && ae(j, !0));
918
917
  } else if (C && [j, H].includes(X)) {
919
- const x = Ve({
918
+ const B = Ve({
920
919
  focusReason: s.value
921
920
  });
922
- t("focusout-prevented", x), x.defaultPrevented || (l.preventDefault(), V && ae(J, !0));
921
+ t("focusout-prevented", B), B.defaultPrevented || (l.preventDefault(), V && ae(J, !0));
923
922
  }
924
923
  } else if (X === H) {
925
- const x = Ve({
924
+ const B = Ve({
926
925
  focusReason: s.value
927
926
  });
928
- t("focusout-prevented", x), x.defaultPrevented || l.preventDefault();
927
+ t("focusout-prevented", B), B.defaultPrevented || l.preventDefault();
929
928
  }
930
929
  }
931
930
  };
@@ -1022,7 +1021,7 @@ For more detail, please visit: ${a}
1022
1021
  scope: "props",
1023
1022
  ref: "https://element-plus.org/en-US/component/button.html#button-attributes"
1024
1023
  }, b(() => e.type === "text"));
1025
- const n = pe(In, void 0), o = uo("button"), { form: a } = Sn(), s = Cn(b(() => n == null ? void 0 : n.size)), r = wt(), i = B(), f = ln(), u = b(() => {
1024
+ const n = pe(In, void 0), o = uo("button"), { form: a } = Sn(), s = Cn(b(() => n == null ? void 0 : n.size)), r = wt(), i = x(), f = ln(), u = b(() => {
1026
1025
  var v;
1027
1026
  return e.type || (n == null ? void 0 : n.type) || ((v = o.value) == null ? void 0 : v.type) || "";
1028
1027
  }), p = b(() => {
@@ -1154,7 +1153,7 @@ function De(e) {
1154
1153
  function ce(e) {
1155
1154
  return e.length === 1 ? "0" + e : String(e);
1156
1155
  }
1157
- function Ba(e, t, n) {
1156
+ function xa(e, t, n) {
1158
1157
  return {
1159
1158
  r: N(e, 255) * 255,
1160
1159
  g: N(t, 255) * 255,
@@ -1186,7 +1185,7 @@ function nn(e, t, n) {
1186
1185
  function it(e, t, n) {
1187
1186
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * (6 * n) : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
1188
1187
  }
1189
- function xa(e, t, n) {
1188
+ function Ba(e, t, n) {
1190
1189
  var o, a, s;
1191
1190
  if (e = N(e, 360), t = N(t, 100), n = N(n, 100), t === 0)
1192
1191
  a = n, s = n, o = n;
@@ -1407,7 +1406,7 @@ var mt = {
1407
1406
  };
1408
1407
  function Pa(e) {
1409
1408
  var t = { r: 0, g: 0, b: 0 }, n = 1, o = null, a = null, s = null, r = !1, i = !1;
1410
- return typeof e == "string" && (e = $a(e)), typeof e == "object" && (Q(e.r) && Q(e.g) && Q(e.b) ? (t = Ba(e.r, e.g, e.b), r = !0, i = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : Q(e.h) && Q(e.s) && Q(e.v) ? (o = De(e.s), a = De(e.v), t = La(e.h, o, a), r = !0, i = "hsv") : Q(e.h) && Q(e.s) && Q(e.l) && (o = De(e.s), s = De(e.l), t = xa(e.h, o, s), r = !0, i = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (n = e.a)), n = Mn(n), {
1409
+ return typeof e == "string" && (e = $a(e)), typeof e == "object" && (Q(e.r) && Q(e.g) && Q(e.b) ? (t = xa(e.r, e.g, e.b), r = !0, i = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : Q(e.h) && Q(e.s) && Q(e.v) ? (o = De(e.s), a = De(e.v), t = La(e.h, o, a), r = !0, i = "hsv") : Q(e.h) && Q(e.s) && Q(e.l) && (o = De(e.s), s = De(e.l), t = Ba(e.h, o, s), r = !0, i = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (n = e.a)), n = Mn(n), {
1411
1410
  ok: r,
1412
1411
  format: e.format || i,
1413
1412
  r: Math.min(255, Math.max(t.r, 0)),
@@ -1786,7 +1785,7 @@ const Ga = mn(Ka, {
1786
1785
  });
1787
1786
  co(An);
1788
1787
  var Ye = /* @__PURE__ */ ((e) => (e[e.TEXT = 1] = "TEXT", e[e.CLASS = 2] = "CLASS", e[e.STYLE = 4] = "STYLE", e[e.PROPS = 8] = "PROPS", e[e.FULL_PROPS = 16] = "FULL_PROPS", e[e.HYDRATE_EVENTS = 32] = "HYDRATE_EVENTS", e[e.STABLE_FRAGMENT = 64] = "STABLE_FRAGMENT", e[e.KEYED_FRAGMENT = 128] = "KEYED_FRAGMENT", e[e.UNKEYED_FRAGMENT = 256] = "UNKEYED_FRAGMENT", e[e.NEED_PATCH = 512] = "NEED_PATCH", e[e.DYNAMIC_SLOTS = 1024] = "DYNAMIC_SLOTS", e[e.HOISTED = -1] = "HOISTED", e[e.BAIL = -2] = "BAIL", e))(Ye || {});
1789
- const Bn = (e) => {
1788
+ const xn = (e) => {
1790
1789
  if (!e)
1791
1790
  return { onClick: Ee, onMousedown: Ee, onMouseup: Ee };
1792
1791
  let t = !1, n = !1;
@@ -1823,7 +1822,7 @@ var Ja = ne({
1823
1822
  setup(e, { slots: t, emit: n }) {
1824
1823
  const o = he(ja), a = (f) => {
1825
1824
  n("click", f);
1826
- }, { onClick: s, onMousedown: r, onMouseup: i } = Bn(e.customMaskEvent ? void 0 : a);
1825
+ }, { onClick: s, onMousedown: r, onMouseup: i } = xn(e.customMaskEvent ? void 0 : a);
1827
1826
  return () => e.mask ? le("div", {
1828
1827
  class: [o.b(), e.overlayClass],
1829
1828
  style: {
@@ -1849,7 +1848,7 @@ const Za = Ja, Qa = (e, t, n, o) => {
1849
1848
  const a = {
1850
1849
  offsetX: 0,
1851
1850
  offsetY: 0
1852
- }, s = B(!1), r = (w, m) => {
1851
+ }, s = x(!1), r = (w, m) => {
1853
1852
  if (e.value) {
1854
1853
  const { offsetX: l, offsetY: h } = a, k = e.value.getBoundingClientRect(), v = k.left, g = k.top, C = k.width, V = k.height, G = document.documentElement.clientWidth, L = document.documentElement.clientHeight, X = -v + l, H = -g + h, j = G - v - C + l, J = L - g - (V < L ? V : 0) + h;
1855
1854
  o != null && o.value || (w = Math.min(Math.max(w, X), j), m = Math.min(Math.max(m, H), J)), a.offsetX = w, a.offsetY = m, e.value.style.transform = `translate(${$t(w)}, ${$t(m)})`;
@@ -1989,7 +1988,7 @@ const Za = Ja, Qa = (e, t, n, o) => {
1989
1988
  zIndex: o,
1990
1989
  ns: a,
1991
1990
  size: s
1992
- } = yo("message-box", b(() => e.buttonSize)), { t: r } = n, { nextZIndex: i } = o, f = B(!1), u = cn({
1991
+ } = yo("message-box", b(() => e.buttonSize)), { t: r } = n, { nextZIndex: i } = o, f = x(!1), u = cn({
1993
1992
  autofocus: !0,
1994
1993
  beforeClose: null,
1995
1994
  callback: null,
@@ -2032,7 +2031,7 @@ const Za = Ja, Qa = (e, t, n, o) => {
2032
2031
  }), E = pt(), w = pt(), m = b(() => {
2033
2032
  const T = u.type;
2034
2033
  return u.icon || T && zt[T] || "";
2035
- }), l = b(() => !!u.message), h = B(), k = B(), v = B(), g = B(), C = B(), V = b(() => u.confirmButtonClass);
2034
+ }), l = b(() => !!u.message), h = x(), k = x(), v = x(), g = x(), C = x(), V = b(() => u.confirmButtonClass);
2036
2035
  Y(() => u.inputValue, async (T) => {
2037
2036
  await D(), e.boxType === "prompt" && T && Te();
2038
2037
  }, { immediate: !0 }), Y(() => f.value, (T) => {
@@ -2054,11 +2053,11 @@ const Za = Ja, Qa = (e, t, n, o) => {
2054
2053
  }));
2055
2054
  }
2056
2055
  const j = () => {
2057
- e.closeOnClickModal && x(u.distinguishCancelAndClose ? "close" : "cancel");
2058
- }, J = Bn(j), Ce = (T) => {
2056
+ e.closeOnClickModal && B(u.distinguishCancelAndClose ? "close" : "cancel");
2057
+ }, J = xn(j), Ce = (T) => {
2059
2058
  if (u.inputType !== "textarea")
2060
- return T.preventDefault(), x("confirm");
2061
- }, x = (T) => {
2059
+ return T.preventDefault(), B("confirm");
2060
+ }, B = (T) => {
2062
2061
  var F;
2063
2062
  e.boxType === "prompt" && T === "confirm" && !Te() || (u.action = T, u.beforeClose ? (F = u.beforeClose) == null || F.call(u, T, u, H) : H());
2064
2063
  }, Te = () => {
@@ -2067,7 +2066,7 @@ const Za = Ja, Qa = (e, t, n, o) => {
2067
2066
  if (T && !T.test(u.inputValue || ""))
2068
2067
  return u.editorErrorMessage = u.inputErrorMessage || r("el.messagebox.error"), u.validateError = !0, !1;
2069
2068
  const F = u.inputValidator;
2070
- if (Be(F)) {
2069
+ if (xe(F)) {
2071
2070
  const $ = F(u.inputValue);
2072
2071
  if ($ === !1)
2073
2072
  return u.editorErrorMessage = u.inputErrorMessage || r("el.messagebox.error"), u.validateError = !0, !1;
@@ -2081,7 +2080,7 @@ const Za = Ja, Qa = (e, t, n, o) => {
2081
2080
  const $ = (T = g.value) == null ? void 0 : T.$refs;
2082
2081
  return (F = $ == null ? void 0 : $.input) != null ? F : $ == null ? void 0 : $.textarea;
2083
2082
  }, Fe = () => {
2084
- x("close");
2083
+ B("close");
2085
2084
  }, Pe = () => {
2086
2085
  e.closeOnPressEscape && Fe();
2087
2086
  };
@@ -2108,7 +2107,7 @@ const Za = Ja, Qa = (e, t, n, o) => {
2108
2107
  onCloseRequested: Pe,
2109
2108
  handleWrapperClick: j,
2110
2109
  handleInputEnter: Ce,
2111
- handleAction: x,
2110
+ handleAction: B,
2112
2111
  t: r
2113
2112
  };
2114
2113
  }
@@ -2306,20 +2305,20 @@ function as(e, t, n, o, a, s) {
2306
2305
  }, 8, ["onAfterLeave"]);
2307
2306
  }
2308
2307
  var ss = /* @__PURE__ */ Ne(os, [["render", as], ["__file", "index.vue"]]);
2309
- const xe = /* @__PURE__ */ new Map(), rs = (e) => {
2308
+ const Be = /* @__PURE__ */ new Map(), rs = (e) => {
2310
2309
  let t = document.body;
2311
2310
  return e.appendTo && (fe(e.appendTo) && (t = document.querySelector(e.appendTo)), _t(e.appendTo) && (t = e.appendTo), _t(t) || (ve("ElMessageBox", "the appendTo option is not an HTMLElement. Falling back to document.body."), t = document.body)), t;
2312
2311
  }, is = (e, t, n = null) => {
2313
- const o = le(ss, e, Be(e.message) || dn(e.message) ? {
2314
- default: Be(e.message) ? e.message : () => e.message
2312
+ const o = le(ss, e, xe(e.message) || dn(e.message) ? {
2313
+ default: xe(e.message) ? e.message : () => e.message
2315
2314
  } : null);
2316
2315
  return o.appContext = n, fn(o, t), rs(e).appendChild(t.firstElementChild), o.component;
2317
2316
  }, ls = () => document.createElement("div"), us = (e, t) => {
2318
2317
  const n = ls();
2319
2318
  e.onVanish = () => {
2320
- fn(null, n), xe.delete(a);
2319
+ fn(null, n), Be.delete(a);
2321
2320
  }, e.onAction = (s) => {
2322
- const r = xe.get(a);
2321
+ const r = Be.get(a);
2323
2322
  let i;
2324
2323
  e.showInput ? i = { value: a.inputValue, action: s } : i = s, e.callback ? e.callback(i, o.proxy) : s === "cancel" || s === "close" ? e.distinguishCancelAndClose && s !== "cancel" ? r.reject("close") : r.reject("cancel") : r.resolve(i);
2325
2324
  };
@@ -2336,7 +2335,7 @@ function we(e, t = null) {
2336
2335
  message: e
2337
2336
  } : n = e.callback, new Promise((o, a) => {
2338
2337
  const s = us(e, t ?? we._context);
2339
- xe.set(s, {
2338
+ Be.set(s, {
2340
2339
  options: e,
2341
2340
  callback: n,
2342
2341
  resolve: o,
@@ -2366,16 +2365,16 @@ function fs(e) {
2366
2365
  };
2367
2366
  }
2368
2367
  we.close = () => {
2369
- xe.forEach((e, t) => {
2368
+ Be.forEach((e, t) => {
2370
2369
  t.doClose();
2371
- }), xe.clear();
2370
+ }), Be.clear();
2372
2371
  };
2373
2372
  we._context = null;
2374
2373
  const se = we;
2375
2374
  se.install = (e) => {
2376
2375
  se._context = e._context, e.config.globalProperties.$msgbox = se, e.config.globalProperties.$messageBox = se, e.config.globalProperties.$alert = se.alert, e.config.globalProperties.$confirm = se.confirm, e.config.globalProperties.$prompt = se.prompt;
2377
2376
  };
2378
- const ys = se;
2377
+ const bs = se;
2379
2378
  export {
2380
- ys as E
2379
+ bs as E
2381
2380
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const je=require("./index-BLGT4-wX.cjs"),t=require("vue"),P=require("./index-kutaq0AT.cjs"),ht=require("./index-BXZlLwr6.cjs"),yt=require("./index-CVwsrCrZ.cjs"),vt=require("vue-router"),Le=require("./index-9hspBVrQ.cjs"),U=require("./index-Dc6Q0f3F.cjs"),gt=require("./menuIndex-QovY60sY.cjs"),kt=require("./index-BpPyaNFa.cjs"),m=require("./index.vue_vue_type_style_index_0_scoped_92c12abe_lang-CvIVRrBm.cjs"),Pe=require("./index-DJoiySWn.cjs"),Ct=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Re=(n,p,K=0)=>{let y=n;return y!=null&&y.every(r=>Array.isArray(r))&&(y!=null&&y.every(r=>Array.isArray(r)&&r.length===1)?y=y==null?void 0:y.filter(r=>(r==null?void 0:r[0])!==(p==null?void 0:p[K])):y=y==null?void 0:y.map(r=>{if(r!=null&&r.find(o=>o===(p==null?void 0:p[K]))&&(p==null?void 0:p.length)!==1){let o=P.cloneDeep(p),c=r==null?void 0:r.filter(I=>I!==(o==null?void 0:o[K])),T=K+1,x=Re(c,o,T),B=[];B.push(r==null?void 0:r[0]),x==null||x.forEach(I=>{B.push(I)}),r=B}return r})),y},Oe=(n,p,K,y=0)=>{let r=n;return r!=null&&r.every(o=>Array.isArray(o))&&(r!=null&&r.every(o=>Array.isArray(o)&&o.length===1)?r.push([K]):r=r==null?void 0:r.map(o=>{if(o!=null&&o.find(c=>c===(p==null?void 0:p[y]))&&(p==null?void 0:p.length)!==1){let c=P.cloneDeep(p),T=o==null?void 0:o.filter(V=>V!==(c==null?void 0:c[y])),x=y+1,B=Oe(T,c,K,x),I=[];I.push(o==null?void 0:o[0]),B==null||B.forEach(V=>{I.push(V)}),o=I}return o})),r},ue=(n,p,K,y,r=0)=>{let o=n;return o!=null&&o.every(c=>Array.isArray(c))&&(o!=null&&o.every(c=>Array.isArray(c)&&c.length===1)?o=o==null?void 0:o.map(c=>((c==null?void 0:c[0])===K&&(c=[y]),c)):o=o==null?void 0:o.map(c=>{if(c!=null&&c.find(T=>T===(p==null?void 0:p[r]))&&(p==null?void 0:p.length)!==1){let T=P.cloneDeep(p),x=c==null?void 0:c.filter(R=>R!==(T==null?void 0:T[r])),B=r+1,I=ue(x,T,K,y,B),V=[];V.push(c==null?void 0:c[0]),I==null||I.forEach(R=>{V.push(R)}),c=V}return c})),o};function Ye(n="menu"){return{name:n,components:{SvgIcon:kt.SvgIcon,ssMenu:je.ssMenu,DynamicIcon:je._sfc_main,ssDialog:ht.ssDialog,ssInput:yt._sfc_main$2},setup(p,{emit:K}){const y=t.defineProps({mode:{type:String,default:"vertical"}}),r=t.ref([{allowInherit:!1,operateType:"复制新增",operateIcon:"CopyAddMenu"},{allowInherit:!1,operateType:"删除",operateIcon:"DeleteMenu"},{allowInherit:!1,operateType:"修改菜单名",operateIcon:"FixedMenu"}]),o=P.useMenuState(),c=P.useModelComp(P.pinia),T=P.useLoginState(P.pinia),{loginUserInfo:x}=P.storeToRefs(T),B=t.ref(0),I=vt.useRouter(),V=t.ref(),{asideMenus:R,menuTriggerType:s,platform:Ne}=P.storeToRefs(o),{fixMenuStatus:qe}=P.storeToRefs(c),Ue=t.computed(()=>y==null?void 0:y.mode),ee=l=>l==null?void 0:l.map(e=>{var k,C;return!(e!=null&&e.children)||((k=e==null?void 0:e.children)==null?void 0:k.length)===0?e.config=r.value:e!=null&&e.children&&((C=e==null?void 0:e.children)==null?void 0:C.length)>0&&(e.children=ee(e.children)),e}),A=t.computed(()=>{let l=[...R.value];if((l==null?void 0:l.length)===0)return I.push("/"),[];const a=et(l,me.value);return a.isFlag||(l=a==null?void 0:a.data),l=l==null?void 0:l.map(e=>{var k,C;return!(e!=null&&e.children)||((k=e==null?void 0:e.children)==null?void 0:k.length)===0?e.config=r.value:e!=null&&e.children&&((C=e==null?void 0:e.children)==null?void 0:C.length)>0&&(e.children=ee(e.children)),e}),l}),ze=async(l,a)=>{c.setRouteToChildPath(""),o.setMenuTriggerType("click"),o.setActiveMenuPath(l==null?void 0:l.path),o.setActiveAsideMenu(l),l.isRouter?I.push(l.path):I.push("/"),K("node-click",l,a)},Ze=async l=>{const a=gt.findNodeByPropInTree(A.value,"path",l);o.setActiveAsideMenu(a),c.setRouteToChildPath(""),qe.value?c.setFixMenuStatus(!1):(Z.value&&(s.value="open"),s.value==="click"?B.value===1?o.setActiveMenuPath(sessionStorage.getItem("pageKey")):o.setActiveMenuPath(l):Z.value||(o.setMenuTriggerType("click"),o.setActiveMenuPath(l))),l!=null&&l.startsWith("/")?I.push(l):I.push("/"),B.value++},He=l=>{Z.value||o.setActiveMenuPath(l)},X=l=>{const a=document.documentElement;l==null||l.forEach(e=>{a.style.setProperty(e.name,e.value)})};t.onMounted(()=>{B.value=1});const me=t.computed(()=>{const l=sessionStorage.getItem("authority");return l?JSON.parse(l):[]});t.watch(()=>Ne.value,l=>{l==="browser"?X(Le.browserVerticalMenuClasses):l==="client"?(X(Le.clientHorizontalMenuClasses),X(Le.clientVerticalMenuClasses)):l==="three"&&(X(Le.threeHorizontalMenuClasses),X(Le.threeVerticalMenuClasses))},{immediate:!0});const et=(l,a)=>({isFlag:!0}),O=t.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),tt=l=>je.getComponent(l),lt=t.ref({}),ot=t.ref([]),te=t.ref({}),Y=t.ref({}),at=l=>{switch(l){case"复制新增":return"create";case"修改菜单名":return"update";case"删除":return"delete"}},Je=t.ref({}),st=l=>{o.setCacheInputMenu({type:O.type,data:l}),o.setIsRefreshMenus(!0)},it=async(l,a,e)=>{var k,C,_,z,E,H,j,le,oe,ae,se,ie,re,ce,pe,ne,de,fe,he,ye,ve,ge,ke,Ce,De,Ie,Se,_e,be,we,Te,Be,Ee,Me,Ke,xe,Ve,Ae,h,F,L,b;if(a==="create"){let d=(e==null?void 0:e.title)+"(1)",M=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),S=(C=(k=M==null?void 0:M.data)==null?void 0:k.result)==null?void 0:C[0],J=(_=S==null?void 0:S.value)==null?void 0:_.pageData;J.compData=(z=J.compData)==null?void 0:z.map(i=>{var f;return(i==null?void 0:i.key)==="menuContents"&&(i.contents=Oe(i.contents,(f=e==null?void 0:e.path)==null?void 0:f.split("/"),d)),i}),await U.updateInsofDataApi({id:S==null?void 0:S.id,value:{pageData:J}});let N=(H=(E=e==null?void 0:e.path)==null?void 0:E.split("/"))==null?void 0:H.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}),q=await m.getItemData((oe=(le=(j=e==null?void 0:e.path)==null?void 0:j.split("/"))==null?void 0:le.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:oe.join("/"),sessionStorage.getItem("systemKey"),"");if(N.push(d),N=N==null?void 0:N.join("/"),(q==null?void 0:q.length)>0){let i=q==null?void 0:q[0],f=(se=(ae=i==null?void 0:i.compData)==null?void 0:ae.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:se.contents;if(((ie=f==null?void 0:f[0])==null?void 0:ie.directiveLabel)==="#isMain"){let g=(re=f==null?void 0:f[0])==null?void 0:re.prop,D=(pe=(ce=i==null?void 0:i.compData)==null?void 0:ce.find(w=>(w==null?void 0:w.key)==="tableContents"))==null?void 0:pe.contents,W;D==null||D.forEach(w=>{var G,u;if(w.length===1)((G=w==null?void 0:w[0])==null?void 0:G[g])===(e==null?void 0:e.title)&&(W=w==null?void 0:w[0],W[g]=d);else{let Q=(u=f==null?void 0:f.filter($=>$!=="操作"))==null?void 0:u.map($=>$==null?void 0:$.prop),$e=w==null?void 0:w.filter($=>!($!=null&&$.id)),Fe=m.getValueToObjectValue($e,Q);Fe[g]=d,W=Fe}}),await U.createInsofDataApi({key:{type:"data",pageKey:(fe=(de=(ne=e==null?void 0:e.path)==null?void 0:ne.split("/"))==null?void 0:de.filter((w,G)=>{var u,Q;return G!==((Q=(u=e==null?void 0:e.path)==null?void 0:u.split("/"))==null?void 0:Q.length)-1}))==null?void 0:fe.join("/"),tableId:i==null?void 0:i.id,systemKey:sessionStorage.getItem("systemKey"),createUserId:(he=x.value)==null?void 0:he.id,createUserLayer:((ye=x.value)==null?void 0:ye.dept)||((ve=x.value)==null?void 0:ve.部门名称)},value:{tableData:W}})}}await m.newLoadingConstruct(e==null?void 0:e.path,N),o.setUpdateMenuStatus(!1),await Pe.verifyStructureDataToStore(),o.setActiveMenuPath((Ce=(ke=(ge=e==null?void 0:e.path)==null?void 0:ge.split("/"))==null?void 0:ke.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:Ce.join("/")),o.setActiveTopMenuPath((Ie=(De=e==null?void 0:e.path)==null?void 0:De.split("/"))==null?void 0:Ie[0]),o.setIsRefreshMenus(!1),o.setIsRefreshMenus(!0)}else if(a==="update")V.value=e;else if(a==="delete"){let d=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:e==null?void 0:e.path}}),M=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),S=(_e=(Se=M==null?void 0:M.data)==null?void 0:Se.result)==null?void 0:_e[0],J=(be=S==null?void 0:S.value)==null?void 0:be.pageData;if(J.compData=(we=J.compData)==null?void 0:we.map(i=>{var f;return(i==null?void 0:i.key)==="menuContents"&&(i.contents=Re(i.contents,(f=e==null?void 0:e.path)==null?void 0:f.split("/"))),i}),await U.updateInsofDataApi({id:S==null?void 0:S.id,value:{pageData:J}}),((Be=(Te=d==null?void 0:d.data)==null?void 0:Te.result)==null?void 0:Be.length)>0){let i=(Me=(Ee=d==null?void 0:d.data)==null?void 0:Ee.result)==null?void 0:Me.map(f=>f==null?void 0:f.id);(i==null?void 0:i.length)>0&&await U.batchDeleteInsofDataApi({ids:i})}let N=await m.getItemData((Ve=(xe=(Ke=e==null?void 0:e.path)==null?void 0:Ke.split("/"))==null?void 0:xe.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:Ve.join("/"),sessionStorage.getItem("systemKey"),""),q=[];(N==null?void 0:N.length)>0&&(N==null||N.forEach(i=>{var g,D,W,w,G,u,Q,$e,Fe,$,We;let f=(w=(W=(D=(g=i==null?void 0:i.compData)==null?void 0:g.find(v=>(v==null?void 0:v.key)==="header"))==null?void 0:D.contents)==null?void 0:W[0])==null?void 0:w.prop;(($e=(Q=(u=(G=i==null?void 0:i.compData)==null?void 0:G.find(v=>(v==null?void 0:v.key)==="header"))==null?void 0:u.contents)==null?void 0:Q[0])==null?void 0:$e.directiveLabel)==="#isMain"&&((We=($=(Fe=i==null?void 0:i.compData)==null?void 0:Fe.find(v=>(v==null?void 0:v.key)==="tableContents"))==null?void 0:$.contents)==null||We.forEach(v=>{var Ge,Qe,Xe;(v==null?void 0:v.length)>1?(v==null?void 0:v[1])===(e==null?void 0:e.title)&&q.push((Ge=v==null?void 0:v[0])==null?void 0:Ge.id):((Qe=v==null?void 0:v[0])==null?void 0:Qe[f])===(e==null?void 0:e.title)&&q.push((Xe=v==null?void 0:v[0])==null?void 0:Xe.id)}))})),(q==null?void 0:q.length)>0&&await U.batchDeleteInsofDataApi({ids:q}),o.setUpdateMenuStatus(!1),await Pe.verifyStructureDataToStore(),o.setActiveMenuPath((F=(h=(Ae=e==null?void 0:e.path)==null?void 0:Ae.split("/"))==null?void 0:h.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:F.join("/")),o.setActiveTopMenuPath((b=(L=e==null?void 0:e.path)==null?void 0:L.split("/"))==null?void 0:b[0]),o.setIsRefreshMenus(!1),o.setIsRefreshMenus(!0)}},rt=async(l,a)=>{var le,oe,ae,se,ie,re,ce,pe,ne,de,fe,he,ye,ve,ge,ke,Ce,De,Ie,Se,_e,be,we,Te,Be,Ee,Me,Ke,xe,Ve,Ae;let e=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),k=(oe=(le=e==null?void 0:e.data)==null?void 0:le.result)==null?void 0:oe[0],C=(ae=k==null?void 0:k.value)==null?void 0:ae.pageData;C.compData=(se=C.compData)==null?void 0:se.map(h=>{var F,L;return(h==null?void 0:h.key)==="menuContents"&&(h.contents=ue(h.contents,(F=a==null?void 0:a.path)==null?void 0:F.split("/"),a==null?void 0:a.title,(L=l==null?void 0:l.target)==null?void 0:L.value)),h}),k!=null&&k.id&&await U.updateInsofDataApi({id:k==null?void 0:k.id,value:{pageData:C}});let _=(re=(ie=a==null?void 0:a.path)==null?void 0:ie.split("/"))==null?void 0:re.filter((h,F)=>{var L,b;return F!==((b=(L=a==null?void 0:a.path)==null?void 0:L.split("/"))==null?void 0:b.length)-1}),z=_==null?void 0:_.join("/");_.push((ce=l==null?void 0:l.target)==null?void 0:ce.value),_=_==null?void 0:_.join("/");let E=await m.getItemData(z,sessionStorage.getItem("systemKey"),"");if(((he=(fe=(de=(ne=(pe=E==null?void 0:E[0])==null?void 0:pe.compData)==null?void 0:ne.find(h=>(h==null?void 0:h.key)==="header"))==null?void 0:de.contents)==null?void 0:fe[0])==null?void 0:he.directiveLabel)==="#isMain"){let h=(Ce=(ke=(ge=(ve=(ye=E==null?void 0:E[0])==null?void 0:ye.compData)==null?void 0:ve.find(d=>(d==null?void 0:d.key)==="header"))==null?void 0:ge.contents)==null?void 0:ke[0])==null?void 0:Ce.prop,F=(Se=(Ie=(De=E==null?void 0:E[0])==null?void 0:De.compData)==null?void 0:Ie.find(d=>(d==null?void 0:d.key)==="tableContents"))==null?void 0:Se.contents,L=(Te=(we=(be=(_e=E==null?void 0:E[0])==null?void 0:_e.compData)==null?void 0:be.find(d=>(d==null?void 0:d.key)==="header"))==null?void 0:we.contents)==null?void 0:Te.map(d=>d==null?void 0:d.prop),b;if(F==null||F.forEach(d=>{var S;let M=m.getValueToObjectValue(d,L);(M==null?void 0:M[h])===a.title&&(b=M,b[h]=(S=l==null?void 0:l.target)==null?void 0:S.value)}),b){let d={};for(let S in b)S!=="id"&&(d[S]=b==null?void 0:b[S]);let M=[{id:b==null?void 0:b.id,value:{tableData:d}}];await U.batchUpdateInsofDataApi({dataList:M})}}let H=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:a==null?void 0:a.path}}),j=(Ee=(Be=H==null?void 0:H.data)==null?void 0:Be.result)==null?void 0:Ee.map(h=>({id:h==null?void 0:h.id,key:h==null?void 0:h.key}));j=j==null?void 0:j.map(h=>(h.key.pageKey=_,h)),(j==null?void 0:j.length)>0&&await U.batchUpdateInsofDataApi({dataList:j}),o.setUpdateMenuStatus(!1),await Pe.verifyStructureDataToStore(),o.setActiveMenuPath((xe=(Ke=(Me=a==null?void 0:a.path)==null?void 0:Me.split("/"))==null?void 0:Ke.filter((h,F)=>{var L,b;return F!==((b=(L=a==null?void 0:a.path)==null?void 0:L.split("/"))==null?void 0:b.length)-1}))==null?void 0:xe.join("/")),o.setActiveTopMenuPath((Ae=(Ve=a==null?void 0:a.path)==null?void 0:Ve.split("/"))==null?void 0:Ae[0]),o.setIsRefreshMenus(!1),o.setIsRefreshMenus(!0),V.value=void 0},ct=async(l,a)=>{O.type=at(a==null?void 0:a.operateType),await it(a,O.type,l),Y.value=l,Je.value=a},pt=()=>{O.show=!1},nt=l=>l==null?void 0:l.filter(a=>a.allowInherit),dt=()=>{var e,k,C,_,z;let l;O.type==="create"&&(l=((e=Y.value)==null?void 0:e.path)+"/"+te.value[(k=te.value)==null?void 0:k.prop]),O.type==="update"&&(l=(C=Y.value)==null?void 0:C.path);const a={...Y.value,config:nt((_=Y.value)==null?void 0:_.config),children:[],childMenus:[],title:te.value[(z=te.value)==null?void 0:z.prop],path:l};console.log("clickSubmitForm",Je.value,Y.value,a),st(a),O.show=!1},ft=l=>{var e,k;const a=(e=l==null?void 0:l.contents)==null?void 0:e.find(C=>C.key==="formContent");a&&(te.value=(k=a==null?void 0:a.contents)==null?void 0:k.reduce((C,_)=>(C[_.key]=_.value,C.prop=_.key,C),{}))},Z=t.ref(!1);return{isCollapse:Z,handleMenuCollapse:()=>{Z.value=!Z.value},handleCompChange:ft,dialogForm:lt,dialogRenderComps:ot,getComponents:tt,clickSubmitForm:dt,dialogInfo:O,beforeDialogDestroy:pt,clickMenuIcon:ct,mode:Ue,renderMenuList:A,clickMenu:ze,openMenu:Ze,closeMenu:He,changeMenuStyle:X,fixElement:V,onBlur:rt}}}}const Dt=t.defineComponent(Ye()),It=["title"],St={key:1,class:"menu-title",style:{display:"flex",width:"100px"}},_t={key:2,class:"menu-operate-icon"},bt={class:"menu-config-wrap"},wt=["onClick"],Tt={class:"module-dialog-content"};function Bt(n,p,K,y,r,o){var R;const c=t.resolveComponent("ss-input"),T=t.resolveComponent("svg-icon"),x=t.resolveComponent("el-popover"),B=t.resolveComponent("ss-menu"),I=t.resolveComponent("el-button"),V=t.resolveComponent("ss-dialog");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(B,{class:"vertical-menu",mode:n.mode,menuList:n.renderMenuList,isCollapse:n.isCollapse,uniqueOpened:!0,onClickMenu:n.clickMenu,onOpenMenu:n.openMenu,onCloseMenu:n.closeMenu},{title:t.withCtx(({menu:s})=>{var Ne,qe,Ue,ee;return[!n.fixElement||(s==null?void 0:s.path)!==((Ne=n.fixElement)==null?void 0:Ne.path)?(t.openBlock(),t.createElementBlock("span",{key:0,title:s.title,class:"menu-title",style:t.normalizeStyle({marginRight:s!=null&&s.config&&((qe=s==null?void 0:s.config)==null?void 0:qe.length)>0?"25px":"1px"})},t.toDisplayString(s.title??""),13,It)):t.createCommentVNode("",!0),n.fixElement&&(s==null?void 0:s.path)===((Ue=n.fixElement)==null?void 0:Ue.path)?(t.openBlock(),t.createElementBlock("span",St,[t.createVNode(c,{value:s.title,onBlur:A=>n.onBlur(A,s)},null,8,["value","onBlur"])])):t.createCommentVNode("",!0),s!=null&&s.config&&((ee=s==null?void 0:s.config)==null?void 0:ee.length)>0?(t.openBlock(),t.createElementBlock("span",_t,[t.createVNode(x,{title:"",placement:"bottom-start",trigger:"hover","popper-class":"menu-operate-popover"},{reference:t.withCtx(()=>[t.createVNode(T,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})]),default:t.withCtx(()=>[t.createElementVNode("div",bt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s==null?void 0:s.config,A=>(t.openBlock(),t.createElementBlock("div",{class:"menu-config-item",key:A.id,onClick:ze=>n.clickMenuIcon(s,A)},[t.createVNode(T,{name:A==null?void 0:A.operateIcon,style:{width:"15px",height:"15px","margin-right":"8px"}},null,8,["name"]),t.createElementVNode("span",null,t.toDisplayString(A==null?void 0:A.operateType),1)],8,wt))),128))])]),_:2},1024)])):t.createCommentVNode("",!0)]}),_:1},8,["mode","menuList","isCollapse","onClickMenu","onOpenMenu","onCloseMenu"]),((R=n.renderMenuList)==null?void 0:R.length)>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fold-icon",onClick:p[0]||(p[0]=(...s)=>n.handleMenuCollapse&&n.handleMenuCollapse(...s))},[t.createVNode(T,{name:n.isCollapse?"expand":"pack",style:{width:"15px",height:"15px"}},null,8,["name"])])):t.createCommentVNode("",!0),t.createVNode(V,{class:"module-dialog",title:n.dialogInfo.title,visible:n.dialogInfo.show,width:n.dialogInfo.width,onBeforeDestroy:n.beforeDialogDestroy},{default:t.withCtx(()=>[t.createElementVNode("div",Tt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.dialogRenderComps,s=>(t.openBlock(),t.createElementBlock("div",{key:s.id},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.getComponents((s==null?void 0:s.comp)??"Input")),{itemData:s==null?void 0:s.compData,key:s==null?void 0:s.id,content:(s==null?void 0:s.contents)??[],config:s==null?void 0:s.config,onContentChange:n.handleCompChange},null,40,["itemData","content","config","onContentChange"]))]))),128))])]),footer:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(I,{id:"themeBorderButton",onClick:n.beforeDialogDestroy},{default:t.withCtx(()=>p[1]||(p[1]=[t.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),t.createVNode(I,{id:"themeButton",onClick:n.clickSubmitForm},{default:t.withCtx(()=>p[2]||(p[2]=[t.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])],64)}const Et=Ct._export_sfc(Dt,[["render",Bt],["__scopeId","data-v-20f284c2"]]);exports.addSelectMenu=Oe;exports.default=Et;exports.deleteSelectMenu=Re;exports.fixSelectMenu=ue;exports.setComponent=Ye;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const je=require("./index-TspEOSLc.cjs"),t=require("vue"),P=require("./index-DiowIVZT.cjs"),ht=require("./index-Bd8mah99.cjs"),yt=require("./index-CdzQfZvY.cjs"),vt=require("vue-router"),Le=require("./index-9hspBVrQ.cjs"),U=require("./index-Dc6Q0f3F.cjs"),gt=require("./menuIndex-7DwfwtqQ.cjs"),kt=require("./index-BpPyaNFa.cjs"),m=require("./index.vue_vue_type_style_index_0_scoped_92c12abe_lang-CuQjU1nB.cjs"),Pe=require("./index-BEpwtI2Q.cjs"),Ct=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Re=(n,p,K=0)=>{let y=n;return y!=null&&y.every(r=>Array.isArray(r))&&(y!=null&&y.every(r=>Array.isArray(r)&&r.length===1)?y=y==null?void 0:y.filter(r=>(r==null?void 0:r[0])!==(p==null?void 0:p[K])):y=y==null?void 0:y.map(r=>{if(r!=null&&r.find(o=>o===(p==null?void 0:p[K]))&&(p==null?void 0:p.length)!==1){let o=P.cloneDeep(p),c=r==null?void 0:r.filter(I=>I!==(o==null?void 0:o[K])),T=K+1,x=Re(c,o,T),B=[];B.push(r==null?void 0:r[0]),x==null||x.forEach(I=>{B.push(I)}),r=B}return r})),y},Oe=(n,p,K,y=0)=>{let r=n;return r!=null&&r.every(o=>Array.isArray(o))&&(r!=null&&r.every(o=>Array.isArray(o)&&o.length===1)?r.push([K]):r=r==null?void 0:r.map(o=>{if(o!=null&&o.find(c=>c===(p==null?void 0:p[y]))&&(p==null?void 0:p.length)!==1){let c=P.cloneDeep(p),T=o==null?void 0:o.filter(V=>V!==(c==null?void 0:c[y])),x=y+1,B=Oe(T,c,K,x),I=[];I.push(o==null?void 0:o[0]),B==null||B.forEach(V=>{I.push(V)}),o=I}return o})),r},ue=(n,p,K,y,r=0)=>{let o=n;return o!=null&&o.every(c=>Array.isArray(c))&&(o!=null&&o.every(c=>Array.isArray(c)&&c.length===1)?o=o==null?void 0:o.map(c=>((c==null?void 0:c[0])===K&&(c=[y]),c)):o=o==null?void 0:o.map(c=>{if(c!=null&&c.find(T=>T===(p==null?void 0:p[r]))&&(p==null?void 0:p.length)!==1){let T=P.cloneDeep(p),x=c==null?void 0:c.filter(R=>R!==(T==null?void 0:T[r])),B=r+1,I=ue(x,T,K,y,B),V=[];V.push(c==null?void 0:c[0]),I==null||I.forEach(R=>{V.push(R)}),c=V}return c})),o};function Ye(n="menu"){return{name:n,components:{SvgIcon:kt.SvgIcon,ssMenu:je.ssMenu,DynamicIcon:je._sfc_main,ssDialog:ht.ssDialog,ssInput:yt._sfc_main$2},setup(p,{emit:K}){const y=t.defineProps({mode:{type:String,default:"vertical"}}),r=t.ref([{allowInherit:!1,operateType:"复制新增",operateIcon:"CopyAddMenu"},{allowInherit:!1,operateType:"删除",operateIcon:"DeleteMenu"},{allowInherit:!1,operateType:"修改菜单名",operateIcon:"FixedMenu"}]),o=P.useMenuState(),c=P.useModelComp(P.pinia),T=P.useLoginState(P.pinia),{loginUserInfo:x}=P.storeToRefs(T),B=t.ref(0),I=vt.useRouter(),V=t.ref(),{asideMenus:R,menuTriggerType:s,platform:Ne}=P.storeToRefs(o),{fixMenuStatus:qe}=P.storeToRefs(c),Ue=t.computed(()=>y==null?void 0:y.mode),ee=l=>l==null?void 0:l.map(e=>{var k,C;return!(e!=null&&e.children)||((k=e==null?void 0:e.children)==null?void 0:k.length)===0?e.config=r.value:e!=null&&e.children&&((C=e==null?void 0:e.children)==null?void 0:C.length)>0&&(e.children=ee(e.children)),e}),A=t.computed(()=>{let l=[...R.value];if((l==null?void 0:l.length)===0)return I.push("/"),[];const a=et(l,me.value);return a.isFlag||(l=a==null?void 0:a.data),l=l==null?void 0:l.map(e=>{var k,C;return!(e!=null&&e.children)||((k=e==null?void 0:e.children)==null?void 0:k.length)===0?e.config=r.value:e!=null&&e.children&&((C=e==null?void 0:e.children)==null?void 0:C.length)>0&&(e.children=ee(e.children)),e}),l}),ze=async(l,a)=>{c.setRouteToChildPath(""),o.setMenuTriggerType("click"),o.setActiveMenuPath(l==null?void 0:l.path),o.setActiveAsideMenu(l),l.isRouter?I.push(l.path):I.push("/"),K("node-click",l,a)},Ze=async l=>{const a=gt.findNodeByPropInTree(A.value,"path",l);o.setActiveAsideMenu(a),c.setRouteToChildPath(""),qe.value?c.setFixMenuStatus(!1):(Z.value&&(s.value="open"),s.value==="click"?B.value===1?o.setActiveMenuPath(sessionStorage.getItem("pageKey")):o.setActiveMenuPath(l):Z.value||(o.setMenuTriggerType("click"),o.setActiveMenuPath(l))),l!=null&&l.startsWith("/")?I.push(l):I.push("/"),B.value++},He=l=>{Z.value||o.setActiveMenuPath(l)},X=l=>{const a=document.documentElement;l==null||l.forEach(e=>{a.style.setProperty(e.name,e.value)})};t.onMounted(()=>{B.value=1});const me=t.computed(()=>{const l=sessionStorage.getItem("authority");return l?JSON.parse(l):[]});t.watch(()=>Ne.value,l=>{l==="browser"?X(Le.browserVerticalMenuClasses):l==="client"?(X(Le.clientHorizontalMenuClasses),X(Le.clientVerticalMenuClasses)):l==="three"&&(X(Le.threeHorizontalMenuClasses),X(Le.threeVerticalMenuClasses))},{immediate:!0});const et=(l,a)=>({isFlag:!0}),O=t.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),tt=l=>je.getComponent(l),lt=t.ref({}),ot=t.ref([]),te=t.ref({}),Y=t.ref({}),at=l=>{switch(l){case"复制新增":return"create";case"修改菜单名":return"update";case"删除":return"delete"}},Je=t.ref({}),st=l=>{o.setCacheInputMenu({type:O.type,data:l}),o.setIsRefreshMenus(!0)},it=async(l,a,e)=>{var k,C,_,z,E,H,j,le,oe,ae,se,ie,re,ce,pe,ne,de,fe,he,ye,ve,ge,ke,Ce,De,Ie,Se,_e,be,we,Te,Be,Ee,Me,Ke,xe,Ve,Ae,h,F,L,b;if(a==="create"){let d=(e==null?void 0:e.title)+"(1)",M=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),S=(C=(k=M==null?void 0:M.data)==null?void 0:k.result)==null?void 0:C[0],J=(_=S==null?void 0:S.value)==null?void 0:_.pageData;J.compData=(z=J.compData)==null?void 0:z.map(i=>{var f;return(i==null?void 0:i.key)==="menuContents"&&(i.contents=Oe(i.contents,(f=e==null?void 0:e.path)==null?void 0:f.split("/"),d)),i}),await U.updateInsofDataApi({id:S==null?void 0:S.id,value:{pageData:J}});let N=(H=(E=e==null?void 0:e.path)==null?void 0:E.split("/"))==null?void 0:H.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}),q=await m.getItemData((oe=(le=(j=e==null?void 0:e.path)==null?void 0:j.split("/"))==null?void 0:le.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:oe.join("/"),sessionStorage.getItem("systemKey"),"");if(N.push(d),N=N==null?void 0:N.join("/"),(q==null?void 0:q.length)>0){let i=q==null?void 0:q[0],f=(se=(ae=i==null?void 0:i.compData)==null?void 0:ae.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:se.contents;if(((ie=f==null?void 0:f[0])==null?void 0:ie.directiveLabel)==="#isMain"){let g=(re=f==null?void 0:f[0])==null?void 0:re.prop,D=(pe=(ce=i==null?void 0:i.compData)==null?void 0:ce.find(w=>(w==null?void 0:w.key)==="tableContents"))==null?void 0:pe.contents,W;D==null||D.forEach(w=>{var G,u;if(w.length===1)((G=w==null?void 0:w[0])==null?void 0:G[g])===(e==null?void 0:e.title)&&(W=w==null?void 0:w[0],W[g]=d);else{let Q=(u=f==null?void 0:f.filter($=>$!=="操作"))==null?void 0:u.map($=>$==null?void 0:$.prop),$e=w==null?void 0:w.filter($=>!($!=null&&$.id)),Fe=m.getValueToObjectValue($e,Q);Fe[g]=d,W=Fe}}),await U.createInsofDataApi({key:{type:"data",pageKey:(fe=(de=(ne=e==null?void 0:e.path)==null?void 0:ne.split("/"))==null?void 0:de.filter((w,G)=>{var u,Q;return G!==((Q=(u=e==null?void 0:e.path)==null?void 0:u.split("/"))==null?void 0:Q.length)-1}))==null?void 0:fe.join("/"),tableId:i==null?void 0:i.id,systemKey:sessionStorage.getItem("systemKey"),createUserId:(he=x.value)==null?void 0:he.id,createUserLayer:((ye=x.value)==null?void 0:ye.dept)||((ve=x.value)==null?void 0:ve.部门名称)},value:{tableData:W}})}}await m.newLoadingConstruct(e==null?void 0:e.path,N),o.setUpdateMenuStatus(!1),await Pe.verifyStructureDataToStore(),o.setActiveMenuPath((Ce=(ke=(ge=e==null?void 0:e.path)==null?void 0:ge.split("/"))==null?void 0:ke.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:Ce.join("/")),o.setActiveTopMenuPath((Ie=(De=e==null?void 0:e.path)==null?void 0:De.split("/"))==null?void 0:Ie[0]),o.setIsRefreshMenus(!1),o.setIsRefreshMenus(!0)}else if(a==="update")V.value=e;else if(a==="delete"){let d=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:e==null?void 0:e.path}}),M=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),S=(_e=(Se=M==null?void 0:M.data)==null?void 0:Se.result)==null?void 0:_e[0],J=(be=S==null?void 0:S.value)==null?void 0:be.pageData;if(J.compData=(we=J.compData)==null?void 0:we.map(i=>{var f;return(i==null?void 0:i.key)==="menuContents"&&(i.contents=Re(i.contents,(f=e==null?void 0:e.path)==null?void 0:f.split("/"))),i}),await U.updateInsofDataApi({id:S==null?void 0:S.id,value:{pageData:J}}),((Be=(Te=d==null?void 0:d.data)==null?void 0:Te.result)==null?void 0:Be.length)>0){let i=(Me=(Ee=d==null?void 0:d.data)==null?void 0:Ee.result)==null?void 0:Me.map(f=>f==null?void 0:f.id);(i==null?void 0:i.length)>0&&await U.batchDeleteInsofDataApi({ids:i})}let N=await m.getItemData((Ve=(xe=(Ke=e==null?void 0:e.path)==null?void 0:Ke.split("/"))==null?void 0:xe.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:Ve.join("/"),sessionStorage.getItem("systemKey"),""),q=[];(N==null?void 0:N.length)>0&&(N==null||N.forEach(i=>{var g,D,W,w,G,u,Q,$e,Fe,$,We;let f=(w=(W=(D=(g=i==null?void 0:i.compData)==null?void 0:g.find(v=>(v==null?void 0:v.key)==="header"))==null?void 0:D.contents)==null?void 0:W[0])==null?void 0:w.prop;(($e=(Q=(u=(G=i==null?void 0:i.compData)==null?void 0:G.find(v=>(v==null?void 0:v.key)==="header"))==null?void 0:u.contents)==null?void 0:Q[0])==null?void 0:$e.directiveLabel)==="#isMain"&&((We=($=(Fe=i==null?void 0:i.compData)==null?void 0:Fe.find(v=>(v==null?void 0:v.key)==="tableContents"))==null?void 0:$.contents)==null||We.forEach(v=>{var Ge,Qe,Xe;(v==null?void 0:v.length)>1?(v==null?void 0:v[1])===(e==null?void 0:e.title)&&q.push((Ge=v==null?void 0:v[0])==null?void 0:Ge.id):((Qe=v==null?void 0:v[0])==null?void 0:Qe[f])===(e==null?void 0:e.title)&&q.push((Xe=v==null?void 0:v[0])==null?void 0:Xe.id)}))})),(q==null?void 0:q.length)>0&&await U.batchDeleteInsofDataApi({ids:q}),o.setUpdateMenuStatus(!1),await Pe.verifyStructureDataToStore(),o.setActiveMenuPath((F=(h=(Ae=e==null?void 0:e.path)==null?void 0:Ae.split("/"))==null?void 0:h.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:F.join("/")),o.setActiveTopMenuPath((b=(L=e==null?void 0:e.path)==null?void 0:L.split("/"))==null?void 0:b[0]),o.setIsRefreshMenus(!1),o.setIsRefreshMenus(!0)}},rt=async(l,a)=>{var le,oe,ae,se,ie,re,ce,pe,ne,de,fe,he,ye,ve,ge,ke,Ce,De,Ie,Se,_e,be,we,Te,Be,Ee,Me,Ke,xe,Ve,Ae;let e=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),k=(oe=(le=e==null?void 0:e.data)==null?void 0:le.result)==null?void 0:oe[0],C=(ae=k==null?void 0:k.value)==null?void 0:ae.pageData;C.compData=(se=C.compData)==null?void 0:se.map(h=>{var F,L;return(h==null?void 0:h.key)==="menuContents"&&(h.contents=ue(h.contents,(F=a==null?void 0:a.path)==null?void 0:F.split("/"),a==null?void 0:a.title,(L=l==null?void 0:l.target)==null?void 0:L.value)),h}),k!=null&&k.id&&await U.updateInsofDataApi({id:k==null?void 0:k.id,value:{pageData:C}});let _=(re=(ie=a==null?void 0:a.path)==null?void 0:ie.split("/"))==null?void 0:re.filter((h,F)=>{var L,b;return F!==((b=(L=a==null?void 0:a.path)==null?void 0:L.split("/"))==null?void 0:b.length)-1}),z=_==null?void 0:_.join("/");_.push((ce=l==null?void 0:l.target)==null?void 0:ce.value),_=_==null?void 0:_.join("/");let E=await m.getItemData(z,sessionStorage.getItem("systemKey"),"");if(((he=(fe=(de=(ne=(pe=E==null?void 0:E[0])==null?void 0:pe.compData)==null?void 0:ne.find(h=>(h==null?void 0:h.key)==="header"))==null?void 0:de.contents)==null?void 0:fe[0])==null?void 0:he.directiveLabel)==="#isMain"){let h=(Ce=(ke=(ge=(ve=(ye=E==null?void 0:E[0])==null?void 0:ye.compData)==null?void 0:ve.find(d=>(d==null?void 0:d.key)==="header"))==null?void 0:ge.contents)==null?void 0:ke[0])==null?void 0:Ce.prop,F=(Se=(Ie=(De=E==null?void 0:E[0])==null?void 0:De.compData)==null?void 0:Ie.find(d=>(d==null?void 0:d.key)==="tableContents"))==null?void 0:Se.contents,L=(Te=(we=(be=(_e=E==null?void 0:E[0])==null?void 0:_e.compData)==null?void 0:be.find(d=>(d==null?void 0:d.key)==="header"))==null?void 0:we.contents)==null?void 0:Te.map(d=>d==null?void 0:d.prop),b;if(F==null||F.forEach(d=>{var S;let M=m.getValueToObjectValue(d,L);(M==null?void 0:M[h])===a.title&&(b=M,b[h]=(S=l==null?void 0:l.target)==null?void 0:S.value)}),b){let d={};for(let S in b)S!=="id"&&(d[S]=b==null?void 0:b[S]);let M=[{id:b==null?void 0:b.id,value:{tableData:d}}];await U.batchUpdateInsofDataApi({dataList:M})}}let H=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:a==null?void 0:a.path}}),j=(Ee=(Be=H==null?void 0:H.data)==null?void 0:Be.result)==null?void 0:Ee.map(h=>({id:h==null?void 0:h.id,key:h==null?void 0:h.key}));j=j==null?void 0:j.map(h=>(h.key.pageKey=_,h)),(j==null?void 0:j.length)>0&&await U.batchUpdateInsofDataApi({dataList:j}),o.setUpdateMenuStatus(!1),await Pe.verifyStructureDataToStore(),o.setActiveMenuPath((xe=(Ke=(Me=a==null?void 0:a.path)==null?void 0:Me.split("/"))==null?void 0:Ke.filter((h,F)=>{var L,b;return F!==((b=(L=a==null?void 0:a.path)==null?void 0:L.split("/"))==null?void 0:b.length)-1}))==null?void 0:xe.join("/")),o.setActiveTopMenuPath((Ae=(Ve=a==null?void 0:a.path)==null?void 0:Ve.split("/"))==null?void 0:Ae[0]),o.setIsRefreshMenus(!1),o.setIsRefreshMenus(!0),V.value=void 0},ct=async(l,a)=>{O.type=at(a==null?void 0:a.operateType),await it(a,O.type,l),Y.value=l,Je.value=a},pt=()=>{O.show=!1},nt=l=>l==null?void 0:l.filter(a=>a.allowInherit),dt=()=>{var e,k,C,_,z;let l;O.type==="create"&&(l=((e=Y.value)==null?void 0:e.path)+"/"+te.value[(k=te.value)==null?void 0:k.prop]),O.type==="update"&&(l=(C=Y.value)==null?void 0:C.path);const a={...Y.value,config:nt((_=Y.value)==null?void 0:_.config),children:[],childMenus:[],title:te.value[(z=te.value)==null?void 0:z.prop],path:l};console.log("clickSubmitForm",Je.value,Y.value,a),st(a),O.show=!1},ft=l=>{var e,k;const a=(e=l==null?void 0:l.contents)==null?void 0:e.find(C=>C.key==="formContent");a&&(te.value=(k=a==null?void 0:a.contents)==null?void 0:k.reduce((C,_)=>(C[_.key]=_.value,C.prop=_.key,C),{}))},Z=t.ref(!1);return{isCollapse:Z,handleMenuCollapse:()=>{Z.value=!Z.value},handleCompChange:ft,dialogForm:lt,dialogRenderComps:ot,getComponents:tt,clickSubmitForm:dt,dialogInfo:O,beforeDialogDestroy:pt,clickMenuIcon:ct,mode:Ue,renderMenuList:A,clickMenu:ze,openMenu:Ze,closeMenu:He,changeMenuStyle:X,fixElement:V,onBlur:rt}}}}const Dt=t.defineComponent(Ye()),It=["title"],St={key:1,class:"menu-title",style:{display:"flex",width:"100px"}},_t={key:2,class:"menu-operate-icon"},bt={class:"menu-config-wrap"},wt=["onClick"],Tt={class:"module-dialog-content"};function Bt(n,p,K,y,r,o){var R;const c=t.resolveComponent("ss-input"),T=t.resolveComponent("svg-icon"),x=t.resolveComponent("el-popover"),B=t.resolveComponent("ss-menu"),I=t.resolveComponent("el-button"),V=t.resolveComponent("ss-dialog");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(B,{class:"vertical-menu",mode:n.mode,menuList:n.renderMenuList,isCollapse:n.isCollapse,uniqueOpened:!0,onClickMenu:n.clickMenu,onOpenMenu:n.openMenu,onCloseMenu:n.closeMenu},{title:t.withCtx(({menu:s})=>{var Ne,qe,Ue,ee;return[!n.fixElement||(s==null?void 0:s.path)!==((Ne=n.fixElement)==null?void 0:Ne.path)?(t.openBlock(),t.createElementBlock("span",{key:0,title:s.title,class:"menu-title",style:t.normalizeStyle({marginRight:s!=null&&s.config&&((qe=s==null?void 0:s.config)==null?void 0:qe.length)>0?"25px":"1px"})},t.toDisplayString(s.title??""),13,It)):t.createCommentVNode("",!0),n.fixElement&&(s==null?void 0:s.path)===((Ue=n.fixElement)==null?void 0:Ue.path)?(t.openBlock(),t.createElementBlock("span",St,[t.createVNode(c,{value:s.title,onBlur:A=>n.onBlur(A,s)},null,8,["value","onBlur"])])):t.createCommentVNode("",!0),s!=null&&s.config&&((ee=s==null?void 0:s.config)==null?void 0:ee.length)>0?(t.openBlock(),t.createElementBlock("span",_t,[t.createVNode(x,{title:"",placement:"bottom-start",trigger:"hover","popper-class":"menu-operate-popover"},{reference:t.withCtx(()=>[t.createVNode(T,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})]),default:t.withCtx(()=>[t.createElementVNode("div",bt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s==null?void 0:s.config,A=>(t.openBlock(),t.createElementBlock("div",{class:"menu-config-item",key:A.id,onClick:ze=>n.clickMenuIcon(s,A)},[t.createVNode(T,{name:A==null?void 0:A.operateIcon,style:{width:"15px",height:"15px","margin-right":"8px"}},null,8,["name"]),t.createElementVNode("span",null,t.toDisplayString(A==null?void 0:A.operateType),1)],8,wt))),128))])]),_:2},1024)])):t.createCommentVNode("",!0)]}),_:1},8,["mode","menuList","isCollapse","onClickMenu","onOpenMenu","onCloseMenu"]),((R=n.renderMenuList)==null?void 0:R.length)>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fold-icon",onClick:p[0]||(p[0]=(...s)=>n.handleMenuCollapse&&n.handleMenuCollapse(...s))},[t.createVNode(T,{name:n.isCollapse?"expand":"pack",style:{width:"15px",height:"15px"}},null,8,["name"])])):t.createCommentVNode("",!0),t.createVNode(V,{class:"module-dialog",title:n.dialogInfo.title,visible:n.dialogInfo.show,width:n.dialogInfo.width,onBeforeDestroy:n.beforeDialogDestroy},{default:t.withCtx(()=>[t.createElementVNode("div",Tt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.dialogRenderComps,s=>(t.openBlock(),t.createElementBlock("div",{key:s.id},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.getComponents((s==null?void 0:s.comp)??"Input")),{itemData:s==null?void 0:s.compData,key:s==null?void 0:s.id,content:(s==null?void 0:s.contents)??[],config:s==null?void 0:s.config,onContentChange:n.handleCompChange},null,40,["itemData","content","config","onContentChange"]))]))),128))])]),footer:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(I,{id:"themeBorderButton",onClick:n.beforeDialogDestroy},{default:t.withCtx(()=>p[1]||(p[1]=[t.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),t.createVNode(I,{id:"themeButton",onClick:n.clickSubmitForm},{default:t.withCtx(()=>p[2]||(p[2]=[t.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])],64)}const Et=Ct._export_sfc(Dt,[["render",Bt],["__scopeId","data-v-20f284c2"]]);exports.addSelectMenu=Oe;exports.default=Et;exports.deleteSelectMenu=Re;exports.fixSelectMenu=ue;exports.setComponent=Ye;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as B, ref as I, reactive as T, resolveComponent as v, createElementBlock as E, openBlock as U, createVNode as u, withCtx as d, createElementVNode as l, createTextVNode as h, toDisplayString as N, nextTick as q, Fragment as z, withDirectives as H, renderSlot as $, vShow as M } from "vue";
2
- import { av as V } from "./index.vue_vue_type_style_index_0_scoped_92c12abe_lang-zw0_MXm-.js";
2
+ import { an as V } from "./index.vue_vue_type_style_index_0_scoped_92c12abe_lang-Cp7jnXuw.js";
3
3
  import { ag as X, ax as J, O as D, Q as c, R, a7 as g } from "./index-WLdc1goT.js";
4
4
  import { i as Q } from "./isNil-CjWwlQS3.js";
5
5
  import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";