ss-component-new 1.1.86 → 1.1.88

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 (39) hide show
  1. package/dist/{array-D2zrIzej.js → array-CuefuJR6.js} +2 -2
  2. package/dist/{array-D8U2pGTC.cjs → array-DjZCFuX6.cjs} +1 -1
  3. package/dist/{cloneDeep-8zu2YtRV.cjs → cloneDeep-BViCcHX9.cjs} +1 -1
  4. package/dist/{cloneDeep-DuEirD61.js → cloneDeep-CZ1WcsqU.js} +1 -1
  5. package/dist/{index-BviuenkT.js → index-2vs5vHzf.js} +3 -3
  6. package/dist/index-B0NlRxsH.cjs +1 -0
  7. package/dist/{index-Bk6z8NoT.cjs → index-B29cRZmo.cjs} +1 -1
  8. package/dist/{index-DADq4uib.cjs → index-B3SqB7yl.cjs} +1 -1
  9. package/dist/{index-DORpNeEv.js → index-BD3O_DQN.js} +1 -1
  10. package/dist/{index-DBKxwOZZ.js → index-BMLnfdpX.js} +4 -5
  11. package/dist/index-BwEs_Gih.js +345 -0
  12. package/dist/{index-CPAniSJJ.cjs → index-CNE4QdxQ.cjs} +1 -1
  13. package/dist/{index-P-XWFKEv.cjs → index-CRQJ_FnB.cjs} +1 -1
  14. package/dist/{index-BK00mV7O.js → index-Cq_yCzqv.js} +3 -3
  15. package/dist/{index-D0BrZauT.js → index-DGU4M4GV.js} +3 -3
  16. package/dist/{index-CdiwcgWn.cjs → index-DLZJaKRC.cjs} +1 -1
  17. package/dist/{index-By9M6a6K.cjs → index-DiOtu98z.cjs} +1 -1
  18. package/dist/{index-DzijCTQM.js → index-Dns47tcD.js} +2 -2
  19. package/dist/index-DzJuDGl8.cjs +1 -0
  20. package/dist/{index-CefBKPRE.cjs → index-IJ9PKpzX.cjs} +1 -1
  21. package/dist/{index-3JVabNmb.js → index-Oz6bAv7L.js} +1 -1
  22. package/dist/{index-Dk3AafH9.js → index-cAlHRAni.js} +1 -1
  23. package/dist/index.vue_vue_type_style_index_0_scoped_0d13cfeb_lang-D2nrgoto.cjs +7 -0
  24. package/dist/index.vue_vue_type_style_index_0_scoped_0d13cfeb_lang-DnHED9x9.js +618 -0
  25. package/dist/{index.vue_vue_type_style_index_0_scoped_dc84a8f7_lang-CoTrTiyZ.cjs → index.vue_vue_type_style_index_0_scoped_dc84a8f7_lang-B8p4YtkN.cjs} +1 -1
  26. package/dist/{index.vue_vue_type_style_index_0_scoped_dc84a8f7_lang-sXEqRck_.js → index.vue_vue_type_style_index_0_scoped_dc84a8f7_lang-DrUd-gvH.js} +3 -3
  27. package/dist/{main-BrFLjXjC.cjs → main-CijR7xkz.cjs} +1 -1
  28. package/dist/{main-BJ49BQ83.js → main-DvtmZKNG.js} +3 -3
  29. package/dist/ss-component.cjs +1 -1
  30. package/dist/ss-component.css +1 -1
  31. package/dist/ss-component.js +6 -6
  32. package/dist/ss-component2.cjs +1 -1
  33. package/dist/ss-component2.js +1 -1
  34. package/package.json +1 -1
  35. package/dist/index-DK-C6XIG.js +0 -351
  36. package/dist/index-bTbhSpJ8.cjs +0 -1
  37. package/dist/index-sjmLPf8w.cjs +0 -1
  38. package/dist/index.vue_vue_type_style_index_0_scoped_876d48c6_lang-BufoMCSS.cjs +0 -4
  39. package/dist/index.vue_vue_type_style_index_0_scoped_876d48c6_lang-CSfAQ28_.js +0 -254
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),T=require("./index-Bk6z8NoT.cjs"),N=require("./array-D8U2pGTC.cjs"),Q=require("./modelComp-DAsVXKA0.cjs"),I=require("./menu-B_Az9K_F.cjs"),U=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),h=require("./cloneDeep-8zu2YtRV.cjs"),V=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"}],s=[{key:"FormDirect",value:"formFlex"},{key:"Form",value:"formContent"},{key:"FormButton",value:"formButton"},{key:"TableColumns",value:"header"},{key:"TableButton",value:"extraButton"},{key:"LineButton",value:"rowButton"},{key:"Table",value:"tableContents"},{key:"TableIndex",value:"tableIndex"}],v={key:0,class:"show-content"},ee={class:"item-view-group"},te={__name:"index",props:{content:String,jsonContents:Array},emits:["change"],setup(E,{emit:D}){const t=E,S=D,g=Q.useModelComp(N.pinia),{itemData:p}=I.storeToRefs(g),_=e.ref([]),C=e.ref([]),F=c=>{S("change",{wholeValue:_.value,editValue:c})},x=c=>{const k=h.cloneDeep(_.value),b=k==null?void 0:k.map((i,B)=>(B===(c==null?void 0:c.index)&&(i.compData=c==null?void 0:c.contents),i));_.value=b};e.watch(()=>p.value,()=>{var c;!p.value||((c=p.value)==null?void 0:c.length)===0||(C.value=p.value,_.value=p.value)},{deep:!0,immediate:!0}),e.watch(()=>[t==null?void 0:t.content,t==null?void 0:t.jsonContents],()=>{var k;if(((k=t==null?void 0:t.jsonContents)==null?void 0:k.length)>0){g.setOriginalData(t==null?void 0:t.jsonContents),g.setItemData(t==null?void 0:t.jsonContents);return}if(!(t!=null&&t.content)||(t==null?void 0:t.content)==="")return;const c=N.expandStringToJson(t==null?void 0:t.content);g.setOriginalData(c),g.setItemData(c)},{deep:!0,immediate:!0});const w=c=>N.getComponent(c);return(c,k)=>{var b;return((b=C.value)==null?void 0:b.length)>0?(e.openBlock(),e.createElementBlock("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(i,B)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:B},[e.createElementVNode("div",ee,e.toDisplayString(i.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w(i.comp)),{itemData:i==null?void 0:i.compData,childItemData:i==null?void 0:i.itemChildData,key:B,onChange:F,index:B,onContentChange:x},null,40,["itemData","childItemData","index"]))]))),128))])):e.createCommentVNode("",!0)}}},ne=U._export_sfc(te,[["__scopeId","data-v-869e6e20"]]),oe={class:"add-model-content"},ae={key:0,class:"model-import-data"},le={class:"import-button"},re={key:0},ce={key:1,class:"model-operate"},se={class:"model-select"},ue={class:"model-fill"},ie={key:2,class:"model-view ssComponent"},de={__name:"main",props:{mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0}},emits:["change"],setup(E,{emit:D}){const t=E,S=D,g=e.ref(""),p=e.ref([]),_=e.ref(0),C=Q.useModelComp(N.pinia);I.useMenuState(N.pinia);const{itemData:F,originalData:x}=I.storeToRefs(C),w=e.ref(null),c=e.ref(0),k=e.ref(""),b=()=>{_.value=window.innerWidth},i=async l=>{var u;const a=(u=h.cloneDeep(l==null?void 0:l.wholeValue))==null?void 0:u.map(o=>{var y;return(o==null?void 0:o.comp)==="Form"&&(o.compData=(y=o.compData)==null?void 0:y.map(f=>((f==null?void 0:f.key)==="formContent"&&(f.contents=N.arrayToNumberArray(f==null?void 0:f.contents)),f))),o});S("change",{originalContents:x.value,currentContents:l==null?void 0:l.wholeValue,editContent:l==null?void 0:l.editValue,stringContent:B(h.cloneDeep(l==null?void 0:l.wholeValue)),arrayToContents:a})},B=l=>{var u;let a=[];return(u=h.cloneDeep(l))==null||u.forEach(o=>{var y,f;V!=null&&V.find(n=>(n==null?void 0:n.value)===(o==null?void 0:o.comp))&&a.push(((y=V==null?void 0:V.find(n=>(n==null?void 0:n.value)===(o==null?void 0:o.comp)))==null?void 0:y.key)+"="+o.name+"/r/n"),(f=o==null?void 0:o.compData)==null||f.forEach(n=>{var $,J,A,q,M,R,L,z,W,H,P,G;if(s!=null&&s.find(d=>(d==null?void 0:d.value)===(n==null?void 0:n.key)))if(!(($=n==null?void 0:n.contents)!=null&&$.length))a.push(((J=s==null?void 0:s.find(d=>(d==null?void 0:d.value)===(n==null?void 0:n.key)))==null?void 0:J.key)+"="+(n.contents===!0?'""':"Vertical")+"/r/n");else{let d=(A=n==null?void 0:n.contents)==null?void 0:A[0];if(!d)return;if(Object.keys(d).includes("label")&&Object.keys(d).includes("key")&&Object.keys(d).includes("width"))if(((M=(q=n.contents)==null?void 0:q.filter(m=>m.width!==1))==null?void 0:M.length)===0){const m=(R=h.cloneDeep(n==null?void 0:n.contents))==null?void 0:R.map(r=>({[r.label]:r.value}));a.push(((L=s==null?void 0:s.find(r=>(r==null?void 0:r.value)===(n==null?void 0:n.key)))==null?void 0:L.key)+"="+JSON.stringify(m)+"/r/n")}else{let m=[];(z=h.cloneDeep(n==null?void 0:n.contents))==null||z.reduce((r,O)=>{var K;return r[O.label]=O.key,((K=Object.keys(h.cloneDeep(r)))==null?void 0:K.length)>=O.width&&(m.push(h.cloneDeep(r)),r={}),r},{}),a.push(((W=s==null?void 0:s.find(r=>(r==null?void 0:r.value)===(n==null?void 0:n.key)))==null?void 0:W.key)+"="+JSON.stringify(m)+"/r/n")}else if(Object.keys(d).includes("label")){const m=(H=h.cloneDeep(n==null?void 0:n.contents))==null?void 0:H.map(r=>r.label);a.push(((P=s==null?void 0:s.find(r=>(r==null?void 0:r.value)===(n==null?void 0:n.key)))==null?void 0:P.key)+"="+JSON.stringify(m)+"/r/n")}else a.push(((G=s==null?void 0:s.find(m=>(m==null?void 0:m.value)===(n==null?void 0:n.key)))==null?void 0:G.key)+"="+JSON.stringify(n==null?void 0:n.contents)+"/r/n")}})}),JSON.stringify(a)},j=e.ref([]),X=()=>{w.value.click()},Y=l=>{const a=l.target.files[0];if(!a)return;const u=new FileReader;u.onload=o=>{try{g.value=o.target.result,j.value=Z(o.target.result),c.value++}catch(y){console.error("解析失败:",y)}},u.onerror=o=>{console.error("文件读取错误:",o)},u.readAsText(a)};e.onMounted(()=>{window.addEventListener("resize",b)}),e.watch(()=>[t==null?void 0:t.content,t==null?void 0:t.jsonContents],()=>{g.value=t==null?void 0:t.content,p.value=t==null?void 0:t.jsonContents},{deep:!0,immediate:!0}),e.watch(()=>c.value,()=>{var l;((l=j.value)==null?void 0:l.length)!==0&&(C.setOriginalData(j.value),C.setItemData(j.value))},{deep:!0,immediate:!0});const Z=l=>{let a=l.replace(/,/g,",").replace(/;/g,";").replace(/:/g,":");a=a.replace(/(\w+)\s*:/g,"$1:"),a=a.replace(/\r\n/g,"").replace(/\n/g,"").replace(/\t/g,"").replace(/\s+/g," ").trim(),a=a.replace(/,\s*([}\]])/g,"$1"),a=a.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,}])/g,": $2$4");try{return JSON.parse(a)}catch(u){try{const y=new Function(`return ${a}`)();if(Array.isArray(y)||typeof y=="object")return y;throw new Error(`解析结果不是有效的数组或对象: ${u}`)}catch(o){throw new Error(`无法解析JSON: ${o.message}`)}}};return(l,a)=>{var u;return e.openBlock(),e.createElementBlock("div",oe,[((u=t==null?void 0:t.jsonContents)==null?void 0:u.length)===0?(e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("div",le,[e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:w,accept:".txt",onChange:Y,style:{display:"none"}},null,544),e.createElementVNode("button",{onClick:X,class:"import-button-content"},"导入文件"),k.value?(e.openBlock(),e.createElementBlock("span",re,e.toDisplayString(k.value),1)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),(t==null?void 0:t.mode)==="edit"?(e.openBlock(),e.createElementBlock("div",ce,[e.createElementVNode("div",se,[e.createVNode(T.modelSelect)]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:_.value},[e.createVNode(T.modelShow)])),e.createElementVNode("div",ue,[e.createVNode(T.modelFill)])])):e.createCommentVNode("",!0),(t==null?void 0:t.mode)==="view"?(e.openBlock(),e.createElementBlock("div",ie,[(e.openBlock(),e.createBlock(ne,{content:g.value,onChange:i,jsonContents:p.value,key:_.value},null,8,["content","jsonContents"]))])):e.createCommentVNode("",!0)])}}},me=U._export_sfc(de,[["__scopeId","data-v-b25bde75"]]);exports.default=me;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),T=require("./index-B29cRZmo.cjs"),N=require("./array-DjZCFuX6.cjs"),Q=require("./modelComp-DAsVXKA0.cjs"),I=require("./menu-B_Az9K_F.cjs"),U=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),h=require("./cloneDeep-BViCcHX9.cjs"),V=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"}],s=[{key:"FormDirect",value:"formFlex"},{key:"Form",value:"formContent"},{key:"FormButton",value:"formButton"},{key:"TableColumns",value:"header"},{key:"TableButton",value:"extraButton"},{key:"LineButton",value:"rowButton"},{key:"Table",value:"tableContents"},{key:"TableIndex",value:"tableIndex"}],v={key:0,class:"show-content"},ee={class:"item-view-group"},te={__name:"index",props:{content:String,jsonContents:Array},emits:["change"],setup(E,{emit:D}){const t=E,S=D,g=Q.useModelComp(N.pinia),{itemData:p}=I.storeToRefs(g),_=e.ref([]),C=e.ref([]),F=c=>{S("change",{wholeValue:_.value,editValue:c})},x=c=>{const k=h.cloneDeep(_.value),b=k==null?void 0:k.map((i,B)=>(B===(c==null?void 0:c.index)&&(i.compData=c==null?void 0:c.contents),i));_.value=b};e.watch(()=>p.value,()=>{var c;!p.value||((c=p.value)==null?void 0:c.length)===0||(C.value=p.value,_.value=p.value)},{deep:!0,immediate:!0}),e.watch(()=>[t==null?void 0:t.content,t==null?void 0:t.jsonContents],()=>{var k;if(((k=t==null?void 0:t.jsonContents)==null?void 0:k.length)>0){g.setOriginalData(t==null?void 0:t.jsonContents),g.setItemData(t==null?void 0:t.jsonContents);return}if(!(t!=null&&t.content)||(t==null?void 0:t.content)==="")return;const c=N.expandStringToJson(t==null?void 0:t.content);g.setOriginalData(c),g.setItemData(c)},{deep:!0,immediate:!0});const w=c=>N.getComponent(c);return(c,k)=>{var b;return((b=C.value)==null?void 0:b.length)>0?(e.openBlock(),e.createElementBlock("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(i,B)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:B},[e.createElementVNode("div",ee,e.toDisplayString(i.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w(i.comp)),{itemData:i==null?void 0:i.compData,childItemData:i==null?void 0:i.itemChildData,key:B,onChange:F,index:B,onContentChange:x},null,40,["itemData","childItemData","index"]))]))),128))])):e.createCommentVNode("",!0)}}},ne=U._export_sfc(te,[["__scopeId","data-v-869e6e20"]]),oe={class:"add-model-content"},ae={key:0,class:"model-import-data"},le={class:"import-button"},re={key:0},ce={key:1,class:"model-operate"},se={class:"model-select"},ue={class:"model-fill"},ie={key:2,class:"model-view ssComponent"},de={__name:"main",props:{mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0}},emits:["change"],setup(E,{emit:D}){const t=E,S=D,g=e.ref(""),p=e.ref([]),_=e.ref(0),C=Q.useModelComp(N.pinia);I.useMenuState(N.pinia);const{itemData:F,originalData:x}=I.storeToRefs(C),w=e.ref(null),c=e.ref(0),k=e.ref(""),b=()=>{_.value=window.innerWidth},i=async l=>{var u;const a=(u=h.cloneDeep(l==null?void 0:l.wholeValue))==null?void 0:u.map(o=>{var y;return(o==null?void 0:o.comp)==="Form"&&(o.compData=(y=o.compData)==null?void 0:y.map(f=>((f==null?void 0:f.key)==="formContent"&&(f.contents=N.arrayToNumberArray(f==null?void 0:f.contents)),f))),o});S("change",{originalContents:x.value,currentContents:l==null?void 0:l.wholeValue,editContent:l==null?void 0:l.editValue,stringContent:B(h.cloneDeep(l==null?void 0:l.wholeValue)),arrayToContents:a})},B=l=>{var u;let a=[];return(u=h.cloneDeep(l))==null||u.forEach(o=>{var y,f;V!=null&&V.find(n=>(n==null?void 0:n.value)===(o==null?void 0:o.comp))&&a.push(((y=V==null?void 0:V.find(n=>(n==null?void 0:n.value)===(o==null?void 0:o.comp)))==null?void 0:y.key)+"="+o.name+"/r/n"),(f=o==null?void 0:o.compData)==null||f.forEach(n=>{var $,J,A,q,M,R,L,z,W,H,P,G;if(s!=null&&s.find(d=>(d==null?void 0:d.value)===(n==null?void 0:n.key)))if(!(($=n==null?void 0:n.contents)!=null&&$.length))a.push(((J=s==null?void 0:s.find(d=>(d==null?void 0:d.value)===(n==null?void 0:n.key)))==null?void 0:J.key)+"="+(n.contents===!0?'""':"Vertical")+"/r/n");else{let d=(A=n==null?void 0:n.contents)==null?void 0:A[0];if(!d)return;if(Object.keys(d).includes("label")&&Object.keys(d).includes("key")&&Object.keys(d).includes("width"))if(((M=(q=n.contents)==null?void 0:q.filter(m=>m.width!==1))==null?void 0:M.length)===0){const m=(R=h.cloneDeep(n==null?void 0:n.contents))==null?void 0:R.map(r=>({[r.label]:r.value}));a.push(((L=s==null?void 0:s.find(r=>(r==null?void 0:r.value)===(n==null?void 0:n.key)))==null?void 0:L.key)+"="+JSON.stringify(m)+"/r/n")}else{let m=[];(z=h.cloneDeep(n==null?void 0:n.contents))==null||z.reduce((r,O)=>{var K;return r[O.label]=O.key,((K=Object.keys(h.cloneDeep(r)))==null?void 0:K.length)>=O.width&&(m.push(h.cloneDeep(r)),r={}),r},{}),a.push(((W=s==null?void 0:s.find(r=>(r==null?void 0:r.value)===(n==null?void 0:n.key)))==null?void 0:W.key)+"="+JSON.stringify(m)+"/r/n")}else if(Object.keys(d).includes("label")){const m=(H=h.cloneDeep(n==null?void 0:n.contents))==null?void 0:H.map(r=>r.label);a.push(((P=s==null?void 0:s.find(r=>(r==null?void 0:r.value)===(n==null?void 0:n.key)))==null?void 0:P.key)+"="+JSON.stringify(m)+"/r/n")}else a.push(((G=s==null?void 0:s.find(m=>(m==null?void 0:m.value)===(n==null?void 0:n.key)))==null?void 0:G.key)+"="+JSON.stringify(n==null?void 0:n.contents)+"/r/n")}})}),JSON.stringify(a)},j=e.ref([]),X=()=>{w.value.click()},Y=l=>{const a=l.target.files[0];if(!a)return;const u=new FileReader;u.onload=o=>{try{g.value=o.target.result,j.value=Z(o.target.result),c.value++}catch(y){console.error("解析失败:",y)}},u.onerror=o=>{console.error("文件读取错误:",o)},u.readAsText(a)};e.onMounted(()=>{window.addEventListener("resize",b)}),e.watch(()=>[t==null?void 0:t.content,t==null?void 0:t.jsonContents],()=>{g.value=t==null?void 0:t.content,p.value=t==null?void 0:t.jsonContents},{deep:!0,immediate:!0}),e.watch(()=>c.value,()=>{var l;((l=j.value)==null?void 0:l.length)!==0&&(C.setOriginalData(j.value),C.setItemData(j.value))},{deep:!0,immediate:!0});const Z=l=>{let a=l.replace(/,/g,",").replace(/;/g,";").replace(/:/g,":");a=a.replace(/(\w+)\s*:/g,"$1:"),a=a.replace(/\r\n/g,"").replace(/\n/g,"").replace(/\t/g,"").replace(/\s+/g," ").trim(),a=a.replace(/,\s*([}\]])/g,"$1"),a=a.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,}])/g,": $2$4");try{return JSON.parse(a)}catch(u){try{const y=new Function(`return ${a}`)();if(Array.isArray(y)||typeof y=="object")return y;throw new Error(`解析结果不是有效的数组或对象: ${u}`)}catch(o){throw new Error(`无法解析JSON: ${o.message}`)}}};return(l,a)=>{var u;return e.openBlock(),e.createElementBlock("div",oe,[((u=t==null?void 0:t.jsonContents)==null?void 0:u.length)===0?(e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("div",le,[e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:w,accept:".txt",onChange:Y,style:{display:"none"}},null,544),e.createElementVNode("button",{onClick:X,class:"import-button-content"},"导入文件"),k.value?(e.openBlock(),e.createElementBlock("span",re,e.toDisplayString(k.value),1)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),(t==null?void 0:t.mode)==="edit"?(e.openBlock(),e.createElementBlock("div",ce,[e.createElementVNode("div",se,[e.createVNode(T.modelSelect)]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:_.value},[e.createVNode(T.modelShow)])),e.createElementVNode("div",ue,[e.createVNode(T.modelFill)])])):e.createCommentVNode("",!0),(t==null?void 0:t.mode)==="view"?(e.openBlock(),e.createElementBlock("div",ie,[(e.openBlock(),e.createBlock(ne,{content:g.value,onChange:i,jsonContents:p.value,key:_.value},null,8,["content","jsonContents"]))])):e.createCommentVNode("",!0)])}}},me=U._export_sfc(de,[["__scopeId","data-v-b25bde75"]]);exports.default=me;
@@ -1,10 +1,10 @@
1
1
  import { ref as _, watch as V, createElementBlock as C, createCommentVNode as I, openBlock as f, Fragment as le, renderList as se, createElementVNode as O, createBlock as Z, toDisplayString as v, resolveDynamicComponent as ue, onMounted as ce, createVNode as A } from "vue";
