ss-component-new 1.2.36 → 1.2.37

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 (119) hide show
  1. package/dist/{MTLLoader-CkNQ5SUP.cjs → MTLLoader-Dihj5ymj.cjs} +1 -1
  2. package/dist/{MTLLoader-B4lJr_ku.js → MTLLoader-gxq5Kvds.js} +1 -1
  3. package/dist/{OrbitControls-CpTJa--7.cjs → OrbitControls-Ba8QWDQU.cjs} +1 -1
  4. package/dist/{OrbitControls-CwAfnF56.js → OrbitControls-BonUITsH.js} +1 -1
  5. package/dist/{animationData-CF6-_eBc.cjs → animationData-AAFCWE58.cjs} +1 -1
  6. package/dist/{animationData-ETdtTXwF.js → animationData-DOlVDTlo.js} +4 -4
  7. package/dist/{array-CbzJvO5y.cjs → array-Bvce3EAi.cjs} +1 -1
  8. package/dist/{array-BUiCaQsR.js → array-D7EDjc7l.js} +35 -35
  9. package/dist/config.js +2 -2
  10. package/dist/{dataUtil-DFkONpps.cjs → dataUtil-B98txAs6.cjs} +1 -1
  11. package/dist/{dataUtil-oabcbdyY.js → dataUtil-VNsK7cTO.js} +2 -2
  12. package/dist/{fileUtil-BezA0XEu.cjs → fileUtil-BeIaOSMH.cjs} +1 -1
  13. package/dist/{fileUtil-xUu_aleM.js → fileUtil-D7S_1Tde.js} +1 -1
  14. package/dist/{iconfont-Cj5twyUW.js → iconfont-Dnc_kFzN.js} +2 -2
  15. package/dist/{iconfont-Bc_5-mGm.cjs → iconfont-wtkqkYlV.cjs} +1 -1
  16. package/dist/{index-Cs1m0QHY.cjs → index-A2nYF-1f.cjs} +1 -1
  17. package/dist/{index-C-4KKbC7.js → index-B-xelo5W.js} +3 -3
  18. package/dist/{index-CkTqgfCV.js → index-B3sDwg_c.js} +1 -1
  19. package/dist/{index-LcSS6r-3.cjs → index-B8HWTwDz.cjs} +1 -1
  20. package/dist/{index-7jCqww1w.cjs → index-B8bUR1Ri.cjs} +1 -1
  21. package/dist/{index-B35gkDgD.js → index-BCLRJLSj.js} +1 -1
  22. package/dist/{index-CfKLvZ17.cjs → index-BJoRCnr3.cjs} +1 -1
  23. package/dist/{index-DKQfWQa7.js → index-BLTsYYci.js} +1 -1
  24. package/dist/{index-bFFymrtu.js → index-BMaVaPUc.js} +2 -2
  25. package/dist/{index-DK1sT-Gv.js → index-BPzUmT8-.js} +12 -12
  26. package/dist/{index-CnW0XyMI.cjs → index-BU5DWXf0.cjs} +1 -1
  27. package/dist/{index-B5KCSN4c.cjs → index-BbzUzdxF.cjs} +1 -1
  28. package/dist/{index-BnNI_rxz.js → index-BeawnQ97.js} +3 -3
  29. package/dist/{index-C_FC7JhD.js → index-BiNILQi8.js} +6 -6
  30. package/dist/{index-CvrlW6Kj.cjs → index-BiPzhKBB.cjs} +1 -1
  31. package/dist/{index-Bp59pdeu.js → index-BrvAeT7w.js} +10 -10
  32. package/dist/{index-BjLowWoy.js → index-BwoXi1LQ.js} +2 -2
  33. package/dist/index-C8qRkCgn.cjs +21 -0
  34. package/dist/{index-ixEWAWI8.js → index-CBpSEFvE.js} +4 -4
  35. package/dist/{index-BsQpRUkg.cjs → index-CCAXN_VF.cjs} +1 -1
  36. package/dist/{index-DBDeHECn.js → index-CExeGHij.js} +5410 -5111
  37. package/dist/{index-vDXPLbzt.cjs → index-CQNvplpY.cjs} +13 -13
  38. package/dist/{index-BntUSUuQ.cjs → index-CagsR3TK.cjs} +1 -1
  39. package/dist/{index-Bsj_M3tu.cjs → index-CeJI9fRM.cjs} +1 -1
  40. package/dist/{index-CUeHiWp_.js → index-ChfpFIIo.js} +52 -52
  41. package/dist/{index-GOk9tc6o.js → index-Cjn-Nipt.js} +2 -2
  42. package/dist/{index-BHkXSoxP.cjs → index-ClnJ1K8q.cjs} +1 -1
  43. package/dist/{index-DPLITXsJ.js → index-CqzA5JZV.js} +21 -21
  44. package/dist/{index-DbW_sD5N.cjs → index-Ct6AnOh0.cjs} +1 -1
  45. package/dist/{index-B3_Z46NG.cjs → index-Cv9MOPos.cjs} +1 -1
  46. package/dist/{index-BopRIRaa.js → index-D2FUUF0p.js} +3311 -3300
  47. package/dist/{index-bhZxftEb.js → index-D62RCkPJ.js} +6 -6
  48. package/dist/{index-CV-9wRXp.cjs → index-DATWIRSp.cjs} +1 -1
  49. package/dist/{index-RfA-XD5A.cjs → index-DBiP81co.cjs} +1 -1
  50. package/dist/{index-BahsZur-.cjs → index-DBpviAty.cjs} +1 -1
  51. package/dist/{index-CvI-Xndo.js → index-DHUPGceO.js} +1 -1
  52. package/dist/{index-CizvuDrT.cjs → index-DKnofcM3.cjs} +1 -1
  53. package/dist/{index-BA_mOmgl.js → index-DWR446SX.js} +40 -40
  54. package/dist/{index-CnasZ7DR.cjs → index-DXY5_0gS.cjs} +1 -1
  55. package/dist/{index-D4X5ZbsB.cjs → index-DcSxvtLy.cjs} +1 -1
  56. package/dist/{index-CcKVjgvm.js → index-DdWJf1s4.js} +2 -2
  57. package/dist/{index-DHOgfCKk.js → index-De7WEvrP.js} +6 -6
  58. package/dist/{index-Ci05kJVO.cjs → index-DeakNivq.cjs} +1 -1
  59. package/dist/{index-Bha2dAuG.cjs → index-DfdAKUNR.cjs} +1 -1
  60. package/dist/{index-w9_VhKWc.cjs → index-DpzDQdE3.cjs} +1 -1
  61. package/dist/{index-DynEv7dZ.cjs → index-Idro_h24.cjs} +1 -1
  62. package/dist/{index-CTIVfb14.js → index-K4IHDJhC.js} +3 -3
  63. package/dist/{index-BOfa3R-1.cjs → index-XPbPRVHs.cjs} +1 -1
  64. package/dist/{index-DalL4U6b.js → index-XWSpT0ba.js} +8 -8
  65. package/dist/{index-C8YYklCT.cjs → index-Z3NUprRN.cjs} +1 -1
  66. package/dist/{index-ExjSK4s1.cjs → index-a9MrfjsX.cjs} +1 -1
  67. package/dist/{index-CowSp0mU.js → index-d2eZUUOL.js} +4 -4
  68. package/dist/{index-BwL33eO2.js → index-dg2e5vzL.js} +2 -2
  69. package/dist/{index-CX9ZToOe.js → index-diSrIKAW.js} +303 -303
  70. package/dist/{index-BWDmAGYH.js → index-dz7-iyTs.js} +8 -8
  71. package/dist/{index-CWQAImyg.js → index-nvemkzcE.js} +2 -2
  72. package/dist/{index-h5XWazmL.cjs → index-osFjwxXn.cjs} +1 -1
  73. package/dist/{index-peUgec1X.js → index-rGGHn9oX.js} +1268 -1267
  74. package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BV1JZ-3O.js +38949 -0
  75. package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DNHgx7h4.cjs +37 -0
  76. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CinJxfAX.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CTRnGkVw.js} +1649 -1644
  77. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DNsyaAD5.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DupRlL-E.cjs} +124 -124
  78. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-DTRpzofW.js → index.vue_vue_type_style_index_0_scoped_92477073_lang--woCJ_em.js} +13 -13
  79. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-DaxZVXAO.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-COe_Ck32.cjs} +1 -1
  80. package/dist/index.vue_vue_type_style_index_1_lang-6KO-EDQa.js +8293 -0
  81. package/dist/{index.vue_vue_type_style_index_1_lang-BgqA98cE.cjs → index.vue_vue_type_style_index_1_lang-CKpfQuiD.cjs} +1 -1
  82. package/dist/index.vue_vue_type_style_index_1_lang-Cb4_k0AS.cjs +32 -0
  83. package/dist/{index.vue_vue_type_style_index_1_lang-BX_Iweoa.js → index.vue_vue_type_style_index_1_lang-jt5oqPmv.js} +5 -5
  84. package/dist/{isString-D6Z6SOrb.cjs → isString--eJE54G5.cjs} +1 -1
  85. package/dist/{isString-DBnuELeA.js → isString-By6KKNvg.js} +1 -1
  86. package/dist/{main-BnGiV5RB.cjs → main-Brifss3R.cjs} +1 -1
  87. package/dist/{main-DHZFoZje.js → main-DENbrJLK.js} +5 -5
  88. package/dist/obj/model.mtl +42 -0
  89. package/dist/obj/model.obj +26110 -0
  90. package/dist/ss-component.cjs +1 -1
  91. package/dist/ss-component.css +1 -1
  92. package/dist/ss-component.js +11 -11
  93. package/dist/ss-component2.cjs +1 -1
  94. package/dist/ss-component2.js +12 -12
  95. package/dist/{threeModel-BkNMl4gC.js → threeModel-CpklGUZ5.js} +5 -5
  96. package/dist/{threeModel-BHsadPD8.cjs → threeModel-DxxkXyt5.cjs} +1 -1
  97. package/dist/{threePreview-BhHpGgi8.js → threePreview-BsPiIokT.js} +4 -4
  98. package/dist/{threePreview-q2XmhoL-.cjs → threePreview-Sh0ABsnX.cjs} +1 -1
  99. package/dist/{threeSceneView-D_2JHUdz.cjs → threeSceneView-DfiXbOBr.cjs} +1 -1
  100. package/dist/{threeSceneView-CDFoPU6x.js → threeSceneView-Dm3k49Mh.js} +87 -87
  101. package/dist/{threeSceneViewForCPMPIP-BBelwG21.js → threeSceneViewForCPMPIP-Czp3KJaA.js} +57 -57
  102. package/dist/{threeSceneViewForCPMPIP-DSIkOvjL.cjs → threeSceneViewForCPMPIP-XTc0zag-.cjs} +1 -1
  103. package/dist/{threeTrackPathView-CeCre9ru.js → threeTrackPathView-DaEDYBsf.js} +6 -6
  104. package/dist/{threeTrackPathView-CClVyd1p.cjs → threeTrackPathView-Dmp5NZVO.cjs} +1 -1
  105. package/dist/{threeViewerHost-B2ROtL1I.cjs → threeViewerHost-C07FM01K.cjs} +1 -1
  106. package/dist/{threeViewerHost-DLd9bynL.js → threeViewerHost-tA5hwts8.js} +14 -14
  107. package/dist/{urdfTree-vu4m_HnH.js → urdfTree-C5eDsIZV.js} +1 -1
  108. package/dist/{urdfTree-B2NsYdY-.cjs → urdfTree-CNAusPWp.cjs} +1 -1
  109. package/dist/{workpieceTreePanel-CXVtdZfX.js → workpieceTreePanel-BE_ayLjw.js} +5 -5
  110. package/dist/{workpieceTreePanel-Dif_gJAG.cjs → workpieceTreePanel-DMnR0vK-.cjs} +1 -1
  111. package/package.json +1 -1
  112. package/public/config.js +2 -2
  113. package/public/obj/model.mtl +42 -0
  114. package/public/obj/model.obj +26110 -0
  115. package/dist/index-DEBf-IBT.cjs +0 -21
  116. package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-B8Lpp-LG.js +0 -38138
  117. package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-yBjOSB4T.cjs +0 -56
  118. package/dist/index.vue_vue_type_style_index_1_lang-CWCaf0OP.js +0 -8415
  119. package/dist/index.vue_vue_type_style_index_1_lang-Dhkn6DXN.cjs +0 -32
