ss-component-new 1.2.6 → 1.2.7

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 (128) hide show
  1. package/dist/{OrbitControls-DA4VpOM_.js → OrbitControls-C0QRmW6_.js} +1 -1
  2. package/dist/{STLLoader-DmGTF0Nv.js → STLLoader-CiUjaQtA.js} +1 -1
  3. package/dist/{animationData-GqECkAbz.js → animationData-CMKGpOzN.js} +14 -14
  4. package/dist/animationData-CjOlng3t.cjs +1 -0
  5. package/dist/array-BI6c3lN7.cjs +11 -0
  6. package/dist/array-zuPH84bL.js +1142 -0
  7. package/dist/{iconfont-ljBfzBSE.js → iconfont-pt17sMx3.js} +2 -2
  8. package/dist/{index-C5CKSB0e.cjs → index-1aEh3d97.cjs} +1 -1
  9. package/dist/{index-BOJUyAaV.cjs → index-1z9RrjZc.cjs} +1 -1
  10. package/dist/{index-DJGsDpDp.js → index-Ah-8x9yf.js} +13 -13
  11. package/dist/{index-DPBmAgEA.cjs → index-B3bZrnX5.cjs} +1 -1
  12. package/dist/{index-HvKjB6_P.js → index-B5Qn4jv8.js} +5 -5
  13. package/dist/{index-67QO-qDa.cjs → index-B7PZ70Ke.cjs} +1 -1
  14. package/dist/{index-CRrAiL5l.js → index-BPOERPtt.js} +4 -4
  15. package/dist/{index-DcUUpSE1.cjs → index-BQ7is--r.cjs} +1 -1
  16. package/dist/{index-BpR7F1Fp.cjs → index-BQdJqnJf.cjs} +1 -1
  17. package/dist/{index-CBuqdsPh.js → index-BX3CpqTk.js} +4 -4
  18. package/dist/{index-DPWc4No_.js → index-B_HoaLPL.js} +2 -2
  19. package/dist/{index-B7hLDNQ6.cjs → index-BaOQV1JK.cjs} +1 -1
  20. package/dist/{index-BNvpuVyw.cjs → index-Bc20prdj.cjs} +1 -1
  21. package/dist/index-BhLnI2fF.cjs +1 -0
  22. package/dist/{index-Bs2K1FVH.js → index-BnNuMzEv.js} +2 -2
  23. package/dist/{index-CArSUfnV.js → index-BniAk5Lo.js} +1010 -1013
  24. package/dist/{index-_66uQhcl.js → index-BoHTgzWr.js} +2129 -2122
  25. package/dist/{index--rLSLEk3.js → index-Br5wm1ow.js} +24 -24
  26. package/dist/{index-mtuIEfrj.cjs → index-BxL4p0ej.cjs} +1 -1
  27. package/dist/{index-8yRiF_z8.cjs → index-BzOBvH4x.cjs} +1 -1
  28. package/dist/{index-D9oqICYV.cjs → index-C2WJz0OJ.cjs} +1 -1
  29. package/dist/{index-DVmoPvzr.cjs → index-C2aGGJxk.cjs} +1 -1
  30. package/dist/{index-DGepdvRW.js → index-CHksmnYA.js} +2 -2
  31. package/dist/{index-CMCrQ36H.js → index-CJW7oNUN.js} +5 -5
  32. package/dist/index-CJXXl1EN.cjs +1 -0
  33. package/dist/{index-CTkF2kl_.js → index-CKHNyMzP.js} +1 -1
  34. package/dist/{index-DZ8a7BZ1.cjs → index-CQAvn30B.cjs} +1 -1
  35. package/dist/{index-C8UOMPgt.js → index-CQzgMbjC.js} +2 -2
  36. package/dist/{index-LADv0t0E.js → index-CUUjf1P3.js} +12 -12
  37. package/dist/{index-CedgKpsz.cjs → index-CW99kzgY.cjs} +1 -1
  38. package/dist/{index-BHJ-tVLT.cjs → index-CXbvmuYZ.cjs} +1 -1
  39. package/dist/{index-BsfJJu0R.js → index-CXchqN8w.js} +6 -6
  40. package/dist/{index-BaRkv5oc.cjs → index-Cia5yg2S.cjs} +1 -1
  41. package/dist/{index-tttYIzsn.cjs → index-CjI5pDiU.cjs} +1 -1
  42. package/dist/{index-D-WcrLQv.js → index-CkCmJLPU.js} +4 -4
  43. package/dist/{index-C1FOuBuy.js → index-CvrTrN91.js} +1 -1
  44. package/dist/{index-DSchKIyh.cjs → index-CxnH4vfV.cjs} +1 -1
  45. package/dist/{index-D6mwkqWY.cjs → index-Czw_p2Ax.cjs} +13 -13
  46. package/dist/index-D46pfmEc.js +2567 -0
  47. package/dist/{index-g4qw0jRy.js → index-DDNAWKqD.js} +6 -6
  48. package/dist/{index-CA-FC_OL.cjs → index-DKHaw4wr.cjs} +1 -1
  49. package/dist/{index-CbA74tCL.js → index-DLN_fbq6.js} +4 -4
  50. package/dist/{index-DWs7-g1h.cjs → index-DauH8AzR.cjs} +1 -1
  51. package/dist/{index-DV_ZZQBO.js → index-DbzvXPKu.js} +176 -176
  52. package/dist/{index-9zEdW6xv.js → index-DsnxblRp.js} +6 -6
  53. package/dist/{index-_uyv24Pt.cjs → index-Duqrg0DV.cjs} +1 -1
  54. package/dist/{index-FK1YYpjN.cjs → index-Dv_9EftF.cjs} +1 -1
  55. package/dist/{index-B14iwpkN.cjs → index-Dx63Z3PG.cjs} +1 -1
  56. package/dist/index-DxukQK2k.cjs +1 -0
  57. package/dist/index-Dy3FE211.cjs +1 -0
  58. package/dist/{index-CRj9VM12.js → index-HZr3I0-O.js} +6 -6
  59. package/dist/{index-CbDu4gfZ.js → index-IknA4u4L.js} +5 -5
  60. package/dist/{index-DGi-ANHr.js → index-Kbl8xHWJ.js} +7 -7
  61. package/dist/{index-BMMYAqF1.js → index-MqvNXMd6.js} +1 -1
  62. package/dist/{index-Cm3z0Vmi.cjs → index-PBT5kNaR.cjs} +1 -1
  63. package/dist/{index-CShBWCYm.js → index-UDddsXT4.js} +1 -1
  64. package/dist/{index-Bw_JtuzR.js → index-UuJKyKlu.js} +3 -3
  65. package/dist/index-W6FccWpW.js +7210 -0
  66. package/dist/index-d3F4mRMM.js +3370 -0
  67. package/dist/{index-BNOx3XL5.js → index-fnqbVNnP.js} +1 -1
  68. package/dist/{index-CZaBF851.cjs → index-hseXzBbE.cjs} +1 -1
  69. package/dist/{index-87kRWJv8.cjs → index-k3lVcyGc.cjs} +1 -1
  70. package/dist/{index-DvpVQvAe.js → index-sBAb1SLC.js} +2 -2
  71. package/dist/{index-BYUPvuvs.cjs → index-tEinx-qZ.cjs} +1 -1
  72. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DIMJusrg.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DULpc85o.js} +10383 -10362
  73. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BSOYWm_U.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-hGi9c2Ju.cjs} +123 -123
  74. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-D2VLEzGB.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-CtqR5lQb.cjs} +1 -1
  75. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-D58IzjOR.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-DuybmJnl.js} +6 -6
  76. package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang--PcXwjiH.cjs +56 -0
  77. package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-C-NVC3BN.js +34117 -0
  78. package/dist/index.vue_vue_type_style_index_1_lang-Cb3WPLY1.cjs +32 -0
  79. package/dist/{index.vue_vue_type_style_index_1_lang-H_pReDxj.cjs → index.vue_vue_type_style_index_1_lang-Ck3aGjUr.cjs} +1 -1
  80. package/dist/{index.vue_vue_type_style_index_1_lang-hBa3nAgx.js → index.vue_vue_type_style_index_1_lang-D909xoIu.js} +5 -5
  81. package/dist/index.vue_vue_type_style_index_1_lang-Dy1Zc_t-.js +8126 -0
  82. package/dist/{isString-CELwppr9.cjs → isString-BmAegMGI.cjs} +1 -1
  83. package/dist/{isString--ZVOCy4V.js → isString-CZMLuMzD.js} +1 -1
  84. package/dist/isUndefined-ClRzgwTy.cjs +1 -0
  85. package/dist/isUndefined-chfCDxUU.js +84 -0
  86. package/dist/{main-C6Iw-pcH.cjs → main-CSuKoOz4.cjs} +1 -1
  87. package/dist/{main-CygliYyN.js → main-D6-NZoCw.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 +2 -2
  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/{three-viewport-gizmo-BHznJ6W3.js → three-viewport-gizmo-CkQ98n-T.js} +2 -2
  96. package/dist/{threeLatheView-DzpPpdDr.js → threeLatheView-BmVBnC8n.js} +4 -4
  97. package/dist/{threeLatheView-CdUoB0Te.cjs → threeLatheView-CZdorls1.cjs} +1 -1
  98. package/dist/{threeModel-BUCLJlE5.cjs → threeModel-CIXJ7OQA.cjs} +1 -1
  99. package/dist/{threeModel-BfMMeZCc.js → threeModel-CPolYsAh.js} +5 -5
  100. package/dist/{threePreview-BEqzg370.js → threePreview-CYX5wKoL.js} +4 -4
  101. package/dist/{threePreview-C-JW_pcY.cjs → threePreview-C_mY_TBC.cjs} +1 -1
  102. package/dist/threeSceneView-CUBwHIv3.js +1472 -0
  103. package/dist/threeSceneView-C_0lI1AI.cjs +5 -0
  104. package/dist/{threeSceneViewForCPMPIP-Bexwqkry.js → threeSceneViewForCPMPIP-BHhBMxdP.js} +86 -85
  105. package/dist/{threeSceneViewForCPMPIP-DwLWGNUd.cjs → threeSceneViewForCPMPIP-D4KdOIxO.cjs} +3 -3
  106. package/dist/{threeViewerHost-CTjd2V1D.js → threeViewerHost-Cbz8Cw7s.js} +78 -65
  107. package/dist/threeViewerHost-DOwyFQG3.cjs +1 -0
  108. package/dist/{useRayCaster-D0_7oJan.js → useRayCaster-CF6KDZ1R.js} +5 -5
  109. package/dist/useRayCaster-CqS7g8Ix.cjs +1 -0
  110. package/package.json +1 -1
  111. package/public/obj/model.mtl +42 -0
  112. package/public/obj/model.obj +26110 -0
  113. package/dist/animationData-B0K2ghu6.cjs +0 -1
  114. package/dist/array-D65aMM6H.js +0 -1207
  115. package/dist/array-DMPAgNcb.cjs +0 -11
  116. package/dist/index-8Dyi4QCI.js +0 -7293
  117. package/dist/index-BEoEUXZe.js +0 -2643
  118. package/dist/index-BsM9qdbC.cjs +0 -1
  119. package/dist/index-CePZE-QA.cjs +0 -1
  120. package/dist/index-D8510-YQ.cjs +0 -1
  121. package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-BnNwKutS.cjs +0 -56
  122. package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-CJCvJvBM.js +0 -37436
  123. package/dist/index.vue_vue_type_style_index_1_lang-D5Hjs-g0.js +0 -7804
  124. package/dist/index.vue_vue_type_style_index_1_lang-N-_9ZJEf.cjs +0 -32
  125. package/dist/threeSceneView-BTsG2QJg.cjs +0 -5
  126. package/dist/threeSceneView-DV5dsTZZ.js +0 -1471
  127. package/dist/threeViewerHost-CRqcYbJE.cjs +0 -1
  128. package/dist/useRayCaster-DN56HpNP.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";const s=require("vue"),ne=require("./index-BpPyaNFa.cjs"),w=require("./index-BOJUyAaV.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BSOYWm_U.cjs");const R=require("./index.vue_vue_type_style_index_1_lang-N-_9ZJEf.cjs"),le=require("./index-8yRiF_z8.cjs"),oe=require("vue-router"),k=require("./index-9hspBVrQ.cjs"),ue=require("./index-D8510-YQ.cjs"),P=s.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-D6mwkqWY.cjs")).then(v=>v.index));P.install=v=>{v.component("ssMenu",P)};const U={__name:"index",props:{name:String},setup(v){const a=v,x=s.computed(()=>w.ElIcons[a.name]);return s.onMounted(()=>{}),(T,g)=>{const S=s.resolveComponent("el-icon");return s.openBlock(),s.createBlock(S,null,{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(x.value)))]),_:1})}}},ce=s.defineComponent({name:"menu",components:{SvgIcon:ne.SvgIcon,ssMenu:P,DynamicIcon:U,ssDialog:le.ssDialog},setup(){const v=s.defineProps({mode:{type:String,default:"vertical"}}),a=R.useMenuState(),x=R.useModelComp(w.pinia),T=s.ref(0),g=oe.useRouter(),{asideMenus:S,menuTriggerType:V,platform:z}=w.storeToRefs(a),H=s.computed(()=>v==null?void 0:v.mode),B=s.computed(()=>{let e=[...S.value];if((e==null?void 0:e.length)===0)return g.push("/"),[];const t=G(e,L.value);return t.isFlag||(e=t==null?void 0:t.data),e}),W=async e=>{x.setRouteToChildPath(""),a.setMenuTriggerType("click"),a.setActiveMenuPath(e==null?void 0:e.path),a.setActiveAsideMenu(e),e.isRouter?g.push(e.path):g.push("/")},J=async e=>{const t=w.findNodeByPropInTree(B.value,"path",e);a.setActiveAsideMenu(t),x.setRouteToChildPath(""),V.value==="click"?T.value===1?a.setActiveMenuPath(sessionStorage.getItem("pageKey")):a.setActiveMenuPath(e):(a.setMenuTriggerType("click"),a.setActiveMenuPath(e)),e!=null&&e.startsWith("/")?g.push(e):g.push("/"),T.value++},K=e=>{a.setActiveMenuPath(e)},h=e=>{const t=document.documentElement;e==null||e.forEach(o=>{t.style.setProperty(o.name,o.value)})};s.onMounted(()=>{T.value=1});const L=s.computed(()=>{const e=sessionStorage.getItem("authority");return e?JSON.parse(e):[]});s.watch(()=>z.value,e=>{e==="browser"?h(k.browserVerticalMenuClasses):e==="client"?(h(k.clientHorizontalMenuClasses),h(k.clientVerticalMenuClasses)):e==="three"&&(h(k.threeHorizontalMenuClasses),h(k.threeVerticalMenuClasses))},{immediate:!0});const j=(e,t)=>{function o(u){u==null||u.forEach(r=>{var f,C;const c=(f=r==null?void 0:r.path)!=null&&f.startsWith("/")?(C=r==null?void 0:r.path)==null?void 0:C.substring(1):r==null?void 0:r.path;r.show=t==null?void 0:t.some(d=>d==null?void 0:d.includes(c)),r.children&&o(r.children)})}return o(e),e},G=(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:j(e,o),isFlag:!1}}else return{isFlag:(t==null?void 0:t.toUpperCase())==="SUPERADMIN"}},p=s.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),I=e=>ue.getComponent(e),Q=s.ref({}),F=s.ref([]),X=async(e,t,o)=>{var C,d,E;if(!(e!=null&&e.structureIds)||((C=e==null?void 0:e.structureIds)==null?void 0:C.length)===0)return;const u=(E=(d=e==null?void 0:e.structureIds)==null?void 0:d.filter(n=>(n==null?void 0:n.key)==="dialogConfig"))==null?void 0:E.map(n=>n==null?void 0:n.id);let r=u==null?void 0:u.map(n=>w.getInsofDataApi({id:n}));const c=await Promise.all(r);if(c==null?void 0:c.every(n=>{var l;return((l=n==null?void 0:n.data)==null?void 0:l.code)===200})){const n=c==null?void 0:c.map(l=>{var _,m,i,A,D,O,N;return{id:(i=(m=(_=l==null?void 0:l.data)==null?void 0:_.result)==null?void 0:m[0])==null?void 0:i.id,...(N=(O=(D=(A=l==null?void 0:l.data)==null?void 0:A.result)==null?void 0:D[0])==null?void 0:O.value)==null?void 0:N.pageData}});t==="create"&&(F.value=n),t==="update"&&(F.value=n==null?void 0:n.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 A;return(i==null?void 0:i.key)==="formContent"?{...i,contents:(A=i==null?void 0:i.contents)==null?void 0:A.map(D=>({...D,value:o==null?void 0:o.title}))}:i})}:l}))}},y=s.ref({}),M=s.ref({}),Y=e=>{switch(e){case"新增":return"create";case"编辑":return"update";case"删除":return"delete"}},b=s.ref({}),$=e=>{a.setCacheInputMenu({type:p.type,data:e}),a.setIsRefreshMenus(!0)},Z=async(e,t)=>{p.type=Y(t==null?void 0:t.operateType),await X(t,p.type,e),M.value=e,b.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)+"菜单"):R.ElMessageBox.confirm(`是否确认要删除【${e==null?void 0:e.title}】`,"",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{$(e)})},ee=()=>{p.show=!1},te=e=>e==null?void 0:e.filter(t=>t.allowInherit),se=()=>{var o,u,r,c,f;let e;p.type==="create"&&(e=((o=M.value)==null?void 0:o.path)+"/"+y.value[(u=y.value)==null?void 0:u.prop]),p.type==="update"&&(e=(r=M.value)==null?void 0:r.path);const t={...M.value,config:te((c=M.value)==null?void 0:c.config),children:[],childMenus:[],title:y.value[(f=y.value)==null?void 0:f.prop],path:e};console.log("clickSubmitForm",b.value,M.value,t),$(t),p.show=!1},re=e=>{var o,u;const t=(o=e==null?void 0:e.contents)==null?void 0:o.find(r=>r.key==="formContent");t&&(y.value=(u=t==null?void 0:t.contents)==null?void 0:u.reduce((r,c)=>(r[c.key]=c.value,r.prop=c.key,r),{}))},q=s.ref(!1);return{isCollapse:q,handleMenuCollapse:()=>{q.value=!q.value},handleCompChange:re,dialogForm:Q,dialogRenderComps:F,getComponents:I,clickSubmitForm:se,dialogInfo:p,beforeDialogDestroy:ee,clickMenuIcon:Z,mode:H,renderMenuList:B,clickMenu:W,openMenu:J,closeMenu:K,changeMenuStyle:h}}});exports._sfc_main=ce;exports._sfc_main$1=U;exports.ssMenu=P;
