ss-component-new 1.1.719 → 1.1.721
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.
- package/dist/{array-CV47iU9i.js → array-BcN1bdmj.js} +1 -1
- package/dist/{array-C_A3GqHl.cjs → array-CgJ6luvr.cjs} +1 -1
- package/dist/icons/svg/colFilter.svg +1 -0
- package/dist/{index-Bdy9rjka.js → index-50HGqFLU.js} +3 -3
- package/dist/{index-DmPffoKv.cjs → index-B9SUJ4Zu.cjs} +1 -1
- package/dist/index-BAdqe1Qk.cjs +1 -0
- package/dist/{index-CpnXGkvz.js → index-BHBGoWFE.js} +4 -4
- package/dist/{index-BCZ59Y4K.js → index-BHZ56TUj.js} +1 -0
- package/dist/{index-2p69g4HY.cjs → index-BKUqLOwQ.cjs} +5 -5
- package/dist/{index-Ca4sbgf-.cjs → index-BV3gIolN.cjs} +1 -1
- package/dist/{index-D8qVbjll.js → index-BYl3ZfMW.js} +2 -2
- package/dist/{index-ChQSWsp7.js → index-B_GAWj5p.js} +3 -3
- package/dist/{index-BU8nVgIT.js → index-B_h8SY5M.js} +1 -1
- package/dist/{index-juDP8c2k.js → index-BaJiGLkX.js} +1 -1
- package/dist/{index-HqICPCny.cjs → index-BaOJ2FlA.cjs} +1 -1
- package/dist/{index-BOZohpjd.cjs → index-Be3sB22h.cjs} +1 -1
- package/dist/{index-h0An6eiK.js → index-Bidjqofb.js} +2915 -2859
- package/dist/{index-BF1d01SM.js → index-Bjlg9wnM.js} +6 -6
- package/dist/{index-Bg2iV3ln.cjs → index-BkryeHcb.cjs} +1 -1
- package/dist/{index-BcNQOPYD.js → index-Bl6RAbAc.js} +2 -2
- package/dist/{index-47QrfG4u.cjs → index-Bwj8bU3w.cjs} +13 -13
- package/dist/{index-BrQVl4Zd.cjs → index-Bxw2nNk2.cjs} +1 -1
- package/dist/{index-DpzKMBIi.js → index-C08wAtul.js} +4 -4
- package/dist/{index-iGVtZ2hS.cjs → index-C1IBXnyt.cjs} +1 -1
- package/dist/{index-s4l8lwWV.js → index-C2KiCWir.js} +3 -3
- package/dist/{index-DwlLvQ7U.cjs → index-C5OJDom_.cjs} +1 -1
- package/dist/{index-Bu_OR9tS.js → index-C8KgQTfH.js} +8109 -7955
- package/dist/{index-C6SI8hvh.cjs → index-CAV4FH8Z.cjs} +1 -1
- package/dist/{index-XuxfvwKY.js → index-CIPfJ4V5.js} +6 -6
- package/dist/{index-VBY1u2Ig.cjs → index-CLaUio0q.cjs} +1 -1
- package/dist/{index-BAdkTvA0.cjs → index-CSfd9Nvs.cjs} +1 -1
- package/dist/index-CVDOumPC.js +514 -0
- package/dist/{index-cBErNLtY.js → index-Cd71tWDj.js} +3 -3
- package/dist/{index-DgPw8IAq.cjs → index-CeOHn1Vk.cjs} +1 -1
- package/dist/{index-B4D4I9Ei.cjs → index-Cx320XRD.cjs} +1 -1
- package/dist/index-CyCiiIH7.js +99 -0
- package/dist/{index-DSPdpu8p.cjs → index-CyTykQhT.cjs} +1 -1
- package/dist/index-D4nn1MaA.cjs +1 -0
- package/dist/{index-C_1UdyuB.cjs → index-D9G0MN0h.cjs} +1 -1
- package/dist/{index-KbmAaWgt.cjs → index-D9HFpsnH.cjs} +1 -1
- package/dist/{index-D-t9ZfYS.js → index-DFwEXQv-.js} +4 -4
- package/dist/{index-Ct0CmWjo.js → index-DIlWcnao.js} +1 -1
- package/dist/{index-CatyTybI.js → index-DJ2FxFvx.js} +1 -1
- package/dist/{index-BZkWytFH.js → index-DLPqu104.js} +6 -6
- package/dist/{index-8idzhcUq.cjs → index-DOn8yEZJ.cjs} +185 -185
- package/dist/{index-C9Nq7qdZ.cjs → index-Dn7yNpUx.cjs} +1 -1
- package/dist/{index-B1EBZK4V.cjs → index-Dz7-jX87.cjs} +1 -1
- package/dist/{index-glKQqAZb.cjs → index-GxAWv8aU.cjs} +1 -1
- package/dist/{index-CGv_PH5k.cjs → index-VQ4mf0NG.cjs} +1 -1
- package/dist/{index-B9e8jfXC.js → index-YA8F1H22.js} +3 -3
- package/dist/{index-BP-q1C8f.js → index-di0y5Ciz.js} +663 -662
- package/dist/{index-CHlc1LGK.cjs → index-fniyUh6b.cjs} +1 -1
- package/dist/{index-62jpKG-S.js → index-onW5suua.js} +4 -4
- package/dist/{index-Ba_1AoLH.js → index-v9IlbVxb.js} +3 -3
- package/dist/{index-C2JVL00b.js → index-xSTLa8Bb.js} +108 -108
- package/dist/{index.vue_vue_type_script_setup_true_lang-D6xvhgat.js → index.vue_vue_type_script_setup_true_lang-DAIduaBX.js} +2 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-BkYehasn.cjs → index.vue_vue_type_script_setup_true_lang-De8jbnS5.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CUNGVKqd.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bn_-cql3.cjs} +57 -57
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D5Z2_TwH.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C_N41ilG.js} +1715 -1720
- package/dist/{index.vue_vue_type_style_index_0_scoped_8606206c_lang-D0Bstp43.js → index.vue_vue_type_style_index_0_scoped_8606206c_lang-BgHhMOqW.js} +16 -16
- package/dist/{index.vue_vue_type_style_index_0_scoped_8606206c_lang-B3LO5bhv.cjs → index.vue_vue_type_style_index_0_scoped_8606206c_lang-CCQ1V4Ad.cjs} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-BS8sJ53i.js → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-BajRaUap.js} +7 -7
- package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-Bk-zmumx.cjs → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-CVGFhYru.cjs} +1 -1
- package/dist/{login-C8QOZ9u0.cjs → login-DoVI1BJb.cjs} +2 -2
- package/dist/{login-BLjZKKjO.js → login-Dxsw3cch.js} +6 -2
- package/dist/{main-0XZaToNP.js → main-B5FfttkG.js} +4 -4
- package/dist/{main-zPoUljx8.cjs → main-C_jD1CK-.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +10 -10
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-8wtgLTlp.js → threeModel-BNhwg7RT.js} +3 -3
- package/dist/{threeModel-cQmQcupA.cjs → threeModel-Dwjk_uWz.cjs} +1 -1
- package/package.json +1 -1
- package/public/icons/svg/colFilter.svg +1 -0
- package/dist/index-8oaOF8hU.cjs +0 -1
- package/dist/index-B0HGgYuY.cjs +0 -1
- package/dist/index-BE-X086v.js +0 -90
- package/dist/index-QzT_XISi.js +0 -508
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bE as We, r as ue, c as At, bF as Yt, bC as qo, bG as Pr, bD as Zo, bp as Re, bq as Ye, bH as Xo, bv as Jo, d as bt, bI as Ot, bJ as He, bB as Qo, bK as me, bu as qt, bm as es, E as ts, g as ns } from "./index-
|
|
1
|
+
import { bE as We, r as ue, c as At, bF as Yt, bC as qo, bG as Pr, bD as Zo, bp as Re, bq as Ye, bH as Xo, bv as Jo, d as bt, bI as Ot, bJ as He, bB as Qo, bK as me, bu as qt, bm as es, E as ts, g as ns } from "./index-BHZ56TUj.js";
|
|
2
2
|
import { effectScope as kr, ref as Tt, markRaw as ne, toRaw as de, computed as St, isRef as pe, isReactive as qe, toRef as Fe, hasInjectionContext as rs, inject as os, getCurrentInstance as ss, reactive as us, nextTick as Zt, watch as Nr, unref as is, getCurrentScope as as, onScopeDispose as cs, toRefs as Xt } from "vue";
|
|
3
3
|
function ls(e) {
|
|
4
4
|
return e;
|
|
@@ -5214,9 +5214,13 @@ const Rl = (e) => {
|
|
|
5214
5214
|
},
|
|
5215
5215
|
loginUserInfo: {},
|
|
5216
5216
|
structureData: [],
|
|
5217
|
-
isStructureExist: !1
|
|
5217
|
+
isStructureExist: !1,
|
|
5218
|
+
systemKey: ""
|
|
5218
5219
|
}),
|
|
5219
5220
|
actions: {
|
|
5221
|
+
setSystemKey(e) {
|
|
5222
|
+
this.systemKey = e;
|
|
5223
|
+
},
|
|
5220
5224
|
setSuperAdminInfo(e) {
|
|
5221
5225
|
this.superAdminInfo = e;
|
|
5222
5226
|
},
|
|
@@ -1,8 +1,8 @@
|
|
|
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 de, b as me } from "./index-
|
|
3
|
-
import { u as ee, p as E, s as te, c as k, a as ye } from "./login-
|
|
4
|
-
import { g as fe } from "./index-
|
|
5
|
-
import { e as ge, a as he } from "./array-
|
|
2
|
+
import { m as ie, a as de, b as me } from "./index-DLPqu104.js";
|
|
3
|
+
import { u as ee, p as E, s as te, c as k, a as ye } from "./login-Dxsw3cch.js";
|
|
4
|
+
import { g as fe } from "./index-di0y5Ciz.js";
|
|
5
|
+
import { e as ge, a as he } from "./array-BcN1bdmj.js";
|
|
6
6
|
import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const x = [
|
|
8
8
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),O=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),O=require("./index-BV3gIolN.cjs"),u=require("./login-DoVI1BJb.cjs"),Y=require("./index-B9SUJ4Zu.cjs"),G=require("./array-CgJ6luvr.cjs"),K=require("./_plugin-vue_export-helper-BHFhmbuH.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"}],Z={key:0,class:"show-content"},v={class:"item-view-group"},ee={__name:"index",props:{content:String,jsonContents:Array},emits:["change"],setup(j,{emit:E}){const t=j,S=E,h=u.useModelComp(u.pinia),{itemData:p}=u.storeToRefs(h),_=e.ref([]),C=e.ref([]),T=c=>{S("change",{wholeValue:_.value,editValue:c})},x=c=>{const g=u.cloneDeep(_.value),b=g==null?void 0:g.map((d,B)=>(B===(c==null?void 0:c.index)&&(d.compData=c==null?void 0:c.contents),d));_.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 g;if(((g=t==null?void 0:t.jsonContents)==null?void 0:g.length)>0){h.setOriginalData(t==null?void 0:t.jsonContents),h.setItemData(t==null?void 0:t.jsonContents);return}if(!(t!=null&&t.content)||(t==null?void 0:t.content)==="")return;const c=G.expandStringToJson(t==null?void 0:t.content);h.setOriginalData(c),h.setItemData(c)},{deep:!0,immediate:!0});const N=c=>Y.getComponent(c);return(c,g)=>{var b;return((b=C.value)==null?void 0:b.length)>0?(e.openBlock(),e.createElementBlock("div",Z,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(d,B)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:B},[e.createElementVNode("div",v,e.toDisplayString(d.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(d.comp)),{itemData:d==null?void 0:d.compData,childItemData:d==null?void 0:d.itemChildData,key:B,onChange:T,index:B,onContentChange:x},null,40,["itemData","childItemData","index"]))]))),128))])):e.createCommentVNode("",!0)}}},te=K._export_sfc(ee,[["__scopeId","data-v-1c04adc8"]]),ne={class:"add-model-content"},oe={key:0,class:"model-import-data"},ae={class:"import-button"},le={key:0},re={key:1,class:"model-operate"},ce={class:"model-select"},se={class:"model-fill"},ue={key:2,class:"model-view ssComponent"},ie={__name:"main",props:{mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0}},emits:["change"],setup(j,{emit:E}){const t=j,S=E,h=e.ref(""),p=e.ref([]),_=e.ref(0),C=u.useModelComp(u.pinia);u.useMenuState(u.pinia);const{itemData:T,originalData:x}=u.storeToRefs(C),N=e.ref(null),c=e.ref(0),g=e.ref(""),b=()=>{_.value=window.innerWidth},d=async l=>{var i;const a=(i=u.cloneDeep(l==null?void 0:l.wholeValue))==null?void 0:i.map(o=>{var f;return(o==null?void 0:o.comp)==="Form"&&(o.compData=(f=o.compData)==null?void 0:f.map(k=>((k==null?void 0:k.key)==="formContent"&&(k.contents=G.arrayToNumberArray(k==null?void 0:k.contents)),k))),o});S("change",{originalContents:x.value,currentContents:l==null?void 0:l.wholeValue,editContent:l==null?void 0:l.editValue,stringContent:B(u.cloneDeep(l==null?void 0:l.wholeValue)),arrayToContents:a})},B=l=>{var i;let a=[];return(i=u.cloneDeep(l))==null||i.forEach(o=>{var f,k;V!=null&&V.find(n=>(n==null?void 0:n.value)===(o==null?void 0:o.comp))&&a.push(((f=V==null?void 0:V.find(n=>(n==null?void 0:n.value)===(o==null?void 0:o.comp)))==null?void 0:f.key)+"="+o.name+"/r/n"),(k=o==null?void 0:o.compData)==null||k.forEach(n=>{var I,F,$,J,A,q,M,R,L,z,W,H;if(s!=null&&s.find(m=>(m==null?void 0:m.value)===(n==null?void 0:n.key)))if(!((I=n==null?void 0:n.contents)!=null&&I.length))a.push(((F=s==null?void 0:s.find(m=>(m==null?void 0:m.value)===(n==null?void 0:n.key)))==null?void 0:F.key)+"="+(n.contents===!0?'""':"Vertical")+"/r/n");else{let m=($=n==null?void 0:n.contents)==null?void 0:$[0];if(!m)return;if(Object.keys(m).includes("label")&&Object.keys(m).includes("key")&&Object.keys(m).includes("width"))if(((A=(J=n.contents)==null?void 0:J.filter(y=>y.width!==1))==null?void 0:A.length)===0){const y=(q=u.cloneDeep(n==null?void 0:n.contents))==null?void 0:q.map(r=>({[r.label]:r.value}));a.push(((M=s==null?void 0:s.find(r=>(r==null?void 0:r.value)===(n==null?void 0:n.key)))==null?void 0:M.key)+"="+JSON.stringify(y)+"/r/n")}else{let y=[];(R=u.cloneDeep(n==null?void 0:n.contents))==null||R.reduce((r,D)=>{var P;return r[D.label]=D.key,((P=Object.keys(u.cloneDeep(r)))==null?void 0:P.length)>=D.width&&(y.push(u.cloneDeep(r)),r={}),r},{}),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(y)+"/r/n")}else if(Object.keys(m).includes("label")){const y=(z=u.cloneDeep(n==null?void 0:n.contents))==null?void 0:z.map(r=>r.label);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(y)+"/r/n")}else a.push(((H=s==null?void 0:s.find(y=>(y==null?void 0:y.value)===(n==null?void 0:n.key)))==null?void 0:H.key)+"="+JSON.stringify(n==null?void 0:n.contents)+"/r/n")}})}),JSON.stringify(a)},w=e.ref([]),Q=()=>{N.value.click()},U=l=>{const a=l.target.files[0];if(!a)return;const i=new FileReader;i.onload=o=>{try{h.value=o.target.result,w.value=X(o.target.result),c.value++}catch(f){console.error("解析失败:",f)}},i.onerror=o=>{console.error("文件读取错误:",o)},i.readAsText(a)};e.onMounted(()=>{window.addEventListener("resize",b)}),e.watch(()=>[t==null?void 0:t.content,t==null?void 0:t.jsonContents],()=>{h.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=w.value)==null?void 0:l.length)!==0&&(C.setOriginalData(w.value),C.setItemData(w.value))},{deep:!0,immediate:!0});const X=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(i){try{const f=new Function(`return ${a}`)();if(Array.isArray(f)||typeof f=="object")return f;throw new Error(`解析结果不是有效的数组或对象: ${i}`)}catch(o){throw new Error(`无法解析JSON: ${o.message}`)}}};return(l,a)=>{var i;return e.openBlock(),e.createElementBlock("div",ne,[((i=t==null?void 0:t.jsonContents)==null?void 0:i.length)===0?(e.openBlock(),e.createElementBlock("div",oe,[e.createElementVNode("div",ae,[e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:N,accept:".txt",onChange:U,style:{display:"none"}},null,544),e.createElementVNode("button",{onClick:Q,class:"import-button-content"},"导入文件"),g.value?(e.openBlock(),e.createElementBlock("span",le,e.toDisplayString(g.value),1)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),(t==null?void 0:t.mode)==="edit"?(e.openBlock(),e.createElementBlock("div",re,[e.createElementVNode("div",ce,[e.createVNode(O.modelSelect)]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:_.value},[e.createVNode(O.modelShow)])),e.createElementVNode("div",se,[e.createVNode(O.modelFill)])])):e.createCommentVNode("",!0),(t==null?void 0:t.mode)==="view"?(e.openBlock(),e.createElementBlock("div",ue,[(e.openBlock(),e.createBlock(te,{content:h.value,onChange:d,jsonContents:p.value,key:_.value},null,8,["content","jsonContents"]))])):e.createCommentVNode("",!0)])}}},de=K._export_sfc(ie,[["__scopeId","data-v-1dbc7677"]]);exports.default=de;
|
package/dist/ss-component.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),p=require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),p=require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bn_-cql3.cjs");require("./login-DoVI1BJb.cjs");require("./index-BKUqLOwQ.cjs");const s=require("./ss-component2.cjs"),o=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./main-C_jD1CK-.cjs")));o.install=e=>{e.component("ssComponent",o)};const t=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-Bwj8bU3w.cjs")).then(e=>e.index$1));t.install=e=>{e.component("ssTab",t)};const r=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BkryeHcb.cjs")));r.install=e=>{e.component("ssMenu",r)};const i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BAdqe1Qk.cjs")));i.install=e=>{e.component("ssMenuComponent",i)};const c=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-CyTykQhT.cjs")));c.install=e=>{e.component("ssCanvas",c)};const l=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-C31XRLFj.cjs")));l.install=e=>{e.component("ssFold",l)};const u=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-Be3sB22h.cjs")));u.install=e=>{e.component("ssAvatar",u)};const m=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeModel-Dwjk_uWz.cjs")));m.install=e=>{e.component("ssThree",m)};const v=[o,t,r,i,c,l,u,m],d=e=>{v.forEach(a=>{e.use(a)}),e.use(s),e.config.globalProperties.$router=s};exports.SvgIcon=p.SvgIcon;exports.router=s;exports.default=d;
|