ss-component-new 1.1.257 → 1.1.258
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-BgI2Nb1b.js → array-BeL7J4eu.js} +1113 -1082
- package/dist/array-Dwf3pp1a.cjs +7 -0
- package/dist/{cloneDeep-Chs8WeGL.js → cloneDeep-BferVm6H.js} +1 -1
- package/dist/{cloneDeep-Bwo8Zfz4.cjs → cloneDeep-hYL1Afrz.cjs} +1 -1
- package/dist/{index-ByVFfeYm.js → index-1Pxdg8px.js} +1 -1
- package/dist/{index-BMwC-r7E.cjs → index-5Auj3phL.cjs} +1 -1
- package/dist/{index-DifNp422.cjs → index-6CZj96a9.cjs} +1 -1
- package/dist/{index-CvVSkOT1.js → index-6aLV7pyi.js} +6 -6
- package/dist/{index-CQpUB7NH.js → index-B8G0kWYK.js} +6 -6
- package/dist/{index-VbHs202Q.cjs → index-B8i3Wijq.cjs} +1 -1
- package/dist/{index-DZNDjxEG.js → index-B8wV8mLL.js} +1 -1
- package/dist/{index-BUs8RJRL.js → index-BLE2ug66.js} +14 -17
- package/dist/{index-CrQfKqn2.js → index-BLUXHcu3.js} +3 -3
- package/dist/{index-CuUoYj4y.js → index-BNM5Bbhn.js} +5 -5
- package/dist/{index-Bi-yEJS7.js → index-BO0JDldf.js} +1 -1
- package/dist/{index-DYLQzOKD.js → index-BSOOmOcP.js} +1 -1
- package/dist/{index-D99EmR1A.js → index-BhKYpS0F.js} +3 -3
- package/dist/{index-B56BFWXr.cjs → index-Bme7QG8P.cjs} +1 -1
- package/dist/{index-C-aac0ui.cjs → index-Bnma6H_D.cjs} +1 -1
- package/dist/{index-rOp7axK_.js → index-BnyTRSOn.js} +4 -4
- package/dist/index-BqAD0yQU.js +372 -0
- package/dist/{index-Cc-57-nE.js → index-BuRA2mCc.js} +4 -4
- package/dist/{index-Cc2mMgCb.js → index-ButXOs4c.js} +7 -7
- package/dist/{index-DhzhPhgn.cjs → index-Bzne3pNG.cjs} +1 -1
- package/dist/{index-DD2kqBaf.js → index-C7oO0eCH.js} +5 -5
- package/dist/{index-BIb6NF7l.js → index-CD53z5-6.js} +5 -5
- package/dist/{index-BPiOJGR4.js → index-CEIWAp5_.js} +8 -8
- package/dist/{index-vDLxwdKh.cjs → index-CQWAAWyV.cjs} +1 -1
- package/dist/{index-Buo_ifHM.cjs → index-CTX9zSeG.cjs} +1 -1
- package/dist/{index-Chn_kzoZ.js → index-CVRwsXeS.js} +42 -45
- package/dist/{index-wWKmi5lL.cjs → index-C_w2xhRh.cjs} +1 -1
- package/dist/{index-B_r5MIDb.cjs → index-CgbDpv2z.cjs} +1 -1
- package/dist/index-CgfEj8KO.cjs +1 -0
- package/dist/index-Cm57E8Ql.cjs +1 -0
- package/dist/{index-E41pcBla.cjs → index-CnGFr6Dd.cjs} +1 -1
- package/dist/{index-Bn6PuKNg.cjs → index-D0PxGV0S.cjs} +1 -1
- package/dist/{index-Dh_Dvl3-.js → index-D1tWY0PO.js} +77 -76
- package/dist/{index-CHjkyDed.cjs → index-DDSwY2o8.cjs} +1 -1
- package/dist/{index-ep_1tbD5.js → index-DDsBn5l0.js} +1 -1
- package/dist/index-DEzzOfaa.cjs +1 -0
- package/dist/{index-Bh2vufR9.cjs → index-DRL6gZpa.cjs} +1 -1
- package/dist/{index-DyuZnUIa.cjs → index-DelCtLkT.cjs} +1 -1
- package/dist/{index-Dw8LoGl4.cjs → index-Df1JlOfX.cjs} +1 -1
- package/dist/{index-EqhQGAHI.cjs → index-DjMOTSvE.cjs} +1 -1
- package/dist/{index-nFbfOffb.cjs → index-DleDr3pn.cjs} +1 -1
- package/dist/{index-IxRVFfoW.js → index-JRAqJZPj.js} +3 -3
- package/dist/{index-DiHNou3R.js → index-R2K2-Ktx.js} +7 -7
- package/dist/{index-Bdt3kHLy.js → index-V6fZWmWL.js} +1 -1
- package/dist/{index-aJNpt89a.cjs → index-WWIGsH-g.cjs} +1 -1
- package/dist/{index-DqULSnf3.js → index-YrUSo_uZ.js} +4 -4
- package/dist/{index-uuA3l6II.cjs → index-ZKwBkEiK.cjs} +1 -1
- package/dist/{index-CnkDnNKR.cjs → index-gaJJh2zB.cjs} +1 -1
- package/dist/{index-Bx0fLdX7.js → index-iVpiJixE.js} +5 -5
- package/dist/index-otwBW56v.cjs +1 -0
- package/dist/index-t6-Y8dJh.cjs +1 -0
- package/dist/index-zdAmZt8G.js +33 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-DLXLr_g5.cjs → index.vue_vue_type_script_setup_true_lang-Bp0N6DTD.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-s6ctofuL.js → index.vue_vue_type_script_setup_true_lang-_bsSPQD4.js} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_11a5120d_lang-Bl5NBw-o.cjs +1 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_11a5120d_lang-Ch8nCT3a.js +304 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-DLi_05S6.js +908 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-DObCTUZw.cjs +1 -0
- package/dist/{login-D-bqXrbU.cjs → login-Ci1_gDhC.cjs} +1 -1
- package/dist/{login-CsiY21dl.js → login-tvgZPNFj.js} +2 -2
- package/dist/{main-C4ulKCkk.cjs → main-BS2vaGyV.cjs} +1 -1
- package/dist/{main-Dqd19I8A.js → main-Cfq8oZ9O.js} +6 -6
- package/dist/{menu-CvidsObP.cjs → menu-CaXxZ-VB.cjs} +1 -1
- package/dist/{menu-BezRK8oG.js → menu-DBUuyOMU.js} +1 -1
- package/dist/modelComp-BYGFkfVD.cjs +1 -0
- package/dist/{modelComp-k6OAciRs.js → modelComp-CTOnIeyl.js} +7 -3
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +7 -7
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/package.json +1 -1
- package/dist/array-YY5-W0eM.cjs +0 -7
- package/dist/index-BMtHk60o.cjs +0 -1
- package/dist/index-BTQW1y4m.js +0 -29
- package/dist/index-BpjI_NRQ.cjs +0 -1
- package/dist/index-D5eFM-GR.cjs +0 -1
- package/dist/index-DNiNLRgI.js +0 -371
- package/dist/index-ZDStIF3N.cjs +0 -1
- package/dist/index-_8U4s3jM.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_11a5120d_lang-JdiRAoNk.js +0 -304
- package/dist/index.vue_vue_type_style_index_0_scoped_11a5120d_lang-SvB9CFOY.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-Cv2Q1Kt4.js +0 -926
- package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-DzEW8x4v.cjs +0 -1
- package/dist/modelComp-DXGUpq9J.cjs +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { u as aa, g as na, m as sa, s as oa, I as Ue } from "./index-
|
|
2
|
-
import { ref as
|
|
3
|
-
import { p as Ge } from "./index-
|
|
4
|
-
import { F as Cl, s as Te, a as Ie, g as ca, b as Fl, c as xe, f as Ye, m as ul, d as qe, e as cl, h as pa, i as da, _ as fa } from "./index-
|
|
1
|
+
import { u as aa, g as na, m as sa, s as oa, I as Ue } from "./index-R2K2-Ktx.js";
|
|
2
|
+
import { ref as j, watch as we, createElementBlock as z, openBlock as P, createBlock as ve, resolveComponent as be, createVNode as V, Fragment as he, renderList as ge, createElementVNode as x, createCommentVNode as Se, toDisplayString as q, withCtx as ne, defineComponent as Me, reactive as ml, createTextVNode as ze, resolveDynamicComponent as Xe, computed as Bl, renderSlot as al, createSlots as ra, mergeProps as ta, unref as ia, normalizeStyle as ua, withModifiers as Ke } from "vue";
|
|
3
|
+
import { p as Ge } from "./index-B8wV8mLL.js";
|
|
4
|
+
import { F as Cl, s as Te, a as Ie, g as ca, b as Fl, c as xe, f as Ye, m as ul, d as qe, e as cl, h as pa, i as da, _ as fa } from "./index-C7oO0eCH.js";
|
|
5
5
|
import { _ as Ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import { c
|
|
7
|
-
import { e as Nl, s as Ze, E as Ve, g as _l, f as ha } from "./menu-
|
|
8
|
-
import { E as We } from "./index-
|
|
9
|
-
import { u as ma } from "./modelComp-
|
|
10
|
-
import { s as va, a as ya } from "./index-
|
|
6
|
+
import { c } from "./cloneDeep-BferVm6H.js";
|
|
7
|
+
import { e as Nl, s as Ze, E as Ve, g as _l, f as ha } from "./menu-DBUuyOMU.js";
|
|
8
|
+
import { E as We } from "./index-JRAqJZPj.js";
|
|
9
|
+
import { u as ma } from "./modelComp-CTOnIeyl.js";
|
|
10
|
+
import { s as va, a as ya } from "./index-BuRA2mCc.js";
|
|
11
11
|
import ba from "./index-CZtXRS3l.js";
|
|
12
12
|
const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
13
13
|
__name: "index",
|
|
@@ -25,60 +25,60 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
25
25
|
},
|
|
26
26
|
emits: ["change", "contentChange"],
|
|
27
27
|
setup(a, { emit: s }) {
|
|
28
|
-
const l = a, e = s, n =
|
|
29
|
-
var
|
|
30
|
-
const I = (
|
|
31
|
-
let
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
const l = a, e = s, n = j([]), r = j(!1), p = j([]), i = aa(Ge), _ = j(!1), v = j(), y = ($) => {
|
|
29
|
+
var h, C, o, u;
|
|
30
|
+
const I = (C = (h = c(l.itemData)) == null ? void 0 : h.find((t) => (t == null ? void 0 : t.key) === "formContent")) == null ? void 0 : C.contents, g = c($.content);
|
|
31
|
+
let S = {};
|
|
32
|
+
g && ((o = Object.values(g)) == null ? void 0 : o.length) > 0 && ((u = Object.values(g)) == null || u.forEach((t, b) => {
|
|
33
|
+
S[I[b].key] = t;
|
|
34
34
|
}));
|
|
35
|
-
const
|
|
36
|
-
content:
|
|
35
|
+
const d = {
|
|
36
|
+
content: S,
|
|
37
37
|
index: l == null ? void 0 : l.index,
|
|
38
38
|
buttonName: $ == null ? void 0 : $.buttonName
|
|
39
39
|
};
|
|
40
|
-
e("change",
|
|
40
|
+
e("change", d);
|
|
41
41
|
}, T = ($) => {
|
|
42
|
-
var
|
|
42
|
+
var S, d;
|
|
43
43
|
if (!$) return;
|
|
44
|
-
if (((
|
|
45
|
-
const
|
|
46
|
-
let
|
|
47
|
-
|
|
48
|
-
o !== "" && o !== void 0 && (
|
|
49
|
-
}), i.setSelectArray(
|
|
44
|
+
if (((S = Object.values(c($))) == null ? void 0 : S.length) > 0) {
|
|
45
|
+
const h = (d = Object.values(c($))) == null ? void 0 : d.map((o) => o);
|
|
46
|
+
let C = "";
|
|
47
|
+
h == null || h.forEach((o) => {
|
|
48
|
+
o !== "" && o !== void 0 && (C = C === "" ? o : C + "/" + o);
|
|
49
|
+
}), i.setSelectArray(h), i.setSelectString(C);
|
|
50
50
|
}
|
|
51
|
-
const I =
|
|
52
|
-
var
|
|
53
|
-
return (
|
|
54
|
-
var t, b,
|
|
55
|
-
return o.type = o != null && o.type ? o.type : (
|
|
51
|
+
const I = c(l.itemData), g = I == null ? void 0 : I.map((h) => {
|
|
52
|
+
var C;
|
|
53
|
+
return (h == null ? void 0 : h.key) === "formContent" && ((C = h.contents) == null || C.map((o, u) => {
|
|
54
|
+
var t, b, U, F, R, se, oe, f, w, O, m, N, G, X, E, Y, M, te, me, _e;
|
|
55
|
+
return o.type = o != null && o.type ? o.type : (F = (U = (b = (t = o == null ? void 0 : o.key) == null ? void 0 : t.split("$")) == null ? void 0 : b[1]) == null ? void 0 : U.split("(")) != null && F[0] ? (se = (R = Cl) == null ? void 0 : R.find((J) => {
|
|
56
56
|
var ae, H, ue, $e;
|
|
57
57
|
return (J == null ? void 0 : J.key) === (($e = (ue = (H = (ae = o == null ? void 0 : o.key) == null ? void 0 : ae.split("$")) == null ? void 0 : H[1]) == null ? void 0 : ue.split("(")) == null ? void 0 : $e[0]);
|
|
58
|
-
})) == null ? void 0 : se.value : "Input", o.options = o != null && o.options ? o.options : ((w = (
|
|
58
|
+
})) == null ? void 0 : se.value : "Input", o.options = o != null && o.options ? o.options : ((w = (f = (oe = o == null ? void 0 : o.key) == null ? void 0 : oe.split("$")) == null ? void 0 : f[1]) == null ? void 0 : w.length) > 0 ? (G = (N = ga((m = (O = o == null ? void 0 : o.key) == null ? void 0 : O.split("$")) == null ? void 0 : m[1])) == null ? void 0 : N.split(",")) == null ? void 0 : G.map((J) => ({
|
|
59
59
|
label: J,
|
|
60
60
|
value: J
|
|
61
|
-
})) : [], (X = o == null ? void 0 : o.key) != null && X.includes("$") && (o.key = (Y = (
|
|
62
|
-
})),
|
|
61
|
+
})) : [], (X = o == null ? void 0 : o.key) != null && X.includes("$") && (o.key = (Y = (E = o == null ? void 0 : o.key) == null ? void 0 : E.split("$")) == null ? void 0 : Y[0]), o.value = Array.isArray((M = Object.values($)) == null ? void 0 : M[u]) ? (me = (te = Object.values($)) == null ? void 0 : te[u]) == null ? void 0 : me[0] : (_e = Object.values($)) == null ? void 0 : _e[u], o;
|
|
62
|
+
})), h;
|
|
63
63
|
});
|
|
64
64
|
e("contentChange", {
|
|
65
|
-
contents:
|
|
65
|
+
contents: g,
|
|
66
66
|
index: l.index
|
|
67
67
|
});
|
|
68
68
|
};
|
|
69
69
|
return we(
|
|
70
70
|
() => l.itemData,
|
|
71
71
|
async () => {
|
|
72
|
-
var
|
|
73
|
-
const $ = (
|
|
74
|
-
if ((
|
|
75
|
-
const
|
|
76
|
-
await ((
|
|
77
|
-
var G, X,
|
|
72
|
+
var h, C, o, u, t, b, U, F, R, se, oe;
|
|
73
|
+
const $ = (h = c(l.itemData)) == null ? void 0 : h.find((f) => (f == null ? void 0 : f.key) === "formContent"), I = (C = c(l.itemData)) == null ? void 0 : C.find((f) => (f == null ? void 0 : f.key) === "formButton"), g = (o = c(l.itemData)) == null ? void 0 : o.find((f) => (f == null ? void 0 : f.key) === "formFlex"), S = (u = c(l.itemData)) == null ? void 0 : u.find((f) => (f == null ? void 0 : f.key) === "formWrap"), d = (t = c(l.itemData)) == null ? void 0 : t.find((f) => (f == null ? void 0 : f.key) === "enableWrap");
|
|
74
|
+
if ((S == null ? void 0 : S.contents) === "纵向" ? r.value = !1 : r.value = !0, _.value = (d == null ? void 0 : d.contents) === void 0 ? !1 : d == null ? void 0 : d.contents, v.value = typeof (g == null ? void 0 : g.contents) != "boolean" ? !(!(g != null && g.contents) === "" || ((b = g == null ? void 0 : g.contents) == null ? void 0 : b.toUpperCase()) === "VERTICAL") : g == null ? void 0 : g.contents, ((U = $ == null ? void 0 : $.contents) == null ? void 0 : U.length) > 0 && Array.isArray($ == null ? void 0 : $.contents)) {
|
|
75
|
+
const f = [];
|
|
76
|
+
await ((F = $ == null ? void 0 : $.contents) == null ? void 0 : F.forEach(async (m, N) => {
|
|
77
|
+
var G, X, E, Y, M, te, me, _e, J, ae, H, ue;
|
|
78
78
|
if ((m == null ? void 0 : m.label) !== "") {
|
|
79
79
|
let $e = (m == null ? void 0 : m.label) ?? (m == null ? void 0 : m.key) ?? "", fe = (m == null ? void 0 : m.type) ?? "", ye = (m == null ? void 0 : m.options) ?? [];
|
|
80
|
-
if ((G = m == null ? void 0 : m.key) != null && G.includes("$") && ($e = (X =
|
|
81
|
-
const [Pe, Le] = (te = (M =
|
|
80
|
+
if ((G = m == null ? void 0 : m.key) != null && G.includes("$") && ($e = (X = c(m == null ? void 0 : m.key).split("$")) == null ? void 0 : X[0], ((Y = (E = c(m == null ? void 0 : m.key).split("$")) == null ? void 0 : E[1]) == null ? void 0 : Y.length) > 0)) {
|
|
81
|
+
const [Pe, Le] = (te = (M = c(m == null ? void 0 : m.key).split("$")) == null ? void 0 : M[1]) == null ? void 0 : te.split(/[()]/);
|
|
82
82
|
fe = ((me = Cl.find((Ne) => (Ne == null ? void 0 : Ne.key) === Pe)) == null ? void 0 : me.value) ?? "", ((_e = Le == null ? void 0 : Le.split(",")) == null ? void 0 : _e.length) > 0 && (ye = (J = Le == null ? void 0 : Le.split(",")) == null ? void 0 : J.map((Ne) => ({
|
|
83
83
|
label: Ne,
|
|
84
84
|
value: Ne
|
|
@@ -88,12 +88,12 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
88
88
|
m != null && m.contents && !Array.isArray(m == null ? void 0 : m.contents) && ((H = (ae = m == null ? void 0 : m.contents) == null ? void 0 : ae.split(",")) == null || H.map((Pe) => ({
|
|
89
89
|
label: Pe,
|
|
90
90
|
value: Pe
|
|
91
|
-
}))),
|
|
91
|
+
}))), f.push({
|
|
92
92
|
label: $e ?? "",
|
|
93
|
-
name: "t" +
|
|
93
|
+
name: "t" + N,
|
|
94
94
|
type: fe === "" ? "Input" : fe,
|
|
95
95
|
value: m != null && m.originalContent && (m == null ? void 0 : m.originalContent) !== "" ? m.originalContent : m != null && m.value ? m.value : (ye == null ? void 0 : ye.length) > 0 ? (ue = ye == null ? void 0 : ye[0]) == null ? void 0 : ue.value : (m == null ? void 0 : m.value) ?? "",
|
|
96
|
-
id: (m == null ? void 0 : m.id) ??
|
|
96
|
+
id: (m == null ? void 0 : m.id) ?? N,
|
|
97
97
|
contents: (ie == null ? void 0 : ie.length) > 0 ? ie : ye ?? [],
|
|
98
98
|
width: (m == null ? void 0 : m.width) ?? 1,
|
|
99
99
|
config: m == null ? void 0 : m.config,
|
|
@@ -101,23 +101,23 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
103
|
}));
|
|
104
|
-
const w = (R =
|
|
104
|
+
const w = (R = c(f)) == null ? void 0 : R.map((m) => m.value);
|
|
105
105
|
let O = "";
|
|
106
106
|
w == null || w.forEach((m) => {
|
|
107
107
|
m !== "" && m !== void 0 && (O = O === "" ? m : O + "/" + m);
|
|
108
|
-
}), i.setSelectArray(w), i.setSelectString(O), n.value =
|
|
108
|
+
}), i.setSelectArray(w), i.setSelectString(O), n.value = f;
|
|
109
109
|
} else
|
|
110
110
|
n.value = [];
|
|
111
111
|
if (((se = I == null ? void 0 : I.contents) == null ? void 0 : se.length) > 0) {
|
|
112
|
-
const
|
|
112
|
+
const f = [];
|
|
113
113
|
(oe = I == null ? void 0 : I.contents) == null || oe.forEach((w, O) => {
|
|
114
|
-
(w == null ? void 0 : w.label) !== "" &&
|
|
114
|
+
(w == null ? void 0 : w.label) !== "" && f.push({
|
|
115
115
|
label: (w == null ? void 0 : w.label) ?? "",
|
|
116
116
|
id: (w == null ? void 0 : w.id) ?? O,
|
|
117
117
|
type: (w == null ? void 0 : w.type) ?? "",
|
|
118
118
|
background: w == null ? void 0 : w.background
|
|
119
119
|
});
|
|
120
|
-
}), p.value =
|
|
120
|
+
}), p.value = f;
|
|
121
121
|
} else
|
|
122
122
|
p.value = [];
|
|
123
123
|
},
|
|
@@ -129,16 +129,16 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
129
129
|
buttonValue: p.value,
|
|
130
130
|
isRowFlex: v.value,
|
|
131
131
|
isEnableWrap: _.value,
|
|
132
|
-
onOnButtonClick:
|
|
132
|
+
onOnButtonClick: y,
|
|
133
133
|
onChange: T,
|
|
134
134
|
isButtonRow: r.value,
|
|
135
135
|
key: l.itemData
|
|
136
136
|
}, null, 8, ["rowContents", "formRules", "buttonValue", "isRowFlex", "isEnableWrap", "isButtonRow"]))
|
|
137
137
|
]));
|
|
138
138
|
}
|
|
139
|
-
}, $l = /* @__PURE__ */ Ce(Ca, [["__scopeId", "data-v-e939562f"]]), ol =
|
|
139
|
+
}, $l = /* @__PURE__ */ Ce(Ca, [["__scopeId", "data-v-e939562f"]]), ol = j(0), Sl = (a) => {
|
|
140
140
|
var s;
|
|
141
|
-
return !a || (a == null ? void 0 : a.length) === 0 ? [] : (s =
|
|
141
|
+
return !a || (a == null ? void 0 : a.length) === 0 ? [] : (s = c(a)) == null ? void 0 : s.map((e) => (ol.value++, e = {
|
|
142
142
|
label: (e == null ? void 0 : e.label) ?? "",
|
|
143
143
|
prop: (e == null ? void 0 : e.label) === "操作" ? "operate" : e == null ? void 0 : e.prop,
|
|
144
144
|
width: e != null && e.width ? parseInt(e.width) : "",
|
|
@@ -154,7 +154,7 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
154
154
|
}, e));
|
|
155
155
|
}, _a = (a) => {
|
|
156
156
|
var l;
|
|
157
|
-
return (l =
|
|
157
|
+
return (l = c(a)) == null ? void 0 : l.map((e) => (ol.value++, e = {
|
|
158
158
|
label: (e == null ? void 0 : e.label) ?? "",
|
|
159
159
|
prop: (e == null ? void 0 : e.label) === "操作" ? "operate" : e == null ? void 0 : e.prop,
|
|
160
160
|
width: e != null && e.width ? parseInt(e.width) : "",
|
|
@@ -170,22 +170,22 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
170
170
|
}, e));
|
|
171
171
|
}, Ll = (a, s) => {
|
|
172
172
|
var l;
|
|
173
|
-
return a != null && a.find((e) => (e == null ? void 0 : e.id) === s) ? (l =
|
|
173
|
+
return a != null && a.find((e) => (e == null ? void 0 : e.id) === s) ? (l = c(a)) == null ? void 0 : l.filter((n) => (n == null ? void 0 : n.id) !== s) : (a = a == null ? void 0 : a.map((e) => (e.children = Ll(e == null ? void 0 : e.children, s), e)), a);
|
|
174
174
|
}, jl = (a, s) => {
|
|
175
175
|
var l;
|
|
176
|
-
return a != null && a.find((e) => (e == null ? void 0 : e.id) === (s == null ? void 0 : s.id)) ? (l =
|
|
176
|
+
return a != null && a.find((e) => (e == null ? void 0 : e.id) === (s == null ? void 0 : s.id)) ? (l = c(a)) == null ? void 0 : l.map((n) => ((n == null ? void 0 : n.id) === (s == null ? void 0 : s.id) && (n = s), n)) : (a = a == null ? void 0 : a.map((e) => (e.children = jl(e == null ? void 0 : e.children, s), e)), a);
|
|
177
177
|
}, Ul = (a, s) => {
|
|
178
178
|
var l;
|
|
179
179
|
return a != null && a.find((e) => {
|
|
180
180
|
var n;
|
|
181
181
|
return (e == null ? void 0 : e.id) === ((n = s == null ? void 0 : s.contents) == null ? void 0 : n.id);
|
|
182
|
-
}) ? (l =
|
|
182
|
+
}) ? (l = c(a)) == null ? void 0 : l.map((n) => {
|
|
183
183
|
var r;
|
|
184
184
|
return (n == null ? void 0 : n.id) === ((r = s == null ? void 0 : s.contents) == null ? void 0 : r.id) && (n = s == null ? void 0 : s.contents), n;
|
|
185
185
|
}) : (a = a == null ? void 0 : a.map((e) => (e.children = Ul(e == null ? void 0 : e.children, s), e)), a);
|
|
186
186
|
}, Pl = (a, s) => {
|
|
187
187
|
var l;
|
|
188
|
-
return a != null && a.find((e) => (e == null ? void 0 : e.id) === (s == null ? void 0 : s.id)) ? (l =
|
|
188
|
+
return a != null && a.find((e) => (e == null ? void 0 : e.id) === (s == null ? void 0 : s.id)) ? (l = c(a)) == null ? void 0 : l.map((n) => ((n == null ? void 0 : n.id) === (s == null ? void 0 : s.id) && (n != null && n.children || (n.children = []), n.children.push(s.contents)), n)) : (a = a == null ? void 0 : a.map((e) => (e.children = Pl(e == null ? void 0 : e.children, s), e)), a);
|
|
189
189
|
}, re = [
|
|
190
190
|
{
|
|
191
191
|
key: "label",
|
|
@@ -299,15 +299,15 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
299
299
|
},
|
|
300
300
|
emits: ["fixChange", "deleteChange"],
|
|
301
301
|
setup(a, { emit: s }) {
|
|
302
|
-
const l = a, e = s, n =
|
|
303
|
-
|
|
304
|
-
const _ =
|
|
302
|
+
const l = a, e = s, n = j(!1), r = j(""), p = Rl(Ge), { tableIndex: i } = Ze(p);
|
|
303
|
+
j(0);
|
|
304
|
+
const _ = j(""), v = j([]), y = j([]), T = (o) => {
|
|
305
305
|
var t;
|
|
306
306
|
n.value = !0;
|
|
307
|
-
let
|
|
307
|
+
let u = [];
|
|
308
308
|
re == null || re.forEach((b) => {
|
|
309
|
-
let
|
|
310
|
-
p.setTableIndex(
|
|
309
|
+
let U = c(i.value) + 1;
|
|
310
|
+
p.setTableIndex(U), u.push({
|
|
311
311
|
label: b == null ? void 0 : b.label,
|
|
312
312
|
name: b == null ? void 0 : b.label,
|
|
313
313
|
type: b.type,
|
|
@@ -315,20 +315,20 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
315
315
|
id: i.value,
|
|
316
316
|
contents: b == null ? void 0 : b.options
|
|
317
317
|
});
|
|
318
|
-
}), o != null && o.children && ((t = o == null ? void 0 : o.children) == null ? void 0 : t.length) > 0 &&
|
|
318
|
+
}), o != null && o.children && ((t = o == null ? void 0 : o.children) == null ? void 0 : t.length) > 0 && u.push({
|
|
319
319
|
children: o == null ? void 0 : o.children,
|
|
320
320
|
isFormColHidden: !0
|
|
321
|
-
}), _.value = o == null ? void 0 : o.id, v.value =
|
|
321
|
+
}), _.value = o == null ? void 0 : o.id, v.value = u, y.value = u;
|
|
322
322
|
}, $ = (o) => {
|
|
323
|
-
e("fixChange",
|
|
323
|
+
e("fixChange", c(o));
|
|
324
324
|
}, I = (o) => {
|
|
325
|
-
e("deleteChange",
|
|
326
|
-
},
|
|
325
|
+
e("deleteChange", c(o));
|
|
326
|
+
}, g = (o) => {
|
|
327
327
|
n.value = !0;
|
|
328
|
-
let
|
|
328
|
+
let u = [];
|
|
329
329
|
re == null || re.forEach((t) => {
|
|
330
|
-
let b =
|
|
331
|
-
p.setTableIndex(b),
|
|
330
|
+
let b = c(i.value) + 1;
|
|
331
|
+
p.setTableIndex(b), u.push({
|
|
332
332
|
label: t == null ? void 0 : t.label,
|
|
333
333
|
name: t == null ? void 0 : t.label,
|
|
334
334
|
type: t.type,
|
|
@@ -336,38 +336,38 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
336
336
|
id: i.value,
|
|
337
337
|
contents: t == null ? void 0 : t.options
|
|
338
338
|
});
|
|
339
|
-
}), r.value = o == null ? void 0 : o.id, v.value =
|
|
340
|
-
},
|
|
341
|
-
let
|
|
342
|
-
|
|
343
|
-
},
|
|
344
|
-
var
|
|
345
|
-
v.value =
|
|
339
|
+
}), r.value = o == null ? void 0 : o.id, v.value = u, y.value = u;
|
|
340
|
+
}, S = (o) => {
|
|
341
|
+
let u = c(y.value);
|
|
342
|
+
u = u == null ? void 0 : u.map((t) => (t.children || (t.value = o == null ? void 0 : o[t.name]), t)), y.value = u;
|
|
343
|
+
}, d = () => {
|
|
344
|
+
var u, t;
|
|
345
|
+
v.value = y.value;
|
|
346
346
|
let o = {};
|
|
347
347
|
if (_.value !== "")
|
|
348
|
-
o.id = _.value, (
|
|
349
|
-
const
|
|
350
|
-
|
|
348
|
+
o.id = _.value, (u = v.value) == null || u.forEach((b) => {
|
|
349
|
+
const U = re == null ? void 0 : re.find((F) => (F == null ? void 0 : F.label) === (b == null ? void 0 : b.label));
|
|
350
|
+
U ? o[U.key] = b.value : b != null && b.children && b.children.length > 0 && (o.children = b.children);
|
|
351
351
|
}), n.value = !1, e("fixChange", {
|
|
352
|
-
contents:
|
|
352
|
+
contents: c(o),
|
|
353
353
|
id: r.value,
|
|
354
354
|
type: "fix"
|
|
355
355
|
});
|
|
356
356
|
else {
|
|
357
|
-
let b =
|
|
358
|
-
p.setTableIndex(b), o.id = "id" + i.value, (t = v.value) == null || t.forEach((
|
|
359
|
-
const
|
|
360
|
-
|
|
357
|
+
let b = c(i.value) + 1;
|
|
358
|
+
p.setTableIndex(b), o.id = "id" + i.value, (t = v.value) == null || t.forEach((U) => {
|
|
359
|
+
const F = re == null ? void 0 : re.find((R) => (R == null ? void 0 : R.label) === (U == null ? void 0 : U.label));
|
|
360
|
+
F ? o[F.key] = U.value : U != null && U.children && U.children.length > 0 && (o.children = U.children);
|
|
361
361
|
}), n.value = !1, e("fixChange", {
|
|
362
|
-
contents:
|
|
362
|
+
contents: c(o),
|
|
363
363
|
id: r.value,
|
|
364
364
|
type: "add"
|
|
365
365
|
});
|
|
366
366
|
}
|
|
367
|
-
_.value = "", v.value = [],
|
|
368
|
-
},
|
|
369
|
-
n.value = !1, _.value = "", r.value = "", v.value = [],
|
|
370
|
-
},
|
|
367
|
+
_.value = "", v.value = [], y.value = [];
|
|
368
|
+
}, h = () => {
|
|
369
|
+
n.value = !1, _.value = "", r.value = "", v.value = [], y.value = [];
|
|
370
|
+
}, C = (o) => {
|
|
371
371
|
We.confirm("是否确认要删除", "", {
|
|
372
372
|
confirmButtonText: "确认",
|
|
373
373
|
cancelButtonText: "取消",
|
|
@@ -382,10 +382,10 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
382
382
|
).catch(() => {
|
|
383
383
|
});
|
|
384
384
|
};
|
|
385
|
-
return (o,
|
|
385
|
+
return (o, u) => {
|
|
386
386
|
const t = be("svg-icon");
|
|
387
387
|
return P(), z("div", wa, [
|
|
388
|
-
(P(!0), z(he, null, ge(l == null ? void 0 : l.tableChildContents, (b,
|
|
388
|
+
(P(!0), z(he, null, ge(l == null ? void 0 : l.tableChildContents, (b, U) => (P(), z("div", Aa, [
|
|
389
389
|
x("div", Ta, [
|
|
390
390
|
x("div", Ia, q(b.label), 1),
|
|
391
391
|
x("div", Da, [
|
|
@@ -393,19 +393,19 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
393
393
|
name: "ChildAdd",
|
|
394
394
|
class: "svg-icon-content",
|
|
395
395
|
style: { width: "24px", height: "24px" },
|
|
396
|
-
onClick: (
|
|
396
|
+
onClick: (F) => g(b)
|
|
397
397
|
}, null, 8, ["onClick"]),
|
|
398
398
|
V(t, {
|
|
399
399
|
name: "ChildFix",
|
|
400
400
|
class: "svg-icon-content",
|
|
401
401
|
style: { width: "24px", height: "24px" },
|
|
402
|
-
onClick: (
|
|
402
|
+
onClick: (F) => T(b)
|
|
403
403
|
}, null, 8, ["onClick"]),
|
|
404
404
|
V(t, {
|
|
405
405
|
name: "ChildDelete",
|
|
406
406
|
class: "svg-icon-content",
|
|
407
407
|
style: { width: "24px", height: "24px" },
|
|
408
|
-
onClick: (
|
|
408
|
+
onClick: (F) => C(b)
|
|
409
409
|
}, null, 8, ["onClick"])
|
|
410
410
|
])
|
|
411
411
|
]),
|
|
@@ -419,7 +419,7 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
419
419
|
]))), 256)),
|
|
420
420
|
V(Ie, {
|
|
421
421
|
visible: n.value,
|
|
422
|
-
onBeforeDestroy:
|
|
422
|
+
onBeforeDestroy: h,
|
|
423
423
|
width: 840
|
|
424
424
|
}, {
|
|
425
425
|
default: ne(() => [
|
|
@@ -428,19 +428,19 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
428
428
|
rowContents: v.value,
|
|
429
429
|
key: v.value,
|
|
430
430
|
isEnableWrap: !0,
|
|
431
|
-
onChange:
|
|
431
|
+
onChange: S
|
|
432
432
|
}, null, 8, ["rowContents"]))
|
|
433
433
|
])
|
|
434
434
|
]),
|
|
435
435
|
footer: ne(() => [
|
|
436
436
|
x("div", { class: "dialog-footer" }, [
|
|
437
437
|
x("div", {
|
|
438
|
-
onClick:
|
|
438
|
+
onClick: h,
|
|
439
439
|
class: "cancel-button button"
|
|
440
440
|
}, q("取消")),
|
|
441
441
|
x("div", {
|
|
442
442
|
class: "ok-button button",
|
|
443
|
-
onClick:
|
|
443
|
+
onClick: d
|
|
444
444
|
}, q("确认"))
|
|
445
445
|
])
|
|
446
446
|
]),
|
|
@@ -456,15 +456,15 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
456
456
|
},
|
|
457
457
|
emits: ["fixChange", "deleteChange"],
|
|
458
458
|
setup(a, { emit: s }) {
|
|
459
|
-
const l = a, e = s, n =
|
|
460
|
-
e("fixChange",
|
|
459
|
+
const l = a, e = s, n = j(!1), r = j(""), p = Rl(Ge), { tableIndex: i } = Ze(p), _ = j(""), v = j([]), y = j([]), T = (o) => {
|
|
460
|
+
e("fixChange", c(o));
|
|
461
461
|
}, $ = (o) => {
|
|
462
462
|
var t;
|
|
463
463
|
n.value = !0;
|
|
464
|
-
let
|
|
464
|
+
let u = [];
|
|
465
465
|
re == null || re.forEach((b) => {
|
|
466
|
-
let
|
|
467
|
-
p.setTableIndex(
|
|
466
|
+
let U = c(i.value) + 1;
|
|
467
|
+
p.setTableIndex(U), u.push({
|
|
468
468
|
label: b == null ? void 0 : b.label,
|
|
469
469
|
name: b == null ? void 0 : b.label,
|
|
470
470
|
type: b.type,
|
|
@@ -472,16 +472,16 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
472
472
|
id: i.value,
|
|
473
473
|
contents: b == null ? void 0 : b.options
|
|
474
474
|
});
|
|
475
|
-
}), o != null && o.children && ((t = o == null ? void 0 : o.children) == null ? void 0 : t.length) > 0 &&
|
|
475
|
+
}), o != null && o.children && ((t = o == null ? void 0 : o.children) == null ? void 0 : t.length) > 0 && u.push({
|
|
476
476
|
children: o == null ? void 0 : o.children,
|
|
477
477
|
isFormColHidden: !0
|
|
478
|
-
}), _.value = o == null ? void 0 : o.id, v.value =
|
|
478
|
+
}), _.value = o == null ? void 0 : o.id, v.value = u, y.value = u;
|
|
479
479
|
}, I = (o) => {
|
|
480
480
|
n.value = !0;
|
|
481
|
-
let
|
|
481
|
+
let u = [];
|
|
482
482
|
re == null || re.forEach((t) => {
|
|
483
|
-
let b =
|
|
484
|
-
p.setTableIndex(b),
|
|
483
|
+
let b = c(i.value) + 1;
|
|
484
|
+
p.setTableIndex(b), u.push({
|
|
485
485
|
label: t == null ? void 0 : t.label,
|
|
486
486
|
name: t == null ? void 0 : t.label,
|
|
487
487
|
type: t.type,
|
|
@@ -489,38 +489,38 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
489
489
|
id: i.value,
|
|
490
490
|
contents: t == null ? void 0 : t.options
|
|
491
491
|
});
|
|
492
|
-
}), r.value = o == null ? void 0 : o.id, v.value =
|
|
493
|
-
},
|
|
494
|
-
let
|
|
495
|
-
|
|
496
|
-
},
|
|
497
|
-
var
|
|
498
|
-
v.value =
|
|
492
|
+
}), r.value = o == null ? void 0 : o.id, v.value = u, y.value = u;
|
|
493
|
+
}, g = (o) => {
|
|
494
|
+
let u = c(y.value);
|
|
495
|
+
u = u == null ? void 0 : u.map((t) => (t.children || (t.value = o == null ? void 0 : o[t.name]), t)), y.value = u;
|
|
496
|
+
}, S = () => {
|
|
497
|
+
var u, t;
|
|
498
|
+
v.value = y.value;
|
|
499
499
|
let o = {};
|
|
500
500
|
if (_.value !== "")
|
|
501
|
-
o.id = _.value, (
|
|
502
|
-
const
|
|
503
|
-
|
|
501
|
+
o.id = _.value, (u = v.value) == null || u.forEach((b) => {
|
|
502
|
+
const U = re == null ? void 0 : re.find((F) => (F == null ? void 0 : F.label) === (b == null ? void 0 : b.label));
|
|
503
|
+
U ? o[U.key] = b.value : b != null && b.children && b.children.length > 0 && (o.children = b.children);
|
|
504
504
|
}), n.value = !1, e("fixChange", {
|
|
505
|
-
contents:
|
|
505
|
+
contents: c(o),
|
|
506
506
|
id: r.value,
|
|
507
507
|
type: "fix"
|
|
508
508
|
});
|
|
509
509
|
else {
|
|
510
|
-
let b =
|
|
511
|
-
p.setTableIndex(b), o.id = "idChild" + i.value, (t = v.value) == null || t.forEach((
|
|
512
|
-
const
|
|
513
|
-
|
|
510
|
+
let b = c(i.value) + 1;
|
|
511
|
+
p.setTableIndex(b), o.id = "idChild" + i.value, (t = v.value) == null || t.forEach((U) => {
|
|
512
|
+
const F = re == null ? void 0 : re.find((R) => (R == null ? void 0 : R.label) === (U == null ? void 0 : U.label));
|
|
513
|
+
F ? o[F.key] = U.value : U != null && U.children && U.children.length > 0 && (o.children = U.children);
|
|
514
514
|
}), n.value = !1, e("fixChange", {
|
|
515
|
-
contents:
|
|
515
|
+
contents: c(o),
|
|
516
516
|
id: r.value,
|
|
517
517
|
type: "add"
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
|
-
_.value = "", v.value = [],
|
|
521
|
-
},
|
|
522
|
-
n.value = !1, _.value = "", r.value = "", v.value = [],
|
|
523
|
-
},
|
|
520
|
+
_.value = "", v.value = [], y.value = [];
|
|
521
|
+
}, d = () => {
|
|
522
|
+
n.value = !1, _.value = "", r.value = "", v.value = [], y.value = [];
|
|
523
|
+
}, h = (o) => {
|
|
524
524
|
We.confirm("是否确认要删除", "", {
|
|
525
525
|
confirmButtonText: "确认",
|
|
526
526
|
cancelButtonText: "取消",
|
|
@@ -534,13 +534,13 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
534
534
|
}
|
|
535
535
|
).catch(() => {
|
|
536
536
|
});
|
|
537
|
-
},
|
|
537
|
+
}, C = (o) => {
|
|
538
538
|
e("deleteChange", o);
|
|
539
539
|
};
|
|
540
|
-
return (o,
|
|
540
|
+
return (o, u) => {
|
|
541
541
|
const t = be("svg-icon");
|
|
542
542
|
return P(), z("div", Na, [
|
|
543
|
-
(P(!0), z(he, null, ge(l == null ? void 0 : l.tableChildContents, (b,
|
|
543
|
+
(P(!0), z(he, null, ge(l == null ? void 0 : l.tableChildContents, (b, U) => (P(), z("div", Sa, [
|
|
544
544
|
x("div", La, [
|
|
545
545
|
x("div", ja, q(b.label), 1),
|
|
546
546
|
x("div", Ua, [
|
|
@@ -548,33 +548,33 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
548
548
|
name: "ChildAdd",
|
|
549
549
|
class: "svg-icon-content",
|
|
550
550
|
style: { width: "24px", height: "24px" },
|
|
551
|
-
onClick: (
|
|
551
|
+
onClick: (F) => I(b)
|
|
552
552
|
}, null, 8, ["onClick"]),
|
|
553
553
|
V(t, {
|
|
554
554
|
name: "ChildFix",
|
|
555
555
|
class: "svg-icon-content",
|
|
556
556
|
style: { width: "24px", height: "24px" },
|
|
557
|
-
onClick: (
|
|
557
|
+
onClick: (F) => $(b)
|
|
558
558
|
}, null, 8, ["onClick"]),
|
|
559
559
|
V(t, {
|
|
560
560
|
name: "ChildDelete",
|
|
561
561
|
class: "svg-icon-content",
|
|
562
562
|
style: { width: "24px", height: "24px" },
|
|
563
|
-
onClick: (
|
|
563
|
+
onClick: (F) => h(b)
|
|
564
564
|
}, null, 8, ["onClick"])
|
|
565
565
|
])
|
|
566
566
|
]),
|
|
567
567
|
b != null && b.children && b.children.length > 0 ? (P(), z("div", Pa, [
|
|
568
568
|
V(Fa, {
|
|
569
569
|
tableChildContents: b == null ? void 0 : b.children,
|
|
570
|
-
onDeleteChange:
|
|
570
|
+
onDeleteChange: C,
|
|
571
571
|
onFixChange: T
|
|
572
572
|
}, null, 8, ["tableChildContents"])
|
|
573
573
|
])) : Se("", !0)
|
|
574
574
|
]))), 256)),
|
|
575
575
|
V(Ie, {
|
|
576
576
|
visible: n.value,
|
|
577
|
-
onBeforeDestroy:
|
|
577
|
+
onBeforeDestroy: d,
|
|
578
578
|
width: 840
|
|
579
579
|
}, {
|
|
580
580
|
default: ne(() => [
|
|
@@ -583,19 +583,19 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
583
583
|
rowContents: v.value,
|
|
584
584
|
key: v.value,
|
|
585
585
|
isEnableWrap: !0,
|
|
586
|
-
onChange:
|
|
586
|
+
onChange: g
|
|
587
587
|
}, null, 8, ["rowContents"]))
|
|
588
588
|
])
|
|
589
589
|
]),
|
|
590
590
|
footer: ne(() => [
|
|
591
591
|
x("div", { class: "dialog-footer" }, [
|
|
592
592
|
x("div", {
|
|
593
|
-
onClick:
|
|
593
|
+
onClick: d,
|
|
594
594
|
class: "cancel-button button"
|
|
595
595
|
}, q("取消")),
|
|
596
596
|
x("div", {
|
|
597
597
|
class: "ok-button button",
|
|
598
|
-
onClick:
|
|
598
|
+
onClick: S
|
|
599
599
|
}, q("确认"))
|
|
600
600
|
])
|
|
601
601
|
]),
|
|
@@ -618,11 +618,11 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
618
618
|
},
|
|
619
619
|
emits: ["change"],
|
|
620
620
|
setup(a, { emit: s }) {
|
|
621
|
-
const l = a, e = s, n =
|
|
622
|
-
|
|
623
|
-
let
|
|
621
|
+
const l = a, e = s, n = j([]), r = j(!1), p = j(!1), i = j([]), _ = j(!1), v = j([]), y = j(!1), T = j([]), $ = j(""), I = j(""), g = j([]), S = j([]), d = j([]), h = j([]), C = j(!1), o = j([]), u = j([]), t = j(0), b = j([]), U = j([]), F = j([]), R = () => {
|
|
622
|
+
C.value = !0;
|
|
623
|
+
let k = [];
|
|
624
624
|
Re == null || Re.forEach((A) => {
|
|
625
|
-
t.value++,
|
|
625
|
+
t.value++, k.push({
|
|
626
626
|
label: A == null ? void 0 : A.label,
|
|
627
627
|
name: A == null ? void 0 : A.label,
|
|
628
628
|
type: A.type,
|
|
@@ -630,13 +630,13 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
630
630
|
id: t.value,
|
|
631
631
|
contents: A == null ? void 0 : A.options
|
|
632
632
|
});
|
|
633
|
-
}), o.value =
|
|
633
|
+
}), o.value = k, u.value = k;
|
|
634
634
|
}, se = () => {
|
|
635
|
-
var A, B,
|
|
635
|
+
var A, B, D;
|
|
636
636
|
p.value = !0;
|
|
637
|
-
let
|
|
638
|
-
(
|
|
639
|
-
t.value++,
|
|
637
|
+
let k = [];
|
|
638
|
+
(D = (B = (A = xe) == null ? void 0 : A.find((K) => (K == null ? void 0 : K.key) === "Input")) == null ? void 0 : B.value) == null || D.forEach((K) => {
|
|
639
|
+
t.value++, k.push({
|
|
640
640
|
label: K == null ? void 0 : K.label,
|
|
641
641
|
name: K == null ? void 0 : K.label,
|
|
642
642
|
type: K.type,
|
|
@@ -644,41 +644,41 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
644
644
|
id: t.value,
|
|
645
645
|
contents: K == null ? void 0 : K.options
|
|
646
646
|
});
|
|
647
|
-
}), b.value =
|
|
648
|
-
}, oe = async (
|
|
649
|
-
var A, B,
|
|
650
|
-
if ((
|
|
651
|
-
let le = [], De = await ((ee = (K = (
|
|
647
|
+
}), b.value = k, U.value = k;
|
|
648
|
+
}, oe = async (k) => {
|
|
649
|
+
var A, B, D, K, ee, ke, W, Q, de, Ae;
|
|
650
|
+
if ((k == null ? void 0 : k.类型) !== ((B = (A = U.value) == null ? void 0 : A.find((le) => (le == null ? void 0 : le.label) === "类型")) == null ? void 0 : B.value)) {
|
|
651
|
+
let le = [], De = await ((ee = (K = (D = xe) == null ? void 0 : D.find((Z) => (Z == null ? void 0 : Z.key) === ((k == null ? void 0 : k.类型) === "" ? "Input" : k == null ? void 0 : k.类型))) == null ? void 0 : K.value) == null ? void 0 : ee.value) ? await ((Ae = (de = (Q = xe) == null ? void 0 : Q.find((Z) => (Z == null ? void 0 : Z.key) === ((k == null ? void 0 : k.类型) === "" ? "Input" : k == null ? void 0 : k.类型))) == null ? void 0 : de.value) == null ? void 0 : Ae.value) : (W = (ke = xe) == null ? void 0 : ke.find((Z) => (Z == null ? void 0 : Z.key) === ((k == null ? void 0 : k.类型) === "" ? "Input" : k == null ? void 0 : k.类型))) == null ? void 0 : W.value;
|
|
652
652
|
De == null || De.forEach((Z) => {
|
|
653
653
|
t.value++, le.push({
|
|
654
654
|
label: Z == null ? void 0 : Z.label,
|
|
655
655
|
name: Z == null ? void 0 : Z.label,
|
|
656
656
|
type: Z.type,
|
|
657
|
-
value: (
|
|
657
|
+
value: (k == null ? void 0 : k[Z.label]) ?? "",
|
|
658
658
|
id: t.value,
|
|
659
659
|
contents: Z == null ? void 0 : Z.options
|
|
660
660
|
});
|
|
661
|
-
}),
|
|
661
|
+
}), U.value = le, b.value = le;
|
|
662
662
|
} else {
|
|
663
|
-
let le =
|
|
664
|
-
le = le == null ? void 0 : le.map((De) => (De.value =
|
|
663
|
+
let le = c(b.value);
|
|
664
|
+
le = le == null ? void 0 : le.map((De) => (De.value = k == null ? void 0 : k[De.name], De)), U.value = le;
|
|
665
665
|
}
|
|
666
|
-
},
|
|
667
|
-
var
|
|
666
|
+
}, f = async (k) => {
|
|
667
|
+
var D, K, ee, ke, W, Q, de, Ae;
|
|
668
668
|
p.value = !0;
|
|
669
669
|
let A = [];
|
|
670
|
-
const B = await ((ee = (K = (
|
|
670
|
+
const B = await ((ee = (K = (D = xe) == null ? void 0 : D.find((le) => (le == null ? void 0 : le.key) === ((k == null ? void 0 : k.type) === "" ? "Input" : k == null ? void 0 : k.type))) == null ? void 0 : K.value) == null ? void 0 : ee.value) ? await ((Ae = (de = (Q = xe) == null ? void 0 : Q.find((le) => (le == null ? void 0 : le.key) === ((k == null ? void 0 : k.type) === "" ? "Input" : k == null ? void 0 : k.type))) == null ? void 0 : de.value) == null ? void 0 : Ae.value) : (W = (ke = xe) == null ? void 0 : ke.find((le) => (le == null ? void 0 : le.key) === ((k == null ? void 0 : k.type) === "" ? "Input" : k == null ? void 0 : k.type))) == null ? void 0 : W.value;
|
|
671
671
|
B == null || B.forEach((le) => {
|
|
672
672
|
t.value++, A.push({
|
|
673
673
|
label: le == null ? void 0 : le.label,
|
|
674
674
|
name: le == null ? void 0 : le.label,
|
|
675
675
|
type: le.type,
|
|
676
|
-
value: (le == null ? void 0 : le.label) === "类型" &&
|
|
676
|
+
value: (le == null ? void 0 : le.label) === "类型" && k[le.key] === "" ? "Input" : k[le.key],
|
|
677
677
|
id: t.value,
|
|
678
678
|
contents: le == null ? void 0 : le.options
|
|
679
679
|
});
|
|
680
|
-
}), $.value =
|
|
681
|
-
}, w = (
|
|
680
|
+
}), $.value = k == null ? void 0 : k.id, b.value = A, U.value = A;
|
|
681
|
+
}, w = (k) => {
|
|
682
682
|
We.confirm("是否确认要删除", "", {
|
|
683
683
|
confirmButtonText: "确认",
|
|
684
684
|
cancelButtonText: "取消",
|
|
@@ -686,7 +686,7 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
686
686
|
}).then(
|
|
687
687
|
() => {
|
|
688
688
|
var A, B;
|
|
689
|
-
|
|
689
|
+
F.value = (A = c(F.value)) == null ? void 0 : A.filter((D) => (D == null ? void 0 : D.id) !== (k == null ? void 0 : k.id)), e("change", (B = c(l.originalItemContents)) == null ? void 0 : B.map((D) => ((D == null ? void 0 : D.key) === "tableToForm" && (D.contents = F.value), D))), Ve({
|
|
690
690
|
type: "success",
|
|
691
691
|
message: "删除成功"
|
|
692
692
|
});
|
|
@@ -696,11 +696,11 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
696
696
|
}, O = () => {
|
|
697
697
|
p.value = !1, b.value = [], $.value = "";
|
|
698
698
|
}, m = async () => {
|
|
699
|
-
var
|
|
700
|
-
b.value =
|
|
701
|
-
let
|
|
702
|
-
$.value !== "" ?
|
|
703
|
-
let A = await ((ee = (K = (
|
|
699
|
+
var D, K, ee, ke, W, Q, de, Ae, le, De;
|
|
700
|
+
b.value = U.value;
|
|
701
|
+
let k = {};
|
|
702
|
+
$.value !== "" ? k.id = $.value : (t.value++, k.id = "id" + t.value);
|
|
703
|
+
let A = await ((ee = (K = (D = xe) == null ? void 0 : D.find((Z) => {
|
|
704
704
|
var Ee, Be;
|
|
705
705
|
return (Z == null ? void 0 : Z.key) === (((Be = (Ee = b.value) == null ? void 0 : Ee.find((je) => (je == null ? void 0 : je.label) === "类型")) == null ? void 0 : Be.value) ?? "label");
|
|
706
706
|
})) == null ? void 0 : K.value) == null ? void 0 : ee.value) ?? ((W = (ke = xe) == null ? void 0 : ke.find((Z) => {
|
|
@@ -709,46 +709,46 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
709
709
|
})) == null ? void 0 : W.value);
|
|
710
710
|
if ((Q = b.value) == null || Q.forEach((Z) => {
|
|
711
711
|
const Ee = A == null ? void 0 : A.find((Be) => (Be == null ? void 0 : Be.label) === (Z == null ? void 0 : Z.label));
|
|
712
|
-
Ee && (
|
|
713
|
-
}),
|
|
714
|
-
|
|
712
|
+
Ee && (k[Ee.key] = Z.value);
|
|
713
|
+
}), k.name = k.label, (de = F.value) != null && de.find((Z) => Z.id === k.id))
|
|
714
|
+
F.value = (Ae = F.value) == null ? void 0 : Ae.map((Z) => (Z.id === k.id && (Z = k), Z));
|
|
715
715
|
else {
|
|
716
|
-
let Z =
|
|
717
|
-
|
|
716
|
+
let Z = c(F.value);
|
|
717
|
+
F.value || (F.value = []), Z.push(k), F.value = Z;
|
|
718
718
|
}
|
|
719
|
-
|
|
720
|
-
let B =
|
|
721
|
-
(le =
|
|
719
|
+
F.value = F.value.map(({ id: Z, ...Ee }) => Ee), p.value = !1, $.value = "";
|
|
720
|
+
let B = c(l.originalItemContents);
|
|
721
|
+
(le = c(l.originalItemContents)) != null && le.find((Z) => (Z == null ? void 0 : Z.key) === "tableToForm") ? B = (De = c(l.originalItemContents)) == null ? void 0 : De.map((Z) => ((Z == null ? void 0 : Z.key) === "tableToForm" && (Z.contents = F.value), Z)) : B.push({
|
|
722
722
|
key: "tableToForm",
|
|
723
|
-
contents:
|
|
723
|
+
contents: F.value
|
|
724
724
|
}), e("change", B);
|
|
725
|
-
},
|
|
726
|
-
|
|
725
|
+
}, N = (k) => {
|
|
726
|
+
C.value = !0;
|
|
727
727
|
let A = [];
|
|
728
728
|
Re == null || Re.forEach((B) => {
|
|
729
729
|
t.value++, A.push({
|
|
730
730
|
label: B == null ? void 0 : B.label,
|
|
731
731
|
name: B == null ? void 0 : B.label,
|
|
732
732
|
type: B.type,
|
|
733
|
-
value:
|
|
733
|
+
value: k[B.key],
|
|
734
734
|
id: t.value,
|
|
735
735
|
contents: B == null ? void 0 : B.options
|
|
736
736
|
});
|
|
737
|
-
}), $.value =
|
|
737
|
+
}), $.value = k == null ? void 0 : k.id, o.value = A, u.value = A;
|
|
738
738
|
};
|
|
739
739
|
we(
|
|
740
|
-
() =>
|
|
740
|
+
() => y.value,
|
|
741
741
|
() => {
|
|
742
742
|
var A, B;
|
|
743
|
-
let
|
|
744
|
-
(A =
|
|
743
|
+
let k = c(l.originalItemContents);
|
|
744
|
+
(A = c(l.originalItemContents)) != null && A.find((D) => (D == null ? void 0 : D.key) === "page") ? k = (B = c(l.originalItemContents)) == null ? void 0 : B.map((D) => ((D == null ? void 0 : D.key) === "page" && (D.contents = y.value), D)) : k.push({
|
|
745
745
|
key: "page",
|
|
746
|
-
contents:
|
|
747
|
-
}), e("change",
|
|
746
|
+
contents: y.value
|
|
747
|
+
}), e("change", k);
|
|
748
748
|
},
|
|
749
749
|
{ deep: !0 }
|
|
750
750
|
);
|
|
751
|
-
const G = (
|
|
751
|
+
const G = (k) => {
|
|
752
752
|
We.confirm("是否确认要删除", "", {
|
|
753
753
|
confirmButtonText: "确认",
|
|
754
754
|
cancelButtonText: "取消",
|
|
@@ -756,7 +756,7 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
756
756
|
}).then(
|
|
757
757
|
() => {
|
|
758
758
|
var A, B;
|
|
759
|
-
|
|
759
|
+
S.value = (A = c(S.value)) == null ? void 0 : A.filter((D) => (D == null ? void 0 : D.id) !== (k == null ? void 0 : k.id)), e("change", (B = c(l.originalItemContents)) == null ? void 0 : B.map((D) => ((D == null ? void 0 : D.key) === "extraButton" && (D.contents = S.value), D))), Ve({
|
|
760
760
|
type: "success",
|
|
761
761
|
message: "删除成功"
|
|
762
762
|
});
|
|
@@ -764,30 +764,30 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
764
764
|
).catch(() => {
|
|
765
765
|
});
|
|
766
766
|
}, X = () => {
|
|
767
|
-
var B,
|
|
768
|
-
o.value =
|
|
769
|
-
let
|
|
770
|
-
if ($.value !== "" ?
|
|
767
|
+
var B, D, K, ee, ke;
|
|
768
|
+
o.value = u.value;
|
|
769
|
+
let k = {};
|
|
770
|
+
if ($.value !== "" ? k.id = $.value : (t.value++, k.id = "id" + t.value), (B = o.value) == null || B.forEach((W) => {
|
|
771
771
|
const Q = Re == null ? void 0 : Re.find((de) => (de == null ? void 0 : de.label) === (W == null ? void 0 : W.label));
|
|
772
|
-
Q ?
|
|
773
|
-
}), (
|
|
774
|
-
|
|
772
|
+
Q ? k[Q.key] = W.value : W != null && W.children && W.children.length > 0 && (k.children = W.children);
|
|
773
|
+
}), (D = S.value) != null && D.find((W) => W.id === k.id))
|
|
774
|
+
S.value = (K = S.value) == null ? void 0 : K.map((W) => (W.id === k.id && (W = k), W));
|
|
775
775
|
else {
|
|
776
|
-
let W =
|
|
777
|
-
W.push(
|
|
776
|
+
let W = c(S.value);
|
|
777
|
+
W.push(k), S.value = W;
|
|
778
778
|
}
|
|
779
|
-
|
|
780
|
-
let A =
|
|
781
|
-
(ee =
|
|
779
|
+
C.value = !1, $.value = "";
|
|
780
|
+
let A = c(l.originalItemContents);
|
|
781
|
+
(ee = c(l.originalItemContents)) != null && ee.find((W) => (W == null ? void 0 : W.key) === "extraButton") ? A = (ke = c(l.originalItemContents)) == null ? void 0 : ke.map((W) => ((W == null ? void 0 : W.key) === "extraButton" && (W.contents = S.value), W)) : A.push({
|
|
782
782
|
key: "extraButton",
|
|
783
|
-
contents:
|
|
783
|
+
contents: S.value
|
|
784
784
|
}), e("change", A);
|
|
785
|
-
},
|
|
786
|
-
let A = u
|
|
787
|
-
A = A == null ? void 0 : A.map((B) => (B.children || (B.value =
|
|
785
|
+
}, E = (k) => {
|
|
786
|
+
let A = c(u.value);
|
|
787
|
+
A = A == null ? void 0 : A.map((B) => (B.children || (B.value = k == null ? void 0 : k[B.name]), B)), u.value = A;
|
|
788
788
|
}, Y = () => {
|
|
789
|
-
|
|
790
|
-
}, M = (
|
|
789
|
+
C.value = !1, o.value = [], $.value = "";
|
|
790
|
+
}, M = (k) => {
|
|
791
791
|
_.value = !0;
|
|
792
792
|
let A = [];
|
|
793
793
|
Je == null || Je.forEach((B) => {
|
|
@@ -795,12 +795,12 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
795
795
|
label: B == null ? void 0 : B.label,
|
|
796
796
|
name: B == null ? void 0 : B.label,
|
|
797
797
|
type: B.type,
|
|
798
|
-
value:
|
|
798
|
+
value: k[B.key],
|
|
799
799
|
id: t.value,
|
|
800
800
|
contents: B == null ? void 0 : B.options
|
|
801
801
|
});
|
|
802
|
-
}), $.value =
|
|
803
|
-
}, te = (
|
|
802
|
+
}), $.value = k == null ? void 0 : k.id, d.value = A, h.value = A;
|
|
803
|
+
}, te = (k) => {
|
|
804
804
|
We.confirm("是否确认要删除", "", {
|
|
805
805
|
confirmButtonText: "确认",
|
|
806
806
|
cancelButtonText: "取消",
|
|
@@ -808,7 +808,7 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
808
808
|
}).then(
|
|
809
809
|
() => {
|
|
810
810
|
var A, B;
|
|
811
|
-
|
|
811
|
+
g.value = (A = c(g.value)) == null ? void 0 : A.filter((D) => (D == null ? void 0 : D.id) !== (k == null ? void 0 : k.id)), e("change", (B = c(l.originalItemContents)) == null ? void 0 : B.map((D) => ((D == null ? void 0 : D.key) === "rowButton" && (D.contents = g.value), D))), Ve({
|
|
812
812
|
type: "success",
|
|
813
813
|
message: "删除成功"
|
|
814
814
|
});
|
|
@@ -817,9 +817,9 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
817
817
|
});
|
|
818
818
|
}, me = () => {
|
|
819
819
|
r.value = !0;
|
|
820
|
-
let
|
|
820
|
+
let k = [];
|
|
821
821
|
re == null || re.forEach((A) => {
|
|
822
|
-
t.value++,
|
|
822
|
+
t.value++, k.push({
|
|
823
823
|
label: A == null ? void 0 : A.label,
|
|
824
824
|
name: A == null ? void 0 : A.label,
|
|
825
825
|
type: A.type,
|
|
@@ -827,12 +827,12 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
827
827
|
id: t.value,
|
|
828
828
|
contents: A == null ? void 0 : A.options
|
|
829
829
|
});
|
|
830
|
-
}), v.value =
|
|
830
|
+
}), v.value = k, T.value = k;
|
|
831
831
|
}, _e = () => {
|
|
832
832
|
_.value = !0;
|
|
833
|
-
let
|
|
833
|
+
let k = [];
|
|
834
834
|
Je == null || Je.forEach((A) => {
|
|
835
|
-
t.value++,
|
|
835
|
+
t.value++, k.push({
|
|
836
836
|
label: A == null ? void 0 : A.label,
|
|
837
837
|
name: A == null ? void 0 : A.label,
|
|
838
838
|
type: A.type,
|
|
@@ -840,32 +840,32 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
840
840
|
id: t.value,
|
|
841
841
|
contents: A == null ? void 0 : A.options
|
|
842
842
|
});
|
|
843
|
-
}),
|
|
844
|
-
}, J = (
|
|
845
|
-
let A =
|
|
846
|
-
A = A == null ? void 0 : A.map((B) => (B.children || (B.value =
|
|
843
|
+
}), d.value = k, h.value = k;
|
|
844
|
+
}, J = (k) => {
|
|
845
|
+
let A = c(h.value);
|
|
846
|
+
A = A == null ? void 0 : A.map((B) => (B.children || (B.value = k == null ? void 0 : k[B.name]), B)), h.value = A;
|
|
847
847
|
}, ae = () => {
|
|
848
|
-
var B,
|
|
849
|
-
|
|
850
|
-
let
|
|
851
|
-
if ($.value !== "" ?
|
|
848
|
+
var B, D, K, ee, ke;
|
|
849
|
+
d.value = h.value;
|
|
850
|
+
let k = {};
|
|
851
|
+
if ($.value !== "" ? k.id = $.value : (t.value++, k.id = "id" + t.value), (B = d.value) == null || B.forEach((W) => {
|
|
852
852
|
const Q = Je == null ? void 0 : Je.find((de) => (de == null ? void 0 : de.label) === (W == null ? void 0 : W.label));
|
|
853
|
-
Q ?
|
|
854
|
-
}), (
|
|
855
|
-
|
|
853
|
+
Q ? k[Q.key] = W.value : W != null && W.children && W.children.length > 0 && (k.children = W.children);
|
|
854
|
+
}), (D = g.value) != null && D.find((W) => W.id === k.id))
|
|
855
|
+
g.value = (K = g.value) == null ? void 0 : K.map((W) => (W.id === k.id && (W = k), W));
|
|
856
856
|
else {
|
|
857
|
-
let W =
|
|
858
|
-
W.push(
|
|
857
|
+
let W = c(g.value);
|
|
858
|
+
W.push(k), g.value = W;
|
|
859
859
|
}
|
|
860
860
|
_.value = !1, $.value = "";
|
|
861
|
-
let A =
|
|
862
|
-
(ee =
|
|
861
|
+
let A = c(l.originalItemContents);
|
|
862
|
+
(ee = c(l.originalItemContents)) != null && ee.find((W) => (W == null ? void 0 : W.key) === "rowButton") ? A = (ke = c(l.originalItemContents)) == null ? void 0 : ke.map((W) => ((W == null ? void 0 : W.key) === "rowButton" && (W.contents = g.value), W)) : A.push({
|
|
863
863
|
key: "rowButton",
|
|
864
|
-
contents:
|
|
864
|
+
contents: g.value
|
|
865
865
|
}), e("change", A);
|
|
866
866
|
}, H = () => {
|
|
867
|
-
_.value = !1, $.value = "",
|
|
868
|
-
}, ue = (
|
|
867
|
+
_.value = !1, $.value = "", h.value = [], d.value = [];
|
|
868
|
+
}, ue = (k) => {
|
|
869
869
|
r.value = !0;
|
|
870
870
|
let A = [];
|
|
871
871
|
re == null || re.forEach((B) => {
|
|
@@ -877,63 +877,63 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
877
877
|
id: t.value,
|
|
878
878
|
contents: B == null ? void 0 : B.options
|
|
879
879
|
});
|
|
880
|
-
}), v.value = A, I.value =
|
|
881
|
-
}, $e = (
|
|
880
|
+
}), v.value = A, I.value = k == null ? void 0 : k.id, T.value = A;
|
|
881
|
+
}, $e = (k) => {
|
|
882
882
|
var A;
|
|
883
|
-
i.value = Ll(
|
|
884
|
-
var
|
|
885
|
-
return (B == null ? void 0 : B.key) === "header" && (B.contents = (
|
|
883
|
+
i.value = Ll(c(i.value), k == null ? void 0 : k.id), e("change", (A = c(l.originalItemContents)) == null ? void 0 : A.map((B) => {
|
|
884
|
+
var D;
|
|
885
|
+
return (B == null ? void 0 : B.key) === "header" && (B.contents = (D = i.value) != null && D.some((K) => K == null ? void 0 : K.children) ? [i.value] : i.value), B;
|
|
886
886
|
}));
|
|
887
|
-
}, fe = (
|
|
888
|
-
var B,
|
|
889
|
-
|
|
890
|
-
let A =
|
|
891
|
-
(
|
|
887
|
+
}, fe = (k) => {
|
|
888
|
+
var B, D, K;
|
|
889
|
+
k.type === "fix" ? k.id !== "" ? i.value = Ul(i.value, k) : i.value = jl(i.value, k == null ? void 0 : k.contents) : i.value = Pl(i.value, k), i.value = (B = i.value) != null && B.some((ee) => ee == null ? void 0 : ee.children) ? [i.value] : i.value, $.value = "";
|
|
890
|
+
let A = c(l.originalItemContents);
|
|
891
|
+
(D = c(l.originalItemContents)) != null && D.find((ee) => (ee == null ? void 0 : ee.key) === "header") ? A = (K = c(l.originalItemContents)) == null ? void 0 : K.map((ee) => ((ee == null ? void 0 : ee.key) === "header" && (ee.contents = i.value), ee)) : A.push({
|
|
892
892
|
key: "header",
|
|
893
893
|
contents: i.value
|
|
894
894
|
}), e("change", A);
|
|
895
|
-
}, ye = (
|
|
895
|
+
}, ye = (k) => {
|
|
896
896
|
var B;
|
|
897
897
|
r.value = !0;
|
|
898
898
|
let A = [];
|
|
899
|
-
re == null || re.forEach((
|
|
899
|
+
re == null || re.forEach((D) => {
|
|
900
900
|
t.value++, A.push({
|
|
901
|
-
label:
|
|
902
|
-
name:
|
|
903
|
-
type:
|
|
904
|
-
value:
|
|
901
|
+
label: D == null ? void 0 : D.label,
|
|
902
|
+
name: D == null ? void 0 : D.label,
|
|
903
|
+
type: D.type,
|
|
904
|
+
value: k[D.key],
|
|
905
905
|
id: t.value,
|
|
906
|
-
contents:
|
|
906
|
+
contents: D == null ? void 0 : D.options
|
|
907
907
|
});
|
|
908
|
-
}),
|
|
909
|
-
children:
|
|
908
|
+
}), k != null && k.children && ((B = k == null ? void 0 : k.children) == null ? void 0 : B.length) > 0 && A.push({
|
|
909
|
+
children: k == null ? void 0 : k.children,
|
|
910
910
|
isFormColHidden: !0
|
|
911
|
-
}), $.value =
|
|
912
|
-
}, ie = (
|
|
913
|
-
let A =
|
|
914
|
-
A = A == null ? void 0 : A.map((B) => (B.children || (B.value =
|
|
911
|
+
}), $.value = k == null ? void 0 : k.id, I.value = "", v.value = A, T.value = A;
|
|
912
|
+
}, ie = (k) => {
|
|
913
|
+
let A = c(T.value);
|
|
914
|
+
A = A == null ? void 0 : A.map((B) => (B.children || (B.value = k == null ? void 0 : k[B.name]), B)), T.value = A;
|
|
915
915
|
}, Pe = () => {
|
|
916
916
|
r.value = !1, $.value = "", I.value = "", T.value = [];
|
|
917
917
|
}, Le = () => {
|
|
918
|
-
var B,
|
|
918
|
+
var B, D, K, ee, ke, W;
|
|
919
919
|
v.value = T.value;
|
|
920
|
-
let
|
|
921
|
-
if ($.value !== "" ?
|
|
920
|
+
let k = {};
|
|
921
|
+
if ($.value !== "" ? k.id = $.value : (t.value++, k.id = "id" + t.value), (B = v.value) == null || B.forEach((Q) => {
|
|
922
922
|
const de = re == null ? void 0 : re.find((Ae) => (Ae == null ? void 0 : Ae.label) === (Q == null ? void 0 : Q.label));
|
|
923
|
-
de ?
|
|
924
|
-
}), (
|
|
925
|
-
i.value = (K = i.value) == null ? void 0 : K.map((Q) => (Q.id ===
|
|
923
|
+
de ? k[de.key] = Q.value : Q != null && Q.children && Q.children.length > 0 && (k.children = Q.children);
|
|
924
|
+
}), (D = i.value) != null && D.find((Q) => Q.id === k.id))
|
|
925
|
+
i.value = (K = i.value) == null ? void 0 : K.map((Q) => (Q.id === k.id && (Q = k), Q));
|
|
926
926
|
else {
|
|
927
|
-
let Q =
|
|
928
|
-
I.value === "" ? Q.push(
|
|
927
|
+
let Q = c(i.value) ?? [];
|
|
928
|
+
I.value === "" ? Q.push(k) : Q = Q == null ? void 0 : Q.map((de) => (de.id === I.value && (de.children || (de.children = []), de.children.push(k)), de)), i.value = Q;
|
|
929
929
|
}
|
|
930
930
|
i.value = (ee = i.value) != null && ee.some((Q) => Q == null ? void 0 : Q.children) ? [i.value] : i.value, r.value = !1, $.value = "", I.value = "";
|
|
931
|
-
let A =
|
|
932
|
-
(ke =
|
|
931
|
+
let A = c(l.originalItemContents);
|
|
932
|
+
(ke = c(l.originalItemContents)) != null && ke.find((Q) => (Q == null ? void 0 : Q.key) === "header") ? A = (W = c(l.originalItemContents)) == null ? void 0 : W.map((Q) => ((Q == null ? void 0 : Q.key) === "header" && (Q.contents = i.value), Q)) : A.push({
|
|
933
933
|
key: "header",
|
|
934
934
|
contents: i.value
|
|
935
935
|
}), e("change", A);
|
|
936
|
-
}, Ne = (
|
|
936
|
+
}, Ne = (k) => {
|
|
937
937
|
We.confirm("是否确认要删除", "", {
|
|
938
938
|
confirmButtonText: "确认",
|
|
939
939
|
cancelButtonText: "取消",
|
|
@@ -941,9 +941,9 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
941
941
|
}).then(
|
|
942
942
|
() => {
|
|
943
943
|
var A, B;
|
|
944
|
-
i.value = (A =
|
|
944
|
+
i.value = (A = c(i.value)) == null ? void 0 : A.filter((D) => (D == null ? void 0 : D.id) !== (k == null ? void 0 : k.id)), e("change", (B = c(l.originalItemContents)) == null ? void 0 : B.map((D) => {
|
|
945
945
|
var K;
|
|
946
|
-
return (
|
|
946
|
+
return (D == null ? void 0 : D.key) === "header" && (D.contents = (K = i.value) != null && K.some((ee) => ee == null ? void 0 : ee.children) ? [i.value] : i.value), D;
|
|
947
947
|
})), Ve({
|
|
948
948
|
type: "success",
|
|
949
949
|
message: "删除成功"
|
|
@@ -955,9 +955,9 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
955
955
|
return we(
|
|
956
956
|
() => l.originalItemContents,
|
|
957
957
|
() => {
|
|
958
|
-
var
|
|
958
|
+
var k, A, B, D, K, ee, ke, W, Q, de, Ae, le, De, Z, Ee, Be, je, gl, kl;
|
|
959
959
|
if (!(!l.originalItemContents || l.originalItemContents.length === 0))
|
|
960
|
-
if (n.value =
|
|
960
|
+
if (n.value = c(l.originalItemContents), i.value = (A = (k = n.value) == null ? void 0 : k.find((L) => (L == null ? void 0 : L.key) === "header")) == null ? void 0 : A.contents, g.value = (D = (B = n.value) == null ? void 0 : B.find((L) => (L == null ? void 0 : L.key) === "rowButton")) == null ? void 0 : D.contents, S.value = (ee = (K = n.value) == null ? void 0 : K.find((L) => (L == null ? void 0 : L.key) === "extraButton")) == null ? void 0 : ee.contents, y.value = (W = (ke = n.value) == null ? void 0 : ke.find((L) => (L == null ? void 0 : L.key) === "page")) != null && W.contents ? !!((de = (Q = n.value) == null ? void 0 : Q.find((L) => (L == null ? void 0 : L.key) === "page")) != null && de.contents) : !1, F.value = (le = (Ae = n.value) == null ? void 0 : Ae.find((L) => (L == null ? void 0 : L.key) === "tableToForm")) == null ? void 0 : le.contents, i.value = (De = i.value) == null ? void 0 : De.map((L, Fe) => (Array.isArray(L) ? L = _a(L) : L = {
|
|
961
961
|
label: (L == null ? void 0 : L.label) ?? "",
|
|
962
962
|
prop: (L == null ? void 0 : L.label) === "操作" ? "operate" : L == null ? void 0 : L.prop,
|
|
963
963
|
width: L != null && L.width ? parseInt(L.width) : "",
|
|
@@ -969,25 +969,25 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
969
969
|
isEditCol: (L == null ? void 0 : L.isEditCol) ?? !1,
|
|
970
970
|
isOperate: (L == null ? void 0 : L.isOperate) ?? !1,
|
|
971
971
|
id: (L == null ? void 0 : L.id) ?? Fe
|
|
972
|
-
}, L)), i.value = (Z = i.value) != null && Z.every((L) => Array.isArray(L)) ? (Ee = i.value) == null ? void 0 : Ee[0] : i.value,
|
|
972
|
+
}, L)), i.value = (Z = i.value) != null && Z.every((L) => Array.isArray(L)) ? (Ee = i.value) == null ? void 0 : Ee[0] : i.value, g.value = (Be = g.value) == null ? void 0 : Be.map((L, Fe) => L = {
|
|
973
973
|
label: (L == null ? void 0 : L.label) ?? "",
|
|
974
974
|
type: (L == null ? void 0 : L.type) ?? "",
|
|
975
975
|
textColor: (L == null ? void 0 : L.textColor) ?? "#000000",
|
|
976
976
|
id: (L == null ? void 0 : L.id) ?? Fe
|
|
977
|
-
}),
|
|
977
|
+
}), S.value = (je = S.value) == null ? void 0 : je.map((L, Fe) => L = {
|
|
978
978
|
label: (L == null ? void 0 : L.label) ?? "",
|
|
979
979
|
type: (L == null ? void 0 : L.type) ?? "",
|
|
980
980
|
background: (L == null ? void 0 : L.background) ?? "var(--ssComponent-primary-color)",
|
|
981
981
|
id: (L == null ? void 0 : L.id) ?? Fe
|
|
982
|
-
}),
|
|
983
|
-
|
|
982
|
+
}), F.value)
|
|
983
|
+
F.value = (kl = F.value) == null ? void 0 : kl.map((L) => {
|
|
984
984
|
t.value++;
|
|
985
985
|
let Fe = L;
|
|
986
986
|
return Fe.id = t.value, Fe;
|
|
987
987
|
});
|
|
988
988
|
else {
|
|
989
989
|
let L = [];
|
|
990
|
-
const Fe = (gl = ca(
|
|
990
|
+
const Fe = (gl = ca(c(i.value))) == null ? void 0 : gl.filter((Oe) => (Oe == null ? void 0 : Oe.prop) !== "operate");
|
|
991
991
|
Fe == null || Fe.forEach((Oe) => {
|
|
992
992
|
t.value++, L.push({
|
|
993
993
|
label: Oe == null ? void 0 : Oe.label,
|
|
@@ -997,11 +997,11 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
997
997
|
id: t.value,
|
|
998
998
|
contents: Oe == null ? void 0 : Oe.options
|
|
999
999
|
});
|
|
1000
|
-
}),
|
|
1000
|
+
}), F.value = L;
|
|
1001
1001
|
}
|
|
1002
1002
|
},
|
|
1003
1003
|
{ deep: !0, immediate: !0 }
|
|
1004
|
-
), (
|
|
1004
|
+
), (k, A) => {
|
|
1005
1005
|
const B = be("svg-icon");
|
|
1006
1006
|
return P(), z("div", Va, [
|
|
1007
1007
|
x("div", Wa, [
|
|
@@ -1019,33 +1019,33 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1019
1019
|
])
|
|
1020
1020
|
]),
|
|
1021
1021
|
x("div", Ga, [
|
|
1022
|
-
(P(!0), z(he, null, ge(i.value, (
|
|
1022
|
+
(P(!0), z(he, null, ge(i.value, (D, K) => (P(), z("div", { key: K }, [
|
|
1023
1023
|
x("div", Ma, [
|
|
1024
|
-
x("div", Za, q(
|
|
1024
|
+
x("div", Za, q(D == null ? void 0 : D.label), 1),
|
|
1025
1025
|
x("div", Ha, [
|
|
1026
1026
|
V(B, {
|
|
1027
1027
|
name: "ChildAdd",
|
|
1028
1028
|
class: "svg-icon-content",
|
|
1029
1029
|
style: { width: "24px", height: "24px" },
|
|
1030
|
-
onClick: (ee) => ue(
|
|
1030
|
+
onClick: (ee) => ue(D)
|
|
1031
1031
|
}, null, 8, ["onClick"]),
|
|
1032
1032
|
V(B, {
|
|
1033
1033
|
name: "ChildFix",
|
|
1034
1034
|
class: "svg-icon-content",
|
|
1035
1035
|
style: { width: "24px", height: "24px" },
|
|
1036
|
-
onClick: (ee) => ye(
|
|
1036
|
+
onClick: (ee) => ye(D)
|
|
1037
1037
|
}, null, 8, ["onClick"]),
|
|
1038
1038
|
V(B, {
|
|
1039
1039
|
name: "ChildDelete",
|
|
1040
1040
|
class: "svg-icon-content",
|
|
1041
1041
|
style: { width: "24px", height: "24px" },
|
|
1042
|
-
onClick: (ee) => Ne(
|
|
1042
|
+
onClick: (ee) => Ne(D)
|
|
1043
1043
|
}, null, 8, ["onClick"])
|
|
1044
1044
|
])
|
|
1045
1045
|
]),
|
|
1046
|
-
|
|
1046
|
+
D != null && D.children && D.children.length > 0 ? (P(), z("div", Ka, [
|
|
1047
1047
|
V(Jl, {
|
|
1048
|
-
tableChildContents:
|
|
1048
|
+
tableChildContents: D == null ? void 0 : D.children,
|
|
1049
1049
|
onDeleteChange: $e,
|
|
1050
1050
|
onFixChange: fe
|
|
1051
1051
|
}, null, 8, ["tableChildContents"])
|
|
@@ -1066,21 +1066,21 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1066
1066
|
])
|
|
1067
1067
|
]),
|
|
1068
1068
|
x("div", Qa, [
|
|
1069
|
-
(P(!0), z(he, null, ge(
|
|
1069
|
+
(P(!0), z(he, null, ge(g.value, (D, K) => (P(), z("div", { key: K }, [
|
|
1070
1070
|
x("div", Xa, [
|
|
1071
|
-
x("div", Ya, q(
|
|
1071
|
+
x("div", Ya, q(D == null ? void 0 : D.label), 1),
|
|
1072
1072
|
x("div", en, [
|
|
1073
1073
|
V(B, {
|
|
1074
1074
|
name: "ChildFix",
|
|
1075
1075
|
style: { width: "24px", height: "24px" },
|
|
1076
1076
|
class: "svg-icon-content",
|
|
1077
|
-
onClick: (ee) => M(
|
|
1077
|
+
onClick: (ee) => M(D)
|
|
1078
1078
|
}, null, 8, ["onClick"]),
|
|
1079
1079
|
V(B, {
|
|
1080
1080
|
name: "ChildDelete",
|
|
1081
1081
|
class: "svg-icon-content",
|
|
1082
1082
|
style: { width: "24px", height: "24px" },
|
|
1083
|
-
onClick: (ee) => te(
|
|
1083
|
+
onClick: (ee) => te(D)
|
|
1084
1084
|
}, null, 8, ["onClick"])
|
|
1085
1085
|
])
|
|
1086
1086
|
])
|
|
@@ -1100,21 +1100,21 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1100
1100
|
])
|
|
1101
1101
|
]),
|
|
1102
1102
|
x("div", an, [
|
|
1103
|
-
(P(!0), z(he, null, ge(
|
|
1103
|
+
(P(!0), z(he, null, ge(S.value, (D, K) => (P(), z("div", { key: K }, [
|
|
1104
1104
|
x("div", nn, [
|
|
1105
|
-
x("div", sn, q(
|
|
1105
|
+
x("div", sn, q(D == null ? void 0 : D.label), 1),
|
|
1106
1106
|
x("div", on, [
|
|
1107
1107
|
V(B, {
|
|
1108
1108
|
name: "ChildFix",
|
|
1109
1109
|
style: { width: "24px", height: "24px" },
|
|
1110
1110
|
class: "svg-icon-content",
|
|
1111
|
-
onClick: (ee) =>
|
|
1111
|
+
onClick: (ee) => N(D)
|
|
1112
1112
|
}, null, 8, ["onClick"]),
|
|
1113
1113
|
V(B, {
|
|
1114
1114
|
name: "ChildDelete",
|
|
1115
1115
|
class: "svg-icon-content",
|
|
1116
1116
|
style: { width: "24px", height: "24px" },
|
|
1117
|
-
onClick: (ee) => G(
|
|
1117
|
+
onClick: (ee) => G(D)
|
|
1118
1118
|
}, null, 8, ["onClick"])
|
|
1119
1119
|
])
|
|
1120
1120
|
])
|
|
@@ -1134,21 +1134,21 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1134
1134
|
])
|
|
1135
1135
|
]),
|
|
1136
1136
|
x("div", tn, [
|
|
1137
|
-
(P(!0), z(he, null, ge(
|
|
1137
|
+
(P(!0), z(he, null, ge(F.value, (D, K) => (P(), z("div", { key: K }, [
|
|
1138
1138
|
x("div", un, [
|
|
1139
|
-
x("div", cn, q(
|
|
1139
|
+
x("div", cn, q(D == null ? void 0 : D.label), 1),
|
|
1140
1140
|
x("div", pn, [
|
|
1141
1141
|
V(B, {
|
|
1142
1142
|
name: "ChildFix",
|
|
1143
1143
|
style: { width: "24px", height: "24px" },
|
|
1144
1144
|
class: "svg-icon-content",
|
|
1145
|
-
onClick: (ee) =>
|
|
1145
|
+
onClick: (ee) => f(D)
|
|
1146
1146
|
}, null, 8, ["onClick"]),
|
|
1147
1147
|
V(B, {
|
|
1148
1148
|
name: "ChildDelete",
|
|
1149
1149
|
class: "svg-icon-content",
|
|
1150
1150
|
style: { width: "24px", height: "24px" },
|
|
1151
|
-
onClick: (ee) => w(
|
|
1151
|
+
onClick: (ee) => w(D)
|
|
1152
1152
|
}, null, 8, ["onClick"])
|
|
1153
1153
|
])
|
|
1154
1154
|
])
|
|
@@ -1161,8 +1161,8 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1161
1161
|
x("div", fn, [
|
|
1162
1162
|
A[9] || (A[9] = x("div", { class: "operate-center-content" }, q("是否分页"), -1)),
|
|
1163
1163
|
V(Fl, {
|
|
1164
|
-
modelValue:
|
|
1165
|
-
"onUpdate:modelValue": A[0] || (A[0] = (
|
|
1164
|
+
modelValue: y.value,
|
|
1165
|
+
"onUpdate:modelValue": A[0] || (A[0] = (D) => y.value = D)
|
|
1166
1166
|
}, null, 8, ["modelValue"])
|
|
1167
1167
|
])
|
|
1168
1168
|
])
|
|
@@ -1204,8 +1204,8 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1204
1204
|
default: ne(() => [
|
|
1205
1205
|
x("div", mn, [
|
|
1206
1206
|
(P(), ve(Te, {
|
|
1207
|
-
rowContents:
|
|
1208
|
-
key:
|
|
1207
|
+
rowContents: d.value,
|
|
1208
|
+
key: d.value,
|
|
1209
1209
|
isEnableWrap: !0,
|
|
1210
1210
|
onChange: J
|
|
1211
1211
|
}, null, 8, ["rowContents"]))
|
|
@@ -1226,7 +1226,7 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1226
1226
|
_: 1
|
|
1227
1227
|
}, 8, ["visible"]),
|
|
1228
1228
|
V(Ie, {
|
|
1229
|
-
visible:
|
|
1229
|
+
visible: C.value,
|
|
1230
1230
|
onBeforeDestroy: Y,
|
|
1231
1231
|
width: 840
|
|
1232
1232
|
}, {
|
|
@@ -1236,7 +1236,7 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1236
1236
|
rowContents: o.value,
|
|
1237
1237
|
key: o.value,
|
|
1238
1238
|
isEnableWrap: !0,
|
|
1239
|
-
onChange:
|
|
1239
|
+
onChange: E
|
|
1240
1240
|
}, null, 8, ["rowContents"]))
|
|
1241
1241
|
])
|
|
1242
1242
|
]),
|
|
@@ -1300,26 +1300,26 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1300
1300
|
},
|
|
1301
1301
|
emits: ["change"],
|
|
1302
1302
|
setup(a, { emit: s }) {
|
|
1303
|
-
const l = a, e = s, n =
|
|
1304
|
-
var m,
|
|
1303
|
+
const l = a, e = s, n = j(!1), r = j([]), p = j([]), i = j(!1), _ = j([]), v = j([]), y = j(""), T = j(!1), $ = j(0), I = j([]), g = j([]), S = async (f) => {
|
|
1304
|
+
var m, N, G, X, E, Y;
|
|
1305
1305
|
n.value = !0;
|
|
1306
1306
|
let w = [];
|
|
1307
|
-
const O = await ((G = (
|
|
1307
|
+
const O = await ((G = (N = (m = xe) == null ? void 0 : m.find((M) => (M == null ? void 0 : M.key) === ((f == null ? void 0 : f.type) === "" ? "Input" : f == null ? void 0 : f.type))) == null ? void 0 : N.value) == null ? void 0 : G.value) ?? ((E = (X = xe) == null ? void 0 : X.find((M) => (M == null ? void 0 : M.key) === ((f == null ? void 0 : f.type) === "" ? "Input" : f == null ? void 0 : f.type))) == null ? void 0 : E.value);
|
|
1308
1308
|
if (O == null || O.forEach((M) => {
|
|
1309
1309
|
$.value++, w.push({
|
|
1310
1310
|
label: M == null ? void 0 : M.label,
|
|
1311
1311
|
name: M == null ? void 0 : M.label,
|
|
1312
1312
|
type: M.type,
|
|
1313
|
-
value: (M == null ? void 0 : M.label) === "类型" &&
|
|
1313
|
+
value: (M == null ? void 0 : M.label) === "类型" && f[M.key] === "" ? "Input" : f[M.key],
|
|
1314
1314
|
id: $.value,
|
|
1315
1315
|
contents: M == null ? void 0 : M.options
|
|
1316
1316
|
});
|
|
1317
|
-
}),
|
|
1318
|
-
const M = await ul(
|
|
1317
|
+
}), f != null && f.menuSelect && ((Y = f == null ? void 0 : f.menuSelect) == null ? void 0 : Y.length) > 0) {
|
|
1318
|
+
const M = await ul(f == null ? void 0 : f.menuSelect);
|
|
1319
1319
|
w = w == null ? void 0 : w.map((te) => ((te == null ? void 0 : te.name) === "组信息选项" && (te.contents = M), te));
|
|
1320
1320
|
}
|
|
1321
|
-
|
|
1322
|
-
},
|
|
1321
|
+
y.value = f == null ? void 0 : f.id, r.value = await qe(Ye(w)), p.value = await qe(Ye(w));
|
|
1322
|
+
}, d = (f) => {
|
|
1323
1323
|
var O;
|
|
1324
1324
|
i.value = !0;
|
|
1325
1325
|
let w = [];
|
|
@@ -1328,45 +1328,45 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1328
1328
|
label: m == null ? void 0 : m.label,
|
|
1329
1329
|
name: m == null ? void 0 : m.label,
|
|
1330
1330
|
type: m.type,
|
|
1331
|
-
value: (m == null ? void 0 : m.label) === "类型" &&
|
|
1331
|
+
value: (m == null ? void 0 : m.label) === "类型" && f[m.key] === "" ? "normal" : f[m.key],
|
|
1332
1332
|
id: $.value,
|
|
1333
1333
|
contents: m == null ? void 0 : m.options
|
|
1334
1334
|
});
|
|
1335
|
-
}), I.value = w,
|
|
1335
|
+
}), I.value = w, g.value = w, y.value = f == null ? void 0 : f.id;
|
|
1336
1336
|
};
|
|
1337
1337
|
we(
|
|
1338
1338
|
() => T.value,
|
|
1339
1339
|
() => {
|
|
1340
1340
|
var w, O;
|
|
1341
|
-
let
|
|
1342
|
-
(w =
|
|
1341
|
+
let f = c(l.originalItemContents);
|
|
1342
|
+
(w = c(l.originalItemContents)) != null && w.find((m) => (m == null ? void 0 : m.key) === "enableWrap") ? f = (O = c(l.originalItemContents)) == null ? void 0 : O.map((m) => ((m == null ? void 0 : m.key) === "enableWrap" && (m.contents = !T.value), m)) : f.push({
|
|
1343
1343
|
key: "enableWrap",
|
|
1344
1344
|
contents: !T.value
|
|
1345
|
-
}), e("change",
|
|
1345
|
+
}), e("change", f);
|
|
1346
1346
|
},
|
|
1347
1347
|
{ deep: !0 }
|
|
1348
1348
|
);
|
|
1349
|
-
const
|
|
1350
|
-
var O, m,
|
|
1351
|
-
I.value =
|
|
1352
|
-
let
|
|
1353
|
-
if (
|
|
1349
|
+
const h = () => {
|
|
1350
|
+
var O, m, N, G, X;
|
|
1351
|
+
I.value = g.value;
|
|
1352
|
+
let f = {};
|
|
1353
|
+
if (y.value !== "" ? f.id = y.value : ($.value++, f.id = "id" + $.value), (O = I.value) == null || O.forEach((E) => {
|
|
1354
1354
|
var M;
|
|
1355
|
-
const Y = (M = cl) == null ? void 0 : M.find((te) => (te == null ? void 0 : te.label) === (
|
|
1356
|
-
Y && (
|
|
1357
|
-
}), (m = _.value) != null && m.find((
|
|
1358
|
-
_.value = (
|
|
1355
|
+
const Y = (M = cl) == null ? void 0 : M.find((te) => (te == null ? void 0 : te.label) === (E == null ? void 0 : E.label));
|
|
1356
|
+
Y && (f[Y.key] = E.value);
|
|
1357
|
+
}), (m = _.value) != null && m.find((E) => E.id === f.id))
|
|
1358
|
+
_.value = (N = _.value) == null ? void 0 : N.map((E) => (E.id === f.id && (E = f), E));
|
|
1359
1359
|
else {
|
|
1360
|
-
let
|
|
1361
|
-
_.value || (_.value = []),
|
|
1360
|
+
let E = c(_.value);
|
|
1361
|
+
_.value || (_.value = []), E.push(f), _.value = E;
|
|
1362
1362
|
}
|
|
1363
|
-
i.value = !1,
|
|
1364
|
-
let w =
|
|
1365
|
-
(G =
|
|
1363
|
+
i.value = !1, y.value = "";
|
|
1364
|
+
let w = c(l.originalItemContents);
|
|
1365
|
+
(G = c(l.originalItemContents)) != null && G.find((E) => (E == null ? void 0 : E.key) === "formButton") ? w = (X = c(l.originalItemContents)) == null ? void 0 : X.map((E) => ((E == null ? void 0 : E.key) === "formButton" && (E.contents = _.value), E)) : w.push({
|
|
1366
1366
|
key: "formButton",
|
|
1367
1367
|
contents: _.value
|
|
1368
1368
|
}), e("change", w);
|
|
1369
|
-
},
|
|
1369
|
+
}, C = (f) => {
|
|
1370
1370
|
We.confirm("是否确认要删除", "", {
|
|
1371
1371
|
confirmButtonText: "确认",
|
|
1372
1372
|
cancelButtonText: "取消",
|
|
@@ -1374,14 +1374,14 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1374
1374
|
}).then(
|
|
1375
1375
|
() => {
|
|
1376
1376
|
var w, O;
|
|
1377
|
-
v.value = (w =
|
|
1377
|
+
v.value = (w = c(v.value)) == null ? void 0 : w.filter((m) => (m == null ? void 0 : m.id) !== (f == null ? void 0 : f.id)), e("change", (O = c(l.originalItemContents)) == null ? void 0 : O.map((m) => ((m == null ? void 0 : m.key) === "formContent" && (m.contents = v.value), m))), Ve({
|
|
1378
1378
|
type: "success",
|
|
1379
1379
|
message: "删除成功"
|
|
1380
1380
|
});
|
|
1381
1381
|
}
|
|
1382
1382
|
).catch(() => {
|
|
1383
1383
|
});
|
|
1384
|
-
}, o = (
|
|
1384
|
+
}, o = (f) => {
|
|
1385
1385
|
We.confirm("是否确认要删除", "", {
|
|
1386
1386
|
confirmButtonText: "确认",
|
|
1387
1387
|
cancelButtonText: "取消",
|
|
@@ -1389,19 +1389,19 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1389
1389
|
}).then(
|
|
1390
1390
|
() => {
|
|
1391
1391
|
var w, O;
|
|
1392
|
-
_.value = (w =
|
|
1392
|
+
_.value = (w = c(_.value)) == null ? void 0 : w.filter((m) => (m == null ? void 0 : m.id) !== (f == null ? void 0 : f.id)), e("change", (O = c(l.originalItemContents)) == null ? void 0 : O.map((m) => ((m == null ? void 0 : m.key) === "formButton" && (m.contents = _.value), m))), Ve({
|
|
1393
1393
|
type: "success",
|
|
1394
1394
|
message: "删除成功"
|
|
1395
1395
|
});
|
|
1396
1396
|
}
|
|
1397
1397
|
).catch(() => {
|
|
1398
1398
|
});
|
|
1399
|
-
},
|
|
1399
|
+
}, u = () => {
|
|
1400
1400
|
var w;
|
|
1401
1401
|
i.value = !0;
|
|
1402
|
-
let
|
|
1402
|
+
let f = [];
|
|
1403
1403
|
(w = cl) == null || w.forEach((O) => {
|
|
1404
|
-
$.value++,
|
|
1404
|
+
$.value++, f.push({
|
|
1405
1405
|
label: O == null ? void 0 : O.label,
|
|
1406
1406
|
name: O == null ? void 0 : O.label,
|
|
1407
1407
|
type: O.type,
|
|
@@ -1409,102 +1409,102 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1409
1409
|
id: $.value,
|
|
1410
1410
|
contents: O == null ? void 0 : O.options
|
|
1411
1411
|
});
|
|
1412
|
-
}), I.value =
|
|
1412
|
+
}), I.value = f, g.value = f;
|
|
1413
1413
|
}, t = () => {
|
|
1414
1414
|
var w, O, m;
|
|
1415
1415
|
n.value = !0;
|
|
1416
|
-
let
|
|
1417
|
-
(m = (O = (w = xe) == null ? void 0 : w.find((
|
|
1418
|
-
$.value++,
|
|
1419
|
-
label:
|
|
1420
|
-
name:
|
|
1421
|
-
type:
|
|
1422
|
-
value: (
|
|
1416
|
+
let f = [];
|
|
1417
|
+
(m = (O = (w = xe) == null ? void 0 : w.find((N) => (N == null ? void 0 : N.key) === "Input")) == null ? void 0 : O.value) == null || m.forEach((N) => {
|
|
1418
|
+
$.value++, f.push({
|
|
1419
|
+
label: N == null ? void 0 : N.label,
|
|
1420
|
+
name: N == null ? void 0 : N.label,
|
|
1421
|
+
type: N.type,
|
|
1422
|
+
value: (N == null ? void 0 : N.label) === "类型" ? "Input" : "",
|
|
1423
1423
|
id: $.value,
|
|
1424
|
-
contents:
|
|
1424
|
+
contents: N == null ? void 0 : N.options
|
|
1425
1425
|
});
|
|
1426
|
-
}), r.value =
|
|
1427
|
-
}, b = (
|
|
1428
|
-
let w =
|
|
1429
|
-
w = w == null ? void 0 : w.map((O) => (O.value =
|
|
1430
|
-
},
|
|
1431
|
-
var w, O, m,
|
|
1432
|
-
if ((
|
|
1426
|
+
}), r.value = f, p.value = f;
|
|
1427
|
+
}, b = (f) => {
|
|
1428
|
+
let w = c(g.value);
|
|
1429
|
+
w = w == null ? void 0 : w.map((O) => (O.value = f == null ? void 0 : f[O.name], O)), g.value = w;
|
|
1430
|
+
}, U = async (f) => {
|
|
1431
|
+
var w, O, m, N, G, X, E, Y, M, te, me, _e;
|
|
1432
|
+
if ((f == null ? void 0 : f.类型) !== ((O = (w = p.value) == null ? void 0 : w.find((J) => (J == null ? void 0 : J.label) === "类型")) == null ? void 0 : O.value)) {
|
|
1433
1433
|
let J = [];
|
|
1434
|
-
const ae = await ((G = (
|
|
1434
|
+
const ae = await ((G = (N = (m = xe) == null ? void 0 : m.find((H) => (H == null ? void 0 : H.key) === ((f == null ? void 0 : f.类型) === "" ? "Input" : f == null ? void 0 : f.类型))) == null ? void 0 : N.value) == null ? void 0 : G.value) ? await ((te = (M = (Y = xe) == null ? void 0 : Y.find((H) => (H == null ? void 0 : H.key) === ((f == null ? void 0 : f.类型) === "" ? "Input" : f == null ? void 0 : f.类型))) == null ? void 0 : M.value) == null ? void 0 : te.value) : (E = (X = xe) == null ? void 0 : X.find((H) => (H == null ? void 0 : H.key) === ((f == null ? void 0 : f.类型) === "" ? "Input" : f == null ? void 0 : f.类型))) == null ? void 0 : E.value;
|
|
1435
1435
|
if (ae == null || ae.forEach((H) => {
|
|
1436
1436
|
$.value++, J.push({
|
|
1437
1437
|
label: H == null ? void 0 : H.label,
|
|
1438
1438
|
name: H == null ? void 0 : H.label,
|
|
1439
1439
|
type: H.type,
|
|
1440
|
-
value: (
|
|
1440
|
+
value: (f == null ? void 0 : f[H.label]) ?? "",
|
|
1441
1441
|
id: $.value,
|
|
1442
1442
|
contents: H == null ? void 0 : H.options
|
|
1443
1443
|
});
|
|
1444
|
-
}),
|
|
1445
|
-
const H = await ul(
|
|
1444
|
+
}), f != null && f.菜单选项 && ((me = f == null ? void 0 : f.菜单选项) == null ? void 0 : me.length) > 0) {
|
|
1445
|
+
const H = await ul(f == null ? void 0 : f.菜单选项);
|
|
1446
1446
|
J = J == null ? void 0 : J.map((ue) => ((ue == null ? void 0 : ue.name) === "组信息选项" && (ue.contents = H), ue));
|
|
1447
1447
|
}
|
|
1448
|
-
p.value = await qe(
|
|
1448
|
+
p.value = await qe(c(J)), r.value = await qe(c(J));
|
|
1449
1449
|
} else {
|
|
1450
|
-
let J =
|
|
1451
|
-
if (J = J == null ? void 0 : J.map((ae) => (ae.value =
|
|
1452
|
-
const ae = await ul(
|
|
1450
|
+
let J = c(p.value);
|
|
1451
|
+
if (J = J == null ? void 0 : J.map((ae) => (ae.value = f == null ? void 0 : f[ae.name], ae)), f != null && f.菜单选项 && ((_e = f == null ? void 0 : f.菜单选项) == null ? void 0 : _e.length) > 0) {
|
|
1452
|
+
const ae = await ul(f == null ? void 0 : f.菜单选项);
|
|
1453
1453
|
J = J == null ? void 0 : J.map((H) => ((H == null ? void 0 : H.name) === "组信息选项" && (H.contents = ae), H));
|
|
1454
1454
|
}
|
|
1455
|
-
J = Ye(J), p.value = await qe(
|
|
1455
|
+
J = Ye(J), p.value = await qe(c(J));
|
|
1456
1456
|
}
|
|
1457
|
-
},
|
|
1458
|
-
|
|
1459
|
-
}, R = async (
|
|
1457
|
+
}, F = (f) => {
|
|
1458
|
+
f || (r.value = p.value);
|
|
1459
|
+
}, R = async (f) => {
|
|
1460
1460
|
}, se = async () => {
|
|
1461
|
-
var m,
|
|
1461
|
+
var m, N, G, X, E, Y, M, te, me, _e;
|
|
1462
1462
|
r.value = p.value;
|
|
1463
|
-
let
|
|
1464
|
-
|
|
1465
|
-
let w = await ((G = (
|
|
1463
|
+
let f = {};
|
|
1464
|
+
y.value !== "" ? f.id = y.value : ($.value++, f.id = "id" + $.value);
|
|
1465
|
+
let w = await ((G = (N = (m = xe) == null ? void 0 : m.find((J) => {
|
|
1466
1466
|
var ae, H;
|
|
1467
1467
|
return (J == null ? void 0 : J.key) === (((H = (ae = r.value) == null ? void 0 : ae.find((ue) => (ue == null ? void 0 : ue.label) === "类型")) == null ? void 0 : H.value) ?? "label");
|
|
1468
|
-
})) == null ? void 0 :
|
|
1468
|
+
})) == null ? void 0 : N.value) == null ? void 0 : G.value) ?? ((E = (X = xe) == null ? void 0 : X.find((J) => {
|
|
1469
1469
|
var ae, H;
|
|
1470
1470
|
return (J == null ? void 0 : J.key) === (((H = (ae = r.value) == null ? void 0 : ae.find((ue) => (ue == null ? void 0 : ue.label) === "类型")) == null ? void 0 : H.value) ?? "label");
|
|
1471
|
-
})) == null ? void 0 :
|
|
1471
|
+
})) == null ? void 0 : E.value);
|
|
1472
1472
|
if ((Y = r.value) == null || Y.forEach((J) => {
|
|
1473
1473
|
const ae = w == null ? void 0 : w.find((H) => (H == null ? void 0 : H.label) === (J == null ? void 0 : J.label));
|
|
1474
|
-
ae && (
|
|
1475
|
-
}),
|
|
1476
|
-
v.value = (te = v.value) == null ? void 0 : te.map((J) => (J.id ===
|
|
1474
|
+
ae && (f[ae.key] = J.value);
|
|
1475
|
+
}), f.width = 1, f.key = f == null ? void 0 : f.label, (M = v.value) != null && M.find((J) => J.id === f.id))
|
|
1476
|
+
v.value = (te = v.value) == null ? void 0 : te.map((J) => (J.id === f.id && (J = f), J));
|
|
1477
1477
|
else {
|
|
1478
|
-
let J =
|
|
1479
|
-
J.push(
|
|
1478
|
+
let J = c(v.value);
|
|
1479
|
+
J.push(f), v.value = J;
|
|
1480
1480
|
}
|
|
1481
|
-
v.value = v.value.map(({ id: J, ...ae }) => ae), n.value = !1,
|
|
1482
|
-
let O =
|
|
1483
|
-
(me =
|
|
1481
|
+
v.value = v.value.map(({ id: J, ...ae }) => ae), n.value = !1, y.value = "";
|
|
1482
|
+
let O = c(l.originalItemContents);
|
|
1483
|
+
(me = c(l.originalItemContents)) != null && me.find((J) => (J == null ? void 0 : J.key) === "formContent") ? O = (_e = c(l.originalItemContents)) == null ? void 0 : _e.map((J) => ((J == null ? void 0 : J.key) === "formContent" && (J.contents = v.value), J)) : O.push({
|
|
1484
1484
|
key: "formContent",
|
|
1485
1485
|
contents: v.value
|
|
1486
1486
|
}), e("change", O);
|
|
1487
1487
|
}, oe = () => {
|
|
1488
|
-
n.value = !1, i.value = !1,
|
|
1488
|
+
n.value = !1, i.value = !1, y.value = "", p.value = [], g.value = [];
|
|
1489
1489
|
};
|
|
1490
1490
|
return we(
|
|
1491
1491
|
() => l.originalItemContents,
|
|
1492
1492
|
() => {
|
|
1493
|
-
var w, O, m,
|
|
1493
|
+
var w, O, m, N, G, X;
|
|
1494
1494
|
if (!l.originalItemContents || l.originalItemContents.length === 0) return;
|
|
1495
|
-
const
|
|
1496
|
-
v.value = ((w =
|
|
1497
|
-
let M =
|
|
1498
|
-
return M.id = (
|
|
1499
|
-
}), v.value = Ye(v.value), _.value = (X = _.value) == null ? void 0 : X.map((
|
|
1500
|
-
label: (
|
|
1501
|
-
type: (
|
|
1502
|
-
background: (
|
|
1503
|
-
id:
|
|
1495
|
+
const f = c(l.originalItemContents);
|
|
1496
|
+
v.value = ((w = f == null ? void 0 : f.find((E) => (E == null ? void 0 : E.key) === "formContent")) == null ? void 0 : w.contents) ?? [], _.value = ((O = f == null ? void 0 : f.find((E) => (E == null ? void 0 : E.key) === "formButton")) == null ? void 0 : O.contents) ?? [], T.value = (m = f == null ? void 0 : f.find((E) => (E == null ? void 0 : E.key) === "enableWrap")) != null && m.contents ? !((N = f == null ? void 0 : f.find((E) => (E == null ? void 0 : E.key) === "enableWrap")) != null && N.contents) : !0, v.value = (G = c(v.value)) == null ? void 0 : G.map((E, Y) => {
|
|
1497
|
+
let M = E;
|
|
1498
|
+
return M.id = (E == null ? void 0 : E.id) ?? Y, E != null && E.label || (E.label = (E == null ? void 0 : E.key) ?? (E == null ? void 0 : E.label) ?? ""), E != null && E.type || (E.type = (E == null ? void 0 : E.type) ?? ""), E.contents = (E == null ? void 0 : E.options) ?? "", M;
|
|
1499
|
+
}), v.value = Ye(v.value), _.value = (X = _.value) == null ? void 0 : X.map((E, Y) => E = {
|
|
1500
|
+
label: (E == null ? void 0 : E.label) ?? "",
|
|
1501
|
+
type: (E == null ? void 0 : E.type) ?? "",
|
|
1502
|
+
background: (E == null ? void 0 : E.background) ?? "var(--ssComponent-primary-color)",
|
|
1503
|
+
id: Y
|
|
1504
1504
|
});
|
|
1505
1505
|
},
|
|
1506
1506
|
{ deep: !0, immediate: !0 }
|
|
1507
|
-
), (
|
|
1507
|
+
), (f, w) => {
|
|
1508
1508
|
const O = be("svg-icon");
|
|
1509
1509
|
return P(), z("div", kn, [
|
|
1510
1510
|
x("div", Cn, [
|
|
@@ -1522,7 +1522,7 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1522
1522
|
])
|
|
1523
1523
|
]),
|
|
1524
1524
|
x("div", $n, [
|
|
1525
|
-
(P(!0), z(he, null, ge(v.value, (m,
|
|
1525
|
+
(P(!0), z(he, null, ge(v.value, (m, N) => (P(), z("div", { key: N }, [
|
|
1526
1526
|
x("div", xn, [
|
|
1527
1527
|
x("div", null, q(m.label), 1),
|
|
1528
1528
|
x("div", wn, [
|
|
@@ -1530,13 +1530,13 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1530
1530
|
name: "ChildFix",
|
|
1531
1531
|
class: "svg-icon-content",
|
|
1532
1532
|
style: { width: "24px", height: "24px" },
|
|
1533
|
-
onClick: (G) =>
|
|
1533
|
+
onClick: (G) => S(m)
|
|
1534
1534
|
}, null, 8, ["onClick"]),
|
|
1535
1535
|
V(O, {
|
|
1536
1536
|
name: "ChildDelete",
|
|
1537
1537
|
class: "svg-icon-content",
|
|
1538
1538
|
style: { width: "24px", height: "24px" },
|
|
1539
|
-
onClick: (G) =>
|
|
1539
|
+
onClick: (G) => C(m)
|
|
1540
1540
|
}, null, 8, ["onClick"])
|
|
1541
1541
|
])
|
|
1542
1542
|
])
|
|
@@ -1546,7 +1546,7 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1546
1546
|
w[4] || (w[4] = x("div", null, q("表单按钮"), -1)),
|
|
1547
1547
|
x("div", {
|
|
1548
1548
|
class: "icon-content",
|
|
1549
|
-
onClick:
|
|
1549
|
+
onClick: u
|
|
1550
1550
|
}, [
|
|
1551
1551
|
V(O, {
|
|
1552
1552
|
name: "Plus",
|
|
@@ -1556,7 +1556,7 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1556
1556
|
])
|
|
1557
1557
|
]),
|
|
1558
1558
|
x("div", Tn, [
|
|
1559
|
-
(P(!0), z(he, null, ge(_.value, (m,
|
|
1559
|
+
(P(!0), z(he, null, ge(_.value, (m, N) => (P(), z("div", { key: N }, [
|
|
1560
1560
|
x("div", In, [
|
|
1561
1561
|
x("div", null, q(m.label), 1),
|
|
1562
1562
|
x("div", Dn, [
|
|
@@ -1564,7 +1564,7 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1564
1564
|
name: "ChildFix",
|
|
1565
1565
|
class: "svg-icon-content",
|
|
1566
1566
|
style: { width: "24px", height: "24px" },
|
|
1567
|
-
onClick: (G) =>
|
|
1567
|
+
onClick: (G) => d(m)
|
|
1568
1568
|
}, null, 8, ["onClick"]),
|
|
1569
1569
|
V(O, {
|
|
1570
1570
|
name: "ChildDelete",
|
|
@@ -1598,8 +1598,8 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1598
1598
|
rowContents: r.value,
|
|
1599
1599
|
key: r.value,
|
|
1600
1600
|
isEnableWrap: !0,
|
|
1601
|
-
onChange:
|
|
1602
|
-
onChangeVisible:
|
|
1601
|
+
onChange: U,
|
|
1602
|
+
onChangeVisible: F,
|
|
1603
1603
|
onBlurChange: R
|
|
1604
1604
|
}, null, 8, ["rowContents"]))
|
|
1605
1605
|
])
|
|
@@ -1641,7 +1641,7 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1641
1641
|
}, q("取消")),
|
|
1642
1642
|
x("div", {
|
|
1643
1643
|
class: "ok-button button",
|
|
1644
|
-
onClick:
|
|
1644
|
+
onClick: h
|
|
1645
1645
|
}, q("确认"))
|
|
1646
1646
|
])
|
|
1647
1647
|
]),
|
|
@@ -1650,7 +1650,7 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1650
1650
|
]);
|
|
1651
1651
|
};
|
|
1652
1652
|
}
|
|
1653
|
-
}, xl = /* @__PURE__ */ Ce(Fn, [["__scopeId", "data-v-
|
|
1653
|
+
}, xl = /* @__PURE__ */ Ce(Fn, [["__scopeId", "data-v-36936e3f"]]), Nn = { class: "step-module content" }, Sn = { class: "module-data" }, Ln = { class: "step-module layout" }, jn = { class: "form-content" }, Un = /* @__PURE__ */ Me({
|
|
1654
1654
|
__name: "operate",
|
|
1655
1655
|
props: {
|
|
1656
1656
|
itemContents: {
|
|
@@ -1664,7 +1664,7 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1664
1664
|
},
|
|
1665
1665
|
emits: ["change"],
|
|
1666
1666
|
setup(a, { emit: s }) {
|
|
1667
|
-
const l = a, e = s, n =
|
|
1667
|
+
const l = a, e = s, n = j([
|
|
1668
1668
|
{
|
|
1669
1669
|
label: "方向:",
|
|
1670
1670
|
prop: "direction",
|
|
@@ -1728,7 +1728,7 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1728
1728
|
],
|
|
1729
1729
|
value: !1
|
|
1730
1730
|
}
|
|
1731
|
-
]), r =
|
|
1731
|
+
]), r = j([
|
|
1732
1732
|
{
|
|
1733
1733
|
label: "",
|
|
1734
1734
|
prop: "index",
|
|
@@ -1748,7 +1748,7 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1748
1748
|
type: "input",
|
|
1749
1749
|
value: ""
|
|
1750
1750
|
}
|
|
1751
|
-
]), p =
|
|
1751
|
+
]), p = j([
|
|
1752
1752
|
{
|
|
1753
1753
|
label: "取消",
|
|
1754
1754
|
background: "#c0c4cc"
|
|
@@ -1761,98 +1761,98 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1761
1761
|
visible: !1,
|
|
1762
1762
|
width: "40%",
|
|
1763
1763
|
title: "步骤条"
|
|
1764
|
-
}), _ =
|
|
1765
|
-
var
|
|
1766
|
-
v.value =
|
|
1767
|
-
}, $ = (
|
|
1768
|
-
var
|
|
1769
|
-
switch (
|
|
1764
|
+
}), _ = j("create"), v = j({}), y = j([]), T = (d) => {
|
|
1765
|
+
var h;
|
|
1766
|
+
v.value = d, e("change", (h = g()) == null ? void 0 : h.compData);
|
|
1767
|
+
}, $ = (d, h) => {
|
|
1768
|
+
var C, o;
|
|
1769
|
+
switch (d) {
|
|
1770
1770
|
case "create":
|
|
1771
|
-
(
|
|
1772
|
-
|
|
1771
|
+
(C = r.value) == null || C.forEach((u) => {
|
|
1772
|
+
u.value = "";
|
|
1773
1773
|
}), _.value = "create", i.visible = !0;
|
|
1774
1774
|
break;
|
|
1775
1775
|
case "update":
|
|
1776
|
-
(o = r.value) == null || o.forEach((
|
|
1777
|
-
|
|
1776
|
+
(o = r.value) == null || o.forEach((u) => {
|
|
1777
|
+
u.value = h[u == null ? void 0 : u.prop];
|
|
1778
1778
|
}), _.value = "update", i.visible = !0;
|
|
1779
1779
|
break;
|
|
1780
1780
|
case "delete":
|
|
1781
|
-
|
|
1781
|
+
y.value.splice(h, 1), _.value = "delete";
|
|
1782
1782
|
break;
|
|
1783
1783
|
}
|
|
1784
|
-
}, I = (
|
|
1785
|
-
var
|
|
1786
|
-
if ((
|
|
1787
|
-
const
|
|
1788
|
-
switch (Object.keys(
|
|
1789
|
-
|
|
1784
|
+
}, I = (d) => {
|
|
1785
|
+
var h, C, o;
|
|
1786
|
+
if ((d == null ? void 0 : d.buttonName) === "确认") {
|
|
1787
|
+
const u = c(d == null ? void 0 : d.content);
|
|
1788
|
+
switch (Object.keys(u).forEach((t) => {
|
|
1789
|
+
u[t] === "" && delete u[t];
|
|
1790
1790
|
}), _.value) {
|
|
1791
1791
|
case "create":
|
|
1792
|
-
|
|
1793
|
-
...
|
|
1794
|
-
index: ((
|
|
1792
|
+
y.value.push({
|
|
1793
|
+
...u,
|
|
1794
|
+
index: ((h = y.value) == null ? void 0 : h.length) + 1
|
|
1795
1795
|
});
|
|
1796
1796
|
break;
|
|
1797
1797
|
case "update":
|
|
1798
|
-
|
|
1798
|
+
y.value = (C = y.value) == null ? void 0 : C.map((t) => t.index === (u == null ? void 0 : u.index) ? {
|
|
1799
1799
|
...t,
|
|
1800
|
-
title:
|
|
1801
|
-
description:
|
|
1800
|
+
title: u == null ? void 0 : u.title,
|
|
1801
|
+
description: u == null ? void 0 : u.description
|
|
1802
1802
|
} : t);
|
|
1803
1803
|
break;
|
|
1804
1804
|
}
|
|
1805
|
-
e("change", (o =
|
|
1805
|
+
e("change", (o = g()) == null ? void 0 : o.compData), i.visible = !1;
|
|
1806
1806
|
} else
|
|
1807
1807
|
i.visible = !1;
|
|
1808
|
-
},
|
|
1808
|
+
}, g = () => ({
|
|
1809
1809
|
comp: "Step",
|
|
1810
1810
|
compData: [
|
|
1811
1811
|
{
|
|
1812
1812
|
key: "stepList",
|
|
1813
|
-
contents:
|
|
1813
|
+
contents: y.value
|
|
1814
1814
|
},
|
|
1815
1815
|
{
|
|
1816
1816
|
key: "stepConfig",
|
|
1817
1817
|
contents: v.value
|
|
1818
1818
|
}
|
|
1819
1819
|
]
|
|
1820
|
-
}),
|
|
1820
|
+
}), S = () => {
|
|
1821
1821
|
i.visible = !1;
|
|
1822
1822
|
};
|
|
1823
|
-
return we(() => l == null ? void 0 : l.itemContents, (
|
|
1824
|
-
var
|
|
1825
|
-
|
|
1826
|
-
}, { immediate: !0 }), (
|
|
1827
|
-
const
|
|
1823
|
+
return we(() => l == null ? void 0 : l.itemContents, (d) => {
|
|
1824
|
+
var h, C;
|
|
1825
|
+
d && (v.value = ((h = d == null ? void 0 : d.find((o) => o.key === "stepConfig")) == null ? void 0 : h.contents) ?? {}, y.value = ((C = d == null ? void 0 : d.find((o) => o.key === "stepList")) == null ? void 0 : C.contents) ?? []);
|
|
1826
|
+
}, { immediate: !0 }), (d, h) => {
|
|
1827
|
+
const C = be("svg-icon"), o = be("el-button");
|
|
1828
1828
|
return P(), z(he, null, [
|
|
1829
1829
|
x("div", null, [
|
|
1830
1830
|
x("div", Nn, [
|
|
1831
|
-
|
|
1831
|
+
h[2] || (h[2] = x("h4", { class: "module-title" }, "内容", -1)),
|
|
1832
1832
|
x("div", {
|
|
1833
1833
|
class: "module-icon",
|
|
1834
|
-
onClick:
|
|
1834
|
+
onClick: h[0] || (h[0] = (u) => $("create"))
|
|
1835
1835
|
}, [
|
|
1836
|
-
V(
|
|
1836
|
+
V(C, {
|
|
1837
1837
|
name: "Plus",
|
|
1838
1838
|
class: "icon-size"
|
|
1839
1839
|
}),
|
|
1840
|
-
|
|
1840
|
+
h[1] || (h[1] = x("div", null, "新增", -1))
|
|
1841
1841
|
])
|
|
1842
1842
|
]),
|
|
1843
1843
|
x("div", Sn, [
|
|
1844
|
-
(P(!0), z(he, null, ge(
|
|
1844
|
+
(P(!0), z(he, null, ge(y.value, (u, t) => (P(), z("div", {
|
|
1845
1845
|
class: "module-data-item",
|
|
1846
1846
|
key: t
|
|
1847
1847
|
}, [
|
|
1848
|
-
x("span", null, q(
|
|
1848
|
+
x("span", null, q(u == null ? void 0 : u.title), 1),
|
|
1849
1849
|
x("div", null, [
|
|
1850
1850
|
V(o, {
|
|
1851
1851
|
type: "primary",
|
|
1852
1852
|
size: "small",
|
|
1853
|
-
onClick: (b) => $("update", { ...
|
|
1853
|
+
onClick: (b) => $("update", { ...u, index: t + 1 })
|
|
1854
1854
|
}, {
|
|
1855
|
-
default: ne(() =>
|
|
1855
|
+
default: ne(() => h[3] || (h[3] = [
|
|
1856
1856
|
ze("修改")
|
|
1857
1857
|
])),
|
|
1858
1858
|
_: 2,
|
|
@@ -1863,7 +1863,7 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1863
1863
|
size: "small",
|
|
1864
1864
|
onClick: (b) => $("delete", t)
|
|
1865
1865
|
}, {
|
|
1866
|
-
default: ne(() =>
|
|
1866
|
+
default: ne(() => h[4] || (h[4] = [
|
|
1867
1867
|
ze("删除")
|
|
1868
1868
|
])),
|
|
1869
1869
|
_: 2,
|
|
@@ -1873,7 +1873,7 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1873
1873
|
]))), 128))
|
|
1874
1874
|
]),
|
|
1875
1875
|
x("div", Ln, [
|
|
1876
|
-
|
|
1876
|
+
h[5] || (h[5] = x("div", { class: "module-title" }, "布局", -1)),
|
|
1877
1877
|
V(Te, {
|
|
1878
1878
|
rowContents: n.value,
|
|
1879
1879
|
onChange: T
|
|
@@ -1883,7 +1883,7 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1883
1883
|
V(Ie, {
|
|
1884
1884
|
visible: i.visible,
|
|
1885
1885
|
title: i.title,
|
|
1886
|
-
onBeforeDestroy:
|
|
1886
|
+
onBeforeDestroy: S,
|
|
1887
1887
|
width: i.width
|
|
1888
1888
|
}, {
|
|
1889
1889
|
default: ne(() => [
|
|
@@ -1918,7 +1918,7 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
1918
1918
|
},
|
|
1919
1919
|
emits: ["change"],
|
|
1920
1920
|
setup(a, { emit: s }) {
|
|
1921
|
-
const l = a, e = s, n =
|
|
1921
|
+
const l = a, e = s, n = j("create"), r = j({}), p = j([]), i = j([
|
|
1922
1922
|
{
|
|
1923
1923
|
label: "方向:",
|
|
1924
1924
|
prop: "placement",
|
|
@@ -2017,7 +2017,7 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
2017
2017
|
],
|
|
2018
2018
|
value: !0
|
|
2019
2019
|
}
|
|
2020
|
-
]), _ =
|
|
2020
|
+
]), _ = j([
|
|
2021
2021
|
{
|
|
2022
2022
|
label: "",
|
|
2023
2023
|
prop: "index",
|
|
@@ -2037,7 +2037,7 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
2037
2037
|
type: "datetime",
|
|
2038
2038
|
value: ""
|
|
2039
2039
|
}
|
|
2040
|
-
]), v =
|
|
2040
|
+
]), v = j([
|
|
2041
2041
|
{
|
|
2042
2042
|
label: "取消",
|
|
2043
2043
|
background: "#c0c4cc"
|
|
@@ -2046,41 +2046,41 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
2046
2046
|
label: "确认",
|
|
2047
2047
|
background: "#436aaf"
|
|
2048
2048
|
}
|
|
2049
|
-
]),
|
|
2049
|
+
]), y = ml({
|
|
2050
2050
|
visible: !1,
|
|
2051
2051
|
width: "40%",
|
|
2052
2052
|
title: "时间线"
|
|
2053
|
-
}), T = (
|
|
2054
|
-
var
|
|
2055
|
-
r.value =
|
|
2056
|
-
}, $ = (
|
|
2057
|
-
var
|
|
2058
|
-
switch (
|
|
2053
|
+
}), T = (d) => {
|
|
2054
|
+
var h;
|
|
2055
|
+
r.value = d, console.log(1212, d), e("change", (h = g()) == null ? void 0 : h.compData);
|
|
2056
|
+
}, $ = (d, h) => {
|
|
2057
|
+
var C, o;
|
|
2058
|
+
switch (d) {
|
|
2059
2059
|
case "create":
|
|
2060
|
-
(
|
|
2061
|
-
|
|
2062
|
-
}), n.value = "create",
|
|
2060
|
+
(C = _.value) == null || C.forEach((u) => {
|
|
2061
|
+
u.value = "";
|
|
2062
|
+
}), n.value = "create", y.visible = !0;
|
|
2063
2063
|
break;
|
|
2064
2064
|
case "update":
|
|
2065
|
-
(o = _.value) == null || o.forEach((
|
|
2066
|
-
|
|
2067
|
-
}), n.value = "update",
|
|
2065
|
+
(o = _.value) == null || o.forEach((u) => {
|
|
2066
|
+
u.value = h[u == null ? void 0 : u.prop];
|
|
2067
|
+
}), n.value = "update", y.visible = !0;
|
|
2068
2068
|
break;
|
|
2069
2069
|
case "delete":
|
|
2070
|
-
p.value.splice(
|
|
2070
|
+
p.value.splice(h, 1), n.value = "delete";
|
|
2071
2071
|
break;
|
|
2072
2072
|
}
|
|
2073
|
-
}, I = (
|
|
2074
|
-
var
|
|
2075
|
-
if ((
|
|
2076
|
-
const t =
|
|
2073
|
+
}, I = (d) => {
|
|
2074
|
+
var h, C, o, u;
|
|
2075
|
+
if ((d == null ? void 0 : d.buttonName) === "确认") {
|
|
2076
|
+
const t = c(d == null ? void 0 : d.content);
|
|
2077
2077
|
switch (Object.keys(t).forEach((b) => {
|
|
2078
2078
|
t[b] === "" && delete t[b];
|
|
2079
2079
|
}), n.value) {
|
|
2080
2080
|
case "create":
|
|
2081
|
-
console.log(1335, p.value, t), (
|
|
2081
|
+
console.log(1335, p.value, t), (C = p.value) == null || C.push({
|
|
2082
2082
|
...t,
|
|
2083
|
-
index: ((
|
|
2083
|
+
index: ((h = p.value) == null ? void 0 : h.length) + 1
|
|
2084
2084
|
});
|
|
2085
2085
|
break;
|
|
2086
2086
|
case "update":
|
|
@@ -2091,10 +2091,10 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
2091
2091
|
} : b);
|
|
2092
2092
|
break;
|
|
2093
2093
|
}
|
|
2094
|
-
e("change", (
|
|
2094
|
+
e("change", (u = g()) == null ? void 0 : u.compData), y.visible = !1;
|
|
2095
2095
|
} else
|
|
2096
|
-
|
|
2097
|
-
},
|
|
2096
|
+
y.visible = !1;
|
|
2097
|
+
}, g = () => ({
|
|
2098
2098
|
comp: "TimeLine",
|
|
2099
2099
|
compData: [
|
|
2100
2100
|
{
|
|
@@ -2106,42 +2106,42 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
2106
2106
|
contents: r.value
|
|
2107
2107
|
}
|
|
2108
2108
|
]
|
|
2109
|
-
}),
|
|
2110
|
-
|
|
2109
|
+
}), S = () => {
|
|
2110
|
+
y.visible = !1;
|
|
2111
2111
|
};
|
|
2112
|
-
return we(() => l == null ? void 0 : l.itemContents, (
|
|
2113
|
-
var
|
|
2114
|
-
|
|
2115
|
-
}, { immediate: !0 }), (
|
|
2116
|
-
const
|
|
2112
|
+
return we(() => l == null ? void 0 : l.itemContents, (d) => {
|
|
2113
|
+
var h, C;
|
|
2114
|
+
d && (r.value = ((h = d == null ? void 0 : d.find((o) => o.key === "timeLineConfig")) == null ? void 0 : h.contents) ?? {}, p.value = ((C = d == null ? void 0 : d.find((o) => o.key === "timeLineList")) == null ? void 0 : C.contents) ?? []);
|
|
2115
|
+
}, { immediate: !0 }), (d, h) => {
|
|
2116
|
+
const C = be("svg-icon"), o = be("el-button");
|
|
2117
2117
|
return P(), z(he, null, [
|
|
2118
2118
|
x("div", null, [
|
|
2119
2119
|
x("div", Rn, [
|
|
2120
|
-
|
|
2120
|
+
h[2] || (h[2] = x("h4", { class: "module-title" }, "内容", -1)),
|
|
2121
2121
|
x("div", {
|
|
2122
2122
|
class: "module-icon",
|
|
2123
|
-
onClick:
|
|
2123
|
+
onClick: h[0] || (h[0] = (u) => $("create"))
|
|
2124
2124
|
}, [
|
|
2125
|
-
V(
|
|
2125
|
+
V(C, {
|
|
2126
2126
|
name: "Plus",
|
|
2127
2127
|
class: "icon-size"
|
|
2128
2128
|
}),
|
|
2129
|
-
|
|
2129
|
+
h[1] || (h[1] = x("div", null, "新增", -1))
|
|
2130
2130
|
])
|
|
2131
2131
|
]),
|
|
2132
2132
|
x("div", Jn, [
|
|
2133
|
-
(P(!0), z(he, null, ge(p.value, (
|
|
2133
|
+
(P(!0), z(he, null, ge(p.value, (u, t) => (P(), z("div", {
|
|
2134
2134
|
class: "module-data-item",
|
|
2135
2135
|
key: t
|
|
2136
2136
|
}, [
|
|
2137
|
-
x("span", null, q(
|
|
2137
|
+
x("span", null, q(u == null ? void 0 : u.content), 1),
|
|
2138
2138
|
x("div", null, [
|
|
2139
2139
|
V(o, {
|
|
2140
2140
|
type: "primary",
|
|
2141
2141
|
size: "small",
|
|
2142
|
-
onClick: (b) => $("update", { ...
|
|
2142
|
+
onClick: (b) => $("update", { ...u, index: t + 1 })
|
|
2143
2143
|
}, {
|
|
2144
|
-
default: ne(() =>
|
|
2144
|
+
default: ne(() => h[3] || (h[3] = [
|
|
2145
2145
|
ze("修改")
|
|
2146
2146
|
])),
|
|
2147
2147
|
_: 2,
|
|
@@ -2152,7 +2152,7 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
2152
2152
|
size: "small",
|
|
2153
2153
|
onClick: (b) => $("delete", t)
|
|
2154
2154
|
}, {
|
|
2155
|
-
default: ne(() =>
|
|
2155
|
+
default: ne(() => h[4] || (h[4] = [
|
|
2156
2156
|
ze("删除")
|
|
2157
2157
|
])),
|
|
2158
2158
|
_: 2,
|
|
@@ -2162,7 +2162,7 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
2162
2162
|
]))), 128))
|
|
2163
2163
|
]),
|
|
2164
2164
|
x("div", Vn, [
|
|
2165
|
-
|
|
2165
|
+
h[5] || (h[5] = x("div", { class: "module-title" }, "布局", -1)),
|
|
2166
2166
|
V(Te, {
|
|
2167
2167
|
rowContents: i.value,
|
|
2168
2168
|
onChange: T
|
|
@@ -2170,10 +2170,10 @@ const ga = (a) => a.match(/\((.*)\)/)[1], ka = { class: "form-content" }, Ca = {
|
|
|
2170
2170
|
])
|
|
2171
2171
|
]),
|
|
2172
2172
|
V(Ie, {
|
|
2173
|
-
visible:
|
|
2174
|
-
title:
|
|
2175
|
-
onBeforeDestroy:
|
|
2176
|
-
width:
|
|
2173
|
+
visible: y.visible,
|
|
2174
|
+
title: y.title,
|
|
2175
|
+
onBeforeDestroy: S,
|
|
2176
|
+
width: y.width
|
|
2177
2177
|
}, {
|
|
2178
2178
|
default: ne(() => [
|
|
2179
2179
|
x("div", Wn, [
|
|
@@ -2217,102 +2217,102 @@ const Hn = /* @__PURE__ */ Ce(Mn, [["render", Zn]]), Kn = { class: "extra-conten
|
|
|
2217
2217
|
},
|
|
2218
2218
|
emits: ["change"],
|
|
2219
2219
|
setup(a, { emit: s }) {
|
|
2220
|
-
const l = a, e =
|
|
2220
|
+
const l = a, e = j(0), n = j(), r = j(), p = s, i = j(!1), _ = j({}), v = j({}), y = j();
|
|
2221
2221
|
we(
|
|
2222
2222
|
() => [l.itemData],
|
|
2223
2223
|
() => {
|
|
2224
|
-
var
|
|
2225
|
-
const o =
|
|
2226
|
-
n.value = (
|
|
2224
|
+
var u;
|
|
2225
|
+
const o = c(l.itemData);
|
|
2226
|
+
n.value = (u = c(o)) == null ? void 0 : u.map((t) => {
|
|
2227
2227
|
var b;
|
|
2228
2228
|
if (t.key === "extra") {
|
|
2229
|
-
let
|
|
2230
|
-
(b = t.value) == null || b.forEach((
|
|
2229
|
+
let U = [];
|
|
2230
|
+
(b = t.value) == null || b.forEach((F) => {
|
|
2231
2231
|
var R;
|
|
2232
|
-
|
|
2233
|
-
}), t.value =
|
|
2232
|
+
U.push((R = Object.values(F)) == null ? void 0 : R[0]);
|
|
2233
|
+
}), t.value = U;
|
|
2234
2234
|
}
|
|
2235
2235
|
return t;
|
|
2236
2236
|
});
|
|
2237
2237
|
},
|
|
2238
2238
|
{ deep: !0, immediate: !0 }
|
|
2239
2239
|
);
|
|
2240
|
-
const T = (o,
|
|
2241
|
-
var
|
|
2242
|
-
let
|
|
2243
|
-
((
|
|
2240
|
+
const T = (o, u, t, b) => {
|
|
2241
|
+
var F;
|
|
2242
|
+
let U = {};
|
|
2243
|
+
((F = o == null ? void 0 : o[0]) == null ? void 0 : F.contents) === "详情" && (i.value = !0, U[u] = o, r.value = o == null ? void 0 : o.filter((R) => (R == null ? void 0 : R.key) !== "tableContentName"), _.value = U, v.value = t, y.value = b.id);
|
|
2244
2244
|
}, $ = (o) => {
|
|
2245
|
-
var R, se, oe,
|
|
2246
|
-
const
|
|
2245
|
+
var R, se, oe, f;
|
|
2246
|
+
const u = (se = (R = Object.values(c(_.value))) == null ? void 0 : R[0]) == null ? void 0 : se.filter((w) => (w == null ? void 0 : w.key) === "tableContentName"), t = (f = (oe = Object.values(c(_.value))) == null ? void 0 : oe[0]) == null ? void 0 : f.filter((w) => (w == null ? void 0 : w.key) !== "tableContentName"), b = t == null ? void 0 : t.map((w, O) => {
|
|
2247
2247
|
var m;
|
|
2248
|
-
return O === o.index && (w == null ? void 0 : w.comp) === "Table" && (w.compData = (m = w.compData) == null ? void 0 : m.map((
|
|
2248
|
+
return O === o.index && (w == null ? void 0 : w.comp) === "Table" && (w.compData = (m = w.compData) == null ? void 0 : m.map((N) => {
|
|
2249
2249
|
var G, X;
|
|
2250
|
-
return (
|
|
2250
|
+
return (N == null ? void 0 : N.key) === "tableContents" && (N.contents = (X = (G = o.content) == null ? void 0 : G.map((E) => {
|
|
2251
2251
|
let Y = {};
|
|
2252
|
-
for (let M in
|
|
2253
|
-
M !== "id" && (Y[M] =
|
|
2252
|
+
for (let M in E)
|
|
2253
|
+
M !== "id" && (Y[M] = E[M]);
|
|
2254
2254
|
return Y;
|
|
2255
|
-
})) == null ? void 0 : X.map((
|
|
2255
|
+
})) == null ? void 0 : X.map((E) => Object.values(E))), N;
|
|
2256
2256
|
})), w;
|
|
2257
2257
|
});
|
|
2258
|
-
b.unshift(
|
|
2259
|
-
let
|
|
2260
|
-
for (let w in
|
|
2261
|
-
|
|
2262
|
-
_.value =
|
|
2258
|
+
b.unshift(u == null ? void 0 : u[0]);
|
|
2259
|
+
let U = c(_.value), F = {};
|
|
2260
|
+
for (let w in U)
|
|
2261
|
+
F[w] = b;
|
|
2262
|
+
_.value = F;
|
|
2263
2263
|
}, I = () => {
|
|
2264
|
-
i.value = !1, _.value = {}, v.value = {},
|
|
2265
|
-
},
|
|
2266
|
-
var R, se, oe,
|
|
2267
|
-
const
|
|
2268
|
-
b.unshift(
|
|
2269
|
-
let
|
|
2270
|
-
for (let w in
|
|
2271
|
-
|
|
2272
|
-
_.value =
|
|
2273
|
-
},
|
|
2274
|
-
var
|
|
2264
|
+
i.value = !1, _.value = {}, v.value = {}, y.value = void 0, e.value++;
|
|
2265
|
+
}, g = (o) => {
|
|
2266
|
+
var R, se, oe, f;
|
|
2267
|
+
const u = (se = (R = Object.values(c(_.value))) == null ? void 0 : R[0]) == null ? void 0 : se.filter((w) => (w == null ? void 0 : w.key) === "tableContentName"), t = (f = (oe = Object.values(c(_.value))) == null ? void 0 : oe[0]) == null ? void 0 : f.filter((w) => (w == null ? void 0 : w.key) !== "tableContentName"), b = t == null ? void 0 : t.map((w, O) => (O === o.index && (w.compData = o.contents), w));
|
|
2268
|
+
b.unshift(u == null ? void 0 : u[0]);
|
|
2269
|
+
let U = c(_.value), F = {};
|
|
2270
|
+
for (let w in U)
|
|
2271
|
+
F[w] = b;
|
|
2272
|
+
_.value = F;
|
|
2273
|
+
}, S = () => {
|
|
2274
|
+
var u, t;
|
|
2275
2275
|
let o = {};
|
|
2276
2276
|
for (let b in v.value)
|
|
2277
|
-
b === ((
|
|
2277
|
+
b === ((u = Object.keys(_.value)) == null ? void 0 : u[0]) ? o[b] = (t = Object.values(_.value)) == null ? void 0 : t[0] : o[b] = v.value[b];
|
|
2278
2278
|
p("change", {
|
|
2279
2279
|
buttonName: "编辑",
|
|
2280
|
-
index:
|
|
2280
|
+
index: y.value,
|
|
2281
2281
|
singleContent: o
|
|
2282
|
-
}, "methodData"), i.value = !1, _.value = {}, v.value = {},
|
|
2283
|
-
},
|
|
2284
|
-
i.value = !1, _.value = {}, v.value = {},
|
|
2285
|
-
},
|
|
2282
|
+
}, "methodData"), i.value = !1, _.value = {}, v.value = {}, y.value = void 0;
|
|
2283
|
+
}, d = () => {
|
|
2284
|
+
i.value = !1, _.value = {}, v.value = {}, y.value = void 0;
|
|
2285
|
+
}, h = (o) => {
|
|
2286
2286
|
p("change", o, "methodData");
|
|
2287
|
-
},
|
|
2288
|
-
return (o,
|
|
2287
|
+
}, C = (o) => vl(o);
|
|
2288
|
+
return (o, u) => (P(), z("div", Kn, [
|
|
2289
2289
|
(P(!0), z(he, null, ge(n.value, (t, b) => (P(), z("div", { key: e.value }, [
|
|
2290
2290
|
(t == null ? void 0 : t.key) === "extra" ? (P(), z("div", qn)) : (P(), z("div", Qn, [
|
|
2291
|
-
(P(), ve(Xe(
|
|
2291
|
+
(P(), ve(Xe(C(t.comp)), {
|
|
2292
2292
|
itemData: t == null ? void 0 : t.compData,
|
|
2293
2293
|
childItemData: t == null ? void 0 : t.itemChildData,
|
|
2294
2294
|
key: b,
|
|
2295
2295
|
index: (t == null ? void 0 : t.id) ?? b,
|
|
2296
2296
|
onContentClick: T,
|
|
2297
|
-
onChange:
|
|
2297
|
+
onChange: h
|
|
2298
2298
|
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
2299
2299
|
]))
|
|
2300
2300
|
]))), 128)),
|
|
2301
2301
|
V(Ie, {
|
|
2302
2302
|
visible: i.value,
|
|
2303
|
-
onBeforeDestroy:
|
|
2303
|
+
onBeforeDestroy: d
|
|
2304
2304
|
}, {
|
|
2305
2305
|
default: ne(() => [
|
|
2306
2306
|
(P(!0), z(he, null, ge(r.value, (t, b) => (P(), z("div", {
|
|
2307
2307
|
key: b,
|
|
2308
2308
|
class: "extra-dialog"
|
|
2309
2309
|
}, [
|
|
2310
|
-
(P(), ve(Xe(
|
|
2310
|
+
(P(), ve(Xe(C(t.comp)), {
|
|
2311
2311
|
itemData: t == null ? void 0 : t.compData,
|
|
2312
2312
|
onChange: $,
|
|
2313
2313
|
childItemData: t == null ? void 0 : t.itemChildData,
|
|
2314
2314
|
key: b,
|
|
2315
|
-
onContentChange:
|
|
2315
|
+
onContentChange: g,
|
|
2316
2316
|
index: (t == null ? void 0 : t.id) ?? b,
|
|
2317
2317
|
class: "extra-component"
|
|
2318
2318
|
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
@@ -2326,7 +2326,7 @@ const Hn = /* @__PURE__ */ Ce(Mn, [["render", Zn]]), Kn = { class: "extra-conten
|
|
|
2326
2326
|
}, q("取消")),
|
|
2327
2327
|
x("div", {
|
|
2328
2328
|
class: "confirm-button footer-button",
|
|
2329
|
-
onClick:
|
|
2329
|
+
onClick: S
|
|
2330
2330
|
}, q("确认"))
|
|
2331
2331
|
])
|
|
2332
2332
|
]),
|
|
@@ -2353,36 +2353,36 @@ const Hn = /* @__PURE__ */ Ce(Mn, [["render", Zn]]), Kn = { class: "extra-conten
|
|
|
2353
2353
|
}
|
|
2354
2354
|
},
|
|
2355
2355
|
setup(a) {
|
|
2356
|
-
const s =
|
|
2356
|
+
const s = j([]), l = a, e = ma(Ge), { itemData: n, isEdit: r } = Ze(e), p = (v, y) => {
|
|
2357
2357
|
var $;
|
|
2358
|
-
const T = ($ =
|
|
2358
|
+
const T = ($ = y == null ? void 0 : y[0]) == null ? void 0 : $.children;
|
|
2359
2359
|
return v == null ? void 0 : v.map((I) => {
|
|
2360
|
-
var
|
|
2361
|
-
return I = (
|
|
2362
|
-
var
|
|
2360
|
+
var g;
|
|
2361
|
+
return I = (g = I == null ? void 0 : I.map((S, d) => {
|
|
2362
|
+
var h;
|
|
2363
2363
|
return {
|
|
2364
|
-
key: (
|
|
2365
|
-
value:
|
|
2364
|
+
key: (h = T[d]) == null ? void 0 : h.label,
|
|
2365
|
+
value: S
|
|
2366
2366
|
};
|
|
2367
|
-
})) == null ? void 0 :
|
|
2367
|
+
})) == null ? void 0 : g.filter((S) => S.key), I;
|
|
2368
2368
|
});
|
|
2369
2369
|
};
|
|
2370
2370
|
we(
|
|
2371
2371
|
() => n.value,
|
|
2372
2372
|
async () => {
|
|
2373
|
-
r.value == "view" && await _(
|
|
2373
|
+
r.value == "view" && await _(c(l.itemData));
|
|
2374
2374
|
},
|
|
2375
2375
|
{ deep: !0 }
|
|
2376
2376
|
);
|
|
2377
2377
|
const i = async (v) => {
|
|
2378
|
-
var o,
|
|
2379
|
-
let
|
|
2380
|
-
if ((o =
|
|
2381
|
-
var oe,
|
|
2378
|
+
var o, u, t, b, U, F;
|
|
2379
|
+
let y = {};
|
|
2380
|
+
if ((o = c(v.content)) == null || o.forEach((R, se) => {
|
|
2381
|
+
var oe, f, w, O, m, N, G, X, E, Y, M, te, me, _e, J, ae, H;
|
|
2382
2382
|
if ((R == null ? void 0 : R.comp) === "Table") {
|
|
2383
|
-
let ue = (O = (w = (
|
|
2383
|
+
let ue = (O = (w = (f = (oe = R == null ? void 0 : R.compData) == null ? void 0 : oe.find((ie) => (ie == null ? void 0 : ie.key) === "header")) == null ? void 0 : f.contents) == null ? void 0 : w[0]) == null ? void 0 : O.some((ie) => ie == null ? void 0 : ie.children), $e = (G = (N = (m = R == null ? void 0 : R.compData) == null ? void 0 : m.find((ie) => (ie == null ? void 0 : ie.key) === "tableContents")) == null ? void 0 : N.contents) == null ? void 0 : G.map((ie) => ie.slice(1)), fe = (te = (M = (Y = (E = (X = R == null ? void 0 : R.compData) == null ? void 0 : X.find((ie) => (ie == null ? void 0 : ie.key) === "header")) == null ? void 0 : E.contents) == null ? void 0 : Y[0]) == null ? void 0 : M[0]) == null ? void 0 : te.label, ye = (J = (_e = (me = R == null ? void 0 : R.compData) == null ? void 0 : me.find((ie) => (ie == null ? void 0 : ie.key) === "header")) == null ? void 0 : _e.contents) == null ? void 0 : J[0];
|
|
2384
2384
|
if (ue)
|
|
2385
|
-
|
|
2385
|
+
y[fe] = p($e, ye);
|
|
2386
2386
|
else {
|
|
2387
2387
|
const ie = [];
|
|
2388
2388
|
ye = ye.slice(1, ye.length - 1), ye == null || ye.forEach((Pe, Le) => {
|
|
@@ -2392,23 +2392,23 @@ const Hn = /* @__PURE__ */ Ce(Mn, [["render", Zn]]), Kn = { class: "extra-conten
|
|
|
2392
2392
|
value: Ne[Le + 1]
|
|
2393
2393
|
});
|
|
2394
2394
|
});
|
|
2395
|
-
}),
|
|
2395
|
+
}), y["form" + se] = ie;
|
|
2396
2396
|
}
|
|
2397
2397
|
} else {
|
|
2398
2398
|
const ue = (H = (ae = R.compData) == null ? void 0 : ae.find((fe) => (fe == null ? void 0 : fe.key) === "formContent")) == null ? void 0 : H.contents;
|
|
2399
|
-
|
|
2399
|
+
y.form = {};
|
|
2400
2400
|
const $e = [];
|
|
2401
2401
|
ue == null || ue.forEach((fe) => {
|
|
2402
2402
|
fe.key !== "" && (fe = {
|
|
2403
2403
|
key: (fe == null ? void 0 : fe.key) ?? (fe == null ? void 0 : fe.label),
|
|
2404
2404
|
value: fe == null ? void 0 : fe.value
|
|
2405
2405
|
}, $e.push(fe));
|
|
2406
|
-
}),
|
|
2406
|
+
}), y.form = $e;
|
|
2407
2407
|
}
|
|
2408
2408
|
}), v.api) {
|
|
2409
2409
|
const R = await ha.post(v.api, {
|
|
2410
|
-
data:
|
|
2411
|
-
templateFileName: (
|
|
2410
|
+
data: y,
|
|
2411
|
+
templateFileName: (u = v == null ? void 0 : v.extraContent) == null ? void 0 : u[0]
|
|
2412
2412
|
}, {
|
|
2413
2413
|
responseType: "blob",
|
|
2414
2414
|
// 必须设置
|
|
@@ -2418,49 +2418,49 @@ const Hn = /* @__PURE__ */ Ce(Mn, [["render", Zn]]), Kn = { class: "extra-conten
|
|
|
2418
2418
|
});
|
|
2419
2419
|
var T = new Blob([R.data], {
|
|
2420
2420
|
type: "application/octet-stream;charset=UTF-8"
|
|
2421
|
-
}), $ = R.headers["content-disposition"], I = new RegExp("filename=([^;]+\\.[^\\.;]+);*"),
|
|
2422
|
-
|
|
2421
|
+
}), $ = R.headers["content-disposition"], I = new RegExp("filename=([^;]+\\.[^\\.;]+);*"), g = I.exec($), S = ((U = (b = (t = v == null ? void 0 : v.extraContent) == null ? void 0 : t[0]) == null ? void 0 : b.split(".")) == null ? void 0 : U[0]) + "." + ((F = g[1].split(".")) == null ? void 0 : F[1]), d = document.createElement("a"), h = window.URL.createObjectURL(T), C = /^["](.*)["]$/g;
|
|
2422
|
+
d.style.display = "none", d.href = h, d.download = decodeURI(S.replace(C, "$1")), document.body.appendChild(d), d.click(), document.body.removeChild(d), window.URL.revokeObjectURL(h);
|
|
2423
2423
|
}
|
|
2424
2424
|
}, _ = async (v) => {
|
|
2425
2425
|
var I;
|
|
2426
|
-
const
|
|
2427
|
-
var
|
|
2428
|
-
const
|
|
2426
|
+
const y = c(v), T = y == null ? void 0 : y.map(async (g) => {
|
|
2427
|
+
var u, t, b, U, F, R, se;
|
|
2428
|
+
const d = (u = (await _l({
|
|
2429
2429
|
key: {
|
|
2430
2430
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
2431
2431
|
parentTable: "",
|
|
2432
2432
|
type: "method",
|
|
2433
|
-
methodName:
|
|
2433
|
+
methodName: g.method
|
|
2434
2434
|
}
|
|
2435
|
-
})).data.result) == null ? void 0 :
|
|
2435
|
+
})).data.result) == null ? void 0 : u[0], h = await _l({
|
|
2436
2436
|
key: {
|
|
2437
2437
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
2438
2438
|
type: "methodData",
|
|
2439
|
-
tableId:
|
|
2439
|
+
tableId: d == null ? void 0 : d.id
|
|
2440
2440
|
}
|
|
2441
|
-
}),
|
|
2441
|
+
}), C = await na((t = g == null ? void 0 : g.value) == null ? void 0 : t[0], sessionStorage.getItem("systemKey"), ""), o = (b = h.data.result) == null ? void 0 : b[0];
|
|
2442
2442
|
return {
|
|
2443
|
-
buttonName: (
|
|
2444
|
-
api: (R = (
|
|
2445
|
-
content:
|
|
2446
|
-
extraContent: (se =
|
|
2443
|
+
buttonName: (U = d == null ? void 0 : d.key) == null ? void 0 : U.methodKey,
|
|
2444
|
+
api: (R = (F = o == null ? void 0 : o.value) == null ? void 0 : F.tableData) == null ? void 0 : R[0],
|
|
2445
|
+
content: C == null ? void 0 : C.filter((oe) => oe.comp !== "methodButton"),
|
|
2446
|
+
extraContent: (se = c(g.value)) == null ? void 0 : se.slice(1)
|
|
2447
2447
|
};
|
|
2448
2448
|
}), $ = await Promise.all(T);
|
|
2449
|
-
s.value = $ == null ? void 0 : $.filter((
|
|
2450
|
-
var
|
|
2451
|
-
|
|
2452
|
-
var
|
|
2453
|
-
|
|
2449
|
+
s.value = $ == null ? void 0 : $.filter((g) => g == null ? void 0 : g.extraContent), (I = s.value) == null || I.forEach((g) => {
|
|
2450
|
+
var S;
|
|
2451
|
+
g.api === "" && ((S = g.content) == null || S.forEach((d) => {
|
|
2452
|
+
var h;
|
|
2453
|
+
d.comp == "Table" && e.setExtraContents(sa(d.compData, (h = g.extraContent) == null ? void 0 : h[0]));
|
|
2454
2454
|
}));
|
|
2455
2455
|
});
|
|
2456
2456
|
};
|
|
2457
2457
|
return we(
|
|
2458
2458
|
() => l.itemData,
|
|
2459
2459
|
async () => {
|
|
2460
|
-
r.value == "view" && await _(
|
|
2460
|
+
r.value == "view" && await _(c(l.itemData));
|
|
2461
2461
|
},
|
|
2462
2462
|
{ immediate: !0, deep: !0 }
|
|
2463
|
-
), (v,
|
|
2463
|
+
), (v, y) => (P(), z("div", es, [
|
|
2464
2464
|
(P(!0), z(he, null, ge(s.value, (T) => (P(), z("div", null, [
|
|
2465
2465
|
T.api !== "" ? (P(), z("div", {
|
|
2466
2466
|
key: 0,
|
|
@@ -2492,7 +2492,7 @@ const rs = /* @__PURE__ */ Ce(ss, [["render", os]]), ts = { class: "module conte
|
|
|
2492
2492
|
visible: !1,
|
|
2493
2493
|
width: "40%",
|
|
2494
2494
|
title: "签名配置"
|
|
2495
|
-
}), r =
|
|
2495
|
+
}), r = j("create"), p = j([
|
|
2496
2496
|
{
|
|
2497
2497
|
label: "取消",
|
|
2498
2498
|
background: "#c0c4cc"
|
|
@@ -2501,7 +2501,7 @@ const rs = /* @__PURE__ */ Ce(ss, [["render", os]]), ts = { class: "module conte
|
|
|
2501
2501
|
label: "确认",
|
|
2502
2502
|
background: "#436aaf"
|
|
2503
2503
|
}
|
|
2504
|
-
]), i =
|
|
2504
|
+
]), i = j([
|
|
2505
2505
|
{
|
|
2506
2506
|
label: "宽度(%):",
|
|
2507
2507
|
prop: "signPadWidth",
|
|
@@ -2594,91 +2594,91 @@ const rs = /* @__PURE__ */ Ce(ss, [["render", os]]), ts = { class: "module conte
|
|
|
2594
2594
|
// ],
|
|
2595
2595
|
// value: false
|
|
2596
2596
|
// },
|
|
2597
|
-
]), v =
|
|
2597
|
+
]), v = j({}), y = j([]), T = () => ({
|
|
2598
2598
|
comp: "Signature",
|
|
2599
2599
|
compData: [
|
|
2600
2600
|
{
|
|
2601
2601
|
key: "signTypeList",
|
|
2602
|
-
contents:
|
|
2602
|
+
contents: y.value
|
|
2603
2603
|
},
|
|
2604
2604
|
{
|
|
2605
2605
|
key: "signConfig",
|
|
2606
2606
|
contents: v.value
|
|
2607
2607
|
}
|
|
2608
2608
|
]
|
|
2609
|
-
}), $ = (
|
|
2610
|
-
var
|
|
2611
|
-
v.value =
|
|
2612
|
-
}, I = (
|
|
2613
|
-
var
|
|
2614
|
-
if ((
|
|
2615
|
-
const o =
|
|
2609
|
+
}), $ = (d) => {
|
|
2610
|
+
var h;
|
|
2611
|
+
v.value = c(d), e("change", (h = T()) == null ? void 0 : h.compData);
|
|
2612
|
+
}, I = (d) => {
|
|
2613
|
+
var h, C;
|
|
2614
|
+
if ((d == null ? void 0 : d.buttonName) === "确认") {
|
|
2615
|
+
const o = c(d == null ? void 0 : d.content);
|
|
2616
2616
|
switch (r.value) {
|
|
2617
2617
|
case "create":
|
|
2618
|
-
|
|
2618
|
+
y.value.push({
|
|
2619
2619
|
...o,
|
|
2620
|
-
index: ((
|
|
2620
|
+
index: ((h = y.value) == null ? void 0 : h.length) + 1
|
|
2621
2621
|
});
|
|
2622
2622
|
break;
|
|
2623
2623
|
}
|
|
2624
|
-
e("change", (
|
|
2624
|
+
e("change", (C = T()) == null ? void 0 : C.compData), n.visible = !1;
|
|
2625
2625
|
} else
|
|
2626
2626
|
n.visible = !1;
|
|
2627
|
-
},
|
|
2628
|
-
var
|
|
2629
|
-
switch (
|
|
2627
|
+
}, g = (d, h) => {
|
|
2628
|
+
var C, o;
|
|
2629
|
+
switch (d) {
|
|
2630
2630
|
case "create":
|
|
2631
|
-
(
|
|
2632
|
-
|
|
2631
|
+
(C = _.value) == null || C.forEach((u) => {
|
|
2632
|
+
u.value = "";
|
|
2633
2633
|
}), r.value = "create", n.visible = !0;
|
|
2634
2634
|
break;
|
|
2635
2635
|
case "update":
|
|
2636
|
-
(o = _.value) == null || o.forEach((
|
|
2637
|
-
|
|
2638
|
-
}), console.log(345,
|
|
2636
|
+
(o = _.value) == null || o.forEach((u) => {
|
|
2637
|
+
u.value = h[u == null ? void 0 : u.prop];
|
|
2638
|
+
}), console.log(345, h), r.value = "update", n.visible = !0;
|
|
2639
2639
|
break;
|
|
2640
2640
|
case "delete":
|
|
2641
|
-
|
|
2641
|
+
y.value.splice(h, 1), r.value = "delete";
|
|
2642
2642
|
break;
|
|
2643
2643
|
}
|
|
2644
|
-
},
|
|
2644
|
+
}, S = () => {
|
|
2645
2645
|
n.visible = !1;
|
|
2646
2646
|
};
|
|
2647
|
-
return we(() => l == null ? void 0 : l.itemContents, (
|
|
2648
|
-
var
|
|
2649
|
-
|
|
2650
|
-
}, { immediate: !0 }), (
|
|
2651
|
-
const
|
|
2647
|
+
return we(() => l == null ? void 0 : l.itemContents, (d) => {
|
|
2648
|
+
var h, C;
|
|
2649
|
+
d && (v.value = ((h = d == null ? void 0 : d.find((o) => o.key === "signConfig")) == null ? void 0 : h.contents) ?? {}, y.value = ((C = d == null ? void 0 : d.find((o) => o.key === "signTypeList")) == null ? void 0 : C.contents) ?? []);
|
|
2650
|
+
}, { immediate: !0 }), (d, h) => {
|
|
2651
|
+
const C = be("svg-icon"), o = be("el-button");
|
|
2652
2652
|
return P(), z(he, null, [
|
|
2653
2653
|
x("div", null, [
|
|
2654
2654
|
x("div", ts, [
|
|
2655
|
-
|
|
2655
|
+
h[2] || (h[2] = x("h4", { class: "module-title" }, "签名类型", -1)),
|
|
2656
2656
|
x("div", {
|
|
2657
2657
|
class: "module-icon",
|
|
2658
|
-
onClick:
|
|
2658
|
+
onClick: h[0] || (h[0] = (u) => g("create"))
|
|
2659
2659
|
}, [
|
|
2660
2660
|
x("div", null, [
|
|
2661
|
-
V(
|
|
2661
|
+
V(C, {
|
|
2662
2662
|
name: "Plus",
|
|
2663
2663
|
class: "icon-size"
|
|
2664
2664
|
}),
|
|
2665
|
-
|
|
2665
|
+
h[1] || (h[1] = x("span", null, "新增", -1))
|
|
2666
2666
|
])
|
|
2667
2667
|
])
|
|
2668
2668
|
]),
|
|
2669
2669
|
x("div", is, [
|
|
2670
|
-
(P(!0), z(he, null, ge(
|
|
2670
|
+
(P(!0), z(he, null, ge(y.value, (u, t) => (P(), z("div", {
|
|
2671
2671
|
class: "module-data-item",
|
|
2672
2672
|
key: t
|
|
2673
2673
|
}, [
|
|
2674
|
-
x("span", null, q(
|
|
2674
|
+
x("span", null, q(u == null ? void 0 : u.label), 1),
|
|
2675
2675
|
x("div", null, [
|
|
2676
2676
|
V(o, {
|
|
2677
2677
|
type: "primary",
|
|
2678
2678
|
size: "small",
|
|
2679
|
-
onClick: (b) =>
|
|
2679
|
+
onClick: (b) => g("update", { ...u, index: t + 1 })
|
|
2680
2680
|
}, {
|
|
2681
|
-
default: ne(() =>
|
|
2681
|
+
default: ne(() => h[3] || (h[3] = [
|
|
2682
2682
|
ze("修改")
|
|
2683
2683
|
])),
|
|
2684
2684
|
_: 2,
|
|
@@ -2687,9 +2687,9 @@ const rs = /* @__PURE__ */ Ce(ss, [["render", os]]), ts = { class: "module conte
|
|
|
2687
2687
|
V(o, {
|
|
2688
2688
|
type: "danger",
|
|
2689
2689
|
size: "small",
|
|
2690
|
-
onClick: (b) =>
|
|
2690
|
+
onClick: (b) => g("delete", t)
|
|
2691
2691
|
}, {
|
|
2692
|
-
default: ne(() =>
|
|
2692
|
+
default: ne(() => h[4] || (h[4] = [
|
|
2693
2693
|
ze("删除")
|
|
2694
2694
|
])),
|
|
2695
2695
|
_: 2,
|
|
@@ -2708,7 +2708,7 @@ const rs = /* @__PURE__ */ Ce(ss, [["render", os]]), ts = { class: "module conte
|
|
|
2708
2708
|
V(Ie, {
|
|
2709
2709
|
visible: n.visible,
|
|
2710
2710
|
title: n.title,
|
|
2711
|
-
onBeforeDestroy:
|
|
2711
|
+
onBeforeDestroy: S,
|
|
2712
2712
|
width: n.width
|
|
2713
2713
|
}, {
|
|
2714
2714
|
default: ne(() => [
|
|
@@ -2743,45 +2743,45 @@ const rs = /* @__PURE__ */ Ce(ss, [["render", os]]), ts = { class: "module conte
|
|
|
2743
2743
|
},
|
|
2744
2744
|
emits: ["clickStep", "clickTrigger", "changeTrigger"],
|
|
2745
2745
|
setup(a, { emit: s }) {
|
|
2746
|
-
const l = a, e = s, n =
|
|
2746
|
+
const l = a, e = s, n = j(1), r = Bl(() => {
|
|
2747
2747
|
var T, $;
|
|
2748
2748
|
return (T = l == null ? void 0 : l.stepConfig) != null && T.allowTrigger ? n.value : ($ = l == null ? void 0 : l.stepConfig) == null ? void 0 : $.active;
|
|
2749
2749
|
}), p = (T, $) => {
|
|
2750
2750
|
n.value = $, e("clickStep", T, $);
|
|
2751
2751
|
}, i = (T) => pa(T), _ = () => {
|
|
2752
2752
|
var $;
|
|
2753
|
-
const T = ($ = l == null ? void 0 : l.stepList) == null ? void 0 : $.find((I,
|
|
2753
|
+
const T = ($ = l == null ? void 0 : l.stepList) == null ? void 0 : $.find((I, g) => g + 1 === r.value);
|
|
2754
2754
|
return console.log("findStep", T), T ? T == null ? void 0 : T.children : [];
|
|
2755
2755
|
}, v = (T) => {
|
|
2756
2756
|
e("clickTrigger", T);
|
|
2757
|
-
},
|
|
2757
|
+
}, y = (T) => {
|
|
2758
2758
|
e("changeTrigger", T);
|
|
2759
2759
|
};
|
|
2760
2760
|
return (T, $) => {
|
|
2761
|
-
var
|
|
2762
|
-
const I = be("el-step"),
|
|
2761
|
+
var S, d, h, C, o;
|
|
2762
|
+
const I = be("el-step"), g = be("el-steps");
|
|
2763
2763
|
return P(), z(he, null, [
|
|
2764
|
-
V(
|
|
2765
|
-
direction: (
|
|
2764
|
+
V(g, {
|
|
2765
|
+
direction: (S = a.stepConfig) == null ? void 0 : S.direction,
|
|
2766
2766
|
active: r.value,
|
|
2767
2767
|
"finish-status": "success",
|
|
2768
|
-
simple: (
|
|
2769
|
-
"align-center": ((
|
|
2768
|
+
simple: (d = a.stepConfig) == null ? void 0 : d.simple,
|
|
2769
|
+
"align-center": ((h = a.stepConfig) == null ? void 0 : h.alignCenter) ?? !0
|
|
2770
2770
|
}, {
|
|
2771
2771
|
default: ne(() => [
|
|
2772
|
-
(P(!0), z(he, null, ge(a.stepList, (
|
|
2772
|
+
(P(!0), z(he, null, ge(a.stepList, (u, t) => (P(), ve(I, {
|
|
2773
2773
|
key: t,
|
|
2774
2774
|
class: "step-item",
|
|
2775
|
-
onClick: (b) => p(
|
|
2775
|
+
onClick: (b) => p(u, t + 1)
|
|
2776
2776
|
}, {
|
|
2777
2777
|
title: ne(() => [
|
|
2778
2778
|
al(T.$slots, "title", {
|
|
2779
|
-
title:
|
|
2779
|
+
title: u == null ? void 0 : u.title
|
|
2780
2780
|
}, void 0, !0)
|
|
2781
2781
|
]),
|
|
2782
2782
|
description: ne(() => [
|
|
2783
2783
|
al(T.$slots, "description", {
|
|
2784
|
-
description:
|
|
2784
|
+
description: u == null ? void 0 : u.description
|
|
2785
2785
|
}, void 0, !0)
|
|
2786
2786
|
]),
|
|
2787
2787
|
_: 2
|
|
@@ -2789,21 +2789,21 @@ const rs = /* @__PURE__ */ Ce(ss, [["render", os]]), ts = { class: "module conte
|
|
|
2789
2789
|
]),
|
|
2790
2790
|
_: 3
|
|
2791
2791
|
}, 8, ["direction", "active", "simple", "align-center"]),
|
|
2792
|
-
(
|
|
2792
|
+
(C = a.stepConfig) != null && C.allowTrigger && ((o = a.stepConfig) != null && o.active) ? (P(!0), z(he, { key: 0 }, ge(_(), (u, t) => (P(), z("div", {
|
|
2793
2793
|
key: t,
|
|
2794
2794
|
class: "step-cont-wrap"
|
|
2795
2795
|
}, [
|
|
2796
|
-
(P(), ve(Xe(i(
|
|
2797
|
-
modelValue:
|
|
2798
|
-
"onUpdate:modelValue": (b) =>
|
|
2796
|
+
(P(), ve(Xe(i(u == null ? void 0 : u.type)), {
|
|
2797
|
+
modelValue: u.value,
|
|
2798
|
+
"onUpdate:modelValue": (b) => u.value = b,
|
|
2799
2799
|
onClickTrigger: v,
|
|
2800
|
-
onChangeTrigger:
|
|
2801
|
-
content:
|
|
2800
|
+
onChangeTrigger: y,
|
|
2801
|
+
content: u == null ? void 0 : u.content
|
|
2802
2802
|
}, ra({ _: 2 }, [
|
|
2803
|
-
ge(T.$slots, (b,
|
|
2804
|
-
name:
|
|
2805
|
-
fn: ne((
|
|
2806
|
-
al(T.$slots,
|
|
2803
|
+
ge(T.$slots, (b, U) => ({
|
|
2804
|
+
name: U,
|
|
2805
|
+
fn: ne((F) => [
|
|
2806
|
+
al(T.$slots, U, ta({ ref_for: !0 }, F || {}), void 0, !0)
|
|
2807
2807
|
])
|
|
2808
2808
|
}))
|
|
2809
2809
|
]), 1064, ["modelValue", "onUpdate:modelValue", "content"]))
|
|
@@ -2825,12 +2825,12 @@ const rs = /* @__PURE__ */ Ce(ss, [["render", os]]), ts = { class: "module conte
|
|
|
2825
2825
|
},
|
|
2826
2826
|
emits: ["clickStep"],
|
|
2827
2827
|
setup(a, { emit: s }) {
|
|
2828
|
-
const l = a, e = s, n =
|
|
2828
|
+
const l = a, e = s, n = j({}), r = j([]), p = (i, _) => {
|
|
2829
2829
|
e("clickStep", i, _);
|
|
2830
2830
|
};
|
|
2831
2831
|
return we(() => l == null ? void 0 : l.itemData, (i) => {
|
|
2832
2832
|
var _, v;
|
|
2833
|
-
r.value = (_ = i == null ? void 0 : i.find((
|
|
2833
|
+
r.value = (_ = i == null ? void 0 : i.find((y) => (y == null ? void 0 : y.key) === "stepList")) == null ? void 0 : _.contents, n.value = (v = i == null ? void 0 : i.find((y) => (y == null ? void 0 : y.key) === "stepConfig")) == null ? void 0 : v.contents;
|
|
2834
2834
|
}, {
|
|
2835
2835
|
immediate: !0
|
|
2836
2836
|
}), (i, _) => {
|
|
@@ -2843,11 +2843,11 @@ const rs = /* @__PURE__ */ Ce(ss, [["render", os]]), ts = { class: "module conte
|
|
|
2843
2843
|
icon: ne(() => [
|
|
2844
2844
|
V(v, { name: "import" })
|
|
2845
2845
|
]),
|
|
2846
|
-
title: ne(({ title:
|
|
2847
|
-
ze(q(
|
|
2846
|
+
title: ne(({ title: y }) => [
|
|
2847
|
+
ze(q(y), 1)
|
|
2848
2848
|
]),
|
|
2849
|
-
description: ne(({ description:
|
|
2850
|
-
ze(q(
|
|
2849
|
+
description: ne(({ description: y }) => [
|
|
2850
|
+
ze(q(y), 1)
|
|
2851
2851
|
]),
|
|
2852
2852
|
_: 1
|
|
2853
2853
|
}, 8, ["stepConfig", "stepList"]);
|
|
@@ -2905,7 +2905,7 @@ const rs = /* @__PURE__ */ Ce(ss, [["render", os]]), ts = { class: "module conte
|
|
|
2905
2905
|
}
|
|
2906
2906
|
},
|
|
2907
2907
|
setup(a) {
|
|
2908
|
-
const s = a, l =
|
|
2908
|
+
const s = a, l = j({}), e = j([]);
|
|
2909
2909
|
return we(() => s == null ? void 0 : s.itemData, (n) => {
|
|
2910
2910
|
var r, p;
|
|
2911
2911
|
e.value = (r = n == null ? void 0 : n.find((i) => (i == null ? void 0 : i.key) === "timeLineList")) == null ? void 0 : r.contents, l.value = (p = n == null ? void 0 : n.find((i) => (i == null ? void 0 : i.key) === "timeLineConfig")) == null ? void 0 : p.contents;
|
|
@@ -2936,7 +2936,7 @@ const rs = /* @__PURE__ */ Ce(ss, [["render", os]]), ts = { class: "module conte
|
|
|
2936
2936
|
index: Number
|
|
2937
2937
|
},
|
|
2938
2938
|
setup(a) {
|
|
2939
|
-
const s = a, l =
|
|
2939
|
+
const s = a, l = j([]);
|
|
2940
2940
|
return we(
|
|
2941
2941
|
() => s == null ? void 0 : s.itemData,
|
|
2942
2942
|
(e) => {
|
|
@@ -2990,7 +2990,7 @@ const rs = /* @__PURE__ */ Ce(ss, [["render", os]]), ts = { class: "module conte
|
|
|
2990
2990
|
__name: "modelSelect",
|
|
2991
2991
|
setup(a) {
|
|
2992
2992
|
const s = tl(Ge), { itemData: l } = Ze(s), e = (n) => {
|
|
2993
|
-
const r =
|
|
2993
|
+
const r = c(l.value);
|
|
2994
2994
|
r.push({
|
|
2995
2995
|
comp: n.comp,
|
|
2996
2996
|
name: n.name,
|
|
@@ -3000,7 +3000,7 @@ const rs = /* @__PURE__ */ Ce(ss, [["render", os]]), ts = { class: "module conte
|
|
|
3000
3000
|
return (n, r) => {
|
|
3001
3001
|
const p = be("svg-icon");
|
|
3002
3002
|
return P(), z("div", ws, [
|
|
3003
|
-
(P(!0), z(he, null, ge(ia(
|
|
3003
|
+
(P(!0), z(he, null, ge(ia(so), (i, _) => (P(), z("div", {
|
|
3004
3004
|
class: "type-list",
|
|
3005
3005
|
key: _
|
|
3006
3006
|
}, [
|
|
@@ -3025,115 +3025,115 @@ const rs = /* @__PURE__ */ Ce(ss, [["render", os]]), ts = { class: "module conte
|
|
|
3025
3025
|
}, Us = ["onClick"], Ps = { class: "comp-child" }, Rs = {
|
|
3026
3026
|
__name: "modelFill",
|
|
3027
3027
|
setup(a) {
|
|
3028
|
-
const s = tl(Ge), { itemData: l, originalData: e } = Ze(s), n =
|
|
3029
|
-
|
|
3030
|
-
const r =
|
|
3031
|
-
var
|
|
3032
|
-
let
|
|
3033
|
-
p.value =
|
|
3028
|
+
const s = tl(Ge), { itemData: l, originalData: e } = Ze(s), n = j([]);
|
|
3029
|
+
j([]);
|
|
3030
|
+
const r = j([]), p = j([]), i = (I) => {
|
|
3031
|
+
var S;
|
|
3032
|
+
let g = (S = c(p.value)) == null ? void 0 : S.map((d, h) => (I === h && (d.content = !0), d));
|
|
3033
|
+
p.value = g;
|
|
3034
3034
|
}, _ = (I) => {
|
|
3035
|
-
var
|
|
3036
|
-
let
|
|
3037
|
-
p.value =
|
|
3038
|
-
}, v = (I,
|
|
3039
|
-
var
|
|
3040
|
-
let
|
|
3041
|
-
p.value =
|
|
3042
|
-
const
|
|
3043
|
-
s.setOriginalData(
|
|
3035
|
+
var S;
|
|
3036
|
+
let g = (S = c(p.value)) == null ? void 0 : S.map((d, h) => (I === h && (d.content = !1), d));
|
|
3037
|
+
p.value = g, n.value = c(l.value);
|
|
3038
|
+
}, v = (I, g) => {
|
|
3039
|
+
var C;
|
|
3040
|
+
let S = (C = c(p.value)) == null ? void 0 : C.map((o, u) => (I === u && (o.content = !1), o));
|
|
3041
|
+
p.value = S;
|
|
3042
|
+
const d = c(l.value), h = d == null ? void 0 : d.filter((o, u) => (u === I && (o.name = g), o));
|
|
3043
|
+
s.setOriginalData(h), s.setItemData(h);
|
|
3044
3044
|
};
|
|
3045
3045
|
we(
|
|
3046
3046
|
() => l.value,
|
|
3047
3047
|
() => {
|
|
3048
|
-
var I,
|
|
3049
|
-
!l.value || ((I = l.value) == null ? void 0 : I.length) === 0 ? n.value = [] : n.value = (
|
|
3050
|
-
id:
|
|
3048
|
+
var I, g, S;
|
|
3049
|
+
!l.value || ((I = l.value) == null ? void 0 : I.length) === 0 ? n.value = [] : n.value = (g = c(l.value)) == null ? void 0 : g.filter((d) => (d == null ? void 0 : d.comp) !== "methodButton"), r.value = n.value, p.value = (S = c(r.value)) == null ? void 0 : S.map((d, h) => ({
|
|
3050
|
+
id: h,
|
|
3051
3051
|
content: !1
|
|
3052
3052
|
}));
|
|
3053
3053
|
},
|
|
3054
3054
|
{ deep: !0, immediate: !0 }
|
|
3055
3055
|
);
|
|
3056
|
-
const
|
|
3057
|
-
var
|
|
3056
|
+
const y = (I) => vl(I), T = (I, g, S) => {
|
|
3057
|
+
var h, C;
|
|
3058
3058
|
if (!I) return;
|
|
3059
|
-
let
|
|
3060
|
-
|
|
3061
|
-
id:
|
|
3059
|
+
let d = c(l.value);
|
|
3060
|
+
d = (h = d == null ? void 0 : d.map((o, u) => (u === S && (o.compData = I), o))) == null ? void 0 : h.filter((o) => (o == null ? void 0 : o.comp) !== "methodButton"), p.value = (C = c(d)) == null ? void 0 : C.map((o, u) => ({
|
|
3061
|
+
id: u,
|
|
3062
3062
|
content: !1
|
|
3063
|
-
})), s.setOriginalData(
|
|
3063
|
+
})), s.setOriginalData(d), s.setItemData(d);
|
|
3064
3064
|
}, $ = (I) => {
|
|
3065
3065
|
We.confirm("是否确认要删除", "", {
|
|
3066
3066
|
confirmButtonText: "确认",
|
|
3067
3067
|
cancelButtonText: "取消",
|
|
3068
3068
|
type: "warning"
|
|
3069
3069
|
}).then(() => {
|
|
3070
|
-
const
|
|
3071
|
-
s.setOriginalData(
|
|
3070
|
+
const g = c(l.value), S = g == null ? void 0 : g.filter((d, h) => h !== I);
|
|
3071
|
+
s.setOriginalData(S), s.setItemData(S), Ve({
|
|
3072
3072
|
type: "success",
|
|
3073
3073
|
message: "删除成功"
|
|
3074
3074
|
});
|
|
3075
3075
|
}).catch(() => {
|
|
3076
3076
|
});
|
|
3077
3077
|
};
|
|
3078
|
-
return (I,
|
|
3079
|
-
const
|
|
3078
|
+
return (I, g) => {
|
|
3079
|
+
const S = be("svg-icon");
|
|
3080
3080
|
return P(), z("div", Es, [
|
|
3081
|
-
|
|
3081
|
+
g[1] || (g[1] = x("div", { class: "fill-operate" }, q("操作栏"), -1)),
|
|
3082
3082
|
x("div", Os, [
|
|
3083
3083
|
V(ba, {
|
|
3084
3084
|
class: "collapse-content",
|
|
3085
3085
|
collapseContents: n.value
|
|
3086
3086
|
}, {
|
|
3087
|
-
title: ne(({ item:
|
|
3088
|
-
var
|
|
3087
|
+
title: ne(({ item: d, index: h }) => {
|
|
3088
|
+
var C, o, u, t, b, U, F, R, se, oe;
|
|
3089
3089
|
return [
|
|
3090
3090
|
x("div", Bs, [
|
|
3091
3091
|
x("div", Fs, [
|
|
3092
|
-
(o = (
|
|
3092
|
+
(o = (C = p.value) == null ? void 0 : C.find((f) => f.id === h)) != null && o.content ? Se("", !0) : (P(), z("div", {
|
|
3093
3093
|
key: 0,
|
|
3094
3094
|
class: "collapse-title",
|
|
3095
|
-
style: ua({ marginRight:
|
|
3096
|
-
}, q(
|
|
3097
|
-
(t = (
|
|
3095
|
+
style: ua({ marginRight: d.name && d.name !== "" ? "8px" : "0px" })
|
|
3096
|
+
}, q(d.name), 5)),
|
|
3097
|
+
(t = (u = p.value) == null ? void 0 : u.find((f) => f.id === h)) != null && t.content ? (P(), z("div", Ns, [
|
|
3098
3098
|
V(fa, {
|
|
3099
|
-
modelValue:
|
|
3100
|
-
"onUpdate:modelValue": (
|
|
3101
|
-
onClick:
|
|
3099
|
+
modelValue: d.name,
|
|
3100
|
+
"onUpdate:modelValue": (f) => d.name = f,
|
|
3101
|
+
onClick: g[0] || (g[0] = Ke(() => {
|
|
3102
3102
|
}, ["stop"]))
|
|
3103
3103
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
3104
3104
|
])) : Se("", !0),
|
|
3105
|
-
(
|
|
3105
|
+
(U = (b = p.value) == null ? void 0 : b.find((f) => f.id === h)) != null && U.content ? Se("", !0) : (P(), z("div", {
|
|
3106
3106
|
key: 2,
|
|
3107
|
-
onClick: Ke((
|
|
3107
|
+
onClick: Ke((f) => i(h), ["stop"]),
|
|
3108
3108
|
class: "icon-content"
|
|
3109
3109
|
}, [
|
|
3110
|
-
V(
|
|
3110
|
+
V(S, {
|
|
3111
3111
|
name: "Edit",
|
|
3112
3112
|
style: { width: "16px", height: "16px" }
|
|
3113
3113
|
})
|
|
3114
3114
|
], 8, Ss))
|
|
3115
3115
|
]),
|
|
3116
3116
|
x("div", Ls, [
|
|
3117
|
-
(R = (
|
|
3118
|
-
V(
|
|
3117
|
+
(R = (F = p.value) == null ? void 0 : F.find((f) => f.id === h)) != null && R.content ? (P(), z("div", js, [
|
|
3118
|
+
V(S, {
|
|
3119
3119
|
name: "Cancel",
|
|
3120
3120
|
style: { width: "16px", height: "16px" },
|
|
3121
3121
|
class: "icon-content",
|
|
3122
|
-
onClick: Ke((
|
|
3122
|
+
onClick: Ke((f) => _(h), ["stop"])
|
|
3123
3123
|
}, null, 8, ["onClick"]),
|
|
3124
|
-
V(
|
|
3124
|
+
V(S, {
|
|
3125
3125
|
name: "Save",
|
|
3126
|
-
onClick: Ke((
|
|
3126
|
+
onClick: Ke((f) => v(h, d.name), ["stop"]),
|
|
3127
3127
|
style: { width: "16px", height: "16px", fill: "var(--ssComponent-primary-color)" },
|
|
3128
3128
|
class: "icon-content"
|
|
3129
3129
|
}, null, 8, ["onClick"])
|
|
3130
3130
|
])) : Se("", !0),
|
|
3131
|
-
(oe = (se = p.value) == null ? void 0 : se.find((
|
|
3131
|
+
(oe = (se = p.value) == null ? void 0 : se.find((f) => f.id === h)) != null && oe.content ? Se("", !0) : (P(), z("div", {
|
|
3132
3132
|
key: 1,
|
|
3133
|
-
onClick: Ke((
|
|
3133
|
+
onClick: Ke((f) => $(h), ["stop"]),
|
|
3134
3134
|
class: "icon-content"
|
|
3135
3135
|
}, [
|
|
3136
|
-
V(
|
|
3136
|
+
V(S, {
|
|
3137
3137
|
name: "Delete",
|
|
3138
3138
|
style: { width: "16px", height: "16px" }
|
|
3139
3139
|
})
|
|
@@ -3142,14 +3142,14 @@ const rs = /* @__PURE__ */ Ce(ss, [["render", os]]), ts = { class: "module conte
|
|
|
3142
3142
|
])
|
|
3143
3143
|
];
|
|
3144
3144
|
}),
|
|
3145
|
-
content: ne(({ item:
|
|
3146
|
-
var
|
|
3145
|
+
content: ne(({ item: d, index: h }) => {
|
|
3146
|
+
var C, o;
|
|
3147
3147
|
return [
|
|
3148
3148
|
x("div", Ps, [
|
|
3149
|
-
(P(), ve(Xe(
|
|
3150
|
-
itemContents:
|
|
3151
|
-
originalItemContents: (o = (
|
|
3152
|
-
onChange: (
|
|
3149
|
+
(P(), ve(Xe(y(d.comp + "Operate")), {
|
|
3150
|
+
itemContents: d == null ? void 0 : d.compData,
|
|
3151
|
+
originalItemContents: (o = (C = r.value) == null ? void 0 : C.find((u, t) => t === h)) == null ? void 0 : o.compData,
|
|
3152
|
+
onChange: (u) => T(u, d, h)
|
|
3153
3153
|
}, null, 40, ["itemContents", "originalItemContents", "onChange"]))
|
|
3154
3154
|
])
|
|
3155
3155
|
];
|
|
@@ -3166,12 +3166,12 @@ const rs = /* @__PURE__ */ Ce(ss, [["render", os]]), ts = { class: "module conte
|
|
|
3166
3166
|
}, Ws = { style: { display: "flex" } }, zs = {
|
|
3167
3167
|
__name: "modelShow",
|
|
3168
3168
|
setup(a) {
|
|
3169
|
-
const s = tl(Ge), { itemData: l } = Ze(s), e =
|
|
3169
|
+
const s = tl(Ge), { itemData: l } = Ze(s), e = j([]);
|
|
3170
3170
|
we(
|
|
3171
3171
|
() => l.value,
|
|
3172
3172
|
() => {
|
|
3173
3173
|
var r;
|
|
3174
|
-
!l.value || ((r = l.value) == null ? void 0 : r.length) === 0 ? e.value = [] : e.value =
|
|
3174
|
+
!l.value || ((r = l.value) == null ? void 0 : r.length) === 0 ? e.value = [] : e.value = c(l.value);
|
|
3175
3175
|
},
|
|
3176
3176
|
{ deep: !0, immediate: !0 }
|
|
3177
3177
|
);
|
|
@@ -3193,7 +3193,7 @@ const rs = /* @__PURE__ */ Ce(ss, [["render", os]]), ts = { class: "module conte
|
|
|
3193
3193
|
])) : Se("", !0);
|
|
3194
3194
|
};
|
|
3195
3195
|
}
|
|
3196
|
-
}, Gs = /* @__PURE__ */ Ce(zs, [["__scopeId", "data-v-a59b819d"]]), Ms = { class: "tabs-header" }, Zs = { class: "tabs-list" }, Hs = { class: "tab-name" }, Ks = { class: "tab-actions" }, qs = ["onClick"], Qs = ["onClick"], Xs = { class: "model-operate" },
|
|
3196
|
+
}, Gs = /* @__PURE__ */ Ce(zs, [["__scopeId", "data-v-a59b819d"]]), Ms = { class: "tabs-header" }, Zs = { class: "tabs-list" }, Hs = { class: "tab-name" }, Ks = { class: "tab-actions" }, qs = ["onClick"], Qs = ["onClick"], Xs = ["onClick"], Ys = { class: "model-operate" }, eo = { class: "model-select" }, lo = { class: "model-fill" }, ao = {
|
|
3197
3197
|
__name: "operate",
|
|
3198
3198
|
props: {
|
|
3199
3199
|
itemContents: {
|
|
@@ -3203,106 +3203,137 @@ const rs = /* @__PURE__ */ Ce(ss, [["render", os]]), ts = { class: "module conte
|
|
|
3203
3203
|
},
|
|
3204
3204
|
emits: ["change"],
|
|
3205
3205
|
setup(a, { emit: s }) {
|
|
3206
|
-
const l = a, e = s, n =
|
|
3206
|
+
const l = a, e = s, n = j([]), r = j(!1), p = j(""), i = j({ title: "" }), _ = j(-1), v = j(!1), y = j(-1), T = () => {
|
|
3207
3207
|
p.value = "新增标签页", i.value.title = "", _.value = -1, r.value = !0;
|
|
3208
|
-
},
|
|
3209
|
-
p.value = "修改标签页", i.value.title = n.value[
|
|
3210
|
-
},
|
|
3211
|
-
n.value.splice(
|
|
3212
|
-
},
|
|
3208
|
+
}, $ = (C) => {
|
|
3209
|
+
p.value = "修改标签页", i.value.title = n.value[C].title, _.value = C, r.value = !0;
|
|
3210
|
+
}, I = (C) => {
|
|
3211
|
+
n.value.splice(C, 1), h();
|
|
3212
|
+
}, g = () => {
|
|
3213
3213
|
i.value.title.trim() && (_.value === -1 ? n.value.push({
|
|
3214
3214
|
title: i.value.title,
|
|
3215
3215
|
value: i.value.title,
|
|
3216
3216
|
label: i.value.title,
|
|
3217
3217
|
children: []
|
|
3218
|
-
}) : (n.value[_.value].title = i.value.title, n.value[_.value].value = i.value.title, n.value[_.value].label = i.value.title), r.value = !1,
|
|
3219
|
-
},
|
|
3220
|
-
v.value = !0;
|
|
3221
|
-
},
|
|
3222
|
-
const
|
|
3223
|
-
console.log(
|
|
3224
|
-
|
|
3225
|
-
|
|
3218
|
+
}) : (n.value[_.value].title = i.value.title, n.value[_.value].value = i.value.title, n.value[_.value].label = i.value.title), r.value = !1, h());
|
|
3219
|
+
}, S = (C) => {
|
|
3220
|
+
y.value = C, v.value = !0;
|
|
3221
|
+
}, d = () => {
|
|
3222
|
+
const C = tl(Ge), { itemData: o } = Ze(C);
|
|
3223
|
+
console.log(o.value, 12222), y.value >= 0 && y.value < n.value.length && (n.value[y.value].children = [
|
|
3224
|
+
{
|
|
3225
|
+
type: "Form",
|
|
3226
|
+
content: {
|
|
3227
|
+
rowContents: [
|
|
3228
|
+
{
|
|
3229
|
+
label: "宽度(%):",
|
|
3230
|
+
prop: "signPadWidth",
|
|
3231
|
+
type: "number",
|
|
3232
|
+
value: "30"
|
|
3233
|
+
},
|
|
3234
|
+
{
|
|
3235
|
+
label: "弹窗名称:",
|
|
3236
|
+
prop: "dialogTitle",
|
|
3237
|
+
type: "input",
|
|
3238
|
+
value: ""
|
|
3239
|
+
},
|
|
3240
|
+
{
|
|
3241
|
+
label: "弹窗宽度(%):",
|
|
3242
|
+
prop: "dialogWidth",
|
|
3243
|
+
type: "number",
|
|
3244
|
+
value: "30"
|
|
3245
|
+
}
|
|
3246
|
+
],
|
|
3247
|
+
isEnableWrap: !1,
|
|
3248
|
+
isButtonRow: !1
|
|
3249
|
+
},
|
|
3250
|
+
value: ""
|
|
3251
|
+
}
|
|
3252
|
+
]), v.value = !1, h();
|
|
3253
|
+
}, h = () => {
|
|
3254
|
+
const C = [
|
|
3226
3255
|
{
|
|
3227
3256
|
key: "stepList",
|
|
3228
3257
|
contents: n.value
|
|
3229
3258
|
}
|
|
3230
3259
|
];
|
|
3231
|
-
e("change",
|
|
3260
|
+
e("change", C);
|
|
3232
3261
|
};
|
|
3233
3262
|
return we(
|
|
3234
3263
|
() => l.itemContents,
|
|
3235
|
-
(
|
|
3236
|
-
if (
|
|
3237
|
-
const
|
|
3238
|
-
|
|
3239
|
-
title:
|
|
3240
|
-
value:
|
|
3241
|
-
label:
|
|
3242
|
-
children:
|
|
3264
|
+
(C) => {
|
|
3265
|
+
if (C && C.length > 0) {
|
|
3266
|
+
const o = C.find((u) => u.key === "stepList");
|
|
3267
|
+
o && o.contents && (n.value = o.contents.map((u) => ({
|
|
3268
|
+
title: u.title || "",
|
|
3269
|
+
value: u.value || u.title || "",
|
|
3270
|
+
label: u.label || u.title || "",
|
|
3271
|
+
children: u.children || []
|
|
3243
3272
|
})));
|
|
3244
3273
|
}
|
|
3245
3274
|
},
|
|
3246
|
-
{ immediate: !0 }
|
|
3247
|
-
), (
|
|
3248
|
-
const
|
|
3275
|
+
{ immediate: !0, deep: !0 }
|
|
3276
|
+
), (C, o) => {
|
|
3277
|
+
const u = be("svg-icon"), t = be("el-input"), b = be("el-form-item"), U = be("el-form");
|
|
3249
3278
|
return P(), z("div", null, [
|
|
3250
3279
|
x("div", Ms, [
|
|
3251
|
-
|
|
3252
|
-
x("button", { onClick:
|
|
3253
|
-
V(
|
|
3280
|
+
o[8] || (o[8] = x("h4", null, "标签页管理", -1)),
|
|
3281
|
+
x("button", { onClick: T }, [
|
|
3282
|
+
V(u, {
|
|
3254
3283
|
name: "Plus",
|
|
3255
3284
|
style: { width: "14px", height: "14px", "margin-right": "4px" }
|
|
3256
3285
|
}),
|
|
3257
|
-
|
|
3286
|
+
o[7] || (o[7] = ze(" 新增标签页 "))
|
|
3258
3287
|
])
|
|
3259
3288
|
]),
|
|
3260
3289
|
x("div", Zs, [
|
|
3261
|
-
(P(!0), z(he, null, ge(n.value, (
|
|
3290
|
+
(P(!0), z(he, null, ge(n.value, (F, R) => (P(), z("div", {
|
|
3262
3291
|
class: "tab-item",
|
|
3263
|
-
key:
|
|
3292
|
+
key: R
|
|
3264
3293
|
}, [
|
|
3265
|
-
x("span", Hs, q(
|
|
3294
|
+
x("span", Hs, q(F.title), 1),
|
|
3266
3295
|
x("div", Ks, [
|
|
3267
3296
|
x("button", {
|
|
3268
|
-
onClick: (
|
|
3297
|
+
onClick: (se) => $(R)
|
|
3269
3298
|
}, "修改标题", 8, qs),
|
|
3270
|
-
x("button", { onClick: k }, "布局调整"),
|
|
3271
3299
|
x("button", {
|
|
3272
|
-
onClick: (
|
|
3273
|
-
}, "
|
|
3300
|
+
onClick: (se) => S(R)
|
|
3301
|
+
}, "布局调整", 8, Qs),
|
|
3302
|
+
x("button", {
|
|
3303
|
+
onClick: (se) => I(R)
|
|
3304
|
+
}, "删除", 8, Xs)
|
|
3274
3305
|
])
|
|
3275
3306
|
]))), 128))
|
|
3276
3307
|
]),
|
|
3277
3308
|
V(Ie, {
|
|
3278
3309
|
modelValue: r.value,
|
|
3279
|
-
"onUpdate:modelValue":
|
|
3310
|
+
"onUpdate:modelValue": o[2] || (o[2] = (F) => r.value = F),
|
|
3280
3311
|
title: p.value,
|
|
3281
|
-
onBeforeDestroy:
|
|
3312
|
+
onBeforeDestroy: o[3] || (o[3] = (F) => r.value = !1)
|
|
3282
3313
|
}, {
|
|
3283
3314
|
footer: ne(() => [
|
|
3284
3315
|
x("button", {
|
|
3285
|
-
onClick:
|
|
3316
|
+
onClick: o[1] || (o[1] = (F) => r.value = !1)
|
|
3286
3317
|
}, "取消"),
|
|
3287
3318
|
x("button", {
|
|
3288
3319
|
type: "primary",
|
|
3289
|
-
onClick:
|
|
3320
|
+
onClick: g
|
|
3290
3321
|
}, "确定")
|
|
3291
3322
|
]),
|
|
3292
3323
|
default: ne(() => [
|
|
3293
|
-
V(
|
|
3324
|
+
V(U, {
|
|
3294
3325
|
model: i.value,
|
|
3295
3326
|
"label-width": "80px"
|
|
3296
3327
|
}, {
|
|
3297
3328
|
default: ne(() => [
|
|
3298
|
-
V(
|
|
3329
|
+
V(b, {
|
|
3299
3330
|
label: "标签名称",
|
|
3300
3331
|
required: ""
|
|
3301
3332
|
}, {
|
|
3302
3333
|
default: ne(() => [
|
|
3303
|
-
V(
|
|
3334
|
+
V(t, {
|
|
3304
3335
|
modelValue: i.value.title,
|
|
3305
|
-
"onUpdate:modelValue":
|
|
3336
|
+
"onUpdate:modelValue": o[0] || (o[0] = (F) => i.value.title = F),
|
|
3306
3337
|
placeholder: "请输入标签页名称"
|
|
3307
3338
|
}, null, 8, ["modelValue"])
|
|
3308
3339
|
]),
|
|
@@ -3316,29 +3347,29 @@ const rs = /* @__PURE__ */ Ce(ss, [["render", os]]), ts = { class: "module conte
|
|
|
3316
3347
|
}, 8, ["modelValue", "title"]),
|
|
3317
3348
|
V(Ie, {
|
|
3318
3349
|
modelValue: v.value,
|
|
3319
|
-
"onUpdate:modelValue":
|
|
3350
|
+
"onUpdate:modelValue": o[5] || (o[5] = (F) => v.value = F),
|
|
3320
3351
|
title: "布局调整",
|
|
3321
3352
|
fullScreen: "",
|
|
3322
|
-
onBeforeDestroy:
|
|
3353
|
+
onBeforeDestroy: o[6] || (o[6] = (F) => v.value = !1)
|
|
3323
3354
|
}, {
|
|
3324
3355
|
footer: ne(() => [
|
|
3325
3356
|
x("button", {
|
|
3326
|
-
onClick:
|
|
3357
|
+
onClick: o[4] || (o[4] = (F) => v.value = !1)
|
|
3327
3358
|
}, "取消"),
|
|
3328
|
-
x("button", { onClick:
|
|
3359
|
+
x("button", { onClick: d }, "确定")
|
|
3329
3360
|
]),
|
|
3330
3361
|
default: ne(() => [
|
|
3331
|
-
x("div",
|
|
3332
|
-
x("div",
|
|
3362
|
+
x("div", Ys, [
|
|
3363
|
+
x("div", eo, [
|
|
3333
3364
|
V(Ds)
|
|
3334
3365
|
]),
|
|
3335
3366
|
(P(), z("div", {
|
|
3336
3367
|
class: "model-show",
|
|
3337
|
-
key:
|
|
3368
|
+
key: C.innerWidth
|
|
3338
3369
|
}, [
|
|
3339
3370
|
V(Gs)
|
|
3340
3371
|
])),
|
|
3341
|
-
x("div",
|
|
3372
|
+
x("div", lo, [
|
|
3342
3373
|
V(Js)
|
|
3343
3374
|
])
|
|
3344
3375
|
])
|
|
@@ -3348,7 +3379,7 @@ const rs = /* @__PURE__ */ Ce(ss, [["render", os]]), ts = { class: "module conte
|
|
|
3348
3379
|
]);
|
|
3349
3380
|
};
|
|
3350
3381
|
}
|
|
3351
|
-
},
|
|
3382
|
+
}, no = /* @__PURE__ */ Ce(ao, [["__scopeId", "data-v-3b82a779"]]), so = j([
|
|
3352
3383
|
{
|
|
3353
3384
|
name: "表格",
|
|
3354
3385
|
type: "table",
|
|
@@ -3397,7 +3428,7 @@ const rs = /* @__PURE__ */ Ce(ss, [["render", os]]), ts = { class: "module conte
|
|
|
3397
3428
|
comp: "Tabs",
|
|
3398
3429
|
icon: "Tabs"
|
|
3399
3430
|
}
|
|
3400
|
-
]),
|
|
3431
|
+
]), oo = {
|
|
3401
3432
|
TABLE: oa,
|
|
3402
3433
|
FORM: $l,
|
|
3403
3434
|
TABLEOPERATE: gn,
|
|
@@ -3416,11 +3447,11 @@ const rs = /* @__PURE__ */ Ce(ss, [["render", os]]), ts = { class: "module conte
|
|
|
3416
3447
|
SIGNATUREOPERATE: ds,
|
|
3417
3448
|
AVATARUPLOADOPERATE: rs,
|
|
3418
3449
|
TABS: xs,
|
|
3419
|
-
TABSOPERATE:
|
|
3450
|
+
TABSOPERATE: no
|
|
3420
3451
|
// 添加其他组件...
|
|
3421
3452
|
};
|
|
3422
3453
|
function vl(a) {
|
|
3423
|
-
return
|
|
3454
|
+
return oo[a == null ? void 0 : a.toUpperCase()] || null;
|
|
3424
3455
|
}
|
|
3425
3456
|
const pe = [
|
|
3426
3457
|
{
|
|
@@ -3488,7 +3519,7 @@ const pe = [
|
|
|
3488
3519
|
key: "GroupContents",
|
|
3489
3520
|
value: "groupContents"
|
|
3490
3521
|
}
|
|
3491
|
-
], He =
|
|
3522
|
+
], He = j(0), ro = (a) => {
|
|
3492
3523
|
const [s, l] = a.split(/=(.+)/), e = s.replace(/['"]/g, "").trim(), n = l.replace(/^['"]|['"]$/g, "");
|
|
3493
3524
|
return { key: e, value: n };
|
|
3494
3525
|
}, nl = (a) => {
|
|
@@ -3497,29 +3528,29 @@ const pe = [
|
|
|
3497
3528
|
} catch {
|
|
3498
3529
|
return !1;
|
|
3499
3530
|
}
|
|
3500
|
-
},
|
|
3531
|
+
}, to = (a) => a.includes("$") && a.trim().endsWith("(") ? a + ")" : a, io = (a) => {
|
|
3501
3532
|
let s = a;
|
|
3502
3533
|
const l = [];
|
|
3503
3534
|
let e = "";
|
|
3504
3535
|
for (const n of s)
|
|
3505
|
-
n.includes("{") || e.includes("{") || n.includes("[") || e.includes("[") || n.includes("【") || e.includes("【") || n.includes("(") || e.includes("(") || n.includes("(") || e.includes("(") || n.includes("/*") || e.includes("/*") ? (e += n.trim(),
|
|
3536
|
+
n.includes("{") || e.includes("{") || n.includes("[") || e.includes("[") || n.includes("【") || e.includes("【") || n.includes("(") || e.includes("(") || n.includes("(") || e.includes("(") || n.includes("/*") || e.includes("/*") ? (e += n.trim(), c(e).split("{").length - 1 === c(e).split("}").length - 1 && c(e).split("【").length - 1 === c(e).split("】").length - 1 && c(e).split("[").length - 1 === c(e).split("]").length - 1 && c(e).split("(").length - 1 === c(e).split(")").length - 1 && c(e).split("(").length - 1 === c(e).split(")").length - 1 && c(e).split("/*").length - 1 === c(e).split("*/").length - 1 && (l.push(e), e = "")) : l.push(n.trim());
|
|
3506
3537
|
return l == null ? void 0 : l.filter((n) => n.includes("{"));
|
|
3507
|
-
},
|
|
3538
|
+
}, uo = (a) => {
|
|
3508
3539
|
var l;
|
|
3509
3540
|
let s = [];
|
|
3510
|
-
return (l =
|
|
3541
|
+
return (l = io(a.slice(1, -1))) == null || l.forEach((e) => {
|
|
3511
3542
|
var r, p, i, _;
|
|
3512
3543
|
let n = ((p = (r = e.slice(1, -1)) == null ? void 0 : r.split(",")) == null ? void 0 : p.length) ?? 1;
|
|
3513
3544
|
(_ = (i = e.slice(1, -1)) == null ? void 0 : i.split(",")) == null || _.forEach((v) => {
|
|
3514
|
-
var I,
|
|
3515
|
-
let
|
|
3545
|
+
var I, g, S, d, h, C, o, u, t, b, U, F, R;
|
|
3546
|
+
let y = v == null ? void 0 : v.split(":"), T = y != null && y[0] ? (y == null ? void 0 : y[1].split("$").length) - 1 === 1 ? ((I = y == null ? void 0 : y[0]) == null ? void 0 : I.replace(/^"(.*)"$/, "$1")) + ((g = y == null ? void 0 : y[1]) == null ? void 0 : g.replace(/^"(.*)"$/, "$1")) : Array.isArray((d = (S = y == null ? void 0 : y[1]) == null ? void 0 : S.replace(/^"(.*)"$/, "$1")) == null ? void 0 : d.split("(")) && ((o = (C = (h = y == null ? void 0 : y[1]) == null ? void 0 : h.replace(/^"(.*)"$/, "$1")) == null ? void 0 : C.split("(")) == null ? void 0 : o.length) > 1 ? ((u = y == null ? void 0 : y[0]) == null ? void 0 : u.replace(/^"(.*)"$/, "$1")) + ((U = (b = (t = y == null ? void 0 : y[1]) == null ? void 0 : t.replace(/^"(.*)"$/, "$1")) == null ? void 0 : b.split("(")) == null ? void 0 : U[0]) + "()" : (F = y == null ? void 0 : y[0]) == null ? void 0 : F.replace(/^"(.*)"$/, "$1") : "", $ = (y == null ? void 0 : y[1].split("$").length) - 1 === 0 ? (R = y == null ? void 0 : y[1]) == null ? void 0 : R.replace(/^"(.*)"$/, "$1") : "";
|
|
3516
3547
|
He.value++, s.push({
|
|
3517
3548
|
id: He.value,
|
|
3518
3549
|
key: T,
|
|
3519
3550
|
value: $,
|
|
3520
3551
|
// 如果值为空,则key设为空字符串,否则保留原值
|
|
3521
3552
|
width: n,
|
|
3522
|
-
extraContent:
|
|
3553
|
+
extraContent: y == null ? void 0 : y[1]
|
|
3523
3554
|
});
|
|
3524
3555
|
});
|
|
3525
3556
|
}), s;
|
|
@@ -3527,25 +3558,25 @@ const pe = [
|
|
|
3527
3558
|
var s, l;
|
|
3528
3559
|
try {
|
|
3529
3560
|
const e = a.replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",").replace(/:/g, ":").replace(/:\s*(?=,|}|$)/g, ': ""');
|
|
3530
|
-
if (
|
|
3531
|
-
let n =
|
|
3561
|
+
if (c(e).split("{").length - 1 > 1) {
|
|
3562
|
+
let n = c(e).replace(/^\{(.*)\}$/, "[$1]");
|
|
3532
3563
|
if (nl(n) && !n.includes("$") || (n = n.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g, '"$1$$$2"')), nl(n)) {
|
|
3533
3564
|
const r = JSON.parse(n);
|
|
3534
3565
|
let p = [];
|
|
3535
3566
|
return r == null || r.forEach((i) => {
|
|
3536
3567
|
var _;
|
|
3537
|
-
(_ = Object.entries(
|
|
3568
|
+
(_ = Object.entries(c(i))) == null || _.forEach((v) => {
|
|
3538
3569
|
He.value++, p.push({
|
|
3539
3570
|
id: He.value,
|
|
3540
3571
|
key: (v == null ? void 0 : v[0]) ?? "",
|
|
3541
3572
|
value: (v == null ? void 0 : v[1]) === "" ? "" : v == null ? void 0 : v[1],
|
|
3542
3573
|
// 如果值为空,则key设为空字符串,否则保留原值
|
|
3543
|
-
width: Object.keys(
|
|
3574
|
+
width: Object.keys(c(i)).length
|
|
3544
3575
|
});
|
|
3545
3576
|
});
|
|
3546
3577
|
}), p;
|
|
3547
3578
|
} else
|
|
3548
|
-
return e.trim().startsWith("{{") ?
|
|
3579
|
+
return e.trim().startsWith("{{") ? uo(e.trim()) : pl(n);
|
|
3549
3580
|
} else if (nl(e)) {
|
|
3550
3581
|
const n = JSON.parse(e);
|
|
3551
3582
|
return Object.entries(n).map(([r, p]) => (He.value++, {
|
|
@@ -3558,7 +3589,7 @@ const pe = [
|
|
|
3558
3589
|
} else
|
|
3559
3590
|
return ((s = pl(e)) == null ? void 0 : s.length) === 0 ? e : (l = pl(e)) == null ? void 0 : l.map((n) => ({
|
|
3560
3591
|
label: n.label,
|
|
3561
|
-
method:
|
|
3592
|
+
method: to(n.method)
|
|
3562
3593
|
}));
|
|
3563
3594
|
} catch (e) {
|
|
3564
3595
|
return console.error("转换失败:", e), [];
|
|
@@ -3574,8 +3605,8 @@ const pe = [
|
|
|
3574
3605
|
l += e[0].length;
|
|
3575
3606
|
let r = "", p = 0, i = !1, _ = "";
|
|
3576
3607
|
for (let v = l; v < a.length; v++) {
|
|
3577
|
-
const
|
|
3578
|
-
if ((
|
|
3608
|
+
const y = a[v];
|
|
3609
|
+
if ((y === '"' || y === "'") && !i ? (i = !0, _ = y) : y === _ && i && (i = !1, _ = ""), !i && ((y === "{" || y === "(" || y === "[") && p++, (y === "}" || y === ")" || y === "]") && p--, y === "," && p === 0 || v === a.length - 1)) {
|
|
3579
3610
|
r = a.slice(l, v + 1).trim(), l = v + 1;
|
|
3580
3611
|
break;
|
|
3581
3612
|
}
|
|
@@ -3586,44 +3617,44 @@ const pe = [
|
|
|
3586
3617
|
});
|
|
3587
3618
|
}
|
|
3588
3619
|
return s;
|
|
3589
|
-
},
|
|
3620
|
+
}, co = (a, s) => {
|
|
3590
3621
|
try {
|
|
3591
3622
|
if (pe != null && pe.find((l) => (l == null ? void 0 : l.key) === s))
|
|
3592
3623
|
return a.replace(/['"]/g, "").trim();
|
|
3593
|
-
if (
|
|
3594
|
-
const l =
|
|
3624
|
+
if (c(a).split("[").length - 1 > 1) {
|
|
3625
|
+
const l = c(a).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
|
|
3595
3626
|
return JSON.parse(l);
|
|
3596
3627
|
} else {
|
|
3597
|
-
const l =
|
|
3628
|
+
const l = c(a).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",");
|
|
3598
3629
|
if (nl(l)) {
|
|
3599
3630
|
const e = JSON.parse(l);
|
|
3600
3631
|
return Array.isArray(e) ? e.map((n) => ({ label: n })) : e;
|
|
3601
3632
|
} else
|
|
3602
|
-
return Vl(
|
|
3633
|
+
return Vl(c(a));
|
|
3603
3634
|
}
|
|
3604
3635
|
} catch (l) {
|
|
3605
3636
|
return console.error("解析失败:", l), a;
|
|
3606
3637
|
}
|
|
3607
|
-
},
|
|
3638
|
+
}, po = (a) => ({ [a == null ? void 0 : a.key]: co(a == null ? void 0 : a.value, a == null ? void 0 : a.key) }), fo = (a) => {
|
|
3608
3639
|
try {
|
|
3609
|
-
if (
|
|
3610
|
-
const s =
|
|
3640
|
+
if (c(a).split("[").length - 1 > 1) {
|
|
3641
|
+
const s = c(a).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
|
|
3611
3642
|
return JSON.parse(s);
|
|
3612
3643
|
} else
|
|
3613
|
-
return JSON.parse(
|
|
3644
|
+
return JSON.parse(c(a).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",")).map((l) => ({ label: l }));
|
|
3614
3645
|
} catch (s) {
|
|
3615
3646
|
return console.error("解析失败:", s), a;
|
|
3616
3647
|
}
|
|
3617
|
-
},
|
|
3648
|
+
}, ho = (a) => {
|
|
3618
3649
|
const s = a.match(/\(([^)]+)\)/);
|
|
3619
3650
|
return s ? s[1] : "";
|
|
3620
|
-
},
|
|
3651
|
+
}, mo = (a) => {
|
|
3621
3652
|
const s = a.match(/^([^(]+)\s*\(/);
|
|
3622
3653
|
return s ? s[1].trim() : a;
|
|
3623
|
-
}, wl = (a) => a.replace(/'/g, "").replace(/"/g, "").replace(/{|}/g, "").split(":").map((s) => s.trim()).filter((s) => s).join("/"),
|
|
3654
|
+
}, wl = (a) => a.replace(/'/g, "").replace(/"/g, "").replace(/{|}/g, "").split(":").map((s) => s.trim()).filter((s) => s).join("/"), vo = (a) => {
|
|
3624
3655
|
var p, i;
|
|
3625
3656
|
let s = [], l = [];
|
|
3626
|
-
const e = (p =
|
|
3657
|
+
const e = (p = c(a)) == null ? void 0 : p.map((_) => _ == null ? void 0 : _.key), n = [...new Set((i = c(e)) == null ? void 0 : i.map((_) => ho(_)))];
|
|
3627
3658
|
n == null || n.forEach((_) => {
|
|
3628
3659
|
let v = a == null ? void 0 : a.filter(($) => $.key.includes(_));
|
|
3629
3660
|
v == null || v.forEach(($) => {
|
|
@@ -3632,11 +3663,11 @@ const pe = [
|
|
|
3632
3663
|
value: wl($ == null ? void 0 : $.value)
|
|
3633
3664
|
}), l.push(wl($ == null ? void 0 : $.value)));
|
|
3634
3665
|
});
|
|
3635
|
-
let
|
|
3636
|
-
|
|
3666
|
+
let y = a == null ? void 0 : a.filter(($) => $.key.includes(_) && !($ != null && $.key.includes("Menus")));
|
|
3667
|
+
y = y == null ? void 0 : y.map(($) => ($.key = mo($.key), $));
|
|
3637
3668
|
const T = {
|
|
3638
3669
|
key: "GroupContents",
|
|
3639
|
-
value:
|
|
3670
|
+
value: y
|
|
3640
3671
|
};
|
|
3641
3672
|
s.push(T);
|
|
3642
3673
|
});
|
|
@@ -3654,16 +3685,16 @@ const pe = [
|
|
|
3654
3685
|
let p = [];
|
|
3655
3686
|
if (p.push(n), ((i = Object.keys(r)) == null ? void 0 : i.length) > 0) {
|
|
3656
3687
|
let v = [];
|
|
3657
|
-
(_ = Wl(r)) == null || _.forEach((
|
|
3658
|
-
v.push(
|
|
3659
|
-
}), v == null || v.forEach((
|
|
3660
|
-
p.push(
|
|
3688
|
+
(_ = Wl(r)) == null || _.forEach((y) => {
|
|
3689
|
+
v.push(y);
|
|
3690
|
+
}), v == null || v.forEach((y) => {
|
|
3691
|
+
p.push(y);
|
|
3661
3692
|
});
|
|
3662
3693
|
}
|
|
3663
3694
|
e.push(p);
|
|
3664
3695
|
}), e;
|
|
3665
3696
|
}
|
|
3666
|
-
},
|
|
3697
|
+
}, yo = (a, s) => {
|
|
3667
3698
|
var e;
|
|
3668
3699
|
let l = s;
|
|
3669
3700
|
return Array.isArray(Object.keys(a)) && ((e = Object.entries(a)) == null || e.forEach(([n, r]) => {
|
|
@@ -3676,7 +3707,7 @@ const pe = [
|
|
|
3676
3707
|
}
|
|
3677
3708
|
l.push(p);
|
|
3678
3709
|
})), l;
|
|
3679
|
-
},
|
|
3710
|
+
}, bo = (a) => {
|
|
3680
3711
|
const s = {};
|
|
3681
3712
|
return a.forEach((e) => {
|
|
3682
3713
|
const n = e.split("/");
|
|
@@ -3684,109 +3715,109 @@ const pe = [
|
|
|
3684
3715
|
n.forEach((p) => {
|
|
3685
3716
|
r[p] || (r[p] = {}), r = r[p];
|
|
3686
3717
|
});
|
|
3687
|
-
}),
|
|
3688
|
-
}, zl = (a) =>
|
|
3718
|
+
}), yo(s, []);
|
|
3719
|
+
}, zl = (a) => bo(a), rr = (a) => {
|
|
3689
3720
|
var s, l, e, n, r, p, i, _;
|
|
3690
3721
|
try {
|
|
3691
|
-
const v = bl((l = (s =
|
|
3692
|
-
if (((r = T == null ? void 0 : T.find((
|
|
3722
|
+
const v = bl((l = (s = c(a)) == null ? void 0 : s.replace("(", "(")) == null ? void 0 : l.replace(")", ")")), y = (n = (e = c(v)) == null ? void 0 : e.filter((g) => !g.includes("/*"))) == null ? void 0 : n.map((g) => ro(g)), T = vo(y), $ = [];
|
|
3723
|
+
if (((r = T == null ? void 0 : T.find((g) => (g == null ? void 0 : g.key) === "Menus")) == null ? void 0 : r.value.length) === 0)
|
|
3693
3724
|
return !1;
|
|
3694
|
-
(p =
|
|
3695
|
-
var
|
|
3696
|
-
pe != null && pe.find((
|
|
3725
|
+
(p = c(T)) == null || p.forEach((g) => {
|
|
3726
|
+
var S, d, h, C, o;
|
|
3727
|
+
pe != null && pe.find((u) => {
|
|
3697
3728
|
var t, b;
|
|
3698
|
-
return ((t =
|
|
3729
|
+
return ((t = u == null ? void 0 : u.key) == null ? void 0 : t.toUpperCase()) === ((b = g == null ? void 0 : g.key) == null ? void 0 : b.toUpperCase());
|
|
3699
3730
|
}) ? $.push({
|
|
3700
|
-
comp: ((
|
|
3731
|
+
comp: ((S = pe == null ? void 0 : pe.find((u) => {
|
|
3701
3732
|
var t, b;
|
|
3702
|
-
return ((t =
|
|
3703
|
-
})) == null ? void 0 :
|
|
3704
|
-
name: (
|
|
3733
|
+
return ((t = u == null ? void 0 : u.key) == null ? void 0 : t.toUpperCase()) === ((b = g == null ? void 0 : g.key) == null ? void 0 : b.toUpperCase());
|
|
3734
|
+
})) == null ? void 0 : S.value) ?? "",
|
|
3735
|
+
name: (d = g == null ? void 0 : g.value) == null ? void 0 : d.replace(/[’]|[‘]|[']/g, ""),
|
|
3705
3736
|
compData: []
|
|
3706
|
-
}) : ce != null && ce.find((
|
|
3737
|
+
}) : ce != null && ce.find((u) => {
|
|
3707
3738
|
var t, b;
|
|
3708
|
-
return ((t =
|
|
3709
|
-
}) && (($ == null ? void 0 : $.length) === 0 && (
|
|
3739
|
+
return ((t = u == null ? void 0 : u.key) == null ? void 0 : t.toUpperCase()) === ((b = g == null ? void 0 : g.key) == null ? void 0 : b.toUpperCase());
|
|
3740
|
+
}) && (($ == null ? void 0 : $.length) === 0 && (h = g.key) != null && h.includes("Menus") && $.push({
|
|
3710
3741
|
comp: "Menu",
|
|
3711
3742
|
name: "",
|
|
3712
3743
|
compData: []
|
|
3713
|
-
}), (
|
|
3714
|
-
key: (o = ce == null ? void 0 : ce.find((
|
|
3744
|
+
}), (C = $ == null ? void 0 : $[($ == null ? void 0 : $.length) - 1]) != null && C.compData && $[($ == null ? void 0 : $.length) - 1].compData.push({
|
|
3745
|
+
key: (o = ce == null ? void 0 : ce.find((u) => {
|
|
3715
3746
|
var t, b;
|
|
3716
|
-
return ((t =
|
|
3747
|
+
return ((t = u == null ? void 0 : u.key) == null ? void 0 : t.toUpperCase()) === ((b = g == null ? void 0 : g.key) == null ? void 0 : b.toUpperCase());
|
|
3717
3748
|
})) == null ? void 0 : o.value,
|
|
3718
|
-
contents:
|
|
3749
|
+
contents: g == null ? void 0 : g.value
|
|
3719
3750
|
}));
|
|
3720
3751
|
});
|
|
3721
|
-
let I = (i =
|
|
3722
|
-
var
|
|
3723
|
-
return
|
|
3724
|
-
var
|
|
3725
|
-
if ((
|
|
3726
|
-
|
|
3727
|
-
else if ((
|
|
3728
|
-
|
|
3729
|
-
else if (Array.isArray(
|
|
3730
|
-
|
|
3731
|
-
else if (((t = (
|
|
3732
|
-
|
|
3752
|
+
let I = (i = c($)) == null ? void 0 : i.map((g) => {
|
|
3753
|
+
var S;
|
|
3754
|
+
return g != null && g.compData && (g.compData = (S = g == null ? void 0 : g.compData) == null ? void 0 : S.map((d) => {
|
|
3755
|
+
var h, C, o, u, t, b, U, F, R, se, oe;
|
|
3756
|
+
if ((d == null ? void 0 : d.key) === "formFlex")
|
|
3757
|
+
d.contents = ((C = (h = d.contents) == null ? void 0 : h.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : C.toUpperCase()) !== "Vertical".toUpperCase();
|
|
3758
|
+
else if ((d == null ? void 0 : d.key) === "groupContents")
|
|
3759
|
+
d.contents = (o = c(d.contents)) == null ? void 0 : o.map((f) => po(c(f)));
|
|
3760
|
+
else if (Array.isArray(d == null ? void 0 : d.contents))
|
|
3761
|
+
d.contents = zl(d.contents);
|
|
3762
|
+
else if (((t = (u = d == null ? void 0 : d.contents) == null ? void 0 : u.trim()) != null && t.startsWith("[") || (U = (b = d.contents) == null ? void 0 : b.trim()) != null && U.startsWith("【")) && ((R = (F = d.contents) == null ? void 0 : F.trim()) != null && R.endsWith("]") || (oe = (se = d.contents) == null ? void 0 : se.trim()) != null && oe.endsWith("】")))
|
|
3763
|
+
d.contents = fo(c(d.contents));
|
|
3733
3764
|
else {
|
|
3734
|
-
if (!
|
|
3735
|
-
|
|
3765
|
+
if (!d.contents) return;
|
|
3766
|
+
d.contents = Vl(c(d.contents));
|
|
3736
3767
|
}
|
|
3737
|
-
return
|
|
3738
|
-
})),
|
|
3768
|
+
return d;
|
|
3769
|
+
})), g;
|
|
3739
3770
|
});
|
|
3740
|
-
return I = (_ =
|
|
3741
|
-
var
|
|
3742
|
-
return (
|
|
3743
|
-
var
|
|
3744
|
-
let
|
|
3745
|
-
return (
|
|
3746
|
-
var
|
|
3747
|
-
if (pe != null && pe.find((
|
|
3748
|
-
var G, X,
|
|
3749
|
-
return ((G =
|
|
3771
|
+
return I = (_ = c(I)) == null ? void 0 : _.map((g) => {
|
|
3772
|
+
var S;
|
|
3773
|
+
return (g == null ? void 0 : g.comp) === "Group" && (g.compData = (S = g.compData) == null ? void 0 : S.map((d) => {
|
|
3774
|
+
var C;
|
|
3775
|
+
let h = [];
|
|
3776
|
+
return (C = d.contents) == null || C.forEach((o) => {
|
|
3777
|
+
var u, t, b, U, F, R, se, oe, f, w, O, m;
|
|
3778
|
+
if (pe != null && pe.find((N) => {
|
|
3779
|
+
var G, X, E;
|
|
3780
|
+
return ((G = N == null ? void 0 : N.key) == null ? void 0 : G.toUpperCase()) === ((E = (X = Object.keys(o)) == null ? void 0 : X[0]) == null ? void 0 : E.toUpperCase());
|
|
3750
3781
|
}))
|
|
3751
|
-
|
|
3752
|
-
comp: (
|
|
3753
|
-
var G, X,
|
|
3754
|
-
return ((G =
|
|
3755
|
-
})) == null ? void 0 :
|
|
3782
|
+
h.push({
|
|
3783
|
+
comp: (u = pe == null ? void 0 : pe.find((N) => {
|
|
3784
|
+
var G, X, E;
|
|
3785
|
+
return ((G = N == null ? void 0 : N.key) == null ? void 0 : G.toUpperCase()) === ((E = (X = Object.keys(o)) == null ? void 0 : X[0]) == null ? void 0 : E.toUpperCase());
|
|
3786
|
+
})) == null ? void 0 : u.value,
|
|
3756
3787
|
name: (b = (t = Object.values(o)) == null ? void 0 : t[0]) == null ? void 0 : b.replace(/[’]|[‘]|[']/g, ""),
|
|
3757
3788
|
compData: []
|
|
3758
3789
|
});
|
|
3759
|
-
else if (ce != null && ce.find((
|
|
3760
|
-
var G, X,
|
|
3761
|
-
return ((G =
|
|
3790
|
+
else if (ce != null && ce.find((N) => {
|
|
3791
|
+
var G, X, E;
|
|
3792
|
+
return ((G = N == null ? void 0 : N.key) == null ? void 0 : G.toUpperCase()) === ((E = (X = Object.keys(o)) == null ? void 0 : X[0]) == null ? void 0 : E.toUpperCase());
|
|
3762
3793
|
})) {
|
|
3763
|
-
if ((
|
|
3764
|
-
(
|
|
3765
|
-
key: (
|
|
3766
|
-
var G, X,
|
|
3767
|
-
return ((G =
|
|
3768
|
-
})) == null ? void 0 :
|
|
3794
|
+
if ((h == null ? void 0 : h.length) === 0) return;
|
|
3795
|
+
(U = h == null ? void 0 : h[(h == null ? void 0 : h.length) - 1]) != null && U.compData && h[(h == null ? void 0 : h.length) - 1].compData.push({
|
|
3796
|
+
key: (F = ce == null ? void 0 : ce.find((N) => {
|
|
3797
|
+
var G, X, E;
|
|
3798
|
+
return ((G = N == null ? void 0 : N.key) == null ? void 0 : G.toUpperCase()) === ((E = (X = Object.keys(o)) == null ? void 0 : X[0]) == null ? void 0 : E.toUpperCase());
|
|
3799
|
+
})) == null ? void 0 : F.value,
|
|
3769
3800
|
contents: (R = Object.values(o)) == null ? void 0 : R[0]
|
|
3770
3801
|
});
|
|
3771
3802
|
} else if ((oe = (se = Object.keys(o)) == null ? void 0 : se[0]) != null && oe.includes("$")) {
|
|
3772
|
-
const
|
|
3773
|
-
|
|
3803
|
+
const N = (w = (f = Object.keys(c(o))) == null ? void 0 : f[0]) == null ? void 0 : w.split("$");
|
|
3804
|
+
h[(h == null ? void 0 : h.length) - 1].compData.push({
|
|
3774
3805
|
key: (O = ce == null ? void 0 : ce.find((G) => {
|
|
3775
|
-
var X,
|
|
3776
|
-
return ((X = G == null ? void 0 : G.key) == null ? void 0 : X.toUpperCase()) === ((
|
|
3806
|
+
var X, E;
|
|
3807
|
+
return ((X = G == null ? void 0 : G.key) == null ? void 0 : X.toUpperCase()) === ((E = N == null ? void 0 : N[0]) == null ? void 0 : E.toUpperCase());
|
|
3777
3808
|
})) == null ? void 0 : O.value,
|
|
3778
3809
|
contents: (m = Object.values(o)) == null ? void 0 : m[0],
|
|
3779
|
-
selectLabel:
|
|
3810
|
+
selectLabel: N == null ? void 0 : N[1]
|
|
3780
3811
|
});
|
|
3781
3812
|
}
|
|
3782
3813
|
return o;
|
|
3783
|
-
}),
|
|
3784
|
-
})),
|
|
3814
|
+
}), d.contents = h, d;
|
|
3815
|
+
})), g;
|
|
3785
3816
|
}), I;
|
|
3786
3817
|
} catch {
|
|
3787
3818
|
return !1;
|
|
3788
3819
|
}
|
|
3789
|
-
}, Al =
|
|
3820
|
+
}, Al = j(0), Gl = (a) => {
|
|
3790
3821
|
const s = [];
|
|
3791
3822
|
let l = null;
|
|
3792
3823
|
for (let e = 0; e < a.length; e++) {
|
|
@@ -3819,7 +3850,7 @@ const pe = [
|
|
|
3819
3850
|
}
|
|
3820
3851
|
}
|
|
3821
3852
|
return l;
|
|
3822
|
-
},
|
|
3853
|
+
}, go = (a, s) => {
|
|
3823
3854
|
let l = [];
|
|
3824
3855
|
return a == null || a.forEach((n) => {
|
|
3825
3856
|
n.some((r) => Array.isArray(r)) ? l.push(...n) : l.push(n);
|
|
@@ -3844,9 +3875,9 @@ const pe = [
|
|
|
3844
3875
|
/(\[|\s|,)((?:https?|HTTPS?):\/\/[^\s,\]]+)(\]|,|$)/gi,
|
|
3845
3876
|
'$1"$2"$3'
|
|
3846
3877
|
), s;
|
|
3847
|
-
},
|
|
3878
|
+
}, ko = (a) => {
|
|
3848
3879
|
var l;
|
|
3849
|
-
return a.some((e) => !Array.isArray(e)) ? a : (l =
|
|
3880
|
+
return a.some((e) => !Array.isArray(e)) ? a : (l = c(a)) == null ? void 0 : l.map((e) => {
|
|
3850
3881
|
let n = [];
|
|
3851
3882
|
return e.some((r) => Array.isArray(r)) ? e == null || e.forEach((r) => {
|
|
3852
3883
|
Array.isArray(r) && n.push(hl(r));
|
|
@@ -3860,18 +3891,18 @@ const pe = [
|
|
|
3860
3891
|
n = i[0], e = i[1];
|
|
3861
3892
|
}
|
|
3862
3893
|
}), [n, e];
|
|
3863
|
-
},
|
|
3894
|
+
}, Co = (a, s) => {
|
|
3864
3895
|
let l = a, e = [];
|
|
3865
3896
|
return s.length > 0 ? s == null || s.forEach((n) => {
|
|
3866
3897
|
let r = l == null ? void 0 : l[0];
|
|
3867
3898
|
l.shift();
|
|
3868
|
-
const p = Hl(
|
|
3899
|
+
const p = Hl(c(l), n, r);
|
|
3869
3900
|
r = p[0], l = p[1], e.push(r);
|
|
3870
3901
|
}) : e = l, e;
|
|
3871
3902
|
}, yl = (a, s) => {
|
|
3872
|
-
const l =
|
|
3873
|
-
return
|
|
3874
|
-
},
|
|
3903
|
+
const l = ko(c(a));
|
|
3904
|
+
return Co(l, s);
|
|
3905
|
+
}, _o = (a) => {
|
|
3875
3906
|
const s = [];
|
|
3876
3907
|
let l = 0;
|
|
3877
3908
|
const e = a.length;
|
|
@@ -3897,7 +3928,7 @@ const pe = [
|
|
|
3897
3928
|
});
|
|
3898
3929
|
})), s;
|
|
3899
3930
|
}, Il = (a) => {
|
|
3900
|
-
let s =
|
|
3931
|
+
let s = _o(a);
|
|
3901
3932
|
return s = s == null ? void 0 : s.map((l) => {
|
|
3902
3933
|
var e, n, r, p;
|
|
3903
3934
|
if (l.comp === "Table")
|
|
@@ -3961,8 +3992,8 @@ const pe = [
|
|
|
3961
3992
|
}
|
|
3962
3993
|
return l;
|
|
3963
3994
|
}), s;
|
|
3964
|
-
},
|
|
3965
|
-
var i, _, v,
|
|
3995
|
+
}, $o = (a, s) => {
|
|
3996
|
+
var i, _, v, y, T, $;
|
|
3966
3997
|
const l = [], e = Gl((_ = (i = a == null ? void 0 : a.find((I) => I.key === "tableIndex")) == null ? void 0 : i.value) == null ? void 0 : _[0]);
|
|
3967
3998
|
l.push({
|
|
3968
3999
|
key: "tableIndexColumn",
|
|
@@ -3973,11 +4004,11 @@ const pe = [
|
|
|
3973
4004
|
});
|
|
3974
4005
|
let n = [];
|
|
3975
4006
|
const r = (v = a == null ? void 0 : a.find((I) => I.key === "tableColumns")) == null ? void 0 : v.value;
|
|
3976
|
-
r.length === 1 && !(r != null && r[0].some((I) => Array.isArray(I))) ? n = (
|
|
4007
|
+
r.length === 1 && !(r != null && r[0].some((I) => Array.isArray(I))) ? n = (y = r == null ? void 0 : r[0]) == null ? void 0 : y.map((I) => ({ label: I })) : n = yl((T = a == null ? void 0 : a.find((I) => I.key === "tableColumns")) == null ? void 0 : T.value, e), l.push({
|
|
3977
4008
|
key: "header",
|
|
3978
4009
|
contents: n
|
|
3979
4010
|
});
|
|
3980
|
-
const p =
|
|
4011
|
+
const p = go(($ = a == null ? void 0 : a.find((I) => I.key === "tableContents")) == null ? void 0 : $.value, e);
|
|
3981
4012
|
return l.push({
|
|
3982
4013
|
key: "tableContents",
|
|
3983
4014
|
contents: p
|
|
@@ -3994,7 +4025,7 @@ const pe = [
|
|
|
3994
4025
|
}), el = (a) => {
|
|
3995
4026
|
const s = a.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g, '"$1",$2');
|
|
3996
4027
|
return ql(s).replace(/^"(.*)"$/, "$1");
|
|
3997
|
-
},
|
|
4028
|
+
}, xo = (a) => {
|
|
3998
4029
|
const s = /* @__PURE__ */ new Set();
|
|
3999
4030
|
return a.filter((l) => {
|
|
4000
4031
|
const e = JSON.stringify(l);
|
|
@@ -4003,21 +4034,21 @@ const pe = [
|
|
|
4003
4034
|
}, Dl = (a) => {
|
|
4004
4035
|
var l;
|
|
4005
4036
|
let s = [];
|
|
4006
|
-
return (l =
|
|
4037
|
+
return (l = c(a)) == null || l.forEach((e) => {
|
|
4007
4038
|
var n;
|
|
4008
4039
|
(n = e.contents) == null || n.forEach((r) => {
|
|
4009
4040
|
s.push(r);
|
|
4010
4041
|
});
|
|
4011
|
-
}), s =
|
|
4042
|
+
}), s = xo(s), s.push({
|
|
4012
4043
|
label: "操作"
|
|
4013
4044
|
}), [s];
|
|
4014
|
-
},
|
|
4045
|
+
}, wo = (a, s) => a.reduce((l, e, n) => {
|
|
4015
4046
|
const r = Math.floor(n / s);
|
|
4016
4047
|
return l[r] || (l[r] = []), l[r].push(e), l;
|
|
4017
|
-
}, []), Ql = (a) => a.reduce((s, l) => l.children && l.children.length > 0 ? s + Ql(l.children) : s + 1, 0),
|
|
4048
|
+
}, []), Ql = (a) => a.reduce((s, l) => l.children && l.children.length > 0 ? s + Ql(l.children) : s + 1, 0), Ao = (a, s) => {
|
|
4018
4049
|
var e;
|
|
4019
4050
|
let l = [];
|
|
4020
|
-
return (e =
|
|
4051
|
+
return (e = wo(a, Ql(s == null ? void 0 : s[0]) - 1)) == null || e.forEach((n) => {
|
|
4021
4052
|
let r = [];
|
|
4022
4053
|
n.forEach((p) => {
|
|
4023
4054
|
var i;
|
|
@@ -4026,7 +4057,7 @@ const pe = [
|
|
|
4026
4057
|
}) : r.push(p.contents);
|
|
4027
4058
|
}), l.push(r);
|
|
4028
4059
|
}), [l];
|
|
4029
|
-
},
|
|
4060
|
+
}, To = ["方法体", "输入", "输出"], El = j(1), bl = (a) => {
|
|
4030
4061
|
let s;
|
|
4031
4062
|
a.replaceAll(" ", `\r
|
|
4032
4063
|
`).includes(`\r
|
|
@@ -4038,9 +4069,9 @@ const pe = [
|
|
|
4038
4069
|
const l = [];
|
|
4039
4070
|
let e = "";
|
|
4040
4071
|
for (const n of s)
|
|
4041
|
-
n.includes("{") || e.includes("{") || n.includes("[") || e.includes("[") || n.includes("【") || e.includes("【") || n.includes("(") || e.includes("(") || n.includes("(") || e.includes("(") || n.includes("/*") || e.includes("/*") ? (e += n.trim(),
|
|
4072
|
+
n.includes("{") || e.includes("{") || n.includes("[") || e.includes("[") || n.includes("【") || e.includes("【") || n.includes("(") || e.includes("(") || n.includes("(") || e.includes("(") || n.includes("/*") || e.includes("/*") ? (e += n.trim(), c(e).split("{").length - 1 === c(e).split("}").length - 1 && c(e).split("【").length - 1 === c(e).split("】").length - 1 && c(e).split("[").length - 1 === c(e).split("]").length - 1 && c(e).split("(").length - 1 === c(e).split(")").length - 1 && c(e).split("(").length - 1 === c(e).split(")").length - 1 && c(e).split("/*").length - 1 === c(e).split("*/").length - 1 && e[e.length - 1] !== "," && (l.push(e.replace(/\/\*[\s\S]*?\*\//g, "")), e = "")) : l.push(n.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
|
|
4042
4073
|
return l;
|
|
4043
|
-
},
|
|
4074
|
+
}, Io = (a) => {
|
|
4044
4075
|
const [s, l] = a.split(/=(.+)/), e = s.replace(/['"]/g, "").trim(), n = l.replace(/^['"]|['"]$/g, "");
|
|
4045
4076
|
return { key: e, value: n };
|
|
4046
4077
|
}, il = (a) => {
|
|
@@ -4049,9 +4080,9 @@ const pe = [
|
|
|
4049
4080
|
const l = [];
|
|
4050
4081
|
let e = "";
|
|
4051
4082
|
for (const n of s)
|
|
4052
|
-
n.includes("{") || e.includes("{") || n.includes("[") || e.includes("[") || n.includes("【") || e.includes("【") || n.includes("(") || e.includes("(") || n.includes("(") || e.includes("(") || n.includes("/*") || e.includes("/*") ? (e = e !== "" ? e + ":" + n.trim() : n.trim(),
|
|
4083
|
+
n.includes("{") || e.includes("{") || n.includes("[") || e.includes("[") || n.includes("【") || e.includes("【") || n.includes("(") || e.includes("(") || n.includes("(") || e.includes("(") || n.includes("/*") || e.includes("/*") ? (e = e !== "" ? e + ":" + n.trim() : n.trim(), c(e).split("{").length - 1 === c(e).split("}").length - 1 && c(e).split("【").length - 1 === c(e).split("】").length - 1 && c(e).split("[").length - 1 === c(e).split("]").length - 1 && c(e).split("(").length - 1 === c(e).split(")").length - 1 && c(e).split("(").length - 1 === c(e).split(")").length - 1 && c(e).split("/*").length - 1 === c(e).split("*/").length - 1 && (l.push(e.replace(/\/\*[\s\S]*?\*\//g, "")), e = "")) : l.push(n.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
|
|
4053
4084
|
return l;
|
|
4054
|
-
},
|
|
4085
|
+
}, Do = (a) => /^[\x00-\x7F]*$/.test(a), Eo = (a) => {
|
|
4055
4086
|
var n, r;
|
|
4056
4087
|
const s = (n = a.map((p) => {
|
|
4057
4088
|
var _, v;
|
|
@@ -4060,9 +4091,9 @@ const pe = [
|
|
|
4060
4091
|
})) == null ? void 0 : n.filter((p) => p), l = s == null ? void 0 : s.map((p) => {
|
|
4061
4092
|
var _;
|
|
4062
4093
|
return (_ = il(p)) == null ? void 0 : _.map((v) => {
|
|
4063
|
-
var
|
|
4094
|
+
var y;
|
|
4064
4095
|
if (v.includes("{")) {
|
|
4065
|
-
let T = (
|
|
4096
|
+
let T = (y = v.split(":")) == null ? void 0 : y[0];
|
|
4066
4097
|
v = T.slice(1, T.length);
|
|
4067
4098
|
}
|
|
4068
4099
|
return v;
|
|
@@ -4070,7 +4101,7 @@ const pe = [
|
|
|
4070
4101
|
}).filter((p) => p.length !== 0), e = (r = l == null ? void 0 : l.filter((p) => p.length !== 0)) == null ? void 0 : r.map((p) => {
|
|
4071
4102
|
let i = "";
|
|
4072
4103
|
return p.forEach((_) => {
|
|
4073
|
-
_.includes("{") || (i = i === "" ? i +
|
|
4104
|
+
_.includes("{") || (i = i === "" ? i + c(_) : i + "/" + c(_));
|
|
4074
4105
|
}), i;
|
|
4075
4106
|
});
|
|
4076
4107
|
return zl([...new Set(e)]);
|
|
@@ -4078,7 +4109,7 @@ const pe = [
|
|
|
4078
4109
|
var l, e, n, r, p, i, _, v;
|
|
4079
4110
|
const s = (e = (l = a.split("(")) == null ? void 0 : l[1]) == null ? void 0 : e.trim();
|
|
4080
4111
|
return ((n = il(s.slice(0, s.length - 1))) == null ? void 0 : n.length) > 0 ? s.slice(0, s.length - 1) : (v = (_ = (i = (p = (r = a.split("(")) == null ? void 0 : r[1]) == null ? void 0 : p.trim()) == null ? void 0 : i.split(")")) == null ? void 0 : _[0]) == null ? void 0 : v.trim();
|
|
4081
|
-
},
|
|
4112
|
+
}, Oo = (a) => {
|
|
4082
4113
|
var n;
|
|
4083
4114
|
if (!a) return;
|
|
4084
4115
|
const s = Xl(a), l = (n = il(s)) == null ? void 0 : n.map((r) => {
|
|
@@ -4091,9 +4122,9 @@ const pe = [
|
|
|
4091
4122
|
});
|
|
4092
4123
|
let e = "";
|
|
4093
4124
|
return l.forEach((r) => {
|
|
4094
|
-
r.includes("{") || (e = e === "" ? e +
|
|
4125
|
+
r.includes("{") || (e = e === "" ? e + c(r) : e + "/" + c(r));
|
|
4095
4126
|
}), e;
|
|
4096
|
-
},
|
|
4127
|
+
}, Bo = (a) => {
|
|
4097
4128
|
const s = a.match(/\[(.*)\]/s);
|
|
4098
4129
|
if (s) {
|
|
4099
4130
|
const l = `[${s[1]}]`;
|
|
@@ -4104,20 +4135,20 @@ const pe = [
|
|
|
4104
4135
|
return JSON.parse(l.replace(/\[(\s*)(,|])/g, '[""$2').replace(/([^\[\],\s]+)/g, '"$1"').replace(/""/g, '"'));
|
|
4105
4136
|
}
|
|
4106
4137
|
}
|
|
4107
|
-
},
|
|
4138
|
+
}, Fo = (a) => {
|
|
4108
4139
|
var r;
|
|
4109
4140
|
if (!a) return;
|
|
4110
4141
|
const s = Xl(a);
|
|
4111
4142
|
let l = [], e = [], n = [];
|
|
4112
4143
|
return (r = il(s)) == null || r.forEach((p) => {
|
|
4113
4144
|
var i;
|
|
4114
|
-
p.includes("[") ? l.push(
|
|
4145
|
+
p.includes("[") ? l.push(Bo(p)) : p.includes("{") && (Do((i = p.slice(1, p.length - 1).split(":")) == null ? void 0 : i[0]) ? n.push(JSON.parse(p.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3'))) : Ue(p.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3')) ? e.push(JSON.parse(p.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3'))) : p.includes("$"));
|
|
4115
4146
|
}), [l, e, n];
|
|
4116
|
-
},
|
|
4147
|
+
}, No = (a) => {
|
|
4117
4148
|
const s = [];
|
|
4118
4149
|
let l = "";
|
|
4119
4150
|
for (const e of a)
|
|
4120
|
-
e.includes("[") || l.includes("[") || e.includes("/*") || l.includes("/*") ? (l += e.trim(),
|
|
4151
|
+
e.includes("[") || l.includes("[") || e.includes("/*") || l.includes("/*") ? (l += e.trim(), c(l).split("{").length - 1 === c(l).split("}").length - 1 && c(l).split("【").length - 1 === c(l).split("】").length - 1 && c(l).split("[").length - 1 === c(l).split("]").length - 1 && c(l).split("(").length - 1 === c(l).split(")").length - 1 && c(l).split("(").length - 1 === c(l).split(")").length - 1 && c(l).split("/*").length - 1 === c(l).split("*/").length - 1 && (s.push(l.replace(/\/\*[\s\S]*?\*\//g, "")), l = "")) : s.push(e.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
|
|
4121
4152
|
return s;
|
|
4122
4153
|
}, Ol = (a) => {
|
|
4123
4154
|
var p, i;
|
|
@@ -4125,8 +4156,8 @@ const pe = [
|
|
|
4125
4156
|
if (e) {
|
|
4126
4157
|
const _ = e[1] || e[3], v = e[2] || e[4];
|
|
4127
4158
|
if (_ && v) {
|
|
4128
|
-
const
|
|
4129
|
-
s.push(
|
|
4159
|
+
const y = `${_}/${v}`;
|
|
4160
|
+
s.push(y);
|
|
4130
4161
|
}
|
|
4131
4162
|
}
|
|
4132
4163
|
const n = /(https?:\/\/[^\s)]+|Http:\/\/[^\s)]+|\/[^\s)]+)/i, r = a.match(n);
|
|
@@ -4134,8 +4165,8 @@ const pe = [
|
|
|
4134
4165
|
}, dl = (a) => {
|
|
4135
4166
|
let s = a.replace(/\[\s*,\s*,/g, '[{"": ""}, {"": ""},');
|
|
4136
4167
|
return s = s.replace(/\[\s*,/g, '[{"": ""},'), s = s.replace(/,\s*,/g, ', {"": ""},'), s = s.replace(/,\s*\]/g, ', {"": ""}]'), s = s.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,\]}])/g, (l, e, n, r, p) => n.includes("'") ? `:${e}${n}${r}${p}` : `:${e}"${n}"${r}${p}`), s = s.replace(/:\s*([,\]}])/g, ': ""$1'), s;
|
|
4137
|
-
},
|
|
4138
|
-
const s =
|
|
4168
|
+
}, So = (a) => !/\[[^\]]*\{[^\]]*\]/.test(a), Lo = (a) => {
|
|
4169
|
+
const s = c(a).match(/(\w+)\(['"]([^'"]+)['"]:\s*\{['"]([^'"]+)['"]\}\)/), l = s ? `${s[2]}/${s[3]}` : null, e = a.match(/\[\{([^}]+)\}\]/), n = e == null ? void 0 : e[1].replaceAll(":", "").replaceAll("'", '"').trim();
|
|
4139
4170
|
let r = null;
|
|
4140
4171
|
if (n)
|
|
4141
4172
|
try {
|
|
@@ -4144,45 +4175,45 @@ const pe = [
|
|
|
4144
4175
|
console.error("解析数组失败:", p);
|
|
4145
4176
|
}
|
|
4146
4177
|
return [l, r];
|
|
4147
|
-
},
|
|
4148
|
-
var i, _, v,
|
|
4178
|
+
}, jo = (a) => {
|
|
4179
|
+
var i, _, v, y, T, $, I, g, S, d, h;
|
|
4149
4180
|
let s = [], l = [], e = {}, n = [], r = a.trim(), p = [];
|
|
4150
4181
|
if (r.trim().includes("输入") && r.trim().includes("输出")) {
|
|
4151
|
-
let
|
|
4152
|
-
o =
|
|
4153
|
-
const
|
|
4154
|
-
(
|
|
4182
|
+
let C = [], o = a.trim();
|
|
4183
|
+
o = c(o).slice(1, c(o).length - 1);
|
|
4184
|
+
const u = /(\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})/g;
|
|
4185
|
+
(g = o.match(u)) == null || g.forEach((t, b) => {
|
|
4155
4186
|
var R;
|
|
4156
|
-
const
|
|
4157
|
-
let
|
|
4158
|
-
(R =
|
|
4159
|
-
var oe,
|
|
4160
|
-
if (
|
|
4187
|
+
const U = t;
|
|
4188
|
+
let F = [];
|
|
4189
|
+
(R = U.slice(1, U.length - 1).replace(":", "$:").split("$:")) == null || R.forEach((se) => {
|
|
4190
|
+
var oe, f, w;
|
|
4191
|
+
if (To.find((O) => se.includes(O)))
|
|
4161
4192
|
if (!se.includes("=="))
|
|
4162
|
-
|
|
4193
|
+
F.push({ key: "tableIndexColumn", contents: se.replaceAll("'", "") });
|
|
4163
4194
|
else {
|
|
4164
4195
|
let O = [];
|
|
4165
4196
|
const m = se.replaceAll("'", "").split("==");
|
|
4166
|
-
O.push(m == null ? void 0 : m[0]), m != null && m[1].includes("[") ? O.push(m == null ? void 0 : m[1].trim().slice(1, (m == null ? void 0 : m[1].length) - 1).split(",")) : O.push([m == null ? void 0 : m[1]]),
|
|
4197
|
+
O.push(m == null ? void 0 : m[0]), m != null && m[1].includes("[") ? O.push(m == null ? void 0 : m[1].trim().slice(1, (m == null ? void 0 : m[1].length) - 1).split(",")) : O.push([m == null ? void 0 : m[1]]), F.push({ key: "header", contents: [(f = (oe = Kl([O])) == null ? void 0 : oe[0]) == null ? void 0 : f[0]] });
|
|
4167
4198
|
}
|
|
4168
4199
|
else {
|
|
4169
4200
|
let O = se.trim().replaceAll(",", ",").replaceAll("'", '"');
|
|
4170
4201
|
if (b % 3 === 0)
|
|
4171
|
-
O.slice(1, O.length - 1).includes("[") ?
|
|
4202
|
+
O.slice(1, O.length - 1).includes("[") ? C.push({
|
|
4172
4203
|
key: "tableIndex",
|
|
4173
4204
|
contents: [{ label: O }]
|
|
4174
|
-
}) :
|
|
4205
|
+
}) : C.push({
|
|
4175
4206
|
key: "tableIndex",
|
|
4176
4207
|
contents: [{ label: O.slice(1, O.length - 1) }]
|
|
4177
4208
|
});
|
|
4178
4209
|
else if ((O == null ? void 0 : O[0]) === "{") {
|
|
4179
4210
|
let m = [];
|
|
4180
|
-
const
|
|
4181
|
-
if (
|
|
4211
|
+
const N = O.slice(1, O.length - 1).split(":");
|
|
4212
|
+
if (N.every((G) => Ue(G.trim()))) {
|
|
4182
4213
|
m.push({ key: "tableContentName", contents: "详情" });
|
|
4183
4214
|
let G = [];
|
|
4184
|
-
|
|
4185
|
-
if (
|
|
4215
|
+
N.forEach((X, E) => {
|
|
4216
|
+
if (E === 0) {
|
|
4186
4217
|
const Y = JSON.parse(X).map((M) => ({ label: M }));
|
|
4187
4218
|
Y.push({
|
|
4188
4219
|
label: "操作"
|
|
@@ -4205,26 +4236,26 @@ const pe = [
|
|
|
4205
4236
|
comp: "Table",
|
|
4206
4237
|
compData: G,
|
|
4207
4238
|
name: ""
|
|
4208
|
-
}),
|
|
4239
|
+
}), C.push({
|
|
4209
4240
|
key: "tableContents",
|
|
4210
4241
|
contents: [m]
|
|
4211
4242
|
});
|
|
4212
4243
|
}
|
|
4213
4244
|
} else {
|
|
4214
4245
|
let m = O;
|
|
4215
|
-
m.slice(1, m.length - 1).includes("[") || m.slice(1, m.length - 1).includes("{") ? Ue(Tl(m.replace(/\s+/g, ""))) && ((w = JSON.parse(Tl(m.replace(/\s+/g, "")))) == null || w.map((
|
|
4216
|
-
if (Array.isArray(
|
|
4246
|
+
m.slice(1, m.length - 1).includes("[") || m.slice(1, m.length - 1).includes("{") ? Ue(Tl(m.replace(/\s+/g, ""))) && ((w = JSON.parse(Tl(m.replace(/\s+/g, "")))) == null || w.map((N) => {
|
|
4247
|
+
if (Array.isArray(N == null ? void 0 : N[0])) {
|
|
4217
4248
|
const G = [];
|
|
4218
4249
|
G.push({ key: "tableContentName", contents: "详情" });
|
|
4219
4250
|
let X = [];
|
|
4220
|
-
|
|
4221
|
-
|
|
4251
|
+
N.forEach((E) => {
|
|
4252
|
+
E.forEach((Y) => {
|
|
4222
4253
|
var M, te;
|
|
4223
4254
|
El.value++, X.push({
|
|
4224
4255
|
id: El.value,
|
|
4225
4256
|
key: (M = Object.keys(Y)) == null ? void 0 : M[0],
|
|
4226
4257
|
value: (te = Object.values(Y)) == null ? void 0 : te[0],
|
|
4227
|
-
width:
|
|
4258
|
+
width: E.length
|
|
4228
4259
|
});
|
|
4229
4260
|
});
|
|
4230
4261
|
}), G.push({
|
|
@@ -4237,25 +4268,25 @@ const pe = [
|
|
|
4237
4268
|
contents: X
|
|
4238
4269
|
}],
|
|
4239
4270
|
name: ""
|
|
4240
|
-
}),
|
|
4271
|
+
}), C.push({
|
|
4241
4272
|
key: "tableContents",
|
|
4242
4273
|
contents: [G]
|
|
4243
4274
|
});
|
|
4244
4275
|
} else
|
|
4245
|
-
|
|
4276
|
+
C.push({
|
|
4246
4277
|
key: "tableContents",
|
|
4247
|
-
contents:
|
|
4278
|
+
contents: N == null ? void 0 : N[0]
|
|
4248
4279
|
});
|
|
4249
|
-
})) :
|
|
4280
|
+
})) : C.push({
|
|
4250
4281
|
key: "tableContents",
|
|
4251
4282
|
contents: m.trim().slice(1, m.length - 1)
|
|
4252
4283
|
});
|
|
4253
4284
|
}
|
|
4254
4285
|
}
|
|
4255
|
-
}),
|
|
4286
|
+
}), C.push(F == null ? void 0 : F[0]);
|
|
4256
4287
|
}), p.push({
|
|
4257
4288
|
key: "tableIndex",
|
|
4258
|
-
contents: (
|
|
4289
|
+
contents: (S = C == null ? void 0 : C.filter((t) => (t == null ? void 0 : t.key) === "tableIndex")) == null ? void 0 : S.map((t) => {
|
|
4259
4290
|
var b;
|
|
4260
4291
|
return (b = t.contents) == null ? void 0 : b[0];
|
|
4261
4292
|
})
|
|
@@ -4267,59 +4298,59 @@ const pe = [
|
|
|
4267
4298
|
contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
|
|
4268
4299
|
}), p.push({
|
|
4269
4300
|
key: "tableIndexColumn",
|
|
4270
|
-
contents: (
|
|
4301
|
+
contents: (h = (d = C == null ? void 0 : C.filter((t) => (t == null ? void 0 : t.key) === "tableIndexColumn")) == null ? void 0 : d[0]) == null ? void 0 : h.contents
|
|
4271
4302
|
}), p.push({
|
|
4272
4303
|
key: "header",
|
|
4273
|
-
contents: Dl(
|
|
4304
|
+
contents: Dl(C == null ? void 0 : C.filter((t) => (t == null ? void 0 : t.key) === "header"))
|
|
4274
4305
|
}), p.push({
|
|
4275
4306
|
key: "tableContents",
|
|
4276
|
-
contents:
|
|
4307
|
+
contents: Ao(C == null ? void 0 : C.filter((t) => (t == null ? void 0 : t.key) === "tableContents"), Dl(C == null ? void 0 : C.filter((t) => (t == null ? void 0 : t.key) === "header")))
|
|
4277
4308
|
});
|
|
4278
4309
|
} else {
|
|
4279
|
-
const
|
|
4280
|
-
|
|
4310
|
+
const C = (i = r.trim().split(",$")) == null ? void 0 : i[0];
|
|
4311
|
+
C[0] === "[" ? r = C.slice(1, C.length - 1) : r.includes(",$") && (r = (_ = r.trim().split(",$")) == null ? void 0 : _[0]);
|
|
4281
4312
|
let o;
|
|
4282
4313
|
if (r.includes("$")) {
|
|
4283
|
-
r =
|
|
4284
|
-
let
|
|
4285
|
-
Ol(r.slice(1, r.length - 2)).length > 1 ?
|
|
4314
|
+
r = c(r), e.method = (y = (v = c(r).trim()) == null ? void 0 : v.slice(1, r.length).split("(")) == null ? void 0 : y[0];
|
|
4315
|
+
let u;
|
|
4316
|
+
Ol(r.slice(1, r.length - 2)).length > 1 ? u = Ol(r.slice(1, r.length - 2)) : u = Lo(r), e.value = u;
|
|
4286
4317
|
} else
|
|
4287
|
-
Ue("[" + dl(r).replaceAll("'", '"') + "]") && !
|
|
4288
|
-
let t =
|
|
4318
|
+
Ue("[" + dl(r).replaceAll("'", '"') + "]") && !So(dl(r).replaceAll("'", '"')) ? (r = JSON.parse("[" + dl(r).replaceAll("'", '"') + "]"), n = r) : o = ($ = (T = c(r).split("}")) == null ? void 0 : T.filter((u) => u !== "")) == null ? void 0 : $.map((u) => {
|
|
4319
|
+
let t = u;
|
|
4289
4320
|
return t[0] === "," ? t = t.slice(2, t.length) : t = t.slice(1, t.length), t;
|
|
4290
4321
|
});
|
|
4291
|
-
(I =
|
|
4292
|
-
var t, b,
|
|
4293
|
-
if (
|
|
4294
|
-
const Y = (
|
|
4322
|
+
(I = c(o)) == null || I.forEach((u) => {
|
|
4323
|
+
var t, b, U, F, R, se, oe, f, w, O, m, N, G, X, E;
|
|
4324
|
+
if (u.includes("==")) {
|
|
4325
|
+
const Y = (N = u == null ? void 0 : u.split(":")) == null ? void 0 : N[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"').replaceAll("'", '"'), M = (G = u == null ? void 0 : u.split(":")) == null ? void 0 : G[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"');
|
|
4295
4326
|
if (Ue(M.trim()) ? l.push(JSON.parse(M.trim())) : l.push(JSON.parse(M.replaceAll("'", '"').trim())), Y[0] !== "[") {
|
|
4296
4327
|
let te = [];
|
|
4297
4328
|
Ue("[" + el(Y) + "]") ? te.push(JSON.parse("[" + el(Y) + "]")) : Ue("[" + el(Y).replaceAll("==", ",") + "]") && te.push(JSON.parse("[" + el(Y).replaceAll("==", ",") + "]"));
|
|
4298
|
-
const me =
|
|
4329
|
+
const me = c(te);
|
|
4299
4330
|
me.push(["操作"]), s.push(me);
|
|
4300
4331
|
} else {
|
|
4301
|
-
const te = (X = Y.slice(1, Y.length - 1).replaceAll(",", ",|")) == null ? void 0 : X.split("|"), me = (
|
|
4332
|
+
const te = (X = Y.slice(1, Y.length - 1).replaceAll(",", ",|")) == null ? void 0 : X.split("|"), me = (E = No(te)) == null ? void 0 : E.map((ae) => ((ae == null ? void 0 : ae[ae.length - 1]) === "," && (ae = ae.slice(0, ae.length - 1)), ae));
|
|
4302
4333
|
let _e = [];
|
|
4303
4334
|
me == null || me.forEach((ae) => {
|
|
4304
4335
|
var ue, $e, fe, ye;
|
|
4305
4336
|
let H = [];
|
|
4306
4337
|
H.push((ue = ae.split("==")) == null ? void 0 : ue[0].trim().replace(/^"|"$/g, "")), (($e = ae.split("==")) == null ? void 0 : $e[1].trim()[0]) === "[" ? H.push(JSON.parse((fe = ae.split("==")) == null ? void 0 : fe[1].trim())) : H.push([JSON.parse((ye = ae.split("==")) == null ? void 0 : ye[1].trim())]), _e.push(H);
|
|
4307
4338
|
});
|
|
4308
|
-
const J =
|
|
4339
|
+
const J = c(_e);
|
|
4309
4340
|
J.push(["操作"]), s.push(J);
|
|
4310
4341
|
}
|
|
4311
4342
|
} else {
|
|
4312
|
-
if (Ue((t =
|
|
4313
|
-
let Y = JSON.parse((b =
|
|
4343
|
+
if (Ue((t = u == null ? void 0 : u.split(":")) == null ? void 0 : t[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"').replaceAll("'", '"'))) {
|
|
4344
|
+
let Y = JSON.parse((b = u == null ? void 0 : u.split(":")) == null ? void 0 : b[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"').replaceAll("'", '"'));
|
|
4314
4345
|
Array.isArray(Y) || (Y = [Y]), Y.push("操作"), s.push(Y);
|
|
4315
4346
|
}
|
|
4316
|
-
Ue((R = (
|
|
4347
|
+
Ue((R = (F = (U = u == null ? void 0 : u.split(":")) == null ? void 0 : U[1]) == null ? void 0 : F.replace(/^"|"$/g, "'")) == null ? void 0 : R.replace(/'([^']+)'/g, '"$1"')) ? l.push(JSON.parse((se = u == null ? void 0 : u.split(":")) == null ? void 0 : se[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"'))) : Ue((O = (w = (f = (oe = u == null ? void 0 : u.split(":")) == null ? void 0 : oe[1]) == null ? void 0 : f.replace(/^"|"$/g, "'")) == null ? void 0 : w.replaceAll("'", '"')) == null ? void 0 : O.replace(/'([^']+)'/g, '"$1"')) && l.push(JSON.parse((m = u == null ? void 0 : u.split(":")) == null ? void 0 : m[1].replace(/^"|"$/g, "'").replaceAll("'", '"').replace(/'([^']+)'/g, '"$1"')));
|
|
4317
4348
|
}
|
|
4318
4349
|
});
|
|
4319
4350
|
}
|
|
4320
4351
|
return [s, l, p, e, n];
|
|
4321
|
-
},
|
|
4322
|
-
const s = [], l =
|
|
4352
|
+
}, Uo = (a) => {
|
|
4353
|
+
const s = [], l = Oo(a == null ? void 0 : a.key), e = Fo(a == null ? void 0 : a.key), n = jo(a == null ? void 0 : a.value), r = e == null ? void 0 : e[0], p = n == null ? void 0 : n[4], i = e == null ? void 0 : e[1], _ = e == null ? void 0 : e[2], v = n == null ? void 0 : n[0], y = n == null ? void 0 : n[1], T = n == null ? void 0 : n[2], $ = n == null ? void 0 : n[3];
|
|
4323
4354
|
return l && s.push({
|
|
4324
4355
|
key: "contentPath",
|
|
4325
4356
|
value: l
|
|
@@ -4345,11 +4376,11 @@ const pe = [
|
|
|
4345
4376
|
}), (v == null ? void 0 : v.length) > 0 && s.push({
|
|
4346
4377
|
key: "tableColumns",
|
|
4347
4378
|
value: v
|
|
4348
|
-
}), (
|
|
4379
|
+
}), (y == null ? void 0 : y.length) > 0 && s.push({
|
|
4349
4380
|
key: "tableContents",
|
|
4350
|
-
value:
|
|
4381
|
+
value: y
|
|
4351
4382
|
}), s;
|
|
4352
|
-
},
|
|
4383
|
+
}, Po = (a) => {
|
|
4353
4384
|
let s = [], l = [];
|
|
4354
4385
|
a == null || a.forEach((n) => {
|
|
4355
4386
|
Array.isArray(n) && (n == null || n.forEach((r) => {
|
|
@@ -4386,14 +4417,14 @@ const pe = [
|
|
|
4386
4417
|
} else
|
|
4387
4418
|
n.comp !== "FormTop" && s.push(n);
|
|
4388
4419
|
}), s;
|
|
4389
|
-
},
|
|
4420
|
+
}, Ro = (a, s) => {
|
|
4390
4421
|
const l = s.split("/");
|
|
4391
4422
|
let e = [];
|
|
4392
4423
|
return a == null || a.forEach((n) => {
|
|
4393
|
-
var i, _, v,
|
|
4394
|
-
const r = [], p = (_ = (i = n.find((
|
|
4395
|
-
if (p && !p.some((
|
|
4396
|
-
const
|
|
4424
|
+
var i, _, v, y, T, $, I, g, S, d, h;
|
|
4425
|
+
const r = [], p = (_ = (i = n.find((C) => C.key === "tableIndex")) == null ? void 0 : i.value) == null ? void 0 : _[0];
|
|
4426
|
+
if (p && !p.some((C) => Array.isArray(C))) {
|
|
4427
|
+
const C = (y = (v = n.find((o) => o.key === "tableColumns")) == null ? void 0 : v.value) == null ? void 0 : y[0];
|
|
4397
4428
|
r.push({
|
|
4398
4429
|
key: "tableIndexColumn",
|
|
4399
4430
|
contents: l[l.length - 1]
|
|
@@ -4406,15 +4437,15 @@ const pe = [
|
|
|
4406
4437
|
}), r.push({
|
|
4407
4438
|
key: "rowButton",
|
|
4408
4439
|
contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
|
|
4409
|
-
}), Array.isArray(
|
|
4440
|
+
}), Array.isArray(C) && C.some((o) => Array.isArray(o)) ? r.push({
|
|
4410
4441
|
key: "header",
|
|
4411
|
-
contents: Kl(
|
|
4442
|
+
contents: Kl(C)
|
|
4412
4443
|
}) : r.push({
|
|
4413
4444
|
key: "header",
|
|
4414
|
-
contents: Array.isArray(
|
|
4445
|
+
contents: Array.isArray(C) ? C == null ? void 0 : C.map((o) => ({ label: o })) : [C].map((o) => ({ label: o }))
|
|
4415
4446
|
}), r.push({
|
|
4416
4447
|
key: "tableContents",
|
|
4417
|
-
contents: Array.isArray(
|
|
4448
|
+
contents: Array.isArray(C) ? ($ = (T = n.find((o) => o.key === "tableContents")) == null ? void 0 : T.value) == null ? void 0 : $[0] : (S = (g = (I = n.find((o) => o.key === "tableContents")) == null ? void 0 : I.value) == null ? void 0 : g[0]) == null ? void 0 : S.map((o) => [o])
|
|
4418
4449
|
}), e.push({
|
|
4419
4450
|
comp: "Table",
|
|
4420
4451
|
name: "",
|
|
@@ -4428,7 +4459,7 @@ const pe = [
|
|
|
4428
4459
|
},
|
|
4429
4460
|
{
|
|
4430
4461
|
key: "formContent",
|
|
4431
|
-
contents: rl([(
|
|
4462
|
+
contents: rl([(d = n == null ? void 0 : n.find((o) => (o == null ? void 0 : o.key) === "formTop")) == null ? void 0 : d.value])
|
|
4432
4463
|
},
|
|
4433
4464
|
{
|
|
4434
4465
|
key: "enableWrap",
|
|
@@ -4448,8 +4479,8 @@ const pe = [
|
|
|
4448
4479
|
} else p ? (e.push({
|
|
4449
4480
|
comp: "Table",
|
|
4450
4481
|
name: "",
|
|
4451
|
-
compData:
|
|
4452
|
-
}), n != null && n.find((
|
|
4482
|
+
compData: $o(n, l[l.length - 1])
|
|
4483
|
+
}), n != null && n.find((C) => (C == null ? void 0 : C.key) === "formTop") && e.push({
|
|
4453
4484
|
comp: "FormTop",
|
|
4454
4485
|
compData: [
|
|
4455
4486
|
{
|
|
@@ -4458,7 +4489,7 @@ const pe = [
|
|
|
4458
4489
|
},
|
|
4459
4490
|
{
|
|
4460
4491
|
key: "formContent",
|
|
4461
|
-
contents: rl([(
|
|
4492
|
+
contents: rl([(h = n == null ? void 0 : n.find((C) => (C == null ? void 0 : C.key) === "formTop")) == null ? void 0 : h.value])
|
|
4462
4493
|
},
|
|
4463
4494
|
{
|
|
4464
4495
|
key: "enableWrap",
|
|
@@ -4474,55 +4505,55 @@ const pe = [
|
|
|
4474
4505
|
}
|
|
4475
4506
|
],
|
|
4476
4507
|
name: ""
|
|
4477
|
-
})) : n.some((
|
|
4508
|
+
})) : n.some((C) => C.key === "extra") ? e.push({
|
|
4478
4509
|
comp: "calculator",
|
|
4479
4510
|
name: "",
|
|
4480
4511
|
compData: Il(n)
|
|
4481
4512
|
}) : e.push(Il(n));
|
|
4482
|
-
}),
|
|
4483
|
-
},
|
|
4513
|
+
}), Po(e);
|
|
4514
|
+
}, Jo = (a, s) => {
|
|
4484
4515
|
var n, r;
|
|
4485
4516
|
const l = a.map((p) => p.filter((i) => i.key !== "contentPath"));
|
|
4486
4517
|
return {
|
|
4487
4518
|
comp: "Group",
|
|
4488
4519
|
compData: [{
|
|
4489
|
-
contents:
|
|
4520
|
+
contents: Ro(l, s),
|
|
4490
4521
|
key: "groupContents"
|
|
4491
4522
|
}],
|
|
4492
4523
|
name: (r = (n = a[0]) == null ? void 0 : n.find((p) => p.key === "contentPath")) == null ? void 0 : r.value
|
|
4493
4524
|
};
|
|
4494
|
-
},
|
|
4525
|
+
}, Vo = (a) => {
|
|
4495
4526
|
var n;
|
|
4496
|
-
const s = [], l =
|
|
4527
|
+
const s = [], l = c(a).map((r) => {
|
|
4497
4528
|
var p;
|
|
4498
4529
|
if (r != null && r.find((i) => (i == null ? void 0 : i.key) === "contentPath"))
|
|
4499
4530
|
return (p = r == null ? void 0 : r.find((i) => (i == null ? void 0 : i.key) === "contentPath")) == null ? void 0 : p.value;
|
|
4500
4531
|
}).filter((r) => r !== ""), e = [...new Set(l)];
|
|
4501
4532
|
return (n = e == null ? void 0 : e.filter((r) => r)) == null || n.forEach((r) => {
|
|
4502
4533
|
var p;
|
|
4503
|
-
s.push(
|
|
4534
|
+
s.push(Jo((p = c(a)) == null ? void 0 : p.filter((i) => i.find((_) => _.key === "contentPath" && _.value === r)), r));
|
|
4504
4535
|
}), s;
|
|
4505
|
-
},
|
|
4536
|
+
}, Wo = (a) => {
|
|
4506
4537
|
let s = [];
|
|
4507
4538
|
s.push({
|
|
4508
4539
|
comp: "Menu",
|
|
4509
4540
|
compData: [{
|
|
4510
|
-
contents:
|
|
4541
|
+
contents: Eo(c(a)),
|
|
4511
4542
|
key: "menuContents"
|
|
4512
4543
|
}],
|
|
4513
4544
|
name: ""
|
|
4514
4545
|
});
|
|
4515
|
-
const l = a.map((e) =>
|
|
4516
|
-
return s = [...s, ...
|
|
4517
|
-
},
|
|
4546
|
+
const l = a.map((e) => Uo(e)).filter((e) => e.length !== 0);
|
|
4547
|
+
return s = [...s, ...Vo(l)], s;
|
|
4548
|
+
}, tr = (a) => {
|
|
4518
4549
|
var s, l, e, n, r;
|
|
4519
4550
|
try {
|
|
4520
|
-
const p = (e = bl((l = (s =
|
|
4521
|
-
return
|
|
4551
|
+
const p = (e = bl((l = (s = c(a)) == null ? void 0 : s.replace("(", "(")) == null ? void 0 : l.replace(")", ")"))) == null ? void 0 : e.filter((v) => v !== ""), i = (r = (n = c(p)) == null ? void 0 : n.filter((v) => !v.includes("/*"))) == null ? void 0 : r.map((v) => Io(v));
|
|
4552
|
+
return Wo(i);
|
|
4522
4553
|
} catch {
|
|
4523
4554
|
return !1;
|
|
4524
4555
|
}
|
|
4525
|
-
}, ll =
|
|
4556
|
+
}, ll = j(0), fl = j(0), zo = (a) => {
|
|
4526
4557
|
const s = a.trim().replace(/^'|'$/g, ""), l = /((?:\$?[a-zA-Z_][a-zA-Z0-9_]*\$?\([^)]*\))|[a-zA-Z_][a-zA-Z0-9_]*)\s*=\s*(.*?)(?=\s*(?:(?:\$?[a-zA-Z_][a-zA-Z0-9_]*\$?\([^)]*\))|[a-zA-Z_][a-zA-Z0-9_]*)\s*=|$)/g, e = {};
|
|
4527
4558
|
let n;
|
|
4528
4559
|
for (; (n = l.exec(s)) !== null; ) {
|
|
@@ -4534,11 +4565,11 @@ const pe = [
|
|
|
4534
4565
|
}, Yl = (a) => {
|
|
4535
4566
|
const [s, l] = a.split("=").map((r) => r.trim()), e = s.replace(/['"]/g, ""), n = l.replace(/^['"]|['"]$/g, "");
|
|
4536
4567
|
return { key: e, value: n };
|
|
4537
|
-
},
|
|
4568
|
+
}, Go = (a) => {
|
|
4538
4569
|
var p;
|
|
4539
4570
|
let s = [];
|
|
4540
4571
|
const [l, e] = a.split(/=(.+)/), n = l.replace(/['"]/g, "").trim(), r = e.replace(/^['"]|['"]$/g, "");
|
|
4541
|
-
return (p = Object.values(
|
|
4572
|
+
return (p = Object.values(zo(r))) == null || p.forEach((i) => {
|
|
4542
4573
|
s.push(Yl(i));
|
|
4543
4574
|
}), { key: n, value: s };
|
|
4544
4575
|
}, sl = (a) => {
|
|
@@ -4550,20 +4581,20 @@ const pe = [
|
|
|
4550
4581
|
}, ea = (a) => {
|
|
4551
4582
|
try {
|
|
4552
4583
|
const s = a.replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",").replace(/:/g, ":").replace(/:\s*(?=,|}|$)/g, ': ""');
|
|
4553
|
-
if (
|
|
4554
|
-
let l =
|
|
4584
|
+
if (c(s).split("{").length - 1 > 1) {
|
|
4585
|
+
let l = c(s).replace(/^\{(.*)\}$/, "[$1]");
|
|
4555
4586
|
if (sl(l) && !l.includes("$") || (l = l.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g, '"$1$$$2"')), sl(l)) {
|
|
4556
4587
|
const e = JSON.parse(l);
|
|
4557
4588
|
let n = [];
|
|
4558
4589
|
return e == null || e.forEach((r) => {
|
|
4559
4590
|
var p;
|
|
4560
|
-
(p = Object.entries(
|
|
4591
|
+
(p = Object.entries(c(r))) == null || p.forEach((i) => {
|
|
4561
4592
|
ll.value++, n.push({
|
|
4562
4593
|
id: ll.value,
|
|
4563
4594
|
key: (i == null ? void 0 : i[0]) ?? "",
|
|
4564
4595
|
value: (i == null ? void 0 : i[1]) === "" ? "" : i == null ? void 0 : i[1],
|
|
4565
4596
|
// 如果值为空,则key设为空字符串,否则保留原值
|
|
4566
|
-
width: Object.keys(
|
|
4597
|
+
width: Object.keys(c(r)).length
|
|
4567
4598
|
});
|
|
4568
4599
|
});
|
|
4569
4600
|
}), n;
|
|
@@ -4583,150 +4614,150 @@ const pe = [
|
|
|
4583
4614
|
} catch (s) {
|
|
4584
4615
|
return console.error("转换失败:", s), [];
|
|
4585
4616
|
}
|
|
4586
|
-
},
|
|
4617
|
+
}, Mo = (a, s) => {
|
|
4587
4618
|
try {
|
|
4588
4619
|
if (pe != null && pe.find((l) => (l == null ? void 0 : l.key) === s))
|
|
4589
4620
|
return JSON.parse(a.replace(/[’]|[‘]|[']/g, '"'));
|
|
4590
|
-
if (
|
|
4591
|
-
const l =
|
|
4621
|
+
if (c(a).split("[").length - 1 > 1) {
|
|
4622
|
+
const l = c(a).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
|
|
4592
4623
|
return JSON.parse(l);
|
|
4593
4624
|
} else {
|
|
4594
|
-
const l =
|
|
4625
|
+
const l = c(a).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",");
|
|
4595
4626
|
if (sl(l)) {
|
|
4596
4627
|
const e = JSON.parse(l);
|
|
4597
4628
|
return Array.isArray(e) ? e.map((n) => ({ label: n })) : e;
|
|
4598
4629
|
} else
|
|
4599
|
-
return ea(
|
|
4630
|
+
return ea(c(a));
|
|
4600
4631
|
}
|
|
4601
4632
|
} catch (l) {
|
|
4602
4633
|
return console.error("解析失败:", l), a;
|
|
4603
4634
|
}
|
|
4604
|
-
},
|
|
4635
|
+
}, Zo = (a) => ({ [a == null ? void 0 : a.key]: Mo(a == null ? void 0 : a.value, a == null ? void 0 : a.key) }), Ho = (a) => {
|
|
4605
4636
|
try {
|
|
4606
|
-
if (
|
|
4607
|
-
const s =
|
|
4637
|
+
if (c(a).split("[").length - 1 > 1) {
|
|
4638
|
+
const s = c(a).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
|
|
4608
4639
|
return JSON.parse(s);
|
|
4609
4640
|
} else
|
|
4610
|
-
return JSON.parse(
|
|
4641
|
+
return JSON.parse(c(a).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",")).map((l) => ({ label: l }));
|
|
4611
4642
|
} catch (s) {
|
|
4612
4643
|
return console.error("解析失败:", s), a;
|
|
4613
4644
|
}
|
|
4614
4645
|
}, la = (a) => {
|
|
4615
4646
|
var s, l, e, n, r, p;
|
|
4616
4647
|
try {
|
|
4617
|
-
const i = bl((l = (s =
|
|
4618
|
-
var I,
|
|
4619
|
-
let $ = (
|
|
4620
|
-
return $ != null && $.includes("GroupContents") ?
|
|
4648
|
+
const i = bl((l = (s = c(a)) == null ? void 0 : s.replace("(", "(")) == null ? void 0 : l.replace(")", ")")), _ = (e = c(i)) == null ? void 0 : e.map((T) => {
|
|
4649
|
+
var I, g;
|
|
4650
|
+
let $ = (g = (I = c(T)) == null ? void 0 : I.split("=")) == null ? void 0 : g[0];
|
|
4651
|
+
return $ != null && $.includes("GroupContents") ? Go(T) : Yl(T);
|
|
4621
4652
|
}), v = [];
|
|
4622
|
-
(n =
|
|
4623
|
-
var $, I,
|
|
4624
|
-
pe != null && pe.find((
|
|
4625
|
-
var
|
|
4626
|
-
return ((
|
|
4653
|
+
(n = c(_)) == null || n.forEach((T) => {
|
|
4654
|
+
var $, I, g, S, d;
|
|
4655
|
+
pe != null && pe.find((h) => {
|
|
4656
|
+
var C, o;
|
|
4657
|
+
return ((C = h == null ? void 0 : h.key) == null ? void 0 : C.toUpperCase()) === ((o = T == null ? void 0 : T.key) == null ? void 0 : o.toUpperCase());
|
|
4627
4658
|
}) ? v.push({
|
|
4628
|
-
comp: (($ = pe == null ? void 0 : pe.find((
|
|
4629
|
-
var
|
|
4630
|
-
return ((
|
|
4659
|
+
comp: (($ = pe == null ? void 0 : pe.find((h) => {
|
|
4660
|
+
var C, o;
|
|
4661
|
+
return ((C = h == null ? void 0 : h.key) == null ? void 0 : C.toUpperCase()) === ((o = T == null ? void 0 : T.key) == null ? void 0 : o.toUpperCase());
|
|
4631
4662
|
})) == null ? void 0 : $.value) ?? "",
|
|
4632
4663
|
name: (I = T == null ? void 0 : T.value) == null ? void 0 : I.replace(/[’]|[‘]|[']/g, ""),
|
|
4633
4664
|
compData: []
|
|
4634
|
-
}) : ce != null && ce.find((
|
|
4635
|
-
var
|
|
4636
|
-
return ((
|
|
4637
|
-
}) && ((v == null ? void 0 : v.length) === 0 && (
|
|
4665
|
+
}) : ce != null && ce.find((h) => {
|
|
4666
|
+
var C, o;
|
|
4667
|
+
return ((C = h == null ? void 0 : h.key) == null ? void 0 : C.toUpperCase()) === ((o = T == null ? void 0 : T.key) == null ? void 0 : o.toUpperCase());
|
|
4668
|
+
}) && ((v == null ? void 0 : v.length) === 0 && (g = T.key) != null && g.includes("Menus") && v.push({
|
|
4638
4669
|
comp: "Menu",
|
|
4639
4670
|
name: "",
|
|
4640
4671
|
compData: []
|
|
4641
|
-
}), (
|
|
4642
|
-
key: (
|
|
4643
|
-
var
|
|
4644
|
-
return ((
|
|
4645
|
-
})) == null ? void 0 :
|
|
4672
|
+
}), (S = v == null ? void 0 : v[(v == null ? void 0 : v.length) - 1]) != null && S.compData && v[(v == null ? void 0 : v.length) - 1].compData.push({
|
|
4673
|
+
key: (d = ce == null ? void 0 : ce.find((h) => {
|
|
4674
|
+
var C, o;
|
|
4675
|
+
return ((C = h == null ? void 0 : h.key) == null ? void 0 : C.toUpperCase()) === ((o = T == null ? void 0 : T.key) == null ? void 0 : o.toUpperCase());
|
|
4676
|
+
})) == null ? void 0 : d.value,
|
|
4646
4677
|
contents: T == null ? void 0 : T.value
|
|
4647
4678
|
}));
|
|
4648
4679
|
}), console.log("newContents", v);
|
|
4649
|
-
let
|
|
4680
|
+
let y = (r = c(v)) == null ? void 0 : r.map((T) => {
|
|
4650
4681
|
var $;
|
|
4651
4682
|
return T != null && T.compData && (T.compData = ($ = T == null ? void 0 : T.compData) == null ? void 0 : $.map((I) => {
|
|
4652
|
-
var
|
|
4683
|
+
var g, S, d, h, C, o, u, t, b, U, F;
|
|
4653
4684
|
if ((I == null ? void 0 : I.key) === "formFlex")
|
|
4654
|
-
I.contents = ((
|
|
4685
|
+
I.contents = ((S = (g = I.contents) == null ? void 0 : g.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : S.toUpperCase()) !== "Vertical".toUpperCase();
|
|
4655
4686
|
else if ((I == null ? void 0 : I.key) === "groupContents")
|
|
4656
|
-
I.contents = (
|
|
4657
|
-
else if (((
|
|
4658
|
-
I.contents =
|
|
4687
|
+
I.contents = (d = c(I.contents)) == null ? void 0 : d.map((R) => Zo(c(R)));
|
|
4688
|
+
else if (((C = (h = I.contents) == null ? void 0 : h.trim()) != null && C.startsWith("[") || (u = (o = I.contents) == null ? void 0 : o.trim()) != null && u.startsWith("【")) && ((b = (t = I.contents) == null ? void 0 : t.trim()) != null && b.endsWith("]") || (F = (U = I.contents) == null ? void 0 : U.trim()) != null && F.endsWith("】")))
|
|
4689
|
+
I.contents = Ho(c(I.contents));
|
|
4659
4690
|
else {
|
|
4660
4691
|
if (!I.contents) return;
|
|
4661
|
-
I.contents = ea(
|
|
4692
|
+
I.contents = ea(c(I.contents));
|
|
4662
4693
|
}
|
|
4663
4694
|
return I;
|
|
4664
4695
|
})), T;
|
|
4665
4696
|
});
|
|
4666
|
-
return
|
|
4697
|
+
return y = (p = c(y)) == null ? void 0 : p.map((T) => {
|
|
4667
4698
|
var $;
|
|
4668
4699
|
return (T == null ? void 0 : T.comp) === "Group" && (T.compData = ($ = T.compData) == null ? void 0 : $.map((I) => {
|
|
4669
|
-
var
|
|
4670
|
-
let
|
|
4671
|
-
return (
|
|
4672
|
-
var
|
|
4700
|
+
var S;
|
|
4701
|
+
let g = [];
|
|
4702
|
+
return (S = I.contents) == null || S.forEach((d) => {
|
|
4703
|
+
var h, C, o, u, t, b, U, F, R, se, oe, f;
|
|
4673
4704
|
if (pe != null && pe.find((w) => {
|
|
4674
|
-
var O, m,
|
|
4675
|
-
return ((O = w == null ? void 0 : w.key) == null ? void 0 : O.toUpperCase()) === ((
|
|
4705
|
+
var O, m, N;
|
|
4706
|
+
return ((O = w == null ? void 0 : w.key) == null ? void 0 : O.toUpperCase()) === ((N = (m = Object.keys(d)) == null ? void 0 : m[0]) == null ? void 0 : N.toUpperCase());
|
|
4676
4707
|
}))
|
|
4677
|
-
|
|
4678
|
-
comp: (
|
|
4679
|
-
var O, m,
|
|
4680
|
-
return ((O = w == null ? void 0 : w.key) == null ? void 0 : O.toUpperCase()) === ((
|
|
4681
|
-
})) == null ? void 0 :
|
|
4682
|
-
name: (o = (
|
|
4708
|
+
g.push({
|
|
4709
|
+
comp: (h = pe == null ? void 0 : pe.find((w) => {
|
|
4710
|
+
var O, m, N;
|
|
4711
|
+
return ((O = w == null ? void 0 : w.key) == null ? void 0 : O.toUpperCase()) === ((N = (m = Object.keys(d)) == null ? void 0 : m[0]) == null ? void 0 : N.toUpperCase());
|
|
4712
|
+
})) == null ? void 0 : h.value,
|
|
4713
|
+
name: (o = (C = Object.values(d)) == null ? void 0 : C[0]) == null ? void 0 : o.replace(/[’]|[‘]|[']/g, ""),
|
|
4683
4714
|
compData: []
|
|
4684
4715
|
});
|
|
4685
4716
|
else if (ce != null && ce.find((w) => {
|
|
4686
|
-
var O, m,
|
|
4687
|
-
return ((O = w == null ? void 0 : w.key) == null ? void 0 : O.toUpperCase()) === ((
|
|
4717
|
+
var O, m, N;
|
|
4718
|
+
return ((O = w == null ? void 0 : w.key) == null ? void 0 : O.toUpperCase()) === ((N = (m = Object.keys(d)) == null ? void 0 : m[0]) == null ? void 0 : N.toUpperCase());
|
|
4688
4719
|
})) {
|
|
4689
|
-
if ((
|
|
4690
|
-
(
|
|
4720
|
+
if ((g == null ? void 0 : g.length) === 0) return;
|
|
4721
|
+
(u = g == null ? void 0 : g[(g == null ? void 0 : g.length) - 1]) != null && u.compData && g[(g == null ? void 0 : g.length) - 1].compData.push({
|
|
4691
4722
|
key: (t = ce == null ? void 0 : ce.find((w) => {
|
|
4692
|
-
var O, m,
|
|
4693
|
-
return ((O = w == null ? void 0 : w.key) == null ? void 0 : O.toUpperCase()) === ((
|
|
4723
|
+
var O, m, N;
|
|
4724
|
+
return ((O = w == null ? void 0 : w.key) == null ? void 0 : O.toUpperCase()) === ((N = (m = Object.keys(d)) == null ? void 0 : m[0]) == null ? void 0 : N.toUpperCase());
|
|
4694
4725
|
})) == null ? void 0 : t.value,
|
|
4695
|
-
contents: (b = Object.values(
|
|
4726
|
+
contents: (b = Object.values(d)) == null ? void 0 : b[0]
|
|
4696
4727
|
});
|
|
4697
|
-
} else if ((
|
|
4698
|
-
const w = (se = (R = Object.keys(
|
|
4699
|
-
|
|
4728
|
+
} else if ((F = (U = Object.keys(d)) == null ? void 0 : U[0]) != null && F.includes("$")) {
|
|
4729
|
+
const w = (se = (R = Object.keys(c(d))) == null ? void 0 : R[0]) == null ? void 0 : se.split("$");
|
|
4730
|
+
g[(g == null ? void 0 : g.length) - 1].compData.push({
|
|
4700
4731
|
key: (oe = ce == null ? void 0 : ce.find((O) => {
|
|
4701
|
-
var m,
|
|
4702
|
-
return ((m = O == null ? void 0 : O.key) == null ? void 0 : m.toUpperCase()) === ((
|
|
4732
|
+
var m, N;
|
|
4733
|
+
return ((m = O == null ? void 0 : O.key) == null ? void 0 : m.toUpperCase()) === ((N = w == null ? void 0 : w[0]) == null ? void 0 : N.toUpperCase());
|
|
4703
4734
|
})) == null ? void 0 : oe.value,
|
|
4704
|
-
contents: (
|
|
4735
|
+
contents: (f = Object.values(d)) == null ? void 0 : f[0],
|
|
4705
4736
|
selectLabel: w == null ? void 0 : w[1]
|
|
4706
4737
|
});
|
|
4707
4738
|
}
|
|
4708
|
-
return
|
|
4709
|
-
}), I.contents =
|
|
4739
|
+
return d;
|
|
4740
|
+
}), I.contents = g, I;
|
|
4710
4741
|
})), T;
|
|
4711
|
-
}),
|
|
4742
|
+
}), y;
|
|
4712
4743
|
} catch {
|
|
4713
4744
|
return !1;
|
|
4714
4745
|
}
|
|
4715
|
-
},
|
|
4746
|
+
}, ir = (a) => la(a), ur = (a) => !!la(a), Qe = j(0), cr = (a) => a.reduce((l, e) => {
|
|
4716
4747
|
var r, p;
|
|
4717
4748
|
const n = Object.values(l);
|
|
4718
4749
|
return (((r = Object.keys(l)) == null ? void 0 : r.length) === 0 || n[n.length - 1].length >= (e == null ? void 0 : e.width)) && (l[Qe.value] = [], Qe.value++), l[Qe.value - 1].push(e), ((p = Object.keys(l)) == null ? void 0 : p.length) === (e == null ? void 0 : e.width) && (l[Qe.value] = [], Qe.value++), l;
|
|
4719
4750
|
}, {});
|
|
4720
4751
|
export {
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4752
|
+
cr as a,
|
|
4753
|
+
rr as b,
|
|
4754
|
+
tr as c,
|
|
4724
4755
|
bl as d,
|
|
4725
|
-
|
|
4756
|
+
ir as e,
|
|
4726
4757
|
Xl as f,
|
|
4727
4758
|
vl as g,
|
|
4728
|
-
|
|
4759
|
+
ur as i,
|
|
4729
4760
|
zl as m,
|
|
4730
|
-
|
|
4731
|
-
|
|
4761
|
+
Io as p,
|
|
4762
|
+
so as s
|
|
4732
4763
|
};
|