@@ -1,13 +1,13 @@
1
- import { defineAsyncComponent as ae, computed as D, onMounted as W, resolveComponent as ue, createBlock as V, openBlock as H, withCtx as ce, resolveDynamicComponent as ie, defineComponent as pe, defineProps as ge, ref as g, watch as ve, reactive as fe } from "vue";
1
+ import { defineAsyncComponent as ae, computed as D, onMounted as W, resolveComponent as ue, createBlock as z, openBlock as H, withCtx as ce, resolveDynamicComponent as ie, defineComponent as pe, defineProps as ge, ref as g, watch as ve, reactive as fe } from "vue";
2
2
  import { S as he } from "./index-BHtNKL1L.js";
3
- import { bz as Me, p as me, s as Ce, by as ye, g as de } from "./index-DBDeHECn.js";
4
- import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CinJxfAX.js";
5
- import { u as Ae, a as we, E as ke } from "./index.vue_vue_type_style_index_1_lang-CWCaf0OP.js";
6
- import { s as Te } from "./index-B35gkDgD.js";
3
+ import { bO as Me, p as me, s as Ce, bN as ye, g as de } from "./index-CExeGHij.js";
4
+ import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CTRnGkVw.js";
5
+ import { u as Ae, a as we, E as ke } from "./index.vue_vue_type_style_index_1_lang-6KO-EDQa.js";
6
+ import { s as Te } from "./index-BCLRJLSj.js";
7
7
  import { useRouter as Se } from "vue-router";
