ss-component-new 1.1.237 → 1.1.239
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-DI6hm2O5.cjs → array-D-J_e91G.cjs} +1 -1
- package/dist/{array-XiW93OPp.js → array-DAwa7XAV.js} +8 -8
- package/dist/{cloneDeep-DD6IIacv.js → cloneDeep-BcK4cO7a.js} +1 -1
- package/dist/{cloneDeep-CJYxvbkp.cjs → cloneDeep-kbsGGN_Q.cjs} +1 -1
- package/dist/{index-BfFcoIcW.js → index-3g7rW5vQ.js} +1 -1
- package/dist/{index-ItBGckSL.cjs → index-5JXCiHw3.cjs} +1 -1
- package/dist/{index-BxOh6BEJ.js → index-8hwiS85r.js} +5 -5
- package/dist/{index-Ya4rFbSY.cjs → index-B2KK3HzA.cjs} +1 -1
- package/dist/{index-DRxCMsAf.js → index-B66Qf5rw.js} +6 -6
- package/dist/{index-C0dpqsuW.js → index-B9K0EIpS.js} +5 -5
- package/dist/{index-DkotFjz2.js → index-BAWROpdj.js} +1 -1
- package/dist/{index-C4DMm-9q.cjs → index-BFPZALXc.cjs} +1 -1
- package/dist/{index-DhHo9ub3.js → index-BMrHnCTf.js} +4 -4
- package/dist/{index-Bs4dpkna.cjs → index-BOzSvFJA.cjs} +1 -1
- package/dist/{index-BYxKXFVW.cjs → index-BUga6nNK.cjs} +1 -1
- package/dist/{index-D5HzgxVF.cjs → index-BZHxtM--.cjs} +1 -1
- package/dist/{index-DIBaD8Dz.js → index-B_VMMfxb.js} +3 -3
- package/dist/{index-D0S1Fwnn.cjs → index-BdiQsOpb.cjs} +1 -1
- package/dist/index-Be4n2ecn.js +906 -0
- package/dist/{index-CnbFplgw.cjs → index-BhOckTgC.cjs} +1 -1
- package/dist/{index-BOcg5OyD.js → index-Bkc0R0j5.js} +89 -93
- package/dist/{index-CbTnDm6Y.js → index-BoA0FuEi.js} +7 -7
- package/dist/{index-xzKwlwN1.cjs → index-C3UTqVyv.cjs} +11 -11
- package/dist/{index-BoGW0rHI.js → index-C7Y_BQCw.js} +7 -7
- package/dist/{index-DrDjMudp.js → index-C8nLtJQB.js} +6 -6
- package/dist/{index-C6r0D7bs.js → index-CG01yKU1.js} +367 -353
- package/dist/{index-lSUKeup-.cjs → index-CK7nt4bL.cjs} +1 -1
- package/dist/{index-CJCpFXP6.cjs → index-CQ0bJWFx.cjs} +1 -1
- package/dist/{index-DSx-_9X6.cjs → index-CWsALJ8f.cjs} +1 -1
- package/dist/{index-BaXDQtLf.cjs → index-Cbj_oJPC.cjs} +1 -1
- package/dist/{index-Qvf8lEEi.js → index-CgxSbKBz.js} +4 -4
- package/dist/{index-C2Yo86eF.js → index-CiTgFX9o.js} +7 -7
- package/dist/{index-Dzd-BSIy.cjs → index-CoH0G-uS.cjs} +1 -1
- package/dist/{index-BvPVHCZ9.cjs → index-CrSVdnus.cjs} +1 -1
- package/dist/{index-CRFv3mU8.js → index-CrdlZPHq.js} +4 -4
- package/dist/{index-Cu4Nrk6I.js → index-D-auhS5f.js} +3 -3
- package/dist/{index-CqvUtrx4.cjs → index-D0FNjq6G.cjs} +1 -1
- package/dist/{index-XfC1YU_R.cjs → index-D0hUHQHn.cjs} +1 -1
- package/dist/{index-BjgJwjU0.js → index-DRcuI2gm.js} +4 -4
- package/dist/{index-BP6-wpOt.js → index-DX3jtjLG.js} +3 -3
- package/dist/{index-4oU6C2JI.js → index-DcymGmWj.js} +1 -1
- package/dist/{index-pdOAGERi.cjs → index-DqLOgQsT.cjs} +1 -1
- package/dist/{index-BRtYsist.js → index-DreX5xyP.js} +5 -5
- package/dist/{index-Gd5o0mO3.js → index-Du-s_IGe.js} +1 -1
- package/dist/{index-DBbaEqVU.cjs → index-DxzvUr7M.cjs} +1 -1
- package/dist/{index-Bg25SwqX.cjs → index-FX9zIOBz.cjs} +1 -1
- package/dist/{index-BR4fdQ1R.js → index-FaQ9vBep.js} +4 -4
- package/dist/{index-rKrFVhox.cjs → index-Gc1epwAE.cjs} +1 -1
- package/dist/{index-CCJsj4V5.cjs → index-GlyYi8eO.cjs} +1 -1
- package/dist/{index-DI7LyQuc.js → index-NdocPiqA.js} +9 -9
- package/dist/{index-DMKQK1ps.js → index-P_6AmAJ6.js} +1 -1
- package/dist/{index-_PQG-wQ3.cjs → index-V9D4K_Sf.cjs} +1 -1
- package/dist/index-VVRul53o.cjs +1 -0
- package/dist/{index-BTwMwAiQ.cjs → index-bC_377mt.cjs} +2 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-DUR36an7.cjs → index.vue_vue_type_script_setup_true_lang-7hOFb1P0.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CRHsd8hz.js → index.vue_vue_type_script_setup_true_lang-DVmAEsPP.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_11cfc8a8_lang-DawuGbvY.cjs → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-DI887Xui.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_11cfc8a8_lang-CND-nizm.js → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-Rrc8X2Wa.js} +6 -6
- package/dist/index.vue_vue_type_style_index_0_scoped_aefda2d8_lang-CMvvh_Fa.js +612 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_aefda2d8_lang-Df3FKHF1.cjs +1 -0
- package/dist/{login-5hYAfzY7.cjs → login-C0pHH-1V.cjs} +1 -1
- package/dist/{login-C8oHBbmr.js → login-CbLjVnvi.js} +2 -2
- package/dist/{main-B6KpGooi.js → main-DLdZKJUK.js} +6 -6
- package/dist/{main-BrPLM7nL.cjs → main-wtI2yJ--.cjs} +1 -1
- package/dist/{menu-G9lGQLbm.js → menu-CAlO6ojx.js} +4 -4
- package/dist/{menu-BCqnRbPI.cjs → menu-LlBjM6b8.cjs} +3 -3
- package/dist/{modelComp-DWhwoJ78.cjs → modelComp-Af3CYJjb.cjs} +1 -1
- package/dist/{modelComp-CYG_7mmb.js → modelComp-D9gZ6ZkE.js} +1 -1
- package/dist/obj/model.mtl +42 -0
- package/dist/obj/model.obj +26110 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +7 -7
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/package.json +1 -1
- package/public/obj/model.mtl +42 -0
- package/public/obj/model.obj +26110 -0
- package/dist/index-BeiMmjtu.js +0 -913
- package/dist/index-Ctlqzbp7.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_4d31b674_lang-C0YpKhME.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_4d31b674_lang-C6BHHnmI.js +0 -563
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as S, s as m, E as I, u as h } from "./menu-
|
|
2
|
-
import { c as K, g as A, p as v } from "./index-
|
|
1
|
+
import { d as S, s as m, E as I, u as h } from "./menu-CAlO6ojx.js";
|
|
2
|
+
import { c as K, g as A, p as v } from "./index-Du-s_IGe.js";
|
|
3
3
|
function f(e, t, r) {
|
|
4
4
|
for (const s of e) {
|
|
5
5
|
if (s[t] === r)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ref as _, watch as V, createElementBlock as C, createCommentVNode as I, openBlock as y, 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-
|
|
3
|
-
import { p as E } from "./index-
|
|
4
|
-
import { u as ee } from "./modelComp-
|
|
5
|
-
import { s as te, u as fe } from "./menu-
|
|
6
|
-
import { e as ye, g as ge, a as he } from "./array-
|
|
2
|
+
import { m as ie, a as me, b as de } from "./index-CiTgFX9o.js";
|
|
3
|
+
import { p as E } from "./index-Du-s_IGe.js";
|
|
4
|
+
import { u as ee } from "./modelComp-D9gZ6ZkE.js";
|
|
5
|
+
import { s as te, u as fe } from "./menu-CAlO6ojx.js";
|
|
6
|
+
import { e as ye, g as ge, a as he } from "./array-DAwa7XAV.js";
|
|
7
7
|
import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
-
import { c as k } from "./cloneDeep-
|
|
8
|
+
import { c as k } from "./cloneDeep-BcK4cO7a.js";
|
|
9
9
|
const x = [
|
|
10
10
|
{
|
|
11
11
|
key: "FormName",
|
|
@@ -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-BZHxtM--.cjs"),T=require("./index-CrSVdnus.cjs"),U=require("./modelComp-Af3CYJjb.cjs"),I=require("./menu-LlBjM6b8.cjs"),F=require("./array-D-J_e91G.cjs"),X=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),h=require("./cloneDeep-kbsGGN_Q.cjs"),b=[{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"}],ee={key:0,class:"show-content"},te={class:"item-view-group"},ne={__name:"index",props:{content:String,jsonContents:Array},emits:["change"],setup(j,{emit:E}){const t=j,D=E,g=U.useModelComp(T.pinia),{itemData:p}=I.storeToRefs(g),_=e.ref([]),C=e.ref([]),$=c=>{D("change",{wholeValue:_.value,editValue:c})},S=c=>{const k=h.cloneDeep(_.value),V=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=V};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=F.expandStringToJson(t==null?void 0:t.content);g.setOriginalData(c),g.setItemData(c)},{deep:!0,immediate:!0});const N=c=>F.getComponent(c);return(c,k)=>{var V;return((V=C.value)==null?void 0:V.length)>0?(e.openBlock(),e.createElementBlock("div",ee,[(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",te,e.toDisplayString(i.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(i.comp)),{itemData:i==null?void 0:i.compData,childItemData:i==null?void 0:i.itemChildData,key:B,onChange:$,index:B,onContentChange:S},null,40,["itemData","childItemData","index"]))]))),128))])):e.createCommentVNode("",!0)}}},oe=X._export_sfc(ne,[["__scopeId","data-v-1c04adc8"]]),ae={class:"add-model-content"},le={key:0,class:"model-import-data"},re={class:"import-button"},ce={key:0},se={key:1,class:"model-operate"},ue={class:"model-select"},ie={class:"model-fill"},de={key:2,class:"model-view ssComponent"},me={__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,D=E,g=e.ref(""),p=e.ref([]),_=e.ref(0),C=U.useModelComp(T.pinia);I.useMenuState(T.pinia);const{itemData:$,originalData:S}=I.storeToRefs(C),N=e.ref(null),c=e.ref(0),k=e.ref(""),V=()=>{_.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 f;return(o==null?void 0:o.comp)==="Form"&&(o.compData=(f=o.compData)==null?void 0:f.map(y=>((y==null?void 0:y.key)==="formContent"&&(y.contents=F.arrayToNumberArray(y==null?void 0:y.contents)),y))),o});D("change",{originalContents:S.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 f,y;b!=null&&b.find(n=>(n==null?void 0:n.value)===(o==null?void 0:o.comp))&&a.push(((f=b==null?void 0:b.find(n=>(n==null?void 0:n.value)===(o==null?void 0:o.comp)))==null?void 0:f.key)+"="+o.name+"/r/n"),(y=o==null?void 0:o.compData)==null||y.forEach(n=>{var J,q,A,M,R,L,z,W,H,P,G,K;if(s!=null&&s.find(d=>(d==null?void 0:d.value)===(n==null?void 0:n.key)))if(!((J=n==null?void 0:n.contents)!=null&&J.length))a.push(((q=s==null?void 0:s.find(d=>(d==null?void 0:d.value)===(n==null?void 0:n.key)))==null?void 0:q.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(((R=(M=n.contents)==null?void 0:M.filter(m=>m.width!==1))==null?void 0:R.length)===0){const m=(L=h.cloneDeep(n==null?void 0:n.contents))==null?void 0:L.map(r=>({[r.label]:r.value}));a.push(((z=s==null?void 0:s.find(r=>(r==null?void 0:r.value)===(n==null?void 0:n.key)))==null?void 0:z.key)+"="+JSON.stringify(m)+"/r/n")}else{let m=[];(W=h.cloneDeep(n==null?void 0:n.contents))==null||W.reduce((r,x)=>{var Q;return r[x.label]=x.key,((Q=Object.keys(h.cloneDeep(r)))==null?void 0:Q.length)>=x.width&&(m.push(h.cloneDeep(r)),r={}),r},{}),a.push(((H=s==null?void 0:s.find(r=>(r==null?void 0:r.value)===(n==null?void 0:n.key)))==null?void 0:H.key)+"="+JSON.stringify(m)+"/r/n")}else if(Object.keys(d).includes("label")){const m=(P=h.cloneDeep(n==null?void 0:n.contents))==null?void 0:P.map(r=>r.label);a.push(((G=s==null?void 0:s.find(r=>(r==null?void 0:r.value)===(n==null?void 0:n.key)))==null?void 0:G.key)+"="+JSON.stringify(m)+"/r/n")}else a.push(((K=s==null?void 0:s.find(m=>(m==null?void 0:m.value)===(n==null?void 0:n.key)))==null?void 0:K.key)+"="+JSON.stringify(n==null?void 0:n.contents)+"/r/n")}})}),JSON.stringify(a)},w=e.ref([]),Y=()=>{N.value.click()},Z=l=>{const a=l.target.files[0];if(!a)return;const u=new FileReader;u.onload=o=>{try{g.value=o.target.result,w.value=v(o.target.result),c.value++}catch(f){console.error("解析失败:",f)}},u.onerror=o=>{console.error("文件读取错误:",o)},u.readAsText(a)};e.onMounted(()=>{window.addEventListener("resize",V)}),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=w.value)==null?void 0:l.length)!==0&&(C.setOriginalData(w.value),C.setItemData(w.value))},{deep:!0,immediate:!0});const v=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 f=new Function(`return ${a}`)();if(Array.isArray(f)||typeof f=="object")return f;throw new Error(`解析结果不是有效的数组或对象: ${u}`)}catch(o){throw new Error(`无法解析JSON: ${o.message}`)}}};return(l,a)=>{var u;return e.openBlock(),e.createElementBlock("div",ae,[((u=t==null?void 0:t.jsonContents)==null?void 0:u.length)===0?(e.openBlock(),e.createElementBlock("div",le,[e.createElementVNode("div",re,[e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:N,accept:".txt",onChange:Z,style:{display:"none"}},null,544),e.createElementVNode("button",{onClick:Y,class:"import-button-content"},"导入文件"),k.value?(e.openBlock(),e.createElementBlock("span",ce,e.toDisplayString(k.value),1)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),(t==null?void 0:t.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:_.value},[e.createVNode(O.modelShow)])),e.createElementVNode("div",ie,[e.createVNode(O.modelFill)])])):e.createCommentVNode("",!0),(t==null?void 0:t.mode)==="view"?(e.openBlock(),e.createElementBlock("div",de,[(e.openBlock(),e.createBlock(oe,{content:g.value,onChange:i,jsonContents:p.value,key:_.value},null,8,["content","jsonContents"]))])):e.createCommentVNode("",!0)])}}},fe=X._export_sfc(me,[["__scopeId","data-v-ceaf6f81"]]);exports.default=fe;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as Be, computed as H, createElementBlock as lt, openBlock as ee, normalizeClass as te, unref as T, renderSlot as Ze, createVNode as Ct, Transition as oo, withCtx as je, withDirectives as ro, createElementVNode as ct, normalizeStyle as so, createTextVNode as ir, toDisplayString as uo, vShow as io, watch as Qe, shallowReactive as ar, ref as le, onMounted as lr, createBlock as Ie, createCommentVNode as Me, resolveDynamicComponent as cr, Fragment as fr, withModifiers as dr, nextTick as ft, isVNode as ao, render as Mt, effectScope as lo, markRaw as ce, toRaw as ve, isRef as ye, isReactive as et, toRef as He, hasInjectionContext as _r, inject as pr, getCurrentInstance as Er, reactive as hr, getCurrentScope as gr, onScopeDispose as mr, toRefs as $t } from "vue";
|
|
2
|
-
import { k as St, n as ne, B as vr, j as Ne, P as jt, _ as co, J as yr, af as Or, p as Ar, ag as br, h as fo, o as Cr, Z as Sr, $ as Ht, y as Tr, F as Dr, G as Kt, Y as Ir, ah as kr, K as wr, m as zt, A as dt, z as Pr, q as Nr, ai as Gt, aj as Rr } from "./index-
|
|
2
|
+
import { k as St, n as ne, B as vr, j as Ne, P as jt, _ as co, J as yr, af as Or, p as Ar, ag as br, h as fo, o as Cr, Z as Sr, $ as Ht, y as Tr, F as Dr, G as Kt, Y as Ir, ah as kr, K as wr, m as zt, A as dt, z as Pr, q as Nr, ai as Gt, aj as Rr } from "./index-C7Y_BQCw.js";
|
|
3
3
|
import { m as Vr } from "./typescript-BpuhIBuJ.js";
|
|
4
4
|
const xr = St({
|
|
5
5
|
value: {
|
|
@@ -4793,9 +4793,9 @@ const Ci = [
|
|
|
4793
4793
|
permissionSideMenus: [],
|
|
4794
4794
|
importLoading: !1,
|
|
4795
4795
|
asideMenus: [],
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4796
|
+
platform: "browser"
|
|
4797
|
+
//平台:BS
|
|
4798
|
+
// platform: 'client',//平台:CS
|
|
4799
4799
|
}),
|
|
4800
4800
|
actions: {
|
|
4801
4801
|
setAsideMenus(e) {
|