ss-component-new 1.1.64 → 1.1.66
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-BGMpYX__.js → array--0IppVXf.js} +3 -3
- package/dist/index-BIlayS_1.js +671 -0
- package/dist/{index-DiAssal2.js → index-BvoThyOF.js} +1 -1
- package/dist/{index-K2751gew.js → index-C8dZocQc.js} +3 -3
- package/dist/{index-zogzyMot.js → index-CCr_UQBn.js} +105 -105
- package/dist/{main-DqI34-Cq.js → main-B61LgIPg.js} +3 -3
- package/dist/{menu-D6yKPqgS.js → menu-oGClEGzK.js} +5 -7
- package/dist/{modelComp-Cr1QF6ip.js → modelComp-CqA1NVfH.js} +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +4 -4
- package/dist/ss-component.umd.cjs +45 -49
- package/package.json +1 -1
- package/dist/index-B1PA43Yh.js +0 -1023
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref as U, onMounted as Ln, watch as de, createElementBlock as re, openBlock as X, createBlock as Be, createVNode as Y, createSlots as qn, withCtx as ce, Fragment as Ze, renderList as Qe, createElementVNode as M, normalizeStyle as Jn, toDisplayString as Z, createCommentVNode as Yt, resolveComponent as We, createTextVNode as Ue, unref as en, resolveDynamicComponent as Et } from "vue";
|
|
2
|
-
import { g as Mn, c as zn, d as tn, s as Ee, E as Hn, u as In } from "./menu-
|
|
3
|
-
import { u as Ye } from "./modelComp-
|
|
2
|
+
import { g as Mn, c as zn, d as tn, s as Ee, E as Hn, u as In } from "./menu-oGClEGzK.js";
|
|
3
|
+
import { u as Ye } from "./modelComp-CqA1NVfH.js";
|
|
4
4
|
import { c as v, _ as Re } from "./_plugin-vue_export-helper-B7R8Jogt.js";
|
|
5
|
-
import { s as Oe, a as Vn, b as et, f as Wn, E as Fe } from "./index-
|
|
5
|
+
import { s as Oe, a as Vn, b as et, f as Wn, E as Fe } from "./index-CCr_UQBn.js";
|
|
6
6
|
import { _ as Kn } from "./index.vue_vue_type_script_setup_true_lang-DQ2k4Z7D.js";
|
|
7
7
|
const Lt = (e, t) => {
|
|
8
8
|
const n = e.storage || sessionStorage, r = e.key || t.$id;
|
|
@@ -0,0 +1,671 @@
|
|
|
1
|
+
import { ref as F, onMounted as de, createElementBlock as E, openBlock as M, Fragment as re, renderList as ce, createElementVNode as H, createCommentVNode as L, toDisplayString as te, watch as Q, createVNode as V, unref as K, createBlock as ne, resolveDynamicComponent as me } from "vue";
|
|
2
|
+
import { v as z, d as q, p as X, u as he, f as fe, i as ye, e as ge, g as ke, m as Ce, a as _e, b as be, c as $e } from "./array--0IppVXf.js";
|
|
3
|
+
import { u as oe } from "./modelComp-CqA1NVfH.js";
|
|
4
|
+
import { u as ie, s as Z } from "./menu-oGClEGzK.js";
|
|
5
|
+
import De from "./index-C8dZocQc.js";
|
|
6
|
+
import { _ as se, c as u } from "./_plugin-vue_export-helper-B7R8Jogt.js";
|
|
7
|
+
const Ae = { class: "bread-content" }, je = ["onClick"], Oe = { key: 0 }, Me = {
|
|
8
|
+
__name: "index",
|
|
9
|
+
props: {
|
|
10
|
+
breadArray: {
|
|
11
|
+
type: Array,
|
|
12
|
+
default: () => []
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
emits: ["click"],
|
|
16
|
+
setup(s, { emit: r }) {
|
|
17
|
+
const e = s, t = F([]), n = r;
|
|
18
|
+
de(() => {
|
|
19
|
+
t.value = e == null ? void 0 : e.breadArray;
|
|
20
|
+
});
|
|
21
|
+
const m = (y) => {
|
|
22
|
+
n("click", y);
|
|
23
|
+
};
|
|
24
|
+
return (y, k) => (M(), E("div", Ae, [
|
|
25
|
+
(M(!0), E(re, null, ce(t.value, (g, h) => (M(), E("div", {
|
|
26
|
+
key: h,
|
|
27
|
+
class: "bread-item"
|
|
28
|
+
}, [
|
|
29
|
+
H("div", {
|
|
30
|
+
class: "bread-title",
|
|
31
|
+
onClick: (a) => m(g)
|
|
32
|
+
}, te(g.value), 9, je),
|
|
33
|
+
h !== t.value.length - 1 ? (M(), E("div", Oe, te("/"))) : L("", !0)
|
|
34
|
+
]))), 128))
|
|
35
|
+
]));
|
|
36
|
+
}
|
|
37
|
+
}, Ie = /* @__PURE__ */ se(Me, [["__scopeId", "data-v-d55d3ede"]]);
|
|
38
|
+
function xe(s) {
|
|
39
|
+
const r = [], e = {
|
|
40
|
+
"(": ")",
|
|
41
|
+
"{": "}",
|
|
42
|
+
"[": "]"
|
|
43
|
+
};
|
|
44
|
+
for (let t = 0; t < s.length; t++) {
|
|
45
|
+
const n = s[t];
|
|
46
|
+
if (e[n])
|
|
47
|
+
r.push(n);
|
|
48
|
+
else if (Object.values(e).includes(n)) {
|
|
49
|
+
const m = r.pop();
|
|
50
|
+
if (console.log("stack", r, m, e[m]), e[m] !== n)
|
|
51
|
+
return !1;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return r.length === 0;
|
|
55
|
+
}
|
|
56
|
+
function Ee(s) {
|
|
57
|
+
var t, n, m, y;
|
|
58
|
+
const r = (n = (t = s[0]) == null ? void 0 : t.compData) == null ? void 0 : n.filter((k) => k.key !== "formContent"), e = (y = (m = s[0]) == null ? void 0 : m.compData) == null ? void 0 : y.filter((k) => k.key === "formContent");
|
|
59
|
+
console.log("handleFormModel:", r, e, s);
|
|
60
|
+
}
|
|
61
|
+
const Y = F(0), Te = (s) => {
|
|
62
|
+
let r;
|
|
63
|
+
s.includes(`\r
|
|
64
|
+
`) ? r = s.split(`\r
|
|
65
|
+
`).filter((n) => n.trim() !== "") : r = s.split(`
|
|
66
|
+
`).filter((n) => n.trim() !== "");
|
|
67
|
+
const e = [];
|
|
68
|
+
let t = "";
|
|
69
|
+
for (const n of r)
|
|
70
|
+
n.includes("{") || t.includes("{") || n.includes("[") || t.includes("[") || n.includes("【") || t.includes("【") || n.includes("(") || t.includes("(") || n.includes("(") || t.includes("(") || n.includes("/*") || t.includes("/*") ? (t += n.trim(), u(t).split("{").length - 1 === u(t).split("}").length - 1 && u(t).split("【").length - 1 === u(t).split("】").length - 1 && u(t).split("[").length - 1 === u(t).split("]").length - 1 && u(t).split("(").length - 1 === u(t).split(")").length - 1 && u(t).split("(").length - 1 === u(t).split(")").length - 1 && u(t).split("/*").length - 1 === u(t).split("*/").length - 1 && (e.push(t), t = "")) : e.push(n.trim());
|
|
71
|
+
return e;
|
|
72
|
+
}, Ue = (s) => {
|
|
73
|
+
const [r, e] = s.split(/=(.+)/), t = r.replace(/['"]/g, "").trim(), n = e.replace(/^['"]|['"]$/g, "");
|
|
74
|
+
return { key: t, value: n };
|
|
75
|
+
}, ee = (s) => {
|
|
76
|
+
try {
|
|
77
|
+
return JSON.parse(s), !0;
|
|
78
|
+
} catch {
|
|
79
|
+
return !1;
|
|
80
|
+
}
|
|
81
|
+
}, Se = (s) => s.includes("$") && s.trim().endsWith("(") ? s + ")" : s, Ne = (s) => {
|
|
82
|
+
let r = s;
|
|
83
|
+
const e = [];
|
|
84
|
+
let t = "";
|
|
85
|
+
for (const n of r)
|
|
86
|
+
n.includes("{") || t.includes("{") || n.includes("[") || t.includes("[") || n.includes("【") || t.includes("【") || n.includes("(") || t.includes("(") || n.includes("(") || t.includes("(") || n.includes("/*") || t.includes("/*") ? (t += n.trim(), u(t).split("{").length - 1 === u(t).split("}").length - 1 && u(t).split("【").length - 1 === u(t).split("】").length - 1 && u(t).split("[").length - 1 === u(t).split("]").length - 1 && u(t).split("(").length - 1 === u(t).split(")").length - 1 && u(t).split("(").length - 1 === u(t).split(")").length - 1 && u(t).split("/*").length - 1 === u(t).split("*/").length - 1 && (e.push(t), t = "")) : e.push(n.trim());
|
|
87
|
+
return e == null ? void 0 : e.filter((n) => n.includes("{"));
|
|
88
|
+
}, Je = (s) => {
|
|
89
|
+
var e;
|
|
90
|
+
let r = [];
|
|
91
|
+
return (e = Ne(s.slice(1, -1))) == null || e.forEach((t) => {
|
|
92
|
+
var m, y, k, g;
|
|
93
|
+
let n = ((y = (m = t.slice(1, -1)) == null ? void 0 : m.split(",")) == null ? void 0 : y.length) ?? 1;
|
|
94
|
+
(g = (k = t.slice(1, -1)) == null ? void 0 : k.split(",")) == null || g.forEach((h) => {
|
|
95
|
+
var f, I, d, C, A, j, T, U, _, l, o, c, i;
|
|
96
|
+
let a = h == null ? void 0 : h.split(":"), R = a != null && a[0] ? (a == null ? void 0 : a[1].split("$").length) - 1 === 1 ? ((f = a == null ? void 0 : a[0]) == null ? void 0 : f.replace(/^"(.*)"$/, "$1")) + ((I = a == null ? void 0 : a[1]) == null ? void 0 : I.replace(/^"(.*)"$/, "$1")) : Array.isArray((C = (d = a == null ? void 0 : a[1]) == null ? void 0 : d.replace(/^"(.*)"$/, "$1")) == null ? void 0 : C.split("(")) && ((T = (j = (A = a == null ? void 0 : a[1]) == null ? void 0 : A.replace(/^"(.*)"$/, "$1")) == null ? void 0 : j.split("(")) == null ? void 0 : T.length) > 1 ? ((U = a == null ? void 0 : a[0]) == null ? void 0 : U.replace(/^"(.*)"$/, "$1")) + ((o = (l = (_ = a == null ? void 0 : a[1]) == null ? void 0 : _.replace(/^"(.*)"$/, "$1")) == null ? void 0 : l.split("(")) == null ? void 0 : o[0]) + "()" : (c = a == null ? void 0 : a[0]) == null ? void 0 : c.replace(/^"(.*)"$/, "$1") : "", $ = (a == null ? void 0 : a[1].split("$").length) - 1 === 0 ? (i = a == null ? void 0 : a[1]) == null ? void 0 : i.replace(/^"(.*)"$/, "$1") : "";
|
|
97
|
+
Y.value++, r.push({
|
|
98
|
+
id: Y.value,
|
|
99
|
+
key: R,
|
|
100
|
+
value: $,
|
|
101
|
+
// 如果值为空,则key设为空字符串,否则保留原值
|
|
102
|
+
width: n,
|
|
103
|
+
extraContent: a == null ? void 0 : a[1]
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
}), r;
|
|
107
|
+
}, ue = (s) => {
|
|
108
|
+
var r, e;
|
|
109
|
+
try {
|
|
110
|
+
const t = s.replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",").replace(/:/g, ":").replace(/:\s*(?=,|}|$)/g, ': ""');
|
|
111
|
+
if (u(t).split("{").length - 1 > 1) {
|
|
112
|
+
let n = u(t).replace(/^\{(.*)\}$/, "[$1]");
|
|
113
|
+
if (ee(n) && !n.includes("$") || (n = n.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g, '"$1$$$2"')), ee(n)) {
|
|
114
|
+
const m = JSON.parse(n);
|
|
115
|
+
let y = [];
|
|
116
|
+
return m == null || m.forEach((k) => {
|
|
117
|
+
var g;
|
|
118
|
+
(g = Object.entries(u(k))) == null || g.forEach((h) => {
|
|
119
|
+
Y.value++, y.push({
|
|
120
|
+
id: Y.value,
|
|
121
|
+
key: (h == null ? void 0 : h[0]) ?? "",
|
|
122
|
+
value: (h == null ? void 0 : h[1]) === "" ? "" : h == null ? void 0 : h[1],
|
|
123
|
+
// 如果值为空,则key设为空字符串,否则保留原值
|
|
124
|
+
width: Object.keys(u(k)).length
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
}), y;
|
|
128
|
+
} else
|
|
129
|
+
return t.trim().startsWith("{{") ? Je(t.trim()) : le(n);
|
|
130
|
+
} else if (ee(t)) {
|
|
131
|
+
const n = JSON.parse(t);
|
|
132
|
+
return Object.entries(n).map(([m, y]) => (Y.value++, {
|
|
133
|
+
id: Y.value,
|
|
134
|
+
key: m,
|
|
135
|
+
value: y === "" ? "" : y,
|
|
136
|
+
// 如果值为空,则key设为空字符串,否则保留原值
|
|
137
|
+
width: 1
|
|
138
|
+
}));
|
|
139
|
+
} else
|
|
140
|
+
return ((r = le(t)) == null ? void 0 : r.length) === 0 ? t : (e = le(t)) == null ? void 0 : e.map((n) => ({
|
|
141
|
+
label: n.label,
|
|
142
|
+
method: Se(n.method)
|
|
143
|
+
}));
|
|
144
|
+
} catch (t) {
|
|
145
|
+
return console.error("转换失败:", t), [];
|
|
146
|
+
}
|
|
147
|
+
}, le = (s) => {
|
|
148
|
+
s = s.trim().replace(/^\{|\}$/g, "").trim();
|
|
149
|
+
const r = [];
|
|
150
|
+
let e = 0;
|
|
151
|
+
for (; e < s.length; ) {
|
|
152
|
+
const t = s.slice(e).match(/^\s*"([^"]+)"\s*:\s*/);
|
|
153
|
+
if (!t) break;
|
|
154
|
+
const n = t[1];
|
|
155
|
+
e += t[0].length;
|
|
156
|
+
let m = "", y = 0, k = !1, g = "";
|
|
157
|
+
for (let h = e; h < s.length; h++) {
|
|
158
|
+
const a = s[h];
|
|
159
|
+
if ((a === '"' || a === "'") && !k ? (k = !0, g = a) : a === g && k && (k = !1, g = ""), !k && ((a === "{" || a === "(" || a === "[") && y++, (a === "}" || a === ")" || a === "]") && y--, a === "," && y === 0 || h === s.length - 1)) {
|
|
160
|
+
m = s.slice(e, h + 1).trim(), e = h + 1;
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
r.push({
|
|
165
|
+
label: n,
|
|
166
|
+
method: m
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
return r;
|
|
170
|
+
}, we = (s, r) => {
|
|
171
|
+
var e;
|
|
172
|
+
try {
|
|
173
|
+
if ((e = z) != null && e.find((t) => (t == null ? void 0 : t.key) === r))
|
|
174
|
+
return s.replace(/['"]/g, "").trim();
|
|
175
|
+
if (u(s).split("[").length - 1 > 1) {
|
|
176
|
+
const t = u(s).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
|
|
177
|
+
return JSON.parse(t);
|
|
178
|
+
} else {
|
|
179
|
+
const t = u(s).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",");
|
|
180
|
+
if (ee(t)) {
|
|
181
|
+
const n = JSON.parse(t);
|
|
182
|
+
return Array.isArray(n) ? n.map((m) => ({ label: m })) : n;
|
|
183
|
+
} else
|
|
184
|
+
return ue(u(s));
|
|
185
|
+
}
|
|
186
|
+
} catch (t) {
|
|
187
|
+
return console.error("解析失败:", t), s;
|
|
188
|
+
}
|
|
189
|
+
}, ve = (s) => ({ [s == null ? void 0 : s.key]: we(s == null ? void 0 : s.value, s == null ? void 0 : s.key) }), Fe = (s) => {
|
|
190
|
+
try {
|
|
191
|
+
if (u(s).split("[").length - 1 > 1) {
|
|
192
|
+
const r = u(s).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
|
|
193
|
+
return JSON.parse(r);
|
|
194
|
+
} else
|
|
195
|
+
return JSON.parse(u(s).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",")).map((e) => ({ label: e }));
|
|
196
|
+
} catch (r) {
|
|
197
|
+
return console.error("解析失败:", r), s;
|
|
198
|
+
}
|
|
199
|
+
}, Pe = (s) => {
|
|
200
|
+
const r = s.match(/\(([^)]+)\)/);
|
|
201
|
+
return r ? r[1] : "";
|
|
202
|
+
}, Be = (s) => {
|
|
203
|
+
const r = s.match(/^([^(]+)\s*\(/);
|
|
204
|
+
return r ? r[1].trim() : s;
|
|
205
|
+
}, ae = (s) => s.replace(/'/g, "").replace(/"/g, "").replace(/{|}/g, "").split(":").map((r) => r.trim()).filter((r) => r).join("/"), We = (s) => {
|
|
206
|
+
var y, k;
|
|
207
|
+
let r = [], e = [];
|
|
208
|
+
const t = (y = u(s)) == null ? void 0 : y.map((g) => g == null ? void 0 : g.key), n = [...new Set((k = u(t)) == null ? void 0 : k.map((g) => Pe(g)))];
|
|
209
|
+
n == null || n.forEach((g) => {
|
|
210
|
+
let h = s == null ? void 0 : s.filter(($) => $.key.includes(g));
|
|
211
|
+
h == null || h.forEach(($) => {
|
|
212
|
+
$ != null && $.key.includes("Menus") && (r.push({
|
|
213
|
+
key: "GroupName",
|
|
214
|
+
value: ae($ == null ? void 0 : $.value)
|
|
215
|
+
}), e.push(ae($ == null ? void 0 : $.value)));
|
|
216
|
+
});
|
|
217
|
+
let a = s == null ? void 0 : s.filter(($) => $.key.includes(g) && !($ != null && $.key.includes("Menus")));
|
|
218
|
+
a = a == null ? void 0 : a.map(($) => ($.key = Be($.key), $));
|
|
219
|
+
const R = {
|
|
220
|
+
key: "GroupContents",
|
|
221
|
+
value: a
|
|
222
|
+
};
|
|
223
|
+
r.push(R);
|
|
224
|
+
});
|
|
225
|
+
const m = {
|
|
226
|
+
key: "Menus",
|
|
227
|
+
value: e
|
|
228
|
+
};
|
|
229
|
+
return r.unshift(m), r;
|
|
230
|
+
}, pe = (s) => {
|
|
231
|
+
var r, e;
|
|
232
|
+
if (Array.isArray(Object.keys(s)) && ((r = Object.keys(s)) == null ? void 0 : r.length) > 0) {
|
|
233
|
+
let t = [];
|
|
234
|
+
return (e = Object.entries(s)) == null || e.forEach(([n, m]) => {
|
|
235
|
+
var k, g;
|
|
236
|
+
let y = [];
|
|
237
|
+
if (y.push(n), ((k = Object.keys(m)) == null ? void 0 : k.length) > 0) {
|
|
238
|
+
let h = [];
|
|
239
|
+
h.push((g = pe(m)) == null ? void 0 : g[0]), y.push(h == null ? void 0 : h[0]);
|
|
240
|
+
}
|
|
241
|
+
t.push(y);
|
|
242
|
+
}), t;
|
|
243
|
+
}
|
|
244
|
+
}, Ge = (s, r) => {
|
|
245
|
+
var t;
|
|
246
|
+
let e = r;
|
|
247
|
+
return Array.isArray(Object.keys(s)) && ((t = Object.entries(s)) == null || t.forEach(([n, m]) => {
|
|
248
|
+
let y = [n];
|
|
249
|
+
if (typeof m == "object" && m !== null) {
|
|
250
|
+
let k = pe(m);
|
|
251
|
+
k == null || k.forEach((g) => {
|
|
252
|
+
y.push(g);
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
e.push(y);
|
|
256
|
+
})), e;
|
|
257
|
+
}, Le = (s) => {
|
|
258
|
+
const r = {};
|
|
259
|
+
return s.forEach((t) => {
|
|
260
|
+
const n = t.split("/");
|
|
261
|
+
let m = r;
|
|
262
|
+
n.forEach((y) => {
|
|
263
|
+
m[y] || (m[y] = {}), m = m[y];
|
|
264
|
+
});
|
|
265
|
+
}), Ge(r, []);
|
|
266
|
+
}, Re = (s) => Le(s), Ke = (s) => {
|
|
267
|
+
var y, k, g, h, a, R, $;
|
|
268
|
+
const r = Te((k = (y = u(s)) == null ? void 0 : y.replace("(", "(")) == null ? void 0 : k.replace(")", ")")), e = (h = (g = u(r)) == null ? void 0 : g.filter((f) => !f.includes("/*"))) == null ? void 0 : h.map((f) => Ue(f)), t = We(e), n = [];
|
|
269
|
+
(a = u(t)) == null || a.forEach((f) => {
|
|
270
|
+
var I, d, C, A, j, T, U, _, l;
|
|
271
|
+
(I = z) != null && I.find((o) => {
|
|
272
|
+
var c, i;
|
|
273
|
+
return ((c = o == null ? void 0 : o.key) == null ? void 0 : c.toUpperCase()) === ((i = f == null ? void 0 : f.key) == null ? void 0 : i.toUpperCase());
|
|
274
|
+
}) ? n.push({
|
|
275
|
+
comp: ((C = (d = z) == null ? void 0 : d.find((o) => {
|
|
276
|
+
var c, i;
|
|
277
|
+
return ((c = o == null ? void 0 : o.key) == null ? void 0 : c.toUpperCase()) === ((i = f == null ? void 0 : f.key) == null ? void 0 : i.toUpperCase());
|
|
278
|
+
})) == null ? void 0 : C.value) ?? "",
|
|
279
|
+
name: (A = f == null ? void 0 : f.value) == null ? void 0 : A.replace(/[’]|[‘]|[']/g, ""),
|
|
280
|
+
compData: []
|
|
281
|
+
}) : (j = q) != null && j.find((o) => {
|
|
282
|
+
var c, i;
|
|
283
|
+
return ((c = o == null ? void 0 : o.key) == null ? void 0 : c.toUpperCase()) === ((i = f == null ? void 0 : f.key) == null ? void 0 : i.toUpperCase());
|
|
284
|
+
}) && ((n == null ? void 0 : n.length) === 0 && (T = f.key) != null && T.includes("Menus") && n.push({
|
|
285
|
+
comp: "Menu",
|
|
286
|
+
name: "",
|
|
287
|
+
compData: []
|
|
288
|
+
}), (U = n == null ? void 0 : n[(n == null ? void 0 : n.length) - 1]) != null && U.compData && n[(n == null ? void 0 : n.length) - 1].compData.push({
|
|
289
|
+
key: (l = (_ = q) == null ? void 0 : _.find((o) => {
|
|
290
|
+
var c, i;
|
|
291
|
+
return ((c = o == null ? void 0 : o.key) == null ? void 0 : c.toUpperCase()) === ((i = f == null ? void 0 : f.key) == null ? void 0 : i.toUpperCase());
|
|
292
|
+
})) == null ? void 0 : l.value,
|
|
293
|
+
contents: f == null ? void 0 : f.value
|
|
294
|
+
}));
|
|
295
|
+
});
|
|
296
|
+
let m = (R = u(n)) == null ? void 0 : R.map((f) => {
|
|
297
|
+
var I;
|
|
298
|
+
return f != null && f.compData && (f.compData = (I = f == null ? void 0 : f.compData) == null ? void 0 : I.map((d) => {
|
|
299
|
+
var C, A, j, T, U, _, l, o, c, i, p;
|
|
300
|
+
if ((d == null ? void 0 : d.key) === "formFlex")
|
|
301
|
+
d.contents = ((A = (C = d.contents) == null ? void 0 : C.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : A.toUpperCase()) !== "Vertical".toUpperCase();
|
|
302
|
+
else if ((d == null ? void 0 : d.key) === "groupContents")
|
|
303
|
+
d.contents = (j = u(d.contents)) == null ? void 0 : j.map((b) => ve(u(b)));
|
|
304
|
+
else if (Array.isArray(d == null ? void 0 : d.contents))
|
|
305
|
+
d.contents = Re(d.contents);
|
|
306
|
+
else if (((U = (T = d == null ? void 0 : d.contents) == null ? void 0 : T.trim()) != null && U.startsWith("[") || (l = (_ = d.contents) == null ? void 0 : _.trim()) != null && l.startsWith("【")) && ((c = (o = d.contents) == null ? void 0 : o.trim()) != null && c.endsWith("]") || (p = (i = d.contents) == null ? void 0 : i.trim()) != null && p.endsWith("】")))
|
|
307
|
+
d.contents = Fe(u(d.contents));
|
|
308
|
+
else {
|
|
309
|
+
if (!d.contents) return;
|
|
310
|
+
d.contents = ue(u(d.contents));
|
|
311
|
+
}
|
|
312
|
+
return d;
|
|
313
|
+
})), f;
|
|
314
|
+
});
|
|
315
|
+
return m = ($ = u(m)) == null ? void 0 : $.map((f) => {
|
|
316
|
+
var I;
|
|
317
|
+
return (f == null ? void 0 : f.comp) === "Group" && (f.compData = (I = f.compData) == null ? void 0 : I.map((d) => {
|
|
318
|
+
var A;
|
|
319
|
+
let C = [];
|
|
320
|
+
return (A = d.contents) == null || A.forEach((j) => {
|
|
321
|
+
var T, U, _, l, o, c, i, p, b, N, x, P, D, J, B, W, G;
|
|
322
|
+
if ((T = z) != null && T.find((O) => {
|
|
323
|
+
var S, w, v;
|
|
324
|
+
return ((S = O == null ? void 0 : O.key) == null ? void 0 : S.toUpperCase()) === ((v = (w = Object.keys(j)) == null ? void 0 : w[0]) == null ? void 0 : v.toUpperCase());
|
|
325
|
+
}))
|
|
326
|
+
C.push({
|
|
327
|
+
comp: (_ = (U = z) == null ? void 0 : U.find((O) => {
|
|
328
|
+
var S, w, v;
|
|
329
|
+
return ((S = O == null ? void 0 : O.key) == null ? void 0 : S.toUpperCase()) === ((v = (w = Object.keys(j)) == null ? void 0 : w[0]) == null ? void 0 : v.toUpperCase());
|
|
330
|
+
})) == null ? void 0 : _.value,
|
|
331
|
+
name: (o = (l = Object.values(j)) == null ? void 0 : l[0]) == null ? void 0 : o.replace(/[’]|[‘]|[']/g, ""),
|
|
332
|
+
compData: []
|
|
333
|
+
});
|
|
334
|
+
else if ((c = q) != null && c.find((O) => {
|
|
335
|
+
var S, w, v;
|
|
336
|
+
return ((S = O == null ? void 0 : O.key) == null ? void 0 : S.toUpperCase()) === ((v = (w = Object.keys(j)) == null ? void 0 : w[0]) == null ? void 0 : v.toUpperCase());
|
|
337
|
+
})) {
|
|
338
|
+
if ((C == null ? void 0 : C.length) === 0) return;
|
|
339
|
+
(i = C == null ? void 0 : C[(C == null ? void 0 : C.length) - 1]) != null && i.compData && C[(C == null ? void 0 : C.length) - 1].compData.push({
|
|
340
|
+
key: (b = (p = q) == null ? void 0 : p.find((O) => {
|
|
341
|
+
var S, w, v;
|
|
342
|
+
return ((S = O == null ? void 0 : O.key) == null ? void 0 : S.toUpperCase()) === ((v = (w = Object.keys(j)) == null ? void 0 : w[0]) == null ? void 0 : v.toUpperCase());
|
|
343
|
+
})) == null ? void 0 : b.value,
|
|
344
|
+
contents: (N = Object.values(j)) == null ? void 0 : N[0]
|
|
345
|
+
});
|
|
346
|
+
} else if ((P = (x = Object.keys(j)) == null ? void 0 : x[0]) != null && P.includes("$")) {
|
|
347
|
+
const O = (J = (D = Object.keys(u(j))) == null ? void 0 : D[0]) == null ? void 0 : J.split("$");
|
|
348
|
+
C[(C == null ? void 0 : C.length) - 1].compData.push({
|
|
349
|
+
key: (W = (B = q) == null ? void 0 : B.find((S) => {
|
|
350
|
+
var w, v;
|
|
351
|
+
return ((w = S == null ? void 0 : S.key) == null ? void 0 : w.toUpperCase()) === ((v = O == null ? void 0 : O[0]) == null ? void 0 : v.toUpperCase());
|
|
352
|
+
})) == null ? void 0 : W.value,
|
|
353
|
+
contents: (G = Object.values(j)) == null ? void 0 : G[0],
|
|
354
|
+
selectLabel: O == null ? void 0 : O[1]
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
return j;
|
|
358
|
+
}), d.contents = C, d;
|
|
359
|
+
})), f;
|
|
360
|
+
}), m;
|
|
361
|
+
}, He = { class: "system-wrap" }, Ye = {
|
|
362
|
+
key: 0,
|
|
363
|
+
class: "show-content"
|
|
364
|
+
}, qe = {
|
|
365
|
+
key: 0,
|
|
366
|
+
class: "item-menu-content"
|
|
367
|
+
}, ze = {
|
|
368
|
+
key: 0,
|
|
369
|
+
class: "item-view-group"
|
|
370
|
+
}, Qe = {
|
|
371
|
+
__name: "index",
|
|
372
|
+
props: {
|
|
373
|
+
content: String,
|
|
374
|
+
jsonContents: Array
|
|
375
|
+
},
|
|
376
|
+
emits: ["change", "contentChange"],
|
|
377
|
+
setup(s, { emit: r }) {
|
|
378
|
+
const e = s, t = r, n = oe(X);
|
|
379
|
+
he(X);
|
|
380
|
+
const m = F(!0), y = ie(), k = F(!0), { itemData: g } = Z(n), h = fe(X), { activeMenuPath: a, activeMenuOpenPaths: R, menuTriggerType: $, menus: f } = Z(y), { selectIndex: I, selectTitle: d } = Z(h), C = F([]), A = F([]), j = (l) => {
|
|
381
|
+
var c, i, p;
|
|
382
|
+
const o = (c = g.value) == null ? void 0 : c.find((b) => b.name === a.value);
|
|
383
|
+
A.value = (p = (i = o == null ? void 0 : o.compData) == null ? void 0 : i[0]) == null ? void 0 : p.contents, k.value = !0, k.value && (k.value = !1), t("change", {
|
|
384
|
+
wholeValue: C.value,
|
|
385
|
+
editValue: l
|
|
386
|
+
});
|
|
387
|
+
}, T = (l) => {
|
|
388
|
+
var N, x, P;
|
|
389
|
+
const o = u(C.value), c = o == null ? void 0 : o.map((D, J) => (J === (l == null ? void 0 : l.index) && (D.compData = l == null ? void 0 : l.contents), D));
|
|
390
|
+
let i = "";
|
|
391
|
+
(x = (N = u(c)) == null ? void 0 : N.filter((D) => (D == null ? void 0 : D.comp) === "Form")) == null || x.forEach((D) => {
|
|
392
|
+
var J;
|
|
393
|
+
(J = D == null ? void 0 : D.compData) == null || J.forEach((B) => {
|
|
394
|
+
var W;
|
|
395
|
+
(B == null ? void 0 : B.key) === "formContent" && ((W = B == null ? void 0 : B.contents) == null || W.forEach((G) => {
|
|
396
|
+
G.value !== "" && (i = i === "" ? G == null ? void 0 : G.value : i + "-" + (G == null ? void 0 : G.value));
|
|
397
|
+
}));
|
|
398
|
+
});
|
|
399
|
+
});
|
|
400
|
+
let p = d == null ? void 0 : d.value;
|
|
401
|
+
(p == null ? void 0 : p.length) > 0 ? p[0] = { key: "main", value: i } : (Array.isArray(p) || (p = []), p.push({ key: "main", value: i })), h.setSelectTitle(p), m.value = !1, C.value = c;
|
|
402
|
+
const b = (P = g.value) == null ? void 0 : P.map((D, J) => {
|
|
403
|
+
var B;
|
|
404
|
+
return D.name === a.value && (D.compData = (B = D.compData) == null ? void 0 : B.map((W) => ((W == null ? void 0 : W.key) === "groupContents" && (W.contents = C.value), W))), D;
|
|
405
|
+
});
|
|
406
|
+
n.setItemData(b), k.value && (k.value = !1), t("contentChange", {
|
|
407
|
+
wholeContent: g.value
|
|
408
|
+
});
|
|
409
|
+
}, U = (l) => {
|
|
410
|
+
var o, c;
|
|
411
|
+
if ((l == null ? void 0 : l.key) === "main")
|
|
412
|
+
h.setSelectIndex(""), h.setSelectMenu(""), h.setSelectTitle((o = d.value) == null ? void 0 : o[0]);
|
|
413
|
+
else {
|
|
414
|
+
const i = [];
|
|
415
|
+
let p = -1;
|
|
416
|
+
(c = d.value) == null || c.forEach((b, N) => {
|
|
417
|
+
(b == null ? void 0 : b.key) === (l == null ? void 0 : l.key) && (p = N), (p === -1 || p >= N) && i.push(b);
|
|
418
|
+
}), h.setSelectTitle(i), h.setSelectMenu(l == null ? void 0 : l.key);
|
|
419
|
+
}
|
|
420
|
+
};
|
|
421
|
+
Q(
|
|
422
|
+
() => g.value,
|
|
423
|
+
() => {
|
|
424
|
+
var o, c, i, p, b, N, x, P;
|
|
425
|
+
if (!g.value || ((o = g.value) == null ? void 0 : o.length) === 0 || !m.value) return;
|
|
426
|
+
let l = null;
|
|
427
|
+
if (!a.value)
|
|
428
|
+
l = (i = (c = u(g.value)) == null ? void 0 : c.filter((D) => (D == null ? void 0 : D.comp) === "Group")) == null ? void 0 : i[0], y.setActiveMenuPath(l == null ? void 0 : l.name);
|
|
429
|
+
else {
|
|
430
|
+
const D = (p = u(g.value)) == null ? void 0 : p.filter((J) => (J == null ? void 0 : J.comp) === "Group");
|
|
431
|
+
l = D == null ? void 0 : D.find((J) => J.name === a.value);
|
|
432
|
+
}
|
|
433
|
+
A.value = (N = (b = l == null ? void 0 : l.compData) == null ? void 0 : b[0]) == null ? void 0 : N.contents, C.value = (P = (x = l == null ? void 0 : l.compData) == null ? void 0 : x[0]) == null ? void 0 : P.contents, console.log("itemData监听", l, a.value, g.value);
|
|
434
|
+
},
|
|
435
|
+
{ deep: !0, immediate: !0 }
|
|
436
|
+
), Q(() => a.value, (l) => {
|
|
437
|
+
var o, c, i, p, b, N;
|
|
438
|
+
if (l) {
|
|
439
|
+
const x = (o = u(g.value)) == null ? void 0 : o.find((P) => P.name === l);
|
|
440
|
+
if (l && x) {
|
|
441
|
+
A.value = (i = (c = x == null ? void 0 : x.compData) == null ? void 0 : c[0]) == null ? void 0 : i.contents, C.value = (b = (p = x == null ? void 0 : x.compData) == null ? void 0 : p[0]) == null ? void 0 : b.contents, console.log("点击-新-data:", l, A.value);
|
|
442
|
+
const P = (N = A.value) == null ? void 0 : N.filter((D) => D.comp === "Form");
|
|
443
|
+
Ee(P);
|
|
444
|
+
} else
|
|
445
|
+
A.value = [], C.value = [];
|
|
446
|
+
h.setSelectTitle([]), h.setSelectIndex(""), h.setSelectMenu("");
|
|
447
|
+
}
|
|
448
|
+
}, {
|
|
449
|
+
immediate: !0
|
|
450
|
+
}), Q(
|
|
451
|
+
() => [e == null ? void 0 : e.content, e == null ? void 0 : e.jsonContents],
|
|
452
|
+
() => {
|
|
453
|
+
var i;
|
|
454
|
+
if (((i = e == null ? void 0 : e.jsonContents) == null ? void 0 : i.length) > 0) {
|
|
455
|
+
n.setOriginalData(e == null ? void 0 : e.jsonContents), n.setItemData(e == null ? void 0 : e.jsonContents);
|
|
456
|
+
return;
|
|
457
|
+
}
|
|
458
|
+
if (!(e != null && e.content) || (e == null ? void 0 : e.content) === "") return;
|
|
459
|
+
m.value = !0;
|
|
460
|
+
let l;
|
|
461
|
+
ye(e == null ? void 0 : e.content) ? l = ge(e == null ? void 0 : e.content) : l = Ke(e == null ? void 0 : e.content);
|
|
462
|
+
const o = Array.isArray(l) && (l == null ? void 0 : l.find((p) => {
|
|
463
|
+
var b;
|
|
464
|
+
return ((b = p.comp) == null ? void 0 : b.toUpperCase()) === "MENU";
|
|
465
|
+
}));
|
|
466
|
+
y.setRawMenu(o ?? {});
|
|
467
|
+
const c = Array.isArray(l) && (l == null ? void 0 : l.find((p) => {
|
|
468
|
+
var b;
|
|
469
|
+
return ((b = p.comp) == null ? void 0 : b.toUpperCase()) === "SYSTEM";
|
|
470
|
+
}));
|
|
471
|
+
y.setSystemKey((c == null ? void 0 : c.name) ?? ""), n.setOriginalData(l), n.setItemData(l);
|
|
472
|
+
},
|
|
473
|
+
{ deep: !0, immediate: !0 }
|
|
474
|
+
);
|
|
475
|
+
const _ = (l) => ke(l);
|
|
476
|
+
return (l, o) => {
|
|
477
|
+
var c, i;
|
|
478
|
+
return M(), E("div", He, [
|
|
479
|
+
V(De, { class: "sys-aside" }),
|
|
480
|
+
((c = A.value) == null ? void 0 : c.length) > 0 ? (M(), E("div", Ye, [
|
|
481
|
+
((i = K(d)) == null ? void 0 : i.length) > 1 ? (M(), E("div", qe, [
|
|
482
|
+
(M(), ne(Ie, {
|
|
483
|
+
key: K(d),
|
|
484
|
+
breadArray: K(d),
|
|
485
|
+
onClick: U
|
|
486
|
+
}, null, 8, ["breadArray"]))
|
|
487
|
+
])) : L("", !0),
|
|
488
|
+
(M(!0), E(re, null, ce(A.value, (p, b) => (M(), E("div", {
|
|
489
|
+
class: "item-content",
|
|
490
|
+
key: b
|
|
491
|
+
}, [
|
|
492
|
+
K(I) === "" || b.toString() === K(I) ? (M(), E("div", ze, te(p.name), 1)) : L("", !0),
|
|
493
|
+
K(I) === "" || b.toString() === K(I) ? (M(), ne(me(_(p.comp)), {
|
|
494
|
+
itemData: p == null ? void 0 : p.compData,
|
|
495
|
+
childItemData: p == null ? void 0 : p.itemChildData,
|
|
496
|
+
key: b,
|
|
497
|
+
onChange: j,
|
|
498
|
+
index: b,
|
|
499
|
+
onContentChange: T
|
|
500
|
+
}, null, 40, ["itemData", "childItemData", "index"])) : L("", !0)
|
|
501
|
+
]))), 128))
|
|
502
|
+
])) : L("", !0)
|
|
503
|
+
]);
|
|
504
|
+
};
|
|
505
|
+
}
|
|
506
|
+
}, Xe = /* @__PURE__ */ se(Qe, [["__scopeId", "data-v-38117cb6"]]), Ze = { class: "add-model-content" }, Ve = {
|
|
507
|
+
key: 0,
|
|
508
|
+
class: "model-import-data"
|
|
509
|
+
}, et = { class: "import-button" }, tt = { key: 0 }, nt = {
|
|
510
|
+
key: 1,
|
|
511
|
+
class: "model-operate"
|
|
512
|
+
}, st = { class: "model-select" }, lt = { class: "model-fill" }, at = {
|
|
513
|
+
key: 2,
|
|
514
|
+
class: "model-view"
|
|
515
|
+
}, rt = {
|
|
516
|
+
__name: "index",
|
|
517
|
+
props: {
|
|
518
|
+
mode: {
|
|
519
|
+
type: String,
|
|
520
|
+
default: "view"
|
|
521
|
+
},
|
|
522
|
+
content: {
|
|
523
|
+
type: String,
|
|
524
|
+
default: ""
|
|
525
|
+
},
|
|
526
|
+
jsonContents: {
|
|
527
|
+
type: Array,
|
|
528
|
+
default: () => []
|
|
529
|
+
},
|
|
530
|
+
showButton: {
|
|
531
|
+
type: Boolean,
|
|
532
|
+
default: !0
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
emits: ["change", "contentChange"],
|
|
536
|
+
setup(s, { emit: r }) {
|
|
537
|
+
const e = s, t = r, n = F(""), m = F([]), y = F(0), k = oe(X), g = ie(X), { itemData: h, originalData: a } = Z(k), { activeMenuPath: R } = Z(g), $ = F(null), f = F(0), I = F(""), d = (_) => {
|
|
538
|
+
t("contentChange", _);
|
|
539
|
+
}, C = (_) => {
|
|
540
|
+
var o;
|
|
541
|
+
const l = (o = u(_ == null ? void 0 : _.wholeValue)) == null ? void 0 : o.map((c) => {
|
|
542
|
+
var i;
|
|
543
|
+
return (c == null ? void 0 : c.comp) === "Form" && (c.compData = (i = c.compData) == null ? void 0 : i.map((p) => ((p == null ? void 0 : p.key) === "formContent" && (p.contents = $e(p == null ? void 0 : p.contents)), p))), c;
|
|
544
|
+
});
|
|
545
|
+
t("change", {
|
|
546
|
+
originalContents: a.value,
|
|
547
|
+
currentContents: _ == null ? void 0 : _.wholeValue,
|
|
548
|
+
editContent: _ == null ? void 0 : _.editValue,
|
|
549
|
+
arrayToContents: l
|
|
550
|
+
});
|
|
551
|
+
}, A = F([]), j = () => {
|
|
552
|
+
$.value.click();
|
|
553
|
+
}, T = (_) => {
|
|
554
|
+
const l = _.target.files[0];
|
|
555
|
+
if (!l) return;
|
|
556
|
+
const o = new FileReader();
|
|
557
|
+
o.onload = (c) => {
|
|
558
|
+
try {
|
|
559
|
+
n.value = c.target.result;
|
|
560
|
+
const i = xe(c.target.result);
|
|
561
|
+
console.log("handleFileChange-isValid", i), A.value = U(c.target.result), f.value++;
|
|
562
|
+
} catch (i) {
|
|
563
|
+
console.error("解析失败:", i);
|
|
564
|
+
}
|
|
565
|
+
}, o.onerror = (c) => {
|
|
566
|
+
console.error("文件读取错误:", c);
|
|
567
|
+
}, o.readAsText(l);
|
|
568
|
+
};
|
|
569
|
+
Q(
|
|
570
|
+
() => [e == null ? void 0 : e.content, e == null ? void 0 : e.jsonContents],
|
|
571
|
+
() => {
|
|
572
|
+
n.value = e == null ? void 0 : e.content, m.value = e == null ? void 0 : e.jsonContents;
|
|
573
|
+
},
|
|
574
|
+
{ deep: !0, immediate: !0 }
|
|
575
|
+
), Q(
|
|
576
|
+
() => f.value,
|
|
577
|
+
() => {
|
|
578
|
+
var _;
|
|
579
|
+
((_ = A.value) == null ? void 0 : _.length) !== 0 && (k.setOriginalData(A.value), k.setItemData(A.value));
|
|
580
|
+
},
|
|
581
|
+
{ deep: !0, immediate: !0 }
|
|
582
|
+
);
|
|
583
|
+
const U = (_) => {
|
|
584
|
+
let l = _.replace(/,/g, ",").replace(/;/g, ";").replace(/:/g, ":");
|
|
585
|
+
l = l.replace(/(\w+)\s*:/g, "$1:"), l = l.replace(/\r\n/g, "").replace(/\n/g, "").replace(/\t/g, "").replace(/\s+/g, " ").trim(), l = l.replace(/,\s*([}\]])/g, "$1"), l = l.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,}])/g, ": $2$4");
|
|
586
|
+
try {
|
|
587
|
+
return JSON.parse(l);
|
|
588
|
+
} catch (o) {
|
|
589
|
+
try {
|
|
590
|
+
const i = new Function(`return ${l}`)();
|
|
591
|
+
if (Array.isArray(i) || typeof i == "object")
|
|
592
|
+
return i;
|
|
593
|
+
throw new Error(`解析结果不是有效的数组或对象: ${o}`);
|
|
594
|
+
} catch (c) {
|
|
595
|
+
throw new Error(`无法解析JSON: ${c.message}`);
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
};
|
|
599
|
+
return (_, l) => {
|
|
600
|
+
var o;
|
|
601
|
+
return M(), E("div", Ze, [
|
|
602
|
+
((o = e == null ? void 0 : e.jsonContents) == null ? void 0 : o.length) === 0 && (e != null && e.showButton) ? (M(), E("div", Ve, [
|
|
603
|
+
H("div", et, [
|
|
604
|
+
H("input", {
|
|
605
|
+
type: "file",
|
|
606
|
+
ref_key: "fileInput",
|
|
607
|
+
ref: $,
|
|
608
|
+
accept: ".txt",
|
|
609
|
+
onChange: T,
|
|
610
|
+
style: { display: "none" }
|
|
611
|
+
}, null, 544),
|
|
612
|
+
H("button", {
|
|
613
|
+
onClick: j,
|
|
614
|
+
class: "import-button-content"
|
|
615
|
+
}, "导入文件"),
|
|
616
|
+
I.value ? (M(), E("span", tt, te(I.value), 1)) : L("", !0)
|
|
617
|
+
])
|
|
618
|
+
])) : L("", !0),
|
|
619
|
+
(e == null ? void 0 : e.mode) === "edit" ? (M(), E("div", nt, [
|
|
620
|
+
H("div", st, [
|
|
621
|
+
V(Ce)
|
|
622
|
+
]),
|
|
623
|
+
(M(), E("div", {
|
|
624
|
+
class: "model-show",
|
|
625
|
+
key: y.value
|
|
626
|
+
}, [
|
|
627
|
+
V(_e)
|
|
628
|
+
])),
|
|
629
|
+
H("div", lt, [
|
|
630
|
+
V(be)
|
|
631
|
+
])
|
|
632
|
+
])) : L("", !0),
|
|
633
|
+
(e == null ? void 0 : e.mode) === "view" ? (M(), E("div", at, [
|
|
634
|
+
(M(), ne(Xe, {
|
|
635
|
+
content: n.value,
|
|
636
|
+
onChange: C,
|
|
637
|
+
jsonContents: m.value,
|
|
638
|
+
onContentChange: d,
|
|
639
|
+
key: y.value
|
|
640
|
+
}, null, 8, ["content", "jsonContents"]))
|
|
641
|
+
])) : L("", !0)
|
|
642
|
+
]);
|
|
643
|
+
};
|
|
644
|
+
}
|
|
645
|
+
}, ct = /* @__PURE__ */ se(rt, [["__scopeId", "data-v-876d48c6"]]), ot = {
|
|
646
|
+
__name: "index",
|
|
647
|
+
props: {
|
|
648
|
+
mode: {
|
|
649
|
+
type: String,
|
|
650
|
+
default: "view"
|
|
651
|
+
},
|
|
652
|
+
content: {
|
|
653
|
+
type: String,
|
|
654
|
+
default: ""
|
|
655
|
+
},
|
|
656
|
+
jsonContents: {
|
|
657
|
+
type: Array,
|
|
658
|
+
default: () => []
|
|
659
|
+
},
|
|
660
|
+
showButton: {
|
|
661
|
+
type: Boolean,
|
|
662
|
+
default: !0
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
setup(s) {
|
|
666
|
+
return F(!1), (r, e) => (M(), ne(ct));
|
|
667
|
+
}
|
|
668
|
+
}, ft = /* @__PURE__ */ se(ot, [["__scopeId", "data-v-a4fd5b5b"]]);
|
|
669
|
+
export {
|
|
670
|
+
ft as default
|
|
671
|
+
};
|