ss-component-new 1.1.53 → 1.1.60
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/{index-B4CGjAX5.js → index-7vIZGURE.js} +7 -4
- package/dist/{index-BbM6kIst.js → index-C_AHm6lH.js} +3 -3
- package/dist/{main-eELwGDVS.js → main-BPGujOeV.js} +184 -179
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +3 -3
- package/dist/ss-component.umd.cjs +3 -3
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as B, onMounted as on, watch as ce, createElementBlock as X, openBlock as M, createBlock as we, createVNode as ee, createSlots as In, withCtx as de, Fragment as Ie, renderList as ze, createElementVNode as J, normalizeStyle as zn, toDisplayString as Z, createCommentVNode as
|
|
1
|
+
import { ref as B, onMounted as on, watch as ce, createElementBlock as X, openBlock as M, createBlock as we, createVNode as ee, createSlots as In, withCtx as de, Fragment as Ie, renderList as ze, createElementVNode as J, normalizeStyle as zn, toDisplayString as Z, createCommentVNode as _e, resolveComponent as Ye, createTextVNode as qe, unref as rn, resolveDynamicComponent as ot } from "vue";
|
|
2
2
|
import { g as Mn, c as Vn, d as sn, s as ye, E as Hn, u as an } from "./menu-oGClEGzK.js";
|
|
3
|
-
import { s as xe, a as Wn, b as rt, f as Kn, E as Ue } from "./index-
|
|
4
|
-
import { c as
|
|
3
|
+
import { s as xe, a as Wn, b as rt, f as Kn, E as Ue } from "./index-7vIZGURE.js";
|
|
4
|
+
import { c as v } from "./cloneDeep-BM4uyVh0.js";
|
|
5
5
|
import { _ as be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
import { _ as Gn } from "./index.vue_vue_type_script_setup_true_lang-DQ2k4Z7D.js";
|
|
7
7
|
import { u as De } from "./modelComp-CqA1NVfH.js";
|
|
@@ -68,7 +68,7 @@ const ln = sn("formToTableComp", {
|
|
|
68
68
|
}, cn = (e, t) => {
|
|
69
69
|
var r;
|
|
70
70
|
let n = e, o = t;
|
|
71
|
-
return Array.isArray(n) ? n = n == null ? void 0 : n[parseInt(
|
|
71
|
+
return Array.isArray(n) ? n = n == null ? void 0 : n[parseInt(v(o == null ? void 0 : o[0]))] : Array.isArray(n == null ? void 0 : n.children) && (n = (r = n == null ? void 0 : n.children) == null ? void 0 : r[parseInt(v(o == null ? void 0 : o[0]))]), o == null || o.shift(), (o == null ? void 0 : o.length) > 0 && (n = cn(n, o)), n;
|
|
72
72
|
}, un = (e, t) => {
|
|
73
73
|
let n = e, o = t == null ? void 0 : t.filter((r) => (r == null ? void 0 : r.prop) !== "index");
|
|
74
74
|
return Array.isArray(n) && (n = n == null ? void 0 : n.map((r, s) => {
|
|
@@ -127,7 +127,7 @@ const ln = sn("formToTableComp", {
|
|
|
127
127
|
},
|
|
128
128
|
emits: ["change", "contentChange"],
|
|
129
129
|
setup(e, { emit: t }) {
|
|
130
|
-
const n = e, o = t, r = B([]), s = B([]), a = B(""), l = B(), m = B(!0), c = B(0), E = B(!1), i = B(""), O = B(!1), S = B([]), g = B(!1), A = B([]), d = B([]), b = B(), u = B(), w = ln(fe), h = B(), f = Zn(fe), { selectIndex:
|
|
130
|
+
const n = e, o = t, r = B([]), s = B([]), a = B(""), l = B(), m = B(!0), c = B(0), E = B(!1), i = B(""), O = B(!1), S = B([]), g = B(!1), A = B([]), d = B([]), b = B(), u = B(), w = ln(fe), h = B(), f = Zn(fe), { selectIndex: _, selectMenu: k, selectTitle: R } = ye(f), { selectString: D } = ye(w), y = B(720), G = () => {
|
|
131
131
|
O.value = !1;
|
|
132
132
|
}, N = (T) => {
|
|
133
133
|
var L, q, F, P, z;
|
|
@@ -139,7 +139,7 @@ const ln = sn("formToTableComp", {
|
|
|
139
139
|
var L, q, F;
|
|
140
140
|
if (T != null && T.children && Array.isArray(T == null ? void 0 : T.children)) {
|
|
141
141
|
let P = [];
|
|
142
|
-
const z = (L =
|
|
142
|
+
const z = (L = v(b.value)) == null ? void 0 : L.filter((j) => (j == null ? void 0 : j.prop) !== "index");
|
|
143
143
|
(q = T == null ? void 0 : T.children) == null || q.forEach((j, K) => {
|
|
144
144
|
if (!Array.isArray(j))
|
|
145
145
|
P.push(j);
|
|
@@ -150,12 +150,12 @@ const ln = sn("formToTableComp", {
|
|
|
150
150
|
(Be = z == null ? void 0 : z[je]) != null && Be.prop ? ne[z[je].prop] = ie : Array.isArray(ie) && (ne.children = ie);
|
|
151
151
|
}), P.push(Object.assign(ne, { id: K }));
|
|
152
152
|
}
|
|
153
|
-
}), r.value = (F =
|
|
153
|
+
}), r.value = (F = v(r.value)) == null ? void 0 : F.filter((j) => (j == null ? void 0 : j.prop) !== "index"), s.value = P;
|
|
154
154
|
}
|
|
155
155
|
}, V = (T, L) => {
|
|
156
156
|
var q;
|
|
157
157
|
if (a.value = "", g.value = !0, m.value = !0, T === "删除") {
|
|
158
|
-
s.value = (q =
|
|
158
|
+
s.value = (q = v(s.value)) == null ? void 0 : q.filter((P) => (P == null ? void 0 : P.id) !== (L == null ? void 0 : L.id));
|
|
159
159
|
const F = Yn(h.value, k.value, L == null ? void 0 : L.id);
|
|
160
160
|
C(F), o("change", {
|
|
161
161
|
content: F,
|
|
@@ -166,7 +166,7 @@ const ln = sn("formToTableComp", {
|
|
|
166
166
|
}, H = (T) => {
|
|
167
167
|
var q;
|
|
168
168
|
const L = [];
|
|
169
|
-
(q =
|
|
169
|
+
(q = v(r.value)) == null || q.forEach((F, P) => {
|
|
170
170
|
F.label !== "" && (F == null ? void 0 : F.label) !== "操作" && L.push({
|
|
171
171
|
label: (F == null ? void 0 : F.label) ?? "",
|
|
172
172
|
name: (F == null ? void 0 : F.prop) ?? "t" + P,
|
|
@@ -181,7 +181,7 @@ const ln = sn("formToTableComp", {
|
|
|
181
181
|
on(() => {
|
|
182
182
|
});
|
|
183
183
|
const W = () => {
|
|
184
|
-
let T =
|
|
184
|
+
let T = v(s.value);
|
|
185
185
|
a.value === "" ? (c.value++, T.push(Object.assign(u.value, { id: c.value }))) : T = T == null ? void 0 : T.map((q) => ((q == null ? void 0 : q.id) === a.value && (q = Object.assign(q, u.value)), q)), s.value = T;
|
|
186
186
|
const L = to(h.value, k.value, T);
|
|
187
187
|
C(L), O.value = !1, o("change", {
|
|
@@ -191,7 +191,7 @@ const ln = sn("formToTableComp", {
|
|
|
191
191
|
});
|
|
192
192
|
}, C = (T) => {
|
|
193
193
|
var q;
|
|
194
|
-
const L = (q =
|
|
194
|
+
const L = (q = v(n.itemData)) == null ? void 0 : q.map((F) => ((F == null ? void 0 : F.key) === "tableContents" && (F.contents = T), F));
|
|
195
195
|
o("contentChange", {
|
|
196
196
|
contents: L,
|
|
197
197
|
index: n.index
|
|
@@ -200,10 +200,10 @@ const ln = sn("formToTableComp", {
|
|
|
200
200
|
u.value = T;
|
|
201
201
|
};
|
|
202
202
|
return ce(
|
|
203
|
-
() => [n.itemData, D.value,
|
|
203
|
+
() => [n.itemData, D.value, _.value, k.value],
|
|
204
204
|
() => {
|
|
205
205
|
var ne, ie, je, Be, Rt, xt, Dt, Ft, Nt, jt, Bt, Pt, Ut, $t, Lt, qt, Jt, It;
|
|
206
|
-
const T = (ne =
|
|
206
|
+
const T = (ne = v(n.itemData)) == null ? void 0 : ne.filter((U) => (U == null ? void 0 : U.key) === "header"), L = (ie = v(n.itemData)) == null ? void 0 : ie.find((U) => (U == null ? void 0 : U.key) === "page"), q = (je = v(n.itemData)) == null ? void 0 : je.find((U) => (U == null ? void 0 : U.key) === "rowButton"), F = (Be = v(n.itemData)) == null ? void 0 : Be.find((U) => (U == null ? void 0 : U.key) === "extraButton"), P = (Rt = v(n.itemData)) == null ? void 0 : Rt.filter((U) => (U == null ? void 0 : U.key) === "tableContents"), z = (xt = v(n.itemData)) == null ? void 0 : xt.filter((U) => (U == null ? void 0 : U.key) === "tableIndex");
|
|
207
207
|
E.value = (L == null ? void 0 : L.contents) ?? !0;
|
|
208
208
|
let j = [];
|
|
209
209
|
D.value === "" ? j = T == null ? void 0 : T[0] : j = (T == null ? void 0 : T.find((U) => (U == null ? void 0 : U.selectLabel) === "(" + D.value + ")")) ?? (T == null ? void 0 : T.find((U) => !(U != null && U.selectLabel)));
|
|
@@ -230,14 +230,14 @@ const ln = sn("formToTableComp", {
|
|
|
230
230
|
type: (x == null ? void 0 : x.label) === "操作" ? "operate" : void 0
|
|
231
231
|
});
|
|
232
232
|
}), r.value = U;
|
|
233
|
-
let ke = (Bt = (jt =
|
|
233
|
+
let ke = (Bt = (jt = v(r.value)) == null ? void 0 : jt.filter((x) => (x == null ? void 0 : x.type) !== "operate")) == null ? void 0 : Bt.map((x, he) => ({
|
|
234
234
|
prop: (x == null ? void 0 : x.prop) ?? "a" + he
|
|
235
235
|
}));
|
|
236
236
|
b.value = ke;
|
|
237
237
|
let ge = [];
|
|
238
238
|
if (D.value === "" ? ge = P == null ? void 0 : P[0] : ge = (P == null ? void 0 : P.find((x) => (x == null ? void 0 : x.selectLabel) === "(" + D.value + ")")) ?? (P == null ? void 0 : P.find((x) => !(x != null && x.selectLabel))), ((Pt = ge == null ? void 0 : ge.contents) == null ? void 0 : Pt.length) !== 0) {
|
|
239
|
-
let x =
|
|
240
|
-
K != null && K.contents && ((Ut = K == null ? void 0 : K.contents) == null ? void 0 : Ut.length) !== 0 && (x = ($t =
|
|
239
|
+
let x = v(ge == null ? void 0 : ge.contents);
|
|
240
|
+
K != null && K.contents && ((Ut = K == null ? void 0 : K.contents) == null ? void 0 : Ut.length) !== 0 && (x = ($t = v(x)) == null ? void 0 : $t.map((ue, dt) => {
|
|
241
241
|
var Te, Ae;
|
|
242
242
|
if (!Array.isArray(ue)) {
|
|
243
243
|
let Pe = {};
|
|
@@ -256,13 +256,13 @@ const ln = sn("formToTableComp", {
|
|
|
256
256
|
}), he.push(Object.assign(Te, { id: dt }));
|
|
257
257
|
}), s.value = he;
|
|
258
258
|
} else {
|
|
259
|
-
let x = (Lt =
|
|
259
|
+
let x = (Lt = v(ke)) == null ? void 0 : Lt.reduce((he, ue) => (he[ue.prop] = "测试数据", he), {});
|
|
260
260
|
l.value = x, s.value = [Object.assign({}, l.value, { id: c.value })];
|
|
261
261
|
}
|
|
262
262
|
} else
|
|
263
263
|
r.value = [], s.value = [];
|
|
264
|
-
if (((qt = q == null ? void 0 : q.contents) == null ? void 0 : qt.length) > 0 ? S.value = q == null ? void 0 : q.contents : S.value = [], ((Jt = F == null ? void 0 : F.contents) == null ? void 0 : Jt.length) > 0 ? A.value = F == null ? void 0 : F.contents : A.value = [], c.value = ((It = s == null ? void 0 : s.value) == null ? void 0 : It.length) ?? 0,
|
|
265
|
-
const U = Qn(
|
|
264
|
+
if (((qt = q == null ? void 0 : q.contents) == null ? void 0 : qt.length) > 0 ? S.value = q == null ? void 0 : q.contents : S.value = [], ((Jt = F == null ? void 0 : F.contents) == null ? void 0 : Jt.length) > 0 ? A.value = F == null ? void 0 : F.contents : A.value = [], c.value = ((It = s == null ? void 0 : s.value) == null ? void 0 : It.length) ?? 0, _.value !== "") {
|
|
265
|
+
const U = Qn(v(s.value), k.value);
|
|
266
266
|
h.value = s.value, I(U);
|
|
267
267
|
}
|
|
268
268
|
},
|
|
@@ -319,7 +319,7 @@ const ln = sn("formToTableComp", {
|
|
|
319
319
|
class: "ok-button",
|
|
320
320
|
onClick: W
|
|
321
321
|
}, Z("确认"))
|
|
322
|
-
])) :
|
|
322
|
+
])) : _e("", !0)
|
|
323
323
|
]),
|
|
324
324
|
_: 1
|
|
325
325
|
}, 8, ["title", "visible", "width"])
|
|
@@ -360,7 +360,7 @@ const ln = sn("formToTableComp", {
|
|
|
360
360
|
setup(e, { emit: t }) {
|
|
361
361
|
const n = e, o = t, r = B([]), s = B(!1), a = B([]), l = ln(fe), m = B(), c = (i) => {
|
|
362
362
|
var d, b, u, w;
|
|
363
|
-
const O = (b = (d =
|
|
363
|
+
const O = (b = (d = v(n.itemData)) == null ? void 0 : d.find((h) => (h == null ? void 0 : h.key) === "formContent")) == null ? void 0 : b.contents, S = v(i.content);
|
|
364
364
|
let g = {};
|
|
365
365
|
S && ((u = Object.values(S)) == null ? void 0 : u.length) > 0 && ((w = Object.values(S)) == null || w.forEach((h, f) => {
|
|
366
366
|
g[O[f].key] = h;
|
|
@@ -374,18 +374,18 @@ const ln = sn("formToTableComp", {
|
|
|
374
374
|
}, E = (i) => {
|
|
375
375
|
var g, A;
|
|
376
376
|
if (!i) return;
|
|
377
|
-
if (((g = Object.values(
|
|
378
|
-
const d = (A = Object.values(
|
|
377
|
+
if (((g = Object.values(v(i))) == null ? void 0 : g.length) > 0) {
|
|
378
|
+
const d = (A = Object.values(v(i))) == null ? void 0 : A.map((u) => u);
|
|
379
379
|
let b = "";
|
|
380
380
|
d == null || d.forEach((u) => {
|
|
381
381
|
u !== "" && u !== void 0 && (b = b === "" ? u : b + "/" + u);
|
|
382
382
|
}), l.setSelectArray(d), l.setSelectString(b);
|
|
383
383
|
}
|
|
384
|
-
const O =
|
|
384
|
+
const O = v(n.itemData), S = O == null ? void 0 : O.map((d) => {
|
|
385
385
|
var b;
|
|
386
386
|
return (d == null ? void 0 : d.key) === "formContent" && ((b = d.contents) == null || b.map((u, w) => {
|
|
387
|
-
var h, f,
|
|
388
|
-
return u.type = u != null && u.type ? u.type : (
|
|
387
|
+
var h, f, _, k, R, D, y, G, N, I, V, H, W, C;
|
|
388
|
+
return u.type = u != null && u.type ? u.type : (_ = (f = (h = u == null ? void 0 : u.key.split("$")) == null ? void 0 : h[1]) == null ? void 0 : f.split("(")) != null && _[0] ? (k = He == null ? void 0 : He.find((Y) => {
|
|
389
389
|
var T, L, q;
|
|
390
390
|
return (Y == null ? void 0 : Y.key) === ((q = (L = (T = u == null ? void 0 : u.key.split("$")) == null ? void 0 : T[1]) == null ? void 0 : L.split("(")) == null ? void 0 : q[0]);
|
|
391
391
|
})) == null ? void 0 : k.value : "Input", u.options = u != null && u.options ? u.options : ((D = (R = u == null ? void 0 : u.key.split("$")) == null ? void 0 : R[1]) == null ? void 0 : D.length) > 0 ? (N = (G = Kn((y = u == null ? void 0 : u.key.split("$")) == null ? void 0 : y[1])) == null ? void 0 : G.split(",")) == null ? void 0 : N.map((Y) => ({
|
|
@@ -402,16 +402,16 @@ const ln = sn("formToTableComp", {
|
|
|
402
402
|
return ce(
|
|
403
403
|
() => n.itemData,
|
|
404
404
|
() => {
|
|
405
|
-
var A, d, b, u, w, h, f,
|
|
406
|
-
const i = (A =
|
|
405
|
+
var A, d, b, u, w, h, f, _, k, R;
|
|
406
|
+
const i = (A = v(n.itemData)) == null ? void 0 : A.find((D) => (D == null ? void 0 : D.key) === "formContent"), O = (d = v(n.itemData)) == null ? void 0 : d.find((D) => (D == null ? void 0 : D.key) === "formButton"), S = (b = v(n.itemData)) == null ? void 0 : b.find((D) => (D == null ? void 0 : D.key) === "formFlex"), g = (u = v(n.itemData)) == null ? void 0 : u.find((D) => (D == null ? void 0 : D.key) === "formWrap");
|
|
407
407
|
if ((g == null ? void 0 : g.contents) === "纵向" ? s.value = !1 : s.value = !0, m.value = typeof (S == null ? void 0 : S.contents) != "boolean" ? !(!(S != null && S.contents) === "" || ((w = S == null ? void 0 : S.contents) == null ? void 0 : w.toUpperCase()) === "VERTICAL") : S == null ? void 0 : S.contents, ((h = i == null ? void 0 : i.contents) == null ? void 0 : h.length) > 0 && Array.isArray(i == null ? void 0 : i.contents)) {
|
|
408
408
|
const D = [];
|
|
409
409
|
(f = i == null ? void 0 : i.contents) == null || f.forEach((N, I) => {
|
|
410
410
|
var V, H, W, C, Y, T, L, q, F;
|
|
411
411
|
if ((N == null ? void 0 : N.label) !== "") {
|
|
412
412
|
let P = (N == null ? void 0 : N.key) ?? "", z = (N == null ? void 0 : N.type) ?? "", j = (N == null ? void 0 : N.options) ?? [];
|
|
413
|
-
if (N != null && N.key.includes("$") && (P = (V =
|
|
414
|
-
const [K, ne] = (Y = (C =
|
|
413
|
+
if (N != null && N.key.includes("$") && (P = (V = v(N == null ? void 0 : N.key).split("$")) == null ? void 0 : V[0], ((W = (H = v(N == null ? void 0 : N.key).split("$")) == null ? void 0 : H[1]) == null ? void 0 : W.length) > 0)) {
|
|
414
|
+
const [K, ne] = (Y = (C = v(N == null ? void 0 : N.key).split("$")) == null ? void 0 : C[1]) == null ? void 0 : Y.split(/[()]/);
|
|
415
415
|
z = ((T = He.find((ie) => (ie == null ? void 0 : ie.key) === K)) == null ? void 0 : T.value) ?? "", ((L = ne == null ? void 0 : ne.split(",")) == null ? void 0 : L.length) > 0 && (j = (q = ne == null ? void 0 : ne.split(",")) == null ? void 0 : q.map((ie) => ({
|
|
416
416
|
label: ie,
|
|
417
417
|
value: ie
|
|
@@ -428,7 +428,7 @@ const ln = sn("formToTableComp", {
|
|
|
428
428
|
});
|
|
429
429
|
}
|
|
430
430
|
});
|
|
431
|
-
const y = (
|
|
431
|
+
const y = (_ = v(D)) == null ? void 0 : _.map((N) => N.value);
|
|
432
432
|
let G = "";
|
|
433
433
|
y == null || y.forEach((N) => {
|
|
434
434
|
N !== "" && N !== void 0 && (G = G === "" ? N : G + "/" + N);
|
|
@@ -461,7 +461,7 @@ const ln = sn("formToTableComp", {
|
|
|
461
461
|
}, null, 8, ["rowContents", "buttonValue", "isRowFlex", "isButtonRow"])
|
|
462
462
|
]));
|
|
463
463
|
}
|
|
464
|
-
}, uo = /* @__PURE__ */ be(co, [["__scopeId", "data-v-156885e4"]]), fo = { class: "table-operate-content" }, po = { class: "table-operate-item" }, ho = { class: "operate-title" }, mo = { class: "operate-content" }, yo = { class: "operate-title" }, bo = { class: "operate-content" }, go = { class: "operate-title" }, ko = { class: "operate-content" }, Eo = { class: "operate-content" },
|
|
464
|
+
}, uo = /* @__PURE__ */ be(co, [["__scopeId", "data-v-156885e4"]]), fo = { class: "table-operate-content" }, po = { class: "table-operate-item" }, ho = { class: "operate-title" }, mo = { class: "operate-content" }, yo = { class: "operate-title" }, bo = { class: "operate-content" }, go = { class: "operate-title" }, ko = { class: "operate-content" }, Eo = { class: "operate-content" }, _o = {
|
|
465
465
|
__name: "operate",
|
|
466
466
|
props: {
|
|
467
467
|
itemContents: {
|
|
@@ -589,9 +589,9 @@ const ln = sn("formToTableComp", {
|
|
|
589
589
|
type: "operate",
|
|
590
590
|
sortable: !1
|
|
591
591
|
}], S = (h) => {
|
|
592
|
-
let f =
|
|
593
|
-
const
|
|
594
|
-
(
|
|
592
|
+
let f = v(r.value);
|
|
593
|
+
const _ = f == null ? void 0 : f.find((k) => k.key === "page");
|
|
594
|
+
(_ == null ? void 0 : _.contents) !== void 0 ? f = f == null ? void 0 : f.map((k) => ((k == null ? void 0 : k.key) === "page" && (k.contents = h == null ? void 0 : h.isPagination), k)) : f.push({
|
|
595
595
|
key: "page",
|
|
596
596
|
contents: h == null ? void 0 : h.isPagination
|
|
597
597
|
}), r.value = f;
|
|
@@ -599,8 +599,8 @@ const ln = sn("formToTableComp", {
|
|
|
599
599
|
ce(
|
|
600
600
|
() => n.originalItemContents,
|
|
601
601
|
() => {
|
|
602
|
-
var h, f,
|
|
603
|
-
!n.originalItemContents || n.originalItemContents.length === 0 || (r.value =
|
|
602
|
+
var h, f, _, k, R, D, y, G, N, I, V, H, W;
|
|
603
|
+
!n.originalItemContents || n.originalItemContents.length === 0 || (r.value = v(n.originalItemContents), s.value = (f = (h = r.value) == null ? void 0 : h.find((C) => (C == null ? void 0 : C.key) === "header")) == null ? void 0 : f.contents, a.value = (k = (_ = r.value) == null ? void 0 : _.find((C) => (C == null ? void 0 : C.key) === "rowButton")) == null ? void 0 : k.contents, l.value = (D = (R = r.value) == null ? void 0 : R.find((C) => (C == null ? void 0 : C.key) === "extraButton")) == null ? void 0 : D.contents, i.value = (G = (y = r.value) == null ? void 0 : y.find((C) => (C == null ? void 0 : C.key) === "page")) != null && G.contents ? [{
|
|
604
604
|
name: "isPagination",
|
|
605
605
|
label: "是否显示分页",
|
|
606
606
|
type: "Switch",
|
|
@@ -638,22 +638,22 @@ const ln = sn("formToTableComp", {
|
|
|
638
638
|
), ce(
|
|
639
639
|
() => i.value,
|
|
640
640
|
() => {
|
|
641
|
-
var
|
|
642
|
-
let h =
|
|
641
|
+
var _;
|
|
642
|
+
let h = v(r.value);
|
|
643
643
|
const f = h == null ? void 0 : h.find((k) => k.key === "page");
|
|
644
644
|
f != null && f.contents ? h = h == null ? void 0 : h.map((k) => {
|
|
645
645
|
var R;
|
|
646
646
|
return (k == null ? void 0 : k.key) === "page" && (k.contents = (R = i.value) == null ? void 0 : R[0].value), k;
|
|
647
647
|
}) : h.push({
|
|
648
648
|
key: "page",
|
|
649
|
-
contents: (
|
|
649
|
+
contents: (_ = i.value) == null ? void 0 : _[0].value
|
|
650
650
|
}), r.value = h;
|
|
651
651
|
},
|
|
652
652
|
{ immediate: !0, deep: !0 }
|
|
653
653
|
);
|
|
654
654
|
const g = () => {
|
|
655
|
-
const h =
|
|
656
|
-
let f =
|
|
655
|
+
const h = v(s.value);
|
|
656
|
+
let f = v(r.value);
|
|
657
657
|
h.push({
|
|
658
658
|
label: "",
|
|
659
659
|
prop: "",
|
|
@@ -667,76 +667,76 @@ const ln = sn("formToTableComp", {
|
|
|
667
667
|
isOperate: !1,
|
|
668
668
|
id: E.value
|
|
669
669
|
}), s.value = h, E.value++;
|
|
670
|
-
const
|
|
671
|
-
|
|
670
|
+
const _ = f == null ? void 0 : f.find((k) => (k == null ? void 0 : k.key) === "header");
|
|
671
|
+
_ != null && _.contents ? (_.contents = h, f = f == null ? void 0 : f.map((k) => ((k == null ? void 0 : k.key) === "header" && (k.contents = h), k))) : f.push({
|
|
672
672
|
key: "header",
|
|
673
673
|
contents: h
|
|
674
674
|
}), r.value = f;
|
|
675
675
|
}, A = () => {
|
|
676
|
-
const h =
|
|
677
|
-
let f =
|
|
676
|
+
const h = v(a.value);
|
|
677
|
+
let f = v(r.value);
|
|
678
678
|
h.push({
|
|
679
679
|
label: "",
|
|
680
680
|
type: "",
|
|
681
681
|
textColor: "#000000",
|
|
682
682
|
id: E.value
|
|
683
683
|
}), a.value = h, E.value++;
|
|
684
|
-
const
|
|
685
|
-
|
|
684
|
+
const _ = f == null ? void 0 : f.find((k) => (k == null ? void 0 : k.key) === "rowButton");
|
|
685
|
+
_ != null && _.contents ? (_.contents = h, f = f == null ? void 0 : f.map((k) => ((k == null ? void 0 : k.key) === "rowButton" && (k.contents = h), k))) : f.push({
|
|
686
686
|
key: "rowButton",
|
|
687
687
|
contents: h
|
|
688
688
|
}), r.value = f;
|
|
689
689
|
}, d = () => {
|
|
690
|
-
const h =
|
|
691
|
-
let f =
|
|
690
|
+
const h = v(c.value);
|
|
691
|
+
let f = v(r.value);
|
|
692
692
|
h.push({
|
|
693
693
|
label: "",
|
|
694
694
|
type: "",
|
|
695
695
|
background: "#FFFFFF",
|
|
696
696
|
id: E.value
|
|
697
697
|
}), c.value = h, E.value++;
|
|
698
|
-
const
|
|
699
|
-
|
|
698
|
+
const _ = f == null ? void 0 : f.find((k) => (k == null ? void 0 : k.key) === "extraButton");
|
|
699
|
+
_ != null && _.contents ? (_.contents = h, f = f == null ? void 0 : f.map((k) => ((k == null ? void 0 : k.key) === "extraButton" && (k.contents = h), k))) : f.push({
|
|
700
700
|
key: "extraButton",
|
|
701
701
|
contents: h
|
|
702
702
|
}), r.value = f;
|
|
703
703
|
}, b = (h) => {
|
|
704
|
-
const f =
|
|
705
|
-
let
|
|
704
|
+
const f = v(a.value);
|
|
705
|
+
let _ = v(r.value);
|
|
706
706
|
a.value = f.filter((R) => R.id !== h.id);
|
|
707
|
-
const k =
|
|
708
|
-
k != null && k.contents && (
|
|
707
|
+
const k = _ == null ? void 0 : _.find((R) => R.key === "rowButton");
|
|
708
|
+
k != null && k.contents && (_ = _ == null ? void 0 : _.map((R) => ((R == null ? void 0 : R.key) === "rowButton" && (R.contents = f.filter((D) => D.id !== h.id)), R))), r.value = _;
|
|
709
709
|
}, u = (h) => {
|
|
710
|
-
const f =
|
|
711
|
-
let
|
|
710
|
+
const f = v(c.value);
|
|
711
|
+
let _ = v(r.value);
|
|
712
712
|
c.value = f.filter((R) => R.id !== h.id);
|
|
713
|
-
const k =
|
|
714
|
-
k != null && k.contents && (
|
|
713
|
+
const k = _ == null ? void 0 : _.find((R) => R.key === "extraButton");
|
|
714
|
+
k != null && k.contents && (_ = _ == null ? void 0 : _.map((R) => ((R == null ? void 0 : R.key) === "extraButton" && (R.contents = f.filter((D) => D.id !== h.id)), R))), r.value = _;
|
|
715
715
|
}, w = (h) => {
|
|
716
|
-
const f =
|
|
717
|
-
let
|
|
716
|
+
const f = v(s.value);
|
|
717
|
+
let _ = v(r.value);
|
|
718
718
|
s.value = f.filter((R) => R.id !== h.id);
|
|
719
|
-
const k =
|
|
720
|
-
k != null && k.contents && (
|
|
719
|
+
const k = _ == null ? void 0 : _.find((R) => R.key === "header");
|
|
720
|
+
k != null && k.contents && (_ = _ == null ? void 0 : _.map((R) => ((R == null ? void 0 : R.key) === "header" && (R.contents = f.filter((D) => D.id !== h.id)), R))), r.value = _;
|
|
721
721
|
};
|
|
722
722
|
return ce(
|
|
723
723
|
() => [r.value, s.value],
|
|
724
724
|
() => {
|
|
725
|
-
let h =
|
|
726
|
-
const f = h == null ? void 0 : h.find((
|
|
727
|
-
f != null && f.contents ? (f.contents = s.value, h = h == null ? void 0 : h.map((
|
|
725
|
+
let h = v(r.value);
|
|
726
|
+
const f = h == null ? void 0 : h.find((_) => (_ == null ? void 0 : _.key) === "header");
|
|
727
|
+
f != null && f.contents ? (f.contents = s.value, h = h == null ? void 0 : h.map((_) => ((_ == null ? void 0 : _.key) === "header" && (_.contents = s.value), _))) : h.push({
|
|
728
728
|
key: "header",
|
|
729
729
|
contents: s.value
|
|
730
730
|
}), o("change", h);
|
|
731
731
|
},
|
|
732
732
|
{ deep: !0, immediate: !0 }
|
|
733
733
|
), (h, f) => {
|
|
734
|
-
const
|
|
734
|
+
const _ = Ye("el-button");
|
|
735
735
|
return M(), X("div", fo, [
|
|
736
736
|
J("div", po, [
|
|
737
737
|
J("div", ho, [
|
|
738
738
|
f[1] || (f[1] = J("div", null, Z("表头"), -1)),
|
|
739
|
-
ee(
|
|
739
|
+
ee(_, {
|
|
740
740
|
class: "blue-operate-button",
|
|
741
741
|
icon: "ele-Plus",
|
|
742
742
|
onClick: g
|
|
@@ -744,7 +744,8 @@ const ln = sn("formToTableComp", {
|
|
|
744
744
|
default: de(() => f[0] || (f[0] = [
|
|
745
745
|
qe(Z("新建"))
|
|
746
746
|
])),
|
|
747
|
-
_: 1
|
|
747
|
+
_: 1,
|
|
748
|
+
__: [0]
|
|
748
749
|
})
|
|
749
750
|
]),
|
|
750
751
|
J("div", mo, [
|
|
@@ -759,7 +760,7 @@ const ln = sn("formToTableComp", {
|
|
|
759
760
|
]),
|
|
760
761
|
J("div", yo, [
|
|
761
762
|
f[3] || (f[3] = J("div", null, Z("行内按钮"), -1)),
|
|
762
|
-
ee(
|
|
763
|
+
ee(_, {
|
|
763
764
|
class: "blue-operate-button",
|
|
764
765
|
icon: "ele-Plus",
|
|
765
766
|
onClick: A
|
|
@@ -767,7 +768,8 @@ const ln = sn("formToTableComp", {
|
|
|
767
768
|
default: de(() => f[2] || (f[2] = [
|
|
768
769
|
qe(Z("新建"))
|
|
769
770
|
])),
|
|
770
|
-
_: 1
|
|
771
|
+
_: 1,
|
|
772
|
+
__: [2]
|
|
771
773
|
})
|
|
772
774
|
]),
|
|
773
775
|
J("div", bo, [
|
|
@@ -782,7 +784,7 @@ const ln = sn("formToTableComp", {
|
|
|
782
784
|
]),
|
|
783
785
|
J("div", go, [
|
|
784
786
|
f[5] || (f[5] = J("div", null, Z("表格外部按钮"), -1)),
|
|
785
|
-
ee(
|
|
787
|
+
ee(_, {
|
|
786
788
|
class: "blue-operate-button",
|
|
787
789
|
icon: "ele-Plus",
|
|
788
790
|
onClick: d
|
|
@@ -790,7 +792,8 @@ const ln = sn("formToTableComp", {
|
|
|
790
792
|
default: de(() => f[4] || (f[4] = [
|
|
791
793
|
qe(Z("新建"))
|
|
792
794
|
])),
|
|
793
|
-
_: 1
|
|
795
|
+
_: 1,
|
|
796
|
+
__: [4]
|
|
794
797
|
})
|
|
795
798
|
]),
|
|
796
799
|
J("div", ko, [
|
|
@@ -816,7 +819,7 @@ const ln = sn("formToTableComp", {
|
|
|
816
819
|
]);
|
|
817
820
|
};
|
|
818
821
|
}
|
|
819
|
-
},
|
|
822
|
+
}, vo = /* @__PURE__ */ be(_o, [["__scopeId", "data-v-877911eb"]]), Co = { class: "form-operate-content" }, So = { class: "form-operate-item" }, wo = { class: "operate-title" }, Oo = { class: "operate-content" }, To = { class: "operate-title" }, Ao = { class: "operate-content" }, Ro = { class: "operate-content" }, xo = {
|
|
820
823
|
__name: "operate",
|
|
821
824
|
props: {
|
|
822
825
|
itemContents: {
|
|
@@ -878,8 +881,8 @@ const ln = sn("formToTableComp", {
|
|
|
878
881
|
ce(
|
|
879
882
|
() => n.originalItemContents,
|
|
880
883
|
() => {
|
|
881
|
-
var d, b, u, w, h, f,
|
|
882
|
-
!n.originalItemContents || n.originalItemContents.length === 0 || (m.value =
|
|
884
|
+
var d, b, u, w, h, f, _, k, R, D;
|
|
885
|
+
!n.originalItemContents || n.originalItemContents.length === 0 || (m.value = v(n.originalItemContents), c.value = (b = (d = m.value) == null ? void 0 : d.find((y) => (y == null ? void 0 : y.key) === "formContent")) == null ? void 0 : b.contents, l.value = (w = (u = m.value) == null ? void 0 : u.find((y) => (y == null ? void 0 : y.key) === "formButton")) == null ? void 0 : w.contents, c.value = (h = c.value) == null ? void 0 : h.map((y, G) => y = {
|
|
883
886
|
label: (y == null ? void 0 : y.label) ?? "",
|
|
884
887
|
type: (y == null ? void 0 : y.type) ?? "",
|
|
885
888
|
key: (y == null ? void 0 : y.key) ?? "",
|
|
@@ -890,7 +893,7 @@ const ln = sn("formToTableComp", {
|
|
|
890
893
|
type: (y == null ? void 0 : y.type) ?? "",
|
|
891
894
|
background: (y == null ? void 0 : y.background) ?? "#000000",
|
|
892
895
|
id: (y == null ? void 0 : y.id) ?? G
|
|
893
|
-
}), r.value = (k = (
|
|
896
|
+
}), r.value = (k = (_ = m.value) == null ? void 0 : _.find((y) => (y == null ? void 0 : y.key) === "formFlex")) != null && k.contents ? [{
|
|
894
897
|
name: "isRowFlex",
|
|
895
898
|
label: "是否横向布局",
|
|
896
899
|
type: "Switch",
|
|
@@ -905,8 +908,8 @@ const ln = sn("formToTableComp", {
|
|
|
905
908
|
{ deep: !0, immediate: !0 }
|
|
906
909
|
);
|
|
907
910
|
const i = () => {
|
|
908
|
-
const d =
|
|
909
|
-
let b =
|
|
911
|
+
const d = v(l.value);
|
|
912
|
+
let b = v(m.value);
|
|
910
913
|
d.push({
|
|
911
914
|
label: "",
|
|
912
915
|
type: "",
|
|
@@ -919,8 +922,8 @@ const ln = sn("formToTableComp", {
|
|
|
919
922
|
contents: d
|
|
920
923
|
}), m.value = b;
|
|
921
924
|
}, O = () => {
|
|
922
|
-
const d =
|
|
923
|
-
let b =
|
|
925
|
+
const d = v(c.value);
|
|
926
|
+
let b = v(m.value);
|
|
924
927
|
d.push({
|
|
925
928
|
label: "",
|
|
926
929
|
type: "",
|
|
@@ -934,19 +937,19 @@ const ln = sn("formToTableComp", {
|
|
|
934
937
|
contents: d
|
|
935
938
|
}), m.value = b;
|
|
936
939
|
}, S = (d) => {
|
|
937
|
-
const b =
|
|
938
|
-
let u =
|
|
940
|
+
const b = v(l.value);
|
|
941
|
+
let u = v(m.value);
|
|
939
942
|
l.value = b.filter((h) => h.id !== d.id);
|
|
940
943
|
const w = u == null ? void 0 : u.find((h) => h.key === "formButton");
|
|
941
944
|
w != null && w.contents && (u = u == null ? void 0 : u.map((h) => ((h == null ? void 0 : h.key) === "formButton" && (h.contents = b.filter((f) => f.id !== d.id)), h))), m.value = u;
|
|
942
945
|
}, g = (d) => {
|
|
943
|
-
const b =
|
|
944
|
-
let u =
|
|
946
|
+
const b = v(c.value);
|
|
947
|
+
let u = v(m.value);
|
|
945
948
|
c.value = b.filter((h) => h.id !== d.id);
|
|
946
949
|
const w = u == null ? void 0 : u.find((h) => h.key === "formContent");
|
|
947
950
|
w != null && w.contents && (u = u == null ? void 0 : u.map((h) => ((h == null ? void 0 : h.key) === "formContent" && (h.contents = b.filter((f) => f.id !== d.id)), h))), m.value = u;
|
|
948
951
|
}, A = (d) => {
|
|
949
|
-
let b =
|
|
952
|
+
let b = v(m.value);
|
|
950
953
|
const u = b == null ? void 0 : b.find((w) => w.key === "formFlex");
|
|
951
954
|
(u == null ? void 0 : u.contents) !== void 0 ? b = b == null ? void 0 : b.map((w) => ((w == null ? void 0 : w.key) === "formFlex" && (w.contents = d == null ? void 0 : d.isRowFlex), w)) : b.push({
|
|
952
955
|
key: "formFlex",
|
|
@@ -956,7 +959,7 @@ const ln = sn("formToTableComp", {
|
|
|
956
959
|
return ce(
|
|
957
960
|
() => [m.value, c.value],
|
|
958
961
|
() => {
|
|
959
|
-
let d =
|
|
962
|
+
let d = v(m.value);
|
|
960
963
|
const b = d == null ? void 0 : d.find((u) => (u == null ? void 0 : u.key) === "formContent");
|
|
961
964
|
b != null && b.contents ? (b.contents = c.value, d = d == null ? void 0 : d.map((u) => ((u == null ? void 0 : u.key) === "formContent" && (u.contents = c.value), u))) : d.push({
|
|
962
965
|
key: "formContent",
|
|
@@ -978,7 +981,8 @@ const ln = sn("formToTableComp", {
|
|
|
978
981
|
default: de(() => b[0] || (b[0] = [
|
|
979
982
|
qe(Z("新建"))
|
|
980
983
|
])),
|
|
981
|
-
_: 1
|
|
984
|
+
_: 1,
|
|
985
|
+
__: [0]
|
|
982
986
|
})
|
|
983
987
|
]),
|
|
984
988
|
J("div", Oo, [
|
|
@@ -1001,7 +1005,8 @@ const ln = sn("formToTableComp", {
|
|
|
1001
1005
|
default: de(() => b[2] || (b[2] = [
|
|
1002
1006
|
qe(Z("新建"))
|
|
1003
1007
|
])),
|
|
1004
|
-
_: 1
|
|
1008
|
+
_: 1,
|
|
1009
|
+
__: [2]
|
|
1005
1010
|
})
|
|
1006
1011
|
]),
|
|
1007
1012
|
J("div", Ao, [
|
|
@@ -1049,7 +1054,7 @@ const ln = sn("formToTableComp", {
|
|
|
1049
1054
|
]), No = {
|
|
1050
1055
|
Table: lo,
|
|
1051
1056
|
Form: uo,
|
|
1052
|
-
TableOperate:
|
|
1057
|
+
TableOperate: vo,
|
|
1053
1058
|
FormOperate: Do,
|
|
1054
1059
|
Fold: Gn
|
|
1055
1060
|
// 添加其他组件...
|
|
@@ -1061,7 +1066,7 @@ const jo = { class: "type-select" }, Bo = ["onClick"], Po = { class: "list-icon"
|
|
|
1061
1066
|
__name: "index",
|
|
1062
1067
|
setup(e) {
|
|
1063
1068
|
const t = De(fe), { itemData: n } = ye(t), o = (s) => Hn[s], r = (s) => {
|
|
1064
|
-
const a =
|
|
1069
|
+
const a = v(n.value);
|
|
1065
1070
|
a.push({
|
|
1066
1071
|
comp: s.comp,
|
|
1067
1072
|
name: s.name,
|
|
@@ -1093,14 +1098,14 @@ const jo = { class: "type-select" }, Bo = ["onClick"], Po = { class: "list-icon"
|
|
|
1093
1098
|
() => n.value,
|
|
1094
1099
|
() => {
|
|
1095
1100
|
var m;
|
|
1096
|
-
!n.value || ((m = n.value) == null ? void 0 : m.length) === 0 || (r.value =
|
|
1101
|
+
!n.value || ((m = n.value) == null ? void 0 : m.length) === 0 || (r.value = v(n.value));
|
|
1097
1102
|
},
|
|
1098
1103
|
{ deep: !0, immediate: !0 }
|
|
1099
1104
|
);
|
|
1100
1105
|
const a = (m) => wt(m), l = (m, c, E) => {
|
|
1101
1106
|
if (!m || m.length === 0) return;
|
|
1102
|
-
let i =
|
|
1103
|
-
const O =
|
|
1107
|
+
let i = v(n.value);
|
|
1108
|
+
const O = v(c);
|
|
1104
1109
|
O.compData = m, i = i == null ? void 0 : i.map((S, g) => (g === E && (S = O), S)), t.setItemData(i);
|
|
1105
1110
|
};
|
|
1106
1111
|
return (m, c) => {
|
|
@@ -1153,7 +1158,7 @@ const jo = { class: "type-select" }, Bo = ["onClick"], Po = { class: "list-icon"
|
|
|
1153
1158
|
() => n.value,
|
|
1154
1159
|
() => {
|
|
1155
1160
|
var s;
|
|
1156
|
-
!n.value || ((s = n.value) == null ? void 0 : s.length) === 0 || (o.value =
|
|
1161
|
+
!n.value || ((s = n.value) == null ? void 0 : s.length) === 0 || (o.value = v(n.value));
|
|
1157
1162
|
},
|
|
1158
1163
|
{ deep: !0, immediate: !0 }
|
|
1159
1164
|
);
|
|
@@ -1172,7 +1177,7 @@ const jo = { class: "type-select" }, Bo = ["onClick"], Po = { class: "list-icon"
|
|
|
1172
1177
|
key: c
|
|
1173
1178
|
}, null, 8, ["itemData", "childItemData"]))
|
|
1174
1179
|
]))), 128))
|
|
1175
|
-
])) :
|
|
1180
|
+
])) : _e("", !0);
|
|
1176
1181
|
};
|
|
1177
1182
|
}
|
|
1178
1183
|
}, Wo = /* @__PURE__ */ be(Ho, [["__scopeId", "data-v-79320497"]]), Re = [
|
|
@@ -1292,7 +1297,7 @@ const jo = { class: "type-select" }, Bo = ["onClick"], Po = { class: "list-icon"
|
|
|
1292
1297
|
const n = [];
|
|
1293
1298
|
let o = "";
|
|
1294
1299
|
for (const r of t)
|
|
1295
|
-
r.includes("{") || o.includes("{") || r.includes("[") || o.includes("[") || r.includes("【") || o.includes("【") || r.includes("(") || o.includes("(") || r.includes("(") || o.includes("(") ? (o += r.trim(),
|
|
1300
|
+
r.includes("{") || o.includes("{") || r.includes("[") || o.includes("[") || r.includes("【") || o.includes("【") || r.includes("(") || o.includes("(") || r.includes("(") || o.includes("(") ? (o += r.trim(), v(o).split("{").length - 1 === v(o).split("}").length - 1 && v(o).split("【").length - 1 === v(o).split("】").length - 1 && v(o).split("[").length - 1 === v(o).split("]").length - 1 && v(o).split("(").length - 1 === v(o).split(")").length - 1 && v(o).split("(").length - 1 === v(o).split(")").length - 1 && (n.push(o), o = "")) : n.push(r.trim());
|
|
1296
1301
|
return n;
|
|
1297
1302
|
}, Go = (e) => {
|
|
1298
1303
|
const t = e.trim().replace(/^'|'$/g, ""), n = /((?:\$?[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, o = {};
|
|
@@ -1322,20 +1327,20 @@ const jo = { class: "type-select" }, Bo = ["onClick"], Po = { class: "list-icon"
|
|
|
1322
1327
|
}, hn = (e) => {
|
|
1323
1328
|
try {
|
|
1324
1329
|
const t = e.replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",").replace(/:/g, ":").replace(/:\s*(?=,|}|$)/g, ': ""');
|
|
1325
|
-
if (
|
|
1326
|
-
let n =
|
|
1330
|
+
if (v(t).split("{").length - 1 > 1) {
|
|
1331
|
+
let n = v(t).replace(/^\{(.*)\}$/, "[$1]");
|
|
1327
1332
|
if (Ge(n) && !n.includes("$") || (n = n.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g, '"$1$$$2"')), Ge(n)) {
|
|
1328
1333
|
const o = JSON.parse(n);
|
|
1329
1334
|
let r = [];
|
|
1330
1335
|
return o == null || o.forEach((s) => {
|
|
1331
1336
|
var a;
|
|
1332
|
-
(a = Object.entries(
|
|
1337
|
+
(a = Object.entries(v(s))) == null || a.forEach((l) => {
|
|
1333
1338
|
We.value++, r.push({
|
|
1334
1339
|
id: We.value,
|
|
1335
1340
|
key: (l == null ? void 0 : l[0]) ?? "",
|
|
1336
1341
|
value: (l == null ? void 0 : l[1]) === "" ? "" : l == null ? void 0 : l[1],
|
|
1337
1342
|
// 如果值为空,则key设为空字符串,否则保留原值
|
|
1338
|
-
width: Object.keys(
|
|
1343
|
+
width: Object.keys(v(s)).length
|
|
1339
1344
|
});
|
|
1340
1345
|
});
|
|
1341
1346
|
}), r;
|
|
@@ -1359,39 +1364,39 @@ const jo = { class: "type-select" }, Bo = ["onClick"], Po = { class: "list-icon"
|
|
|
1359
1364
|
try {
|
|
1360
1365
|
if (se != null && se.find((n) => (n == null ? void 0 : n.key) === t))
|
|
1361
1366
|
return JSON.parse(e.replace(/[’]|[‘]|[']/g, '"'));
|
|
1362
|
-
if (
|
|
1363
|
-
const n =
|
|
1367
|
+
if (v(e).split("[").length - 1 > 1) {
|
|
1368
|
+
const n = v(e).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
|
|
1364
1369
|
return JSON.parse(n);
|
|
1365
1370
|
} else {
|
|
1366
|
-
const n =
|
|
1371
|
+
const n = v(e).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",");
|
|
1367
1372
|
if (Ge(n)) {
|
|
1368
1373
|
const o = JSON.parse(n);
|
|
1369
1374
|
return Array.isArray(o) ? o.map((r) => ({ label: r })) : o;
|
|
1370
1375
|
} else
|
|
1371
|
-
return hn(
|
|
1376
|
+
return hn(v(e));
|
|
1372
1377
|
}
|
|
1373
1378
|
} catch (n) {
|
|
1374
1379
|
return console.error("解析失败:", n), e;
|
|
1375
1380
|
}
|
|
1376
1381
|
}, Qo = (e) => ({ [e == null ? void 0 : e.key]: Zo(e == null ? void 0 : e.value, e == null ? void 0 : e.key) }), Yo = (e) => {
|
|
1377
1382
|
try {
|
|
1378
|
-
if (
|
|
1379
|
-
const t =
|
|
1383
|
+
if (v(e).split("[").length - 1 > 1) {
|
|
1384
|
+
const t = v(e).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
|
|
1380
1385
|
return JSON.parse(t);
|
|
1381
1386
|
} else
|
|
1382
|
-
return JSON.parse(
|
|
1387
|
+
return JSON.parse(v(e).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",")).map((n) => ({ label: n }));
|
|
1383
1388
|
} catch (t) {
|
|
1384
1389
|
return console.error("解析失败:", t), e;
|
|
1385
1390
|
}
|
|
1386
1391
|
}, er = (e) => {
|
|
1387
1392
|
var t, n, o, r, s, a;
|
|
1388
1393
|
try {
|
|
1389
|
-
const l = Ko((n = (t =
|
|
1394
|
+
const l = Ko((n = (t = v(e)) == null ? void 0 : t.replace("(", "(")) == null ? void 0 : n.replace(")", ")")), m = (o = v(l)) == null ? void 0 : o.map((i) => {
|
|
1390
1395
|
var S, g;
|
|
1391
|
-
let O = (g = (S =
|
|
1396
|
+
let O = (g = (S = v(i)) == null ? void 0 : S.split("=")) == null ? void 0 : g[0];
|
|
1392
1397
|
return O != null && O.includes("GroupContents") ? Xo(i) : pn(i);
|
|
1393
1398
|
}), c = [];
|
|
1394
|
-
(r =
|
|
1399
|
+
(r = v(m)) == null || r.forEach((i) => {
|
|
1395
1400
|
var O, S, g, A, d;
|
|
1396
1401
|
se != null && se.find((b) => {
|
|
1397
1402
|
var u, w;
|
|
@@ -1418,30 +1423,30 @@ const jo = { class: "type-select" }, Bo = ["onClick"], Po = { class: "list-icon"
|
|
|
1418
1423
|
contents: i == null ? void 0 : i.value
|
|
1419
1424
|
}));
|
|
1420
1425
|
}), console.log("newContents", c);
|
|
1421
|
-
let E = (s =
|
|
1426
|
+
let E = (s = v(c)) == null ? void 0 : s.map((i) => {
|
|
1422
1427
|
var O;
|
|
1423
1428
|
return i != null && i.compData && (i.compData = (O = i == null ? void 0 : i.compData) == null ? void 0 : O.map((S) => {
|
|
1424
|
-
var g, A, d, b, u, w, h, f,
|
|
1429
|
+
var g, A, d, b, u, w, h, f, _, k, R;
|
|
1425
1430
|
if ((S == null ? void 0 : S.key) === "formFlex")
|
|
1426
1431
|
S.contents = ((A = (g = S.contents) == null ? void 0 : g.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : A.toUpperCase()) !== "Vertical".toUpperCase();
|
|
1427
1432
|
else if ((S == null ? void 0 : S.key) === "groupContents")
|
|
1428
|
-
S.contents = (d =
|
|
1429
|
-
else if (((u = (b = S.contents) == null ? void 0 : b.trim()) != null && u.startsWith("[") || (h = (w = S.contents) == null ? void 0 : w.trim()) != null && h.startsWith("【")) && ((
|
|
1430
|
-
S.contents = Yo(
|
|
1433
|
+
S.contents = (d = v(S.contents)) == null ? void 0 : d.map((D) => Qo(v(D)));
|
|
1434
|
+
else if (((u = (b = S.contents) == null ? void 0 : b.trim()) != null && u.startsWith("[") || (h = (w = S.contents) == null ? void 0 : w.trim()) != null && h.startsWith("【")) && ((_ = (f = S.contents) == null ? void 0 : f.trim()) != null && _.endsWith("]") || (R = (k = S.contents) == null ? void 0 : k.trim()) != null && R.endsWith("】")))
|
|
1435
|
+
S.contents = Yo(v(S.contents));
|
|
1431
1436
|
else {
|
|
1432
1437
|
if (!S.contents) return;
|
|
1433
|
-
S.contents = hn(
|
|
1438
|
+
S.contents = hn(v(S.contents));
|
|
1434
1439
|
}
|
|
1435
1440
|
return S;
|
|
1436
1441
|
})), i;
|
|
1437
1442
|
});
|
|
1438
|
-
return E = (a =
|
|
1443
|
+
return E = (a = v(E)) == null ? void 0 : a.map((i) => {
|
|
1439
1444
|
var O;
|
|
1440
1445
|
return (i == null ? void 0 : i.comp) === "Group" && (i.compData = (O = i.compData) == null ? void 0 : O.map((S) => {
|
|
1441
1446
|
var A;
|
|
1442
1447
|
let g = [];
|
|
1443
1448
|
return (A = S.contents) == null || A.forEach((d) => {
|
|
1444
|
-
var b, u, w, h, f,
|
|
1449
|
+
var b, u, w, h, f, _, k, R, D, y, G, N;
|
|
1445
1450
|
if (se != null && se.find((I) => {
|
|
1446
1451
|
var V, H, W;
|
|
1447
1452
|
return ((V = I == null ? void 0 : I.key) == null ? void 0 : V.toUpperCase()) === ((W = (H = Object.keys(d)) == null ? void 0 : H[0]) == null ? void 0 : W.toUpperCase());
|
|
@@ -1464,10 +1469,10 @@ const jo = { class: "type-select" }, Bo = ["onClick"], Po = { class: "list-icon"
|
|
|
1464
1469
|
var V, H, W;
|
|
1465
1470
|
return ((V = I == null ? void 0 : I.key) == null ? void 0 : V.toUpperCase()) === ((W = (H = Object.keys(d)) == null ? void 0 : H[0]) == null ? void 0 : W.toUpperCase());
|
|
1466
1471
|
})) == null ? void 0 : f.value,
|
|
1467
|
-
contents: (
|
|
1472
|
+
contents: (_ = Object.values(d)) == null ? void 0 : _[0]
|
|
1468
1473
|
});
|
|
1469
1474
|
} else if ((R = (k = Object.keys(d)) == null ? void 0 : k[0]) != null && R.includes("$")) {
|
|
1470
|
-
const I = (y = (D = Object.keys(
|
|
1475
|
+
const I = (y = (D = Object.keys(v(d))) == null ? void 0 : D[0]) == null ? void 0 : y.split("$");
|
|
1471
1476
|
g[(g == null ? void 0 : g.length) - 1].compData.push({
|
|
1472
1477
|
key: (G = re == null ? void 0 : re.find((V) => {
|
|
1473
1478
|
var H, W;
|
|
@@ -1501,7 +1506,7 @@ const jo = { class: "type-select" }, Bo = ["onClick"], Po = { class: "list-icon"
|
|
|
1501
1506
|
editValue: i
|
|
1502
1507
|
});
|
|
1503
1508
|
}, c = (i) => {
|
|
1504
|
-
const O =
|
|
1509
|
+
const O = v(a.value), S = O == null ? void 0 : O.map((g, A) => (A === (i == null ? void 0 : i.index) && (g.compData = i == null ? void 0 : i.contents), g));
|
|
1505
1510
|
a.value = S;
|
|
1506
1511
|
};
|
|
1507
1512
|
ce(
|
|
@@ -1543,7 +1548,7 @@ const jo = { class: "type-select" }, Bo = ["onClick"], Po = { class: "list-icon"
|
|
|
1543
1548
|
onContentChange: c
|
|
1544
1549
|
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
1545
1550
|
]))), 128))
|
|
1546
|
-
])) :
|
|
1551
|
+
])) : _e("", !0);
|
|
1547
1552
|
};
|
|
1548
1553
|
}
|
|
1549
1554
|
}, sr = /* @__PURE__ */ be(rr, [["__scopeId", "data-v-869e6e20"]]);
|
|
@@ -1573,7 +1578,7 @@ const cr = lt("string"), ae = lt("function"), gn = lt("number"), it = (e) => e !
|
|
|
1573
1578
|
let t;
|
|
1574
1579
|
return e && (typeof FormData == "function" && e instanceof FormData || ae(e.append) && ((t = at(e)) === "formdata" || // detect form-data instance
|
|
1575
1580
|
t === "object" && ae(e.toString) && e.toString() === "[object FormData]"));
|
|
1576
|
-
}, br = pe("URLSearchParams"), [gr, kr, Er,
|
|
1581
|
+
}, br = pe("URLSearchParams"), [gr, kr, Er, _r] = ["ReadableStream", "Request", "Response", "Headers"].map(pe), vr = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
1577
1582
|
function Me(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
1578
1583
|
if (e === null || typeof e > "u")
|
|
1579
1584
|
return;
|
|
@@ -1597,7 +1602,7 @@ function kn(e, t) {
|
|
|
1597
1602
|
return r;
|
|
1598
1603
|
return null;
|
|
1599
1604
|
}
|
|
1600
|
-
const
|
|
1605
|
+
const ve = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, En = (e) => !Je(e) && e !== ve;
|
|
1601
1606
|
function bt() {
|
|
1602
1607
|
const { caseless: e } = En(this) && this || {}, t = {}, n = (o, r) => {
|
|
1603
1608
|
const s = e && kn(t, r) || r;
|
|
@@ -1654,14 +1659,14 @@ const Cr = (e, t, n, { allOwnKeys: o } = {}) => (Me(t, (r, s) => {
|
|
|
1654
1659
|
function(n, o, r) {
|
|
1655
1660
|
return o.toUpperCase() + r;
|
|
1656
1661
|
}
|
|
1657
|
-
), Mt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), jr = pe("RegExp"),
|
|
1662
|
+
), Mt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), jr = pe("RegExp"), _n = (e, t) => {
|
|
1658
1663
|
const n = Object.getOwnPropertyDescriptors(e), o = {};
|
|
1659
1664
|
Me(n, (r, s) => {
|
|
1660
1665
|
let a;
|
|
1661
1666
|
(a = t(r, s, e)) !== !1 && (o[s] = a || r);
|
|
1662
1667
|
}), Object.defineProperties(e, o);
|
|
1663
1668
|
}, Br = (e) => {
|
|
1664
|
-
|
|
1669
|
+
_n(e, (t, n) => {
|
|
1665
1670
|
if (ae(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
1666
1671
|
return !1;
|
|
1667
1672
|
const o = e[n];
|
|
@@ -1704,14 +1709,14 @@ const qr = (e) => {
|
|
|
1704
1709
|
return o;
|
|
1705
1710
|
};
|
|
1706
1711
|
return n(e, 0);
|
|
1707
|
-
}, Jr = pe("AsyncFunction"), Ir = (e) => e && (it(e) || ae(e)) && ae(e.then) && ae(e.catch),
|
|
1708
|
-
r ===
|
|
1712
|
+
}, Jr = pe("AsyncFunction"), Ir = (e) => e && (it(e) || ae(e)) && ae(e.then) && ae(e.catch), vn = ((e, t) => e ? setImmediate : t ? ((n, o) => (ve.addEventListener("message", ({ source: r, data: s }) => {
|
|
1713
|
+
r === ve && s === n && o.length && o.shift()();
|
|
1709
1714
|
}, !1), (r) => {
|
|
1710
|
-
o.push(r),
|
|
1715
|
+
o.push(r), ve.postMessage(n, "*");
|
|
1711
1716
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
1712
1717
|
typeof setImmediate == "function",
|
|
1713
|
-
ae(
|
|
1714
|
-
), zr = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
1718
|
+
ae(ve.postMessage)
|
|
1719
|
+
), zr = typeof queueMicrotask < "u" ? queueMicrotask.bind(ve) : typeof process < "u" && process.nextTick || vn, Mr = (e) => e != null && ae(e[st]), p = {
|
|
1715
1720
|
isArray: Fe,
|
|
1716
1721
|
isArrayBuffer: bn,
|
|
1717
1722
|
isBuffer: lr,
|
|
@@ -1725,7 +1730,7 @@ const qr = (e) => {
|
|
|
1725
1730
|
isReadableStream: gr,
|
|
1726
1731
|
isRequest: kr,
|
|
1727
1732
|
isResponse: Er,
|
|
1728
|
-
isHeaders:
|
|
1733
|
+
isHeaders: _r,
|
|
1729
1734
|
isUndefined: Je,
|
|
1730
1735
|
isDate: fr,
|
|
1731
1736
|
isFile: dr,
|
|
@@ -1739,7 +1744,7 @@ const qr = (e) => {
|
|
|
1739
1744
|
forEach: Me,
|
|
1740
1745
|
merge: bt,
|
|
1741
1746
|
extend: Cr,
|
|
1742
|
-
trim:
|
|
1747
|
+
trim: vr,
|
|
1743
1748
|
stripBOM: Sr,
|
|
1744
1749
|
inherits: wr,
|
|
1745
1750
|
toFlatObject: Or,
|
|
@@ -1753,20 +1758,20 @@ const qr = (e) => {
|
|
|
1753
1758
|
hasOwnProperty: Mt,
|
|
1754
1759
|
hasOwnProp: Mt,
|
|
1755
1760
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
1756
|
-
reduceDescriptors:
|
|
1761
|
+
reduceDescriptors: _n,
|
|
1757
1762
|
freezeMethods: Br,
|
|
1758
1763
|
toObjectSet: Pr,
|
|
1759
1764
|
toCamelCase: Nr,
|
|
1760
1765
|
noop: Ur,
|
|
1761
1766
|
toFiniteNumber: $r,
|
|
1762
1767
|
findKey: kn,
|
|
1763
|
-
global:
|
|
1768
|
+
global: ve,
|
|
1764
1769
|
isContextDefined: En,
|
|
1765
1770
|
isSpecCompliantForm: Lr,
|
|
1766
1771
|
toJSONObject: qr,
|
|
1767
1772
|
isAsyncFn: Jr,
|
|
1768
1773
|
isThenable: Ir,
|
|
1769
|
-
setImmediate:
|
|
1774
|
+
setImmediate: vn,
|
|
1770
1775
|
asap: zr,
|
|
1771
1776
|
isIterable: Mr
|
|
1772
1777
|
};
|
|
@@ -2548,7 +2553,7 @@ const Nn = (e) => {
|
|
|
2548
2553
|
c && a.set(r, c);
|
|
2549
2554
|
}
|
|
2550
2555
|
return t;
|
|
2551
|
-
}, Es = typeof XMLHttpRequest < "u",
|
|
2556
|
+
}, Es = typeof XMLHttpRequest < "u", _s = Es && function(e) {
|
|
2552
2557
|
return new Promise(function(n, o) {
|
|
2553
2558
|
const r = Nn(e);
|
|
2554
2559
|
let s = r.data;
|
|
@@ -2605,7 +2610,7 @@ const Nn = (e) => {
|
|
|
2605
2610
|
}
|
|
2606
2611
|
d.send(s || null);
|
|
2607
2612
|
});
|
|
2608
|
-
},
|
|
2613
|
+
}, vs = (e, t) => {
|
|
2609
2614
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
2610
2615
|
if (t || n) {
|
|
2611
2616
|
let o = new AbortController(), r;
|
|
@@ -2744,7 +2749,7 @@ const As = async (e) => {
|
|
|
2744
2749
|
fetchOptions: O
|
|
2745
2750
|
} = Nn(e);
|
|
2746
2751
|
c = c ? (c + "").toLowerCase() : "text";
|
|
2747
|
-
let S =
|
|
2752
|
+
let S = vs([r, s && s.toAbortSignal()], a), g;
|
|
2748
2753
|
const A = S && S.unsubscribe && (() => {
|
|
2749
2754
|
S.unsubscribe();
|
|
2750
2755
|
});
|
|
@@ -2755,8 +2760,8 @@ const As = async (e) => {
|
|
|
2755
2760
|
method: "POST",
|
|
2756
2761
|
body: o,
|
|
2757
2762
|
duplex: "half"
|
|
2758
|
-
}),
|
|
2759
|
-
if (p.isFormData(o) && (
|
|
2763
|
+
}), _;
|
|
2764
|
+
if (p.isFormData(o) && (_ = f.headers.get("content-type")) && E.setContentType(_), f.body) {
|
|
2760
2765
|
const [k, R] = Gt(
|
|
2761
2766
|
d,
|
|
2762
2767
|
et(Xt(m))
|
|
@@ -2782,8 +2787,8 @@ const As = async (e) => {
|
|
|
2782
2787
|
["status", "statusText", "headers"].forEach((D) => {
|
|
2783
2788
|
f[D] = u[D];
|
|
2784
2789
|
});
|
|
2785
|
-
const
|
|
2786
|
-
|
|
2790
|
+
const _ = p.toFiniteNumber(u.headers.get("content-length")), [k, R] = l && Gt(
|
|
2791
|
+
_,
|
|
2787
2792
|
et(Xt(l), !0)
|
|
2788
2793
|
) || [];
|
|
2789
2794
|
u = new Response(
|
|
@@ -2795,8 +2800,8 @@ const As = async (e) => {
|
|
|
2795
2800
|
}
|
|
2796
2801
|
c = c || "text";
|
|
2797
2802
|
let h = await tt[p.findKey(tt, c) || "text"](u, e);
|
|
2798
|
-
return !w && A && A(), await new Promise((f,
|
|
2799
|
-
Dn(f,
|
|
2803
|
+
return !w && A && A(), await new Promise((f, _) => {
|
|
2804
|
+
Dn(f, _, {
|
|
2800
2805
|
data: h,
|
|
2801
2806
|
headers: le.from(u.headers),
|
|
2802
2807
|
status: u.status,
|
|
@@ -2813,12 +2818,12 @@ const As = async (e) => {
|
|
|
2813
2818
|
}
|
|
2814
2819
|
) : $.from(b, b && b.code, e, g);
|
|
2815
2820
|
}
|
|
2816
|
-
}),
|
|
2821
|
+
}), _t = {
|
|
2817
2822
|
http: Vr,
|
|
2818
|
-
xhr:
|
|
2823
|
+
xhr: _s,
|
|
2819
2824
|
fetch: xs
|
|
2820
2825
|
};
|
|
2821
|
-
p.forEach(
|
|
2826
|
+
p.forEach(_t, (e, t) => {
|
|
2822
2827
|
if (e) {
|
|
2823
2828
|
try {
|
|
2824
2829
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -2836,7 +2841,7 @@ const en = (e) => `- ${e}`, Ds = (e) => p.isFunction(e) || e === null || e === !
|
|
|
2836
2841
|
for (let s = 0; s < t; s++) {
|
|
2837
2842
|
n = e[s];
|
|
2838
2843
|
let a;
|
|
2839
|
-
if (o = n, !Ds(n) && (o =
|
|
2844
|
+
if (o = n, !Ds(n) && (o = _t[(a = String(n)).toLowerCase()], o === void 0))
|
|
2840
2845
|
throw new $(`Unknown adapter '${a}'`);
|
|
2841
2846
|
if (o)
|
|
2842
2847
|
break;
|
|
@@ -2856,7 +2861,7 @@ const en = (e) => `- ${e}`, Ds = (e) => p.isFunction(e) || e === null || e === !
|
|
|
2856
2861
|
}
|
|
2857
2862
|
return o;
|
|
2858
2863
|
},
|
|
2859
|
-
adapters:
|
|
2864
|
+
adapters: _t
|
|
2860
2865
|
};
|
|
2861
2866
|
function yt(e) {
|
|
2862
2867
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
@@ -3134,7 +3139,7 @@ function js(e) {
|
|
|
3134
3139
|
function Bs(e) {
|
|
3135
3140
|
return p.isObject(e) && e.isAxiosError === !0;
|
|
3136
3141
|
}
|
|
3137
|
-
const
|
|
3142
|
+
const vt = {
|
|
3138
3143
|
Continue: 100,
|
|
3139
3144
|
SwitchingProtocols: 101,
|
|
3140
3145
|
Processing: 102,
|
|
@@ -3199,8 +3204,8 @@ const _t = {
|
|
|
3199
3204
|
NotExtended: 510,
|
|
3200
3205
|
NetworkAuthenticationRequired: 511
|
|
3201
3206
|
};
|
|
3202
|
-
Object.entries(
|
|
3203
|
-
|
|
3207
|
+
Object.entries(vt).forEach(([e, t]) => {
|
|
3208
|
+
vt[t] = e;
|
|
3204
3209
|
});
|
|
3205
3210
|
function Ln(e) {
|
|
3206
3211
|
const t = new Ce(e), n = mn(Ce.prototype.request, t);
|
|
@@ -3226,7 +3231,7 @@ Q.mergeConfig = Oe;
|
|
|
3226
3231
|
Q.AxiosHeaders = le;
|
|
3227
3232
|
Q.formToJSON = (e) => Rn(p.isHTMLForm(e) ? new FormData(e) : e);
|
|
3228
3233
|
Q.getAdapter = Pn.getAdapter;
|
|
3229
|
-
Q.HttpStatusCode =
|
|
3234
|
+
Q.HttpStatusCode = vt;
|
|
3230
3235
|
Q.default = Q;
|
|
3231
3236
|
const {
|
|
3232
3237
|
Axios: la,
|
|
@@ -3243,8 +3248,8 @@ const {
|
|
|
3243
3248
|
AxiosHeaders: ga,
|
|
3244
3249
|
HttpStatusCode: ka,
|
|
3245
3250
|
formToJSON: Ea,
|
|
3246
|
-
getAdapter:
|
|
3247
|
-
mergeConfig:
|
|
3251
|
+
getAdapter: _a,
|
|
3252
|
+
mergeConfig: va
|
|
3248
3253
|
} = Q;
|
|
3249
3254
|
/*! js-cookie v3.0.5 | MIT */
|
|
3250
3255
|
function Ke(e) {
|
|
@@ -3471,8 +3476,8 @@ const qs = De(fe), { itemData: Ca } = ye(qs), Js = an(fe), { systemKey: Sa, acti
|
|
|
3471
3476
|
const { itemData: m, originalData: c } = ye(l), E = B(null), i = B(0), O = B(""), S = () => {
|
|
3472
3477
|
a.value = window.innerWidth;
|
|
3473
3478
|
}, g = async (h) => {
|
|
3474
|
-
var
|
|
3475
|
-
const f = (
|
|
3479
|
+
var _;
|
|
3480
|
+
const f = (_ = v(h == null ? void 0 : h.wholeValue)) == null ? void 0 : _.map((k) => {
|
|
3476
3481
|
var R;
|
|
3477
3482
|
return (k == null ? void 0 : k.comp) === "Form" && (k.compData = (R = k.compData) == null ? void 0 : R.map((D) => ((D == null ? void 0 : D.key) === "formContent" && (D.contents = Is(D == null ? void 0 : D.contents)), D))), k;
|
|
3478
3483
|
});
|
|
@@ -3480,13 +3485,13 @@ const qs = De(fe), { itemData: Ca } = ye(qs), Js = an(fe), { systemKey: Sa, acti
|
|
|
3480
3485
|
originalContents: c.value,
|
|
3481
3486
|
currentContents: h == null ? void 0 : h.wholeValue,
|
|
3482
3487
|
editContent: h == null ? void 0 : h.editValue,
|
|
3483
|
-
stringContent: A(
|
|
3488
|
+
stringContent: A(v(h == null ? void 0 : h.wholeValue)),
|
|
3484
3489
|
arrayToContents: f
|
|
3485
3490
|
});
|
|
3486
3491
|
}, A = (h) => {
|
|
3487
|
-
var
|
|
3492
|
+
var _;
|
|
3488
3493
|
let f = [];
|
|
3489
|
-
return (
|
|
3494
|
+
return (_ = v(h)) == null || _.forEach((k) => {
|
|
3490
3495
|
var R, D;
|
|
3491
3496
|
Re != null && Re.find((y) => (y == null ? void 0 : y.value) === (k == null ? void 0 : k.comp)) && f.push(((R = Re == null ? void 0 : Re.find((y) => (y == null ? void 0 : y.value) === (k == null ? void 0 : k.comp))) == null ? void 0 : R.key) + "=" + k.name + "/r/n"), (D = k == null ? void 0 : k.compData) == null || D.forEach((y) => {
|
|
3492
3497
|
var G, N, I, V, H, W, C, Y, T, L, q, F;
|
|
@@ -3498,17 +3503,17 @@ const qs = De(fe), { itemData: Ca } = ye(qs), Js = an(fe), { systemKey: Sa, acti
|
|
|
3498
3503
|
if (!P) return;
|
|
3499
3504
|
if (Object.keys(P).includes("label") && Object.keys(P).includes("key") && Object.keys(P).includes("width"))
|
|
3500
3505
|
if (((H = (V = y.contents) == null ? void 0 : V.filter((z) => z.width !== 1)) == null ? void 0 : H.length) === 0) {
|
|
3501
|
-
const z = (W =
|
|
3506
|
+
const z = (W = v(y == null ? void 0 : y.contents)) == null ? void 0 : W.map((j) => ({ [j.label]: j.value }));
|
|
3502
3507
|
f.push(((C = te == null ? void 0 : te.find((j) => (j == null ? void 0 : j.value) === (y == null ? void 0 : y.key))) == null ? void 0 : C.key) + "=" + JSON.stringify(z) + "/r/n");
|
|
3503
3508
|
} else {
|
|
3504
3509
|
let z = [];
|
|
3505
|
-
(Y =
|
|
3510
|
+
(Y = v(y == null ? void 0 : y.contents)) == null || Y.reduce((j, K) => {
|
|
3506
3511
|
var ne;
|
|
3507
|
-
return j[K.label] = K.key, ((ne = Object.keys(
|
|
3512
|
+
return j[K.label] = K.key, ((ne = Object.keys(v(j))) == null ? void 0 : ne.length) >= K.width && (z.push(v(j)), j = {}), j;
|
|
3508
3513
|
}, {}), f.push(((T = te == null ? void 0 : te.find((j) => (j == null ? void 0 : j.value) === (y == null ? void 0 : y.key))) == null ? void 0 : T.key) + "=" + JSON.stringify(z) + "/r/n");
|
|
3509
3514
|
}
|
|
3510
3515
|
else if (Object.keys(P).includes("label")) {
|
|
3511
|
-
const z = (L =
|
|
3516
|
+
const z = (L = v(y == null ? void 0 : y.contents)) == null ? void 0 : L.map((j) => j.label);
|
|
3512
3517
|
f.push(((q = te == null ? void 0 : te.find((j) => (j == null ? void 0 : j.value) === (y == null ? void 0 : y.key))) == null ? void 0 : q.key) + "=" + JSON.stringify(z) + "/r/n");
|
|
3513
3518
|
} else
|
|
3514
3519
|
f.push(((F = te == null ? void 0 : te.find((z) => (z == null ? void 0 : z.value) === (y == null ? void 0 : y.key))) == null ? void 0 : F.key) + "=" + JSON.stringify(y == null ? void 0 : y.contents) + "/r/n");
|
|
@@ -3520,16 +3525,16 @@ const qs = De(fe), { itemData: Ca } = ye(qs), Js = an(fe), { systemKey: Sa, acti
|
|
|
3520
3525
|
}, u = (h) => {
|
|
3521
3526
|
const f = h.target.files[0];
|
|
3522
3527
|
if (!f) return;
|
|
3523
|
-
const
|
|
3524
|
-
|
|
3528
|
+
const _ = new FileReader();
|
|
3529
|
+
_.onload = (k) => {
|
|
3525
3530
|
try {
|
|
3526
3531
|
r.value = k.target.result, d.value = w(k.target.result), i.value++;
|
|
3527
3532
|
} catch (R) {
|
|
3528
3533
|
console.error("解析失败:", R);
|
|
3529
3534
|
}
|
|
3530
|
-
},
|
|
3535
|
+
}, _.onerror = (k) => {
|
|
3531
3536
|
console.error("文件读取错误:", k);
|
|
3532
|
-
},
|
|
3537
|
+
}, _.readAsText(f);
|
|
3533
3538
|
};
|
|
3534
3539
|
on(() => {
|
|
3535
3540
|
window.addEventListener("resize", S);
|
|
@@ -3552,21 +3557,21 @@ const qs = De(fe), { itemData: Ca } = ye(qs), Js = an(fe), { systemKey: Sa, acti
|
|
|
3552
3557
|
f = f.replace(/(\w+)\s*:/g, "$1:"), f = f.replace(/\r\n/g, "").replace(/\n/g, "").replace(/\t/g, "").replace(/\s+/g, " ").trim(), f = f.replace(/,\s*([}\]])/g, "$1"), f = f.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,}])/g, ": $2$4");
|
|
3553
3558
|
try {
|
|
3554
3559
|
return JSON.parse(f);
|
|
3555
|
-
} catch (
|
|
3560
|
+
} catch (_) {
|
|
3556
3561
|
try {
|
|
3557
3562
|
const R = new Function(`return ${f}`)();
|
|
3558
3563
|
if (Array.isArray(R) || typeof R == "object")
|
|
3559
3564
|
return R;
|
|
3560
|
-
throw new Error(`解析结果不是有效的数组或对象: ${
|
|
3565
|
+
throw new Error(`解析结果不是有效的数组或对象: ${_}`);
|
|
3561
3566
|
} catch (k) {
|
|
3562
3567
|
throw new Error(`无法解析JSON: ${k.message}`);
|
|
3563
3568
|
}
|
|
3564
3569
|
}
|
|
3565
3570
|
};
|
|
3566
3571
|
return (h, f) => {
|
|
3567
|
-
var
|
|
3572
|
+
var _;
|
|
3568
3573
|
return M(), X("div", zs, [
|
|
3569
|
-
((
|
|
3574
|
+
((_ = n == null ? void 0 : n.jsonContents) == null ? void 0 : _.length) === 0 ? (M(), X("div", Ms, [
|
|
3570
3575
|
J("div", Vs, [
|
|
3571
3576
|
J("input", {
|
|
3572
3577
|
type: "file",
|
|
@@ -3580,9 +3585,9 @@ const qs = De(fe), { itemData: Ca } = ye(qs), Js = an(fe), { systemKey: Sa, acti
|
|
|
3580
3585
|
onClick: b,
|
|
3581
3586
|
class: "import-button-content"
|
|
3582
3587
|
}, "导入文件"),
|
|
3583
|
-
O.value ? (M(), X("span", Hs, Z(O.value), 1)) :
|
|
3588
|
+
O.value ? (M(), X("span", Hs, Z(O.value), 1)) : _e("", !0)
|
|
3584
3589
|
])
|
|
3585
|
-
])) :
|
|
3590
|
+
])) : _e("", !0),
|
|
3586
3591
|
(n == null ? void 0 : n.mode) === "edit" ? (M(), X("div", Ws, [
|
|
3587
3592
|
J("div", Ks, [
|
|
3588
3593
|
ee($o)
|
|
@@ -3596,7 +3601,7 @@ const qs = De(fe), { itemData: Ca } = ye(qs), Js = an(fe), { systemKey: Sa, acti
|
|
|
3596
3601
|
J("div", Gs, [
|
|
3597
3602
|
ee(Mo)
|
|
3598
3603
|
])
|
|
3599
|
-
])) :
|
|
3604
|
+
])) : _e("", !0),
|
|
3600
3605
|
(n == null ? void 0 : n.mode) === "view" ? (M(), X("div", Xs, [
|
|
3601
3606
|
(M(), we(sr, {
|
|
3602
3607
|
content: r.value,
|
|
@@ -3604,7 +3609,7 @@ const qs = De(fe), { itemData: Ca } = ye(qs), Js = an(fe), { systemKey: Sa, acti
|
|
|
3604
3609
|
jsonContents: s.value,
|
|
3605
3610
|
key: a.value
|
|
3606
3611
|
}, null, 8, ["content", "jsonContents"]))
|
|
3607
|
-
])) :
|
|
3612
|
+
])) : _e("", !0)
|
|
3608
3613
|
]);
|
|
3609
3614
|
};
|
|
3610
3615
|
}
|