2
- import { m as ie, a as me, b as de } from "./index-BviuenkT.js";
3
- import { p as E, e as ye, g as fe, a as ge } from "./array-D2zrIzej.js";
2
+ import { m as ie, a as me, b as de } from "./index-2vs5vHzf.js";
3
+ import { p as E, e as ye, g as fe, a as ge } from "./array-CuefuJR6.js";
4
4
  import { u as ee } from "./modelComp-B3sxj_Kp.js";
5
5
  import { s as te, u as he } from "./menu-BIINB-0Y.js";
6
6
  import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
- import { c as k } from "./cloneDeep-DuEirD61.js";
7
+ import { c as k } from "./cloneDeep-CZ1WcsqU.js";
8
8
  const x = [
9
9
  {
10
10
  key: "FormName",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),o=require("./index-DADq4uib.cjs"),s=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./main-BrFLjXjC.cjs")));s.install=e=>{e.component("ssComponent",s)};const t=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-By9M6a6K.cjs")).then(e=>e.index));t.install=e=>{e.component("ssTab",t)};const r=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-CPAniSJJ.cjs")));r.install=e=>{e.component("ssMenu",r)};const i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-P-XWFKEv.cjs")));i.install=e=>{e.component("ssMenuComponent",i)};const l=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-CefBKPRE.cjs")));l.install=e=>{e.component("ssCanvas",l)};const u=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BCHKDSAB.cjs")));u.install=e=>{e.component("ssFold",u)};const m=[s,t,r,i,l,u],a=e=>{m.forEach(c=>{e.use(c)}),e.use(o.router),e.config.globalProperties.$router=o.router};exports.router=o.router;exports.default=a;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),o=require("./index-B3SqB7yl.cjs"),s=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./main-CijR7xkz.cjs")));s.install=e=>{e.component("ssComponent",s)};const t=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DiOtu98z.cjs")).then(e=>e.index));t.install=e=>{e.component("ssTab",t)};const r=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-CNE4QdxQ.cjs")));r.install=e=>{e.component("ssMenu",r)};const i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-CRQJ_FnB.cjs")));i.install=e=>{e.component("ssMenuComponent",i)};const l=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-IJ9PKpzX.cjs")));l.install=e=>{e.component("ssCanvas",l)};const u=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BCHKDSAB.cjs")));u.install=e=>{e.component("ssFold",u)};const m=[s,t,r,i,l,u],a=e=>{m.forEach(c=>{e.use(c)}),e.use(o.router),e.config.globalProperties.$router=o.router};exports.router=o.router;exports.default=a;
