ss-component-new 1.1.415 → 1.1.416

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 (101) hide show
  1. package/dist/array-58d570LL.cjs +7 -0
  2. package/dist/array-DEqtaw54.js +346 -0
  3. package/dist/{crypto-BRyGpjGR.js → crypto-Cq-QCViO.js} +178 -186
  4. package/dist/{crypto-CRbcEKIz.cjs → crypto-DX0stRPJ.cjs} +5 -5
  5. package/dist/{index-DuwxEG2Y.js → index-B36maAk9.js} +1 -1
  6. package/dist/index-B3ZWxITJ.js +1145 -0
  7. package/dist/{index-BJiXsb3E.cjs → index-B7pGY6s-.cjs} +1 -1
  8. package/dist/{index-WPbX9sqP.cjs → index-BEJ2yw6L.cjs} +1 -1
  9. package/dist/{index-9QTlnrEQ.cjs → index-BEZVG2w4.cjs} +1 -1
  10. package/dist/{index-BOzZXj2f.js → index-BMDwIj9Q.js} +7 -7
  11. package/dist/index-BN5_bPlI.js +711 -0
  12. package/dist/index-BQE6u3FY.cjs +7 -0
  13. package/dist/{index-DrUjNhjW.js → index-BTjvMH2-.js} +1 -1
  14. package/dist/{index-9srnYnzT.js → index-BXxCcVg9.js} +9 -9
  15. package/dist/{index-DIv5glVC.js → index-BZFpxFyZ.js} +422 -422
  16. package/dist/{index-Dm1_86kX.js → index-BgYMdBaM.js} +4 -5
  17. package/dist/index-BgwUuCZn.cjs +1 -0
  18. package/dist/{index-BJitBJZu.cjs → index-BvLNLX2m.cjs} +2 -2
  19. package/dist/{index-DoIHM98M.js → index-BvQxCFwq.js} +1 -1
  20. package/dist/{index-CilqH8oC.cjs → index-BvYov-FM.cjs} +1 -1
  21. package/dist/{index-DjhZHYH_.cjs → index-BxqdT6ZG.cjs} +1 -1
  22. package/dist/{index-B6_X9xq9.js → index-C-BnL_J8.js} +5 -6
  23. package/dist/{index-FBp-XX6h.js → index-C43LmEa1.js} +7051 -7021
  24. package/dist/{index-DbuzlHfh.js → index-C4kRcJZB.js} +21 -21
  25. package/dist/{index-8nzu3dKT.js → index-C9jJnj5S.js} +7 -7
  26. package/dist/{index-BVuLbYm9.cjs → index-CEGtcyt7.cjs} +1 -1
  27. package/dist/{index-Bhg9ISur.js → index-CHVY3mt7.js} +8 -9
  28. package/dist/index-CHXbD46C.cjs +87 -0
  29. package/dist/{index-BSAEf__V.js → index-CJja2QG9.js} +7 -7
  30. package/dist/{index-CNQtTLfb.cjs → index-CK03QmTY.cjs} +1 -1
  31. package/dist/index-CbfDuVGd.cjs +1 -0
  32. package/dist/{index-BxHhG5PY.js → index-CcbpKTyr.js} +3 -3
  33. package/dist/{index-BHxsT1eb.cjs → index-CiowzSFS.cjs} +1 -1
  34. package/dist/{index-CTTEAggF.cjs → index-CvagfQk6.cjs} +1 -1
  35. package/dist/{index-DrCpGMdZ.js → index-D-45U022.js} +11 -12
  36. package/dist/{index-UYsrvpRs.js → index-D9Mgi3hi.js} +4 -4
  37. package/dist/{index-AzrB9NlT.js → index-DGX_omwS.js} +4 -4
  38. package/dist/{index-BibIA5-P.cjs → index-DHhoPw_A.cjs} +1 -1
  39. package/dist/{index-CffNkMWN.cjs → index-DQycMGEY.cjs} +1 -1
  40. package/dist/{index-C8jmJvXd.cjs → index-DRpTJPjg.cjs} +1 -1
  41. package/dist/{index-BJIMXITA.js → index-DT0rIFKm.js} +6 -6
  42. package/dist/index-DcIVU-Ov.cjs +1 -0
  43. package/dist/{index-3dpRV7yS.cjs → index-DgY-01TT.cjs} +1 -1
  44. package/dist/{index-DHhMROzm.cjs → index-Dp0i47OJ.cjs} +1 -1
  45. package/dist/{index-DPm-3I4S.js → index-DqHrwwb1.js} +6 -6
  46. package/dist/{index-CA9lI4P8.js → index-DseMLCbI.js} +5 -5
  47. package/dist/{index-ZUmqWSaw.cjs → index-Dt5TGPLg.cjs} +1 -1
  48. package/dist/{index-BPDslvev.js → index-DtYFEnXc.js} +2 -2
  49. package/dist/{index-eSv5uzFM.js → index-NEUjKmq0.js} +354 -359
  50. package/dist/{index-VOSN3Mnh.js → index-NIMrswsz.js} +9 -9
  51. package/dist/{index-DMp2zGXo.js → index-ZuGl0u3I.js} +7 -7
  52. package/dist/{index-BimZK7wy.cjs → index-jESujSgy.cjs} +1 -1
  53. package/dist/{index-Dxfzna5p.cjs → index-jghM2Y0h.cjs} +1 -1
  54. package/dist/{index-BszUQuvL.cjs → index-sKVluUJX.cjs} +1 -1
  55. package/dist/{index-CdLmmvxi.cjs → index-uVl30He2.cjs} +1 -1
  56. package/dist/index-zMtEEusk.cjs +1 -0
  57. package/dist/{index.vue_vue_type_script_setup_true_lang-Dr6igsfU.cjs → index.vue_vue_type_script_setup_true_lang-BaYvLcMI.cjs} +1 -1
  58. package/dist/{index.vue_vue_type_script_setup_true_lang-CKDefrVd.js → index.vue_vue_type_script_setup_true_lang-CAcdw_AX.js} +3 -3
  59. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-x_oCFRtr.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B4LEhoqI.cjs} +8 -8
  60. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CaGB6aRQ.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CopMGaPW.js} +11 -17
  61. package/dist/{index.vue_vue_type_style_index_0_scoped_306ecd73_lang-CMsb25AU.js → index.vue_vue_type_style_index_0_scoped_306ecd73_lang-BOZV3S47.js} +90 -89
  62. package/dist/index.vue_vue_type_style_index_0_scoped_306ecd73_lang-Dt5xjsaj.cjs +1 -0
  63. package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-CTM5_Xpt.js +1429 -0
  64. package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-DhLcXmdy.cjs +1 -0
  65. package/dist/login-BkG9ft6j.js +75 -0
  66. package/dist/login-uBBsyOif.cjs +1 -0
  67. package/dist/{main-C7zpT64X.js → main-B29DPpx0.js} +6 -6
  68. package/dist/{main-NoOanZcQ.cjs → main-DqvMBu9E.cjs} +1 -1
  69. package/dist/{menu-B-Z5KAh5.cjs → menu-CEY-shM3.cjs} +4 -4
  70. package/dist/{menu-D9x5_s9p.js → menu-Dz_fVXUK.js} +8 -8
  71. package/dist/menuIndex-BWim3TlH.js +33 -0
  72. package/dist/menuIndex-Cg6xI-jR.cjs +1 -0
  73. package/dist/ss-component.cjs +1 -1
  74. package/dist/ss-component.css +1 -1
  75. package/dist/ss-component.js +10 -10
  76. package/dist/ss-component3.cjs +1 -1
  77. package/dist/ss-component3.js +1 -1
  78. package/dist/{threeModel-MVkoDB-c.cjs → threeModel-Djd02U60.cjs} +1 -1
  79. package/dist/{threeModel-BazaxATJ.js → threeModel-V5HRhps2.js} +5 -6
  80. package/dist/{threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-CnQhvwfL.js → threeModel.vue_vue_type_style_index_0_scoped_43c8b141_lang-B08ZEGHO.js} +2 -2
  81. package/dist/{threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-CBBWsMHp.cjs → threeModel.vue_vue_type_style_index_0_scoped_43c8b141_lang-BTtFKEwD.cjs} +1 -1
  82. package/package.json +1 -1
  83. package/dist/array-CYOvmzeK.js +0 -1310
  84. package/dist/array-DAoy3WS9.cjs +0 -7
  85. package/dist/index-BA-Qtevs.cjs +0 -1
  86. package/dist/index-Bvr0YvSP.cjs +0 -74
  87. package/dist/index-CyOcoFxe.cjs +0 -1
  88. package/dist/index-D68A4TXc.cjs +0 -1
  89. package/dist/index-DBB_scdx.cjs +0 -1
  90. package/dist/index-Dnq8JVuW.cjs +0 -7
  91. package/dist/index-TEDdJfFz.js +0 -677
  92. package/dist/index-faxMOO3y.js +0 -1717
  93. package/dist/index.vue_vue_type_style_index_0_scoped_306ecd73_lang-B7CgbfdF.cjs +0 -1
  94. package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-COxDD0Fj.cjs +0 -1
  95. package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-DDi07ZiD.js +0 -1593
  96. package/dist/login-CARNmuDg.js +0 -103
  97. package/dist/login-DsWsywlE.cjs +0 -1
  98. package/dist/obj/model.mtl +0 -42
  99. package/dist/obj/model.obj +0 -26110
  100. package/public/obj/model.mtl +0 -42
  101. package/public/obj/model.obj +0 -26110