8
8
  import { a as De, e as Pe, f as _e, g as be, h as Fe } from "./index-CAPx0_D4.js";
9
- import { g as xe } from "./index-peUgec1X.js";
10
- const x = ae(() => import("./index-BopRIRaa.js").then((p) => p.j));
9
+ import { g as xe } from "./index-rGGHn9oX.js";
10
+ const x = ae(() => import("./index-D2FUUF0p.js").then((p) => p.j));
11
11
  x.install = (p) => {
12
12
  p.component("ssMenu", x);
13
13
  };
@@ -21,9 +21,9 @@ const Re = {
21
21
  return W(() => {
22
22
  }), (k, u) => {
23
23
  const T = ue("el-icon");
24
- return H(), V(T, null, {
24
+ return H(), z(T, null, {
25
25
  default: ce(() => [
26
- (H(), V(ie(P.value)))
26
+ (H(), z(ie(P.value)))
27
27
  ]),
28
28
  _: 1
29
29
  });
@@ -104,9 +104,9 @@ function Be(p = "menu") {
104
104
  width: "30%",
105
105
  type: "create"
106
106
  }), Z = (e) => xe(e), I = g({}), b = g([]), ee = async (e, t, l) => {
107
- var y, M, z;
107
+ var y, M, N;
108
108
  if (!(e != null && e.structureIds) || ((y = e == null ? void 0 : e.structureIds) == null ? void 0 : y.length) === 0) return;
109
- const o = (z = (M = e == null ? void 0 : e.structureIds) == null ? void 0 : M.filter((r) => (r == null ? void 0 : r.key) === "dialogConfig")) == null ? void 0 : z.map((r) => r == null ? void 0 : r.id);
109
+ const o = (N = (M = e == null ? void 0 : e.structureIds) == null ? void 0 : M.filter((r) => (r == null ? void 0 : r.key) === "dialogConfig")) == null ? void 0 : N.map((r) => r == null ? void 0 : r.id);
110
110
  let s = o == null ? void 0 : o.map((r) => de({ id: r }));
111
111
  const a = await Promise.all(s);
112
112
  if (a == null ? void 0 : a.every((r) => {
@@ -114,10 +114,10 @@ function Be(p = "menu") {
114
114
  return ((n = r == null ? void 0 : r.data) == null ? void 0 : n.code) === 200;
115
115
  })) {
116
116
  const r = a == null ? void 0 : a.map((n) => {
117
- var d, A, c, w, S, N, U;
117
+ var d, A, c, w, S, U, V;
118
118
  return {
119
119
  id: (c = (A = (d = n == null ? void 0 : n.data) == null ? void 0 : d.result) == null ? void 0 : A[0]) == null ? void 0 : c.id,
120
- ...(U = (N = (S = (w = n == null ? void 0 : n.data) == null ? void 0 : w.result) == null ? void 0 : S[0]) == null ? void 0 : N.value) == null ? void 0 : U.pageData
120
+ ...(V = (U = (S = (w = n == null ? void 0 : n.data) == null ? void 0 : w.result) == null ? void 0 : S[0]) == null ? void 0 : U.value) == null ? void 0 : V.pageData
121
121
  };
122
122
  });
123
123
  t === "create" && (b.value = r), t === "update" && (b.value = r == null ? void 0 : r.map((n) => {
@@ -1 +1 @@
1
- "use strict";const s=require("vue"),ce=require("./index-BpPyaNFa.cjs"),w=require("./index-DEBf-IBT.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DNsyaAD5.cjs");const B=require("./index.vue_vue_type_style_index_1_lang-Dhkn6DXN.cjs"),ae=require("./index-Ci05kJVO.cjs"),ie=require("vue-router"),A=require("./index-9hspBVrQ.cjs"),pe=require("./index-RfA-XD5A.cjs"),P=s.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-vDXPLbzt.cjs")).then(v=>v.index));P.install=v=>{v.component("ssMenu",P)};const z={__name:"index",props:{name:String},setup(v){const b=v,S=s.computed(()=>w.ElIcons[b.name]);return s.onMounted(()=>{}),(x,a)=>{const T=s.resolveComponent("el-icon");return s.openBlock(),s.createBlock(T,null,{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(S.value)))]),_:1})}}};function H(v="menu"){return{name:v,components:{SvgIcon:ce.SvgIcon,ssMenu:P,DynamicIcon:z,ssDialog:ae.ssDialog},setup(b,{emit:S}){const x=s.defineProps({mode:{type:String,default:"vertical"}}),a=B.useMenuState(),T=B.useModelComp(w.pinia),F=s.ref(0),d=ie.useRouter(),{asideMenus:W,menuTriggerType:J,platform:K}=w.storeToRefs(a),L=s.computed(()=>x==null?void 0:x.mode),$=s.computed(()=>{let e=[...W.value];if((e==null?void 0:e.length)===0)return d.push("/"),[];const t=Y(e,Q.value);return t.isFlag||(e=t==null?void 0:t.data),e}),j=async e=>{T.setRouteToChildPath(""),a.setMenuTriggerType("click"),a.setActiveMenuPath(e==null?void 0:e.path),a.setActiveAsideMenu(e),e.isRouter?d.push(e.path):d.push("/"),S("node-click",e)},G=async e=>{const t=w.findNodeByPropInTree($.value,"path",e);a.setActiveAsideMenu(t),T.setRouteToChildPath(""),J.value==="click"?F.value===1?a.setActiveMenuPath(sessionStorage.getItem("pageKey")):a.setActiveMenuPath(e):(a.setMenuTriggerType("click"),a.setActiveMenuPath(e)),e!=null&&e.startsWith("/")?d.push(e):d.push("/"),F.value++},I=e=>{a.setActiveMenuPath(e)},g=e=>{const t=document.documentElement;e==null||e.forEach(o=>{t.style.setProperty(o.name,o.value)})};s.onMounted(()=>{F.value=1});const Q=s.computed(()=>{const e=sessionStorage.getItem("authority");return e?JSON.parse(e):[]});s.watch(()=>K.value,e=>{e==="browser"?g(A.browserVerticalMenuClasses):e==="client"?(g(A.clientHorizontalMenuClasses),g(A.clientVerticalMenuClasses)):e==="three"&&(g(A.threeHorizontalMenuClasses),g(A.threeVerticalMenuClasses))},{immediate:!0});const X=(e,t)=>{function o(u){u==null||u.forEach(n=>{var M,y;const c=(M=n==null?void 0:n.path)!=null&&M.startsWith("/")?(y=n==null?void 0:n.path)==null?void 0:y.substring(1):n==null?void 0:n.path;n.show=t==null?void 0:t.some(f=>f==null?void 0:f.includes(c)),n.children&&o(n.children)})}return o(e),e},Y=(e,t)=>{if(Array.isArray(t)){const o=Array.from(new Set(t==null?void 0:t.map(u=>u.substring(0,u.lastIndexOf("/")))));return{data:X(e,o),isFlag:!1}}else return{isFlag:(t==null?void 0:t.toUpperCase())==="SUPERADMIN"}},p=s.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),Z=e=>pe.getComponent(e),ee=s.ref({}),q=s.ref([]),te=async(e,t,o)=>{var y,f,N;if(!(e!=null&&e.structureIds)||((y=e==null?void 0:e.structureIds)==null?void 0:y.length)===0)return;const u=(N=(f=e==null?void 0:e.structureIds)==null?void 0:f.filter(r=>(r==null?void 0:r.key)==="dialogConfig"))==null?void 0:N.map(r=>r==null?void 0:r.id);let n=u==null?void 0:u.map(r=>w.getInsofDataApi({id:r}));const c=await Promise.all(n);if(c==null?void 0:c.every(r=>{var l;return((l=r==null?void 0:r.data)==null?void 0:l.code)===200})){const r=c==null?void 0:c.map(l=>{var _,m,i,k,D,U,V;return{id:(i=(m=(_=l==null?void 0:l.data)==null?void 0:_.result)==null?void 0:m[0])==null?void 0:i.id,...(V=(U=(D=(k=l==null?void 0:l.data)==null?void 0:k.result)==null?void 0:D[0])==null?void 0:U.value)==null?void 0:V.pageData}});t==="create"&&(q.value=r),t==="update"&&(q.value=r==null?void 0:r.map(l=>{var _,m;return((_=l==null?void 0:l.comp)==null?void 0:_.toUpperCase())==="FORM"?{...l,compData:(m=l==null?void 0:l.compData)==null?void 0:m.map(i=>{var k;return(i==null?void 0:i.key)==="formContent"?{...i,contents:(k=i==null?void 0:i.contents)==null?void 0:k.map(D=>({...D,value:o==null?void 0:o.title}))}:i})}:l}))}},C=s.ref({}),h=s.ref({}),se=e=>{switch(e){case"新增":return"create";case"编辑":return"update";case"删除":return"delete"}},E=s.ref({}),O=e=>{a.setCacheInputMenu({type:p.type,data:e}),a.setIsRefreshMenus(!0)},ne=async(e,t)=>{p.type=se(t==null?void 0:t.operateType),await te(t,p.type,e),h.value=e,E.value=t,(t==null?void 0:t.operateType)!=="删除"?(p.show=(t==null?void 0:t.trigger)==="openDialog",p.title=(t==null?void 0:t.operateType)+"菜单"):B.ElMessageBox.confirm(`是否确认要删除【${e==null?void 0:e.title}】`,"",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{O(e)})},re=()=>{p.show=!1},le=e=>e==null?void 0:e.filter(t=>t.allowInherit),oe=()=>{var o,u,n,c,M;let e;p.type==="create"&&(e=((o=h.value)==null?void 0:o.path)+"/"+C.value[(u=C.value)==null?void 0:u.prop]),p.type==="update"&&(e=(n=h.value)==null?void 0:n.path);const t={...h.value,config:le((c=h.value)==null?void 0:c.config),children:[],childMenus:[],title:C.value[(M=C.value)==null?void 0:M.prop],path:e};console.log("clickSubmitForm",E.value,h.value,t),O(t),p.show=!1},ue=e=>{var o,u;const t=(o=e==null?void 0:e.contents)==null?void 0:o.find(n=>n.key==="formContent");t&&(C.value=(u=t==null?void 0:t.contents)==null?void 0:u.reduce((n,c)=>(n[c.key]=c.value,n.prop=c.key,n),{}))},R=s.ref(!1);return{isCollapse:R,handleMenuCollapse:()=>{R.value=!R.value},handleCompChange:ue,dialogForm:ee,dialogRenderComps:q,getComponents:Z,clickSubmitForm:oe,dialogInfo:p,beforeDialogDestroy:re,clickMenuIcon:ne,mode:L,renderMenuList:$,clickMenu:j,openMenu:G,closeMenu:I,changeMenuStyle:g}}}}const ve=s.defineComponent(H());exports._sfc_main=ve;exports._sfc_main$1=z;exports.setComponent=H;exports.ssMenu=P;
1
+ "use strict";const s=require("vue"),ce=require("./index-BpPyaNFa.cjs"),w=require("./index-C8qRkCgn.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DupRlL-E.cjs");const B=require("./index.vue_vue_type_style_index_1_lang-Cb4_k0AS.cjs"),ae=require("./index-DeakNivq.cjs"),ie=require("vue-router"),A=require("./index-9hspBVrQ.cjs"),pe=require("./index-DBiP81co.cjs"),P=s.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-CQNvplpY.cjs")).then(v=>v.index));P.install=v=>{v.component("ssMenu",P)};const z={__name:"index",props:{name:String},setup(v){const b=v,S=s.computed(()=>w.ElIcons[b.name]);return s.onMounted(()=>{}),(x,a)=>{const T=s.resolveComponent("el-icon");return s.openBlock(),s.createBlock(T,null,{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(S.value)))]),_:1})}}};function H(v="menu"){return{name:v,components:{SvgIcon:ce.SvgIcon,ssMenu:P,DynamicIcon:z,ssDialog:ae.ssDialog},setup(b,{emit:S}){const x=s.defineProps({mode:{type:String,default:"vertical"}}),a=B.useMenuState(),T=B.useModelComp(w.pinia),F=s.ref(0),d=ie.useRouter(),{asideMenus:W,menuTriggerType:J,platform:K}=w.storeToRefs(a),L=s.computed(()=>x==null?void 0:x.mode),$=s.computed(()=>{let e=[...W.value];if((e==null?void 0:e.length)===0)return d.push("/"),[];const t=Y(e,Q.value);return t.isFlag||(e=t==null?void 0:t.data),e}),j=async e=>{T.setRouteToChildPath(""),a.setMenuTriggerType("click"),a.setActiveMenuPath(e==null?void 0:e.path),a.setActiveAsideMenu(e),e.isRouter?d.push(e.path):d.push("/"),S("node-click",e)},G=async e=>{const t=w.findNodeByPropInTree($.value,"path",e);a.setActiveAsideMenu(t),T.setRouteToChildPath(""),J.value==="click"?F.value===1?a.setActiveMenuPath(sessionStorage.getItem("pageKey")):a.setActiveMenuPath(e):(a.setMenuTriggerType("click"),a.setActiveMenuPath(e)),e!=null&&e.startsWith("/")?d.push(e):d.push("/"),F.value++},I=e=>{a.setActiveMenuPath(e)},g=e=>{const t=document.documentElement;e==null||e.forEach(o=>{t.style.setProperty(o.name,o.value)})};s.onMounted(()=>{F.value=1});const Q=s.computed(()=>{const e=sessionStorage.getItem("authority");return e?JSON.parse(e):[]});s.watch(()=>K.value,e=>{e==="browser"?g(A.browserVerticalMenuClasses):e==="client"?(g(A.clientHorizontalMenuClasses),g(A.clientVerticalMenuClasses)):e==="three"&&(g(A.threeHorizontalMenuClasses),g(A.threeVerticalMenuClasses))},{immediate:!0});const X=(e,t)=>{function o(u){u==null||u.forEach(n=>{var M,y;const c=(M=n==null?void 0:n.path)!=null&&M.startsWith("/")?(y=n==null?void 0:n.path)==null?void 0:y.substring(1):n==null?void 0:n.path;n.show=t==null?void 0:t.some(f=>f==null?void 0:f.includes(c)),n.children&&o(n.children)})}return o(e),e},Y=(e,t)=>{if(Array.isArray(t)){const o=Array.from(new Set(t==null?void 0:t.map(u=>u.substring(0,u.lastIndexOf("/")))));return{data:X(e,o),isFlag:!1}}else return{isFlag:(t==null?void 0:t.toUpperCase())==="SUPERADMIN"}},p=s.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),Z=e=>pe.getComponent(e),ee=s.ref({}),q=s.ref([]),te=async(e,t,o)=>{var y,f,N;if(!(e!=null&&e.structureIds)||((y=e==null?void 0:e.structureIds)==null?void 0:y.length)===0)return;const u=(N=(f=e==null?void 0:e.structureIds)==null?void 0:f.filter(r=>(r==null?void 0:r.key)==="dialogConfig"))==null?void 0:N.map(r=>r==null?void 0:r.id);let n=u==null?void 0:u.map(r=>w.getInsofDataApi({id:r}));const c=await Promise.all(n);if(c==null?void 0:c.every(r=>{var l;return((l=r==null?void 0:r.data)==null?void 0:l.code)===200})){const r=c==null?void 0:c.map(l=>{var _,m,i,k,D,U,V;return{id:(i=(m=(_=l==null?void 0:l.data)==null?void 0:_.result)==null?void 0:m[0])==null?void 0:i.id,...(V=(U=(D=(k=l==null?void 0:l.data)==null?void 0:k.result)==null?void 0:D[0])==null?void 0:U.value)==null?void 0:V.pageData}});t==="create"&&(q.value=r),t==="update"&&(q.value=r==null?void 0:r.map(l=>{var _,m;return((_=l==null?void 0:l.comp)==null?void 0:_.toUpperCase())==="FORM"?{...l,compData:(m=l==null?void 0:l.compData)==null?void 0:m.map(i=>{var k;return(i==null?void 0:i.key)==="formContent"?{...i,contents:(k=i==null?void 0:i.contents)==null?void 0:k.map(D=>({...D,value:o==null?void 0:o.title}))}:i})}:l}))}},C=s.ref({}),h=s.ref({}),se=e=>{switch(e){case"新增":return"create";case"编辑":return"update";case"删除":return"delete"}},E=s.ref({}),O=e=>{a.setCacheInputMenu({type:p.type,data:e}),a.setIsRefreshMenus(!0)},ne=async(e,t)=>{p.type=se(t==null?void 0:t.operateType),await te(t,p.type,e),h.value=e,E.value=t,(t==null?void 0:t.operateType)!=="删除"?(p.show=(t==null?void 0:t.trigger)==="openDialog",p.title=(t==null?void 0:t.operateType)+"菜单"):B.ElMessageBox.confirm(`是否确认要删除【${e==null?void 0:e.title}】`,"",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{O(e)})},re=()=>{p.show=!1},le=e=>e==null?void 0:e.filter(t=>t.allowInherit),oe=()=>{var o,u,n,c,M;let e;p.type==="create"&&(e=((o=h.value)==null?void 0:o.path)+"/"+C.value[(u=C.value)==null?void 0:u.prop]),p.type==="update"&&(e=(n=h.value)==null?void 0:n.path);const t={...h.value,config:le((c=h.value)==null?void 0:c.config),children:[],childMenus:[],title:C.value[(M=C.value)==null?void 0:M.prop],path:e};console.log("clickSubmitForm",E.value,h.value,t),O(t),p.show=!1},ue=e=>{var o,u;const t=(o=e==null?void 0:e.contents)==null?void 0:o.find(n=>n.key==="formContent");t&&(C.value=(u=t==null?void 0:t.contents)==null?void 0:u.reduce((n,c)=>(n[c.key]=c.value,n.prop=c.key,n),{}))},R=s.ref(!1);return{isCollapse:R,handleMenuCollapse:()=>{R.value=!R.value},handleCompChange:ue,dialogForm:ee,dialogRenderComps:q,getComponents:Z,clickSubmitForm:oe,dialogInfo:p,beforeDialogDestroy:re,clickMenuIcon:ne,mode:L,renderMenuList:$,clickMenu:j,openMenu:G,closeMenu:I,changeMenuStyle:g}}}}const ve=s.defineComponent(H());exports._sfc_main=ve;exports._sfc_main$1=z;exports.setComponent=H;exports.ssMenu=P;