ss-component-new 1.1.736 → 1.1.738

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 (72) hide show
  1. package/dist/array-B43Itsl4.cjs +11 -0
  2. package/dist/{array-D6kId-he.js → array-BF0dS7tS.js} +56 -56
  3. package/dist/{index-DVxE_kLG.js → index-B0Lq4k8r.js} +6 -6
  4. package/dist/{index-C5OQnEmC.cjs → index-BCnYb4bQ.cjs} +1 -1
  5. package/dist/{index-Cg6FQWlC.js → index-BIcIXQOL.js} +1214 -1202
  6. package/dist/{index-D0-Pgt4u.cjs → index-BLOByaIp.cjs} +1 -1
  7. package/dist/{index-oWY_tQXM.js → index-BQ2ZNTnO.js} +4 -4
  8. package/dist/{index-xRzAubsX.js → index-BSyBB5-q.js} +1 -1
  9. package/dist/{index-Clp1c8_6.cjs → index-BZn8qg15.cjs} +1 -1
  10. package/dist/{index-BSxxZchx.js → index-BeT3E7zn.js} +2 -2
  11. package/dist/index-BgZfE3DM.cjs +6 -0
  12. package/dist/{index-qvI5ZTYb.cjs → index-Bi8qPffZ.cjs} +1 -1
  13. package/dist/{index-C8A5ITKZ.cjs → index-BpCxVNMP.cjs} +1 -1
  14. package/dist/{index-CagbzA_u.js → index-BuQr_u_7.js} +1910 -1911
  15. package/dist/{index-BvA4hL-w.cjs → index-BwJEcVYd.cjs} +1 -1
  16. package/dist/{index-wFTbYxsW.cjs → index-C8RnM170.cjs} +1 -1
  17. package/dist/{index-DRlLBTUN.cjs → index-CB2VrfM6.cjs} +1 -1
  18. package/dist/{index-D2UMjWv5.js → index-CQEN5hMG.js} +1 -1
  19. package/dist/{index-CmhKiP5S.js → index-CTleV-te.js} +2 -2
  20. package/dist/{index-CvesY00D.js → index-CbkPGyet.js} +3 -3
  21. package/dist/{index-D3YxxadH.cjs → index-CpQ5HyQn.cjs} +1 -1
  22. package/dist/{index-CTt5-60h.js → index-Cyba9NHB.js} +3 -3
  23. package/dist/{index-DR-W3Mnj.js → index-D4dhCNET.js} +1 -1
  24. package/dist/{index--wotSXK5.cjs → index-D5r-9e8N.cjs} +1 -1
  25. package/dist/{index-B0yRCDl9.cjs → index-DF-A4TOU.cjs} +1 -1
  26. package/dist/{index-DTqSPCSJ.cjs → index-DF_DJb27.cjs} +1 -1
  27. package/dist/{index-CrDMARZa.cjs → index-DHOqgbYN.cjs} +1 -1
  28. package/dist/index-DHl8FgvN.cjs +1 -0
  29. package/dist/index-DQc4Vs7P.cjs +4 -0
  30. package/dist/{index-BmBCPfR9.cjs → index-DRqN4yDU.cjs} +1 -1
  31. package/dist/{index-Dza7OAIE.js → index-DRzKTjFG.js} +1 -1
  32. package/dist/{index-DRaJlUzA.cjs → index-DSUAIjmi.cjs} +1 -1
  33. package/dist/{index-BT5Q42mK.js → index-DTGPhiCV.js} +1 -1
  34. package/dist/{index-Dxi2OUj7.js → index-DYV08kEt.js} +14 -17
  35. package/dist/{index-DVqXCUuo.js → index-DZo4uFPs.js} +1 -1
  36. package/dist/{index-BciXX_qN.js → index-Ditw3Hxf.js} +1 -1
  37. package/dist/{index-CIaogPox.cjs → index-Dk1UVMyj.cjs} +1 -1
  38. package/dist/{index-DbiF5KyF.cjs → index-DklmmCf7.cjs} +1 -1
  39. package/dist/index-Dp2hVs-k.cjs +1 -0
  40. package/dist/{index-CZsXzYFb.js → index-Mr8oAU2v.js} +4 -4
  41. package/dist/{index-DNJp_-eY.js → index-OEzMLuFq.js} +2 -2
  42. package/dist/index-VeZ91-fs.js +5145 -0
  43. package/dist/{index-Zl3J2es0.cjs → index-f8ol-9SD.cjs} +1 -1
  44. package/dist/{index-Cp7S8oTH.js → index-ha9e45hW.js} +1 -1
  45. package/dist/{index-T1xqblcO.js → index-nqM4u0S-.js} +2 -2
  46. package/dist/{index-DlwjWr90.js → index-u4r71RPa.js} +2 -2
  47. package/dist/{index.vue_vue_type_script_setup_true_lang-CmL-FoQT.js → index.vue_vue_type_script_setup_true_lang-CIMG9RKy.js} +1 -1
  48. package/dist/{index.vue_vue_type_script_setup_true_lang-BvbUENbJ.cjs → index.vue_vue_type_script_setup_true_lang-JkfkJZII.cjs} +1 -1
  49. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B-9peJyl.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BFxsYhWZ.cjs} +71 -71
  50. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Cz8ATUJq.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-vE9aPHrC.js} +3574 -3568
  51. package/dist/{index.vue_vue_type_style_index_0_scoped_09a48292_lang-RnMN3EZX.cjs → index.vue_vue_type_style_index_0_scoped_c80f0a23_lang-BkvRxwWE.cjs} +10 -10
  52. package/dist/{index.vue_vue_type_style_index_0_scoped_09a48292_lang-5v4sXVSL.js → index.vue_vue_type_style_index_0_scoped_c80f0a23_lang-DsJmM491.js} +2856 -2838
  53. package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-x-PJEaHt.js → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-8mAOCV-Z.js} +4 -4
  54. package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-CW4hvQJ-.cjs → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-DOMLeX9y.cjs} +1 -1
  55. package/dist/{main-BfnRMlht.js → main-CpHJphSc.js} +3 -3
  56. package/dist/{main-CVYFMliv.cjs → main-Cvgpn8aX.cjs} +1 -1
  57. package/dist/ss-component.cjs +1 -1
  58. package/dist/ss-component.css +2 -2
  59. package/dist/ss-component.js +8 -8
  60. package/dist/ss-component2.cjs +1 -1
  61. package/dist/ss-component2.js +9 -9
  62. package/dist/{threeModel-BE8UpCoC.js → threeModel-B1ia4K3b.js} +1 -1
  63. package/dist/{threeModel-BBPV2XNT.cjs → threeModel-IV_V2vWF.cjs} +1 -1
  64. package/dist/{threeSceneView-CRLJTKst.cjs → threeSceneView-B7B19fvW.cjs} +1 -1
  65. package/dist/{threeSceneView-DYJx0EyR.js → threeSceneView-Y9yIg7LL.js} +1 -1
  66. package/package.json +1 -1
  67. package/dist/array-Be66SaRG.cjs +0 -11
  68. package/dist/index-B6Lavhm1.cjs +0 -4
  69. package/dist/index-BKGBI2-5.cjs +0 -1
  70. package/dist/index-Bi6OSO3F.cjs +0 -6
  71. package/dist/index-DURPyIKf.cjs +0 -1
  72. package/dist/index-uuo5EhJg.js +0 -5128
