ss-component-new 1.1.91 → 1.1.93
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-BwRdGRzc.cjs → array-QXZLZ-JR.cjs} +1 -1
- package/dist/{array-kT49S5YY.js → array-p_dKgR1g.js} +3 -3
- package/dist/{cloneDeep-AHvR5ani.js → cloneDeep-6gh99jtb.js} +1 -1
- package/dist/{cloneDeep-BSjYw4rp.cjs → cloneDeep-Ucf7SSYV.cjs} +1 -1
- package/dist/{index-CD0UIMZE.js → index-23lYlUAm.js} +2 -2
- package/dist/{index-BYAKG_hE.cjs → index-B99DGr5D.cjs} +3 -3
- package/dist/{index-BoI4Lv7B.js → index-BKRA6TlC.js} +2 -2
- package/dist/{index-D7LOG6yf.cjs → index-BwM0dDUM.cjs} +1 -1
- package/dist/{index-DN9fO_z9.js → index-Bz24agQ4.js} +127 -127
- package/dist/{index-S7oCNwTd.js → index-CltMMcpA.js} +1 -1
- package/dist/{index-B_ByBr_L.js → index-DSAclKEB.js} +1 -1
- package/dist/{index-UlB7yRs3.cjs → index-DX6vd12B.cjs} +1 -1
- package/dist/{index-CWJ1pWax.js → index-h2xb1hSJ.js} +2 -2
- package/dist/{index-Ahp5YbTz.cjs → index-iYGS7zfA.cjs} +1 -1
- package/dist/{index-BoggMYJV.cjs → index-jyltc6ZH.cjs} +1 -1
- package/dist/{index-Cf4l02x7.cjs → index-pi4vTds3.cjs} +1 -1
- package/dist/{main-BSvcgVUS.js → main-D9Q_7-or.js} +2 -2
- package/dist/{main-Di2iouyz.cjs → main-Du5TjRFH.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +5 -5
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ref as S, onMounted as be, createElementBlock as L, openBlock as w, Fragment as me, renderList as fe, createElementVNode as X, createCommentVNode as z, toDisplayString as re, watch as v, createVNode as se, unref as Q, createBlock as oe, resolveDynamicComponent as Ae } from "vue";
|
|
2
|
-
import { v as q, d as Y, p as ee, u as De, f as je, i as Oe, e as _e, g as Ue, m as Ee, a as Me, b as Te, c as xe } from "./array-
|
|
2
|
+
import { v as q, d as Y, p as ee, u as De, f as je, i as Oe, e as _e, g as Ue, m as Ee, a as Me, b as Te, c as xe } from "./array-p_dKgR1g.js";
|
|
3
3
|
import { u as de } from "./modelComp-B3sxj_Kp.js";
|
|
4
4
|
import { u as ye, s as te } from "./menu-BIINB-0Y.js";
|
|
5
|
-
import Ie from "./index-
|
|
5
|
+
import Ie from "./index-h2xb1hSJ.js";
|
|
6
6
|
import { _ as ie } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
-
import { c as a } from "./cloneDeep-
|
|
7
|
+
import { c as a } from "./cloneDeep-6gh99jtb.js";
|
|
8
8
|
const Ne = { class: "bread-content" }, Je = ["onClick"], Pe = { key: 0 }, we = {
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: {
|
|
@@ -75,11 +75,11 @@ const Z = S(0), Se = (t) => {
|
|
|
75
75
|
var p, m, k, f;
|
|
76
76
|
let l = ((m = (p = e.slice(1, -1)) == null ? void 0 : p.split(",")) == null ? void 0 : m.length) ?? 1;
|
|
77
77
|
(f = (k = e.slice(1, -1)) == null ? void 0 : k.split(",")) == null || f.forEach((o) => {
|
|
78
|
-
var g,
|
|
79
|
-
let n = o == null ? void 0 : o.split(":"),
|
|
78
|
+
var g, J, c, D, $, A, x, U, I, h, u, d, i;
|
|
79
|
+
let n = o == null ? void 0 : o.split(":"), M = n != null && n[0] ? (n == null ? void 0 : n[1].split("$").length) - 1 === 1 ? ((g = n == null ? void 0 : n[0]) == null ? void 0 : g.replace(/^"(.*)"$/, "$1")) + ((J = n == null ? void 0 : n[1]) == null ? void 0 : J.replace(/^"(.*)"$/, "$1")) : Array.isArray((D = (c = n == null ? void 0 : n[1]) == null ? void 0 : c.replace(/^"(.*)"$/, "$1")) == null ? void 0 : D.split("(")) && ((x = (A = ($ = n == null ? void 0 : n[1]) == null ? void 0 : $.replace(/^"(.*)"$/, "$1")) == null ? void 0 : A.split("(")) == null ? void 0 : x.length) > 1 ? ((U = n == null ? void 0 : n[0]) == null ? void 0 : U.replace(/^"(.*)"$/, "$1")) + ((u = (h = (I = n == null ? void 0 : n[1]) == null ? void 0 : I.replace(/^"(.*)"$/, "$1")) == null ? void 0 : h.split("(")) == null ? void 0 : u[0]) + "()" : (d = n == null ? void 0 : n[0]) == null ? void 0 : d.replace(/^"(.*)"$/, "$1") : "", C = (n == null ? void 0 : n[1].split("$").length) - 1 === 0 ? (i = n == null ? void 0 : n[1]) == null ? void 0 : i.replace(/^"(.*)"$/, "$1") : "";
|
|
80
80
|
Z.value++, r.push({
|
|
81
81
|
id: Z.value,
|
|
82
|
-
key:
|
|
82
|
+
key: M,
|
|
83
83
|
value: C,
|
|
84
84
|
// 如果值为空,则key设为空字符串,否则保留原值
|
|
85
85
|
width: l,
|
|
@@ -199,11 +199,11 @@ const Z = S(0), Se = (t) => {
|
|
|
199
199
|
});
|
|
200
200
|
let n = t == null ? void 0 : t.filter((C) => C.key.includes(f) && !(C != null && C.key.includes("Menus")));
|
|
201
201
|
n = n == null ? void 0 : n.map((C) => (C.key = ze(C.key), C));
|
|
202
|
-
const
|
|
202
|
+
const M = {
|
|
203
203
|
key: "GroupContents",
|
|
204
204
|
value: n
|
|
205
205
|
};
|
|
206
|
-
r.push(
|
|
206
|
+
r.push(M);
|
|
207
207
|
});
|
|
208
208
|
const p = {
|
|
209
209
|
key: "Menus",
|
|
@@ -249,11 +249,11 @@ const Z = S(0), Se = (t) => {
|
|
|
249
249
|
}, Ve = (t) => Ze(t), pe = (t) => {
|
|
250
250
|
var r, s, e, l, p, m, k, f, o;
|
|
251
251
|
try {
|
|
252
|
-
const n = Se((s = (r = a(t)) == null ? void 0 : r.replace("(", "(")) == null ? void 0 : s.replace(")", ")")),
|
|
252
|
+
const n = Se((s = (r = a(t)) == null ? void 0 : r.replace("(", "(")) == null ? void 0 : s.replace(")", ")")), M = (l = (e = a(n)) == null ? void 0 : e.filter((c) => !c.includes("/*"))) == null ? void 0 : l.map((c) => Le(c)), C = Qe(M), g = [];
|
|
253
253
|
if ((C == null ? void 0 : C.length) === 1 && ((m = (p = C == null ? void 0 : C.find((c) => (c == null ? void 0 : c.key) === "Menus")) == null ? void 0 : p.value) == null ? void 0 : m.length) === 0)
|
|
254
254
|
return !1;
|
|
255
255
|
(k = a(C)) == null || k.forEach((c) => {
|
|
256
|
-
var D, $, A, x,
|
|
256
|
+
var D, $, A, x, U, I, h, u, d;
|
|
257
257
|
(D = q) != null && D.find((i) => {
|
|
258
258
|
var y, b;
|
|
259
259
|
return ((y = i == null ? void 0 : i.key) == null ? void 0 : y.toUpperCase()) === ((b = c == null ? void 0 : c.key) == null ? void 0 : b.toUpperCase());
|
|
@@ -264,7 +264,7 @@ const Z = S(0), Se = (t) => {
|
|
|
264
264
|
})) == null ? void 0 : A.value) ?? "",
|
|
265
265
|
name: (x = c == null ? void 0 : c.value) == null ? void 0 : x.replace(/[’]|[‘]|[']/g, ""),
|
|
266
266
|
compData: []
|
|
267
|
-
}) : (
|
|
267
|
+
}) : (U = Y) != null && U.find((i) => {
|
|
268
268
|
var y, b;
|
|
269
269
|
return ((y = i == null ? void 0 : i.key) == null ? void 0 : y.toUpperCase()) === ((b = c == null ? void 0 : c.key) == null ? void 0 : b.toUpperCase());
|
|
270
270
|
}) && ((g == null ? void 0 : g.length) === 0 && (I = c.key) != null && I.includes("Menus") && g.push({
|
|
@@ -279,17 +279,17 @@ const Z = S(0), Se = (t) => {
|
|
|
279
279
|
contents: c == null ? void 0 : c.value
|
|
280
280
|
}));
|
|
281
281
|
});
|
|
282
|
-
let
|
|
282
|
+
let J = (f = a(g)) == null ? void 0 : f.map((c) => {
|
|
283
283
|
var D;
|
|
284
284
|
return c != null && c.compData && (c.compData = (D = c == null ? void 0 : c.compData) == null ? void 0 : D.map(($) => {
|
|
285
|
-
var A, x,
|
|
285
|
+
var A, x, U, I, h, u, d, i, y, b, _;
|
|
286
286
|
if (($ == null ? void 0 : $.key) === "formFlex")
|
|
287
287
|
$.contents = ((x = (A = $.contents) == null ? void 0 : A.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : x.toUpperCase()) !== "Vertical".toUpperCase();
|
|
288
288
|
else if (($ == null ? void 0 : $.key) === "groupContents")
|
|
289
|
-
$.contents = (
|
|
289
|
+
$.contents = (U = a($.contents)) == null ? void 0 : U.map((N) => He(a(N)));
|
|
290
290
|
else if (Array.isArray($ == null ? void 0 : $.contents))
|
|
291
291
|
$.contents = Ve($.contents);
|
|
292
|
-
else if (((h = (I = $ == null ? void 0 : $.contents) == null ? void 0 : I.trim()) != null && h.startsWith("[") || (d = (u = $.contents) == null ? void 0 : u.trim()) != null && d.startsWith("【")) && ((y = (i = $.contents) == null ? void 0 : i.trim()) != null && y.endsWith("]") || (
|
|
292
|
+
else if (((h = (I = $ == null ? void 0 : $.contents) == null ? void 0 : I.trim()) != null && h.startsWith("[") || (d = (u = $.contents) == null ? void 0 : u.trim()) != null && d.startsWith("【")) && ((y = (i = $.contents) == null ? void 0 : i.trim()) != null && y.endsWith("]") || (_ = (b = $.contents) == null ? void 0 : b.trim()) != null && _.endsWith("】")))
|
|
293
293
|
$.contents = Ye(a($.contents));
|
|
294
294
|
else {
|
|
295
295
|
if (!$.contents) return;
|
|
@@ -298,52 +298,52 @@ const Z = S(0), Se = (t) => {
|
|
|
298
298
|
return $;
|
|
299
299
|
})), c;
|
|
300
300
|
});
|
|
301
|
-
return
|
|
301
|
+
return J = (o = a(J)) == null ? void 0 : o.map((c) => {
|
|
302
302
|
var D;
|
|
303
303
|
return (c == null ? void 0 : c.comp) === "Group" && (c.compData = (D = c.compData) == null ? void 0 : D.map(($) => {
|
|
304
304
|
var x;
|
|
305
305
|
let A = [];
|
|
306
|
-
return (x = $.contents) == null || x.forEach((
|
|
307
|
-
var I, h, u, d, i, y, b,
|
|
308
|
-
if ((I = q) != null && I.find((
|
|
309
|
-
var
|
|
310
|
-
return ((
|
|
306
|
+
return (x = $.contents) == null || x.forEach((U) => {
|
|
307
|
+
var I, h, u, d, i, y, b, _, N, T, j, W, G, B, H, P, F;
|
|
308
|
+
if ((I = q) != null && I.find((O) => {
|
|
309
|
+
var E, R, K;
|
|
310
|
+
return ((E = O == null ? void 0 : O.key) == null ? void 0 : E.toUpperCase()) === ((K = (R = Object.keys(U)) == null ? void 0 : R[0]) == null ? void 0 : K.toUpperCase());
|
|
311
311
|
}))
|
|
312
312
|
A.push({
|
|
313
|
-
comp: (u = (h = q) == null ? void 0 : h.find((
|
|
314
|
-
var
|
|
315
|
-
return ((
|
|
313
|
+
comp: (u = (h = q) == null ? void 0 : h.find((O) => {
|
|
314
|
+
var E, R, K;
|
|
315
|
+
return ((E = O == null ? void 0 : O.key) == null ? void 0 : E.toUpperCase()) === ((K = (R = Object.keys(U)) == null ? void 0 : R[0]) == null ? void 0 : K.toUpperCase());
|
|
316
316
|
})) == null ? void 0 : u.value,
|
|
317
|
-
name: (i = (d = Object.values(
|
|
317
|
+
name: (i = (d = Object.values(U)) == null ? void 0 : d[0]) == null ? void 0 : i.replace(/[’]|[‘]|[']/g, ""),
|
|
318
318
|
compData: []
|
|
319
319
|
});
|
|
320
|
-
else if ((y = Y) != null && y.find((
|
|
321
|
-
var
|
|
322
|
-
return ((
|
|
320
|
+
else if ((y = Y) != null && y.find((O) => {
|
|
321
|
+
var E, R, K;
|
|
322
|
+
return ((E = O == null ? void 0 : O.key) == null ? void 0 : E.toUpperCase()) === ((K = (R = Object.keys(U)) == null ? void 0 : R[0]) == null ? void 0 : K.toUpperCase());
|
|
323
323
|
})) {
|
|
324
324
|
if ((A == null ? void 0 : A.length) === 0) return;
|
|
325
325
|
(b = A == null ? void 0 : A[(A == null ? void 0 : A.length) - 1]) != null && b.compData && A[(A == null ? void 0 : A.length) - 1].compData.push({
|
|
326
|
-
key: (
|
|
327
|
-
var
|
|
328
|
-
return ((
|
|
329
|
-
})) == null ? void 0 :
|
|
330
|
-
contents: (
|
|
326
|
+
key: (N = (_ = Y) == null ? void 0 : _.find((O) => {
|
|
327
|
+
var E, R, K;
|
|
328
|
+
return ((E = O == null ? void 0 : O.key) == null ? void 0 : E.toUpperCase()) === ((K = (R = Object.keys(U)) == null ? void 0 : R[0]) == null ? void 0 : K.toUpperCase());
|
|
329
|
+
})) == null ? void 0 : N.value,
|
|
330
|
+
contents: (T = Object.values(U)) == null ? void 0 : T[0]
|
|
331
331
|
});
|
|
332
|
-
} else if ((W = (
|
|
333
|
-
const
|
|
332
|
+
} else if ((W = (j = Object.keys(U)) == null ? void 0 : j[0]) != null && W.includes("$")) {
|
|
333
|
+
const O = (B = (G = Object.keys(a(U))) == null ? void 0 : G[0]) == null ? void 0 : B.split("$");
|
|
334
334
|
A[(A == null ? void 0 : A.length) - 1].compData.push({
|
|
335
|
-
key: (
|
|
335
|
+
key: (P = (H = Y) == null ? void 0 : H.find((E) => {
|
|
336
336
|
var R, K;
|
|
337
|
-
return ((R =
|
|
338
|
-
})) == null ? void 0 :
|
|
339
|
-
contents: (F = Object.values(
|
|
340
|
-
selectLabel:
|
|
337
|
+
return ((R = E == null ? void 0 : E.key) == null ? void 0 : R.toUpperCase()) === ((K = O == null ? void 0 : O[0]) == null ? void 0 : K.toUpperCase());
|
|
338
|
+
})) == null ? void 0 : P.value,
|
|
339
|
+
contents: (F = Object.values(U)) == null ? void 0 : F[0],
|
|
340
|
+
selectLabel: O == null ? void 0 : O[1]
|
|
341
341
|
});
|
|
342
342
|
}
|
|
343
|
-
return
|
|
343
|
+
return U;
|
|
344
344
|
}), $.contents = A, $;
|
|
345
345
|
})), c;
|
|
346
|
-
}),
|
|
346
|
+
}), J;
|
|
347
347
|
} catch {
|
|
348
348
|
return !1;
|
|
349
349
|
}
|
|
@@ -381,11 +381,11 @@ const Z = S(0), Se = (t) => {
|
|
|
381
381
|
var p, m, k, f;
|
|
382
382
|
let l = ((m = (p = e.slice(1, -1)) == null ? void 0 : p.split(",")) == null ? void 0 : m.length) ?? 1;
|
|
383
383
|
(f = (k = e.slice(1, -1)) == null ? void 0 : k.split(",")) == null || f.forEach((o) => {
|
|
384
|
-
var g,
|
|
385
|
-
let n = o == null ? void 0 : o.split(":"),
|
|
384
|
+
var g, J, c, D, $, A, x, U, I, h, u, d, i;
|
|
385
|
+
let n = o == null ? void 0 : o.split(":"), M = n != null && n[0] ? (n == null ? void 0 : n[1].split("$").length) - 1 === 1 ? ((g = n == null ? void 0 : n[0]) == null ? void 0 : g.replace(/^"(.*)"$/, "$1")) + ((J = n == null ? void 0 : n[1]) == null ? void 0 : J.replace(/^"(.*)"$/, "$1")) : Array.isArray((D = (c = n == null ? void 0 : n[1]) == null ? void 0 : c.replace(/^"(.*)"$/, "$1")) == null ? void 0 : D.split("(")) && ((x = (A = ($ = n == null ? void 0 : n[1]) == null ? void 0 : $.replace(/^"(.*)"$/, "$1")) == null ? void 0 : A.split("(")) == null ? void 0 : x.length) > 1 ? ((U = n == null ? void 0 : n[0]) == null ? void 0 : U.replace(/^"(.*)"$/, "$1")) + ((u = (h = (I = n == null ? void 0 : n[1]) == null ? void 0 : I.replace(/^"(.*)"$/, "$1")) == null ? void 0 : h.split("(")) == null ? void 0 : u[0]) + "()" : (d = n == null ? void 0 : n[0]) == null ? void 0 : d.replace(/^"(.*)"$/, "$1") : "", C = (n == null ? void 0 : n[1].split("$").length) - 1 === 0 ? (i = n == null ? void 0 : n[1]) == null ? void 0 : i.replace(/^"(.*)"$/, "$1") : "";
|
|
386
386
|
V.value++, r.push({
|
|
387
387
|
id: V.value,
|
|
388
|
-
key:
|
|
388
|
+
key: M,
|
|
389
389
|
value: C,
|
|
390
390
|
// 如果值为空,则key设为空字符串,否则保留原值
|
|
391
391
|
width: l,
|
|
@@ -505,11 +505,11 @@ const Z = S(0), Se = (t) => {
|
|
|
505
505
|
});
|
|
506
506
|
let n = t == null ? void 0 : t.filter((C) => C.key.includes(f) && !(C != null && C.key.includes("Menus")));
|
|
507
507
|
n = n == null ? void 0 : n.map((C) => (C.key = ot(C.key), C));
|
|
508
|
-
const
|
|
508
|
+
const M = {
|
|
509
509
|
key: "GroupContents",
|
|
510
510
|
value: n
|
|
511
511
|
};
|
|
512
|
-
r.push(
|
|
512
|
+
r.push(M);
|
|
513
513
|
});
|
|
514
514
|
const p = {
|
|
515
515
|
key: "Menus",
|
|
@@ -555,13 +555,13 @@ const Z = S(0), Se = (t) => {
|
|
|
555
555
|
}, ht = (t) => pt(t), mt = (t) => {
|
|
556
556
|
var r, s, e, l, p, m, k;
|
|
557
557
|
try {
|
|
558
|
-
const f = ve((s = (r = a(t)) == null ? void 0 : r.replace("(", "(")) == null ? void 0 : s.replace(")", ")")), o = (l = (e = a(f)) == null ? void 0 : e.filter((g) => !g.includes("/*"))) == null ? void 0 : l.map((g) => et(g)), n = it(o),
|
|
558
|
+
const f = ve((s = (r = a(t)) == null ? void 0 : r.replace("(", "(")) == null ? void 0 : s.replace(")", ")")), o = (l = (e = a(f)) == null ? void 0 : e.filter((g) => !g.includes("/*"))) == null ? void 0 : l.map((g) => et(g)), n = it(o), M = [];
|
|
559
559
|
(p = a(n)) == null || p.forEach((g) => {
|
|
560
|
-
var
|
|
561
|
-
(
|
|
560
|
+
var J, c, D, $, A, x, U, I, h;
|
|
561
|
+
(J = q) != null && J.find((u) => {
|
|
562
562
|
var d, i;
|
|
563
563
|
return ((d = u == null ? void 0 : u.key) == null ? void 0 : d.toUpperCase()) === ((i = g == null ? void 0 : g.key) == null ? void 0 : i.toUpperCase());
|
|
564
|
-
}) ?
|
|
564
|
+
}) ? M.push({
|
|
565
565
|
comp: ((D = (c = q) == null ? void 0 : c.find((u) => {
|
|
566
566
|
var d, i;
|
|
567
567
|
return ((d = u == null ? void 0 : u.key) == null ? void 0 : d.toUpperCase()) === ((i = g == null ? void 0 : g.key) == null ? void 0 : i.toUpperCase());
|
|
@@ -571,11 +571,11 @@ const Z = S(0), Se = (t) => {
|
|
|
571
571
|
}) : (A = Y) != null && A.find((u) => {
|
|
572
572
|
var d, i;
|
|
573
573
|
return ((d = u == null ? void 0 : u.key) == null ? void 0 : d.toUpperCase()) === ((i = g == null ? void 0 : g.key) == null ? void 0 : i.toUpperCase());
|
|
574
|
-
}) && ((
|
|
574
|
+
}) && ((M == null ? void 0 : M.length) === 0 && (x = g.key) != null && x.includes("Menus") && M.push({
|
|
575
575
|
comp: "Menu",
|
|
576
576
|
name: "",
|
|
577
577
|
compData: []
|
|
578
|
-
}), (
|
|
578
|
+
}), (U = M == null ? void 0 : M[(M == null ? void 0 : M.length) - 1]) != null && U.compData && M[(M == null ? void 0 : M.length) - 1].compData.push({
|
|
579
579
|
key: (h = (I = Y) == null ? void 0 : I.find((u) => {
|
|
580
580
|
var d, i;
|
|
581
581
|
return ((d = u == null ? void 0 : u.key) == null ? void 0 : d.toUpperCase()) === ((i = g == null ? void 0 : g.key) == null ? void 0 : i.toUpperCase());
|
|
@@ -583,17 +583,17 @@ const Z = S(0), Se = (t) => {
|
|
|
583
583
|
contents: g == null ? void 0 : g.value
|
|
584
584
|
}));
|
|
585
585
|
});
|
|
586
|
-
let C = (m = a(
|
|
587
|
-
var
|
|
588
|
-
return g != null && g.compData && (g.compData = (
|
|
589
|
-
var D, $, A, x,
|
|
586
|
+
let C = (m = a(M)) == null ? void 0 : m.map((g) => {
|
|
587
|
+
var J;
|
|
588
|
+
return g != null && g.compData && (g.compData = (J = g == null ? void 0 : g.compData) == null ? void 0 : J.map((c) => {
|
|
589
|
+
var D, $, A, x, U, I, h, u, d, i, y;
|
|
590
590
|
if ((c == null ? void 0 : c.key) === "formFlex")
|
|
591
591
|
c.contents = (($ = (D = c.contents) == null ? void 0 : D.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : $.toUpperCase()) !== "Vertical".toUpperCase();
|
|
592
592
|
else if ((c == null ? void 0 : c.key) === "groupContents")
|
|
593
593
|
c.contents = (A = a(c.contents)) == null ? void 0 : A.map((b) => rt(a(b)));
|
|
594
594
|
else if (Array.isArray(c == null ? void 0 : c.contents))
|
|
595
595
|
c.contents = ht(c.contents);
|
|
596
|
-
else if (((
|
|
596
|
+
else if (((U = (x = c == null ? void 0 : c.contents) == null ? void 0 : x.trim()) != null && U.startsWith("[") || (h = (I = c.contents) == null ? void 0 : I.trim()) != null && h.startsWith("【")) && ((d = (u = c.contents) == null ? void 0 : u.trim()) != null && d.endsWith("]") || (y = (i = c.contents) == null ? void 0 : i.trim()) != null && y.endsWith("】")))
|
|
597
597
|
c.contents = at(a(c.contents));
|
|
598
598
|
else {
|
|
599
599
|
if (!c.contents) return;
|
|
@@ -603,45 +603,45 @@ const Z = S(0), Se = (t) => {
|
|
|
603
603
|
})), g;
|
|
604
604
|
});
|
|
605
605
|
return C = (k = a(C)) == null ? void 0 : k.map((g) => {
|
|
606
|
-
var
|
|
607
|
-
return (g == null ? void 0 : g.comp) === "Group" && (g.compData = (
|
|
606
|
+
var J;
|
|
607
|
+
return (g == null ? void 0 : g.comp) === "Group" && (g.compData = (J = g.compData) == null ? void 0 : J.map((c) => {
|
|
608
608
|
var $;
|
|
609
609
|
let D = [];
|
|
610
610
|
return ($ = c.contents) == null || $.forEach((A) => {
|
|
611
|
-
var x,
|
|
612
|
-
if ((x = q) != null && x.find((
|
|
613
|
-
var F,
|
|
614
|
-
return ((F =
|
|
611
|
+
var x, U, I, h, u, d, i, y, b, _, N, T, j, W, G, B, H;
|
|
612
|
+
if ((x = q) != null && x.find((P) => {
|
|
613
|
+
var F, O, E;
|
|
614
|
+
return ((F = P == null ? void 0 : P.key) == null ? void 0 : F.toUpperCase()) === ((E = (O = Object.keys(A)) == null ? void 0 : O[0]) == null ? void 0 : E.toUpperCase());
|
|
615
615
|
}))
|
|
616
616
|
D.push({
|
|
617
|
-
comp: (I = (
|
|
618
|
-
var F,
|
|
619
|
-
return ((F =
|
|
617
|
+
comp: (I = (U = q) == null ? void 0 : U.find((P) => {
|
|
618
|
+
var F, O, E;
|
|
619
|
+
return ((F = P == null ? void 0 : P.key) == null ? void 0 : F.toUpperCase()) === ((E = (O = Object.keys(A)) == null ? void 0 : O[0]) == null ? void 0 : E.toUpperCase());
|
|
620
620
|
})) == null ? void 0 : I.value,
|
|
621
621
|
name: (u = (h = Object.values(A)) == null ? void 0 : h[0]) == null ? void 0 : u.replace(/[’]|[‘]|[']/g, ""),
|
|
622
622
|
compData: []
|
|
623
623
|
});
|
|
624
|
-
else if ((d = Y) != null && d.find((
|
|
625
|
-
var F,
|
|
626
|
-
return ((F =
|
|
624
|
+
else if ((d = Y) != null && d.find((P) => {
|
|
625
|
+
var F, O, E;
|
|
626
|
+
return ((F = P == null ? void 0 : P.key) == null ? void 0 : F.toUpperCase()) === ((E = (O = Object.keys(A)) == null ? void 0 : O[0]) == null ? void 0 : E.toUpperCase());
|
|
627
627
|
})) {
|
|
628
628
|
if ((D == null ? void 0 : D.length) === 0) return;
|
|
629
629
|
(i = D == null ? void 0 : D[(D == null ? void 0 : D.length) - 1]) != null && i.compData && D[(D == null ? void 0 : D.length) - 1].compData.push({
|
|
630
|
-
key: (b = (y = Y) == null ? void 0 : y.find((
|
|
631
|
-
var F,
|
|
632
|
-
return ((F =
|
|
630
|
+
key: (b = (y = Y) == null ? void 0 : y.find((P) => {
|
|
631
|
+
var F, O, E;
|
|
632
|
+
return ((F = P == null ? void 0 : P.key) == null ? void 0 : F.toUpperCase()) === ((E = (O = Object.keys(A)) == null ? void 0 : O[0]) == null ? void 0 : E.toUpperCase());
|
|
633
633
|
})) == null ? void 0 : b.value,
|
|
634
|
-
contents: (
|
|
634
|
+
contents: (_ = Object.values(A)) == null ? void 0 : _[0]
|
|
635
635
|
});
|
|
636
|
-
} else if ((
|
|
637
|
-
const
|
|
636
|
+
} else if ((T = (N = Object.keys(A)) == null ? void 0 : N[0]) != null && T.includes("$")) {
|
|
637
|
+
const P = (W = (j = Object.keys(a(A))) == null ? void 0 : j[0]) == null ? void 0 : W.split("$");
|
|
638
638
|
D[(D == null ? void 0 : D.length) - 1].compData.push({
|
|
639
639
|
key: (B = (G = Y) == null ? void 0 : G.find((F) => {
|
|
640
|
-
var
|
|
641
|
-
return ((
|
|
640
|
+
var O, E;
|
|
641
|
+
return ((O = F == null ? void 0 : F.key) == null ? void 0 : O.toUpperCase()) === ((E = P == null ? void 0 : P[0]) == null ? void 0 : E.toUpperCase());
|
|
642
642
|
})) == null ? void 0 : B.value,
|
|
643
643
|
contents: (H = Object.values(A)) == null ? void 0 : H[0],
|
|
644
|
-
selectLabel:
|
|
644
|
+
selectLabel: P == null ? void 0 : P[1]
|
|
645
645
|
});
|
|
646
646
|
}
|
|
647
647
|
return A;
|
|
@@ -670,7 +670,7 @@ const Z = S(0), Se = (t) => {
|
|
|
670
670
|
setup(t, { emit: r }) {
|
|
671
671
|
const s = t, e = r, l = de(ee);
|
|
672
672
|
De(ee);
|
|
673
|
-
const p = S(!0), m = ye(), k = S(!0), { itemData: f } = te(l), o = je(ee), { activeMenuPath: n, activeMenuOpenPaths:
|
|
673
|
+
const p = S(!0), m = ye(), k = S(!0), { itemData: f } = te(l), o = je(ee), { activeMenuPath: n, activeMenuOpenPaths: M, menuTriggerType: C, menus: g } = te(m), { selectIndex: J, selectTitle: c } = te(o), D = S([]), $ = S([]), A = (h) => {
|
|
674
674
|
var d, i, y;
|
|
675
675
|
const u = (d = f.value) == null ? void 0 : d.find((b) => b.name === n.value);
|
|
676
676
|
$.value = (y = (i = u == null ? void 0 : u.compData) == null ? void 0 : i[0]) == null ? void 0 : y.contents, k.value = !0, k.value && (k.value = !1), e("change", {
|
|
@@ -678,12 +678,12 @@ const Z = S(0), Se = (t) => {
|
|
|
678
678
|
editValue: h
|
|
679
679
|
});
|
|
680
680
|
}, x = (h) => {
|
|
681
|
-
var
|
|
682
|
-
const u = a(D.value), d = u == null ? void 0 : u.map((
|
|
681
|
+
var _, N, T;
|
|
682
|
+
const u = a(D.value), d = u == null ? void 0 : u.map((j, W) => (W === (h == null ? void 0 : h.index) && (j.compData = h == null ? void 0 : h.contents), j));
|
|
683
683
|
let i = "";
|
|
684
|
-
(
|
|
684
|
+
(N = (_ = a(d)) == null ? void 0 : _.filter((j) => (j == null ? void 0 : j.comp) === "Form")) == null || N.forEach((j) => {
|
|
685
685
|
var W;
|
|
686
|
-
(W =
|
|
686
|
+
(W = j == null ? void 0 : j.compData) == null || W.forEach((G) => {
|
|
687
687
|
var B;
|
|
688
688
|
(G == null ? void 0 : G.key) === "formContent" && ((B = G == null ? void 0 : G.contents) == null || B.forEach((H) => {
|
|
689
689
|
H.value !== "" && (i = i === "" ? H == null ? void 0 : H.value : i + "-" + (H == null ? void 0 : H.value));
|
|
@@ -692,48 +692,48 @@ const Z = S(0), Se = (t) => {
|
|
|
692
692
|
});
|
|
693
693
|
let y = c == null ? void 0 : c.value;
|
|
694
694
|
(y == null ? void 0 : y.length) > 0 ? y[0] = { key: "main", value: i } : (Array.isArray(y) || (y = []), y.push({ key: "main", value: i })), o.setSelectTitle(y), p.value = !1, D.value = d;
|
|
695
|
-
const b = (
|
|
695
|
+
const b = (T = f.value) == null ? void 0 : T.map((j, W) => {
|
|
696
696
|
var G;
|
|
697
|
-
return
|
|
697
|
+
return j.name === n.value && (j.compData = (G = j.compData) == null ? void 0 : G.map((B) => ((B == null ? void 0 : B.key) === "groupContents" && (B.contents = D.value), B))), j;
|
|
698
698
|
});
|
|
699
699
|
l.setItemData(b), k.value && (k.value = !1), e("contentChange", {
|
|
700
700
|
wholeContent: f.value
|
|
701
701
|
});
|
|
702
|
-
},
|
|
702
|
+
}, U = (h) => {
|
|
703
703
|
var u, d;
|
|
704
704
|
if ((h == null ? void 0 : h.key) === "main")
|
|
705
705
|
o.setSelectIndex(""), o.setSelectMenu(""), o.setSelectTitle((u = c.value) == null ? void 0 : u[0]);
|
|
706
706
|
else {
|
|
707
707
|
const i = [];
|
|
708
708
|
let y = -1;
|
|
709
|
-
(d = c.value) == null || d.forEach((b,
|
|
710
|
-
(b == null ? void 0 : b.key) === (h == null ? void 0 : h.key) && (y =
|
|
709
|
+
(d = c.value) == null || d.forEach((b, _) => {
|
|
710
|
+
(b == null ? void 0 : b.key) === (h == null ? void 0 : h.key) && (y = _), (y === -1 || y >= _) && i.push(b);
|
|
711
711
|
}), o.setSelectTitle(i), o.setSelectMenu(h == null ? void 0 : h.key);
|
|
712
712
|
}
|
|
713
713
|
};
|
|
714
714
|
v(
|
|
715
715
|
() => f.value,
|
|
716
716
|
() => {
|
|
717
|
-
var u, d, i, y, b,
|
|
717
|
+
var u, d, i, y, b, _, N, T;
|
|
718
718
|
if (!f.value || ((u = f.value) == null ? void 0 : u.length) === 0 || !p.value) return;
|
|
719
719
|
let h = null;
|
|
720
720
|
if (!n.value && Array.isArray(f.value))
|
|
721
|
-
h = (i = (d = a(f.value)) == null ? void 0 : d.filter((
|
|
721
|
+
h = (i = (d = a(f.value)) == null ? void 0 : d.filter((j) => (j == null ? void 0 : j.comp) === "Group")) == null ? void 0 : i[0], m.setActiveMenuPath(h == null ? void 0 : h.name);
|
|
722
722
|
else if (Array.isArray(f.value)) {
|
|
723
|
-
const
|
|
724
|
-
h =
|
|
723
|
+
const j = (y = a(f.value)) == null ? void 0 : y.filter((W) => (W == null ? void 0 : W.comp) === "Group");
|
|
724
|
+
h = j == null ? void 0 : j.find((W) => W.name === n.value);
|
|
725
725
|
}
|
|
726
|
-
$.value = (
|
|
726
|
+
$.value = (_ = (b = h == null ? void 0 : h.compData) == null ? void 0 : b[0]) == null ? void 0 : _.contents, D.value = (T = (N = h == null ? void 0 : h.compData) == null ? void 0 : N[0]) == null ? void 0 : T.contents, console.log("itemData监听", h, n.value, f.value);
|
|
727
727
|
},
|
|
728
728
|
{ deep: !0, immediate: !0 }
|
|
729
729
|
), v(() => n.value, (h) => {
|
|
730
|
-
var u, d, i, y, b,
|
|
730
|
+
var u, d, i, y, b, _;
|
|
731
731
|
if (h) {
|
|
732
|
-
const
|
|
733
|
-
if (h &&
|
|
734
|
-
$.value = (i = (d =
|
|
735
|
-
const
|
|
736
|
-
We(
|
|
732
|
+
const N = (u = a(f.value)) == null ? void 0 : u.find((T) => T.name === h);
|
|
733
|
+
if (h && N) {
|
|
734
|
+
$.value = (i = (d = N == null ? void 0 : N.compData) == null ? void 0 : d[0]) == null ? void 0 : i.contents, D.value = (b = (y = N == null ? void 0 : N.compData) == null ? void 0 : y[0]) == null ? void 0 : b.contents, console.log("点击-新-data:", h, $.value);
|
|
735
|
+
const T = (_ = $.value) == null ? void 0 : _.filter((j) => j.comp === "Form");
|
|
736
|
+
We(T);
|
|
737
737
|
} else
|
|
738
738
|
$.value = [], D.value = [];
|
|
739
739
|
o.setSelectTitle([]), o.setSelectIndex(""), o.setSelectMenu("");
|
|
@@ -743,7 +743,7 @@ const Z = S(0), Se = (t) => {
|
|
|
743
743
|
}), v(
|
|
744
744
|
() => [s == null ? void 0 : s.content, s == null ? void 0 : s.jsonContents],
|
|
745
745
|
() => {
|
|
746
|
-
var y, b,
|
|
746
|
+
var y, b, _, N;
|
|
747
747
|
if (((y = s == null ? void 0 : s.jsonContents) == null ? void 0 : y.length) > 0) {
|
|
748
748
|
l.setOriginalData(s == null ? void 0 : s.jsonContents), l.setItemData(s == null ? void 0 : s.jsonContents);
|
|
749
749
|
return;
|
|
@@ -751,17 +751,17 @@ const Z = S(0), Se = (t) => {
|
|
|
751
751
|
if (!(s != null && s.content) || ((b = s == null ? void 0 : s.content) == null ? void 0 : b.length) === 0) return;
|
|
752
752
|
p.value = !0;
|
|
753
753
|
let h, u = [];
|
|
754
|
-
(
|
|
755
|
-
Oe(
|
|
754
|
+
(N = (_ = s == null ? void 0 : s.content) == null ? void 0 : _.filter((T) => T.length > 5)) == null || N.forEach((T) => {
|
|
755
|
+
Oe(T) ? u.push(_e(T)) : pe(T) ? u.push(pe(T)) : u.push(mt(T));
|
|
756
756
|
}), h = u[0];
|
|
757
|
-
const d = Array.isArray(h) && (h == null ? void 0 : h.find((
|
|
758
|
-
var
|
|
759
|
-
return ((
|
|
757
|
+
const d = Array.isArray(h) && (h == null ? void 0 : h.find((T) => {
|
|
758
|
+
var j;
|
|
759
|
+
return ((j = T.comp) == null ? void 0 : j.toUpperCase()) === "MENU";
|
|
760
760
|
}));
|
|
761
761
|
m.setRawMenu(d ?? {});
|
|
762
|
-
const i = Array.isArray(h) && (h == null ? void 0 : h.find((
|
|
763
|
-
var
|
|
764
|
-
return ((
|
|
762
|
+
const i = Array.isArray(h) && (h == null ? void 0 : h.find((T) => {
|
|
763
|
+
var j;
|
|
764
|
+
return ((j = T.comp) == null ? void 0 : j.toUpperCase()) === "SYSTEM";
|
|
765
765
|
}));
|
|
766
766
|
m.setSystemKey((i == null ? void 0 : i.name) ?? ""), l.setOriginalData(h), l.setItemData(h);
|
|
767
767
|
},
|
|
@@ -777,15 +777,15 @@ const Z = S(0), Se = (t) => {
|
|
|
777
777
|
(w(), oe(Fe, {
|
|
778
778
|
key: Q(c),
|
|
779
779
|
breadArray: Q(c),
|
|
780
|
-
onClick:
|
|
780
|
+
onClick: U
|
|
781
781
|
}, null, 8, ["breadArray"]))
|
|
782
782
|
])) : z("", !0),
|
|
783
783
|
(w(!0), L(me, null, fe($.value, (y, b) => (w(), L("div", {
|
|
784
784
|
class: "item-content",
|
|
785
785
|
key: b
|
|
786
786
|
}, [
|
|
787
|
-
Q(
|
|
788
|
-
Q(
|
|
787
|
+
Q(J) === "" || b.toString() === Q(J) ? (w(), L("div", gt, re(y.name), 1)) : z("", !0),
|
|
788
|
+
Q(J) === "" || b.toString() === Q(J) ? (w(), oe(Ae(I(y.comp)), {
|
|
789
789
|
itemData: y == null ? void 0 : y.compData,
|
|
790
790
|
childItemData: y == null ? void 0 : y.itemChildData,
|
|
791
791
|
key: b,
|
|
@@ -798,7 +798,7 @@ const Z = S(0), Se = (t) => {
|
|
|
798
798
|
]);
|
|
799
799
|
};
|
|
800
800
|
}
|
|
801
|
-
}, $t = /* @__PURE__ */ ie(kt, [["__scopeId", "data-v-
|
|
801
|
+
}, $t = /* @__PURE__ */ ie(kt, [["__scopeId", "data-v-90f2c74a"]]), Ct = { class: "add-model-content" }, bt = {
|
|
802
802
|
key: 0,
|
|
803
803
|
class: "model-import-data"
|
|
804
804
|
}, At = { class: "import-button" }, Dt = { key: 0 }, jt = {
|
|
@@ -829,16 +829,16 @@ const Z = S(0), Se = (t) => {
|
|
|
829
829
|
},
|
|
830
830
|
emits: ["change", "contentChange"],
|
|
831
831
|
setup(t, { emit: r }) {
|
|
832
|
-
const s = t, e = r, l = S([]), p = S([]), m = S([]), k = S(0), f = de(ee), o = ye(ee), { itemData: n, originalData:
|
|
832
|
+
const s = t, e = r, l = S([]), p = S([]), m = S([]), k = S(0), f = de(ee), o = ye(ee), { itemData: n, originalData: M } = te(f), { activeMenuPath: C } = te(o), g = S(null), J = S(0), c = S([]), D = S(""), $ = S(0), A = (u) => {
|
|
833
833
|
e("contentChange", u);
|
|
834
834
|
}, x = (u) => {
|
|
835
835
|
var i;
|
|
836
836
|
const d = (i = a(u == null ? void 0 : u.wholeValue)) == null ? void 0 : i.map((y) => {
|
|
837
837
|
var b;
|
|
838
|
-
return (y == null ? void 0 : y.comp) === "Form" && (y.compData = (b = y.compData) == null ? void 0 : b.map((
|
|
838
|
+
return (y == null ? void 0 : y.comp) === "Form" && (y.compData = (b = y.compData) == null ? void 0 : b.map((_) => ((_ == null ? void 0 : _.key) === "formContent" && (_.contents = xe(_ == null ? void 0 : _.contents)), _))), y;
|
|
839
839
|
});
|
|
840
840
|
e("change", {
|
|
841
|
-
originalContents:
|
|
841
|
+
originalContents: M.value,
|
|
842
842
|
currentContents: u == null ? void 0 : u.wholeValue,
|
|
843
843
|
editContent: u == null ? void 0 : u.editValue,
|
|
844
844
|
arrayToContents: d
|
|
@@ -851,33 +851,33 @@ const Z = S(0), Se = (t) => {
|
|
|
851
851
|
},
|
|
852
852
|
{ deep: !0, immediate: !0 }
|
|
853
853
|
);
|
|
854
|
-
const
|
|
854
|
+
const U = () => {
|
|
855
855
|
g.value.click();
|
|
856
856
|
}, I = async (u) => {
|
|
857
857
|
const d = u.target.files;
|
|
858
858
|
if (!d) return;
|
|
859
859
|
new FileReader(), l.value = [], p.value = [], $.value = d.length;
|
|
860
860
|
const i = Array.from(d).map(async (y) => await new Promise((b) => {
|
|
861
|
-
const
|
|
862
|
-
|
|
861
|
+
const _ = new FileReader();
|
|
862
|
+
_.onload = (N) => {
|
|
863
863
|
try {
|
|
864
|
-
p.value.push(
|
|
865
|
-
} catch (
|
|
866
|
-
console.error("解析失败:",
|
|
864
|
+
p.value.push(N.target.result), c.value = h(N.target.result), J.value++;
|
|
865
|
+
} catch (T) {
|
|
866
|
+
console.error("解析失败:", T);
|
|
867
867
|
return;
|
|
868
868
|
}
|
|
869
|
-
},
|
|
869
|
+
}, _.onerror = () => b(`读取 ${y.name} 失败`), _.readAsText(y);
|
|
870
870
|
}));
|
|
871
871
|
await Promise.all(i);
|
|
872
872
|
};
|
|
873
873
|
v(
|
|
874
874
|
() => [s == null ? void 0 : s.content, s == null ? void 0 : s.jsonContents],
|
|
875
875
|
() => {
|
|
876
|
-
l.value.push(s == null ? void 0 : s.content),
|
|
876
|
+
l.value.push(s == null ? void 0 : s.content), m.value = s == null ? void 0 : s.jsonContents;
|
|
877
877
|
},
|
|
878
878
|
{ deep: !0, immediate: !0 }
|
|
879
879
|
), v(
|
|
880
|
-
() =>
|
|
880
|
+
() => J.value,
|
|
881
881
|
() => {
|
|
882
882
|
var u;
|
|
883
883
|
((u = c.value) == null ? void 0 : u.length) !== 0 && (f.setOriginalData(c.value), f.setItemData(c.value));
|
|
@@ -915,7 +915,7 @@ const Z = S(0), Se = (t) => {
|
|
|
915
915
|
multiple: ""
|
|
916
916
|
}, null, 544),
|
|
917
917
|
X("button", {
|
|
918
|
-
onClick:
|
|
918
|
+
onClick: U,
|
|
919
919
|
class: "import-button-content"
|
|
920
920
|
}, "导入文件"),
|
|
921
921
|
D.value ? (w(), L("span", Dt, re(D.value), 1)) : z("", !0)
|
|
@@ -947,7 +947,7 @@ const Z = S(0), Se = (t) => {
|
|
|
947
947
|
]);
|
|
948
948
|
};
|
|
949
949
|
}
|
|
950
|
-
}, wt = /* @__PURE__ */ ie(Et, [["__scopeId", "data-v-
|
|
950
|
+
}, wt = /* @__PURE__ */ ie(Et, [["__scopeId", "data-v-245fc653"]]);
|
|
951
951
|
export {
|
|
952
952
|
wt as default
|
|
953
953
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createElementBlock as d, openBlock as D, createElementVNode as E, renderSlot as R, defineComponent as Y, ref as t, resolveComponent as e, createVNode as C, withCtx as I, reactive as K, watch as M, unref as U, toDisplayString as S, createTextVNode as l } from "vue";
|
|
2
2
|
import { _ as a } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { u as L, l as m } from "./index-
|
|
3
|
+
import { u as L, l as m } from "./index-23lYlUAm.js";
|
|
4
4
|
import { useRouter as O } from "vue-router";
|
|
5
5
|
const H = {}, P = { class: "header-wrapper" }, v = { class: "header-horizontal" }, j = { class: "header-logo" }, h = { class: "header-cTitle" }, r = { class: "header-horizontal" }, G = { class: "header-eTitle" };
|
|
6
6
|
function b(Q, s) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as Sp, onMounted as Ab, watch as vL, onUnmounted as cL, createElementBlock as Mb, openBlock as Ib, createVNode as pL } from "vue";
|
|
2
2
|
import { _ as Lb } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { c as Ki } from "./cloneDeep-
|
|
3
|
+
import { c as Ki } from "./cloneDeep-6gh99jtb.js";
|
|
4
4
|
/*! *****************************************************************************
|
|
5
5
|
Copyright (c) Microsoft Corporation.
|
|
6
6
|
|