ss-component-new 1.2.150 → 1.2.152

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 (89) hide show
  1. package/dist/{MTLLoader-DmS4PVwa.cjs → MTLLoader-CS7tCafW.cjs} +1 -1
  2. package/dist/{MTLLoader-DBq1KXAX.js → MTLLoader-rr5QiHpH.js} +1 -1
  3. package/dist/{OrbitControls-kC94N9cH.cjs → OrbitControls-BF3SmLb0.cjs} +1 -1
  4. package/dist/{OrbitControls-BuWaLCmX.js → OrbitControls-DJK5ejeR.js} +1 -1
  5. package/dist/{URDFLoader-DnTNTNA7.js → URDFLoader-GhedGy2f.js} +2 -2
  6. package/dist/{URDFLoader-bYvgc51y.cjs → URDFLoader-YkeuzOMY.cjs} +1 -1
  7. package/dist/{animationData-QNiUx7pN.js → animationData-DPvrpOI5.js} +1 -1
  8. package/dist/{animationData-BqEMUtAO.cjs → animationData-f8DG4NvQ.cjs} +1 -1
  9. package/dist/{array-ClVXVEx7.cjs → array-Fw9xDONN.cjs} +1 -1
  10. package/dist/{array-BZAN3toV.js → array-fj93XUQy.js} +1 -1
  11. package/dist/{iconfont-BaVPM2v_.js → iconfont-DaheQsG9.js} +2 -2
  12. package/dist/{iconfont-CEx025kZ.cjs → iconfont-DduD50a_.cjs} +1 -1
  13. package/dist/{index-BMtT1D-o.cjs → index-7LIrILAr.cjs} +1 -1
  14. package/dist/{index-C7c3lUv8.js → index-8GKfPIWL.js} +8 -8
  15. package/dist/{index-C0vtqHQL.cjs → index-B0hNWWPQ.cjs} +1 -1
  16. package/dist/{index-C0AczIyL.cjs → index-B3ltAGaY.cjs} +1 -1
  17. package/dist/{index-DzYbQMvt.js → index-BD3QHmi2.js} +16 -16
  18. package/dist/{index-DHLQmW42.cjs → index-BKkiPOUm.cjs} +1 -1
  19. package/dist/{index-BH4VQuVL.cjs → index-BL8WxaPd.cjs} +1 -1
  20. package/dist/{index-BAiAdsHA.cjs → index-BQGkc6hK.cjs} +1 -1
  21. package/dist/{index-B4bQuKLS.cjs → index-BXeRvh_y.cjs} +1 -1
  22. package/dist/{index-BfSMSCzl.js → index-C571XfiP.js} +2 -2
  23. package/dist/{index-DhbPFHTx.cjs → index-CB-Mvo0Z.cjs} +1 -1
  24. package/dist/index-CB9ExkJX.cjs +1 -0
  25. package/dist/{index-DDY5SaAi.cjs → index-CDAcp7rJ.cjs} +1 -1
  26. package/dist/{index-B6oo6nSU.js → index-CGtLqnX3.js} +1 -1
  27. package/dist/{index-DCdGEc5U.cjs → index-CMDAMO_8.cjs} +1 -1
  28. package/dist/{index-BZ25HU9Z.js → index-COELguaL.js} +1 -1
  29. package/dist/{index-Oo6vDcaQ.cjs → index-CR2AjtrT.cjs} +1 -1
  30. package/dist/{index-rI1xcF_8.js → index-CSHoEB6w.js} +2 -2
  31. package/dist/{index-CxdVouOB.js → index-CWxQsf8s.js} +1 -1
  32. package/dist/{index-zr-S3EjS.js → index-CiY3qQGB.js} +4 -4
  33. package/dist/{index-Cjlj79ZP.js → index-ClZIL753.js} +1 -1
  34. package/dist/{index-79uCUNxg.cjs → index-Co-fGQmY.cjs} +1 -1
  35. package/dist/{index-1tgG8Ulp.js → index-CoqywjX6.js} +1 -1
  36. package/dist/{index-BCLiHpHq.cjs → index-Ct1B2wQp.cjs} +1 -1
  37. package/dist/{index-BKcIkwEV.js → index-CvHIDE8A.js} +1 -1
  38. package/dist/{index-CN3gvKaE.js → index-CxWrTyvu.js} +4 -4
  39. package/dist/{index-CL8ma-_X.cjs → index-D28B2qMb.cjs} +1 -1
  40. package/dist/{index-Qw7I_PuE.cjs → index-D6QtbyQH.cjs} +1 -1
  41. package/dist/{index-BgasiW6D.js → index-DAW-_6kb.js} +1 -1
  42. package/dist/{index-DO8Z1hIx.cjs → index-DBck8dcP.cjs} +1 -1
  43. package/dist/{index-qRZgUzdf.cjs → index-DJ-Ubkcc.cjs} +1 -1
  44. package/dist/{index-C92mmFVX.cjs → index-DKvvJrTD.cjs} +1 -1
  45. package/dist/{index-BJNIDwSl.js → index-DRCkHJv6.js} +1 -1
  46. package/dist/{index-C75icw4i.js → index-DYBdWLQB.js} +7 -7
  47. package/dist/{index-C-S-yHzX.cjs → index-DkQWdiUV.cjs} +1 -1
  48. package/dist/{index-Bz-Bi3xL.js → index-Dm060Nko.js} +4 -4
  49. package/dist/{index-DaieDA55.js → index-Dq-92rzL.js} +1 -1
  50. package/dist/{index-DSOz0K3d.js → index-Lkx2D7iY.js} +3 -3
  51. package/dist/{index-CCSt-THq.js → index-T1w28E7x.js} +1 -1
  52. package/dist/{index-DUffeFlJ.js → index-et6Sj8_h.js} +3 -3
  53. package/dist/{index-BDf5jKR-.cjs → index-gB6pRsiR.cjs} +1 -1
  54. package/dist/{index-CoHIS36z.cjs → index-lDahC_XO.cjs} +1 -1
  55. package/dist/{index-BJaiGTMz.js → index-yYlZ6saJ.js} +1 -1
  56. package/dist/{index-BS-v2ugu.js → index-zvEJ55jE.js} +205 -205
  57. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CzOb_sOB.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CK6SdpoM.js} +7 -7
  58. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-eYNCLpxI.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Sg3OAnZO.cjs} +1 -1
  59. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BV1Dk3xg.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BZDAM7UU.js} +312 -312
  60. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DwdgpqEP.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DLwFjtzq.cjs} +13 -13
  61. package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-uz-0886n.cjs → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-CXKsTe4a.cjs} +1 -1
  62. package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-e9qqbsy-.js → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-DxIhhKdi.js} +4 -4
  63. package/dist/{index.vue_vue_type_style_index_1_lang-Auqs4NuA.cjs → index.vue_vue_type_style_index_1_lang-CpLBwzYm.cjs} +1 -1
  64. package/dist/{index.vue_vue_type_style_index_1_lang-D0p6yvbH.js → index.vue_vue_type_style_index_1_lang-Dsu6zZjp.js} +3 -3
  65. package/dist/{main-Cp7zxHT6.js → main-Bvxuhx83.js} +3 -3
  66. package/dist/{main-BQrLgbP3.cjs → main-CUI407g3.cjs} +1 -1
  67. package/dist/ss-component.cjs +1 -1
  68. package/dist/ss-component.css +1 -1
  69. package/dist/ss-component.js +9 -9
  70. package/dist/ss-component2.cjs +1 -1
  71. package/dist/ss-component2.js +10 -10
  72. package/dist/{threeModel-CIsVZQR7.js → threeModel-C-4qS44N.js} +4 -4
  73. package/dist/{threeModel-CXRR8sBZ.cjs → threeModel-DSJiORME.cjs} +1 -1
  74. package/dist/{threePreview-C73AiX6N.js → threePreview-BSfotxX2.js} +3 -3
  75. package/dist/{threePreview-Czg2IqSY.cjs → threePreview-DQPl29N6.cjs} +1 -1
  76. package/dist/{threeSceneView-C932sX7u.js → threeSceneView-D7WbPEOa.js} +8 -8
  77. package/dist/{threeSceneView-C86EhWUj.cjs → threeSceneView-wByC9Vlj.cjs} +1 -1
  78. package/dist/{threeSceneViewForCPMPIP-DHFC76-h.js → threeSceneViewForCPMPIP-BtS3FkVG.js} +7 -7
  79. package/dist/{threeSceneViewForCPMPIP-C83zoxxL.cjs → threeSceneViewForCPMPIP-C3wdlamC.cjs} +1 -1
  80. package/dist/{threeTrackPathView-BTUPpbRS.cjs → threeTrackPathView-DZdCiZmn.cjs} +1 -1
  81. package/dist/{threeTrackPathView-DP84E0fr.js → threeTrackPathView-TShdPDAu.js} +3 -3
  82. package/dist/{threeViewerHost-Bvtp3ksm.js → threeViewerHost-CScPmwpQ.js} +2 -2
  83. package/dist/{threeViewerHost-CWgyZ3pd.cjs → threeViewerHost-dVdN527Y.cjs} +1 -1
  84. package/dist/{urdfTree-C9UvMSU3.js → urdfTree-BjNrHH4-.js} +1 -1
  85. package/dist/{urdfTree-BZhmC8yM.cjs → urdfTree-NTWDKnsG.cjs} +1 -1
  86. package/dist/{workpieceTreePanel-hp8KnlNC.js → workpieceTreePanel-DQfDiDMb.js} +4 -4
  87. package/dist/{workpieceTreePanel-mKNnCJsz.cjs → workpieceTreePanel-KzdD3enP.cjs} +1 -1
  88. package/package.json +1 -1
  89. package/dist/index-Bdj1j_IC.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";const g=require("vue"),O=require("./index-DOCHgBta.cjs"),i=require("./index-C8qRkCgn.cjs"),pe=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DwdgpqEP.cjs"),A=O.useModelComp(i.pinia),m=pe.useUnit(i.pinia),I=O.useMenuState(i.pinia),{menus:ee,configMenu:x,activeMenuPath:q,cacheStructures:E}=i.storeToRefs(I),j=g.ref(!1),te=g.computed(()=>{var e,t;return[{key:"extraButton",contents:[]},{key:"rowButton",contents:[{label:"修改"}]},{key:"header",contents:[{label:"菜单名称",prop:"title",isFormColHidden:!1},{label:"菜单类型",prop:"menuType",formType:"select",options:[{label:"系统菜单",value:"集团"},{label:"公司",value:"公司"}],isTableColHidden:!1,isFormColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:(t=(e=i.cloneDeep(ee.value))==null?void 0:e.map(l=>({...l,menuType:"系统菜单"})))==null?void 0:t.filter(l=>l.title!=="系统管理"&&l.title!=="平台管理")}]}),$=g.ref([]),B=g.ref([{label:"新建"}]),fe=g.computed(()=>[{key:"extraButton",contents:B.value},{key:"rowButton",contents:[{label:"修改"},{label:"删除"}]},{key:"header",contents:[{label:"操作类型",prop:"operateType",formType:"select",options:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标",prop:"operateIcon",formType:"inputPopover",value:""},{label:"操作触发事件",prop:"trigger",formType:"select",options:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"配置一:",prop:"dialogConfig",formType:"button",value:"弹窗内容",isTableColHidden:!0},{label:"配置二:",prop:"contentConfig",formType:"button",value:"模块内容",isTableColHidden:!0},{label:"继承配置:",prop:"allowInherit",formType:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1,isTableColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:$.value}]),J=g.ref([]),k=g.ref({}),de=g.ref({}),H=g.ref([{label:"菜单",prop:"path",isFormColHidden:!0,value:""},{label:"操作类型:",prop:"operateType",type:"select",contents:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标:",prop:"operateIcon",type:"inputPopover",value:""},{label:"操作触发事件:",prop:"trigger",type:"select",contents:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"生成的菜单图标:",prop:"menuIcon",type:"inputPopover",value:""},{label:"配置一:",prop:"dialogConfig",type:"button",value:"操作触发的弹窗结构"},{label:"配置二:",prop:"contentConfig",type:"button",value:"操作生成的模块结构",isFormColHidden:!1},{label:"",prop:"structureIds",type:"input",value:[],isFormColHidden:!0},{label:"继承配置:",prop:"allowInherit",type:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),R=e=>{var t;J.value=e?(t=H.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l:{...l,value:e?e[l==null?void 0:l.prop]:""}):H.value},ie=g.ref([{label:"查询"},{label:"重置"}]),ge=async()=>{},le=e=>e.map(t=>t.childMenus&&t.childMenus.length>0?{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title,children:le(t.childMenus)}:{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title}),v=g.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),U=g.ref([]),C=g.ref({}),h=g.ref(null),ae=g.ref([]),oe=g.computed(()=>{var e;return(e=le(ee.value))==null?void 0:e.filter(t=>t.title!=="系统管理"&&t.title!=="平台管理")}),ne=async e=>{var l,u,n,c;const t=await i.getInsofDataApi({key:{type:"subStructure",systemKey:sessionStorage.getItem("systemKey"),pageKey:e,version:1}});if(((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result){const r=(c=(n=t.data)==null?void 0:n.result)==null?void 0:c.map(p=>{var f;return{id:p==null?void 0:p.id,...(f=p==null?void 0:p.value)==null?void 0:f.pageData}});ae.value=r,I.setCacheStructures({key:"contentConfig",data:r})}},ve=async e=>{var t;j.value=!0,h.value={...e,rootNode:i.findRootNodeByPath(oe.value,e.path)},I.setCacheStructures(null),(e==null?void 0:e.level)===0?B.value.splice(0):(B.value=[{label:"新建"}],U.value=(t=e==null?void 0:e.path)==null?void 0:t.split("/")),await I.setConfigMenu(null),await ne(e==null?void 0:e.path),await _(e)},ye=e=>{switch(e){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},be=async(e,t)=>{var l,u;if(!h.value)return i.ElMessage.warning("请先选择菜单");if(v.type=ye(e),U.value=[],A.setSubmitCurStructure(!1),m.setSelectTitle([]),C.value=i.cloneDeep(t),v.type!=="delete"){switch(v.type){case"create":R(null),await I.setConfigMenu(null);break;case"update":R(C.value),await I.setConfigMenu(C.value),console.log("clickRowButton",C.value);break}await g.nextTick(),v.title=`【${v.type==="create"?(l=h.value)==null?void 0:l.path:(u=C.value)==null?void 0:u.path}】菜单配置${e}`,v.show=!0}else await re(C.value,v.type)},ue=g.ref(!0),he=async e=>{var t;k.value=e,await I.setConfigMenu({...k.value,path:(t=h.value)==null?void 0:t.path}),ue.value=(e==null?void 0:e.operateType)!=="新增"};g.watch(()=>ue.value,async e=>{var t;await g.nextTick(),J.value=(t=H.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l.prop==="contentConfig"?{...l,isFormColHidden:e}:l:{...l,value:k.value?k.value[l==null?void 0:l.prop]:""})},{immediate:!0,deep:!0});const Ce=g.ref(null),Ie=async(e,t)=>{var r,p,f,s,b;if(v.type==="create"){const a=(p=(r=E.value)==null?void 0:r.filter(d=>(d==null?void 0:d.key)===t))==null?void 0:p.flatMap(d=>d==null?void 0:d.data);A.setItemData(a),I.setCacheStructures({key:t,data:a})}if(console.log("getTriggerStructures1",e==null?void 0:e.structureIds,t),!(e!=null&&e.structureIds)||((f=e==null?void 0:e.structureIds)==null?void 0:f.length)===0)return;const l=(b=(s=e==null?void 0:e.structureIds)==null?void 0:s.filter(a=>(a==null?void 0:a.key)===t))==null?void 0:b.map(a=>a==null?void 0:a.id);let u=l==null?void 0:l.map(a=>{if(a)return i.getInsofDataApi({id:a})});const n=await Promise.all(u),c=n==null?void 0:n.every(a=>{var d;return((d=a==null?void 0:a.data)==null?void 0:d.code)===200});if(console.log("getTriggerStructures2",e==null?void 0:e.structureIds,t,n),c&&(n==null?void 0:n.length)>0){const a=n==null?void 0:n.map(d=>{var T,M,w,N,P,o,F;return{id:(w=(M=(T=d==null?void 0:d.data)==null?void 0:T.result)==null?void 0:M[0])==null?void 0:w.id,...(F=(o=(P=(N=d==null?void 0:d.data)==null?void 0:N.result)==null?void 0:P[0])==null?void 0:o.value)==null?void 0:F.pageData}});A.setItemData(a),I.setCacheStructures({key:t,data:a})}},ke=async e=>{var n,c,r,p,f;const t=e==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";I.setButtonTriggerType(t),await Ie(C.value,t);let l;(n=k.value)!=null&&n.subMenus&&((c=k.value)==null?void 0:c.subMenus.length)>0&&(l=(r=U.value)==null?void 0:r.map(s=>({value:s})),l.unshift({value:(p=C.value)==null?void 0:p.title}));let u;v.type==="create"?u={...k.value,path:(f=h.value)==null?void 0:f.path}:v.type==="update"&&(u=x.value),await I.setConfigMenu(u),m.setSelectTitle(l),A.setIsEdit("edit")},_=async e=>{var l,u,n,c,r,p;const t=await i.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:q.value+"/"+(e==null?void 0:e.path),tableId:""}});((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result&&($.value=((c=(n=t.data)==null?void 0:n.result)==null?void 0:c.length)>0?(p=(r=t.data)==null?void 0:r.result)==null?void 0:p.map(f=>{var s;return{id:f==null?void 0:f.id,...(s=f==null?void 0:f.value)==null?void 0:s.tableData}}):[]),j.value=!1},K=async(e,t,l="contentConfig")=>{var u,n,c,r,p,f;try{let s,b;t==="create"?(s={key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:q.value+"/"+((u=h.value)==null?void 0:u.path),type:"structure",rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,structureBelong:l,parentTable:"",version:1},value:{pageData:e}},b=i.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},b=i.updateInsofDataApi):t==="delete"&&(s={id:e},b=i.deleteInsofDataApi);const a=await b(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw i.ElMessage.error("保存响应失败"),new Error("保存响应失败");const d=t==="create"?(p=a==null?void 0:a.data)==null?void 0:p.result:e==null?void 0:e.id;return{status:((f=a==null?void 0:a.data)==null?void 0:f.code)===200,data:{id:d,key:l}}}catch{i.ElMessage.error("保存响应失败")}},Y=(e,t)=>{var f,s,b;const l=(f=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:f.map(a=>a==null?void 0:a.id),u=t.filter(a=>!(l!=null&&l.includes(a))),n=l==null?void 0:l.filter(a=>!t.includes(a));let c=null,r=null,p=null;return c=[...u,...n].filter(a=>a),r=(s=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:s.filter(a=>!(a!=null&&a.id)),p=(b=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:b.filter(a=>a==null?void 0:a.id).filter(a=>Object.keys(a).length>1),{deleteIds:c,createComps:r,updateComps:p}},Z=(e,t)=>{var u,n,c,r,p,f;let l=[];return((u=t==null?void 0:t.deleteIds)==null?void 0:u.length)>0&&((n=t==null?void 0:t.deleteIds)==null||n.forEach(s=>{l.push(K(s,"delete",e))})),((c=t==null?void 0:t.createComps)==null?void 0:c.length)>0&&((r=t==null?void 0:t.createComps)==null||r.forEach(s=>{l.push(K(s,"create",e))})),((p=t==null?void 0:t.updateComps)==null?void 0:p.length)>0&&((f=t==null?void 0:t.updateComps)==null||f.forEach(s=>{s!=null&&s.id&&l.push(K(s,"update",e))})),l},Te=e=>{const t=new Map;return e.forEach(l=>{t.set(l.id,l)}),Array.from(t.values())},Me=async(e,t)=>{var l,u,n,c,r,p,f;try{const s=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="contentConfig"),b=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="dialogConfig");await g.nextTick();const a=(n=(u=(l=E.value)==null?void 0:l.filter(o=>(o==null?void 0:o.key)==="dialogConfig"))==null?void 0:u.flatMap(o=>o==null?void 0:o.data))==null?void 0:n.map(o=>o==null?void 0:o.id);let d=(p=(r=(c=E.value)==null?void 0:c.filter(o=>(o==null?void 0:o.key)==="contentConfig"))==null?void 0:r.flatMap(o=>o==null?void 0:o.data))==null?void 0:p.map(o=>o==null?void 0:o.id);d=[...d,...(f=ae.value)==null?void 0:f.map(o=>o==null?void 0:o.id)];const T=Y(b,a),M=Y(s,d),w=Z("dialogConfig",T),N=Z("contentConfig",M),P=[...w,...N];await Promise.all(P).then(o=>{var z,G,L,V,Q,W,X;if(!(o==null?void 0:o.every(y=>y.status)))return;let S=(z=o==null?void 0:o.flatMap(y=>y==null?void 0:y.data))==null?void 0:z.filter(y=>(y==null?void 0:y.id)!==null&&(y==null?void 0:y.id)!==void 0);if(((G=T==null?void 0:T.updateComps)==null?void 0:G.length)===0&&v.type==="update"){const y=(V=(L=C.value)==null?void 0:L.structureIds)==null?void 0:V.filter(D=>(D==null?void 0:D.key)==="dialogConfig");S=[...S,...y]}if(((Q=M==null?void 0:M.updateComps)==null?void 0:Q.length)===0&&v.type==="update"){const y=(X=(W=C.value)==null?void 0:W.structureIds)==null?void 0:X.filter(D=>(D==null?void 0:D.key)==="contentConfig");S=[...S,...y]}const ce=Te(S);re({...t,isNotInitial:!0,structureIds:ce},v.type)}).catch(o=>{i.ElMessage.error(o)})}catch(s){throw i.ElMessage.error(s),new Error(s)}},re=async(e,t)=>{var n,c;let l,u;t==="create"?(l={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:q.value+"/"+((n=h.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=i.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=i.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=i.batchDeleteInsofDataApi),O.handleSubmitAsync(u,l,t).then(r=>{t==="create"&&$.value.push({...e,id:r}),t&&r&&i.ElMessage.success("响应成功"),_(h.value)})},De=async()=>{var l,u,n,c,r;const e=JSON.parse(i.cloneDeep(JSON.stringify(E.value)));await g.nextTick();const t=v.type==="create"?{...x.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...x.value,rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,id:(r=C.value)==null?void 0:r.id};await Me(e,t),k.value={},v.show=!1,await _(h.value)},Se=()=>{v.show=!1},se={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:te.value,name:""}]}]},we=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:Se,buttonValue:ie,changeTrigger:he,changedRow:de,clickNodeTrigger:ve,clickRowButton:be,clickSubmitForm:De,clickTrigger:ke,dialogInfo:v,formatFormData:R,getInitialSubStructure:ne,getTableDataAsync:_,handleItemDataChange:ge,inputForm:k,menuPageData:fe,operatingForm:Ce,pageData:te,renderFormData:J,tableLoading:j,tempMenuPageData:se,treeData:oe},Symbol.toStringTag,{value:"Module"}));exports.State=we;exports.tempMenuPageData=se;
1
+ "use strict";const g=require("vue"),O=require("./index-DOCHgBta.cjs"),i=require("./index-C8qRkCgn.cjs"),pe=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DLwFjtzq.cjs"),A=O.useModelComp(i.pinia),m=pe.useUnit(i.pinia),I=O.useMenuState(i.pinia),{menus:ee,configMenu:x,activeMenuPath:q,cacheStructures:E}=i.storeToRefs(I),j=g.ref(!1),te=g.computed(()=>{var e,t;return[{key:"extraButton",contents:[]},{key:"rowButton",contents:[{label:"修改"}]},{key:"header",contents:[{label:"菜单名称",prop:"title",isFormColHidden:!1},{label:"菜单类型",prop:"menuType",formType:"select",options:[{label:"系统菜单",value:"集团"},{label:"公司",value:"公司"}],isTableColHidden:!1,isFormColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:(t=(e=i.cloneDeep(ee.value))==null?void 0:e.map(l=>({...l,menuType:"系统菜单"})))==null?void 0:t.filter(l=>l.title!=="系统管理"&&l.title!=="平台管理")}]}),$=g.ref([]),B=g.ref([{label:"新建"}]),fe=g.computed(()=>[{key:"extraButton",contents:B.value},{key:"rowButton",contents:[{label:"修改"},{label:"删除"}]},{key:"header",contents:[{label:"操作类型",prop:"operateType",formType:"select",options:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标",prop:"operateIcon",formType:"inputPopover",value:""},{label:"操作触发事件",prop:"trigger",formType:"select",options:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"配置一:",prop:"dialogConfig",formType:"button",value:"弹窗内容",isTableColHidden:!0},{label:"配置二:",prop:"contentConfig",formType:"button",value:"模块内容",isTableColHidden:!0},{label:"继承配置:",prop:"allowInherit",formType:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1,isTableColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:$.value}]),J=g.ref([]),k=g.ref({}),de=g.ref({}),H=g.ref([{label:"菜单",prop:"path",isFormColHidden:!0,value:""},{label:"操作类型:",prop:"operateType",type:"select",contents:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标:",prop:"operateIcon",type:"inputPopover",value:""},{label:"操作触发事件:",prop:"trigger",type:"select",contents:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"生成的菜单图标:",prop:"menuIcon",type:"inputPopover",value:""},{label:"配置一:",prop:"dialogConfig",type:"button",value:"操作触发的弹窗结构"},{label:"配置二:",prop:"contentConfig",type:"button",value:"操作生成的模块结构",isFormColHidden:!1},{label:"",prop:"structureIds",type:"input",value:[],isFormColHidden:!0},{label:"继承配置:",prop:"allowInherit",type:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),R=e=>{var t;J.value=e?(t=H.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l:{...l,value:e?e[l==null?void 0:l.prop]:""}):H.value},ie=g.ref([{label:"查询"},{label:"重置"}]),ge=async()=>{},le=e=>e.map(t=>t.childMenus&&t.childMenus.length>0?{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title,children:le(t.childMenus)}:{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title}),v=g.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),U=g.ref([]),C=g.ref({}),h=g.ref(null),ae=g.ref([]),oe=g.computed(()=>{var e;return(e=le(ee.value))==null?void 0:e.filter(t=>t.title!=="系统管理"&&t.title!=="平台管理")}),ne=async e=>{var l,u,n,c;const t=await i.getInsofDataApi({key:{type:"subStructure",systemKey:sessionStorage.getItem("systemKey"),pageKey:e,version:1}});if(((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result){const r=(c=(n=t.data)==null?void 0:n.result)==null?void 0:c.map(p=>{var f;return{id:p==null?void 0:p.id,...(f=p==null?void 0:p.value)==null?void 0:f.pageData}});ae.value=r,I.setCacheStructures({key:"contentConfig",data:r})}},ve=async e=>{var t;j.value=!0,h.value={...e,rootNode:i.findRootNodeByPath(oe.value,e.path)},I.setCacheStructures(null),(e==null?void 0:e.level)===0?B.value.splice(0):(B.value=[{label:"新建"}],U.value=(t=e==null?void 0:e.path)==null?void 0:t.split("/")),await I.setConfigMenu(null),await ne(e==null?void 0:e.path),await _(e)},ye=e=>{switch(e){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},be=async(e,t)=>{var l,u;if(!h.value)return i.ElMessage.warning("请先选择菜单");if(v.type=ye(e),U.value=[],A.setSubmitCurStructure(!1),m.setSelectTitle([]),C.value=i.cloneDeep(t),v.type!=="delete"){switch(v.type){case"create":R(null),await I.setConfigMenu(null);break;case"update":R(C.value),await I.setConfigMenu(C.value),console.log("clickRowButton",C.value);break}await g.nextTick(),v.title=`【${v.type==="create"?(l=h.value)==null?void 0:l.path:(u=C.value)==null?void 0:u.path}】菜单配置${e}`,v.show=!0}else await re(C.value,v.type)},ue=g.ref(!0),he=async e=>{var t;k.value=e,await I.setConfigMenu({...k.value,path:(t=h.value)==null?void 0:t.path}),ue.value=(e==null?void 0:e.operateType)!=="新增"};g.watch(()=>ue.value,async e=>{var t;await g.nextTick(),J.value=(t=H.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l.prop==="contentConfig"?{...l,isFormColHidden:e}:l:{...l,value:k.value?k.value[l==null?void 0:l.prop]:""})},{immediate:!0,deep:!0});const Ce=g.ref(null),Ie=async(e,t)=>{var r,p,f,s,b;if(v.type==="create"){const a=(p=(r=E.value)==null?void 0:r.filter(d=>(d==null?void 0:d.key)===t))==null?void 0:p.flatMap(d=>d==null?void 0:d.data);A.setItemData(a),I.setCacheStructures({key:t,data:a})}if(console.log("getTriggerStructures1",e==null?void 0:e.structureIds,t),!(e!=null&&e.structureIds)||((f=e==null?void 0:e.structureIds)==null?void 0:f.length)===0)return;const l=(b=(s=e==null?void 0:e.structureIds)==null?void 0:s.filter(a=>(a==null?void 0:a.key)===t))==null?void 0:b.map(a=>a==null?void 0:a.id);let u=l==null?void 0:l.map(a=>{if(a)return i.getInsofDataApi({id:a})});const n=await Promise.all(u),c=n==null?void 0:n.every(a=>{var d;return((d=a==null?void 0:a.data)==null?void 0:d.code)===200});if(console.log("getTriggerStructures2",e==null?void 0:e.structureIds,t,n),c&&(n==null?void 0:n.length)>0){const a=n==null?void 0:n.map(d=>{var T,M,w,N,P,o,F;return{id:(w=(M=(T=d==null?void 0:d.data)==null?void 0:T.result)==null?void 0:M[0])==null?void 0:w.id,...(F=(o=(P=(N=d==null?void 0:d.data)==null?void 0:N.result)==null?void 0:P[0])==null?void 0:o.value)==null?void 0:F.pageData}});A.setItemData(a),I.setCacheStructures({key:t,data:a})}},ke=async e=>{var n,c,r,p,f;const t=e==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";I.setButtonTriggerType(t),await Ie(C.value,t);let l;(n=k.value)!=null&&n.subMenus&&((c=k.value)==null?void 0:c.subMenus.length)>0&&(l=(r=U.value)==null?void 0:r.map(s=>({value:s})),l.unshift({value:(p=C.value)==null?void 0:p.title}));let u;v.type==="create"?u={...k.value,path:(f=h.value)==null?void 0:f.path}:v.type==="update"&&(u=x.value),await I.setConfigMenu(u),m.setSelectTitle(l),A.setIsEdit("edit")},_=async e=>{var l,u,n,c,r,p;const t=await i.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:q.value+"/"+(e==null?void 0:e.path),tableId:""}});((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result&&($.value=((c=(n=t.data)==null?void 0:n.result)==null?void 0:c.length)>0?(p=(r=t.data)==null?void 0:r.result)==null?void 0:p.map(f=>{var s;return{id:f==null?void 0:f.id,...(s=f==null?void 0:f.value)==null?void 0:s.tableData}}):[]),j.value=!1},K=async(e,t,l="contentConfig")=>{var u,n,c,r,p,f;try{let s,b;t==="create"?(s={key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:q.value+"/"+((u=h.value)==null?void 0:u.path),type:"structure",rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,structureBelong:l,parentTable:"",version:1},value:{pageData:e}},b=i.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},b=i.updateInsofDataApi):t==="delete"&&(s={id:e},b=i.deleteInsofDataApi);const a=await b(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw i.ElMessage.error("保存响应失败"),new Error("保存响应失败");const d=t==="create"?(p=a==null?void 0:a.data)==null?void 0:p.result:e==null?void 0:e.id;return{status:((f=a==null?void 0:a.data)==null?void 0:f.code)===200,data:{id:d,key:l}}}catch{i.ElMessage.error("保存响应失败")}},Y=(e,t)=>{var f,s,b;const l=(f=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:f.map(a=>a==null?void 0:a.id),u=t.filter(a=>!(l!=null&&l.includes(a))),n=l==null?void 0:l.filter(a=>!t.includes(a));let c=null,r=null,p=null;return c=[...u,...n].filter(a=>a),r=(s=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:s.filter(a=>!(a!=null&&a.id)),p=(b=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:b.filter(a=>a==null?void 0:a.id).filter(a=>Object.keys(a).length>1),{deleteIds:c,createComps:r,updateComps:p}},Z=(e,t)=>{var u,n,c,r,p,f;let l=[];return((u=t==null?void 0:t.deleteIds)==null?void 0:u.length)>0&&((n=t==null?void 0:t.deleteIds)==null||n.forEach(s=>{l.push(K(s,"delete",e))})),((c=t==null?void 0:t.createComps)==null?void 0:c.length)>0&&((r=t==null?void 0:t.createComps)==null||r.forEach(s=>{l.push(K(s,"create",e))})),((p=t==null?void 0:t.updateComps)==null?void 0:p.length)>0&&((f=t==null?void 0:t.updateComps)==null||f.forEach(s=>{s!=null&&s.id&&l.push(K(s,"update",e))})),l},Te=e=>{const t=new Map;return e.forEach(l=>{t.set(l.id,l)}),Array.from(t.values())},Me=async(e,t)=>{var l,u,n,c,r,p,f;try{const s=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="contentConfig"),b=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="dialogConfig");await g.nextTick();const a=(n=(u=(l=E.value)==null?void 0:l.filter(o=>(o==null?void 0:o.key)==="dialogConfig"))==null?void 0:u.flatMap(o=>o==null?void 0:o.data))==null?void 0:n.map(o=>o==null?void 0:o.id);let d=(p=(r=(c=E.value)==null?void 0:c.filter(o=>(o==null?void 0:o.key)==="contentConfig"))==null?void 0:r.flatMap(o=>o==null?void 0:o.data))==null?void 0:p.map(o=>o==null?void 0:o.id);d=[...d,...(f=ae.value)==null?void 0:f.map(o=>o==null?void 0:o.id)];const T=Y(b,a),M=Y(s,d),w=Z("dialogConfig",T),N=Z("contentConfig",M),P=[...w,...N];await Promise.all(P).then(o=>{var z,G,L,V,Q,W,X;if(!(o==null?void 0:o.every(y=>y.status)))return;let S=(z=o==null?void 0:o.flatMap(y=>y==null?void 0:y.data))==null?void 0:z.filter(y=>(y==null?void 0:y.id)!==null&&(y==null?void 0:y.id)!==void 0);if(((G=T==null?void 0:T.updateComps)==null?void 0:G.length)===0&&v.type==="update"){const y=(V=(L=C.value)==null?void 0:L.structureIds)==null?void 0:V.filter(D=>(D==null?void 0:D.key)==="dialogConfig");S=[...S,...y]}if(((Q=M==null?void 0:M.updateComps)==null?void 0:Q.length)===0&&v.type==="update"){const y=(X=(W=C.value)==null?void 0:W.structureIds)==null?void 0:X.filter(D=>(D==null?void 0:D.key)==="contentConfig");S=[...S,...y]}const ce=Te(S);re({...t,isNotInitial:!0,structureIds:ce},v.type)}).catch(o=>{i.ElMessage.error(o)})}catch(s){throw i.ElMessage.error(s),new Error(s)}},re=async(e,t)=>{var n,c;let l,u;t==="create"?(l={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:q.value+"/"+((n=h.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=i.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=i.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=i.batchDeleteInsofDataApi),O.handleSubmitAsync(u,l,t).then(r=>{t==="create"&&$.value.push({...e,id:r}),t&&r&&i.ElMessage.success("响应成功"),_(h.value)})},De=async()=>{var l,u,n,c,r;const e=JSON.parse(i.cloneDeep(JSON.stringify(E.value)));await g.nextTick();const t=v.type==="create"?{...x.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...x.value,rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,id:(r=C.value)==null?void 0:r.id};await Me(e,t),k.value={},v.show=!1,await _(h.value)},Se=()=>{v.show=!1},se={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:te.value,name:""}]}]},we=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:Se,buttonValue:ie,changeTrigger:he,changedRow:de,clickNodeTrigger:ve,clickRowButton:be,clickSubmitForm:De,clickTrigger:ke,dialogInfo:v,formatFormData:R,getInitialSubStructure:ne,getTableDataAsync:_,handleItemDataChange:ge,inputForm:k,menuPageData:fe,operatingForm:Ce,pageData:te,renderFormData:J,tableLoading:j,tempMenuPageData:se,treeData:oe},Symbol.toStringTag,{value:"Module"}));exports.State=we;exports.tempMenuPageData=se;
@@ -1,30 +1,30 @@
1
1
  import { resolveComponent as oA, createBlock as lA, openBlock as f, withCtx as C, createElementVNode as u, toDisplayString as CA, defineComponent as ln, ref as o, watch as xA, createElementBlock as Q, Fragment as hA, renderList as VA, createCommentVNode as W, normalizeStyle as Re, createVNode as a, unref as A, resolveDynamicComponent as Le, onMounted as On, computed as RA, provide as Fe, resolveDirective as $n, withDirectives as ne, vShow as je, createTextVNode as te, renderSlot as ke, normalizeClass as He, onUnmounted as ut, createSlots as st } from "vue";
2
- import { m as yn, a as jn, b as Hn } from "./index-CN3gvKaE.js";
3
- import "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-e9qqbsy-.js";
2
+ import { m as yn, a as jn, b as Hn } from "./index-CxWrTyvu.js";
3
+ import "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-DxIhhKdi.js";
4
4
  import { _ as Ie } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- import { _ as gt, a as rt, b as dt, e as Pt, s as Ct } from "./index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CzOb_sOB.js";
5
+ import { _ as gt, a as rt, b as dt, e as Pt, s as Ct } from "./index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CK6SdpoM.js";
6
6
  import { p as QA, s as BA, d as ot, c as fn, u as wn, b as Ee, g as ue, e as At, E as oe, f as Gn, h as Et } from "./index-DIUrwul5.js";
7
7
  import { a as vn, u as an } from "./index-AIq5wzuR.js";
8
8
  import { S as bA } from "./index-BHtNKL1L.js";
9
- import { a as he, s as se, b as It, c as it, r as wA, o as Je, d as Se, e as et, f as En, h as nt, i as In, j as tt, k as Bt, t as zt, l as Ge, m as Pn, n as Cn, p as Ve, q as sn, u as qe, v as _e, w as $e, x as An, y as en, z as gn, D as Qt, A as Xt, B as Ot, C as Fn, E as Vn, F as FA, G as yt, H as jt, I as qn } from "./index-C7c3lUv8.js";
10
- import { a as Ht } from "./array-BZAN3toV.js";
11
- import { u as dn, a as bn, d as nn, g as we, b as ft, c as tn, o as lt, e as wt, l as bt, f as kt, h as vt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BV1Dk3xg.js";
12
- import "./index.vue_vue_type_style_index_1_lang-D0p6yvbH.js";
9
+ import { a as he, s as se, b as It, c as it, r as wA, o as Je, d as Se, e as et, f as En, h as nt, i as In, j as tt, k as Bt, t as zt, l as Ge, m as Pn, n as Cn, p as Ve, q as sn, u as qe, v as _e, w as $e, x as An, y as en, z as gn, D as Qt, A as Xt, B as Ot, C as Fn, E as Vn, F as FA, G as yt, H as jt, I as qn } from "./index-8GKfPIWL.js";
10
+ import { a as Ht } from "./array-fj93XUQy.js";
11
+ import { u as dn, a as bn, d as nn, g as we, b as ft, c as tn, o as lt, e as wt, l as bt, f as kt, h as vt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BZDAM7UU.js";
12
+ import "./index.vue_vue_type_style_index_1_lang-Dsu6zZjp.js";
13
13
  import "./index-_lg-jrRI.js";
14
14
  import { useRouter as xt } from "vue-router";
15
- import pt from "./index-rI1xcF_8.js";
16
- import { C as mt } from "./index-CCSt-THq.js";
17
- import Jt from "./threeModel-CIsVZQR7.js";
18
- import { _ as St, a as Bn } from "./index-zr-S3EjS.js";
15
+ import pt from "./index-CSHoEB6w.js";
16
+ import { C as mt } from "./index-T1w28E7x.js";
17
+ import Jt from "./threeModel-C-4qS44N.js";
18
+ import { _ as St, a as Bn } from "./index-CiY3qQGB.js";
19
19
  import { _ as be } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
20
- import { s as rn } from "./index-BJaiGTMz.js";
21
- import { T as zn, u as Lt, a as ht } from "./threeViewerHost-Bvtp3ksm.js";
22
- import { s as Qn } from "./index-DSOz0K3d.js";
23
- import { u as at } from "./index-BS-v2ugu.js";
20
+ import { s as rn } from "./index-yYlZ6saJ.js";
21
+ import { T as zn, u as Lt, a as ht } from "./threeViewerHost-CScPmwpQ.js";
22
+ import { s as Qn } from "./index-Lkx2D7iY.js";
23
+ import { u as at } from "./index-zvEJ55jE.js";
24
24
  import { T as _n } from "./svgIcon-D-_fXUBL.js";
25
25
  import { t as Rt, c as Kt, b as Dt } from "./index-CAPx0_D4.js";
26
26
  import { v as Nt } from "./index-gvHJ-SKY.js";
27
- import { f as Wt, a as Ut } from "./animationData-QNiUx7pN.js";
27
+ import { f as Wt, a as Ut } from "./animationData-DPvrpOI5.js";
28
28
  const Mt = { class: "menu-title" };
29
29
  function Zt(M, yA, g, vA, AA, cA) {
30
30
  const z = oA("ssMenu");
@@ -1 +1 @@
1
- "use strict";const l=require("vue");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DwdgpqEP.cjs");const r=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={class:"dialog-title"},g={__name:"index",props:{title:{type:String,default:""},dialogWidth:{type:[Number,String],default:600},visible:{type:Boolean,default:!1},fullScreen:{type:Boolean,default:!1},dialogHeight:{type:Number,default:600},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},modalClass:{type:String,default:""},alignCenter:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0}},emits:["beforeDestroy"],setup(t,{emit:s}){const e=t,d=s,o=l.ref(!1),i=()=>{d("beforeDestroy")};return l.watch(()=>e==null?void 0:e.visible,()=>{o.value=e==null?void 0:e.visible},{deep:!0,immediate:!0}),(a,n)=>{const u=l.resolveComponent("el-dialog");return l.openBlock(),l.createBlock(u,{modelValue:o.value,"onUpdate:modelValue":n[0]||(n[0]=c=>o.value=c),width:e==null?void 0:e.dialogWidth,"before-close":i,draggable:"",style:l.normalizeStyle({height:e==null?void 0:e.dialogHeight}),fullscreen:e==null?void 0:e.fullScreen,"destroy-on-close":!0,"show-close":e==null?void 0:e.showClose,"close-on-click-modal":e==null?void 0:e.closeOnClickModal,"modal-class":t.modalClass,"close-on-press-escape":e==null?void 0:e.closeOnPressEscape,"align-center":e==null?void 0:e.alignCenter,"append-to-body":t.appendToBody},{default:l.withCtx(()=>[l.renderSlot(a.$slots,"default",{},void 0,!0)]),header:l.withCtx(()=>[l.createElementVNode("div",f,l.toDisplayString(e==null?void 0:e.title),1),l.renderSlot(a.$slots,"header",{},void 0,!0)]),footer:l.withCtx(()=>[l.renderSlot(a.$slots,"footer",{},void 0,!0)]),_:3},8,["modelValue","width","style","fullscreen","show-close","close-on-click-modal","modal-class","close-on-press-escape","align-center","append-to-body"])}}},y=r._export_sfc(g,[["__scopeId","data-v-5e87a97b"]]);exports.ssDialog=y;
1
+ "use strict";const l=require("vue");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DLwFjtzq.cjs");const r=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={class:"dialog-title"},g={__name:"index",props:{title:{type:String,default:""},dialogWidth:{type:[Number,String],default:600},visible:{type:Boolean,default:!1},fullScreen:{type:Boolean,default:!1},dialogHeight:{type:Number,default:600},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},modalClass:{type:String,default:""},alignCenter:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0}},emits:["beforeDestroy"],setup(t,{emit:s}){const e=t,d=s,o=l.ref(!1),i=()=>{d("beforeDestroy")};return l.watch(()=>e==null?void 0:e.visible,()=>{o.value=e==null?void 0:e.visible},{deep:!0,immediate:!0}),(a,n)=>{const u=l.resolveComponent("el-dialog");return l.openBlock(),l.createBlock(u,{modelValue:o.value,"onUpdate:modelValue":n[0]||(n[0]=c=>o.value=c),width:e==null?void 0:e.dialogWidth,"before-close":i,draggable:"",style:l.normalizeStyle({height:e==null?void 0:e.dialogHeight}),fullscreen:e==null?void 0:e.fullScreen,"destroy-on-close":!0,"show-close":e==null?void 0:e.showClose,"close-on-click-modal":e==null?void 0:e.closeOnClickModal,"modal-class":t.modalClass,"close-on-press-escape":e==null?void 0:e.closeOnPressEscape,"align-center":e==null?void 0:e.alignCenter,"append-to-body":t.appendToBody},{default:l.withCtx(()=>[l.renderSlot(a.$slots,"default",{},void 0,!0)]),header:l.withCtx(()=>[l.createElementVNode("div",f,l.toDisplayString(e==null?void 0:e.title),1),l.renderSlot(a.$slots,"header",{},void 0,!0)]),footer:l.withCtx(()=>[l.renderSlot(a.$slots,"footer",{},void 0,!0)]),_:3},8,["modelValue","width","style","fullscreen","show-close","close-on-click-modal","modal-class","close-on-press-escape","align-center","append-to-body"])}}},y=r._export_sfc(g,[["__scopeId","data-v-5e87a97b"]]);exports.ssDialog=y;