@@ -1,6 +1,6 @@
1
- import { g as ir, s as ts, i as es, u as rs, p as as } from "./menu-D9x5_s9p.js";
1
+ import { g as ir, s as ts, i as es, u as rs, p as as } from "./menu-Dz_fVXUK.js";
2
2
  import { ref as ns, computed as is } from "vue";
3
- import { a7 as lr, a8 as Se, o as Zn, a4 as ss, a9 as os, a5 as cr, aa as Hr, ab as ls, m as Aa, ac as Da, ad as Or, a3 as cs, ae as Fe, S as Xa } from "./index-DbuzlHfh.js";
3
+ import { a4 as lr, a5 as Se, o as Zn, a6 as ss, a7 as os, a8 as cr, a9 as Hr, aa as ls, m as Aa, ab as Da, ac as Or, ad as cs, ae as Fe, S as Xa } from "./index-C4kRcJZB.js";
4
4
  var la = lr(Se, "WeakMap"), Ya = Object.create, hs = /* @__PURE__ */ function() {
5
5
  function a() {
6
6
  }
@@ -9084,12 +9084,10 @@ async function id(a, e, t, r) {
9084
9084
  return await Wu(i, e, t, r), i;
9085
9085
  }
9086
9086
  export {
9087
- id as A,
9088
9087
  yh as C,
9089
9088
  td as F,
9090
9089
  kh as J,
9091
- Le as S,
9092
- on as U,
9090
+ it as S,
9093
9091
  mr as a,
9094
9092
  ed as b,
9095
9093
  Qt as c,
@@ -9103,17 +9101,13 @@ export {
9103
9101
  ps as k,
9104
9102
  vs as l,
9105
9103
  Qu as m,
9106
- Do as n,
9107
- se as o,
9108
- Qn as p,
9109
- ro as q,
9110
- Gu as r,
9104
+ Gu as n,
9105
+ Zu as o,
9106
+ Ku as p,
9107
+ qu as q,
9108
+ Ju as r,
9111
9109
  nd as s,
9112
- Zu as t,
9113
- Ku as u,
9114
- qu as v,
9115
- Ju as w,
9116
- Vu as x,
9117
- it as y,
9118
- _c as z
9110
+ Vu as t,
9111
+ _c as u,
9112
+ id as v
9119
9113
  };
@@ -1,15 +1,16 @@
1
- import { defineAsyncComponent as te, computed as z, onMounted as O, resolveComponent as ae, createBlock as W, openBlock as N, withCtx as oe, resolveDynamicComponent as le, defineComponent as re, defineProps as ue, ref as g, watch as se, reactive as ie } from "vue";
2
- import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CaGB6aRQ.js";
3
- import { E as me } from "./index-DbuzlHfh.js";
4
- import { u as ce, p as ve, s as pe, g as ge } from "./menu-D9x5_s9p.js";
5
- import { s as he } from "./index-UYsrvpRs.js";
6
- import { useRouter as fe } from "vue-router";
7
- import { g as be } from "./index-DMp2zGXo.js";
8
- import { u as de } from "./threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-CnQhvwfL.js";
9
- import { E as Fe } from "./index-eSv5uzFM.js";
10
- const k = te(() => import("./index-UYsrvpRs.js").then((c) => c.i));
11
- k.install = (c) => {
12
- c.component("ssMenu", k);
1
+ import { defineAsyncComponent as ne, computed as z, onMounted as N, resolveComponent as te, createBlock as R, openBlock as W, withCtx as ae, resolveDynamicComponent as oe, defineComponent as le, defineProps as re, ref as g, watch as ue, reactive as se } from "vue";
2
+ import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CopMGaPW.js";
3
+ import { E as ie } from "./index-C4kRcJZB.js";
4
+ import { u as me, p as ce, s as ve, g as pe } from "./menu-Dz_fVXUK.js";
5
+ import { s as ge } from "./index-D9Mgi3hi.js";
6
+ import { useRouter as he } from "vue-router";
7
+ import { g as fe } from "./index-ZuGl0u3I.js";
8
+ import { u as be } from "./threeModel.vue_vue_type_style_index_0_scoped_43c8b141_lang-B08ZEGHO.js";
9
+ import { f as de } from "./menuIndex-BWim3TlH.js";
10
+ import { E as Fe } from "./index-NEUjKmq0.js";
11
+ const E = ne(() => import("./index-D9Mgi3hi.js").then((c) => c.i));
12
+ E.install = (c) => {
13
+ c.component("ssMenu", E);
13
14
  };
14
15
  const Ce = {
15
16
  __name: "index",
@@ -17,13 +18,13 @@ const Ce = {
17
18
  name: String
18
19
  },
19
20
  setup(c) {
20
- const u = c, F = z(() => me[u.name]);
21
- return O(() => {
21
+ const u = c, F = z(() => ie[u.name]);
22
+ return N(() => {
22
23
  }), (C, v) => {
23
- const y = ae("el-icon");
24
- return N(), W(y, null, {
25
- default: oe(() => [
26
- (N(), W(le(F.value)))
24
+ const y = te("el-icon");
25
+ return W(), R(y, null, {
26
+ default: ae(() => [
27
+ (W(), R(oe(F.value)))
27
28
  ]),
28
29
  _: 1
29
30
  });
@@ -102,7 +103,7 @@ const Ce = {
102
103
  name: "--vertical-menu-padding",
103
104
  value: "0.5rem"
104
105
  }
105
- ], He = [
106
+ ], Re = [
106
107
  {
107
108
  name: "--horizontal-menu-bg",
108
109
  value: "#051E37"
@@ -273,7 +274,7 @@ const Ce = {
273
274
  name: "--horizontal-menuitem-font",
274
275
  value: "SourceHanSansSC, SourceHanSansSC"
275
276
  }
276
- ], Re = [
277
+ ], We = [
277
278
  {
278
279
  name: "--ssbutton-theme-color",
279
280
  value: "#FFFFFF"
@@ -298,7 +299,7 @@ const Ce = {
298
299
  name: "--ssComponent-theme-watermark",
299
300
  value: "url('/public/icons/img/watermark-blue.png')"
300
301
  }
301
- ], We = [
302
+ ], Ne = [
302
303
  {
303
304
  name: "--ssbutton-theme-color",
304
305
  value: "#323333"
@@ -323,107 +324,107 @@ const Ce = {
323
324
  name: "--ssComponent-theme-watermark",
324
325
  value: "url('/public/icons/img/watermark.png')"
325
326
  }
326
- ], Ne = re({
327
+ ], Oe = le({
327
328
  name: "menu",
328
329
  components: {
329
- ssMenu: k,
330
+ ssMenu: E,
330
331
  DynamicIcon: Ce,
331
- ssDialog: he
332
+ ssDialog: ge
332
333
  },
333
334
  setup() {
334
- const c = ue({
335
+ const c = re({
335
336
  mode: {
336
337
  type: String,
337
338
  default: "vertical"
338
339
  }
339
- }), u = ce(), F = de(ve), C = g(0), v = fe(), { asideMenus: y, menuTriggerType: U, platform: V } = pe(u), $ = z(() => c == null ? void 0 : c.mode), w = z(() => {
340
+ }), u = me(), F = be(ce), C = g(0), v = he(), { asideMenus: y, menuTriggerType: O, platform: U } = ve(u), V = z(() => c == null ? void 0 : c.mode), w = z(() => {
340
341
  let e = [...y.value];
341
342
  if ((e == null ? void 0 : e.length) === 0)
342
343
  return v.push("/"), [];
343
- const n = G(e, j.value);
344
+ const n = q(e, L.value);
344
345
  return n.isFlag || (e = n == null ? void 0 : n.data), e;
345
- }), J = async (e) => {
346
- F.setRouteToChildPath(""), u.setMenuTriggerType("click"), u.setActiveMenuPath(e == null ? void 0 : e.path), u.setActiveAsideMenu(e), e.isRouter ? v.push(e.path) : v.push("/");
347
- }, K = async (e) => {
346
+ }), $ = async (e) => {
347
+ F.setRouteToChildPath(""), u.setMenuTriggerType("click"), u.setActiveMenuPath(e == null ? void 0 : e.path), console.log("当前菜单的结构clickMenu", e), u.setActiveAsideMenu(e), e.isRouter ? v.push(e.path) : v.push("/");
348
+ }, J = async (e) => {
348
349
  u.setActiveMenuPath(e);
349
- const n = findNodeByPropInTree(w.value, "path", e);
350
- u.setActiveAsideMenu(n), F.setRouteToChildPath(""), U.value === "click" ? C.value === 1 ? u.setActiveMenuPath(sessionStorage.getItem("pageKey")) : u.setActiveMenuPath(e) : u.setMenuTriggerType("click"), e != null && e.startsWith("/") ? v.push(e) : v.push("/"), C.value++;
351
- }, L = (e) => {
350
+ const n = de(w.value, "path", e);
351
+ u.setActiveAsideMenu(n), F.setRouteToChildPath(""), O.value === "click" ? C.value === 1 ? u.setActiveMenuPath(sessionStorage.getItem("pageKey")) : u.setActiveMenuPath(e) : u.setMenuTriggerType("click"), e != null && e.startsWith("/") ? v.push(e) : v.push("/"), C.value++;
352
+ }, K = (e) => {
352
353
  u.setActiveMenuPath(e);
353
354
  }, M = (e) => {
354
355
  const n = document.documentElement;
355
- e == null || e.forEach((o) => {
356
- n.style.setProperty(o.name, o.value);
356
+ e == null || e.forEach((l) => {
357
+ n.style.setProperty(l.name, l.value);
357
358
  });
358
359
  };
359
- O(() => {
360
+ N(() => {
360
361
  C.value = 1;
361
362
  });
362
- const j = z(() => {
363
+ const L = z(() => {
363
364
  const e = sessionStorage.getItem("authority");
364
365
  return e ? JSON.parse(e) : [];
365
366
  });
366
- se(() => V.value, (e) => {
367
+ ue(() => U.value, (e) => {
367
368
  e === "browser" ? M(Me) : e === "client" && (M(ze), M(Se));
368
369
  }, { immediate: !0 });
369
- const q = (e, n) => {
370
- function o(r) {
370
+ const j = (e, n) => {
371
+ function l(r) {
371
372
  r == null || r.forEach((s) => {
372
- s.show = n == null ? void 0 : n.some((l) => l == null ? void 0 : l.includes(s.path)), s.children && o(s.children);
373
+ s.show = n == null ? void 0 : n.some((t) => t == null ? void 0 : t.includes(s.path)), s.children && l(s.children);
373
374
  });
374
375
  }
375
- return o(e), e;
376
- }, G = (e, n) => {
376
+ return l(e), e;
377
+ }, q = (e, n) => {
377
378
  if (Array.isArray(n)) {
378
- const o = Array.from(new Set(n == null ? void 0 : n.map((r) => r.substring(0, r.lastIndexOf("/")))));
379
+ const l = Array.from(new Set(n == null ? void 0 : n.map((r) => r.substring(0, r.lastIndexOf("/")))));
379
380
  return {
380
- data: q(e, o),
381
+ data: j(e, l),
381
382
  isFlag: !1
382
383
  };
383
384
  } else
384
385
  return {
385
386
  isFlag: (n == null ? void 0 : n.toUpperCase()) === "SUPERADMIN"
386
387
  };
387
- }, i = ie({
388
+ }, i = se({
388
389
  show: !1,
389
390
  title: "菜单配置",
390
391
  width: "30%",
391
392
  type: "create"
392
- }), Q = (e) => be(e), X = g({}), D = g([]), Y = async (e, n, o) => {
393
+ }), G = (e) => fe(e), Q = g({}), D = g([]), X = async (e, n, l) => {
393
394
  var B, _, P;
394
395
  if (((B = e == null ? void 0 : e.structureIds) == null ? void 0 : B.length) === 0) return;
395
- const r = (P = (_ = e == null ? void 0 : e.structureIds) == null ? void 0 : _.filter((t) => (t == null ? void 0 : t.key) === "dialogConfig")) == null ? void 0 : P.map((t) => t == null ? void 0 : t.id);
396
- let s = r == null ? void 0 : r.map((t) => ge({ id: t }));
397
- const l = await Promise.all(s);
398
- if (l == null ? void 0 : l.every((t) => {
399
- var a;
400
- return ((a = t == null ? void 0 : t.data) == null ? void 0 : a.code) === 200;
396
+ const r = (P = (_ = e == null ? void 0 : e.structureIds) == null ? void 0 : _.filter((a) => (a == null ? void 0 : a.key) === "dialogConfig")) == null ? void 0 : P.map((a) => a == null ? void 0 : a.id);
397
+ let s = r == null ? void 0 : r.map((a) => pe({ id: a }));
398
+ const t = await Promise.all(s);
399
+ if (t == null ? void 0 : t.every((a) => {
400
+ var o;
401
+ return ((o = a == null ? void 0 : a.data) == null ? void 0 : o.code) === 200;
401
402
  })) {
402
- const t = l == null ? void 0 : l.map((a) => {
403
- var f, b, m, d, S, x, H, R;
403
+ const a = t == null ? void 0 : t.map((o) => {
404
+ var f, b, m, d, S, x, H;
404
405
  return {
405
- id: (m = (b = (f = a == null ? void 0 : a.data) == null ? void 0 : f.result) == null ? void 0 : b[0]) == null ? void 0 : m.id,
406
- ...(R = (H = (x = (S = (d = a == null ? void 0 : a.data) == null ? void 0 : d.result) == null ? void 0 : S[0]) == null ? void 0 : x.value) == null ? void 0 : H.pageData) == null ? void 0 : R.structure
406
+ id: (m = (b = (f = o == null ? void 0 : o.data) == null ? void 0 : f.result) == null ? void 0 : b[0]) == null ? void 0 : m.id,
407
+ ...(H = (x = (S = (d = o == null ? void 0 : o.data) == null ? void 0 : d.result) == null ? void 0 : S[0]) == null ? void 0 : x.value) == null ? void 0 : H.pageData
407
408
  };
408
409
  });
409
- n === "create" && (D.value = t), n === "update" && (D.value = t == null ? void 0 : t.map((a) => {
410
+ console.log("getMenuDialogStructureAsync", t), n === "create" && (D.value = a), n === "update" && (D.value = a == null ? void 0 : a.map((o) => {
410
411
  var f, b;
411
- return ((f = a == null ? void 0 : a.comp) == null ? void 0 : f.toUpperCase()) === "FORM" ? {
412
- ...a,
413
- compData: (b = a == null ? void 0 : a.compData) == null ? void 0 : b.map((m) => {
412
+ return ((f = o == null ? void 0 : o.comp) == null ? void 0 : f.toUpperCase()) === "FORM" ? {
413
+ ...o,
414
+ compData: (b = o == null ? void 0 : o.compData) == null ? void 0 : b.map((m) => {
414
415
  var d;
415
416
  return (m == null ? void 0 : m.key) === "formContent" ? {
416
417
  ...m,
417
418
  contents: (d = m == null ? void 0 : m.contents) == null ? void 0 : d.map((S) => ({
418
419
  ...S,
419
- value: o == null ? void 0 : o.title
420
+ value: l == null ? void 0 : l.title
420
421
  }))
421
422
  } : m;
422
423
  })
423
- } : a;
424
+ } : o;
424
425
  }));
425
426
  }
426
- }, h = g({}), p = g({}), Z = (e) => {
427
+ }, h = g({}), p = g({}), Y = (e) => {
427
428
  switch (e) {
428
429
  case "新增":
429
430
  return "create";
@@ -437,61 +438,61 @@ const Ce = {
437
438
  type: i.type,
438
439
  data: e
439
440
  });
440
- }, I = async (e, n) => {
441
- i.type = Z(n == null ? void 0 : n.operateType), await Y(n, i.type, e), u.setIsRefreshMenus(!1), p.value = e, A.value = n, (n == null ? void 0 : n.operateType) !== "删除" ? (i.show = (n == null ? void 0 : n.trigger) === "openDialog", i.title = (n == null ? void 0 : n.operateType) + "菜单") : Fe.confirm(`是否确认要删除【${e == null ? void 0 : e.title}】`, "", {
441
+ }, Z = async (e, n) => {
442
+ i.type = Y(n == null ? void 0 : n.operateType), await X(n, i.type, e), u.setIsRefreshMenus(!1), p.value = e, A.value = n, (n == null ? void 0 : n.operateType) !== "删除" ? (i.show = (n == null ? void 0 : n.trigger) === "openDialog", i.title = (n == null ? void 0 : n.operateType) + "菜单") : Fe.confirm(`是否确认要删除【${e == null ? void 0 : e.title}】`, "", {
442
443
  confirmButtonText: "确认",
443
444
  cancelButtonText: "取消",
444
445
  type: "warning"
445
446
  }).then(() => {
446
447
  T(e);
447
448
  }), console.log("clickMenuIcon", e, n, i);
448
- }, ee = () => {
449
+ }, I = () => {
449
450
  i.show = !1;
450
- }, ne = (e) => e == null ? void 0 : e.filter((n) => n.allowInherit);
451
+ }, ee = (e) => e == null ? void 0 : e.filter((n) => n.allowInherit);
451
452
  return {
452
453
  handleCompChange: (e) => {
453
- var o, r;
454
- const n = (o = e == null ? void 0 : e.contents) == null ? void 0 : o.find((s) => s.key === "formContent");
455
- n && (h.value = (r = n == null ? void 0 : n.contents) == null ? void 0 : r.reduce((s, l) => (s[l.key] = l.value, s.prop = l.key, s), {}));
454
+ var l, r;
455
+ const n = (l = e == null ? void 0 : e.contents) == null ? void 0 : l.find((s) => s.key === "formContent");
456
+ n && (h.value = (r = n == null ? void 0 : n.contents) == null ? void 0 : r.reduce((s, t) => (s[t.key] = t.value, s.prop = t.key, s), {}));
456
457
  },
457
- dialogForm: X,
458
+ dialogForm: Q,
458
459
  dialogRenderComps: D,
459
- getComponents: Q,
460
+ getComponents: G,
460
461
  clickSubmitForm: () => {
461
- var o, r, s, l, E;
462
+ var l, r, s, t, k;
462
463
  let e;
463
- i.type === "create" && (e = ((o = p.value) == null ? void 0 : o.path) + "/" + h.value[(r = h.value) == null ? void 0 : r.prop]), i.type === "update" && (e = (s = p.value) == null ? void 0 : s.path);
464
+ i.type === "create" && (e = ((l = p.value) == null ? void 0 : l.path) + "/" + h.value[(r = h.value) == null ? void 0 : r.prop]), i.type === "update" && (e = (s = p.value) == null ? void 0 : s.path);
464
465
  const n = {
465
466
  ...p.value,
466
467
  //是否继承父菜单的配置
467
- config: ne((l = p.value) == null ? void 0 : l.config),
468
+ config: ee((t = p.value) == null ? void 0 : t.config),
468
469
  children: [],
469
470
  childMenus: [],
470
- title: h.value[(E = h.value) == null ? void 0 : E.prop],
471
+ title: h.value[(k = h.value) == null ? void 0 : k.prop],
471
472
  path: e
472
473
  };
473
- console.log("clickSubmitForm", A.value, p.value), T(n), i.show = !1;
474
+ console.log("clickSubmitForm", A.value, p.value, n), T(n), i.show = !1;
474
475
  },
475
476
  dialogInfo: i,
476
- beforeDialogDestroy: ee,
477
- clickMenuIcon: I,
478
- mode: $,
477
+ beforeDialogDestroy: I,
478
+ clickMenuIcon: Z,
479
+ mode: V,
479
480
  renderMenuList: w,
480
- clickMenu: J,
481
- openMenu: K,
482
- closeMenu: L,
481
+ clickMenu: $,
482
+ openMenu: J,
483
+ closeMenu: K,
483
484
  changeMenuStyle: M
484
485
  };
485
486
  }
486
487
  });
487
488
  export {
488
- Ne as _,
489
+ Oe as _,
489
490
  Ce as a,
490
- Re as b,
491
- We as c,
491
+ We as b,
492
+ Ne as c,
492
493
  Me as d,
493
- He as e,
494
+ Re as e,
494
495
  ze as f,
495
496
  Se as g,
496
- k as s
497
+ E as s
497
498
  };
@@ -0,0 +1 @@
1
+ "use strict";const t=require("vue");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B4LEhoqI.cjs");const te=require("./index-BvLNLX2m.cjs"),z=require("./menu-CEY-shM3.cjs"),ae=require("./index-DRpTJPjg.cjs"),oe=require("vue-router"),re=require("./index-DgY-01TT.cjs"),le=require("./threeModel.vue_vue_type_style_index_0_scoped_43c8b141_lang-BTtFKEwD.cjs"),ue=require("./menuIndex-Cg6xI-jR.cjs"),se=require("./index-BQE6u3FY.cjs"),y=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DRpTJPjg.cjs")).then(v=>v.index));y.install=v=>{v.component("ssMenu",y)};const q={__name:"index",props:{name:String},setup(v){const s=v,C=t.computed(()=>te.ElIcons[s.name]);return t.onMounted(()=>{}),(F,g)=>{const D=t.resolveComponent("el-icon");return t.openBlock(),t.createBlock(D,null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(C.value)))]),_:1})}}},R=[{name:"--vertical-menu-bg",value:"transparent"},{name:"--vertical-submenu-hover-bg",value:"#3356E8"},{name:"--vertical-submenu-open-bg",value:"#3356E8"},{name:"--vertical-submenu-open-inline-bg",value:"#F6F6F6"},{name:"--vertical-submenu-menuitem-color",value:"#051E37"},{name:"--vertical-submenu-menuitem-active-color",value:"#3356E8"},{name:"--vertical-submenu-color",value:"#051E37"},{name:"--vertical-submenu-active-color",value:"#ffffff"},{name:"--vertical-menuitem-hover-bg",value:"#3356E8"},{name:"--vertical-menuitem-active-bg",value:"#3356E8"},{name:"--vertical-menuitem-color",value:"#051E37"},{name:"--vertical-menuitem-active-color",value:"#ffffff"},{name:"--vertical-menuitem-fontSize",value:"1rem"},{name:"--vertical-menuitem-fontWeight",value:"400"},{name:"--vertical-menuitem-active-fontWeight",value:"600"},{name:"--vertical-menuitem-font",value:"SourceHanSansCN, SourceHanSansCN"},{name:"--vertical-menuitem-radius",value:"8px"},{name:"--vertical-menu-padding",value:"0.5rem"}],ie=[{name:"--horizontal-menu-bg",value:"#051E37"},{name:"--horizontal-submenu-hover-bg",value:"#3356E8"},{name:"--horizontal-submenu-open-bg",value:"#3356E8"},{name:"--horizontal-submenu-open-inline-bg",value:"#3356E8"},{name:"--horizontal-menuitem-hover-bg",value:"#3356E8"},{name:"--horizontal-menuitem-active-bg",value:"#3356E8"},{name:"--horizontal-menuitem-color",value:"#FFFFFF"},{name:"--horizontal-menuitem-active-color",value:"#FFFFFF"},{name:"--horizontal-menuitem-fontSize",value:"1.25rem"},{name:"--horizontal-menuitem-fontWeight",value:"400"},{name:"--horizontal-menuitem-active-fontWeight",value:"600"},{name:"--horizontal-menuitem-font",value:"SourceHanSansSC, SourceHanSansSC"}],W=[{name:"--vertical-menu-bg",value:"transparent"},{name:"--vertical-submenu-hover-bg",value:"#72B02D"},{name:"--vertical-submenu-active-color",value:"#323333"},{name:"--vertical-submenu-open-bg",value:"#72B02D"},{name:"--vertical-submenu-open-inline-bg",value:"#F6F6F6"},{name:"--vertical-submenu-color",value:"#323333"},{name:"--vertical-submenu-menuitem-color",value:"#323333"},{name:"--vertical-submenu-menuitem-active-color",value:"#72B02D"},{name:"--vertical-menuitem-hover-bg",value:"#72B02D"},{name:"--vertical-menuitem-active-bg",value:"#72B02D"},{name:"--vertical-menuitem-color",value:"#323333"},{name:"--vertical-menuitem-active-color",value:"#323333"},{name:"--vertical-menuitem-fontSize",value:"1rem"},{name:"--vertical-menuitem-fontWeight",value:"400"},{name:"--vertical-menuitem-active-fontWeight",value:"600"},{name:"--vertical-menuitem-font",value:"SourceHanSansSC, SourceHanSansSC"},{name:"--vertical-menuitem-radius",value:"8px"},{name:"--vertical-menu-padding",value:"0"}],N=[{name:"--horizontal-menu-bg",value:"#323333"},{name:"--horizontal-submenu-hover-bg",value:"#FFFFFF"},{name:"--horizontal-submenu-open-bg",value:"#72B02D"},{name:"--horizontal-submenu-open-inline-bg",value:"#1C4275"},{name:"--horizontal-menuitem-hover-bg",value:"#72B02D"},{name:"--horizontal-menuitem-active-bg",value:"#72B02D"},{name:"--horizontal-menuitem-color",value:"#FFFFFF"},{name:"--horizontal-menuitem-active-color",value:"#323333"},{name:"--horizontal-menuitem-fontSize",value:"1.25rem"},{name:"--horizontal-menuitem-fontWeight",value:"400"},{name:"--horizontal-menuitem-active-fontWeight",value:"600"},{name:"--horizontal-menuitem-font",value:"SourceHanSansSC, SourceHanSansSC"}],ce=[{name:"--ssbutton-theme-color",value:"#FFFFFF"},{name:"--ssbutton-theme-bg",value:"#3356E8"},{name:"--ssbutton-special-bg",value:"rgba(255,255,255,0.2)"},{name:"--ssgroup-background",value:"linear-gradient(to right, #D6DDFA, #ffffff)"},{name:"--ssComponent-theme-color",value:"#3356E8"},{name:"--ssComponent-theme-watermark",value:"url('/public/icons/img/watermark-blue.png')"}],me=[{name:"--ssbutton-theme-color",value:"#323333"},{name:"--ssbutton-theme-bg",value:"#72B02D"},{name:"--ssbutton-special-bg",value:"rgba(255, 255, 255, 0.2)"},{name:"--ssgroup-background",value:"linear-gradient(to right, #ddf6e0, #ffffff)"},{name:"--ssComponent-theme-color",value:"#72B02D"},{name:"--ssComponent-theme-watermark",value:"url('/public/icons/img/watermark.png')"}],ve=t.defineComponent({name:"menu",components:{ssMenu:y,DynamicIcon:q,ssDialog:ae.ssDialog},setup(){const v=t.defineProps({mode:{type:String,default:"vertical"}}),s=z.useMenuState(),C=le.useModelComp(z.pinia),F=t.ref(0),g=oe.useRouter(),{asideMenus:D,menuTriggerType:O,platform:V}=z.storeToRefs(s),U=t.computed(()=>v==null?void 0:v.mode),_=t.computed(()=>{let e=[...D.value];if((e==null?void 0:e.length)===0)return g.push("/"),[];const n=G(e,$.value);return n.isFlag||(e=n==null?void 0:n.data),e}),J=async e=>{C.setRouteToChildPath(""),s.setMenuTriggerType("click"),s.setActiveMenuPath(e==null?void 0:e.path),console.log("当前菜单的结构clickMenu",e),s.setActiveAsideMenu(e),e.isRouter?g.push(e.path):g.push("/")},K=async e=>{s.setActiveMenuPath(e);const n=ue.findNodeByPropInTree(_.value,"path",e);s.setActiveAsideMenu(n),C.setRouteToChildPath(""),O.value==="click"?F.value===1?s.setActiveMenuPath(sessionStorage.getItem("pageKey")):s.setActiveMenuPath(e):s.setMenuTriggerType("click"),e!=null&&e.startsWith("/")?g.push(e):g.push("/"),F.value++},L=e=>{s.setActiveMenuPath(e)},M=e=>{const n=document.documentElement;e==null||e.forEach(l=>{n.style.setProperty(l.name,l.value)})};t.onMounted(()=>{F.value=1});const $=t.computed(()=>{const e=sessionStorage.getItem("authority");return e?JSON.parse(e):[]});t.watch(()=>V.value,e=>{e==="browser"?M(R):e==="client"&&(M(N),M(W))},{immediate:!0});const j=(e,n)=>{function l(u){u==null||u.forEach(i=>{i.show=n==null?void 0:n.some(a=>a==null?void 0:a.includes(i.path)),i.children&&l(i.children)})}return l(e),e},G=(e,n)=>{if(Array.isArray(n)){const l=Array.from(new Set(n==null?void 0:n.map(u=>u.substring(0,u.lastIndexOf("/")))));return{data:j(e,l),isFlag:!1}}else return{isFlag:(n==null?void 0:n.toUpperCase())==="SUPERADMIN"}},c=t.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),Q=e=>re.getComponent(e),X=t.ref({}),k=t.ref([]),Y=async(e,n,l)=>{var T,B,x;if(((T=e==null?void 0:e.structureIds)==null?void 0:T.length)===0)return;const u=(x=(B=e==null?void 0:e.structureIds)==null?void 0:B.filter(o=>(o==null?void 0:o.key)==="dialogConfig"))==null?void 0:x.map(o=>o==null?void 0:o.id);let i=u==null?void 0:u.map(o=>z.getInsofDataApi({id:o}));const a=await Promise.all(i);if(a==null?void 0:a.every(o=>{var r;return((r=o==null?void 0:o.data)==null?void 0:r.code)===200})){const o=a==null?void 0:a.map(r=>{var f,b,m,d,S,P,H;return{id:(m=(b=(f=r==null?void 0:r.data)==null?void 0:f.result)==null?void 0:b[0])==null?void 0:m.id,...(H=(P=(S=(d=r==null?void 0:r.data)==null?void 0:d.result)==null?void 0:S[0])==null?void 0:P.value)==null?void 0:H.pageData}});console.log("getMenuDialogStructureAsync",a),n==="create"&&(k.value=o),n==="update"&&(k.value=o==null?void 0:o.map(r=>{var f,b;return((f=r==null?void 0:r.comp)==null?void 0:f.toUpperCase())==="FORM"?{...r,compData:(b=r==null?void 0:r.compData)==null?void 0:b.map(m=>{var d;return(m==null?void 0:m.key)==="formContent"?{...m,contents:(d=m==null?void 0:m.contents)==null?void 0:d.map(S=>({...S,value:l==null?void 0:l.title}))}:m})}:r}))}},h=t.ref({}),p=t.ref({}),Z=e=>{switch(e){case"新增":return"create";case"编辑":return"update";case"删除":return"delete"}},E=t.ref({}),A=e=>{s.setIsRefreshMenus(!0),s.setCacheInputMenu({type:c.type,data:e})},I=async(e,n)=>{c.type=Z(n==null?void 0:n.operateType),await Y(n,c.type,e),s.setIsRefreshMenus(!1),p.value=e,E.value=n,(n==null?void 0:n.operateType)!=="删除"?(c.show=(n==null?void 0:n.trigger)==="openDialog",c.title=(n==null?void 0:n.operateType)+"菜单"):se.ElMessageBox.confirm(`是否确认要删除【${e==null?void 0:e.title}】`,"",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{A(e)}),console.log("clickMenuIcon",e,n,c)},ee=()=>{c.show=!1},ne=e=>e==null?void 0:e.filter(n=>n.allowInherit);return{handleCompChange:e=>{var l,u;const n=(l=e==null?void 0:e.contents)==null?void 0:l.find(i=>i.key==="formContent");n&&(h.value=(u=n==null?void 0:n.contents)==null?void 0:u.reduce((i,a)=>(i[a.key]=a.value,i.prop=a.key,i),{}))},dialogForm:X,dialogRenderComps:k,getComponents:Q,clickSubmitForm:()=>{var l,u,i,a,w;let e;c.type==="create"&&(e=((l=p.value)==null?void 0:l.path)+"/"+h.value[(u=h.value)==null?void 0:u.prop]),c.type==="update"&&(e=(i=p.value)==null?void 0:i.path);const n={...p.value,config:ne((a=p.value)==null?void 0:a.config),children:[],childMenus:[],title:h.value[(w=h.value)==null?void 0:w.prop],path:e};console.log("clickSubmitForm",E.value,p.value,n),A(n),c.show=!1},dialogInfo:c,beforeDialogDestroy:ee,clickMenuIcon:I,mode:U,renderMenuList:_,clickMenu:J,openMenu:K,closeMenu:L,changeMenuStyle:M}}});exports._sfc_main=ve;exports._sfc_main$1=q;exports.browserHorizontalMenuClasses=ie;exports.browserThemeConfig=ce;exports.browserVerticalMenuClasses=R;exports.clientHorizontalMenuClasses=N;exports.clientThemeConfig=me;exports.clientVerticalMenuClasses=W;exports.ssMenu=y;