@@ -0,0 +1,11 @@
1
+ "use strict";const T=require("vue"),c=require("./index.vue_vue_type_style_index_1_lang-BH0_LUL8.cjs"),D=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"},{key:"MenuName",value:"Menu"},{key:"GroupName",value:"Group"},{key:"SystemKey",value:"System"}],b=[{key:"FormDirect",value:"formFlex"},{key:"Form",value:"formContent"},{key:"FormButton",value:"formButton"},{key:"FormFlex",value:"formWrap"},{key:"TableColumns",value:"header"},{key:"TableButton",value:"extraButton"},{key:"TableLineButton",value:"rowButton"},{key:"Table",value:"tableContents"},{key:"TableIndex",value:"tableIndex"},{key:"Menus",value:"menuContents"},{key:"GroupContents",value:"groupContents"}];T.ref(0);const I=l=>{var t,r;if(Array.isArray(Object.keys(l))&&((t=Object.keys(l))==null?void 0:t.length)>0){let e=[];return(r=Object.entries(l))==null||r.forEach(([s,n])=>{var y,$;let a=[];if(a.push(s),((y=Object.keys(n))==null?void 0:y.length)>0){let f=[];($=I(n))==null||$.forEach(x=>{f.push(x)}),f==null||f.forEach(x=>{a.push(x)})}e.push(a)}),e}},R=(l,t)=>{var e;let r=t;return Array.isArray(Object.keys(l))&&((e=Object.entries(l))==null||e.forEach(([s,n])=>{let a=[s];if(typeof n=="object"&&n!==null){let y=I(n);y==null||y.forEach($=>{a.push($)})}r.push(a)})),r},X=l=>{const t={};return l.forEach(e=>{const s=e.split("/");let n=t;s.forEach(a=>{n[a]||(n[a]={}),n=n[a]})}),R(t,[])},Y=l=>X(l);T.ref(0);T.ref(1);const q=l=>{let t;l.replaceAll(" ",`\r
2
+ `).replaceAll(`
3
+ `,`\r
4
+ `).includes(`\r
5
+ `)?t=l.replaceAll(`
6
+ `,`\r
7
+ `).replaceAll(" ",`\r
8
+ `).split(`\r
9
+ `).filter(s=>s.trim()!==""):t=l.replaceAll(" ",`\r
10
+ `).split(`
11
+ `).filter(s=>s.trim()!=="");const r=[];let e="";for(const s of t)s.includes("{")||e.includes("{")||s.includes("[")||e.includes("[")||s.includes("【")||e.includes("【")||s.includes("(")||e.includes("(")||s.includes("(")||e.includes("(")||s.includes("/*")||e.includes("/*")?(e+=s.trim(),c.cloneDeep(e).split("{").length-1===c.cloneDeep(e).split("}").length-1&&c.cloneDeep(e).split("【").length-1===c.cloneDeep(e).split("】").length-1&&c.cloneDeep(e).split("[").length-1===c.cloneDeep(e).split("]").length-1&&c.cloneDeep(e).split("(").length-1===c.cloneDeep(e).split(")").length-1&&c.cloneDeep(e).split("(").length-1===c.cloneDeep(e).split(")").length-1&&c.cloneDeep(e).split("/*").length-1===c.cloneDeep(e).split("*/").length-1&&e[e.length-1]!==","&&(r.push(e.replace(/\/\*[\s\S]*?\*\//g,"")),e="")):r.push(s.trim().replace(/\/\*[\s\S]*?\*\//g,""));return r},S=l=>{const[t,r]=l.split(/=(.+)/),e=t.replace(/['"]/g,"").trim(),s=r.replace(/^['"]|['"]$/g,"");return{key:e,value:s}},K=l=>{let t;l!=null&&l.includes(":")?t=l.split(":").filter(s=>s.trim()!==""):t=l==null?void 0:l.split(":").filter(s=>s.trim()!=="");const r=[];let e="";for(const s of t)s.includes("{")||e.includes("{")||s.includes("[")||e.includes("[")||s.includes("【")||e.includes("【")||s.includes("(")||e.includes("(")||s.includes("(")||e.includes("(")||s.includes("/*")||e.includes("/*")?(e=e!==""?e+":"+s.trim():s.trim(),c.cloneDeep(e).split("{").length-1===c.cloneDeep(e).split("}").length-1&&c.cloneDeep(e).split("【").length-1===c.cloneDeep(e).split("】").length-1&&c.cloneDeep(e).split("[").length-1===c.cloneDeep(e).split("]").length-1&&c.cloneDeep(e).split("(").length-1===c.cloneDeep(e).split(")").length-1&&c.cloneDeep(e).split("(").length-1===c.cloneDeep(e).split(")").length-1&&c.cloneDeep(e).split("/*").length-1===c.cloneDeep(e).split("*/").length-1&&(r.push(e.replace(/\/\*[\s\S]*?\*\//g,"")),e="")):r.push(s.trim().replace(/\/\*[\s\S]*?\*\//g,""));return r},C=l=>{var r,e,s,n,a,y,$,f;const t=(e=(r=l.split("("))==null?void 0:r[1])==null?void 0:e.trim();return((s=K(t.slice(0,t.length-1)))==null?void 0:s.length)>0?t.slice(0,t.length-1):(f=($=(y=(a=(n=l.split("("))==null?void 0:n[1])==null?void 0:a.trim())==null?void 0:y.split(")"))==null?void 0:$[0])==null?void 0:f.trim()},z=T.ref(0),L=T.ref(0),M=l=>{const t=l.trim().replace(/^'|'$/g,""),r=/((?:\$?[a-zA-Z_][a-zA-Z0-9_]*\$?\([^)]*\))|[a-zA-Z_][a-zA-Z0-9_]*)\s*=\s*(.*?)(?=\s*(?:(?:\$?[a-zA-Z_][a-zA-Z0-9_]*\$?\([^)]*\))|[a-zA-Z_][a-zA-Z0-9_]*)\s*=|$)/g,e={};let s;for(;(s=r.exec(t))!==null;){const n=s[1];let a=s[2].trim();(a.match(/\[/g)||[]).length!==(a.match(/\]/g)||[]).length&&(a=a==null?void 0:a.replace(/]$/,"")),e[n]?(e[n+L.value]&&L.value++,e[n+L.value]=n+"="+a):e[n]=n+"="+a}return e},H=l=>{const[t,r]=l.split("=").map(n=>n.trim()),e=t.replace(/['"]/g,""),s=r.replace(/^['"]|['"]$/g,"");return{key:e,value:s}},v=l=>{var a;let t=[];const[r,e]=l.split(/=(.+)/),s=r.replace(/['"]/g,"").trim(),n=e.replace(/^['"]|['"]$/g,"");return(a=Object.values(M(n)))==null||a.forEach(y=>{t.push(H(y))}),{key:s,value:t}},Z=l=>{try{return JSON.parse(l),!0}catch{return!1}},Q=l=>{try{const t=l.replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",").replace(/:/g,":").replace(/:\s*(?=,|}|$)/g,': ""');if(c.cloneDeep(t).split("{").length-1>1){let r=c.cloneDeep(t).replace(/^\{(.*)\}$/,"[$1]");if(Z(r)&&!r.includes("$")||(r=r.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g,'"$1$$$2"')),Z(r)){const e=JSON.parse(r);let s=[];return e==null||e.forEach(n=>{var a;(a=Object.entries(c.cloneDeep(n)))==null||a.forEach(y=>{z.value++,s.push({id:z.value,key:(y==null?void 0:y[0])??"",value:(y==null?void 0:y[1])===""?"":y==null?void 0:y[1],width:Object.keys(c.cloneDeep(n)).length})})}),s}else return console.error("转换类型不正确:"),[]}else if(Z(t)){const r=JSON.parse(t);return Object.entries(r).map(([e,s])=>(z.value++,{id:z.value,key:e,value:s===""?"":s,width:1}))}else return t}catch(t){return console.error("转换失败:",t),[]}},w=(l,t)=>{try{if(D!=null&&D.find(r=>(r==null?void 0:r.key)===t))return JSON.parse(l.replace(/[’]|[‘]|[']/g,'"'));if(c.cloneDeep(l).split("[").length-1>1){const r=c.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(r)}else{const r=c.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",");if(Z(r)){const e=JSON.parse(r);return Array.isArray(e)?e.map(s=>({label:s})):e}else return Q(c.cloneDeep(l))}}catch(r){return console.error("解析失败:",r),l}},ee=l=>({[l==null?void 0:l.key]:w(l==null?void 0:l.value,l==null?void 0:l.key)}),le=l=>{try{if(c.cloneDeep(l).split("[").length-1>1){const t=c.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(t)}else return JSON.parse(c.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",")).map(r=>({label:r}))}catch(t){return console.error("解析失败:",t),l}},re=l=>{var t,r,e,s,n,a;try{const y=q((r=(t=c.cloneDeep(l))==null?void 0:t.replace("(","("))==null?void 0:r.replace(")",")")),$=(e=c.cloneDeep(y))==null?void 0:e.map(p=>{var o,u;let j=(u=(o=c.cloneDeep(p))==null?void 0:o.split("="))==null?void 0:u[0];return j!=null&&j.includes("GroupContents")?v(p):H(p)}),f=[];(s=c.cloneDeep($))==null||s.forEach(p=>{var j,o,u,U,d;D!=null&&D.find(m=>{var i,k;return((i=m==null?void 0:m.key)==null?void 0:i.toUpperCase())===((k=p==null?void 0:p.key)==null?void 0:k.toUpperCase())})?f.push({comp:((j=D==null?void 0:D.find(m=>{var i,k;return((i=m==null?void 0:m.key)==null?void 0:i.toUpperCase())===((k=p==null?void 0:p.key)==null?void 0:k.toUpperCase())}))==null?void 0:j.value)??"",name:(o=p==null?void 0:p.value)==null?void 0:o.replace(/[’]|[‘]|[']/g,""),compData:[]}):b!=null&&b.find(m=>{var i,k;return((i=m==null?void 0:m.key)==null?void 0:i.toUpperCase())===((k=p==null?void 0:p.key)==null?void 0:k.toUpperCase())})&&((f==null?void 0:f.length)===0&&(u=p.key)!=null&&u.includes("Menus")&&f.push({comp:"Menu",name:"",compData:[]}),(U=f==null?void 0:f[(f==null?void 0:f.length)-1])!=null&&U.compData&&f[(f==null?void 0:f.length)-1].compData.push({key:(d=b==null?void 0:b.find(m=>{var i,k;return((i=m==null?void 0:m.key)==null?void 0:i.toUpperCase())===((k=p==null?void 0:p.key)==null?void 0:k.toUpperCase())}))==null?void 0:d.value,contents:p==null?void 0:p.value}))});let x=(n=c.cloneDeep(f))==null?void 0:n.map(p=>{var j;return p!=null&&p.compData&&(p.compData=(j=p==null?void 0:p.compData)==null?void 0:j.map(o=>{var u,U,d,m,i,k,N,_,E,J,F;if((o==null?void 0:o.key)==="formFlex")o.contents=((U=(u=o.contents)==null?void 0:u.replace(/[’]|[‘]|[']/g,""))==null?void 0:U.toUpperCase())!=="Vertical".toUpperCase();else if((o==null?void 0:o.key)==="groupContents")o.contents=(d=c.cloneDeep(o.contents))==null?void 0:d.map(V=>ee(c.cloneDeep(V)));else if(((i=(m=o.contents)==null?void 0:m.trim())!=null&&i.startsWith("[")||(N=(k=o.contents)==null?void 0:k.trim())!=null&&N.startsWith("【"))&&((E=(_=o.contents)==null?void 0:_.trim())!=null&&E.endsWith("]")||(F=(J=o.contents)==null?void 0:J.trim())!=null&&F.endsWith("】")))o.contents=le(c.cloneDeep(o.contents));else{if(!o.contents)return;o.contents=Q(c.cloneDeep(o.contents))}return o})),p});return x=(a=c.cloneDeep(x))==null?void 0:a.map(p=>{var j;return(p==null?void 0:p.comp)==="Group"&&(p.compData=(j=p.compData)==null?void 0:j.map(o=>{var U;let u=[];return(U=o.contents)==null||U.forEach(d=>{var m,i,k,N,_,E,J,F,V,P,B,W;if(D!=null&&D.find(h=>{var g,A,O;return((g=h==null?void 0:h.key)==null?void 0:g.toUpperCase())===((O=(A=Object.keys(d))==null?void 0:A[0])==null?void 0:O.toUpperCase())}))u.push({comp:(m=D==null?void 0:D.find(h=>{var g,A,O;return((g=h==null?void 0:h.key)==null?void 0:g.toUpperCase())===((O=(A=Object.keys(d))==null?void 0:A[0])==null?void 0:O.toUpperCase())}))==null?void 0:m.value,name:(k=(i=Object.values(d))==null?void 0:i[0])==null?void 0:k.replace(/[’]|[‘]|[']/g,""),compData:[]});else if(b!=null&&b.find(h=>{var g,A,O;return((g=h==null?void 0:h.key)==null?void 0:g.toUpperCase())===((O=(A=Object.keys(d))==null?void 0:A[0])==null?void 0:O.toUpperCase())})){if((u==null?void 0:u.length)===0)return;(N=u==null?void 0:u[(u==null?void 0:u.length)-1])!=null&&N.compData&&u[(u==null?void 0:u.length)-1].compData.push({key:(_=b==null?void 0:b.find(h=>{var g,A,O;return((g=h==null?void 0:h.key)==null?void 0:g.toUpperCase())===((O=(A=Object.keys(d))==null?void 0:A[0])==null?void 0:O.toUpperCase())}))==null?void 0:_.value,contents:(E=Object.values(d))==null?void 0:E[0]})}else if((F=(J=Object.keys(d))==null?void 0:J[0])!=null&&F.includes("$")){const h=(P=(V=Object.keys(c.cloneDeep(d)))==null?void 0:V[0])==null?void 0:P.split("$");u[(u==null?void 0:u.length)-1].compData.push({key:(B=b==null?void 0:b.find(g=>{var A,O;return((A=g==null?void 0:g.key)==null?void 0:A.toUpperCase())===((O=h==null?void 0:h[0])==null?void 0:O.toUpperCase())}))==null?void 0:B.value,contents:(W=Object.values(d))==null?void 0:W[0],selectLabel:h==null?void 0:h[1]})}return d}),o.contents=u,o})),p}),x}catch{return!1}},se=l=>re(l),G=T.ref(0),te=l=>l.reduce((r,e)=>{var n,a;const s=Object.values(r);return(((n=Object.keys(r))==null?void 0:n.length)===0||s[s.length-1].length>=(e==null?void 0:e.width))&&(r[G.value]=[],G.value++),r[G.value-1].push(e),((a=Object.keys(r))==null?void 0:a.length)===(e==null?void 0:e.width)&&(r[G.value]=[],G.value++),r},{});exports.arrayToNumberArray=te;exports.contentTrans=K;exports.contentTransArray=q;exports.expandStringToJson=se;exports.getContentValue=C;exports.menuArray=Y;exports.parseGroupValue=S;
@@ -73,39 +73,39 @@ const K = (r) => {
73
73
  if (Array.isArray(Object.keys(r)) && ((t = Object.keys(r)) == null ? void 0 : t.length) > 0) {
74
74
  let e = [];
75
75
  return (l = Object.entries(r)) == null || l.forEach(([s, p]) => {
76
- var h, U;
77
- let n = [];
78
- if (n.push(s), ((h = Object.keys(p)) == null ? void 0 : h.length) > 0) {
79
- let y = [];
76
+ var y, U;
77
+ let u = [];
78
+ if (u.push(s), ((y = Object.keys(p)) == null ? void 0 : y.length) > 0) {
79
+ let h = [];
80
80
  (U = K(p)) == null || U.forEach((N) => {
81
- y.push(N);
82
- }), y == null || y.forEach((N) => {
83
- n.push(N);
81
+ h.push(N);
82
+ }), h == null || h.forEach((N) => {
83
+ u.push(N);
84
84
  });
85
85
  }
86
- e.push(n);
86
+ e.push(u);
87
87
  }), e;
88
88
  }
89
89
  }, Q = (r, t) => {
90
90
  var e;
91
91
  let l = t;
92
92
  return Array.isArray(Object.keys(r)) && ((e = Object.entries(r)) == null || e.forEach(([s, p]) => {
93
- let n = [s];
93
+ let u = [s];
94
94
  if (typeof p == "object" && p !== null) {
95
- let h = K(p);
96
- h == null || h.forEach((U) => {
97
- n.push(U);
95
+ let y = K(p);
96
+ y == null || y.forEach((U) => {
97
+ u.push(U);
98
98
  });
99
99
  }
100
- l.push(n);
100
+ l.push(u);
101
101
  })), l;
102
102
  }, R = (r) => {
103
103
  const t = {};
104
104
  return r.forEach((e) => {
105
105
  const s = e.split("/");
106
106
  let p = t;
107
- s.forEach((n) => {
108
- p[n] || (p[n] = {}), p = p[n];
107
+ s.forEach((u) => {
108
+ p[u] || (p[u] = {}), p = p[u];
109
109
  });
110
110
  }), Q(t, []);
111
111
  }, le = (r) => R(r);
@@ -141,27 +141,27 @@ const X = (r) => {
141
141
  s.includes("{") || e.includes("{") || s.includes("[") || e.includes("[") || s.includes("【") || e.includes("【") || s.includes("(") || e.includes("(") || s.includes("(") || e.includes("(") || s.includes("/*") || e.includes("/*") ? (e = e !== "" ? e + ":" + s.trim() : s.trim(), a(e).split("{").length - 1 === a(e).split("}").length - 1 && a(e).split("【").length - 1 === a(e).split("】").length - 1 && a(e).split("[").length - 1 === a(e).split("]").length - 1 && a(e).split("(").length - 1 === a(e).split(")").length - 1 && a(e).split("(").length - 1 === a(e).split(")").length - 1 && a(e).split("/*").length - 1 === a(e).split("*/").length - 1 && (l.push(e.replace(/\/\*[\s\S]*?\*\//g, "")), e = "")) : l.push(s.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
142
142
  return l;
143
143
  }, te = (r) => {
144
- var l, e, s, p, n, h, U, y;
144
+ var l, e, s, p, u, y, U, h;
145
145
  const t = (e = (l = r.split("(")) == null ? void 0 : l[1]) == null ? void 0 : e.trim();
146
- return ((s = Y(t.slice(0, t.length - 1))) == null ? void 0 : s.length) > 0 ? t.slice(0, t.length - 1) : (y = (U = (h = (n = (p = r.split("(")) == null ? void 0 : p[1]) == null ? void 0 : n.trim()) == null ? void 0 : h.split(")")) == null ? void 0 : U[0]) == null ? void 0 : y.trim();
146
+ return ((s = Y(t.slice(0, t.length - 1))) == null ? void 0 : s.length) > 0 ? t.slice(0, t.length - 1) : (h = (U = (y = (u = (p = r.split("(")) == null ? void 0 : p[1]) == null ? void 0 : u.trim()) == null ? void 0 : y.split(")")) == null ? void 0 : U[0]) == null ? void 0 : h.trim();
147
147
  }, L = E(0), V = E(0), S = (r) => {
148
148
  const t = r.trim().replace(/^'|'$/g, ""), l = /((?:\$?[a-zA-Z_][a-zA-Z0-9_]*\$?\([^)]*\))|[a-zA-Z_][a-zA-Z0-9_]*)\s*=\s*(.*?)(?=\s*(?:(?:\$?[a-zA-Z_][a-zA-Z0-9_]*\$?\([^)]*\))|[a-zA-Z_][a-zA-Z0-9_]*)\s*=|$)/g, e = {};
149
149
  let s;
150
150
  for (; (s = l.exec(t)) !== null; ) {
151
151
  const p = s[1];
152
- let n = s[2].trim();
153
- (n.match(/\[/g) || []).length !== (n.match(/\]/g) || []).length && (n = n == null ? void 0 : n.replace(/]$/, "")), e[p] ? (e[p + V.value] && V.value++, e[p + V.value] = p + "=" + n) : e[p] = p + "=" + n;
152
+ let u = s[2].trim();
153
+ (u.match(/\[/g) || []).length !== (u.match(/\]/g) || []).length && (u = u == null ? void 0 : u.replace(/]$/, "")), e[p] ? (e[p + V.value] && V.value++, e[p + V.value] = p + "=" + u) : e[p] = p + "=" + u;
154
154
  }
155
155
  return e;
156
156
  }, H = (r) => {
157
157
  const [t, l] = r.split("=").map((p) => p.trim()), e = t.replace(/['"]/g, ""), s = l.replace(/^['"]|['"]$/g, "");
158
158
  return { key: e, value: s };
159
159
  }, D = (r) => {
160
- var n;
160
+ var u;
161
161
  let t = [];
162
162
  const [l, e] = r.split(/=(.+)/), s = l.replace(/['"]/g, "").trim(), p = e.replace(/^['"]|['"]$/g, "");
163
- return (n = Object.values(S(p))) == null || n.forEach((h) => {
164
- t.push(H(h));
163
+ return (u = Object.values(S(p))) == null || u.forEach((y) => {
164
+ t.push(H(y));
165
165
  }), { key: s, value: t };
166
166
  }, P = (r) => {
167
167
  try {
@@ -178,12 +178,12 @@ const X = (r) => {
178
178
  const e = JSON.parse(l);
179
179
  let s = [];
180
180
  return e == null || e.forEach((p) => {
181
- var n;
182
- (n = Object.entries(a(p))) == null || n.forEach((h) => {
181
+ var u;
182
+ (u = Object.entries(a(p))) == null || u.forEach((y) => {
183
183
  L.value++, s.push({
184
184
  id: L.value,
185
- key: (h == null ? void 0 : h[0]) ?? "",
186
- value: (h == null ? void 0 : h[1]) === "" ? "" : h == null ? void 0 : h[1],
185
+ key: (y == null ? void 0 : y[0]) ?? "",
186
+ value: (y == null ? void 0 : y[1]) === "" ? "" : y == null ? void 0 : y[1],
187
187
  // 如果值为空,则key设为空字符串,否则保留原值
188
188
  width: Object.keys(a(p)).length
189
189
  });
@@ -205,7 +205,7 @@ const X = (r) => {
205
205
  } catch (t) {
206
206
  return console.error("转换失败:", t), [];
207
207
  }
208
- }, C = (r, t) => {
208
+ }, M = (r, t) => {
209
209
  try {
210
210
  if (A != null && A.find((l) => (l == null ? void 0 : l.key) === t))
211
211
  return JSON.parse(r.replace(/[’]|[‘]|[']/g, '"'));
@@ -223,7 +223,7 @@ const X = (r) => {
223
223
  } catch (l) {
224
224
  return console.error("解析失败:", l), r;
225
225
  }
226
- }, M = (r) => ({ [r == null ? void 0 : r.key]: C(r == null ? void 0 : r.value, r == null ? void 0 : r.key) }), v = (r) => {
226
+ }, C = (r) => ({ [r == null ? void 0 : r.key]: M(r == null ? void 0 : r.value, r == null ? void 0 : r.key) }), v = (r) => {
227
227
  try {
228
228
  if (a(r).split("[").length - 1 > 1) {
229
229
  const t = a(r).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
@@ -234,63 +234,63 @@ const X = (r) => {
234
234
  return console.error("解析失败:", t), r;
235
235
  }
236
236
  }, w = (r) => {
237
- var t, l, e, s, p, n;
237
+ var t, l, e, s, p, u;
238
238
  try {
239
- const h = X((l = (t = a(r)) == null ? void 0 : t.replace("(", "(")) == null ? void 0 : l.replace(")", ")")), U = (e = a(h)) == null ? void 0 : e.map((c) => {
240
- var u, o;
241
- let $ = (o = (u = a(c)) == null ? void 0 : u.split("=")) == null ? void 0 : o[0];
239
+ const y = X((l = (t = a(r)) == null ? void 0 : t.replace("(", "(")) == null ? void 0 : l.replace(")", ")")), U = (e = a(y)) == null ? void 0 : e.map((c) => {
240
+ var n, o;
241
+ let $ = (o = (n = a(c)) == null ? void 0 : n.split("=")) == null ? void 0 : o[0];
242
242
  return $ != null && $.includes("GroupContents") ? D(c) : H(c);
243
- }), y = [];
243
+ }), h = [];
244
244
  (s = a(U)) == null || s.forEach((c) => {
245
- var $, u, o, x, d;
245
+ var $, n, o, x, d;
246
246
  A != null && A.find((f) => {
247
247
  var i, k;
248
248
  return ((i = f == null ? void 0 : f.key) == null ? void 0 : i.toUpperCase()) === ((k = c == null ? void 0 : c.key) == null ? void 0 : k.toUpperCase());
249
- }) ? y.push({
249
+ }) ? h.push({
250
250
  comp: (($ = A == null ? void 0 : A.find((f) => {
251
251
  var i, k;
252
252
  return ((i = f == null ? void 0 : f.key) == null ? void 0 : i.toUpperCase()) === ((k = c == null ? void 0 : c.key) == null ? void 0 : k.toUpperCase());
253
253
  })) == null ? void 0 : $.value) ?? "",
254
- name: (u = c == null ? void 0 : c.value) == null ? void 0 : u.replace(/[’]|[‘]|[']/g, ""),
254
+ name: (n = c == null ? void 0 : c.value) == null ? void 0 : n.replace(/[’]|[‘]|[']/g, ""),
255
255
  compData: []
256
256
  }) : b != null && b.find((f) => {
257
257
  var i, k;
258
258
  return ((i = f == null ? void 0 : f.key) == null ? void 0 : i.toUpperCase()) === ((k = c == null ? void 0 : c.key) == null ? void 0 : k.toUpperCase());
259
- }) && ((y == null ? void 0 : y.length) === 0 && (o = c.key) != null && o.includes("Menus") && y.push({
259
+ }) && ((h == null ? void 0 : h.length) === 0 && (o = c.key) != null && o.includes("Menus") && h.push({
260
260
  comp: "Menu",
261
261
  name: "",
262
262
  compData: []
263
- }), (x = y == null ? void 0 : y[(y == null ? void 0 : y.length) - 1]) != null && x.compData && y[(y == null ? void 0 : y.length) - 1].compData.push({
263
+ }), (x = h == null ? void 0 : h[(h == null ? void 0 : h.length) - 1]) != null && x.compData && h[(h == null ? void 0 : h.length) - 1].compData.push({
264
264
  key: (d = b == null ? void 0 : b.find((f) => {
265
265
  var i, k;
266
266
  return ((i = f == null ? void 0 : f.key) == null ? void 0 : i.toUpperCase()) === ((k = c == null ? void 0 : c.key) == null ? void 0 : k.toUpperCase());
267
267
  })) == null ? void 0 : d.value,
268
268
  contents: c == null ? void 0 : c.value
269
269
  }));
270
- }), console.log("newContents", y);
271
- let N = (p = a(y)) == null ? void 0 : p.map((c) => {
270
+ });
271
+ let N = (p = a(h)) == null ? void 0 : p.map((c) => {
272
272
  var $;
273
- return c != null && c.compData && (c.compData = ($ = c == null ? void 0 : c.compData) == null ? void 0 : $.map((u) => {
273
+ return c != null && c.compData && (c.compData = ($ = c == null ? void 0 : c.compData) == null ? void 0 : $.map((n) => {
274
274
  var o, x, d, f, i, k, T, J, F, z, G;
275
- if ((u == null ? void 0 : u.key) === "formFlex")
276
- u.contents = ((x = (o = u.contents) == null ? void 0 : o.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : x.toUpperCase()) !== "Vertical".toUpperCase();
277
- else if ((u == null ? void 0 : u.key) === "groupContents")
278
- u.contents = (d = a(u.contents)) == null ? void 0 : d.map((_) => M(a(_)));
279
- else if (((i = (f = u.contents) == null ? void 0 : f.trim()) != null && i.startsWith("[") || (T = (k = u.contents) == null ? void 0 : k.trim()) != null && T.startsWith("【")) && ((F = (J = u.contents) == null ? void 0 : J.trim()) != null && F.endsWith("]") || (G = (z = u.contents) == null ? void 0 : z.trim()) != null && G.endsWith("】")))
280
- u.contents = v(a(u.contents));
275
+ if ((n == null ? void 0 : n.key) === "formFlex")
276
+ n.contents = ((x = (o = n.contents) == null ? void 0 : o.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : x.toUpperCase()) !== "Vertical".toUpperCase();
277
+ else if ((n == null ? void 0 : n.key) === "groupContents")
278
+ n.contents = (d = a(n.contents)) == null ? void 0 : d.map((_) => C(a(_)));
279
+ else if (((i = (f = n.contents) == null ? void 0 : f.trim()) != null && i.startsWith("[") || (T = (k = n.contents) == null ? void 0 : k.trim()) != null && T.startsWith("【")) && ((F = (J = n.contents) == null ? void 0 : J.trim()) != null && F.endsWith("]") || (G = (z = n.contents) == null ? void 0 : z.trim()) != null && G.endsWith("】")))
280
+ n.contents = v(a(n.contents));
281
281
  else {
282
- if (!u.contents) return;
283
- u.contents = q(a(u.contents));
282
+ if (!n.contents) return;
283
+ n.contents = q(a(n.contents));
284
284
  }
285
- return u;
285
+ return n;
286
286
  })), c;
287
287
  });
288
- return N = (n = a(N)) == null ? void 0 : n.map((c) => {
288
+ return N = (u = a(N)) == null ? void 0 : u.map((c) => {
289
289
  var $;
290
- return (c == null ? void 0 : c.comp) === "Group" && (c.compData = ($ = c.compData) == null ? void 0 : $.map((u) => {
290
+ return (c == null ? void 0 : c.comp) === "Group" && (c.compData = ($ = c.compData) == null ? void 0 : $.map((n) => {
291
291
  var x;
292
292
  let o = [];
293
- return (x = u.contents) == null || x.forEach((d) => {
293
+ return (x = n.contents) == null || x.forEach((d) => {
294
294
  var f, i, k, T, J, F, z, G, _, B, W, I;
295
295
  if (A != null && A.find((m) => {
296
296
  var g, O, j;
@@ -328,16 +328,16 @@ const X = (r) => {
328
328
  });
329
329
  }
330
330
  return d;
331
- }), u.contents = o, u;
331
+ }), n.contents = o, n;
332
332
  })), c;
333
333
  }), N;
334
334
  } catch {
335
335
  return !1;
336
336
  }
337
337
  }, ae = (r) => w(r), Z = E(0), ce = (r) => r.reduce((l, e) => {
338
- var p, n;
338
+ var p, u;
339
339
  const s = Object.values(l);
340
- return (((p = Object.keys(l)) == null ? void 0 : p.length) === 0 || s[s.length - 1].length >= (e == null ? void 0 : e.width)) && (l[Z.value] = [], Z.value++), l[Z.value - 1].push(e), ((n = Object.keys(l)) == null ? void 0 : n.length) === (e == null ? void 0 : e.width) && (l[Z.value] = [], Z.value++), l;
340
+ return (((p = Object.keys(l)) == null ? void 0 : p.length) === 0 || s[s.length - 1].length >= (e == null ? void 0 : e.width)) && (l[Z.value] = [], Z.value++), l[Z.value - 1].push(e), ((u = Object.keys(l)) == null ? void 0 : u.length) === (e == null ? void 0 : e.width) && (l[Z.value] = [], Z.value++), l;
341
341
  }, {});
342
342
  export {
343
343
  ce as a,
@@ -1,15 +1,15 @@
1
1
  import { watch as u, onMounted as g, resolveComponent as C, createElementBlock as S, openBlock as B, createVNode as v } from "vue";
2
- import "./index-uuo5EhJg.js";
2
+ import "./index-VeZ91-fs.js";
3
3
  import { a as I } from "./index.vue_vue_type_style_index_1_lang-D63h0xfu.js";
4
- import "./array-D6kId-he.js";
4
+ import "./array-BF0dS7tS.js";
5
5
  import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- import "./index.vue_vue_type_style_index_0_scoped_c81d0427_lang-x-PJEaHt.js";
7
- import "./index.vue_vue_type_style_index_0_scoped_09a48292_lang-5v4sXVSL.js";
6
+ import "./index.vue_vue_type_style_index_0_scoped_c81d0427_lang-8mAOCV-Z.js";
7
+ import "./index.vue_vue_type_style_index_0_scoped_c80f0a23_lang-DsJmM491.js";
8
8
  import "./index-BHtNKL1L.js";
9
- import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Cz8ATUJq.js";
9
+ import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-vE9aPHrC.js";
10
10
  import "./index-DFIWQwMZ.js";
11
11
  import "./STLLoader-DofhZbOw.js";
12
- import "./index-CagbzA_u.js";
12
+ import "./index-BuQr_u_7.js";
13
13
  import "./index-DuxCa98T.js";
14
14
  import "vue-router";
15
15
  import "./index-aPfPG1ol.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index.vue_vue_type_style_index_1_lang-BH0_LUL8.cjs"),f=require("./index-Bi6OSO3F.cjs"),r=require("./index-Bxw2nNk2.cjs"),C=require("./index-BKUqLOwQ.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=u.useMenuState(u.pinia),{menus:_}=u.storeToRefs(m),p=l.ref([]),c=async()=>{var i,t,n,a;const e=await C.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey")}});if(((i=e==null?void 0:e.data)==null?void 0:i.type)==="success"){let o=(n=(t=e==null?void 0:e.data)==null?void 0:t.result)==null?void 0:n.map(s=>s);return o=(a=u.cloneDeep(o))==null?void 0:a.map(s=>{var d;const b=Object.values((d=s==null?void 0:s.value)==null?void 0:d.tableData);return b.unshift({id:s==null?void 0:s.id}),b}),o}else return[]};l.onMounted(async()=>{var n;const e=await c(),t=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(n=u.cloneDeep(_.value))==null?void 0:n.map(a=>({label:a==null?void 0:a.title,value:a==null?void 0:a.title})),prop:"主菜单名称"},{label:"隐藏三维显示",formType:"Switch",value:!1,prop:"隐藏三维显示"},{label:"操作"}]},{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}];t.push({key:"tableContents",contents:e}),p.value=t});const y=e=>{(e==null?void 0:e.buttonName)==="新增"?r.addMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="删除"?r.deleteMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="编辑"&&r.fixMenuContent(e==null?void 0:e.singleContent)};return(e,i)=>(l.openBlock(),l.createElementBlock("div",v,[l.createVNode(f.ssTable,{itemData:p.value,class:"table-content",onChange:y},null,8,["itemData"])]))}}),h=g._export_sfc(x,[["__scopeId","data-v-26f5cadc"]]);exports.default=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index.vue_vue_type_style_index_1_lang-BH0_LUL8.cjs"),f=require("./index-BgZfE3DM.cjs"),r=require("./index-Bxw2nNk2.cjs"),C=require("./index-BKUqLOwQ.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=u.useMenuState(u.pinia),{menus:_}=u.storeToRefs(m),p=l.ref([]),c=async()=>{var i,t,n,a;const e=await C.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey")}});if(((i=e==null?void 0:e.data)==null?void 0:i.type)==="success"){let o=(n=(t=e==null?void 0:e.data)==null?void 0:t.result)==null?void 0:n.map(s=>s);return o=(a=u.cloneDeep(o))==null?void 0:a.map(s=>{var d;const b=Object.values((d=s==null?void 0:s.value)==null?void 0:d.tableData);return b.unshift({id:s==null?void 0:s.id}),b}),o}else return[]};l.onMounted(async()=>{var n;const e=await c(),t=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(n=u.cloneDeep(_.value))==null?void 0:n.map(a=>({label:a==null?void 0:a.title,value:a==null?void 0:a.title})),prop:"主菜单名称"},{label:"隐藏三维显示",formType:"Switch",value:!1,prop:"隐藏三维显示"},{label:"操作"}]},{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}];t.push({key:"tableContents",contents:e}),p.value=t});const y=e=>{(e==null?void 0:e.buttonName)==="新增"?r.addMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="删除"?r.deleteMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="编辑"&&r.fixMenuContent(e==null?void 0:e.singleContent)};return(e,i)=>(l.openBlock(),l.createElementBlock("div",v,[l.createVNode(f.ssTable,{itemData:p.value,class:"table-content",onChange:y},null,8,["itemData"])]))}}),h=g._export_sfc(x,[["__scopeId","data-v-26f5cadc"]]);exports.default=h;