@@ -1 +1 @@
1
- .header-wrapper[data-v-0498c988]{width:95%;height:100%;margin:0 auto;display:flex;flex-wrap:wrap;align-content:center;padding:20px;box-sizing:border-box}.header-wrapper .header-horizontal[data-v-0498c988]{width:100%;min-height:30px;display:flex;gap:8px;align-items:center}.header-wrapper .header-horizontal .header-logo[data-v-0498c988]{display:inline-block;width:30px;height:30px}.header-wrapper .header-horizontal .header-cTitle[data-v-0498c988]{color:var(--login-sys-title-color);font-size:var(--login-sys-cTitle-fontSize);font-weight:800}.header-wrapper .header-horizontal .header-eTitle[data-v-0498c988]{color:var(--login-sys-title-color);font-size:var(--login-sys-eTitle-fontSize);font-weight:500}.left-wrap[data-v-06d813c8]{width:100%;display:flex;justify-content:right}.left-wrap .left-bg[data-v-06d813c8]{width:70%}@keyframes electric-flow-c5b59515{0%{border-color:transparent}25%{border-left-color:var(--login-sys-title-color)}50%{border-top-color:var(--login-sys-title-color)}75%{border-right-color:var(--login-sys-title-color)}to{border-bottom-color:var(--login-sys-title-color)}}.right-wrap[data-v-c5b59515]{width:100%;height:65%;border:1px solid transparent;animation:electric-flow-c5b59515 2s linear infinite}.right-wrap .right-title[data-v-c5b59515]{width:100%;height:15%;display:flex;align-items:center;justify-content:center;color:var(--login-sys-title-color);font-size:var(--login-sys-loginTitle-fontSize);font-weight:500}.right-wrap .right-content[data-v-c5b59515]{width:100%;height:85%}.right-wrap .right-content[data-v-c5b59515] .right-tabs{width:100%;height:100%}.right-wrap .right-content[data-v-c5b59515] .right-tabs .el-tabs__header{padding:0 30px;height:40px}.right-wrap .right-content[data-v-c5b59515] .right-tabs .el-tabs__content{height:calc(100% - 40px);padding:0 30px;box-sizing:border-box}.right-wrap .right-content[data-v-c5b59515] .right-tabs .el-tabs__content .el-tab-pane{height:100%;display:flex;flex-direction:column}.right-wrap .right-content[data-v-c5b59515] .right-tabs .el-tabs__content .el-tab-pane .tab-content{flex:1}.right-wrap .right-content[data-v-c5b59515] .right-tabs .el-tabs__content .el-tab-pane .tab-button{width:100%;min-height:50px;margin:5% auto;cursor:pointer}.right-wrap .right-content[data-v-c5b59515] .right-tabs .el-tabs__content .el-tab-pane .tab-button .el-button{width:100%;height:100%}.right-wrap .right-content[data-v-c5b59515] .right-tabs .el-tabs__content .el-tab-pane .tab-button.common>.el-button{background:#f4f4f5}.right-wrap .right-content[data-v-c5b59515] .right-tabs .el-tabs__content .el-tab-pane .tab-button.special>.el-button{background:var(--login-sys-title-color);color:#fff}.right-wrap .right-content[data-v-c5b59515] .right-tabs .el-tabs__content .el-tab-pane .tab-tips{width:100%;height:100px;color:#c7c7c9;display:flex;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:wrap}.account-wrap[data-v-53a41975]{width:100%;height:100%;display:flex;align-items:center}.account-wrap .el-form[data-v-53a41975]{width:100%}.account-wrap .el-form .el-form-item[data-v-53a41975]{width:100%;margin-bottom:5%}.account-wrap .el-form .el-form-item .el-form-item__content[data-v-53a41975]{width:100%}.account-wrap .el-form .el-form-item .el-form-item__content .el-input[data-v-53a41975]{width:100%;height:40px}.card-wrap[data-v-23f91251]{width:100%;height:100%;display:flex;flex-wrap:wrap;align-content:space-between;justify-content:space-between;padding-top:8%;box-sizing:border-box}.card-wrap .card-icon[data-v-23f91251]{width:100%;text-align:center}.card-wrap .card-input[data-v-23f91251]{width:100%}.card-wrap .card-input .el-input[data-v-23f91251]{height:40px}.card-wrap .card-icon.card[data-v-23f91251]{padding:0}.login-wrap[data-v-17a13d48]{width:100%;height:100%;display:grid;grid-template-rows:15% auto;gap:16px;background:var(--system-bg)}.login-wrap .login-header[data-v-17a13d48]{width:100%}.login-wrap .login-body[data-v-17a13d48]{width:100%;display:flex;justify-content:center;align-items:center;gap:90px}.login-wrap .login-body .login-body-item[data-v-17a13d48]{height:100%}.login-wrap .login-body .left[data-v-17a13d48]{width:55%;display:flex;justify-content:right;padding:0 50px;box-sizing:border-box}.login-wrap .login-body .right[data-v-17a13d48]{width:32%;padding:0 70px;box-sizing:border-box}.menu-wrap[data-v-2cbe7506]{width:100%;height:100%}.menu-wrap[data-v-2cbe7506] .el-sub-menu .el-sub-menu__title{font-family:SourceHanSansCN,SourceHanSansCN;font-weight:400;font-size:16px;color:#fff;line-height:24px;text-align:left;font-style:normal}.menu-wrap[data-v-2cbe7506] .el-sub-menu .el-sub-menu__title:hover{background:var(--ssComponent-submenu-hover-bg)}.menu-wrap[data-v-2cbe7506] .el-sub-menu.is-opened{background:var(--ssComponent-submenu-open-bg);border-radius:8px}.menu-wrap[data-v-2cbe7506] .el-sub-menu.is-opened .el-menu--inline{background:var(--ssComponent-submenu-open-inline-bg)}.menu-wrap[data-v-2cbe7506] .el-menu-item{font-family:SourceHanSansCN,SourceHanSansCN;font-weight:400;font-size:16px;color:#fff;line-height:24px;text-align:left;font-style:normal}.menu-wrap[data-v-2cbe7506] .el-menu-item:hover{background:var(--ssComponent-menuitem-hover-bg)}.menu-wrap[data-v-2cbe7506] .el-menu-item.is-active{background:var(--ssComponent-menuitem-active-bg)}.tabs-label[data-v-c1c693d0]{display:flex;width:100%;flex-direction:row}.tabs-label .tabs-children[data-v-c1c693d0]{display:flex;flex-direction:row;gap:8px}.tabs-contents[data-v-c1c693d0]{display:flex;flex-direction:column;gap:16px}[data-v-917c453d] .el-textarea__inner{resize:none;height:120px}.dialog-title[data-v-5547662c]{display:flex}.el-dialog__headerbtn{margin-top:8px}.upload[data-v-3e08e20d]{display:flex;gap:8px}.upload .upload-word[data-v-3e08e20d]{display:flex;align-items:center}.upload .upload-icon[data-v-3e08e20d]{display:flex;width:20px;height:20px}.dialog-footer[data-v-3e08e20d]{display:flex;flex-direction:row;justify-content:end}.tip-content[data-v-3e08e20d]{display:flex}[data-v-3e08e20d] .el-upload-list{margin:0}[data-v-3e08e20d] .el-upload-list__item{display:flex}[data-v-3e08e20d] .el-upload-list__item .el-upload-list__item-info{margin-left:0}[data-v-3e08e20d] .el-upload-list__item-name{padding:0}.form-content[data-v-39978581]{width:100%;display:flex;flex-direction:column;gap:12px;background:#fff;border-radius:8px;flex-wrap:wrap}.form-content .form-content-view[data-v-39978581]{width:100%}.form-content .form-content-view .form-data[data-v-39978581]{display:flex;flex-direction:row;gap:12px;width:100%;flex-wrap:wrap}.form-content .form-content-view .form-data .form-item[data-v-39978581]{display:flex;flex-direction:row;gap:8px;width:260px;height:100%;align-items:center}.form-content .form-content-view .form-data .form-item .from-item-label[data-v-39978581]{display:flex;min-width:72px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.form-content .form-content-view .form-data .form-button[data-v-39978581]{display:flex;flex-direction:row;flex-wrap:wrap;gap:12px;align-items:center}.form-content .form-content-view .form-data .form-button .form-button-content[data-v-39978581]{display:flex;cursor:pointer}.form-content .form-content-view .form-data .form-button .form-button-content .form-button-item[data-v-39978581]{background:var(--ssComponent-primary-color);color:#fff;justify-content:center;align-items:center;padding:4px 12px;border-radius:8px;display:flex}.form-content .form-content-view .form-noRegular-data[data-v-39978581]{display:flex;flex-direction:row;gap:12px;width:100%;flex-wrap:wrap}.form-content .form-content-view .form-noRegular-data .form-row-content[data-v-39978581] .el-form-item__label{padding:0;justify-content:start;width:auto}.form-content .form-content-view .form-noRegular-data .form-row-content[data-v-39978581] .el-form-item__content{align-items:start;width:100%}.form-content .form-content-view .form-noRegular-data .form-item[data-v-39978581]{display:flex;flex-direction:row;gap:8px;width:260px;height:100%;align-items:center}.form-content .form-content-view .form-noRegular-data .form-item .from-item-label[data-v-39978581]{text-align:left;width:72px;min-width:72px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.form-content .form-content-view .form-noRegular-data .form-button[data-v-39978581]{display:flex;flex-direction:row;flex-wrap:wrap;gap:12px;align-items:center}.form-content .form-content-view .form-noRegular-data .form-button .form-button-content[data-v-39978581]{display:flex;cursor:pointer}.form-content .form-content-view .form-noRegular-data .form-button .form-button-content .form-button-item[data-v-39978581]{background:var(--ssComponent-primary-color);color:#fff;justify-content:center;align-items:center;padding:4px 12px;border-radius:8px;display:flex}.form-content .form-button[data-v-39978581]{display:flex;flex-direction:row;flex-wrap:wrap;gap:12px}.form-content .form-button .form-button-content[data-v-39978581]{cursor:pointer}.form-content .form-button .form-button-content .form-button-item[data-v-39978581]{background:var(--ssComponent-primary-color);color:#fff;justify-content:center;align-items:center;padding:4px 12px;border-radius:8px;display:flex}[data-v-39978581] .el-form-item__label{padding:0;justify-content:start}[data-v-39978581] .el-form-item__content{align-items:start;width:220px}.extra-button-content[data-v-1d46278f]{display:flex;flex-direction:row;justify-content:space-between}.extra-button-content .extra-header[data-v-1d46278f],.extra-button-content .extra-header .extra-contents[data-v-1d46278f]{display:flex;flex-direction:row;gap:8px}.extra-button-content .extra-header .extra-contents .extra-content[data-v-1d46278f]{padding:4px 12px;border-radius:8px;cursor:pointer}.extra-button-content .extra-button-filter[data-v-1d46278f]{display:flex;gap:8px;flex-direction:row}.extra-button-content .extra-button-filter .button-style[data-v-1d46278f]{width:24px;height:24px;cursor:pointer}[data-v-67bc73bd] .el-table__cell .cell{font-size:14px;font-weight:700;color:#000000d9;font-family:PingFangSC,PingFang SC;min-width:79.2px}[data-v-67bc73bd] .layout-container-view .el-scrollbar__view{width:100%;overflow:auto}[data-v-67bc73bd] .el-table__header-wrapper .el-table__header{height:48px;width:auto!important}[data-v-67bc73bd] .el-table__body .el-table__row{height:48px}[data-v-67bc73bd] .el-table__body{height:100%}.table-content-show[data-v-67bc73bd]{display:flex;flex-direction:column;gap:12px}.table-content-show .table-wrap .table-operate[data-v-67bc73bd]{display:flex;flex-direction:row;justify-content:space-between;gap:8px}.table-content-show .table-wrap .table-operate .blue-table-operate[data-v-67bc73bd]{color:#1890ff}.table-content-show .table-wrap .table-operate .red-table-operate[data-v-67bc73bd]{color:red}.table-content-show .table-wrap .table-operate .table-operate-content[data-v-67bc73bd]{font-family:SourceHanSansSC,SourceHanSansSC;font-weight:400;font-size:14px;font-style:normal;text-transform:none;cursor:pointer}.el-table[data-v-67bc73bd]{height:inherit}[data-v-67bc73bd] .el-table__body-wrapper{overflow:auto}.table-content[data-v-781eace3]{display:flex;flex-direction:column;gap:16px}.table-content .dialog-footer[data-v-781eace3]{display:flex;flex-direction:row;gap:16px;justify-content:end}.table-content .dialog-footer .cancel-button[data-v-781eace3],.table-content .dialog-footer .ok-button[data-v-781eace3],.table-content .extra-button-label[data-v-781eace3]{cursor:pointer}.form-content[data-v-156885e4]{display:flex;flex-direction:column;gap:16px}[data-v-156885e4] .el-form-item{margin-bottom:0}[data-v-156885e4] .form-data{align-items:center}.table-operate-content[data-v-877911eb]{display:flex;flex-direction:column;gap:12px}.table-operate-content .table-operate-item[data-v-877911eb]{display:flex;flex-direction:column;gap:8px}.table-operate-content .table-operate-item .operate-title[data-v-877911eb]{font-size:14px;font-weight:600;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.table-operate-content .table-operate-item .operate-content[data-v-877911eb]{display:flex;font-size:13px}.form-operate-content[data-v-a36b8468]{display:flex;flex-direction:column;gap:12px}.form-operate-content .form-operate-item[data-v-a36b8468]{display:flex;flex-direction:column;gap:8px}.form-operate-content .form-operate-item .operate-title[data-v-a36b8468]{font-size:14px;font-weight:600;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.form-operate-content .form-operate-item .operate-content[data-v-a36b8468]{display:flex;font-size:13px}.type-select[data-v-fe4aecc8]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%;height:fit-content;overflow:auto}.type-select .type-list[data-v-fe4aecc8]{display:flex;flex-direction:row;height:110px;gap:8px}.type-select .type-list .list-content[data-v-fe4aecc8]{width:85px;height:auto;display:flex;flex-direction:column;gap:6px;padding:4px 12px;align-items:center;height:82px;cursor:pointer}.type-select .type-list .list-content .list-icon[data-v-fe4aecc8]{width:48px;height:48px}.fill-content[data-v-a216b035]{display:flex;flex-direction:column;gap:16px;width:100%}.fill-content .fill-operate[data-v-a216b035]{font-size:16px;font-weight:600}.fill-content .operate-content[data-v-a216b035]{display:flex;flex-direction:row;width:100%;height:100%;overflow:auto}.fill-content .operate-content .collapse-content[data-v-a216b035]{width:100%}.fill-content .operate-content .collapse-content .collapse-title[data-v-a216b035]{font-size:15px;font-weight:600}.fill-content .operate-content .collapse-content .comp-child[data-v-a216b035]{display:flex;flex-direction:column;gap:16px;width:100%}.show-content[data-v-79320497]{display:flex;flex-direction:column;height:100%;gap:16px;width:100%;overflow:auto}.show-content .item-content[data-v-79320497]{display:flex;flex-direction:column;gap:8px;height:fit-content}.menuList-wrap[data-v-dc84a8f7]::-webkit-scrollbar{display:none}.menuList-wrap[data-v-dc84a8f7]{width:100%;height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none;background:var(--ssComponent-menu-bg)}.bread-content[data-v-d55d3ede]{display:flex;width:100%}.bread-content .bread-item[data-v-d55d3ede]{display:flex}.bread-content .bread-item .bread-title[data-v-d55d3ede]{cursor:pointer}.bread-content .bread-item .bread-title[data-v-d55d3ede]:hover{color:var(--ssComponent-primary-color)}.system-wrap[data-v-38117cb6]{width:100%;height:auto;display:flex;gap:1%;background:#f8f8f8}.system-wrap .sys-aside[data-v-38117cb6]{padding:8px;min-width:200px;width:15%}.system-wrap .show-content[data-v-38117cb6]{flex:1;display:flex;flex-direction:column;height:calc(100% - 16px);gap:16px;overflow:auto;padding:24px;background:#fff;margin-top:16px;box-sizing:border-box;border-radius:8px}.system-wrap .show-content .item-menu-content[data-v-38117cb6]{display:flex}.system-wrap .show-content .item-content[data-v-38117cb6]{display:flex;flex-direction:column;gap:16px;height:fit-content}.system-wrap .show-content .item-content .item-view-group[data-v-38117cb6]{display:flex;flex-direction:row;justify-content:start;align-items:center}.add-model-content[data-v-876d48c6]{display:flex;flex-direction:column;width:100%;height:100%;overflow:hidden}.add-model-content .model-operate[data-v-876d48c6]{display:flex;flex-direction:row;gap:16px;flex:1;height:0px;padding:4px 2px}.add-model-content .model-operate .model-select[data-v-876d48c6]{display:flex;padding:16px;height:initial;width:220px;min-width:220px;background:#fff;border-radius:8px;box-shadow:1px 2px 6px 1px #0000001a}.add-model-content .model-operate .model-show[data-v-876d48c6]{display:flex;padding:16px;height:initial;background:#fff;border-radius:8px;box-shadow:1px 2px 6px 1px #0000001a;flex:1;min-width:0}.add-model-content .model-operate .model-fill[data-v-876d48c6]{display:flex;padding:16px;height:initial;width:300px;min-width:300px;background:#fff;border-radius:8px;box-shadow:1px 2px 6px 1px #0000001a}.add-model-content .model-view[data-v-876d48c6]{display:flex;flex-direction:row;flex:1;background:#fff;border-radius:8px;box-shadow:1px 2px 6px 1px #0000001a;height:calc(100% - 72px)}.add-model-content .model-import-data[data-v-876d48c6]{display:flex;flex-direction:row;align-items:center;gap:8px;padding:16px}.add-model-content .model-import-data .import-button[data-v-876d48c6]{padding:4px 12px;background:var(--el-color-primary);color:#fff;border-radius:8px;cursor:pointer}.add-model-content .model-import-data .import-button .import-button-content[data-v-876d48c6]{background:var(--el-color-primary);color:#fff;border:0px;cursor:pointer}.show-content[data-v-869e6e20]{display:flex;flex-direction:column;height:auto;gap:16px;width:100%;overflow:auto;padding:16px;background:#fff}.show-content .item-content[data-v-869e6e20]{display:flex;flex-direction:column;gap:8px;height:fit-content}.show-content .item-content .item-view-group[data-v-869e6e20]{display:flex;flex-direction:row;justify-content:start;align-items:center}.add-model-content[data-v-b25bde75]{display:flex;flex-direction:column;width:100%;height:100%;gap:16px;overflow:hidden}.add-model-content .model-operate[data-v-b25bde75]{display:flex;flex-direction:row;gap:16px;flex:1;height:0px;padding:4px 2px}.add-model-content .model-operate .model-select[data-v-b25bde75]{display:flex;padding:16px;height:initial;width:220px;min-width:220px;background:#fff;border-radius:8px;box-shadow:1px 2px 6px 1px #0000001a}.add-model-content .model-operate .model-show[data-v-b25bde75]{display:flex;padding:16px;height:initial;background:#fff;border-radius:8px;box-shadow:1px 2px 6px 1px #0000001a;flex:1;min-width:0}.add-model-content .model-operate .model-fill[data-v-b25bde75]{display:flex;padding:16px;height:initial;width:300px;min-width:300px;background:#fff;border-radius:8px;box-shadow:1px 2px 6px 1px #0000001a}.add-model-content .model-view[data-v-b25bde75]{display:flex;flex-direction:row;flex:1;padding:4px;background:#fff;border-radius:8px;box-shadow:1px 2px 6px 1px #0000001a;height:calc(100% - 72px)}.add-model-content .model-import-data[data-v-b25bde75]{display:flex;flex-direction:row;align-items:center;gap:8px}.add-model-content .model-import-data .import-button[data-v-b25bde75]{padding:4px 12px;background:var(--el-color-primary);color:#fff;border-radius:8px;cursor:pointer}.add-model-content .model-import-data .import-button .import-button-content[data-v-b25bde75]{background:var(--el-color-primary);color:#fff;border:0px;cursor:pointer}:root{--ssComponent-primary-color: #3F68B1;--ssComponent-danger-color: #f56c6c;--ssComponent-bgColor: #426ec4;--ssComponent-menu-bg: #426ec4;--ssComponent-submenu-hover-bg: #00000033;--ssComponent-submenu-open-bg: #2DA0FF;--ssComponent-submenu-open-inline-bg: #1C4275;--ssComponent-menuitem-hover-bg: #1d7bef;--ssComponent-menuitem-active-bg: #1d7bef;--login-sys-title-color: #2DA0FF;--login-sys-cTitle-fontSize: 2em;--login-sys-loginTitle-fontSize: 1.5em;--login-sys-eTitle-fontSize: 1.3em;--system-bg:#fff}.c-menuA[data-v-c06bb5c0]{width:300px;height:300px;border:1px solid red}.chart-model-class[data-v-798284db]{display:flex;width:100%;height:100%}.eCharts[data-v-0440fac3]{display:flex;align-items:center;justify-content:center;height:300px}
1
+ .header-wrapper[data-v-0498c988]{width:95%;height:100%;margin:0 auto;display:flex;flex-wrap:wrap;align-content:center;padding:20px;box-sizing:border-box}.header-wrapper .header-horizontal[data-v-0498c988]{width:100%;min-height:30px;display:flex;gap:8px;align-items:center}.header-wrapper .header-horizontal .header-logo[data-v-0498c988]{display:inline-block;width:30px;height:30px}.header-wrapper .header-horizontal .header-cTitle[data-v-0498c988]{color:var(--login-sys-title-color);font-size:var(--login-sys-cTitle-fontSize);font-weight:800}.header-wrapper .header-horizontal .header-eTitle[data-v-0498c988]{color:var(--login-sys-title-color);font-size:var(--login-sys-eTitle-fontSize);font-weight:500}.left-wrap[data-v-06d813c8]{width:100%;display:flex;justify-content:right}.left-wrap .left-bg[data-v-06d813c8]{width:70%}@keyframes electric-flow-c5b59515{0%{border-color:transparent}25%{border-left-color:var(--login-sys-title-color)}50%{border-top-color:var(--login-sys-title-color)}75%{border-right-color:var(--login-sys-title-color)}to{border-bottom-color:var(--login-sys-title-color)}}.right-wrap[data-v-c5b59515]{width:100%;height:65%;border:1px solid transparent;animation:electric-flow-c5b59515 2s linear infinite}.right-wrap .right-title[data-v-c5b59515]{width:100%;height:15%;display:flex;align-items:center;justify-content:center;color:var(--login-sys-title-color);font-size:var(--login-sys-loginTitle-fontSize);font-weight:500}.right-wrap .right-content[data-v-c5b59515]{width:100%;height:85%}.right-wrap .right-content[data-v-c5b59515] .right-tabs{width:100%;height:100%}.right-wrap .right-content[data-v-c5b59515] .right-tabs .el-tabs__header{padding:0 30px;height:40px}.right-wrap .right-content[data-v-c5b59515] .right-tabs .el-tabs__content{height:calc(100% - 40px);padding:0 30px;box-sizing:border-box}.right-wrap .right-content[data-v-c5b59515] .right-tabs .el-tabs__content .el-tab-pane{height:100%;display:flex;flex-direction:column}.right-wrap .right-content[data-v-c5b59515] .right-tabs .el-tabs__content .el-tab-pane .tab-content{flex:1}.right-wrap .right-content[data-v-c5b59515] .right-tabs .el-tabs__content .el-tab-pane .tab-button{width:100%;min-height:50px;margin:5% auto;cursor:pointer}.right-wrap .right-content[data-v-c5b59515] .right-tabs .el-tabs__content .el-tab-pane .tab-button .el-button{width:100%;height:100%}.right-wrap .right-content[data-v-c5b59515] .right-tabs .el-tabs__content .el-tab-pane .tab-button.common>.el-button{background:#f4f4f5}.right-wrap .right-content[data-v-c5b59515] .right-tabs .el-tabs__content .el-tab-pane .tab-button.special>.el-button{background:var(--login-sys-title-color);color:#fff}.right-wrap .right-content[data-v-c5b59515] .right-tabs .el-tabs__content .el-tab-pane .tab-tips{width:100%;height:100px;color:#c7c7c9;display:flex;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:wrap}.account-wrap[data-v-53a41975]{width:100%;height:100%;display:flex;align-items:center}.account-wrap .el-form[data-v-53a41975]{width:100%}.account-wrap .el-form .el-form-item[data-v-53a41975]{width:100%;margin-bottom:5%}.account-wrap .el-form .el-form-item .el-form-item__content[data-v-53a41975]{width:100%}.account-wrap .el-form .el-form-item .el-form-item__content .el-input[data-v-53a41975]{width:100%;height:40px}.card-wrap[data-v-23f91251]{width:100%;height:100%;display:flex;flex-wrap:wrap;align-content:space-between;justify-content:space-between;padding-top:8%;box-sizing:border-box}.card-wrap .card-icon[data-v-23f91251]{width:100%;text-align:center}.card-wrap .card-input[data-v-23f91251]{width:100%}.card-wrap .card-input .el-input[data-v-23f91251]{height:40px}.card-wrap .card-icon.card[data-v-23f91251]{padding:0}.login-wrap[data-v-17a13d48]{width:100%;height:100%;display:grid;grid-template-rows:15% auto;gap:16px;background:var(--system-bg)}.login-wrap .login-header[data-v-17a13d48]{width:100%}.login-wrap .login-body[data-v-17a13d48]{width:100%;display:flex;justify-content:center;align-items:center;gap:90px}.login-wrap .login-body .login-body-item[data-v-17a13d48]{height:100%}.login-wrap .login-body .left[data-v-17a13d48]{width:55%;display:flex;justify-content:right;padding:0 50px;box-sizing:border-box}.login-wrap .login-body .right[data-v-17a13d48]{width:32%;padding:0 70px;box-sizing:border-box}.menu-wrap[data-v-cd5548ec]{width:100%;height:100%}.menu-wrap[data-v-cd5548ec] .el-sub-menu .el-sub-menu__title{font-family:SourceHanSansCN,SourceHanSansCN;font-weight:400;font-size:16px;color:#fff;line-height:24px;text-align:left;font-style:normal}.menu-wrap[data-v-cd5548ec] .el-sub-menu .el-sub-menu__title:hover{background:var(--ssComponent-submenu-hover-bg)}.menu-wrap[data-v-cd5548ec] .el-sub-menu.is-opened{background:var(--ssComponent-submenu-open-bg);border-radius:8px}.menu-wrap[data-v-cd5548ec] .el-sub-menu.is-opened .el-menu--inline{background:var(--ssComponent-submenu-open-inline-bg)}.menu-wrap[data-v-cd5548ec] .el-menu-item{font-family:SourceHanSansCN,SourceHanSansCN;font-weight:400;font-size:16px;color:#fff;line-height:24px;text-align:left;font-style:normal}.menu-wrap[data-v-cd5548ec] .el-menu-item:hover{background:var(--ssComponent-menuitem-hover-bg)}.menu-wrap[data-v-cd5548ec] .el-menu-item.is-active{background:var(--ssComponent-menuitem-active-bg)}.tabs-label[data-v-c1c693d0]{display:flex;width:100%;flex-direction:row}.tabs-label .tabs-children[data-v-c1c693d0]{display:flex;flex-direction:row;gap:8px}.tabs-contents[data-v-c1c693d0]{display:flex;flex-direction:column;gap:16px}[data-v-917c453d] .el-textarea__inner{resize:none;height:120px}.dialog-title[data-v-5547662c]{display:flex}.el-dialog__headerbtn{margin-top:8px}.upload[data-v-3e08e20d]{display:flex;gap:8px}.upload .upload-word[data-v-3e08e20d]{display:flex;align-items:center}.upload .upload-icon[data-v-3e08e20d]{display:flex;width:20px;height:20px}.dialog-footer[data-v-3e08e20d]{display:flex;flex-direction:row;justify-content:end}.tip-content[data-v-3e08e20d]{display:flex}[data-v-3e08e20d] .el-upload-list{margin:0}[data-v-3e08e20d] .el-upload-list__item{display:flex}[data-v-3e08e20d] .el-upload-list__item .el-upload-list__item-info{margin-left:0}[data-v-3e08e20d] .el-upload-list__item-name{padding:0}.form-content[data-v-39978581]{width:100%;display:flex;flex-direction:column;gap:12px;background:#fff;border-radius:8px;flex-wrap:wrap}.form-content .form-content-view[data-v-39978581]{width:100%}.form-content .form-content-view .form-data[data-v-39978581]{display:flex;flex-direction:row;gap:12px;width:100%;flex-wrap:wrap}.form-content .form-content-view .form-data .form-item[data-v-39978581]{display:flex;flex-direction:row;gap:8px;width:260px;height:100%;align-items:center}.form-content .form-content-view .form-data .form-item .from-item-label[data-v-39978581]{display:flex;min-width:72px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.form-content .form-content-view .form-data .form-button[data-v-39978581]{display:flex;flex-direction:row;flex-wrap:wrap;gap:12px;align-items:center}.form-content .form-content-view .form-data .form-button .form-button-content[data-v-39978581]{display:flex;cursor:pointer}.form-content .form-content-view .form-data .form-button .form-button-content .form-button-item[data-v-39978581]{background:var(--ssComponent-primary-color);color:#fff;justify-content:center;align-items:center;padding:4px 12px;border-radius:8px;display:flex}.form-content .form-content-view .form-noRegular-data[data-v-39978581]{display:flex;flex-direction:row;gap:12px;width:100%;flex-wrap:wrap}.form-content .form-content-view .form-noRegular-data .form-row-content[data-v-39978581] .el-form-item__label{padding:0;justify-content:start;width:auto}.form-content .form-content-view .form-noRegular-data .form-row-content[data-v-39978581] .el-form-item__content{align-items:start;width:100%}.form-content .form-content-view .form-noRegular-data .form-item[data-v-39978581]{display:flex;flex-direction:row;gap:8px;width:260px;height:100%;align-items:center}.form-content .form-content-view .form-noRegular-data .form-item .from-item-label[data-v-39978581]{text-align:left;width:72px;min-width:72px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.form-content .form-content-view .form-noRegular-data .form-button[data-v-39978581]{display:flex;flex-direction:row;flex-wrap:wrap;gap:12px;align-items:center}.form-content .form-content-view .form-noRegular-data .form-button .form-button-content[data-v-39978581]{display:flex;cursor:pointer}.form-content .form-content-view .form-noRegular-data .form-button .form-button-content .form-button-item[data-v-39978581]{background:var(--ssComponent-primary-color);color:#fff;justify-content:center;align-items:center;padding:4px 12px;border-radius:8px;display:flex}.form-content .form-button[data-v-39978581]{display:flex;flex-direction:row;flex-wrap:wrap;gap:12px}.form-content .form-button .form-button-content[data-v-39978581]{cursor:pointer}.form-content .form-button .form-button-content .form-button-item[data-v-39978581]{background:var(--ssComponent-primary-color);color:#fff;justify-content:center;align-items:center;padding:4px 12px;border-radius:8px;display:flex}[data-v-39978581] .el-form-item__label{padding:0;justify-content:start}[data-v-39978581] .el-form-item__content{align-items:start;width:220px}.extra-button-content[data-v-1d46278f]{display:flex;flex-direction:row;justify-content:space-between}.extra-button-content .extra-header[data-v-1d46278f],.extra-button-content .extra-header .extra-contents[data-v-1d46278f]{display:flex;flex-direction:row;gap:8px}.extra-button-content .extra-header .extra-contents .extra-content[data-v-1d46278f]{padding:4px 12px;border-radius:8px;cursor:pointer}.extra-button-content .extra-button-filter[data-v-1d46278f]{display:flex;gap:8px;flex-direction:row}.extra-button-content .extra-button-filter .button-style[data-v-1d46278f]{width:24px;height:24px;cursor:pointer}[data-v-67bc73bd] .el-table__cell .cell{font-size:14px;font-weight:700;color:#000000d9;font-family:PingFangSC,PingFang SC;min-width:79.2px}[data-v-67bc73bd] .layout-container-view .el-scrollbar__view{width:100%;overflow:auto}[data-v-67bc73bd] .el-table__header-wrapper .el-table__header{height:48px;width:auto!important}[data-v-67bc73bd] .el-table__body .el-table__row{height:48px}[data-v-67bc73bd] .el-table__body{height:100%}.table-content-show[data-v-67bc73bd]{display:flex;flex-direction:column;gap:12px}.table-content-show .table-wrap .table-operate[data-v-67bc73bd]{display:flex;flex-direction:row;justify-content:space-between;gap:8px}.table-content-show .table-wrap .table-operate .blue-table-operate[data-v-67bc73bd]{color:#1890ff}.table-content-show .table-wrap .table-operate .red-table-operate[data-v-67bc73bd]{color:red}.table-content-show .table-wrap .table-operate .table-operate-content[data-v-67bc73bd]{font-family:SourceHanSansSC,SourceHanSansSC;font-weight:400;font-size:14px;font-style:normal;text-transform:none;cursor:pointer}.el-table[data-v-67bc73bd]{height:inherit}[data-v-67bc73bd] .el-table__body-wrapper{overflow:auto}.table-content[data-v-781eace3]{display:flex;flex-direction:column;gap:16px}.table-content .dialog-footer[data-v-781eace3]{display:flex;flex-direction:row;gap:16px;justify-content:end}.table-content .dialog-footer .cancel-button[data-v-781eace3],.table-content .dialog-footer .ok-button[data-v-781eace3],.table-content .extra-button-label[data-v-781eace3]{cursor:pointer}.form-content[data-v-156885e4]{display:flex;flex-direction:column;gap:16px}[data-v-156885e4] .el-form-item{margin-bottom:0}[data-v-156885e4] .form-data{align-items:center}.table-operate-content[data-v-877911eb]{display:flex;flex-direction:column;gap:12px}.table-operate-content .table-operate-item[data-v-877911eb]{display:flex;flex-direction:column;gap:8px}.table-operate-content .table-operate-item .operate-title[data-v-877911eb]{font-size:14px;font-weight:600;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.table-operate-content .table-operate-item .operate-content[data-v-877911eb]{display:flex;font-size:13px}.form-operate-content[data-v-a36b8468]{display:flex;flex-direction:column;gap:12px}.form-operate-content .form-operate-item[data-v-a36b8468]{display:flex;flex-direction:column;gap:8px}.form-operate-content .form-operate-item .operate-title[data-v-a36b8468]{font-size:14px;font-weight:600;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.form-operate-content .form-operate-item .operate-content[data-v-a36b8468]{display:flex;font-size:13px}.type-select[data-v-fe4aecc8]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%;height:fit-content;overflow:auto}.type-select .type-list[data-v-fe4aecc8]{display:flex;flex-direction:row;height:110px;gap:8px}.type-select .type-list .list-content[data-v-fe4aecc8]{width:85px;height:auto;display:flex;flex-direction:column;gap:6px;padding:4px 12px;align-items:center;height:82px;cursor:pointer}.type-select .type-list .list-content .list-icon[data-v-fe4aecc8]{width:48px;height:48px}.fill-content[data-v-a216b035]{display:flex;flex-direction:column;gap:16px;width:100%}.fill-content .fill-operate[data-v-a216b035]{font-size:16px;font-weight:600}.fill-content .operate-content[data-v-a216b035]{display:flex;flex-direction:row;width:100%;height:100%;overflow:auto}.fill-content .operate-content .collapse-content[data-v-a216b035]{width:100%}.fill-content .operate-content .collapse-content .collapse-title[data-v-a216b035]{font-size:15px;font-weight:600}.fill-content .operate-content .collapse-content .comp-child[data-v-a216b035]{display:flex;flex-direction:column;gap:16px;width:100%}.show-content[data-v-79320497]{display:flex;flex-direction:column;height:100%;gap:16px;width:100%;overflow:auto}.show-content .item-content[data-v-79320497]{display:flex;flex-direction:column;gap:8px;height:fit-content}.menuList-wrap[data-v-dc84a8f7]::-webkit-scrollbar{display:none}.menuList-wrap[data-v-dc84a8f7]{width:100%;height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none;background:var(--ssComponent-menu-bg)}.bread-content[data-v-d55d3ede]{display:flex;width:100%}.bread-content .bread-item[data-v-d55d3ede]{display:flex}.bread-content .bread-item .bread-title[data-v-d55d3ede]{cursor:pointer}.bread-content .bread-item .bread-title[data-v-d55d3ede]:hover{color:var(--ssComponent-primary-color)}.system-wrap[data-v-c89dc4ab]{width:100%;height:auto;display:flex;gap:1%;background:#f8f8f8}.system-wrap .sys-aside[data-v-c89dc4ab]{padding:8px;min-width:200px;width:15%}.system-wrap .show-content[data-v-c89dc4ab]{flex:1;display:flex;flex-direction:column;height:calc(100% - 16px);gap:16px;overflow:auto;padding:24px;background:#fff;margin-top:16px;box-sizing:border-box;border-radius:8px}.system-wrap .show-content .item-menu-content[data-v-c89dc4ab]{display:flex}.system-wrap .show-content .item-content[data-v-c89dc4ab]{display:flex;flex-direction:column;gap:16px;height:fit-content}.system-wrap .show-content .item-content .item-view-group[data-v-c89dc4ab]{display:flex;flex-direction:row;justify-content:start;align-items:center}.add-model-content[data-v-0d13cfeb]{display:flex;flex-direction:column;width:100%;height:100%;overflow:hidden}.add-model-content .model-operate[data-v-0d13cfeb]{display:flex;flex-direction:row;gap:16px;flex:1;height:0px;padding:4px 2px}.add-model-content .model-operate .model-select[data-v-0d13cfeb]{display:flex;padding:16px;height:initial;width:220px;min-width:220px;background:#fff;border-radius:8px;box-shadow:1px 2px 6px 1px #0000001a}.add-model-content .model-operate .model-show[data-v-0d13cfeb]{display:flex;padding:16px;height:initial;background:#fff;border-radius:8px;box-shadow:1px 2px 6px 1px #0000001a;flex:1;min-width:0}.add-model-content .model-operate .model-fill[data-v-0d13cfeb]{display:flex;padding:16px;height:initial;width:300px;min-width:300px;background:#fff;border-radius:8px;box-shadow:1px 2px 6px 1px #0000001a}.add-model-content .model-view[data-v-0d13cfeb]{display:flex;flex-direction:row;flex:1;background:#fff;border-radius:8px;box-shadow:1px 2px 6px 1px #0000001a;height:calc(100% - 72px)}.add-model-content .model-import-data[data-v-0d13cfeb]{display:flex;flex-direction:row;align-items:center;gap:8px;padding:16px}.add-model-content .model-import-data .import-button[data-v-0d13cfeb]{padding:4px 12px;background:var(--el-color-primary);color:#fff;border-radius:8px;cursor:pointer}.add-model-content .model-import-data .import-button .import-button-content[data-v-0d13cfeb]{background:var(--el-color-primary);color:#fff;border:0px;cursor:pointer}.show-content[data-v-869e6e20]{display:flex;flex-direction:column;height:auto;gap:16px;width:100%;overflow:auto;padding:16px;background:#fff}.show-content .item-content[data-v-869e6e20]{display:flex;flex-direction:column;gap:8px;height:fit-content}.show-content .item-content .item-view-group[data-v-869e6e20]{display:flex;flex-direction:row;justify-content:start;align-items:center}.add-model-content[data-v-b25bde75]{display:flex;flex-direction:column;width:100%;height:100%;gap:16px;overflow:hidden}.add-model-content .model-operate[data-v-b25bde75]{display:flex;flex-direction:row;gap:16px;flex:1;height:0px;padding:4px 2px}.add-model-content .model-operate .model-select[data-v-b25bde75]{display:flex;padding:16px;height:initial;width:220px;min-width:220px;background:#fff;border-radius:8px;box-shadow:1px 2px 6px 1px #0000001a}.add-model-content .model-operate .model-show[data-v-b25bde75]{display:flex;padding:16px;height:initial;background:#fff;border-radius:8px;box-shadow:1px 2px 6px 1px #0000001a;flex:1;min-width:0}.add-model-content .model-operate .model-fill[data-v-b25bde75]{display:flex;padding:16px;height:initial;width:300px;min-width:300px;background:#fff;border-radius:8px;box-shadow:1px 2px 6px 1px #0000001a}.add-model-content .model-view[data-v-b25bde75]{display:flex;flex-direction:row;flex:1;padding:4px;background:#fff;border-radius:8px;box-shadow:1px 2px 6px 1px #0000001a;height:calc(100% - 72px)}.add-model-content .model-import-data[data-v-b25bde75]{display:flex;flex-direction:row;align-items:center;gap:8px}.add-model-content .model-import-data .import-button[data-v-b25bde75]{padding:4px 12px;background:var(--el-color-primary);color:#fff;border-radius:8px;cursor:pointer}.add-model-content .model-import-data .import-button .import-button-content[data-v-b25bde75]{background:var(--el-color-primary);color:#fff;border:0px;cursor:pointer}:root{--ssComponent-primary-color: #3F68B1;--ssComponent-danger-color: #f56c6c;--ssComponent-bgColor: #426ec4;--ssComponent-menu-bg: #426ec4;--ssComponent-submenu-hover-bg: #00000033;--ssComponent-submenu-open-bg: #2DA0FF;--ssComponent-submenu-open-inline-bg: #1C4275;--ssComponent-menuitem-hover-bg: #1d7bef;--ssComponent-menuitem-active-bg: #1d7bef;--login-sys-title-color: #2DA0FF;--login-sys-cTitle-fontSize: 2em;--login-sys-loginTitle-fontSize: 1.5em;--login-sys-eTitle-fontSize: 1.3em;--system-bg:#fff}.c-menuA[data-v-c06bb5c0]{width:300px;height:300px;border:1px solid red}.chart-model-class[data-v-798284db]{display:flex;width:100%;height:100%}.eCharts[data-v-0440fac3]{display:flex;align-items:center;justify-content:center;height:300px}
@@ -1,22 +1,22 @@
1
1
  import { defineAsyncComponent as n } from "vue";
2
- import { r } from "./index-DzijCTQM.js";
3
- const s = n(() => import("./main-BJ49BQ83.js"));
2
+ import { r } from "./index-Dns47tcD.js";
3
+ const s = n(() => import("./main-DvtmZKNG.js"));
4
4
  s.install = (o) => {
5
5
  o.component("ssComponent", s);
6
6
  };
7
- const t = n(() => import("./index-D0BrZauT.js").then((o) => o.i));
7
+ const t = n(() => import("./index-DGU4M4GV.js").then((o) => o.i));
8
8
  t.install = (o) => {
9
9
  o.component("ssTab", t);
10
10
  };
11
- const e = n(() => import("./index-Dk3AafH9.js"));
11
+ const e = n(() => import("./index-cAlHRAni.js"));
12
12
  e.install = (o) => {
13
13
  o.component("ssMenu", e);
14
14
  };
15
- const m = n(() => import("./index-BK00mV7O.js"));
15
+ const m = n(() => import("./index-Cq_yCzqv.js"));
16
16
  m.install = (o) => {
17
17
  o.component("ssMenuComponent", m);
18
18
  };
19
- const i = n(() => import("./index-3JVabNmb.js"));
19
+ const i = n(() => import("./index-Oz6bAv7L.js"));
20
20
  i.install = (o) => {
21
21
  o.component("ssCanvas", i);
22
22
  };
@@ -1 +1 @@
1
- "use strict";require("vue-router");const r=require("./index-DADq4uib.cjs");module.exports=r.router;
1
+ "use strict";require("vue-router");const r=require("./index-B3SqB7yl.cjs");module.exports=r.router;
@@ -1,5 +1,5 @@
1
1
  import "vue-router";
2
- import { r as a } from "./index-DzijCTQM.js";
2
+ import { r as a } from "./index-Dns47tcD.js";
3
3
  export {
4
4
  a as default
5
5
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ss-component-new",
3
3
  "private": false,
4
- "version": "1.1.86",
4
+ "version": "1.1.88",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
@@ -1,351 +0,0 @@
1
- import { ref as D, onMounted as ee, createElementBlock as m, openBlock as i, Fragment as z, renderList as H, createElementVNode as N, createCommentVNode as $, toDisplayString as U, watch as O, createVNode as R, unref as F, createBlock as Y, resolveDynamicComponent as te } from "vue";
2
- import { m as ae, a as ne, b as oe } from "./index-BviuenkT.js";
3
- import { p as J, u as se, b as le, i as re, e as ce, g as ue, a as ie } from "./array-D2zrIzej.js";
4
- import { u as Q } from "./modelComp-B3sxj_Kp.js";
5
- import { u as X, s as P } from "./menu-BIINB-0Y.js";
6
- import de from "./index-Dk3AafH9.js";
7
- import { e as me } from "./index.vue_vue_type_style_index_0_scoped_876d48c6_lang-CSfAQ28_.js";
8
- import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- import { c as B } from "./cloneDeep-DuEirD61.js";
10
- const fe = { class: "bread-content" }, he = ["onClick"], ve = { key: 0 }, ge = {
11
- __name: "index",
12
- props: {
13
- breadArray: {
14
- type: Array,
15
- default: () => []
16
- }
17
- },
18
- emits: ["click"],
19
- setup(p, { emit: k }) {
20
- const t = p, d = D([]), u = k;
21
- ee(() => {
22
- d.value = t == null ? void 0 : t.breadArray;
23
- });
24
- const f = (y) => {
25
- u("click", y);
26
- };
27
- return (y, v) => (i(), m("div", fe, [
28
- (i(!0), m(z, null, H(d.value, (h, g) => (i(), m("div", {
29
- key: g,
30
- class: "bread-item"
31
- }, [
32
- N("div", {
33
- class: "bread-title",
34
- onClick: (A) => f(h)
35
- }, U(h.value), 9, he),
36
- g !== d.value.length - 1 ? (i(), m("div", ve, U("/"))) : $("", !0)
37
- ]))), 128))
38
- ]));
39
- }
40
- }, ye = /* @__PURE__ */ q(ge, [["__scopeId", "data-v-d55d3ede"]]);
41
- function _e(p) {
42
- const k = [], t = {
43
- "(": ")",
44
- "{": "}",
45
- "[": "]"
46
- };
47
- for (let d = 0; d < p.length; d++) {
48
- const u = p[d];
49
- if (t[u])
50
- k.push(u);
51
- else if (Object.values(t).includes(u)) {
52
- const f = k.pop();
53
- if (console.log("stack", k, f, t[f]), t[f] !== u)
54
- return !1;
55
- }
56
- }
57
- return k.length === 0;
58
- }
59
- function Ce(p) {
60
- var d, u, f, y;
61
- const k = (u = (d = p[0]) == null ? void 0 : d.compData) == null ? void 0 : u.filter((v) => v.key !== "formContent"), t = (y = (f = p[0]) == null ? void 0 : f.compData) == null ? void 0 : y.filter((v) => v.key === "formContent");
62
- console.log("handleFormModel:", k, t, p);
63
- }
64
- const pe = { class: "system-wrap" }, ke = {
65
- key: 0,
66
- class: "show-content"
67
- }, De = {
68
- key: 0,
69
- class: "item-menu-content"
70
- }, Se = {
71
- key: 0,
72
- class: "item-view-group"
73
- }, Ie = {
74
- __name: "index",
75
- props: {
76
- content: String,
77
- jsonContents: Array
78
- },
79
- emits: ["change", "contentChange"],
80
- setup(p, { emit: k }) {
81
- const t = p, d = k, u = Q(J);
82
- se(J);
83
- const f = D(!0), y = X(), v = D(!0), { itemData: h } = P(u), g = le(J), { activeMenuPath: A, activeMenuOpenPaths: Z, menuTriggerType: G, menus: V } = P(y), { selectIndex: w, selectTitle: M } = P(g), b = D([]), _ = D([]), K = (e) => {
84
- var n, o, a;
85
- const s = (n = h.value) == null ? void 0 : n.find((l) => l.name === A.value);
86
- _.value = (a = (o = s == null ? void 0 : s.compData) == null ? void 0 : o[0]) == null ? void 0 : a.contents, v.value = !0, v.value && (v.value = !1), d("change", {
87
- wholeValue: b.value,
88
- editValue: e
89
- });
90
- }, L = (e) => {
91
- var S, C, T;
92
- const s = B(b.value), n = s == null ? void 0 : s.map((r, I) => (I === (e == null ? void 0 : e.index) && (r.compData = e == null ? void 0 : e.contents), r));
93
- let o = "";
94
- (C = (S = B(n)) == null ? void 0 : S.filter((r) => (r == null ? void 0 : r.comp) === "Form")) == null || C.forEach((r) => {
95
- var I;
96
- (I = r == null ? void 0 : r.compData) == null || I.forEach((x) => {
97
- var j;
98
- (x == null ? void 0 : x.key) === "formContent" && ((j = x == null ? void 0 : x.contents) == null || j.forEach((E) => {
99
- E.value !== "" && (o = o === "" ? E == null ? void 0 : E.value : o + "-" + (E == null ? void 0 : E.value));
100
- }));
101
- });
102
- });
103
- let a = M == null ? void 0 : M.value;
104
- (a == null ? void 0 : a.length) > 0 ? a[0] = { key: "main", value: o } : (Array.isArray(a) || (a = []), a.push({ key: "main", value: o })), g.setSelectTitle(a), f.value = !1, b.value = n;
105
- const l = (T = h.value) == null ? void 0 : T.map((r, I) => {
106
- var x;
107
- return r.name === A.value && (r.compData = (x = r.compData) == null ? void 0 : x.map((j) => ((j == null ? void 0 : j.key) === "groupContents" && (j.contents = b.value), j))), r;
108
- });
109
- u.setItemData(l), v.value && (v.value = !1), d("contentChange", {
110
- wholeContent: h.value
111
- });
112
- }, W = (e) => {
113
- var s, n;
114
- if ((e == null ? void 0 : e.key) === "main")
115
- g.setSelectIndex(""), g.setSelectMenu(""), g.setSelectTitle((s = M.value) == null ? void 0 : s[0]);
116
- else {
117
- const o = [];
118
- let a = -1;
119
- (n = M.value) == null || n.forEach((l, S) => {
120
- (l == null ? void 0 : l.key) === (e == null ? void 0 : e.key) && (a = S), (a === -1 || a >= S) && o.push(l);
121
- }), g.setSelectTitle(o), g.setSelectMenu(e == null ? void 0 : e.key);
122
- }
123
- };
124
- O(
125
- () => h.value,
126
- () => {
127
- var s, n, o, a, l, S, C, T;
128
- if (!h.value || ((s = h.value) == null ? void 0 : s.length) === 0 || !f.value) return;
129
- let e = null;
130
- if (!A.value)
131
- e = (o = (n = B(h.value)) == null ? void 0 : n.filter((r) => (r == null ? void 0 : r.comp) === "Group")) == null ? void 0 : o[0], y.setActiveMenuPath(e == null ? void 0 : e.name);
132
- else {
133
- const r = (a = B(h.value)) == null ? void 0 : a.filter((I) => (I == null ? void 0 : I.comp) === "Group");
134
- e = r == null ? void 0 : r.find((I) => I.name === A.value);
135
- }
136
- _.value = (S = (l = e == null ? void 0 : e.compData) == null ? void 0 : l[0]) == null ? void 0 : S.contents, b.value = (T = (C = e == null ? void 0 : e.compData) == null ? void 0 : C[0]) == null ? void 0 : T.contents, console.log("itemData监听", e, A.value, h.value);
137
- },
138
- { deep: !0, immediate: !0 }
139
- ), O(() => A.value, (e) => {
140
- var s, n, o, a, l, S;
141
- if (e) {
142
- const C = (s = B(h.value)) == null ? void 0 : s.find((T) => T.name === e);
143
- if (e && C) {
144
- _.value = (o = (n = C == null ? void 0 : C.compData) == null ? void 0 : n[0]) == null ? void 0 : o.contents, b.value = (l = (a = C == null ? void 0 : C.compData) == null ? void 0 : a[0]) == null ? void 0 : l.contents, console.log("点击-新-data:", e, _.value);
145
- const T = (S = _.value) == null ? void 0 : S.filter((r) => r.comp === "Form");
146
- Ce(T);
147
- } else
148
- _.value = [], b.value = [];
149
- g.setSelectTitle([]), g.setSelectIndex(""), g.setSelectMenu("");
150
- }
151
- }, {
152
- immediate: !0
153
- }), O(
154
- () => [t == null ? void 0 : t.content, t == null ? void 0 : t.jsonContents],
155
- () => {
156
- var o;
157
- if (((o = t == null ? void 0 : t.jsonContents) == null ? void 0 : o.length) > 0) {
158
- u.setOriginalData(t == null ? void 0 : t.jsonContents), u.setItemData(t == null ? void 0 : t.jsonContents);
159
- return;
160
- }
161
- if (!(t != null && t.content) || (t == null ? void 0 : t.content) === "") return;
162
- f.value = !0;
163
- let e;
164
- re(t == null ? void 0 : t.content) ? e = ce(t == null ? void 0 : t.content) : e = me(t == null ? void 0 : t.content);
165
- const s = Array.isArray(e) && (e == null ? void 0 : e.find((a) => {
166
- var l;
167
- return ((l = a.comp) == null ? void 0 : l.toUpperCase()) === "MENU";
168
- }));
169
- y.setRawMenu(s ?? {});
170
- const n = Array.isArray(e) && (e == null ? void 0 : e.find((a) => {
171
- var l;
172
- return ((l = a.comp) == null ? void 0 : l.toUpperCase()) === "SYSTEM";
173
- }));
174
- y.setSystemKey((n == null ? void 0 : n.name) ?? ""), u.setOriginalData(e), u.setItemData(e);
175
- },
176
- { deep: !0, immediate: !0 }
177
- );
178
- const c = (e) => ue(e);
179
- return (e, s) => {
180
- var n, o;
181
- return i(), m("div", pe, [
182
- R(de, { class: "sys-aside" }),
183
- ((n = _.value) == null ? void 0 : n.length) > 0 ? (i(), m("div", ke, [
184
- ((o = F(M)) == null ? void 0 : o.length) > 1 ? (i(), m("div", De, [
185
- (i(), Y(ye, {
186
- key: F(M),
187
- breadArray: F(M),
188
- onClick: W
189
- }, null, 8, ["breadArray"]))
190
- ])) : $("", !0),
191
- (i(!0), m(z, null, H(_.value, (a, l) => (i(), m("div", {
192
- class: "item-content",
193
- key: l
194
- }, [
195
- F(w) === "" || l.toString() === F(w) ? (i(), m("div", Se, U(a.name), 1)) : $("", !0),
196
- F(w) === "" || l.toString() === F(w) ? (i(), Y(te(c(a.comp)), {
197
- itemData: a == null ? void 0 : a.compData,
198
- childItemData: a == null ? void 0 : a.itemChildData,
199
- key: l,
200
- onChange: K,
201
- index: l,
202
- onContentChange: L
203
- }, null, 40, ["itemData", "childItemData", "index"])) : $("", !0)
204
- ]))), 128))
205
- ])) : $("", !0)
206
- ]);
207
- };
208
- }
209
- }, Me = /* @__PURE__ */ q(Ie, [["__scopeId", "data-v-38117cb6"]]), Ae = { class: "add-model-content" }, be = {
210
- key: 0,
211
- class: "model-import-data"
212
- }, Te = { class: "import-button" }, xe = { key: 0 }, $e = {
213
- key: 1,
214
- class: "model-operate"
215
- }, je = { class: "model-select" }, we = { class: "model-fill" }, Ee = {
216
- key: 2,
217
- class: "model-view"
218
- }, Fe = {
219
- __name: "index",
220
- props: {
221
- mode: {
222
- type: String,
223
- default: "view"
224
- },
225
- content: {
226
- type: String,
227
- default: ""
228
- },
229
- jsonContents: {
230
- type: Array,
231
- default: () => []
232
- },
233
- showButton: {
234
- type: Boolean,
235
- default: !0
236
- }
237
- },
238
- emits: ["change", "contentChange"],
239
- setup(p, { emit: k }) {
240
- const t = p, d = k, u = D(""), f = D([]), y = D(0), v = Q(J), h = X(J), { itemData: g, originalData: A } = P(v), { activeMenuPath: Z } = P(h), G = D(null), V = D(0), w = D(""), M = (c) => {
241
- d("contentChange", c);
242
- }, b = (c) => {
243
- var s;
244
- const e = (s = B(c == null ? void 0 : c.wholeValue)) == null ? void 0 : s.map((n) => {
245
- var o;
246
- return (n == null ? void 0 : n.comp) === "Form" && (n.compData = (o = n.compData) == null ? void 0 : o.map((a) => ((a == null ? void 0 : a.key) === "formContent" && (a.contents = ie(a == null ? void 0 : a.contents)), a))), n;
247
- });
248
- d("change", {
249
- originalContents: A.value,
250
- currentContents: c == null ? void 0 : c.wholeValue,
251
- editContent: c == null ? void 0 : c.editValue,
252
- arrayToContents: e
253
- });
254
- }, _ = D([]), K = () => {
255
- G.value.click();
256
- }, L = (c) => {
257
- const e = c.target.files[0];
258
- if (!e) return;
259
- const s = new FileReader();
260
- s.onload = (n) => {
261
- try {
262
- u.value = n.target.result;
263
- const o = _e(n.target.result);
264
- console.log("handleFileChange-isValid", o), _.value = W(n.target.result), V.value++;
265
- } catch (o) {
266
- console.error("解析失败:", o);
267
- }
268
- }, s.onerror = (n) => {
269
- console.error("文件读取错误:", n);
270
- }, s.readAsText(e);
271
- };
272
- O(
273
- () => [t == null ? void 0 : t.content, t == null ? void 0 : t.jsonContents],
274
- () => {
275
- u.value = t == null ? void 0 : t.content, f.value = t == null ? void 0 : t.jsonContents;
276
- },
277
- { deep: !0, immediate: !0 }
278
- ), O(
279
- () => V.value,
280
- () => {
281
- var c;
282
- ((c = _.value) == null ? void 0 : c.length) !== 0 && (v.setOriginalData(_.value), v.setItemData(_.value));
283
- },
284
- { deep: !0, immediate: !0 }
285
- );
286
- const W = (c) => {
287
- let e = c.replace(/,/g, ",").replace(/;/g, ";").replace(/:/g, ":");
288
- e = e.replace(/(\w+)\s*:/g, "$1:"), e = e.replace(/\r\n/g, "").replace(/\n/g, "").replace(/\t/g, "").replace(/\s+/g, " ").trim(), e = e.replace(/,\s*([}\]])/g, "$1"), e = e.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,}])/g, ": $2$4");
289
- try {
290
- return JSON.parse(e);
291
- } catch (s) {
292
- try {
293
- const o = new Function(`return ${e}`)();
294
- if (Array.isArray(o) || typeof o == "object")
295
- return o;
296
- throw new Error(`解析结果不是有效的数组或对象: ${s}`);
297
- } catch (n) {
298
- throw new Error(`无法解析JSON: ${n.message}`);
299
- }
300
- }
301
- };
302
- return (c, e) => {
303
- var s;
304
- return i(), m("div", Ae, [
305
- ((s = t == null ? void 0 : t.jsonContents) == null ? void 0 : s.length) === 0 && (t != null && t.showButton) ? (i(), m("div", be, [
306
- N("div", Te, [
307
- N("input", {
308
- type: "file",
309
- ref_key: "fileInput",
310
- ref: G,
311
- accept: ".txt",
312
- onChange: L,
313
- style: { display: "none" }
314
- }, null, 544),
315
- N("button", {
316
- onClick: K,
317
- class: "import-button-content"
318
- }, "导入文件"),
319
- w.value ? (i(), m("span", xe, U(w.value), 1)) : $("", !0)
320
- ])
321
- ])) : $("", !0),
322
- (t == null ? void 0 : t.mode) === "edit" ? (i(), m("div", $e, [
323
- N("div", je, [
324
- R(ae)
325
- ]),
326
- (i(), m("div", {
327
- class: "model-show",
328
- key: y.value
329
- }, [
330
- R(ne)
331
- ])),
332
- N("div", we, [
333
- R(oe)
334
- ])
335
- ])) : $("", !0),
336
- (t == null ? void 0 : t.mode) === "view" ? (i(), m("div", Ee, [
337
- (i(), Y(Me, {
338
- content: u.value,
339
- onChange: b,
340
- jsonContents: f.value,
341
- onContentChange: M,
342
- key: y.value
343
- }, null, 8, ["content", "jsonContents"]))
344
- ])) : $("", !0)
345
- ]);
346
- };
347
- }
348
- }, Ke = /* @__PURE__ */ q(Fe, [["__scopeId", "data-v-876d48c6"]]);
349
- export {
350
- Ke as default
351
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),O=require("./index-Bk6z8NoT.cjs"),D=require("./array-D8U2pGTC.cjs"),J=require("./modelComp-DAsVXKA0.cjs"),A=require("./menu-B_Az9K_F.cjs"),U=require("./index-CPAniSJJ.cjs"),G=require("./index.vue_vue_type_style_index_0_scoped_876d48c6_lang-BufoMCSS.cjs"),R=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),b=require("./cloneDeep-8zu2YtRV.cjs"),L={class:"bread-content"},H=["onClick"],K={key:0},W={__name:"index",props:{breadArray:{type:Array,default:()=>[]}},emits:["click"],setup(y,{emit:_}){const n=y,d=e.ref([]),i=_;e.onMounted(()=>{d.value=n==null?void 0:n.breadArray});const m=g=>{i("click",g)};return(g,h)=>(e.openBlock(),e.createElementBlock("div",L,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(f,v)=>(e.openBlock(),e.createElementBlock("div",{key:v,class:"bread-item"},[e.createElementVNode("div",{class:"bread-title",onClick:E=>m(f)},e.toDisplayString(f.value),9,H),v!==d.value.length-1?(e.openBlock(),e.createElementBlock("div",K,e.toDisplayString("/"))):e.createCommentVNode("",!0)]))),128))]))}},Y=R._export_sfc(W,[["__scopeId","data-v-d55d3ede"]]);function z(y){const _=[],n={"(":")","{":"}","[":"]"};for(let d=0;d<y.length;d++){const i=y[d];if(n[i])_.push(i);else if(Object.values(n).includes(i)){const m=_.pop();if(console.log("stack",_,m,n[m]),n[m]!==i)return!1}}return _.length===0}function Q(y){var d,i,m,g;const _=(i=(d=y[0])==null?void 0:d.compData)==null?void 0:i.filter(h=>h.key!=="formContent"),n=(g=(m=y[0])==null?void 0:m.compData)==null?void 0:g.filter(h=>h.key==="formContent");console.log("handleFormModel:",_,n,y)}const X={class:"system-wrap"},Z={key:0,class:"show-content"},ee={key:0,class:"item-menu-content"},te={key:0,class:"item-view-group"},ne={__name:"index",props:{content:String,jsonContents:Array},emits:["change","contentChange"],setup(y,{emit:_}){const n=y,d=_,i=J.useModelComp(D.pinia);D.useFormToTableComp(D.pinia);const m=e.ref(!0),g=A.useMenuState(),h=e.ref(!0),{itemData:f}=A.storeToRefs(i),v=D.useUnit(D.pinia),{activeMenuPath:E,activeMenuOpenPaths:P,menuTriggerType:w,menus:V}=A.storeToRefs(g),{selectIndex:I,selectTitle:S}=A.storeToRefs(v),N=e.ref([]),k=e.ref([]),j=t=>{var a,l,o;const c=(a=f.value)==null?void 0:a.find(r=>r.name===E.value);k.value=(o=(l=c==null?void 0:c.compData)==null?void 0:l[0])==null?void 0:o.contents,h.value=!0,h.value&&(h.value=!1),d("change",{wholeValue:N.value,editValue:t})},F=t=>{var C,p,x;const c=b.cloneDeep(N.value),a=c==null?void 0:c.map((s,B)=>(B===(t==null?void 0:t.index)&&(s.compData=t==null?void 0:t.contents),s));let l="";(p=(C=b.cloneDeep(a))==null?void 0:C.filter(s=>(s==null?void 0:s.comp)==="Form"))==null||p.forEach(s=>{var B;(B=s==null?void 0:s.compData)==null||B.forEach(M=>{var T;(M==null?void 0:M.key)==="formContent"&&((T=M==null?void 0:M.contents)==null||T.forEach($=>{$.value!==""&&(l=l===""?$==null?void 0:$.value:l+"-"+($==null?void 0:$.value))}))})});let o=S==null?void 0:S.value;(o==null?void 0:o.length)>0?o[0]={key:"main",value:l}:(Array.isArray(o)||(o=[]),o.push({key:"main",value:l})),v.setSelectTitle(o),m.value=!1,N.value=a;const r=(x=f.value)==null?void 0:x.map((s,B)=>{var M;return s.name===E.value&&(s.compData=(M=s.compData)==null?void 0:M.map(T=>((T==null?void 0:T.key)==="groupContents"&&(T.contents=N.value),T))),s});i.setItemData(r),h.value&&(h.value=!1),d("contentChange",{wholeContent:f.value})},q=t=>{var c,a;if((t==null?void 0:t.key)==="main")v.setSelectIndex(""),v.setSelectMenu(""),v.setSelectTitle((c=S.value)==null?void 0:c[0]);else{const l=[];let o=-1;(a=S.value)==null||a.forEach((r,C)=>{(r==null?void 0:r.key)===(t==null?void 0:t.key)&&(o=C),(o===-1||o>=C)&&l.push(r)}),v.setSelectTitle(l),v.setSelectMenu(t==null?void 0:t.key)}};e.watch(()=>f.value,()=>{var c,a,l,o,r,C,p,x;if(!f.value||((c=f.value)==null?void 0:c.length)===0||!m.value)return;let t=null;if(!E.value)t=(l=(a=b.cloneDeep(f.value))==null?void 0:a.filter(s=>(s==null?void 0:s.comp)==="Group"))==null?void 0:l[0],g.setActiveMenuPath(t==null?void 0:t.name);else{const s=(o=b.cloneDeep(f.value))==null?void 0:o.filter(B=>(B==null?void 0:B.comp)==="Group");t=s==null?void 0:s.find(B=>B.name===E.value)}k.value=(C=(r=t==null?void 0:t.compData)==null?void 0:r[0])==null?void 0:C.contents,N.value=(x=(p=t==null?void 0:t.compData)==null?void 0:p[0])==null?void 0:x.contents,console.log("itemData监听",t,E.value,f.value)},{deep:!0,immediate:!0}),e.watch(()=>E.value,t=>{var c,a,l,o,r,C;if(t){const p=(c=b.cloneDeep(f.value))==null?void 0:c.find(x=>x.name===t);if(t&&p){k.value=(l=(a=p==null?void 0:p.compData)==null?void 0:a[0])==null?void 0:l.contents,N.value=(r=(o=p==null?void 0:p.compData)==null?void 0:o[0])==null?void 0:r.contents,console.log("点击-新-data:",t,k.value);const x=(C=k.value)==null?void 0:C.filter(s=>s.comp==="Form");Q(x)}else k.value=[],N.value=[];v.setSelectTitle([]),v.setSelectIndex(""),v.setSelectMenu("")}},{immediate:!0}),e.watch(()=>[n==null?void 0:n.content,n==null?void 0:n.jsonContents],()=>{var l;if(((l=n==null?void 0:n.jsonContents)==null?void 0:l.length)>0){i.setOriginalData(n==null?void 0:n.jsonContents),i.setItemData(n==null?void 0:n.jsonContents);return}if(!(n!=null&&n.content)||(n==null?void 0:n.content)==="")return;m.value=!0;let t;D.isExpandStringToJson(n==null?void 0:n.content)?t=D.expandStringToJson(n==null?void 0:n.content):t=G.expandNewStringToJson(n==null?void 0:n.content);const c=Array.isArray(t)&&(t==null?void 0:t.find(o=>{var r;return((r=o.comp)==null?void 0:r.toUpperCase())==="MENU"}));g.setRawMenu(c??{});const a=Array.isArray(t)&&(t==null?void 0:t.find(o=>{var r;return((r=o.comp)==null?void 0:r.toUpperCase())==="SYSTEM"}));g.setSystemKey((a==null?void 0:a.name)??""),i.setOriginalData(t),i.setItemData(t)},{deep:!0,immediate:!0});const u=t=>D.getComponent(t);return(t,c)=>{var a,l;return e.openBlock(),e.createElementBlock("div",X,[e.createVNode(U.default,{class:"sys-aside"}),((a=k.value)==null?void 0:a.length)>0?(e.openBlock(),e.createElementBlock("div",Z,[((l=e.unref(S))==null?void 0:l.length)>1?(e.openBlock(),e.createElementBlock("div",ee,[(e.openBlock(),e.createBlock(Y,{key:e.unref(S),breadArray:e.unref(S),onClick:q},null,8,["breadArray"]))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:r},[e.unref(I)===""||r.toString()===e.unref(I)?(e.openBlock(),e.createElementBlock("div",te,e.toDisplayString(o.name),1)):e.createCommentVNode("",!0),e.unref(I)===""||r.toString()===e.unref(I)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u(o.comp)),{itemData:o==null?void 0:o.compData,childItemData:o==null?void 0:o.itemChildData,key:r,onChange:j,index:r,onContentChange:F},null,40,["itemData","childItemData","index"])):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0)])}}},oe=R._export_sfc(ne,[["__scopeId","data-v-38117cb6"]]),ae={class:"add-model-content"},le={key:0,class:"model-import-data"},ce={class:"import-button"},re={key:0},se={key:1,class:"model-operate"},ue={class:"model-select"},ie={class:"model-fill"},de={key:2,class:"model-view"},me={__name:"index",props:{mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0}},emits:["change","contentChange"],setup(y,{emit:_}){const n=y,d=_,i=e.ref(""),m=e.ref([]),g=e.ref(0),h=J.useModelComp(D.pinia),f=A.useMenuState(D.pinia),{itemData:v,originalData:E}=A.storeToRefs(h),{activeMenuPath:P}=A.storeToRefs(f),w=e.ref(null),V=e.ref(0),I=e.ref(""),S=u=>{d("contentChange",u)},N=u=>{var c;const t=(c=b.cloneDeep(u==null?void 0:u.wholeValue))==null?void 0:c.map(a=>{var l;return(a==null?void 0:a.comp)==="Form"&&(a.compData=(l=a.compData)==null?void 0:l.map(o=>((o==null?void 0:o.key)==="formContent"&&(o.contents=D.arrayToNumberArray(o==null?void 0:o.contents)),o))),a});d("change",{originalContents:E.value,currentContents:u==null?void 0:u.wholeValue,editContent:u==null?void 0:u.editValue,arrayToContents:t})},k=e.ref([]),j=()=>{w.value.click()},F=u=>{const t=u.target.files[0];if(!t)return;const c=new FileReader;c.onload=a=>{try{i.value=a.target.result;const l=z(a.target.result);console.log("handleFileChange-isValid",l),k.value=q(a.target.result),V.value++}catch(l){console.error("解析失败:",l)}},c.onerror=a=>{console.error("文件读取错误:",a)},c.readAsText(t)};e.watch(()=>[n==null?void 0:n.content,n==null?void 0:n.jsonContents],()=>{i.value=n==null?void 0:n.content,m.value=n==null?void 0:n.jsonContents},{deep:!0,immediate:!0}),e.watch(()=>V.value,()=>{var u;((u=k.value)==null?void 0:u.length)!==0&&(h.setOriginalData(k.value),h.setItemData(k.value))},{deep:!0,immediate:!0});const q=u=>{let t=u.replace(/,/g,",").replace(/;/g,";").replace(/:/g,":");t=t.replace(/(\w+)\s*:/g,"$1:"),t=t.replace(/\r\n/g,"").replace(/\n/g,"").replace(/\t/g,"").replace(/\s+/g," ").trim(),t=t.replace(/,\s*([}\]])/g,"$1"),t=t.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,}])/g,": $2$4");try{return JSON.parse(t)}catch(c){try{const l=new Function(`return ${t}`)();if(Array.isArray(l)||typeof l=="object")return l;throw new Error(`解析结果不是有效的数组或对象: ${c}`)}catch(a){throw new Error(`无法解析JSON: ${a.message}`)}}};return(u,t)=>{var c;return e.openBlock(),e.createElementBlock("div",ae,[((c=n==null?void 0:n.jsonContents)==null?void 0:c.length)===0&&(n!=null&&n.showButton)?(e.openBlock(),e.createElementBlock("div",le,[e.createElementVNode("div",ce,[e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:w,accept:".txt",onChange:F,style:{display:"none"}},null,544),e.createElementVNode("button",{onClick:j,class:"import-button-content"},"导入文件"),I.value?(e.openBlock(),e.createElementBlock("span",re,e.toDisplayString(I.value),1)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),(n==null?void 0:n.mode)==="edit"?(e.openBlock(),e.createElementBlock("div",se,[e.createElementVNode("div",ue,[e.createVNode(O.modelSelect)]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:g.value},[e.createVNode(O.modelShow)])),e.createElementVNode("div",ie,[e.createVNode(O.modelFill)])])):e.createCommentVNode("",!0),(n==null?void 0:n.mode)==="view"?(e.openBlock(),e.createElementBlock("div",de,[(e.openBlock(),e.createBlock(oe,{content:i.value,onChange:N,jsonContents:m.value,onContentChange:S,key:g.value},null,8,["content","jsonContents"]))])):e.createCommentVNode("",!0)])}}},fe=R._export_sfc(me,[["__scopeId","data-v-876d48c6"]]);exports.default=fe;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("./menu-B_Az9K_F.cjs"),x=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S=e.defineComponent({__name:"menuItem",props:{menuList:{type:Array,default:()=>[]}},emits:["clickMenu","openMenu","closeMenu"],setup(u,{emit:i}){const l=i,c=n=>{l("clickMenu",n)},p=n=>{l("openMenu",n)},r=n=>{l("closeMenu",n)};return e.onMounted(()=>{}),(n,k)=>{const a=e.resolveComponent("MenuItem",!0),d=e.resolveComponent("el-sub-menu"),m=e.resolveComponent("el-menu-item");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.menuList,t=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.children&&t.children.length>0?(e.openBlock(),e.createBlock(d,{index:t.path,key:t.path},{title:e.withCtx(()=>[e.renderSlot(n.$slots,"title",{menu:t})]),default:e.withCtx(()=>[e.createVNode(a,{menuList:t.children,onClickMenu:c,onOpenMenu:p,onCloseMenu:r},e.createSlots({_:2},[e.renderList(n.$slots,(M,s)=>({name:s,fn:e.withCtx(_=>[e.renderSlot(n.$slots,s,e.mergeProps({ref_for:!0},_))])}))]),1032,["menuList"])]),_:2},1032,["index"])):(e.openBlock(),e.createBlock(m,{index:t.path,key:t.path,onClick:M=>c(t)},{title:e.withCtx(()=>[e.renderSlot(n.$slots,"title",{menu:t})]),_:2},1032,["index","onClick"]))],64))),256)}}}),g=e.defineComponent({__name:"index",props:{menuList:{type:Array,default:()=>[]}},emits:["clickMenu","openMenu","closeMenu","changeMenuStyle"],setup(u,{emit:i}){const l=f.useMenuState(),{activeMenuPath:c,activeMenuOpenPaths:p}=f.storeToRefs(l),r=i,n=t=>{r("clickMenu",t)},k=t=>{r("openMenu",t),console.log("openMenu2",t)},a=t=>{r("closeMenu",t)},d=e.computed(()=>c.value),m=e.computed(()=>p.value);return(t,M)=>{const s=e.resolveComponent("el-sub-menu"),_=e.resolveComponent("el-menu-item"),C=e.resolveComponent("el-menu");return e.openBlock(),e.createBlock(C,{class:"menu-wrap",router:"","default-active":d.value,"default-openeds":m.value,"unique-opened":!0,"collapse-transition":!1,"popper-offset":12,onOpen:k,onClose:a},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.menuList,o=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.children&&o.children.length>0?(e.openBlock(),e.createBlock(s,{index:o.path,key:o.path},{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{menu:o},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(S,{menuList:o.children,onClickMenu:n},e.createSlots({_:2},[e.renderList(t.$slots,(v,h)=>({name:h,fn:e.withCtx(B=>[e.renderSlot(t.$slots,h,e.mergeProps({ref_for:!0},B),void 0,!0)])}))]),1032,["menuList"])]),_:2},1032,["index"])):(e.openBlock(),e.createBlock(_,{index:o.path,key:o.path,onClick:v=>n(o)},{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{menu:o},void 0,!0)]),_:2},1032,["index","onClick"]))],64))),256))]),_:3},8,["default-active","default-openeds"])}}}),L=x._export_sfc(g,[["__scopeId","data-v-2cbe7506"]]);exports.default=L;
@@ -1,4 +0,0 @@
1
- "use strict";const C=require("./array-D8U2pGTC.cjs"),R=require("vue"),l=require("./cloneDeep-8zu2YtRV.cjs"),w=R.ref(0),X=e=>{let c;e.includes(`\r
2
- `)?c=e.split(`\r
3
- `).filter(t=>t.trim()!==""):c=e.split(`
4
- `).filter(t=>t.trim()!=="");const p=[];let r="";for(const t of c)t.includes("{")||r.includes("{")||t.includes("[")||r.includes("[")||t.includes("【")||r.includes("【")||t.includes("(")||r.includes("(")||t.includes("(")||r.includes("(")||t.includes("/*")||r.includes("/*")?(r+=t.trim(),l.cloneDeep(r).split("{").length-1===l.cloneDeep(r).split("}").length-1&&l.cloneDeep(r).split("【").length-1===l.cloneDeep(r).split("】").length-1&&l.cloneDeep(r).split("[").length-1===l.cloneDeep(r).split("]").length-1&&l.cloneDeep(r).split("(").length-1===l.cloneDeep(r).split(")").length-1&&l.cloneDeep(r).split("(").length-1===l.cloneDeep(r).split(")").length-1&&l.cloneDeep(r).split("/*").length-1===l.cloneDeep(r).split("*/").length-1&&(p.push(r),r="")):p.push(t.trim());return p},Y=e=>{const[c,p]=e.split(/=(.+)/),r=c.replace(/['"]/g,"").trim(),t=p.replace(/^['"]|['"]$/g,"");return{key:r,value:t}},G=e=>{try{return JSON.parse(e),!0}catch{return!1}},K=e=>{try{const c=e.replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",").replace(/:/g,":").replace(/:\s*(?=,|}|$)/g,': ""');if(l.cloneDeep(c).split("{").length-1>1){let p=l.cloneDeep(c).replace(/^\{(.*)\}$/,"[$1]");if(G(p)&&!p.includes("$")||(p=p.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g,'"$1$$$2"')),G(p)){const r=JSON.parse(p);let t=[];return r==null||r.forEach(u=>{var f;(f=Object.entries(l.cloneDeep(u)))==null||f.forEach(i=>{w.value++,t.push({id:w.value,key:(i==null?void 0:i[0])??"",value:(i==null?void 0:i[1])===""?"":i==null?void 0:i[1],width:Object.keys(l.cloneDeep(u)).length})})}),t}else return console.error("转换类型不正确:"),[]}else if(G(c)){const p=JSON.parse(c);return Object.entries(p).map(([r,t])=>(w.value++,{id:w.value,key:r,value:t===""?"":t,width:1}))}else return c}catch(c){return console.error("转换失败:",c),[]}},Z=(e,c)=>{var p;try{if((p=C.viewMainDict)!=null&&p.find(r=>(r==null?void 0:r.key)===c))return e.replace(/['"]/g,"").trim();if(l.cloneDeep(e).split("[").length-1>1){const r=l.cloneDeep(e).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(r)}else{const r=l.cloneDeep(e).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",");if(G(r)){const t=JSON.parse(r);return Array.isArray(t)?t.map(u=>({label:u})):t}else return K(l.cloneDeep(e))}}catch(r){return console.error("解析失败:",r),e}},_=e=>({[e==null?void 0:e.key]:Z(e==null?void 0:e.value,e==null?void 0:e.key)}),S=e=>{try{if(l.cloneDeep(e).split("[").length-1>1){const c=l.cloneDeep(e).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(c)}else return JSON.parse(l.cloneDeep(e).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",")).map(p=>({label:p}))}catch(c){return console.error("解析失败:",c),e}},v=e=>{const c=e.match(/\(([^)]+)\)/);return c?c[1]:""},ee=e=>{const c=e.match(/^([^(]+)\s*\(/);return c?c[1].trim():e},B=e=>e.replace(/'/g,"").replace(/"/g,"").replace(/{|}/g,"").split(":").map(c=>c.trim()).filter(c=>c).join("/"),re=e=>{var f,i;let c=[],p=[];const r=(f=l.cloneDeep(e))==null?void 0:f.map(d=>d==null?void 0:d.key),t=[...new Set((i=l.cloneDeep(r))==null?void 0:i.map(d=>v(d)))];t==null||t.forEach(d=>{let A=e==null?void 0:e.filter(o=>o.key.includes(d));A==null||A.forEach(o=>{o!=null&&o.key.includes("Menus")&&(c.push({key:"GroupName",value:B(o==null?void 0:o.value)}),p.push(B(o==null?void 0:o.value)))});let U=e==null?void 0:e.filter(o=>o.key.includes(d)&&!(o!=null&&o.key.includes("Menus")));U=U==null?void 0:U.map(o=>(o.key=ee(o.key),o));const x={key:"GroupContents",value:U};c.push(x)});const u={key:"Menus",value:p};return c.unshift(u),c},Q=e=>{var c,p;if(Array.isArray(Object.keys(e))&&((c=Object.keys(e))==null?void 0:c.length)>0){let r=[];return(p=Object.entries(e))==null||p.forEach(([t,u])=>{var i,d;let f=[];if(f.push(t),((i=Object.keys(u))==null?void 0:i.length)>0){let A=[];A.push((d=Q(u))==null?void 0:d[0]),f.push(A==null?void 0:A[0])}r.push(f)}),r}},te=(e,c)=>{var r;let p=c;return Array.isArray(Object.keys(e))&&((r=Object.entries(e))==null||r.forEach(([t,u])=>{let f=[t];if(typeof u=="object"&&u!==null){let i=Q(u);i==null||i.forEach(d=>{f.push(d)})}p.push(f)})),p},ce=e=>{const c={};return e.forEach(r=>{const t=r.split("/");let u=c;t.forEach(f=>{u[f]||(u[f]={}),u=u[f]})}),te(c,[])},se=e=>ce(e),le=e=>{var f,i,d,A,U,x,o;const c=X((i=(f=l.cloneDeep(e))==null?void 0:f.replace("(","("))==null?void 0:i.replace(")",")")),p=(A=(d=l.cloneDeep(c))==null?void 0:d.filter(s=>!s.includes("/*")))==null?void 0:A.map(s=>Y(s)),r=re(p),t=[];(U=l.cloneDeep(r))==null||U.forEach(s=>{var $,n,a,g,k,E,J,M,N;($=C.viewMainDict)!=null&&$.find(y=>{var D,m;return((D=y==null?void 0:y.key)==null?void 0:D.toUpperCase())===((m=s==null?void 0:s.key)==null?void 0:m.toUpperCase())})?t.push({comp:((a=(n=C.viewMainDict)==null?void 0:n.find(y=>{var D,m;return((D=y==null?void 0:y.key)==null?void 0:D.toUpperCase())===((m=s==null?void 0:s.key)==null?void 0:m.toUpperCase())}))==null?void 0:a.value)??"",name:(g=s==null?void 0:s.value)==null?void 0:g.replace(/[’]|[‘]|[']/g,""),compData:[]}):(k=C.viewChildDict)!=null&&k.find(y=>{var D,m;return((D=y==null?void 0:y.key)==null?void 0:D.toUpperCase())===((m=s==null?void 0:s.key)==null?void 0:m.toUpperCase())})&&((t==null?void 0:t.length)===0&&(E=s.key)!=null&&E.includes("Menus")&&t.push({comp:"Menu",name:"",compData:[]}),(J=t==null?void 0:t[(t==null?void 0:t.length)-1])!=null&&J.compData&&t[(t==null?void 0:t.length)-1].compData.push({key:(N=(M=C.viewChildDict)==null?void 0:M.find(y=>{var D,m;return((D=y==null?void 0:y.key)==null?void 0:D.toUpperCase())===((m=s==null?void 0:s.key)==null?void 0:m.toUpperCase())}))==null?void 0:N.value,contents:s==null?void 0:s.value}))});let u=(x=l.cloneDeep(t))==null?void 0:x.map(s=>{var $;return s!=null&&s.compData&&(s.compData=($=s==null?void 0:s.compData)==null?void 0:$.map(n=>{var a,g,k,E,J,M,N,y,D,m,T;if((n==null?void 0:n.key)==="formFlex")n.contents=((g=(a=n.contents)==null?void 0:a.replace(/[’]|[‘]|[']/g,""))==null?void 0:g.toUpperCase())!=="Vertical".toUpperCase();else if((n==null?void 0:n.key)==="groupContents")n.contents=(k=l.cloneDeep(n.contents))==null?void 0:k.map(P=>_(l.cloneDeep(P)));else if(Array.isArray(n==null?void 0:n.contents))n.contents=se(n.contents);else if(((J=(E=n==null?void 0:n.contents)==null?void 0:E.trim())!=null&&J.startsWith("[")||(N=(M=n.contents)==null?void 0:M.trim())!=null&&N.startsWith("【"))&&((D=(y=n.contents)==null?void 0:y.trim())!=null&&D.endsWith("]")||(T=(m=n.contents)==null?void 0:m.trim())!=null&&T.endsWith("】")))n.contents=S(l.cloneDeep(n.contents));else{if(!n.contents)return;n.contents=K(l.cloneDeep(n.contents))}return n})),s});return u=(o=l.cloneDeep(u))==null?void 0:o.map(s=>{var $;return(s==null?void 0:s.comp)==="Group"&&(s.compData=($=s.compData)==null?void 0:$.map(n=>{var g;let a=[];return(g=n.contents)==null||g.forEach(k=>{var E,J,M,N,y,D,m,T,P,L,V,W,q,I,F,H,z;if((E=C.viewMainDict)!=null&&E.find(h=>{var b,O,j;return((b=h==null?void 0:h.key)==null?void 0:b.toUpperCase())===((j=(O=Object.keys(k))==null?void 0:O[0])==null?void 0:j.toUpperCase())}))a.push({comp:(M=(J=C.viewMainDict)==null?void 0:J.find(h=>{var b,O,j;return((b=h==null?void 0:h.key)==null?void 0:b.toUpperCase())===((j=(O=Object.keys(k))==null?void 0:O[0])==null?void 0:j.toUpperCase())}))==null?void 0:M.value,name:(y=(N=Object.values(k))==null?void 0:N[0])==null?void 0:y.replace(/[’]|[‘]|[']/g,""),compData:[]});else if((D=C.viewChildDict)!=null&&D.find(h=>{var b,O,j;return((b=h==null?void 0:h.key)==null?void 0:b.toUpperCase())===((j=(O=Object.keys(k))==null?void 0:O[0])==null?void 0:j.toUpperCase())})){if((a==null?void 0:a.length)===0)return;(m=a==null?void 0:a[(a==null?void 0:a.length)-1])!=null&&m.compData&&a[(a==null?void 0:a.length)-1].compData.push({key:(P=(T=C.viewChildDict)==null?void 0:T.find(h=>{var b,O,j;return((b=h==null?void 0:h.key)==null?void 0:b.toUpperCase())===((j=(O=Object.keys(k))==null?void 0:O[0])==null?void 0:j.toUpperCase())}))==null?void 0:P.value,contents:(L=Object.values(k))==null?void 0:L[0]})}else if((W=(V=Object.keys(k))==null?void 0:V[0])!=null&&W.includes("$")){const h=(I=(q=Object.keys(l.cloneDeep(k)))==null?void 0:q[0])==null?void 0:I.split("$");a[(a==null?void 0:a.length)-1].compData.push({key:(H=(F=C.viewChildDict)==null?void 0:F.find(b=>{var O,j;return((O=b==null?void 0:b.key)==null?void 0:O.toUpperCase())===((j=h==null?void 0:h[0])==null?void 0:j.toUpperCase())}))==null?void 0:H.value,contents:(z=Object.values(k))==null?void 0:z[0],selectLabel:h==null?void 0:h[1]})}return k}),n.contents=a,n})),s}),u};exports.expandNewStringToJson=le;