ss-component-new 1.1.897 → 1.1.898
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-DkTRkhnJ.js → array-BBqAgqMA.js} +22 -22
- package/dist/array-BRCX7VjP.cjs +11 -0
- package/dist/{index-DlGUFqeY.cjs → index-BGBHekzC.cjs} +1 -1
- package/dist/{index-CLyYI64X.cjs → index-BKC9wOVp.cjs} +1 -1
- package/dist/{index-BBjZB_Wo.cjs → index-Bj59Es5d.cjs} +1 -1
- package/dist/{index-CfxVfCcY.js → index-BzI10J3t.js} +1 -1
- package/dist/{index-CB5iA7oy.js → index-CZIcD1-K.js} +1 -1
- package/dist/{index-BMiiyzjv.js → index-Cm5QQ2Fj.js} +2 -2
- package/dist/{index-636uR9Lx.js → index-D1lrfexg.js} +6 -6
- package/dist/{index-C2il62bC.js → index-DFn1lMvu.js} +4 -4
- package/dist/{index-BwdQPTLn.cjs → index-Dpo_wf9Z.cjs} +1 -1
- package/dist/{index-xi0Wkyrm.cjs → index-hbnGNisg.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_6ecb5a6a_lang-w3nIvRYY.js → index.vue_vue_type_style_index_0_scoped_6ecb5a6a_lang-Dehdsnht.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_0_scoped_6ecb5a6a_lang-D6O1q5lt.cjs → index.vue_vue_type_style_index_0_scoped_6ecb5a6a_lang-bJzKAyA7.cjs} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-DvjCoETZ.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-B9WYu997.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-U-WhgM2C.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-Ct-6PiOM.js} +1 -1
- package/dist/{main-BtfHGqn8.js → main-8MlLVKtS.js} +3 -3
- package/dist/{main-BifhlUPN.cjs → main-BV2GJPzq.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +3 -3
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +1 -1
- package/package.json +1 -1
- package/dist/array-BtdWJLv-.cjs +0 -11
|
@@ -76,10 +76,10 @@ const K = (r) => {
|
|
|
76
76
|
var y, U;
|
|
77
77
|
let u = [];
|
|
78
78
|
if (u.push(s), ((y = Object.keys(p)) == null ? void 0 : y.length) > 0) {
|
|
79
|
-
let
|
|
79
|
+
let f = [];
|
|
80
80
|
(U = K(p)) == null || U.forEach((N) => {
|
|
81
|
-
|
|
82
|
-
}),
|
|
81
|
+
f.push(N);
|
|
82
|
+
}), f == null || f.forEach((N) => {
|
|
83
83
|
u.push(N);
|
|
84
84
|
});
|
|
85
85
|
}
|
|
@@ -127,7 +127,7 @@ const X = (r) => {
|
|
|
127
127
|
const l = [];
|
|
128
128
|
let e = "";
|
|
129
129
|
for (const s of t)
|
|
130
|
-
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(), 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 && e[e.length - 1] !== "," ? (l.push(e.replace(/\/\*[\s\S]*?\*\//g, "")), e = "") : e != null && e.includes("*/") && (
|
|
130
|
+
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(), 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 && e[e.length - 1] !== "," ? (l.push(e.replace(/\/\*[\s\S]*?\*\//g, "")), e = "") : e != null && e.includes("*/") && (e = e.replace(/\/\*[\s\S]*?\*\//g, ""))) : l.push(s.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
|
|
131
131
|
return l;
|
|
132
132
|
}, se = (r) => {
|
|
133
133
|
const [t, l] = r.split(/=(.+)/), e = t.replace(/['"]/g, "").trim(), s = l.replace(/^['"]|['"]$/g, "");
|
|
@@ -141,9 +141,9 @@ 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, u, y, U,
|
|
144
|
+
var l, e, s, p, u, y, U, f;
|
|
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) : (
|
|
146
|
+
return ((s = Y(t.slice(0, t.length - 1))) == null ? void 0 : s.length) > 0 ? t.slice(0, t.length - 1) : (f = (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 : f.trim();
|
|
147
147
|
}, P = E(0), B = 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;
|
|
@@ -240,13 +240,13 @@ const X = (r) => {
|
|
|
240
240
|
var n, o;
|
|
241
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
|
-
}),
|
|
243
|
+
}), f = [];
|
|
244
244
|
(s = a(U)) == null || s.forEach((c) => {
|
|
245
245
|
var $, n, o, x, d;
|
|
246
246
|
A != null && A.find((m) => {
|
|
247
247
|
var i, k;
|
|
248
248
|
return ((i = m == null ? void 0 : m.key) == null ? void 0 : i.toUpperCase()) === ((k = c == null ? void 0 : c.key) == null ? void 0 : k.toUpperCase());
|
|
249
|
-
}) ?
|
|
249
|
+
}) ? f.push({
|
|
250
250
|
comp: (($ = A == null ? void 0 : A.find((m) => {
|
|
251
251
|
var i, k;
|
|
252
252
|
return ((i = m == null ? void 0 : m.key) == null ? void 0 : i.toUpperCase()) === ((k = c == null ? void 0 : c.key) == null ? void 0 : k.toUpperCase());
|
|
@@ -256,11 +256,11 @@ const X = (r) => {
|
|
|
256
256
|
}) : b != null && b.find((m) => {
|
|
257
257
|
var i, k;
|
|
258
258
|
return ((i = m == null ? void 0 : m.key) == null ? void 0 : i.toUpperCase()) === ((k = c == null ? void 0 : c.key) == null ? void 0 : k.toUpperCase());
|
|
259
|
-
}) && ((
|
|
259
|
+
}) && ((f == null ? void 0 : f.length) === 0 && (o = c.key) != null && o.includes("Menus") && f.push({
|
|
260
260
|
comp: "Menu",
|
|
261
261
|
name: "",
|
|
262
262
|
compData: []
|
|
263
|
-
}), (x =
|
|
263
|
+
}), (x = f == null ? void 0 : f[(f == null ? void 0 : f.length) - 1]) != null && x.compData && f[(f == null ? void 0 : f.length) - 1].compData.push({
|
|
264
264
|
key: (d = b == null ? void 0 : b.find((m) => {
|
|
265
265
|
var i, k;
|
|
266
266
|
return ((i = m == null ? void 0 : m.key) == null ? void 0 : i.toUpperCase()) === ((k = c == null ? void 0 : c.key) == null ? void 0 : k.toUpperCase());
|
|
@@ -268,7 +268,7 @@ const X = (r) => {
|
|
|
268
268
|
contents: c == null ? void 0 : c.value
|
|
269
269
|
}));
|
|
270
270
|
});
|
|
271
|
-
let N = (p = a(
|
|
271
|
+
let N = (p = a(f)) == null ? void 0 : p.map((c) => {
|
|
272
272
|
var $;
|
|
273
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, m, i, k, T, J, F, z, G;
|
|
@@ -292,39 +292,39 @@ const X = (r) => {
|
|
|
292
292
|
let o = [];
|
|
293
293
|
return (x = n.contents) == null || x.forEach((d) => {
|
|
294
294
|
var m, i, k, T, J, F, z, G, _, L, W, I;
|
|
295
|
-
if (A != null && A.find((
|
|
295
|
+
if (A != null && A.find((h) => {
|
|
296
296
|
var g, O, j;
|
|
297
|
-
return ((g =
|
|
297
|
+
return ((g = h == null ? void 0 : h.key) == null ? void 0 : g.toUpperCase()) === ((j = (O = Object.keys(d)) == null ? void 0 : O[0]) == null ? void 0 : j.toUpperCase());
|
|
298
298
|
}))
|
|
299
299
|
o.push({
|
|
300
|
-
comp: (m = A == null ? void 0 : A.find((
|
|
300
|
+
comp: (m = A == null ? void 0 : A.find((h) => {
|
|
301
301
|
var g, O, j;
|
|
302
|
-
return ((g =
|
|
302
|
+
return ((g = h == null ? void 0 : h.key) == null ? void 0 : g.toUpperCase()) === ((j = (O = Object.keys(d)) == null ? void 0 : O[0]) == null ? void 0 : j.toUpperCase());
|
|
303
303
|
})) == null ? void 0 : m.value,
|
|
304
304
|
name: (k = (i = Object.values(d)) == null ? void 0 : i[0]) == null ? void 0 : k.replace(/[’]|[‘]|[']/g, ""),
|
|
305
305
|
compData: []
|
|
306
306
|
});
|
|
307
|
-
else if (b != null && b.find((
|
|
307
|
+
else if (b != null && b.find((h) => {
|
|
308
308
|
var g, O, j;
|
|
309
|
-
return ((g =
|
|
309
|
+
return ((g = h == null ? void 0 : h.key) == null ? void 0 : g.toUpperCase()) === ((j = (O = Object.keys(d)) == null ? void 0 : O[0]) == null ? void 0 : j.toUpperCase());
|
|
310
310
|
})) {
|
|
311
311
|
if ((o == null ? void 0 : o.length) === 0) return;
|
|
312
312
|
(T = o == null ? void 0 : o[(o == null ? void 0 : o.length) - 1]) != null && T.compData && o[(o == null ? void 0 : o.length) - 1].compData.push({
|
|
313
|
-
key: (J = b == null ? void 0 : b.find((
|
|
313
|
+
key: (J = b == null ? void 0 : b.find((h) => {
|
|
314
314
|
var g, O, j;
|
|
315
|
-
return ((g =
|
|
315
|
+
return ((g = h == null ? void 0 : h.key) == null ? void 0 : g.toUpperCase()) === ((j = (O = Object.keys(d)) == null ? void 0 : O[0]) == null ? void 0 : j.toUpperCase());
|
|
316
316
|
})) == null ? void 0 : J.value,
|
|
317
317
|
contents: (F = Object.values(d)) == null ? void 0 : F[0]
|
|
318
318
|
});
|
|
319
319
|
} else if ((G = (z = Object.keys(d)) == null ? void 0 : z[0]) != null && G.includes("$")) {
|
|
320
|
-
const
|
|
320
|
+
const h = (L = (_ = Object.keys(a(d))) == null ? void 0 : _[0]) == null ? void 0 : L.split("$");
|
|
321
321
|
o[(o == null ? void 0 : o.length) - 1].compData.push({
|
|
322
322
|
key: (W = b == null ? void 0 : b.find((g) => {
|
|
323
323
|
var O, j;
|
|
324
|
-
return ((O = g == null ? void 0 : g.key) == null ? void 0 : O.toUpperCase()) === ((j =
|
|
324
|
+
return ((O = g == null ? void 0 : g.key) == null ? void 0 : O.toUpperCase()) === ((j = h == null ? void 0 : h[0]) == null ? void 0 : j.toUpperCase());
|
|
325
325
|
})) == null ? void 0 : W.value,
|
|
326
326
|
contents: (I = Object.values(d)) == null ? void 0 : I[0],
|
|
327
|
-
selectLabel:
|
|
327
|
+
selectLabel: h == null ? void 0 : h[1]
|
|
328
328
|
});
|
|
329
329
|
}
|
|
330
330
|
return d;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";const x=require("vue"),c=require("./index-BLXMF7Kg.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"}];x.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(T=>{f.push(T)}),f==null||f.forEach(T=>{a.push(T)})}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},S=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,[])},X=l=>S(l);x.ref(0);x.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=""):e!=null&&e.includes("*/")&&(e=e.replace(/\/\*[\s\S]*?\*\//g,""))):r.push(s.trim().replace(/\/\*[\s\S]*?\*\//g,""));return r},Y=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=x.ref(0),P=x.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+P.value]&&P.value++,e[n+P.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}},_=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(_(r)&&!r.includes("$")||(r=r.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g,'"$1$$$2"')),_(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(_(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(_(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 T=(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,G;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(z=>ee(c.cloneDeep(z)));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("【"))&&((J=(E=o.contents)==null?void 0:E.trim())!=null&&J.endsWith("]")||(G=(F=o.contents)==null?void 0:F.trim())!=null&&G.endsWith("】")))o.contents=le(c.cloneDeep(o.contents));else{if(!o.contents)return;o.contents=Q(c.cloneDeep(o.contents))}return o})),p});return T=(a=c.cloneDeep(T))==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,G,z,B,L,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:(E=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:E.value,contents:(J=Object.values(d))==null?void 0:J[0]})}else if((G=(F=Object.keys(d))==null?void 0:F[0])!=null&&G.includes("$")){const h=(B=(z=Object.keys(c.cloneDeep(d)))==null?void 0:z[0])==null?void 0:B.split("$");u[(u==null?void 0:u.length)-1].compData.push({key:(L=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:L.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}),T}catch{return!1}},se=l=>re(l),V=x.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[V.value]=[],V.value++),r[V.value-1].push(e),((a=Object.keys(r))==null?void 0:a.length)===(e==null?void 0:e.width)&&(r[V.value]=[],V.value++),r},{});exports.arrayToNumberArray=te;exports.contentTrans=K;exports.contentTransArray=q;exports.expandStringToJson=se;exports.getContentValue=C;exports.menuArray=X;exports.parseGroupValue=Y;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");require("./index-Bj59Es5d.cjs");const h=require("./index-BLXMF7Kg.cjs");require("./array-BRCX7VjP.cjs");const C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");require("./index.vue_vue_type_style_index_0_scoped_92477073_lang-B9WYu997.cjs");require("./index.vue_vue_type_style_index_0_scoped_6ecb5a6a_lang-bJzKAyA7.cjs");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-LN5AslJ5.cjs");require("./STLLoader-Ck442nWz.cjs");require("./index.vue_vue_type_style_index_1_lang-StvjiRk4.cjs");require("./index.vue_vue_type_style_index_1_lang-4kquXRWU.cjs");require("./index-Dppy0_m4.cjs");require("vue-router");require("./index-ByoX0irR.cjs");require("./index-Dyygod2G.cjs");const S={__name:"index",props:{windowConfig:{type:Object,default:()=>{}},systemInfo:{type:Object,default:()=>{}},systemKey:{type:String,default:""},pathContent:{type:String,default:""},mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0},nodeDev:{type:String,default:""},pageKey:{type:String,default:""}},emits:["buildContent","openThreeBuild","threeData"],setup(o,{emit:c}){const e=o,i=c,s=h.useLoginState();n.watch(()=>e==null?void 0:e.systemKey,t=>{s.setSystemKey(t),t!==""&&sessionStorage.setItem("systemKey",t)},{immediate:!0}),n.watch(()=>e==null?void 0:e.systemInfo,t=>{s.setSystemInfo(t)},{immediate:!0});const l=()=>{i("buildContent")},m=()=>{i("setLoginInfo")},y=t=>{i("openThreeBuild",t)},f=t=>{i("threeData",t)},d=()=>{var a;const t=e!=null&&e.windowConfig?(a=e==null?void 0:e.windowConfig)==null?void 0:a.width:window.innerWidth,r=1920,u=16,w=t/r,g=u*w;document.documentElement.style.fontSize=`${g}px`};return n.onMounted(()=>{d(),window.addEventListener("resize",d)}),n.onUnmounted(()=>{window.removeEventListener("resize",d)}),(t,r)=>{const u=n.resolveComponent("router-view");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(u,{mode:e==null?void 0:e.mode,content:e==null?void 0:e.content,jsonContents:e==null?void 0:e.jsonContents,pathContent:e==null?void 0:e.pathContent,showButton:e==null?void 0:e.showButton,nodeDev:e==null?void 0:e.nodeDev,windowConfig:o.windowConfig,systemInfo:o.systemInfo,"old-systemKey":o.systemKey,onBuildContent:l,onOpenThreeBuild:y,pageKey:o.pageKey,onThreeData:f,onSetLoginInfo:m},null,8,["mode","content","jsonContents","pathContent","showButton","nodeDev","windowConfig","systemInfo","old-systemKey","pageKey"])])}}},q=C._export_sfc(S,[["__scopeId","data-v-8729380f"]]);exports.default=q;
|