1
+ "use strict";const s=require("vue"),ne=require("./index-BpPyaNFa.cjs"),w=require("./index-1z9RrjZc.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-hGi9c2Ju.cjs");const R=require("./index.vue_vue_type_style_index_1_lang-Cb3WPLY1.cjs"),le=require("./index-BzOBvH4x.cjs"),oe=require("vue-router"),k=require("./index-9hspBVrQ.cjs"),ue=require("./index-CJXXl1EN.cjs"),P=s.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-Czw_p2Ax.cjs")).then(v=>v.index));P.install=v=>{v.component("ssMenu",P)};const U={__name:"index",props:{name:String},setup(v){const a=v,x=s.computed(()=>w.ElIcons[a.name]);return s.onMounted(()=>{}),(T,g)=>{const S=s.resolveComponent("el-icon");return s.openBlock(),s.createBlock(S,null,{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(x.value)))]),_:1})}}},ce=s.defineComponent({name:"menu",components:{SvgIcon:ne.SvgIcon,ssMenu:P,DynamicIcon:U,ssDialog:le.ssDialog},setup(){const v=s.defineProps({mode:{type:String,default:"vertical"}}),a=R.useMenuState(),x=R.useModelComp(w.pinia),T=s.ref(0),g=oe.useRouter(),{asideMenus:S,menuTriggerType:V,platform:z}=w.storeToRefs(a),H=s.computed(()=>v==null?void 0:v.mode),B=s.computed(()=>{let e=[...S.value];if((e==null?void 0:e.length)===0)return g.push("/"),[];const t=G(e,L.value);return t.isFlag||(e=t==null?void 0:t.data),e}),W=async e=>{x.setRouteToChildPath(""),a.setMenuTriggerType("click"),a.setActiveMenuPath(e==null?void 0:e.path),a.setActiveAsideMenu(e),e.isRouter?g.push(e.path):g.push("/")},J=async e=>{const t=w.findNodeByPropInTree(B.value,"path",e);a.setActiveAsideMenu(t),x.setRouteToChildPath(""),V.value==="click"?T.value===1?a.setActiveMenuPath(sessionStorage.getItem("pageKey")):a.setActiveMenuPath(e):(a.setMenuTriggerType("click"),a.setActiveMenuPath(e)),e!=null&&e.startsWith("/")?g.push(e):g.push("/"),T.value++},K=e=>{a.setActiveMenuPath(e)},h=e=>{const t=document.documentElement;e==null||e.forEach(o=>{t.style.setProperty(o.name,o.value)})};s.onMounted(()=>{T.value=1});const L=s.computed(()=>{const e=sessionStorage.getItem("authority");return e?JSON.parse(e):[]});s.watch(()=>z.value,e=>{e==="browser"?h(k.browserVerticalMenuClasses):e==="client"?(h(k.clientHorizontalMenuClasses),h(k.clientVerticalMenuClasses)):e==="three"&&(h(k.threeHorizontalMenuClasses),h(k.threeVerticalMenuClasses))},{immediate:!0});const j=(e,t)=>{function o(u){u==null||u.forEach(r=>{var f,C;const c=(f=r==null?void 0:r.path)!=null&&f.startsWith("/")?(C=r==null?void 0:r.path)==null?void 0:C.substring(1):r==null?void 0:r.path;r.show=t==null?void 0:t.some(d=>d==null?void 0:d.includes(c)),r.children&&o(r.children)})}return o(e),e},G=(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:j(e,o),isFlag:!1}}else return{isFlag:(t==null?void 0:t.toUpperCase())==="SUPERADMIN"}},p=s.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),I=e=>ue.getComponent(e),Q=s.ref({}),F=s.ref([]),X=async(e,t,o)=>{var C,d,E;if(!(e!=null&&e.structureIds)||((C=e==null?void 0:e.structureIds)==null?void 0:C.length)===0)return;const u=(E=(d=e==null?void 0:e.structureIds)==null?void 0:d.filter(n=>(n==null?void 0:n.key)==="dialogConfig"))==null?void 0:E.map(n=>n==null?void 0:n.id);let r=u==null?void 0:u.map(n=>w.getInsofDataApi({id:n}));const c=await Promise.all(r);if(c==null?void 0:c.every(n=>{var l;return((l=n==null?void 0:n.data)==null?void 0:l.code)===200})){const n=c==null?void 0:c.map(l=>{var _,m,i,A,D,O,N;return{id:(i=(m=(_=l==null?void 0:l.data)==null?void 0:_.result)==null?void 0:m[0])==null?void 0:i.id,...(N=(O=(D=(A=l==null?void 0:l.data)==null?void 0:A.result)==null?void 0:D[0])==null?void 0:O.value)==null?void 0:N.pageData}});t==="create"&&(F.value=n),t==="update"&&(F.value=n==null?void 0:n.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 A;return(i==null?void 0:i.key)==="formContent"?{...i,contents:(A=i==null?void 0:i.contents)==null?void 0:A.map(D=>({...D,value:o==null?void 0:o.title}))}:i})}:l}))}},y=s.ref({}),M=s.ref({}),Y=e=>{switch(e){case"新增":return"create";case"编辑":return"update";case"删除":return"delete"}},b=s.ref({}),$=e=>{a.setCacheInputMenu({type:p.type,data:e}),a.setIsRefreshMenus(!0)},Z=async(e,t)=>{p.type=Y(t==null?void 0:t.operateType),await X(t,p.type,e),M.value=e,b.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)+"菜单"):R.ElMessageBox.confirm(`是否确认要删除【${e==null?void 0:e.title}】`,"",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{$(e)})},ee=()=>{p.show=!1},te=e=>e==null?void 0:e.filter(t=>t.allowInherit),se=()=>{var o,u,r,c,f;let e;p.type==="create"&&(e=((o=M.value)==null?void 0:o.path)+"/"+y.value[(u=y.value)==null?void 0:u.prop]),p.type==="update"&&(e=(r=M.value)==null?void 0:r.path);const t={...M.value,config:te((c=M.value)==null?void 0:c.config),children:[],childMenus:[],title:y.value[(f=y.value)==null?void 0:f.prop],path:e};console.log("clickSubmitForm",b.value,M.value,t),$(t),p.show=!1},re=e=>{var o,u;const t=(o=e==null?void 0:e.contents)==null?void 0:o.find(r=>r.key==="formContent");t&&(y.value=(u=t==null?void 0:t.contents)==null?void 0:u.reduce((r,c)=>(r[c.key]=c.value,r.prop=c.key,r),{}))},q=s.ref(!1);return{isCollapse:q,handleMenuCollapse:()=>{q.value=!q.value},handleCompChange:re,dialogForm:Q,dialogRenderComps:F,getComponents:I,clickSubmitForm:se,dialogInfo:p,beforeDialogDestroy:ee,clickMenuIcon:Z,mode:H,renderMenuList:B,clickMenu:W,openMenu:J,closeMenu:K,changeMenuStyle:h}}});exports._sfc_main=ce;exports._sfc_main$1=U;exports.ssMenu=P;
@@ -1,13 +1,13 @@
1
1
  import { defineAsyncComponent as ne, computed as D, onMounted as z, resolveComponent as le, createBlock as U, openBlock as V, withCtx as ae, resolveDynamicComponent as oe, defineComponent as ue, defineProps as ce, ref as g, watch as ie, reactive as pe } from "vue";
2
2
  import { S as ge } from "./index-BHtNKL1L.js";
3
- import { bx as ve, p as he, s as fe, by as Me, g as me } from "./index-DV_ZZQBO.js";
4
- import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DIMJusrg.js";
5
- import { u as Ce, a as ye, E as de } from "./index.vue_vue_type_style_index_1_lang-D5Hjs-g0.js";
6
- import { s as Ae } from "./index-BMMYAqF1.js";
3
+ import { bs as ve, p as he, s as fe, bt as Me, g as me } from "./index-DbzvXPKu.js";
4
+ import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DULpc85o.js";
5
+ import { u as Ce, a as ye, E as de } from "./index.vue_vue_type_style_index_1_lang-Dy1Zc_t-.js";
6
+ import { s as Ae } from "./index-MqvNXMd6.js";
7
7
  import { useRouter as we } from "vue-router";
8
8
  import { e as Te, g as ke, h as Se, a as De, d as Pe } from "./index-C2usxP_Q.js";
9
- import { g as _e } from "./index-8Dyi4QCI.js";
10
- const b = ne(() => import("./index-_66uQhcl.js").then((p) => p.j));
9
+ import { g as _e } from "./index-W6FccWpW.js";
10
+ const b = ne(() => import("./index-BoHTgzWr.js").then((p) => p.j));
11
11
  b.install = (p) => {
12
12
  p.component("ssMenu", b);
13
13
  };