ss-component-new 1.1.239 → 1.1.251
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-Cfkocegc.cjs +7 -0
- package/dist/{array-DAwa7XAV.js → array-ajUPDjk-.js} +1286 -1249
- package/dist/{cloneDeep-kbsGGN_Q.cjs → cloneDeep-DCMyAr7F.cjs} +1 -1
- package/dist/{cloneDeep-BcK4cO7a.js → cloneDeep-DtdftT0f.js} +1 -1
- package/dist/{index-V9D4K_Sf.cjs → index-Ay3zWox0.cjs} +1 -1
- package/dist/{index-DxzvUr7M.cjs → index-B0HmXDcn.cjs} +1 -1
- package/dist/{index-Du-s_IGe.js → index-B51_btNj.js} +1 -1
- package/dist/{index-CG01yKU1.js → index-B7gPLrkw.js} +7 -7
- package/dist/{index-C3UTqVyv.cjs → index-BHTSR3FE.cjs} +1 -1
- package/dist/{index-3g7rW5vQ.js → index-BKRsxH2X.js} +1 -1
- package/dist/{index-BAWROpdj.js → index-BL7peXic.js} +1 -1
- package/dist/{index-Gc1epwAE.cjs → index-BPaNMRn3.cjs} +1 -1
- package/dist/index-BR3hwVDI.cjs +1 -0
- package/dist/{index-Bkc0R0j5.js → index-BYQHqPN_.js} +5 -5
- package/dist/{index-CiTgFX9o.js → index-BZn1s6Bk.js} +80 -80
- package/dist/{index-CoH0G-uS.cjs → index-BbIzB7YX.cjs} +1 -1
- package/dist/{index-P_6AmAJ6.js → index-BeiGUVWl.js} +1 -1
- package/dist/{index-GlyYi8eO.cjs → index-BgCZDbVt.cjs} +1 -1
- package/dist/{index-NdocPiqA.js → index-Bkxb5fHL.js} +9 -9
- package/dist/{index-B66Qf5rw.js → index-BozPGCih.js} +6 -6
- package/dist/{index-FX9zIOBz.cjs → index-BpHu02lA.cjs} +1 -1
- package/dist/{index-BhOckTgC.cjs → index-BqJOhKOc.cjs} +1 -1
- package/dist/{index-5JXCiHw3.cjs → index-C2pELaVv.cjs} +1 -1
- package/dist/{index-CWsALJ8f.cjs → index-C9j-6CeR.cjs} +1 -1
- package/dist/index-CKyiuQao.cjs +1 -0
- package/dist/{index-D0hUHQHn.cjs → index-CcRLR8Gr.cjs} +1 -1
- package/dist/{index-D0FNjq6G.cjs → index-CkJqNCcv.cjs} +1 -1
- package/dist/{index-DqLOgQsT.cjs → index-Ck_2rIhj.cjs} +1 -1
- package/dist/{index-B_VMMfxb.js → index-Cpx3RXJV.js} +1 -1
- package/dist/{index-BoA0FuEi.js → index-Cu1Ll7fu.js} +7 -7
- package/dist/{index-B2KK3HzA.cjs → index-CxlM7z0m.cjs} +1 -1
- package/dist/{index-BdiQsOpb.cjs → index-D02e7ds8.cjs} +1 -1
- package/dist/{index-CQ0bJWFx.cjs → index-D2rRKRIz.cjs} +1 -1
- package/dist/{index-DX3jtjLG.js → index-D3nDdxsA.js} +3 -3
- package/dist/{index-BFPZALXc.cjs → index-D4k4Kt_c.cjs} +1 -1
- package/dist/{index-C7Y_BQCw.js → index-D8oY3D0n.js} +7 -7
- package/dist/{index-BUga6nNK.cjs → index-DDn9ThJp.cjs} +1 -1
- package/dist/{index-D-auhS5f.js → index-DE_uaxm8.js} +3 -3
- package/dist/{index-DreX5xyP.js → index-DRXQ7Drm.js} +5 -5
- package/dist/{index-BMrHnCTf.js → index-DYNeAuQw.js} +4 -4
- package/dist/{index-Be4n2ecn.js → index-DaJlOaaY.js} +185 -186
- package/dist/{index-8hwiS85r.js → index-DcPPxNG8.js} +5 -5
- package/dist/{index-CK7nt4bL.cjs → index-DoWWO-3y.cjs} +1 -1
- package/dist/{index-DRcuI2gm.js → index-DpaiQOL7.js} +4 -4
- package/dist/{index-CrSVdnus.cjs → index-DpbJKFqm.cjs} +1 -1
- package/dist/{index-BOzSvFJA.cjs → index-Dryv4si2.cjs} +1 -1
- package/dist/{index-CgxSbKBz.js → index-Du2Yuykz.js} +4 -4
- package/dist/{index-CrdlZPHq.js → index-DvJjD7RR.js} +4 -4
- package/dist/{index-Cbj_oJPC.cjs → index-Smr1ALN3.cjs} +1 -1
- package/dist/{index-DcymGmWj.js → index-aRyZSa-G.js} +1 -1
- package/dist/{index-C8nLtJQB.js → index-jczyrHls.js} +6 -6
- package/dist/{index-FaQ9vBep.js → index-mG9i_KcW.js} +4 -4
- package/dist/{index-bC_377mt.cjs → index-xGP7OXSz.cjs} +1 -1
- package/dist/{index-B9K0EIpS.js → index-yhjaVvff.js} +5 -5
- package/dist/{index.vue_vue_type_script_setup_true_lang-DVmAEsPP.js → index.vue_vue_type_script_setup_true_lang-B0Djzy96.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-7hOFb1P0.cjs → index.vue_vue_type_script_setup_true_lang-DrbhnNKr.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_aefda2d8_lang-CMvvh_Fa.js → index.vue_vue_type_style_index_0_scoped_0cbc0899_lang-DeXLg3dX.js} +13 -13
- package/dist/{index.vue_vue_type_style_index_0_scoped_aefda2d8_lang-Df3FKHF1.cjs → index.vue_vue_type_style_index_0_scoped_0cbc0899_lang-W3uUv6w7.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-Rrc8X2Wa.js → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-BHR0eJcV.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-DI887Xui.cjs → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-DhI6ANoB.cjs} +1 -1
- package/dist/{login-C0pHH-1V.cjs → login-BaeCkWT1.cjs} +1 -1
- package/dist/{login-CbLjVnvi.js → login-Bkd6sncM.js} +2 -2
- package/dist/{main-wtI2yJ--.cjs → main-CNpsIQp6.cjs} +1 -1
- package/dist/{main-DLdZKJUK.js → main-DYIfLk_q.js} +6 -6
- package/dist/{menu-CAlO6ojx.js → menu-BkdM6zRG.js} +1 -1
- package/dist/{menu-LlBjM6b8.cjs → menu-D4qvDjG1.cjs} +1 -1
- package/dist/{modelComp-D9gZ6ZkE.js → modelComp-BMtv9CAa.js} +1 -1
- package/dist/{modelComp-Af3CYJjb.cjs → modelComp-Crl-NAn3.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- 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-D-J_e91G.cjs +0 -7
- package/dist/index-BZHxtM--.cjs +0 -1
- package/dist/index-VVRul53o.cjs +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import { ref as U, watch as
|
|
3
|
-
import { p as
|
|
4
|
-
import { s as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { c } from "./cloneDeep-
|
|
7
|
-
import { d as
|
|
8
|
-
import { E as
|
|
9
|
-
import { u as
|
|
10
|
-
import { s as
|
|
11
|
-
const
|
|
1
|
+
import { u as Ul, g as Pl, m as Rl, s as Jl, I as $e } from "./index-B7gPLrkw.js";
|
|
2
|
+
import { ref as U, watch as be, createElementBlock as M, openBlock as V, createBlock as pe, resolveComponent as ie, createVNode as z, Fragment as te, renderList as ce, createElementVNode as $, createCommentVNode as Se, toDisplayString as Z, withCtx as q, defineComponent as De, reactive as Xe, createTextVNode as ke, resolveDynamicComponent as qe, computed as Vl, renderSlot as Re, createSlots as Wl, mergeProps as zl } from "vue";
|
|
3
|
+
import { p as Ge, g as tl, a as Gl } from "./index-B51_btNj.js";
|
|
4
|
+
import { s as ve, a as xe, b as ml, g as Ml, c as Zl } from "./index-BYQHqPN_.js";
|
|
5
|
+
import { _ as ye } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
import { c } from "./cloneDeep-DtdftT0f.js";
|
|
7
|
+
import { d as Hl, s as Ye, E as Ie } from "./menu-BkdM6zRG.js";
|
|
8
|
+
import { E as Ee } from "./index-DE_uaxm8.js";
|
|
9
|
+
import { u as Kl } from "./modelComp-BMtv9CAa.js";
|
|
10
|
+
import { s as ql, a as Ql } from "./index-DYNeAuQw.js";
|
|
11
|
+
const Xl = (n) => n.match(/\((.*)\)/)[1], je = [
|
|
12
12
|
{
|
|
13
13
|
key: "单选",
|
|
14
14
|
value: "Select"
|
|
@@ -25,7 +25,7 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
25
25
|
key: "上传",
|
|
26
26
|
value: "Upload"
|
|
27
27
|
}
|
|
28
|
-
],
|
|
28
|
+
], Le = [
|
|
29
29
|
{
|
|
30
30
|
label: "输入框",
|
|
31
31
|
value: "Input"
|
|
@@ -46,7 +46,7 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
46
46
|
label: "附件选择器",
|
|
47
47
|
value: "Upload"
|
|
48
48
|
}
|
|
49
|
-
],
|
|
49
|
+
], Yl = [
|
|
50
50
|
{
|
|
51
51
|
key: "label",
|
|
52
52
|
label: "标签名",
|
|
@@ -56,7 +56,7 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
56
56
|
key: "type",
|
|
57
57
|
label: "类型",
|
|
58
58
|
type: "Select",
|
|
59
|
-
options:
|
|
59
|
+
options: Le
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
key: "originalContent",
|
|
@@ -68,7 +68,7 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
68
68
|
label: "固定值",
|
|
69
69
|
type: "Input"
|
|
70
70
|
}
|
|
71
|
-
],
|
|
71
|
+
], en = [
|
|
72
72
|
{
|
|
73
73
|
key: "label",
|
|
74
74
|
label: "标签名",
|
|
@@ -78,7 +78,7 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
78
78
|
key: "type",
|
|
79
79
|
label: "类型",
|
|
80
80
|
type: "Select",
|
|
81
|
-
options:
|
|
81
|
+
options: Le
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
key: "originalContent",
|
|
@@ -90,7 +90,7 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
90
90
|
label: "选项值",
|
|
91
91
|
type: "Input"
|
|
92
92
|
}
|
|
93
|
-
],
|
|
93
|
+
], ln = [
|
|
94
94
|
{
|
|
95
95
|
key: "label",
|
|
96
96
|
label: "标签名",
|
|
@@ -100,14 +100,14 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
100
100
|
key: "type",
|
|
101
101
|
label: "类型",
|
|
102
102
|
type: "Select",
|
|
103
|
-
options:
|
|
103
|
+
options: Le
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
key: "originalContent",
|
|
107
107
|
label: "初始值",
|
|
108
108
|
type: "Date"
|
|
109
109
|
}
|
|
110
|
-
],
|
|
110
|
+
], nn = [
|
|
111
111
|
{
|
|
112
112
|
key: "label",
|
|
113
113
|
label: "标签名",
|
|
@@ -117,14 +117,14 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
117
117
|
key: "type",
|
|
118
118
|
label: "类型",
|
|
119
119
|
type: "Select",
|
|
120
|
-
options:
|
|
120
|
+
options: Le
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
key: "originalContent",
|
|
124
124
|
label: "初始值",
|
|
125
125
|
type: "Input"
|
|
126
126
|
}
|
|
127
|
-
],
|
|
127
|
+
], an = [
|
|
128
128
|
{
|
|
129
129
|
key: "label",
|
|
130
130
|
label: "标签名",
|
|
@@ -134,30 +134,30 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
134
134
|
key: "type",
|
|
135
135
|
label: "类型",
|
|
136
136
|
type: "Select",
|
|
137
|
-
options:
|
|
137
|
+
options: Le
|
|
138
138
|
}
|
|
139
|
-
],
|
|
139
|
+
], Ce = [
|
|
140
140
|
{
|
|
141
141
|
key: "Input",
|
|
142
|
-
value:
|
|
142
|
+
value: Yl
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
key: "Select",
|
|
146
|
-
value:
|
|
146
|
+
value: en
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
key: "Date",
|
|
150
|
-
value:
|
|
150
|
+
value: ln
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
key: "TextArea",
|
|
154
|
-
value:
|
|
154
|
+
value: nn
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
157
|
key: "Upload",
|
|
158
|
-
value:
|
|
158
|
+
value: an
|
|
159
159
|
}
|
|
160
|
-
],
|
|
160
|
+
], sn = [
|
|
161
161
|
{
|
|
162
162
|
value: "normal",
|
|
163
163
|
label: "自定义"
|
|
@@ -178,7 +178,7 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
178
178
|
value: "delete",
|
|
179
179
|
label: "删除"
|
|
180
180
|
}
|
|
181
|
-
],
|
|
181
|
+
], Ae = [
|
|
182
182
|
{
|
|
183
183
|
key: "label",
|
|
184
184
|
label: "按钮名",
|
|
@@ -188,14 +188,14 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
188
188
|
key: "type",
|
|
189
189
|
label: "类型",
|
|
190
190
|
type: "Select",
|
|
191
|
-
options:
|
|
191
|
+
options: sn
|
|
192
192
|
},
|
|
193
193
|
{
|
|
194
194
|
key: "background",
|
|
195
195
|
label: "颜色",
|
|
196
196
|
type: "Color"
|
|
197
197
|
}
|
|
198
|
-
],
|
|
198
|
+
], on = { class: "form-content" }, tn = {
|
|
199
199
|
__name: "index",
|
|
200
200
|
props: {
|
|
201
201
|
formRules: Object,
|
|
@@ -211,40 +211,40 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
211
211
|
},
|
|
212
212
|
emits: ["change", "contentChange"],
|
|
213
213
|
setup(n, { emit: s }) {
|
|
214
|
-
const l = n, e = s, a = U([]), o = U(!1), r = U([]), p =
|
|
214
|
+
const l = n, e = s, a = U([]), o = U(!1), r = U([]), p = Ul(Ge), g = U(!1), h = U(), f = (C) => {
|
|
215
215
|
var v, k, t, i;
|
|
216
|
-
const
|
|
217
|
-
let
|
|
216
|
+
const E = (k = (v = c(l.itemData)) == null ? void 0 : v.find((u) => (u == null ? void 0 : u.key) === "formContent")) == null ? void 0 : k.contents, m = c(C.content);
|
|
217
|
+
let B = {};
|
|
218
218
|
m && ((t = Object.values(m)) == null ? void 0 : t.length) > 0 && ((i = Object.values(m)) == null || i.forEach((u, y) => {
|
|
219
|
-
|
|
219
|
+
B[E[y].key] = u;
|
|
220
220
|
}));
|
|
221
221
|
const d = {
|
|
222
|
-
content:
|
|
222
|
+
content: B,
|
|
223
223
|
index: l == null ? void 0 : l.index,
|
|
224
224
|
buttonName: C == null ? void 0 : C.buttonName
|
|
225
225
|
};
|
|
226
226
|
e("change", d);
|
|
227
|
-
},
|
|
228
|
-
var
|
|
227
|
+
}, x = (C) => {
|
|
228
|
+
var B, d;
|
|
229
229
|
if (!C) return;
|
|
230
|
-
if (((
|
|
230
|
+
if (((B = Object.values(c(C))) == null ? void 0 : B.length) > 0) {
|
|
231
231
|
const v = (d = Object.values(c(C))) == null ? void 0 : d.map((t) => t);
|
|
232
232
|
let k = "";
|
|
233
233
|
v == null || v.forEach((t) => {
|
|
234
234
|
t !== "" && t !== void 0 && (k = k === "" ? t : k + "/" + t);
|
|
235
235
|
}), p.setSelectArray(v), p.setSelectString(k);
|
|
236
236
|
}
|
|
237
|
-
const
|
|
237
|
+
const E = c(l.itemData), m = E == null ? void 0 : E.map((v) => {
|
|
238
238
|
var k;
|
|
239
239
|
return (v == null ? void 0 : v.key) === "formContent" && ((k = v.contents) == null || k.map((t, i) => {
|
|
240
|
-
var u, y, P, J, R, I,
|
|
241
|
-
return t.type = t != null && t.type ? t.type : (J = (P = (y = (u = t == null ? void 0 : t.key) == null ? void 0 : u.split("$")) == null ? void 0 : y[1]) == null ? void 0 : P.split("(")) != null && J[0] ? (R =
|
|
242
|
-
var
|
|
243
|
-
return (
|
|
244
|
-
})) == null ? void 0 : R.value : "Input", t.options = t != null && t.options ? t.options : ((
|
|
245
|
-
label:
|
|
246
|
-
value:
|
|
247
|
-
})) : [], (
|
|
240
|
+
var u, y, P, J, R, I, N, O, b, L, A, S, D, H, W, X, ee, oe, de;
|
|
241
|
+
return t.type = t != null && t.type ? t.type : (J = (P = (y = (u = t == null ? void 0 : t.key) == null ? void 0 : u.split("$")) == null ? void 0 : y[1]) == null ? void 0 : P.split("(")) != null && J[0] ? (R = je == null ? void 0 : je.find((fe) => {
|
|
242
|
+
var ge, se, me, he;
|
|
243
|
+
return (fe == null ? void 0 : fe.key) === ((he = (me = (se = (ge = t == null ? void 0 : t.key) == null ? void 0 : ge.split("$")) == null ? void 0 : se[1]) == null ? void 0 : me.split("(")) == null ? void 0 : he[0]);
|
|
244
|
+
})) == null ? void 0 : R.value : "Input", t.options = t != null && t.options ? t.options : ((O = (N = (I = t == null ? void 0 : t.key) == null ? void 0 : I.split("$")) == null ? void 0 : N[1]) == null ? void 0 : O.length) > 0 ? (S = (A = Xl((L = (b = t == null ? void 0 : t.key) == null ? void 0 : b.split("$")) == null ? void 0 : L[1])) == null ? void 0 : A.split(",")) == null ? void 0 : S.map((fe) => ({
|
|
245
|
+
label: fe,
|
|
246
|
+
value: fe
|
|
247
|
+
})) : [], (D = t == null ? void 0 : t.key) != null && D.includes("$") && (t.key = (W = (H = t == null ? void 0 : t.key) == null ? void 0 : H.split("$")) == null ? void 0 : W[0]), t.value = Array.isArray((X = Object.values(C)) == null ? void 0 : X[i]) ? (oe = (ee = Object.values(C)) == null ? void 0 : ee[i]) == null ? void 0 : oe[0] : (de = Object.values(C)) == null ? void 0 : de[i], t;
|
|
248
248
|
})), v;
|
|
249
249
|
});
|
|
250
250
|
e("contentChange", {
|
|
@@ -252,73 +252,73 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
252
252
|
index: l.index
|
|
253
253
|
});
|
|
254
254
|
};
|
|
255
|
-
return
|
|
255
|
+
return be(
|
|
256
256
|
() => l.itemData,
|
|
257
257
|
() => {
|
|
258
|
-
var v, k, t, i, u, y, P, J, R, I,
|
|
259
|
-
const C = (v = c(l.itemData)) == null ? void 0 : v.find((
|
|
260
|
-
if ((
|
|
261
|
-
const
|
|
262
|
-
(J = C == null ? void 0 : C.contents) == null || J.forEach((
|
|
263
|
-
var
|
|
264
|
-
if ((
|
|
265
|
-
let
|
|
266
|
-
if ((
|
|
267
|
-
const [
|
|
268
|
-
|
|
269
|
-
label:
|
|
270
|
-
value:
|
|
258
|
+
var v, k, t, i, u, y, P, J, R, I, N;
|
|
259
|
+
const C = (v = c(l.itemData)) == null ? void 0 : v.find((O) => (O == null ? void 0 : O.key) === "formContent"), E = (k = c(l.itemData)) == null ? void 0 : k.find((O) => (O == null ? void 0 : O.key) === "formButton"), m = (t = c(l.itemData)) == null ? void 0 : t.find((O) => (O == null ? void 0 : O.key) === "formFlex"), B = (i = c(l.itemData)) == null ? void 0 : i.find((O) => (O == null ? void 0 : O.key) === "formWrap"), d = (u = c(l.itemData)) == null ? void 0 : u.find((O) => (O == null ? void 0 : O.key) === "enableWrap");
|
|
260
|
+
if ((B == null ? void 0 : B.contents) === "纵向" ? o.value = !1 : o.value = !0, g.value = (d == null ? void 0 : d.contents) === void 0 ? !1 : d == null ? void 0 : d.contents, h.value = typeof (m == null ? void 0 : m.contents) != "boolean" ? !(!(m != null && m.contents) === "" || ((y = m == null ? void 0 : m.contents) == null ? void 0 : y.toUpperCase()) === "VERTICAL") : m == null ? void 0 : m.contents, ((P = C == null ? void 0 : C.contents) == null ? void 0 : P.length) > 0 && Array.isArray(C == null ? void 0 : C.contents)) {
|
|
261
|
+
const O = [];
|
|
262
|
+
(J = C == null ? void 0 : C.contents) == null || J.forEach((A, S) => {
|
|
263
|
+
var D, H, W, X, ee, oe, de, fe, ge, se;
|
|
264
|
+
if ((A == null ? void 0 : A.label) !== "") {
|
|
265
|
+
let me = (A == null ? void 0 : A.label) ?? (A == null ? void 0 : A.key) ?? "", he = (A == null ? void 0 : A.type) ?? "", re = (A == null ? void 0 : A.options) ?? [];
|
|
266
|
+
if ((D = A == null ? void 0 : A.key) != null && D.includes("$") && (me = (H = c(A == null ? void 0 : A.key).split("$")) == null ? void 0 : H[0], ((X = (W = c(A == null ? void 0 : A.key).split("$")) == null ? void 0 : W[1]) == null ? void 0 : X.length) > 0)) {
|
|
267
|
+
const [w, _] = (oe = (ee = c(A == null ? void 0 : A.key).split("$")) == null ? void 0 : ee[1]) == null ? void 0 : oe.split(/[()]/);
|
|
268
|
+
he = ((de = je.find((T) => (T == null ? void 0 : T.key) === w)) == null ? void 0 : de.value) ?? "", ((fe = _ == null ? void 0 : _.split(",")) == null ? void 0 : fe.length) > 0 && (re = (ge = _ == null ? void 0 : _.split(",")) == null ? void 0 : ge.map((T) => ({
|
|
269
|
+
label: T,
|
|
270
|
+
value: T
|
|
271
271
|
})));
|
|
272
272
|
}
|
|
273
|
-
|
|
274
|
-
label:
|
|
273
|
+
O.push({
|
|
274
|
+
label: me ?? "",
|
|
275
275
|
name: "t" + S,
|
|
276
|
-
type:
|
|
277
|
-
value:
|
|
278
|
-
id: (
|
|
279
|
-
contents:
|
|
280
|
-
width: (
|
|
276
|
+
type: he === "" ? "Input" : he,
|
|
277
|
+
value: A != null && A.value ? A.value : (re == null ? void 0 : re.length) > 0 ? (se = re == null ? void 0 : re[0]) == null ? void 0 : se.value : (A == null ? void 0 : A.value) ?? "",
|
|
278
|
+
id: (A == null ? void 0 : A.id) ?? S,
|
|
279
|
+
contents: re ?? [],
|
|
280
|
+
width: (A == null ? void 0 : A.width) ?? 1
|
|
281
281
|
});
|
|
282
282
|
}
|
|
283
283
|
});
|
|
284
|
-
const b = (R = c(
|
|
284
|
+
const b = (R = c(O)) == null ? void 0 : R.map((A) => A.value);
|
|
285
285
|
let L = "";
|
|
286
|
-
b == null || b.forEach((
|
|
287
|
-
|
|
288
|
-
}), p.setSelectArray(b), p.setSelectString(L), a.value =
|
|
286
|
+
b == null || b.forEach((A) => {
|
|
287
|
+
A !== "" && A !== void 0 && (L = L === "" ? A : L + "/" + A);
|
|
288
|
+
}), p.setSelectArray(b), p.setSelectString(L), a.value = O;
|
|
289
289
|
} else
|
|
290
290
|
a.value = [];
|
|
291
|
-
if (((I =
|
|
292
|
-
const
|
|
293
|
-
(
|
|
294
|
-
(b == null ? void 0 : b.label) !== "" &&
|
|
291
|
+
if (((I = E == null ? void 0 : E.contents) == null ? void 0 : I.length) > 0) {
|
|
292
|
+
const O = [];
|
|
293
|
+
(N = E == null ? void 0 : E.contents) == null || N.forEach((b, L) => {
|
|
294
|
+
(b == null ? void 0 : b.label) !== "" && O.push({
|
|
295
295
|
label: (b == null ? void 0 : b.label) ?? "",
|
|
296
296
|
id: (b == null ? void 0 : b.id) ?? L,
|
|
297
297
|
type: (b == null ? void 0 : b.type) ?? "",
|
|
298
298
|
background: b == null ? void 0 : b.background
|
|
299
299
|
});
|
|
300
|
-
}), r.value =
|
|
300
|
+
}), r.value = O;
|
|
301
301
|
} else
|
|
302
302
|
r.value = [];
|
|
303
303
|
},
|
|
304
304
|
{ deep: !0, immediate: !0 }
|
|
305
|
-
), (C,
|
|
306
|
-
(V(),
|
|
305
|
+
), (C, E) => (V(), M("div", on, [
|
|
306
|
+
(V(), pe(ve, {
|
|
307
307
|
rowContents: a.value,
|
|
308
308
|
formRules: n.formRules,
|
|
309
309
|
buttonValue: r.value,
|
|
310
310
|
isRowFlex: h.value,
|
|
311
311
|
isEnableWrap: g.value,
|
|
312
312
|
onOnButtonClick: f,
|
|
313
|
-
onChange:
|
|
313
|
+
onChange: x,
|
|
314
314
|
isButtonRow: o.value,
|
|
315
315
|
key: l.itemData
|
|
316
316
|
}, null, 8, ["rowContents", "formRules", "buttonValue", "isRowFlex", "isEnableWrap", "isButtonRow"]))
|
|
317
317
|
]));
|
|
318
318
|
}
|
|
319
|
-
},
|
|
319
|
+
}, rl = /* @__PURE__ */ ye(tn, [["__scopeId", "data-v-63ad44fd"]]), We = U(0), vl = (n) => {
|
|
320
320
|
var s;
|
|
321
|
-
return !n || (n == null ? void 0 : n.length) === 0 ? [] : (s = c(n)) == null ? void 0 : s.map((e) => (
|
|
321
|
+
return !n || (n == null ? void 0 : n.length) === 0 ? [] : (s = c(n)) == null ? void 0 : s.map((e) => (We.value++, e = {
|
|
322
322
|
label: (e == null ? void 0 : e.label) ?? "",
|
|
323
323
|
prop: (e == null ? void 0 : e.label) === "操作" ? "operate" : e == null ? void 0 : e.prop,
|
|
324
324
|
width: e != null && e.width ? parseInt(e.width) : "",
|
|
@@ -329,12 +329,12 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
329
329
|
isNotDrag: (e == null ? void 0 : e.isNotDrag) ?? !1,
|
|
330
330
|
isEditCol: (e == null ? void 0 : e.isEditCol) ?? !1,
|
|
331
331
|
isOperate: (e == null ? void 0 : e.isOperate) ?? !1,
|
|
332
|
-
id: (e == null ? void 0 : e.id) ??
|
|
333
|
-
children:
|
|
332
|
+
id: (e == null ? void 0 : e.id) ?? We.value,
|
|
333
|
+
children: vl(e == null ? void 0 : e.children)
|
|
334
334
|
}, e));
|
|
335
|
-
},
|
|
335
|
+
}, rn = (n) => {
|
|
336
336
|
var l;
|
|
337
|
-
return (l = c(n)) == null ? void 0 : l.map((e) => (
|
|
337
|
+
return (l = c(n)) == null ? void 0 : l.map((e) => (We.value++, e = {
|
|
338
338
|
label: (e == null ? void 0 : e.label) ?? "",
|
|
339
339
|
prop: (e == null ? void 0 : e.label) === "操作" ? "operate" : e == null ? void 0 : e.prop,
|
|
340
340
|
width: e != null && e.width ? parseInt(e.width) : "",
|
|
@@ -345,16 +345,16 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
345
345
|
isNotDrag: (e == null ? void 0 : e.isNotDrag) ?? !1,
|
|
346
346
|
isEditCol: (e == null ? void 0 : e.isEditCol) ?? !1,
|
|
347
347
|
isOperate: (e == null ? void 0 : e.isOperate) ?? !1,
|
|
348
|
-
id: (e == null ? void 0 : e.id) ??
|
|
349
|
-
children:
|
|
348
|
+
id: (e == null ? void 0 : e.id) ?? We.value,
|
|
349
|
+
children: vl(e == null ? void 0 : e.children)
|
|
350
350
|
}, e));
|
|
351
|
-
},
|
|
351
|
+
}, bl = (n, s) => {
|
|
352
352
|
var l;
|
|
353
|
-
return n != null && n.find((e) => (e == null ? void 0 : e.id) === s) ? (l = c(n)) == null ? void 0 : l.filter((a) => (a == null ? void 0 : a.id) !== s) : (n = n == null ? void 0 : n.map((e) => (e.children =
|
|
354
|
-
},
|
|
353
|
+
return n != null && n.find((e) => (e == null ? void 0 : e.id) === s) ? (l = c(n)) == null ? void 0 : l.filter((a) => (a == null ? void 0 : a.id) !== s) : (n = n == null ? void 0 : n.map((e) => (e.children = bl(e == null ? void 0 : e.children, s), e)), n);
|
|
354
|
+
}, gl = (n, s) => {
|
|
355
355
|
var l;
|
|
356
|
-
return n != null && n.find((e) => (e == null ? void 0 : e.id) === (s == null ? void 0 : s.id)) ? (l = c(n)) == null ? void 0 : l.map((a) => ((a == null ? void 0 : a.id) === (s == null ? void 0 : s.id) && (a = s), a)) : (n = n == null ? void 0 : n.map((e) => (e.children =
|
|
357
|
-
},
|
|
356
|
+
return n != null && n.find((e) => (e == null ? void 0 : e.id) === (s == null ? void 0 : s.id)) ? (l = c(n)) == null ? void 0 : l.map((a) => ((a == null ? void 0 : a.id) === (s == null ? void 0 : s.id) && (a = s), a)) : (n = n == null ? void 0 : n.map((e) => (e.children = gl(e == null ? void 0 : e.children, s), e)), n);
|
|
357
|
+
}, kl = (n, s) => {
|
|
358
358
|
var l;
|
|
359
359
|
return n != null && n.find((e) => {
|
|
360
360
|
var a;
|
|
@@ -362,11 +362,11 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
362
362
|
}) ? (l = c(n)) == null ? void 0 : l.map((a) => {
|
|
363
363
|
var o;
|
|
364
364
|
return (a == null ? void 0 : a.id) === ((o = s == null ? void 0 : s.contents) == null ? void 0 : o.id) && (a = s == null ? void 0 : s.contents), a;
|
|
365
|
-
}) : (n = n == null ? void 0 : n.map((e) => (e.children =
|
|
366
|
-
},
|
|
365
|
+
}) : (n = n == null ? void 0 : n.map((e) => (e.children = kl(e == null ? void 0 : e.children, s), e)), n);
|
|
366
|
+
}, Cl = (n, s) => {
|
|
367
367
|
var l;
|
|
368
|
-
return n != null && n.find((e) => (e == null ? void 0 : e.id) === (s == null ? void 0 : s.id)) ? (l = c(n)) == null ? void 0 : l.map((a) => ((a == null ? void 0 : a.id) === (s == null ? void 0 : s.id) && (a != null && a.children || (a.children = []), a.children.push(s.contents)), a)) : (n = n == null ? void 0 : n.map((e) => (e.children =
|
|
369
|
-
},
|
|
368
|
+
return n != null && n.find((e) => (e == null ? void 0 : e.id) === (s == null ? void 0 : s.id)) ? (l = c(n)) == null ? void 0 : l.map((a) => ((a == null ? void 0 : a.id) === (s == null ? void 0 : s.id) && (a != null && a.children || (a.children = []), a.children.push(s.contents)), a)) : (n = n == null ? void 0 : n.map((e) => (e.children = Cl(e == null ? void 0 : e.children, s), e)), n);
|
|
369
|
+
}, Y = [
|
|
370
370
|
{
|
|
371
371
|
key: "label",
|
|
372
372
|
label: "标签名",
|
|
@@ -411,7 +411,7 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
411
411
|
label: "是否固定列",
|
|
412
412
|
type: "Switch"
|
|
413
413
|
}
|
|
414
|
-
],
|
|
414
|
+
], un = [
|
|
415
415
|
{
|
|
416
416
|
label: "view",
|
|
417
417
|
value: "查看"
|
|
@@ -424,12 +424,12 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
424
424
|
label: "delete",
|
|
425
425
|
value: "删除"
|
|
426
426
|
}
|
|
427
|
-
],
|
|
427
|
+
], cn = [
|
|
428
428
|
{
|
|
429
429
|
label: "add",
|
|
430
430
|
value: "新增"
|
|
431
431
|
}
|
|
432
|
-
],
|
|
432
|
+
], we = [
|
|
433
433
|
{
|
|
434
434
|
key: "label",
|
|
435
435
|
label: "按钮名",
|
|
@@ -439,14 +439,14 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
439
439
|
key: "type",
|
|
440
440
|
label: "类型",
|
|
441
441
|
type: "Select",
|
|
442
|
-
options:
|
|
442
|
+
options: cn
|
|
443
443
|
},
|
|
444
444
|
{
|
|
445
445
|
key: "background",
|
|
446
446
|
label: "按钮背景色",
|
|
447
447
|
type: "Color"
|
|
448
448
|
}
|
|
449
|
-
],
|
|
449
|
+
], Te = [
|
|
450
450
|
{
|
|
451
451
|
key: "label",
|
|
452
452
|
label: "按钮名",
|
|
@@ -456,14 +456,14 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
456
456
|
key: "type",
|
|
457
457
|
label: "类型",
|
|
458
458
|
type: "Select",
|
|
459
|
-
options:
|
|
459
|
+
options: un
|
|
460
460
|
},
|
|
461
461
|
{
|
|
462
462
|
key: "textColor",
|
|
463
463
|
label: "按钮颜色",
|
|
464
464
|
type: "Color"
|
|
465
465
|
}
|
|
466
|
-
],
|
|
466
|
+
], _l = Hl("modelTableComp", {
|
|
467
467
|
state: () => ({
|
|
468
468
|
tableIndex: 0
|
|
469
469
|
}),
|
|
@@ -472,20 +472,20 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
472
472
|
this.tableIndex = n;
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
-
}),
|
|
475
|
+
}), pn = { class: "table-header-child" }, dn = { class: "table-header-child-main" }, fn = { class: "table-header-child-content" }, hn = { class: "table-header-child-content-item" }, yn = { class: "fix-button" }, mn = { key: 0 }, vn = { class: "form-content" }, bn = {
|
|
476
476
|
__name: "tableNewChild",
|
|
477
477
|
props: {
|
|
478
478
|
tableChildContents: Array
|
|
479
479
|
},
|
|
480
480
|
emits: ["fixChange", "deleteChange"],
|
|
481
481
|
setup(n, { emit: s }) {
|
|
482
|
-
const l = n, e = s, a = U(!1), o = U(""), r =
|
|
482
|
+
const l = n, e = s, a = U(!1), o = U(""), r = _l(Ge), { tableIndex: p } = Ye(r);
|
|
483
483
|
U(0);
|
|
484
|
-
const g = U(""), h = U([]), f = U([]),
|
|
484
|
+
const g = U(""), h = U([]), f = U([]), x = (t) => {
|
|
485
485
|
var u;
|
|
486
486
|
a.value = !0;
|
|
487
487
|
let i = [];
|
|
488
|
-
|
|
488
|
+
Y == null || Y.forEach((y) => {
|
|
489
489
|
let P = c(p.value) + 1;
|
|
490
490
|
r.setTableIndex(P), i.push({
|
|
491
491
|
label: y == null ? void 0 : y.label,
|
|
@@ -501,12 +501,12 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
501
501
|
}), g.value = t == null ? void 0 : t.id, h.value = i, f.value = i;
|
|
502
502
|
}, C = (t) => {
|
|
503
503
|
e("fixChange", c(t));
|
|
504
|
-
},
|
|
504
|
+
}, E = (t) => {
|
|
505
505
|
e("deleteChange", c(t));
|
|
506
506
|
}, m = (t) => {
|
|
507
507
|
a.value = !0;
|
|
508
508
|
let i = [];
|
|
509
|
-
|
|
509
|
+
Y == null || Y.forEach((u) => {
|
|
510
510
|
let y = c(p.value) + 1;
|
|
511
511
|
r.setTableIndex(y), i.push({
|
|
512
512
|
label: u == null ? void 0 : u.label,
|
|
@@ -517,7 +517,7 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
517
517
|
contents: u == null ? void 0 : u.options
|
|
518
518
|
});
|
|
519
519
|
}), o.value = t == null ? void 0 : t.id, h.value = i, f.value = i;
|
|
520
|
-
},
|
|
520
|
+
}, B = (t) => {
|
|
521
521
|
let i = c(f.value);
|
|
522
522
|
i = i == null ? void 0 : i.map((u) => (u.children || (u.value = t == null ? void 0 : t[u.name]), u)), f.value = i;
|
|
523
523
|
}, d = () => {
|
|
@@ -526,7 +526,7 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
526
526
|
let t = {};
|
|
527
527
|
if (g.value !== "")
|
|
528
528
|
t.id = g.value, (i = h.value) == null || i.forEach((y) => {
|
|
529
|
-
const P =
|
|
529
|
+
const P = Y == null ? void 0 : Y.find((J) => (J == null ? void 0 : J.label) === (y == null ? void 0 : y.label));
|
|
530
530
|
P ? t[P.key] = y.value : y != null && y.children && y.children.length > 0 && (t.children = y.children);
|
|
531
531
|
}), a.value = !1, e("fixChange", {
|
|
532
532
|
contents: c(t),
|
|
@@ -536,7 +536,7 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
536
536
|
else {
|
|
537
537
|
let y = c(p.value) + 1;
|
|
538
538
|
r.setTableIndex(y), t.id = "id" + p.value, (u = h.value) == null || u.forEach((P) => {
|
|
539
|
-
const J =
|
|
539
|
+
const J = Y == null ? void 0 : Y.find((R) => (R == null ? void 0 : R.label) === (P == null ? void 0 : P.label));
|
|
540
540
|
J ? t[J.key] = P.value : P != null && P.children && P.children.length > 0 && (t.children = P.children);
|
|
541
541
|
}), a.value = !1, e("fixChange", {
|
|
542
542
|
contents: c(t),
|
|
@@ -548,13 +548,13 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
548
548
|
}, v = () => {
|
|
549
549
|
a.value = !1, g.value = "", o.value = "", h.value = [], f.value = [];
|
|
550
550
|
}, k = (t) => {
|
|
551
|
-
|
|
551
|
+
Ee.confirm("是否确认要删除", "", {
|
|
552
552
|
confirmButtonText: "确认",
|
|
553
553
|
cancelButtonText: "取消",
|
|
554
554
|
type: "warning"
|
|
555
555
|
}).then(
|
|
556
556
|
() => {
|
|
557
|
-
e("deleteChange", t),
|
|
557
|
+
e("deleteChange", t), Ie({
|
|
558
558
|
type: "success",
|
|
559
559
|
message: "删除成功"
|
|
560
560
|
});
|
|
@@ -563,25 +563,25 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
563
563
|
});
|
|
564
564
|
};
|
|
565
565
|
return (t, i) => {
|
|
566
|
-
const u =
|
|
567
|
-
return V(),
|
|
568
|
-
(V(!0),
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
566
|
+
const u = ie("svg-icon");
|
|
567
|
+
return V(), M("div", pn, [
|
|
568
|
+
(V(!0), M(te, null, ce(l == null ? void 0 : l.tableChildContents, (y, P) => (V(), M("div", dn, [
|
|
569
|
+
$("div", fn, [
|
|
570
|
+
$("div", hn, Z(y.label), 1),
|
|
571
|
+
$("div", yn, [
|
|
572
|
+
z(u, {
|
|
573
573
|
name: "ChildAdd",
|
|
574
574
|
class: "svg-icon-content",
|
|
575
575
|
style: { width: "24px", height: "24px" },
|
|
576
576
|
onClick: (J) => m(y)
|
|
577
577
|
}, null, 8, ["onClick"]),
|
|
578
|
-
|
|
578
|
+
z(u, {
|
|
579
579
|
name: "ChildFix",
|
|
580
580
|
class: "svg-icon-content",
|
|
581
581
|
style: { width: "24px", height: "24px" },
|
|
582
|
-
onClick: (J) =>
|
|
582
|
+
onClick: (J) => x(y)
|
|
583
583
|
}, null, 8, ["onClick"]),
|
|
584
|
-
|
|
584
|
+
z(u, {
|
|
585
585
|
name: "ChildDelete",
|
|
586
586
|
class: "svg-icon-content",
|
|
587
587
|
style: { width: "24px", height: "24px" },
|
|
@@ -589,39 +589,39 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
589
589
|
}, null, 8, ["onClick"])
|
|
590
590
|
])
|
|
591
591
|
]),
|
|
592
|
-
y != null && y.children && y.children.length > 0 ? (V(),
|
|
593
|
-
|
|
592
|
+
y != null && y.children && y.children.length > 0 ? (V(), M("div", mn, [
|
|
593
|
+
z(xl, {
|
|
594
594
|
tableChildContents: y == null ? void 0 : y.children,
|
|
595
|
-
onDeleteChange:
|
|
595
|
+
onDeleteChange: E,
|
|
596
596
|
onFixChange: C
|
|
597
597
|
}, null, 8, ["tableChildContents"])
|
|
598
|
-
])) :
|
|
598
|
+
])) : Se("", !0)
|
|
599
599
|
]))), 256)),
|
|
600
|
-
|
|
600
|
+
z(xe, {
|
|
601
601
|
visible: a.value,
|
|
602
602
|
onBeforeDestroy: v,
|
|
603
603
|
width: 840
|
|
604
604
|
}, {
|
|
605
|
-
default:
|
|
606
|
-
|
|
607
|
-
(V(),
|
|
605
|
+
default: q(() => [
|
|
606
|
+
$("div", vn, [
|
|
607
|
+
(V(), pe(ve, {
|
|
608
608
|
rowContents: h.value,
|
|
609
609
|
key: h.value,
|
|
610
610
|
isEnableWrap: !0,
|
|
611
|
-
onChange:
|
|
611
|
+
onChange: B
|
|
612
612
|
}, null, 8, ["rowContents"]))
|
|
613
613
|
])
|
|
614
614
|
]),
|
|
615
|
-
footer:
|
|
616
|
-
|
|
617
|
-
|
|
615
|
+
footer: q(() => [
|
|
616
|
+
$("div", { class: "dialog-footer" }, [
|
|
617
|
+
$("div", {
|
|
618
618
|
onClick: v,
|
|
619
619
|
class: "cancel-button button"
|
|
620
|
-
},
|
|
621
|
-
|
|
620
|
+
}, Z("取消")),
|
|
621
|
+
$("div", {
|
|
622
622
|
class: "ok-button button",
|
|
623
623
|
onClick: d
|
|
624
|
-
},
|
|
624
|
+
}, Z("确认"))
|
|
625
625
|
])
|
|
626
626
|
]),
|
|
627
627
|
_: 1
|
|
@@ -629,20 +629,20 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
629
629
|
]);
|
|
630
630
|
};
|
|
631
631
|
}
|
|
632
|
-
},
|
|
632
|
+
}, gn = /* @__PURE__ */ ye(bn, [["__scopeId", "data-v-e0fef72d"]]), kn = { class: "table-header-child" }, Cn = { class: "table-header-child-main" }, _n = { class: "table-header-child-content" }, xn = { class: "table-header-child-content-item" }, $n = { class: "fix-button" }, An = { key: 0 }, wn = { class: "form-content" }, Tn = {
|
|
633
633
|
__name: "tableChildren",
|
|
634
634
|
props: {
|
|
635
635
|
tableChildContents: Array
|
|
636
636
|
},
|
|
637
637
|
emits: ["fixChange", "deleteChange"],
|
|
638
638
|
setup(n, { emit: s }) {
|
|
639
|
-
const l = n, e = s, a = U(!1), o = U(""), r =
|
|
639
|
+
const l = n, e = s, a = U(!1), o = U(""), r = _l(Ge), { tableIndex: p } = Ye(r), g = U(""), h = U([]), f = U([]), x = (t) => {
|
|
640
640
|
e("fixChange", c(t));
|
|
641
641
|
}, C = (t) => {
|
|
642
642
|
var u;
|
|
643
643
|
a.value = !0;
|
|
644
644
|
let i = [];
|
|
645
|
-
|
|
645
|
+
Y == null || Y.forEach((y) => {
|
|
646
646
|
let P = c(p.value) + 1;
|
|
647
647
|
r.setTableIndex(P), i.push({
|
|
648
648
|
label: y == null ? void 0 : y.label,
|
|
@@ -656,10 +656,10 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
656
656
|
children: t == null ? void 0 : t.children,
|
|
657
657
|
isFormColHidden: !0
|
|
658
658
|
}), g.value = t == null ? void 0 : t.id, h.value = i, f.value = i;
|
|
659
|
-
},
|
|
659
|
+
}, E = (t) => {
|
|
660
660
|
a.value = !0;
|
|
661
661
|
let i = [];
|
|
662
|
-
|
|
662
|
+
Y == null || Y.forEach((u) => {
|
|
663
663
|
let y = c(p.value) + 1;
|
|
664
664
|
r.setTableIndex(y), i.push({
|
|
665
665
|
label: u == null ? void 0 : u.label,
|
|
@@ -673,13 +673,13 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
673
673
|
}, m = (t) => {
|
|
674
674
|
let i = c(f.value);
|
|
675
675
|
i = i == null ? void 0 : i.map((u) => (u.children || (u.value = t == null ? void 0 : t[u.name]), u)), f.value = i;
|
|
676
|
-
},
|
|
676
|
+
}, B = () => {
|
|
677
677
|
var i, u;
|
|
678
678
|
h.value = f.value;
|
|
679
679
|
let t = {};
|
|
680
680
|
if (g.value !== "")
|
|
681
681
|
t.id = g.value, (i = h.value) == null || i.forEach((y) => {
|
|
682
|
-
const P =
|
|
682
|
+
const P = Y == null ? void 0 : Y.find((J) => (J == null ? void 0 : J.label) === (y == null ? void 0 : y.label));
|
|
683
683
|
P ? t[P.key] = y.value : y != null && y.children && y.children.length > 0 && (t.children = y.children);
|
|
684
684
|
}), a.value = !1, e("fixChange", {
|
|
685
685
|
contents: c(t),
|
|
@@ -689,7 +689,7 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
689
689
|
else {
|
|
690
690
|
let y = c(p.value) + 1;
|
|
691
691
|
r.setTableIndex(y), t.id = "idChild" + p.value, (u = h.value) == null || u.forEach((P) => {
|
|
692
|
-
const J =
|
|
692
|
+
const J = Y == null ? void 0 : Y.find((R) => (R == null ? void 0 : R.label) === (P == null ? void 0 : P.label));
|
|
693
693
|
J ? t[J.key] = P.value : P != null && P.children && P.children.length > 0 && (t.children = P.children);
|
|
694
694
|
}), a.value = !1, e("fixChange", {
|
|
695
695
|
contents: c(t),
|
|
@@ -701,13 +701,13 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
701
701
|
}, d = () => {
|
|
702
702
|
a.value = !1, g.value = "", o.value = "", h.value = [], f.value = [];
|
|
703
703
|
}, v = (t) => {
|
|
704
|
-
|
|
704
|
+
Ee.confirm("是否确认要删除", "", {
|
|
705
705
|
confirmButtonText: "确认",
|
|
706
706
|
cancelButtonText: "取消",
|
|
707
707
|
type: "warning"
|
|
708
708
|
}).then(
|
|
709
709
|
() => {
|
|
710
|
-
e("deleteChange", t),
|
|
710
|
+
e("deleteChange", t), Ie({
|
|
711
711
|
type: "success",
|
|
712
712
|
message: "删除成功"
|
|
713
713
|
});
|
|
@@ -718,25 +718,25 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
718
718
|
e("deleteChange", t);
|
|
719
719
|
};
|
|
720
720
|
return (t, i) => {
|
|
721
|
-
const u =
|
|
722
|
-
return V(),
|
|
723
|
-
(V(!0),
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
721
|
+
const u = ie("svg-icon");
|
|
722
|
+
return V(), M("div", kn, [
|
|
723
|
+
(V(!0), M(te, null, ce(l == null ? void 0 : l.tableChildContents, (y, P) => (V(), M("div", Cn, [
|
|
724
|
+
$("div", _n, [
|
|
725
|
+
$("div", xn, Z(y.label), 1),
|
|
726
|
+
$("div", $n, [
|
|
727
|
+
z(u, {
|
|
728
728
|
name: "ChildAdd",
|
|
729
729
|
class: "svg-icon-content",
|
|
730
730
|
style: { width: "24px", height: "24px" },
|
|
731
|
-
onClick: (J) =>
|
|
731
|
+
onClick: (J) => E(y)
|
|
732
732
|
}, null, 8, ["onClick"]),
|
|
733
|
-
|
|
733
|
+
z(u, {
|
|
734
734
|
name: "ChildFix",
|
|
735
735
|
class: "svg-icon-content",
|
|
736
736
|
style: { width: "24px", height: "24px" },
|
|
737
737
|
onClick: (J) => C(y)
|
|
738
738
|
}, null, 8, ["onClick"]),
|
|
739
|
-
|
|
739
|
+
z(u, {
|
|
740
740
|
name: "ChildDelete",
|
|
741
741
|
class: "svg-icon-content",
|
|
742
742
|
style: { width: "24px", height: "24px" },
|
|
@@ -744,22 +744,22 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
744
744
|
}, null, 8, ["onClick"])
|
|
745
745
|
])
|
|
746
746
|
]),
|
|
747
|
-
y != null && y.children && y.children.length > 0 ? (V(),
|
|
748
|
-
|
|
747
|
+
y != null && y.children && y.children.length > 0 ? (V(), M("div", An, [
|
|
748
|
+
z(gn, {
|
|
749
749
|
tableChildContents: y == null ? void 0 : y.children,
|
|
750
750
|
onDeleteChange: k,
|
|
751
|
-
onFixChange:
|
|
751
|
+
onFixChange: x
|
|
752
752
|
}, null, 8, ["tableChildContents"])
|
|
753
|
-
])) :
|
|
753
|
+
])) : Se("", !0)
|
|
754
754
|
]))), 256)),
|
|
755
|
-
|
|
755
|
+
z(xe, {
|
|
756
756
|
visible: a.value,
|
|
757
757
|
onBeforeDestroy: d,
|
|
758
758
|
width: 840
|
|
759
759
|
}, {
|
|
760
|
-
default:
|
|
761
|
-
|
|
762
|
-
(V(),
|
|
760
|
+
default: q(() => [
|
|
761
|
+
$("div", wn, [
|
|
762
|
+
(V(), pe(ve, {
|
|
763
763
|
rowContents: h.value,
|
|
764
764
|
key: h.value,
|
|
765
765
|
isEnableWrap: !0,
|
|
@@ -767,16 +767,16 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
767
767
|
}, null, 8, ["rowContents"]))
|
|
768
768
|
])
|
|
769
769
|
]),
|
|
770
|
-
footer:
|
|
771
|
-
|
|
772
|
-
|
|
770
|
+
footer: q(() => [
|
|
771
|
+
$("div", { class: "dialog-footer" }, [
|
|
772
|
+
$("div", {
|
|
773
773
|
onClick: d,
|
|
774
774
|
class: "cancel-button button"
|
|
775
|
-
},
|
|
776
|
-
|
|
775
|
+
}, Z("取消")),
|
|
776
|
+
$("div", {
|
|
777
777
|
class: "ok-button button",
|
|
778
|
-
onClick:
|
|
779
|
-
},
|
|
778
|
+
onClick: B
|
|
779
|
+
}, Z("确认"))
|
|
780
780
|
])
|
|
781
781
|
]),
|
|
782
782
|
_: 1
|
|
@@ -784,7 +784,7 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
784
784
|
]);
|
|
785
785
|
};
|
|
786
786
|
}
|
|
787
|
-
},
|
|
787
|
+
}, xl = /* @__PURE__ */ ye(Tn, [["__scopeId", "data-v-cc311a5f"]]), In = { class: "table-operate-content" }, En = { class: "table-operate-item" }, Dn = { class: "operate-title" }, On = { class: "operate-content" }, Bn = { class: "fix-content" }, Fn = { class: "fix-content-label" }, Nn = { class: "fix-button" }, Sn = { key: 0 }, Ln = { class: "operate-title" }, jn = { class: "operate-content" }, Un = { class: "fix-content" }, Pn = { class: "fix-content-label" }, Rn = { class: "fix-button" }, Jn = { class: "operate-title" }, Vn = { class: "operate-content" }, Wn = { class: "fix-content" }, zn = { class: "fix-content-label" }, Gn = { class: "fix-button" }, Mn = { class: "operate-title" }, Zn = { class: "operate-content" }, Hn = { class: "fix-content" }, Kn = { class: "fix-content-label" }, qn = { class: "fix-button" }, Qn = { class: "operate-content" }, Xn = { style: { display: "flex", "justify-content": "space-between" } }, Yn = { class: "form-content" }, ea = { class: "form-content" }, la = { class: "form-content" }, na = {
|
|
788
788
|
__name: "operate",
|
|
789
789
|
props: {
|
|
790
790
|
itemContents: {
|
|
@@ -798,242 +798,245 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
798
798
|
},
|
|
799
799
|
emits: ["change"],
|
|
800
800
|
setup(n, { emit: s }) {
|
|
801
|
-
const l = n, e = s, a = U([]), o = U(!1), r = U([]), p = U(!1), g = U([]), h = U(!1), f = U([]),
|
|
801
|
+
const l = n, e = s, a = U([]), o = U(!1), r = U([]), p = U(!1), g = U([]), h = U(!1), f = U([]), x = U(""), C = U(""), E = U([]), m = U([]), B = U([]), d = U([]), v = U(!1), k = U([]), t = U([]), i = U(0), u = U([]), y = () => {
|
|
802
802
|
v.value = !0;
|
|
803
|
-
let
|
|
804
|
-
|
|
805
|
-
i.value++,
|
|
806
|
-
label:
|
|
807
|
-
name:
|
|
808
|
-
type:
|
|
809
|
-
value: (
|
|
803
|
+
let w = [];
|
|
804
|
+
we == null || we.forEach((_) => {
|
|
805
|
+
i.value++, w.push({
|
|
806
|
+
label: _ == null ? void 0 : _.label,
|
|
807
|
+
name: _ == null ? void 0 : _.label,
|
|
808
|
+
type: _.type,
|
|
809
|
+
value: (_ == null ? void 0 : _.key) === "background" ? "var(--ssComponent-primary-color)" : "",
|
|
810
810
|
id: i.value,
|
|
811
|
-
contents:
|
|
811
|
+
contents: _ == null ? void 0 : _.options
|
|
812
812
|
});
|
|
813
|
-
}), k.value =
|
|
814
|
-
},
|
|
813
|
+
}), k.value = w, t.value = w;
|
|
814
|
+
}, P = () => {
|
|
815
|
+
}, J = (w) => {
|
|
816
|
+
}, R = (w) => {
|
|
817
|
+
}, I = (w) => {
|
|
815
818
|
v.value = !0;
|
|
816
|
-
let
|
|
817
|
-
|
|
818
|
-
i.value++,
|
|
819
|
-
label:
|
|
820
|
-
name:
|
|
821
|
-
type:
|
|
822
|
-
value:
|
|
819
|
+
let _ = [];
|
|
820
|
+
we == null || we.forEach((T) => {
|
|
821
|
+
i.value++, _.push({
|
|
822
|
+
label: T == null ? void 0 : T.label,
|
|
823
|
+
name: T == null ? void 0 : T.label,
|
|
824
|
+
type: T.type,
|
|
825
|
+
value: w[T.key],
|
|
823
826
|
id: i.value,
|
|
824
|
-
contents:
|
|
827
|
+
contents: T == null ? void 0 : T.options
|
|
825
828
|
});
|
|
826
|
-
}),
|
|
829
|
+
}), x.value = w == null ? void 0 : w.id, k.value = _, t.value = _;
|
|
827
830
|
};
|
|
828
|
-
|
|
831
|
+
be(
|
|
829
832
|
() => h.value,
|
|
830
833
|
() => {
|
|
831
|
-
var
|
|
832
|
-
let
|
|
833
|
-
(
|
|
834
|
+
var _, T;
|
|
835
|
+
let w = c(l.originalItemContents);
|
|
836
|
+
(_ = c(l.originalItemContents)) != null && _.find((F) => (F == null ? void 0 : F.key) === "page") ? w = (T = c(l.originalItemContents)) == null ? void 0 : T.map((F) => ((F == null ? void 0 : F.key) === "page" && (F.contents = h.value), F)) : w.push({
|
|
834
837
|
key: "page",
|
|
835
838
|
contents: h.value
|
|
836
|
-
}), e("change",
|
|
839
|
+
}), e("change", w);
|
|
837
840
|
},
|
|
838
841
|
{ deep: !0 }
|
|
839
842
|
);
|
|
840
|
-
const
|
|
841
|
-
|
|
843
|
+
const N = (w) => {
|
|
844
|
+
Ee.confirm("是否确认要删除", "", {
|
|
842
845
|
confirmButtonText: "确认",
|
|
843
846
|
cancelButtonText: "取消",
|
|
844
847
|
type: "warning"
|
|
845
848
|
}).then(
|
|
846
849
|
() => {
|
|
847
|
-
var
|
|
848
|
-
m.value = (
|
|
850
|
+
var _, T;
|
|
851
|
+
m.value = (_ = c(m.value)) == null ? void 0 : _.filter((F) => (F == null ? void 0 : F.id) !== (w == null ? void 0 : w.id)), e("change", (T = c(l.originalItemContents)) == null ? void 0 : T.map((F) => ((F == null ? void 0 : F.key) === "extraButton" && (F.contents = m.value), F))), Ie({
|
|
849
852
|
type: "success",
|
|
850
853
|
message: "删除成功"
|
|
851
854
|
});
|
|
852
855
|
}
|
|
853
856
|
).catch(() => {
|
|
854
857
|
});
|
|
855
|
-
},
|
|
856
|
-
var
|
|
858
|
+
}, O = () => {
|
|
859
|
+
var T, F, le, Q, _e;
|
|
857
860
|
k.value = t.value;
|
|
858
|
-
let
|
|
859
|
-
if (
|
|
860
|
-
const
|
|
861
|
-
|
|
862
|
-
}), (
|
|
863
|
-
m.value = (
|
|
861
|
+
let w = {};
|
|
862
|
+
if (x.value !== "" ? w.id = x.value : (i.value++, w.id = "id" + i.value), (T = k.value) == null || T.forEach((G) => {
|
|
863
|
+
const K = we == null ? void 0 : we.find((ue) => (ue == null ? void 0 : ue.label) === (G == null ? void 0 : G.label));
|
|
864
|
+
K ? w[K.key] = G.value : G != null && G.children && G.children.length > 0 && (w.children = G.children);
|
|
865
|
+
}), (F = m.value) != null && F.find((G) => G.id === w.id))
|
|
866
|
+
m.value = (le = m.value) == null ? void 0 : le.map((G) => (G.id === w.id && (G = w), G));
|
|
864
867
|
else {
|
|
865
|
-
let
|
|
866
|
-
|
|
868
|
+
let G = c(m.value);
|
|
869
|
+
G.push(w), m.value = G;
|
|
867
870
|
}
|
|
868
|
-
v.value = !1,
|
|
869
|
-
let
|
|
870
|
-
(
|
|
871
|
+
v.value = !1, x.value = "";
|
|
872
|
+
let _ = c(l.originalItemContents);
|
|
873
|
+
(Q = c(l.originalItemContents)) != null && Q.find((G) => (G == null ? void 0 : G.key) === "extraButton") ? _ = (_e = c(l.originalItemContents)) == null ? void 0 : _e.map((G) => ((G == null ? void 0 : G.key) === "extraButton" && (G.contents = m.value), G)) : _.push({
|
|
871
874
|
key: "extraButton",
|
|
872
875
|
contents: m.value
|
|
873
|
-
}), e("change",
|
|
874
|
-
},
|
|
875
|
-
let
|
|
876
|
-
|
|
877
|
-
},
|
|
878
|
-
v.value = !1, k.value = [],
|
|
879
|
-
},
|
|
876
|
+
}), e("change", _);
|
|
877
|
+
}, b = (w) => {
|
|
878
|
+
let _ = c(t.value);
|
|
879
|
+
_ = _ == null ? void 0 : _.map((T) => (T.children || (T.value = w == null ? void 0 : w[T.name]), T)), t.value = _;
|
|
880
|
+
}, L = () => {
|
|
881
|
+
v.value = !1, k.value = [], x.value = "";
|
|
882
|
+
}, A = (w) => {
|
|
880
883
|
p.value = !0;
|
|
881
|
-
let
|
|
882
|
-
|
|
883
|
-
i.value++,
|
|
884
|
-
label:
|
|
885
|
-
name:
|
|
886
|
-
type:
|
|
887
|
-
value:
|
|
884
|
+
let _ = [];
|
|
885
|
+
Te == null || Te.forEach((T) => {
|
|
886
|
+
i.value++, _.push({
|
|
887
|
+
label: T == null ? void 0 : T.label,
|
|
888
|
+
name: T == null ? void 0 : T.label,
|
|
889
|
+
type: T.type,
|
|
890
|
+
value: w[T.key],
|
|
888
891
|
id: i.value,
|
|
889
|
-
contents:
|
|
892
|
+
contents: T == null ? void 0 : T.options
|
|
890
893
|
});
|
|
891
|
-
}),
|
|
892
|
-
},
|
|
893
|
-
|
|
894
|
+
}), x.value = w == null ? void 0 : w.id, B.value = _, d.value = _;
|
|
895
|
+
}, S = (w) => {
|
|
896
|
+
Ee.confirm("是否确认要删除", "", {
|
|
894
897
|
confirmButtonText: "确认",
|
|
895
898
|
cancelButtonText: "取消",
|
|
896
899
|
type: "warning"
|
|
897
900
|
}).then(
|
|
898
901
|
() => {
|
|
899
|
-
var
|
|
900
|
-
|
|
902
|
+
var _, T;
|
|
903
|
+
E.value = (_ = c(E.value)) == null ? void 0 : _.filter((F) => (F == null ? void 0 : F.id) !== (w == null ? void 0 : w.id)), e("change", (T = c(l.originalItemContents)) == null ? void 0 : T.map((F) => ((F == null ? void 0 : F.key) === "rowButton" && (F.contents = E.value), F))), Ie({
|
|
901
904
|
type: "success",
|
|
902
905
|
message: "删除成功"
|
|
903
906
|
});
|
|
904
907
|
}
|
|
905
908
|
).catch(() => {
|
|
906
909
|
});
|
|
907
|
-
},
|
|
910
|
+
}, D = () => {
|
|
908
911
|
o.value = !0;
|
|
909
|
-
let
|
|
910
|
-
|
|
911
|
-
i.value++,
|
|
912
|
-
label:
|
|
913
|
-
name:
|
|
914
|
-
type:
|
|
912
|
+
let w = [];
|
|
913
|
+
Y == null || Y.forEach((_) => {
|
|
914
|
+
i.value++, w.push({
|
|
915
|
+
label: _ == null ? void 0 : _.label,
|
|
916
|
+
name: _ == null ? void 0 : _.label,
|
|
917
|
+
type: _.type,
|
|
915
918
|
value: "",
|
|
916
919
|
id: i.value,
|
|
917
|
-
contents:
|
|
920
|
+
contents: _ == null ? void 0 : _.options
|
|
918
921
|
});
|
|
919
|
-
}), g.value =
|
|
920
|
-
},
|
|
922
|
+
}), g.value = w, f.value = w;
|
|
923
|
+
}, H = () => {
|
|
921
924
|
p.value = !0;
|
|
922
|
-
let
|
|
923
|
-
|
|
924
|
-
i.value++,
|
|
925
|
-
label:
|
|
926
|
-
name:
|
|
927
|
-
type:
|
|
925
|
+
let w = [];
|
|
926
|
+
Te == null || Te.forEach((_) => {
|
|
927
|
+
i.value++, w.push({
|
|
928
|
+
label: _ == null ? void 0 : _.label,
|
|
929
|
+
name: _ == null ? void 0 : _.label,
|
|
930
|
+
type: _.type,
|
|
928
931
|
value: "",
|
|
929
932
|
id: i.value,
|
|
930
|
-
contents:
|
|
933
|
+
contents: _ == null ? void 0 : _.options
|
|
931
934
|
});
|
|
932
|
-
}),
|
|
933
|
-
},
|
|
934
|
-
let
|
|
935
|
-
|
|
936
|
-
},
|
|
937
|
-
var
|
|
938
|
-
|
|
939
|
-
let
|
|
940
|
-
if (
|
|
941
|
-
const
|
|
942
|
-
|
|
943
|
-
}), (
|
|
944
|
-
|
|
935
|
+
}), B.value = w, d.value = w;
|
|
936
|
+
}, W = (w) => {
|
|
937
|
+
let _ = c(d.value);
|
|
938
|
+
_ = _ == null ? void 0 : _.map((T) => (T.children || (T.value = w == null ? void 0 : w[T.name]), T)), d.value = _;
|
|
939
|
+
}, X = () => {
|
|
940
|
+
var T, F, le, Q, _e;
|
|
941
|
+
B.value = d.value;
|
|
942
|
+
let w = {};
|
|
943
|
+
if (x.value !== "" ? w.id = x.value : (i.value++, w.id = "id" + i.value), (T = B.value) == null || T.forEach((G) => {
|
|
944
|
+
const K = Te == null ? void 0 : Te.find((ue) => (ue == null ? void 0 : ue.label) === (G == null ? void 0 : G.label));
|
|
945
|
+
K ? w[K.key] = G.value : G != null && G.children && G.children.length > 0 && (w.children = G.children);
|
|
946
|
+
}), (F = E.value) != null && F.find((G) => G.id === w.id))
|
|
947
|
+
E.value = (le = E.value) == null ? void 0 : le.map((G) => (G.id === w.id && (G = w), G));
|
|
945
948
|
else {
|
|
946
|
-
let
|
|
947
|
-
|
|
949
|
+
let G = c(E.value);
|
|
950
|
+
G.push(w), E.value = G;
|
|
948
951
|
}
|
|
949
|
-
p.value = !1,
|
|
950
|
-
let
|
|
951
|
-
(
|
|
952
|
+
p.value = !1, x.value = "";
|
|
953
|
+
let _ = c(l.originalItemContents);
|
|
954
|
+
(Q = c(l.originalItemContents)) != null && Q.find((G) => (G == null ? void 0 : G.key) === "rowButton") ? _ = (_e = c(l.originalItemContents)) == null ? void 0 : _e.map((G) => ((G == null ? void 0 : G.key) === "rowButton" && (G.contents = E.value), G)) : _.push({
|
|
952
955
|
key: "rowButton",
|
|
953
|
-
contents:
|
|
954
|
-
}), e("change",
|
|
955
|
-
},
|
|
956
|
-
p.value = !1,
|
|
957
|
-
},
|
|
956
|
+
contents: E.value
|
|
957
|
+
}), e("change", _);
|
|
958
|
+
}, ee = () => {
|
|
959
|
+
p.value = !1, x.value = "", d.value = [], B.value = [];
|
|
960
|
+
}, oe = (w) => {
|
|
958
961
|
o.value = !0;
|
|
959
|
-
let
|
|
960
|
-
|
|
961
|
-
i.value++,
|
|
962
|
-
label:
|
|
963
|
-
name:
|
|
964
|
-
type:
|
|
962
|
+
let _ = [];
|
|
963
|
+
Y == null || Y.forEach((T) => {
|
|
964
|
+
i.value++, _.push({
|
|
965
|
+
label: T == null ? void 0 : T.label,
|
|
966
|
+
name: T == null ? void 0 : T.label,
|
|
967
|
+
type: T.type,
|
|
965
968
|
value: "",
|
|
966
969
|
id: i.value,
|
|
967
|
-
contents:
|
|
970
|
+
contents: T == null ? void 0 : T.options
|
|
968
971
|
});
|
|
969
|
-
}), g.value =
|
|
970
|
-
},
|
|
971
|
-
var
|
|
972
|
-
r.value =
|
|
973
|
-
var
|
|
974
|
-
return (
|
|
972
|
+
}), g.value = _, C.value = w == null ? void 0 : w.id, f.value = _;
|
|
973
|
+
}, de = (w) => {
|
|
974
|
+
var _;
|
|
975
|
+
r.value = bl(c(r.value), w == null ? void 0 : w.id), e("change", (_ = c(l.originalItemContents)) == null ? void 0 : _.map((T) => {
|
|
976
|
+
var F;
|
|
977
|
+
return (T == null ? void 0 : T.key) === "header" && (T.contents = (F = r.value) != null && F.some((le) => le == null ? void 0 : le.children) ? [r.value] : r.value), T;
|
|
975
978
|
}));
|
|
976
|
-
},
|
|
977
|
-
var
|
|
978
|
-
|
|
979
|
-
let
|
|
980
|
-
(
|
|
979
|
+
}, fe = (w) => {
|
|
980
|
+
var T, F, le;
|
|
981
|
+
w.type === "fix" ? w.id !== "" ? r.value = kl(r.value, w) : r.value = gl(r.value, w == null ? void 0 : w.contents) : r.value = Cl(r.value, w), r.value = (T = r.value) != null && T.some((Q) => Q == null ? void 0 : Q.children) ? [r.value] : r.value, x.value = "";
|
|
982
|
+
let _ = c(l.originalItemContents);
|
|
983
|
+
(F = c(l.originalItemContents)) != null && F.find((Q) => (Q == null ? void 0 : Q.key) === "header") ? _ = (le = c(l.originalItemContents)) == null ? void 0 : le.map((Q) => ((Q == null ? void 0 : Q.key) === "header" && (Q.contents = r.value), Q)) : _.push({
|
|
981
984
|
key: "header",
|
|
982
985
|
contents: r.value
|
|
983
|
-
}), e("change",
|
|
984
|
-
},
|
|
985
|
-
var
|
|
986
|
+
}), e("change", _);
|
|
987
|
+
}, ge = (w) => {
|
|
988
|
+
var T;
|
|
986
989
|
o.value = !0;
|
|
987
|
-
let
|
|
988
|
-
|
|
989
|
-
i.value++,
|
|
990
|
-
label:
|
|
991
|
-
name:
|
|
992
|
-
type:
|
|
993
|
-
value:
|
|
990
|
+
let _ = [];
|
|
991
|
+
Y == null || Y.forEach((F) => {
|
|
992
|
+
i.value++, _.push({
|
|
993
|
+
label: F == null ? void 0 : F.label,
|
|
994
|
+
name: F == null ? void 0 : F.label,
|
|
995
|
+
type: F.type,
|
|
996
|
+
value: w[F.key],
|
|
994
997
|
id: i.value,
|
|
995
|
-
contents:
|
|
998
|
+
contents: F == null ? void 0 : F.options
|
|
996
999
|
});
|
|
997
|
-
}),
|
|
998
|
-
children:
|
|
1000
|
+
}), w != null && w.children && ((T = w == null ? void 0 : w.children) == null ? void 0 : T.length) > 0 && _.push({
|
|
1001
|
+
children: w == null ? void 0 : w.children,
|
|
999
1002
|
isFormColHidden: !0
|
|
1000
|
-
}),
|
|
1001
|
-
},
|
|
1002
|
-
let
|
|
1003
|
-
|
|
1004
|
-
},
|
|
1005
|
-
o.value = !1,
|
|
1006
|
-
},
|
|
1007
|
-
var
|
|
1003
|
+
}), x.value = w == null ? void 0 : w.id, C.value = "", g.value = _, f.value = _;
|
|
1004
|
+
}, se = (w) => {
|
|
1005
|
+
let _ = c(f.value);
|
|
1006
|
+
_ = _ == null ? void 0 : _.map((T) => (T.children || (T.value = w == null ? void 0 : w[T.name]), T)), f.value = _;
|
|
1007
|
+
}, me = () => {
|
|
1008
|
+
o.value = !1, x.value = "", C.value = "", f.value = [];
|
|
1009
|
+
}, he = () => {
|
|
1010
|
+
var T, F, le, Q, _e, G;
|
|
1008
1011
|
g.value = f.value;
|
|
1009
|
-
let
|
|
1010
|
-
if (
|
|
1011
|
-
const
|
|
1012
|
-
|
|
1013
|
-
}), (
|
|
1014
|
-
r.value = (
|
|
1012
|
+
let w = {};
|
|
1013
|
+
if (x.value !== "" ? w.id = x.value : (i.value++, w.id = "id" + i.value), (T = g.value) == null || T.forEach((K) => {
|
|
1014
|
+
const ue = Y == null ? void 0 : Y.find((Oe) => (Oe == null ? void 0 : Oe.label) === (K == null ? void 0 : K.label));
|
|
1015
|
+
ue ? w[ue.key] = K.value : K != null && K.children && K.children.length > 0 && (w.children = K.children);
|
|
1016
|
+
}), (F = r.value) != null && F.find((K) => K.id === w.id))
|
|
1017
|
+
r.value = (le = r.value) == null ? void 0 : le.map((K) => (K.id === w.id && (K = w), K));
|
|
1015
1018
|
else {
|
|
1016
|
-
let
|
|
1017
|
-
C.value === "" ?
|
|
1019
|
+
let K = c(r.value) ?? [];
|
|
1020
|
+
C.value === "" ? K.push(w) : K = K == null ? void 0 : K.map((ue) => (ue.id === C.value && (ue.children || (ue.children = []), ue.children.push(w)), ue)), r.value = K;
|
|
1018
1021
|
}
|
|
1019
|
-
r.value = (
|
|
1020
|
-
let
|
|
1021
|
-
(
|
|
1022
|
+
r.value = (Q = r.value) != null && Q.some((K) => K == null ? void 0 : K.children) ? [r.value] : r.value, o.value = !1, x.value = "", C.value = "";
|
|
1023
|
+
let _ = c(l.originalItemContents);
|
|
1024
|
+
(_e = c(l.originalItemContents)) != null && _e.find((K) => (K == null ? void 0 : K.key) === "header") ? _ = (G = c(l.originalItemContents)) == null ? void 0 : G.map((K) => ((K == null ? void 0 : K.key) === "header" && (K.contents = r.value), K)) : _.push({
|
|
1022
1025
|
key: "header",
|
|
1023
1026
|
contents: r.value
|
|
1024
|
-
}), e("change",
|
|
1025
|
-
},
|
|
1026
|
-
|
|
1027
|
+
}), e("change", _);
|
|
1028
|
+
}, re = (w) => {
|
|
1029
|
+
Ee.confirm("是否确认要删除", "", {
|
|
1027
1030
|
confirmButtonText: "确认",
|
|
1028
1031
|
cancelButtonText: "取消",
|
|
1029
1032
|
type: "warning"
|
|
1030
1033
|
}).then(
|
|
1031
1034
|
() => {
|
|
1032
|
-
var
|
|
1033
|
-
r.value = (
|
|
1034
|
-
var
|
|
1035
|
-
return (
|
|
1036
|
-
})),
|
|
1035
|
+
var _, T;
|
|
1036
|
+
r.value = (_ = c(r.value)) == null ? void 0 : _.filter((F) => (F == null ? void 0 : F.id) !== (w == null ? void 0 : w.id)), e("change", (T = c(l.originalItemContents)) == null ? void 0 : T.map((F) => {
|
|
1037
|
+
var le;
|
|
1038
|
+
return (F == null ? void 0 : F.key) === "header" && (F.contents = (le = r.value) != null && le.some((Q) => Q == null ? void 0 : Q.children) ? [r.value] : r.value), F;
|
|
1039
|
+
})), Ie({
|
|
1037
1040
|
type: "success",
|
|
1038
1041
|
message: "删除成功"
|
|
1039
1042
|
});
|
|
@@ -1041,11 +1044,11 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
1041
1044
|
).catch(() => {
|
|
1042
1045
|
});
|
|
1043
1046
|
};
|
|
1044
|
-
return
|
|
1047
|
+
return be(
|
|
1045
1048
|
() => l.originalItemContents,
|
|
1046
1049
|
() => {
|
|
1047
|
-
var
|
|
1048
|
-
!l.originalItemContents || l.originalItemContents.length === 0 || (a.value = c(l.originalItemContents), r.value = (
|
|
1050
|
+
var w, _, T, F, le, Q, _e, G, K, ue, Oe, nl, al, sl, ol;
|
|
1051
|
+
!l.originalItemContents || l.originalItemContents.length === 0 || (a.value = c(l.originalItemContents), r.value = (_ = (w = a.value) == null ? void 0 : w.find((j) => (j == null ? void 0 : j.key) === "header")) == null ? void 0 : _.contents, E.value = (F = (T = a.value) == null ? void 0 : T.find((j) => (j == null ? void 0 : j.key) === "rowButton")) == null ? void 0 : F.contents, m.value = (Q = (le = a.value) == null ? void 0 : le.find((j) => (j == null ? void 0 : j.key) === "extraButton")) == null ? void 0 : Q.contents, h.value = (G = (_e = a.value) == null ? void 0 : _e.find((j) => (j == null ? void 0 : j.key) === "page")) != null && G.contents ? !!((ue = (K = a.value) == null ? void 0 : K.find((j) => (j == null ? void 0 : j.key) === "page")) != null && ue.contents) : !1, r.value = (Oe = r.value) == null ? void 0 : Oe.map((j, Fe) => (Array.isArray(j) ? j = rn(j) : j = {
|
|
1049
1052
|
label: (j == null ? void 0 : j.label) ?? "",
|
|
1050
1053
|
prop: (j == null ? void 0 : j.label) === "操作" ? "operate" : j == null ? void 0 : j.prop,
|
|
1051
1054
|
width: j != null && j.width ? parseInt(j.width) : "",
|
|
@@ -1056,235 +1059,269 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
1056
1059
|
isNotDrag: (j == null ? void 0 : j.isNotDrag) ?? !1,
|
|
1057
1060
|
isEditCol: (j == null ? void 0 : j.isEditCol) ?? !1,
|
|
1058
1061
|
isOperate: (j == null ? void 0 : j.isOperate) ?? !1,
|
|
1059
|
-
id: (j == null ? void 0 : j.id) ??
|
|
1060
|
-
}, j)), r.value = (
|
|
1062
|
+
id: (j == null ? void 0 : j.id) ?? Fe
|
|
1063
|
+
}, j)), r.value = (nl = r.value) != null && nl.every((j) => Array.isArray(j)) ? (al = r.value) == null ? void 0 : al[0] : r.value, E.value = (sl = E.value) == null ? void 0 : sl.map((j, Fe) => j = {
|
|
1061
1064
|
label: (j == null ? void 0 : j.label) ?? "",
|
|
1062
1065
|
type: (j == null ? void 0 : j.type) ?? "",
|
|
1063
1066
|
textColor: (j == null ? void 0 : j.textColor) ?? "#000000",
|
|
1064
|
-
id: (j == null ? void 0 : j.id) ??
|
|
1065
|
-
}), m.value = (
|
|
1067
|
+
id: (j == null ? void 0 : j.id) ?? Fe
|
|
1068
|
+
}), m.value = (ol = m.value) == null ? void 0 : ol.map((j, Fe) => j = {
|
|
1066
1069
|
label: (j == null ? void 0 : j.label) ?? "",
|
|
1067
1070
|
type: (j == null ? void 0 : j.type) ?? "",
|
|
1068
1071
|
background: (j == null ? void 0 : j.background) ?? "var(--ssComponent-primary-color)",
|
|
1069
|
-
id: (j == null ? void 0 : j.id) ??
|
|
1072
|
+
id: (j == null ? void 0 : j.id) ?? Fe
|
|
1070
1073
|
}));
|
|
1071
1074
|
},
|
|
1072
1075
|
{ deep: !0, immediate: !0 }
|
|
1073
|
-
), (
|
|
1074
|
-
const
|
|
1075
|
-
return V(),
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1076
|
+
), (w, _) => {
|
|
1077
|
+
const T = ie("svg-icon");
|
|
1078
|
+
return V(), M("div", In, [
|
|
1079
|
+
$("div", En, [
|
|
1080
|
+
$("div", Dn, [
|
|
1081
|
+
_[2] || (_[2] = $("div", null, Z("表头"), -1)),
|
|
1082
|
+
$("div", {
|
|
1080
1083
|
class: "icon-content",
|
|
1081
|
-
onClick:
|
|
1084
|
+
onClick: D
|
|
1082
1085
|
}, [
|
|
1083
|
-
|
|
1086
|
+
z(T, {
|
|
1084
1087
|
name: "Plus",
|
|
1085
1088
|
class: "icon-size"
|
|
1086
1089
|
}),
|
|
1087
|
-
|
|
1090
|
+
_[1] || (_[1] = $("div", null, Z("新增"), -1))
|
|
1088
1091
|
])
|
|
1089
1092
|
]),
|
|
1090
|
-
|
|
1091
|
-
(V(!0),
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1093
|
+
$("div", On, [
|
|
1094
|
+
(V(!0), M(te, null, ce(r.value, (F, le) => (V(), M("div", { key: le }, [
|
|
1095
|
+
$("div", Bn, [
|
|
1096
|
+
$("div", Fn, Z(F == null ? void 0 : F.label), 1),
|
|
1097
|
+
$("div", Nn, [
|
|
1098
|
+
z(T, {
|
|
1096
1099
|
name: "ChildAdd",
|
|
1097
1100
|
class: "svg-icon-content",
|
|
1098
1101
|
style: { width: "24px", height: "24px" },
|
|
1099
|
-
onClick: (
|
|
1102
|
+
onClick: (Q) => oe(F)
|
|
1100
1103
|
}, null, 8, ["onClick"]),
|
|
1101
|
-
|
|
1104
|
+
z(T, {
|
|
1102
1105
|
name: "ChildFix",
|
|
1103
1106
|
class: "svg-icon-content",
|
|
1104
1107
|
style: { width: "24px", height: "24px" },
|
|
1105
|
-
onClick: (
|
|
1108
|
+
onClick: (Q) => ge(F)
|
|
1106
1109
|
}, null, 8, ["onClick"]),
|
|
1107
|
-
|
|
1110
|
+
z(T, {
|
|
1108
1111
|
name: "ChildDelete",
|
|
1109
1112
|
class: "svg-icon-content",
|
|
1110
1113
|
style: { width: "24px", height: "24px" },
|
|
1111
|
-
onClick: (
|
|
1114
|
+
onClick: (Q) => re(F)
|
|
1112
1115
|
}, null, 8, ["onClick"])
|
|
1113
1116
|
])
|
|
1114
1117
|
]),
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
tableChildContents:
|
|
1118
|
-
onDeleteChange:
|
|
1119
|
-
onFixChange:
|
|
1118
|
+
F != null && F.children && F.children.length > 0 ? (V(), M("div", Sn, [
|
|
1119
|
+
z(xl, {
|
|
1120
|
+
tableChildContents: F == null ? void 0 : F.children,
|
|
1121
|
+
onDeleteChange: de,
|
|
1122
|
+
onFixChange: fe
|
|
1120
1123
|
}, null, 8, ["tableChildContents"])
|
|
1121
|
-
])) :
|
|
1124
|
+
])) : Se("", !0)
|
|
1122
1125
|
]))), 128))
|
|
1123
1126
|
]),
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
+
$("div", Ln, [
|
|
1128
|
+
_[4] || (_[4] = $("div", null, Z("行内按钮"), -1)),
|
|
1129
|
+
$("div", {
|
|
1127
1130
|
class: "icon-content",
|
|
1128
|
-
onClick:
|
|
1131
|
+
onClick: H
|
|
1129
1132
|
}, [
|
|
1130
|
-
|
|
1133
|
+
z(T, {
|
|
1131
1134
|
name: "Plus",
|
|
1132
1135
|
class: "icon-size"
|
|
1133
1136
|
}),
|
|
1134
|
-
|
|
1137
|
+
_[3] || (_[3] = $("div", null, Z("新增"), -1))
|
|
1135
1138
|
])
|
|
1136
1139
|
]),
|
|
1137
|
-
|
|
1138
|
-
(V(!0),
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1140
|
+
$("div", jn, [
|
|
1141
|
+
(V(!0), M(te, null, ce(E.value, (F, le) => (V(), M("div", { key: le }, [
|
|
1142
|
+
$("div", Un, [
|
|
1143
|
+
$("div", Pn, Z(F == null ? void 0 : F.label), 1),
|
|
1144
|
+
$("div", Rn, [
|
|
1145
|
+
z(T, {
|
|
1143
1146
|
name: "ChildFix",
|
|
1144
1147
|
style: { width: "24px", height: "24px" },
|
|
1145
1148
|
class: "svg-icon-content",
|
|
1146
|
-
onClick: (
|
|
1149
|
+
onClick: (Q) => A(F)
|
|
1147
1150
|
}, null, 8, ["onClick"]),
|
|
1148
|
-
|
|
1151
|
+
z(T, {
|
|
1149
1152
|
name: "ChildDelete",
|
|
1150
1153
|
class: "svg-icon-content",
|
|
1151
1154
|
style: { width: "24px", height: "24px" },
|
|
1152
|
-
onClick: (
|
|
1155
|
+
onClick: (Q) => S(F)
|
|
1153
1156
|
}, null, 8, ["onClick"])
|
|
1154
1157
|
])
|
|
1155
1158
|
])
|
|
1156
1159
|
]))), 128))
|
|
1157
1160
|
]),
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
+
$("div", Jn, [
|
|
1162
|
+
_[6] || (_[6] = $("div", null, Z("表外按钮"), -1)),
|
|
1163
|
+
$("div", {
|
|
1161
1164
|
class: "icon-content",
|
|
1162
|
-
onClick:
|
|
1165
|
+
onClick: y
|
|
1163
1166
|
}, [
|
|
1164
|
-
|
|
1167
|
+
z(T, {
|
|
1165
1168
|
name: "Plus",
|
|
1166
1169
|
class: "icon-size"
|
|
1167
1170
|
}),
|
|
1168
|
-
|
|
1171
|
+
_[5] || (_[5] = $("div", null, Z("新增"), -1))
|
|
1169
1172
|
])
|
|
1170
1173
|
]),
|
|
1171
|
-
|
|
1172
|
-
(V(!0),
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1174
|
+
$("div", Vn, [
|
|
1175
|
+
(V(!0), M(te, null, ce(m.value, (F, le) => (V(), M("div", { key: le }, [
|
|
1176
|
+
$("div", Wn, [
|
|
1177
|
+
$("div", zn, Z(F == null ? void 0 : F.label), 1),
|
|
1178
|
+
$("div", Gn, [
|
|
1179
|
+
z(T, {
|
|
1177
1180
|
name: "ChildFix",
|
|
1178
1181
|
style: { width: "24px", height: "24px" },
|
|
1179
1182
|
class: "svg-icon-content",
|
|
1180
|
-
onClick: (
|
|
1183
|
+
onClick: (Q) => I(F)
|
|
1181
1184
|
}, null, 8, ["onClick"]),
|
|
1182
|
-
|
|
1185
|
+
z(T, {
|
|
1183
1186
|
name: "ChildDelete",
|
|
1184
1187
|
class: "svg-icon-content",
|
|
1185
1188
|
style: { width: "24px", height: "24px" },
|
|
1186
|
-
onClick: (
|
|
1189
|
+
onClick: (Q) => N(F)
|
|
1187
1190
|
}, null, 8, ["onClick"])
|
|
1188
1191
|
])
|
|
1189
1192
|
])
|
|
1190
1193
|
]))), 128))
|
|
1191
1194
|
]),
|
|
1192
|
-
|
|
1193
|
-
|
|
1195
|
+
$("div", Mn, [
|
|
1196
|
+
_[8] || (_[8] = $("div", null, Z("表格弹框字段设置"), -1)),
|
|
1197
|
+
$("div", {
|
|
1198
|
+
class: "icon-content",
|
|
1199
|
+
onClick: P
|
|
1200
|
+
}, [
|
|
1201
|
+
z(T, {
|
|
1202
|
+
name: "Plus",
|
|
1203
|
+
class: "icon-size"
|
|
1204
|
+
}),
|
|
1205
|
+
_[7] || (_[7] = $("div", null, Z("新增"), -1))
|
|
1206
|
+
])
|
|
1207
|
+
]),
|
|
1208
|
+
$("div", Zn, [
|
|
1209
|
+
(V(!0), M(te, null, ce(u.value, (F, le) => (V(), M("div", { key: le }, [
|
|
1210
|
+
$("div", Hn, [
|
|
1211
|
+
$("div", Kn, Z(F == null ? void 0 : F.label), 1),
|
|
1212
|
+
$("div", qn, [
|
|
1213
|
+
z(T, {
|
|
1214
|
+
name: "ChildFix",
|
|
1215
|
+
style: { width: "24px", height: "24px" },
|
|
1216
|
+
class: "svg-icon-content",
|
|
1217
|
+
onClick: (Q) => J()
|
|
1218
|
+
}, null, 8, ["onClick"]),
|
|
1219
|
+
z(T, {
|
|
1220
|
+
name: "ChildDelete",
|
|
1221
|
+
class: "svg-icon-content",
|
|
1222
|
+
style: { width: "24px", height: "24px" },
|
|
1223
|
+
onClick: (Q) => R()
|
|
1224
|
+
}, null, 8, ["onClick"])
|
|
1225
|
+
])
|
|
1226
|
+
])
|
|
1227
|
+
]))), 128))
|
|
1228
|
+
]),
|
|
1229
|
+
_[10] || (_[10] = $("div", { class: "operate-title" }, [
|
|
1230
|
+
$("div", null, Z("分页"))
|
|
1194
1231
|
], -1)),
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1232
|
+
$("div", Qn, [
|
|
1233
|
+
$("div", Xn, [
|
|
1234
|
+
_[9] || (_[9] = $("div", { class: "operate-center-content" }, Z("是否分页"), -1)),
|
|
1235
|
+
z(ml, {
|
|
1199
1236
|
modelValue: h.value,
|
|
1200
|
-
"onUpdate:modelValue":
|
|
1237
|
+
"onUpdate:modelValue": _[0] || (_[0] = (F) => h.value = F)
|
|
1201
1238
|
}, null, 8, ["modelValue"])
|
|
1202
1239
|
])
|
|
1203
1240
|
])
|
|
1204
1241
|
]),
|
|
1205
|
-
|
|
1242
|
+
z(xe, {
|
|
1206
1243
|
visible: o.value,
|
|
1207
|
-
onBeforeDestroy:
|
|
1244
|
+
onBeforeDestroy: me,
|
|
1208
1245
|
width: 840
|
|
1209
1246
|
}, {
|
|
1210
|
-
default:
|
|
1211
|
-
|
|
1212
|
-
(V(),
|
|
1247
|
+
default: q(() => [
|
|
1248
|
+
$("div", Yn, [
|
|
1249
|
+
(V(), pe(ve, {
|
|
1213
1250
|
rowContents: g.value,
|
|
1214
1251
|
key: g.value,
|
|
1215
1252
|
isEnableWrap: !0,
|
|
1216
|
-
onChange:
|
|
1253
|
+
onChange: se
|
|
1217
1254
|
}, null, 8, ["rowContents"]))
|
|
1218
1255
|
])
|
|
1219
1256
|
]),
|
|
1220
|
-
footer:
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
onClick:
|
|
1257
|
+
footer: q(() => [
|
|
1258
|
+
$("div", { class: "dialog-footer" }, [
|
|
1259
|
+
$("div", {
|
|
1260
|
+
onClick: me,
|
|
1224
1261
|
class: "cancel-button button"
|
|
1225
|
-
},
|
|
1226
|
-
|
|
1262
|
+
}, Z("取消")),
|
|
1263
|
+
$("div", {
|
|
1227
1264
|
class: "ok-button button",
|
|
1228
|
-
onClick:
|
|
1229
|
-
},
|
|
1265
|
+
onClick: he
|
|
1266
|
+
}, Z("确认"))
|
|
1230
1267
|
])
|
|
1231
1268
|
]),
|
|
1232
1269
|
_: 1
|
|
1233
1270
|
}, 8, ["visible"]),
|
|
1234
|
-
|
|
1271
|
+
z(xe, {
|
|
1235
1272
|
visible: p.value,
|
|
1236
|
-
onBeforeDestroy:
|
|
1273
|
+
onBeforeDestroy: ee,
|
|
1237
1274
|
width: 840
|
|
1238
1275
|
}, {
|
|
1239
|
-
default:
|
|
1240
|
-
|
|
1241
|
-
(V(),
|
|
1242
|
-
rowContents:
|
|
1243
|
-
key:
|
|
1276
|
+
default: q(() => [
|
|
1277
|
+
$("div", ea, [
|
|
1278
|
+
(V(), pe(ve, {
|
|
1279
|
+
rowContents: B.value,
|
|
1280
|
+
key: B.value,
|
|
1244
1281
|
isEnableWrap: !0,
|
|
1245
|
-
onChange:
|
|
1282
|
+
onChange: W
|
|
1246
1283
|
}, null, 8, ["rowContents"]))
|
|
1247
1284
|
])
|
|
1248
1285
|
]),
|
|
1249
|
-
footer:
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
onClick:
|
|
1286
|
+
footer: q(() => [
|
|
1287
|
+
$("div", { class: "dialog-footer" }, [
|
|
1288
|
+
$("div", {
|
|
1289
|
+
onClick: ee,
|
|
1253
1290
|
class: "cancel-button button"
|
|
1254
|
-
},
|
|
1255
|
-
|
|
1291
|
+
}, Z("取消")),
|
|
1292
|
+
$("div", {
|
|
1256
1293
|
class: "ok-button button",
|
|
1257
|
-
onClick:
|
|
1258
|
-
},
|
|
1294
|
+
onClick: X
|
|
1295
|
+
}, Z("确认"))
|
|
1259
1296
|
])
|
|
1260
1297
|
]),
|
|
1261
1298
|
_: 1
|
|
1262
1299
|
}, 8, ["visible"]),
|
|
1263
|
-
|
|
1300
|
+
z(xe, {
|
|
1264
1301
|
visible: v.value,
|
|
1265
|
-
onBeforeDestroy:
|
|
1302
|
+
onBeforeDestroy: L,
|
|
1266
1303
|
width: 840
|
|
1267
1304
|
}, {
|
|
1268
|
-
default:
|
|
1269
|
-
|
|
1270
|
-
(V(),
|
|
1305
|
+
default: q(() => [
|
|
1306
|
+
$("div", la, [
|
|
1307
|
+
(V(), pe(ve, {
|
|
1271
1308
|
rowContents: k.value,
|
|
1272
1309
|
key: k.value,
|
|
1273
1310
|
isEnableWrap: !0,
|
|
1274
|
-
onChange:
|
|
1311
|
+
onChange: b
|
|
1275
1312
|
}, null, 8, ["rowContents"]))
|
|
1276
1313
|
])
|
|
1277
1314
|
]),
|
|
1278
|
-
footer:
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
onClick:
|
|
1315
|
+
footer: q(() => [
|
|
1316
|
+
$("div", { class: "dialog-footer" }, [
|
|
1317
|
+
$("div", {
|
|
1318
|
+
onClick: L,
|
|
1282
1319
|
class: "cancel-button button"
|
|
1283
|
-
},
|
|
1284
|
-
|
|
1320
|
+
}, Z("取消")),
|
|
1321
|
+
$("div", {
|
|
1285
1322
|
class: "ok-button button",
|
|
1286
|
-
onClick:
|
|
1287
|
-
},
|
|
1323
|
+
onClick: O
|
|
1324
|
+
}, Z("确认"))
|
|
1288
1325
|
])
|
|
1289
1326
|
]),
|
|
1290
1327
|
_: 1
|
|
@@ -1292,7 +1329,7 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
1292
1329
|
]);
|
|
1293
1330
|
};
|
|
1294
1331
|
}
|
|
1295
|
-
},
|
|
1332
|
+
}, aa = /* @__PURE__ */ ye(na, [["__scopeId", "data-v-54f95875"]]), sa = { class: "form-operate-content" }, oa = { class: "form-operate-item" }, ta = { class: "operate-title" }, ra = { class: "operate-content" }, ia = { class: "fix-content" }, ua = { class: "fix-button" }, ca = { class: "operate-title" }, pa = { class: "operate-content" }, da = { class: "fix-content" }, fa = { class: "fix-button" }, ha = { style: { display: "flex", "justify-content": "space-between" } }, ya = { class: "form-content" }, ma = { class: "form-content" }, va = {
|
|
1296
1333
|
__name: "operate",
|
|
1297
1334
|
props: {
|
|
1298
1335
|
itemContents: {
|
|
@@ -1306,12 +1343,12 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
1306
1343
|
},
|
|
1307
1344
|
emits: ["change"],
|
|
1308
1345
|
setup(n, { emit: s }) {
|
|
1309
|
-
const l = n, e = s, a = U(!1), o = U([]), r = U([]), p = U(!1), g = U([]), h = U([]), f = U(""),
|
|
1310
|
-
var
|
|
1346
|
+
const l = n, e = s, a = U(!1), o = U([]), r = U([]), p = U(!1), g = U([]), h = U([]), f = U(""), x = U(!1), C = U(0), E = U([]), m = U([]), B = (I) => {
|
|
1347
|
+
var O, b;
|
|
1311
1348
|
a.value = !0;
|
|
1312
|
-
let
|
|
1313
|
-
(b = (
|
|
1314
|
-
C.value++,
|
|
1349
|
+
let N = [];
|
|
1350
|
+
(b = (O = Ce == null ? void 0 : Ce.find((L) => (L == null ? void 0 : L.key) === ((I == null ? void 0 : I.type) === "" ? "Input" : I == null ? void 0 : I.type))) == null ? void 0 : O.value) == null || b.forEach((L) => {
|
|
1351
|
+
C.value++, N.push({
|
|
1315
1352
|
label: L == null ? void 0 : L.label,
|
|
1316
1353
|
name: L == null ? void 0 : L.label,
|
|
1317
1354
|
type: L.type,
|
|
@@ -1319,61 +1356,61 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
1319
1356
|
id: C.value,
|
|
1320
1357
|
contents: L == null ? void 0 : L.options
|
|
1321
1358
|
});
|
|
1322
|
-
}), f.value = I == null ? void 0 : I.id, o.value =
|
|
1359
|
+
}), f.value = I == null ? void 0 : I.id, o.value = N, r.value = N;
|
|
1323
1360
|
}, d = (I) => {
|
|
1324
1361
|
p.value = !0;
|
|
1325
|
-
let
|
|
1326
|
-
|
|
1327
|
-
C.value++,
|
|
1328
|
-
label:
|
|
1329
|
-
name:
|
|
1330
|
-
type:
|
|
1331
|
-
value: (
|
|
1362
|
+
let N = [];
|
|
1363
|
+
Ae == null || Ae.forEach((O) => {
|
|
1364
|
+
C.value++, N.push({
|
|
1365
|
+
label: O == null ? void 0 : O.label,
|
|
1366
|
+
name: O == null ? void 0 : O.label,
|
|
1367
|
+
type: O.type,
|
|
1368
|
+
value: (O == null ? void 0 : O.label) === "类型" && I[O.key] === "" ? "normal" : I[O.key],
|
|
1332
1369
|
id: C.value,
|
|
1333
|
-
contents:
|
|
1370
|
+
contents: O == null ? void 0 : O.options
|
|
1334
1371
|
});
|
|
1335
|
-
}),
|
|
1372
|
+
}), E.value = N, m.value = N, f.value = I == null ? void 0 : I.id;
|
|
1336
1373
|
};
|
|
1337
|
-
|
|
1338
|
-
() =>
|
|
1374
|
+
be(
|
|
1375
|
+
() => x.value,
|
|
1339
1376
|
() => {
|
|
1340
|
-
var
|
|
1377
|
+
var N, O;
|
|
1341
1378
|
let I = c(l.originalItemContents);
|
|
1342
|
-
(
|
|
1379
|
+
(N = c(l.originalItemContents)) != null && N.find((b) => (b == null ? void 0 : b.key) === "enableWrap") ? I = (O = c(l.originalItemContents)) == null ? void 0 : O.map((b) => ((b == null ? void 0 : b.key) === "enableWrap" && (b.contents = !x.value), b)) : I.push({
|
|
1343
1380
|
key: "enableWrap",
|
|
1344
|
-
contents: !
|
|
1381
|
+
contents: !x.value
|
|
1345
1382
|
}), e("change", I);
|
|
1346
1383
|
},
|
|
1347
1384
|
{ deep: !0 }
|
|
1348
1385
|
);
|
|
1349
1386
|
const v = () => {
|
|
1350
|
-
var
|
|
1351
|
-
|
|
1387
|
+
var O, b, L, A, S;
|
|
1388
|
+
E.value = m.value;
|
|
1352
1389
|
let I = {};
|
|
1353
|
-
if (f.value !== "" ? I.id = f.value : (C.value++, I.id = "id" + C.value), (
|
|
1354
|
-
const
|
|
1355
|
-
|
|
1356
|
-
}), (b = g.value) != null && b.find((
|
|
1357
|
-
g.value = (L = g.value) == null ? void 0 : L.map((
|
|
1390
|
+
if (f.value !== "" ? I.id = f.value : (C.value++, I.id = "id" + C.value), (O = E.value) == null || O.forEach((D) => {
|
|
1391
|
+
const H = Ae == null ? void 0 : Ae.find((W) => (W == null ? void 0 : W.label) === (D == null ? void 0 : D.label));
|
|
1392
|
+
H && (I[H.key] = D.value);
|
|
1393
|
+
}), (b = g.value) != null && b.find((D) => D.id === I.id))
|
|
1394
|
+
g.value = (L = g.value) == null ? void 0 : L.map((D) => (D.id === I.id && (D = I), D));
|
|
1358
1395
|
else {
|
|
1359
|
-
let
|
|
1360
|
-
g.value || (g.value = []),
|
|
1396
|
+
let D = c(g.value);
|
|
1397
|
+
g.value || (g.value = []), D.push(I), g.value = D;
|
|
1361
1398
|
}
|
|
1362
1399
|
p.value = !1, f.value = "";
|
|
1363
|
-
let
|
|
1364
|
-
(
|
|
1400
|
+
let N = c(l.originalItemContents);
|
|
1401
|
+
(A = c(l.originalItemContents)) != null && A.find((D) => (D == null ? void 0 : D.key) === "formButton") ? N = (S = c(l.originalItemContents)) == null ? void 0 : S.map((D) => ((D == null ? void 0 : D.key) === "formButton" && (D.contents = g.value), D)) : N.push({
|
|
1365
1402
|
key: "formButton",
|
|
1366
1403
|
contents: g.value
|
|
1367
|
-
}), e("change",
|
|
1404
|
+
}), e("change", N);
|
|
1368
1405
|
}, k = (I) => {
|
|
1369
|
-
|
|
1406
|
+
Ee.confirm("是否确认要删除", "", {
|
|
1370
1407
|
confirmButtonText: "确认",
|
|
1371
1408
|
cancelButtonText: "取消",
|
|
1372
1409
|
type: "warning"
|
|
1373
1410
|
}).then(
|
|
1374
1411
|
() => {
|
|
1375
|
-
var
|
|
1376
|
-
h.value = (
|
|
1412
|
+
var N, O;
|
|
1413
|
+
h.value = (N = c(h.value)) == null ? void 0 : N.filter((b) => (b == null ? void 0 : b.id) !== (I == null ? void 0 : I.id)), e("change", (O = c(l.originalItemContents)) == null ? void 0 : O.map((b) => ((b == null ? void 0 : b.key) === "formContent" && (b.contents = h.value), b))), Ie({
|
|
1377
1414
|
type: "success",
|
|
1378
1415
|
message: "删除成功"
|
|
1379
1416
|
});
|
|
@@ -1381,14 +1418,14 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
1381
1418
|
).catch(() => {
|
|
1382
1419
|
});
|
|
1383
1420
|
}, t = (I) => {
|
|
1384
|
-
|
|
1421
|
+
Ee.confirm("是否确认要删除", "", {
|
|
1385
1422
|
confirmButtonText: "确认",
|
|
1386
1423
|
cancelButtonText: "取消",
|
|
1387
1424
|
type: "warning"
|
|
1388
1425
|
}).then(
|
|
1389
1426
|
() => {
|
|
1390
|
-
var
|
|
1391
|
-
g.value = (
|
|
1427
|
+
var N, O;
|
|
1428
|
+
g.value = (N = c(g.value)) == null ? void 0 : N.filter((b) => (b == null ? void 0 : b.id) !== (I == null ? void 0 : I.id)), e("change", (O = c(l.originalItemContents)) == null ? void 0 : O.map((b) => ((b == null ? void 0 : b.key) === "formButton" && (b.contents = g.value), b))), Ie({
|
|
1392
1429
|
type: "success",
|
|
1393
1430
|
message: "删除成功"
|
|
1394
1431
|
});
|
|
@@ -1398,21 +1435,21 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
1398
1435
|
}, i = () => {
|
|
1399
1436
|
p.value = !0;
|
|
1400
1437
|
let I = [];
|
|
1401
|
-
|
|
1438
|
+
Ae == null || Ae.forEach((N) => {
|
|
1402
1439
|
C.value++, I.push({
|
|
1403
|
-
label:
|
|
1404
|
-
name:
|
|
1405
|
-
type:
|
|
1406
|
-
value: (
|
|
1440
|
+
label: N == null ? void 0 : N.label,
|
|
1441
|
+
name: N == null ? void 0 : N.label,
|
|
1442
|
+
type: N.type,
|
|
1443
|
+
value: (N == null ? void 0 : N.label) === "类型" ? "normal" : "",
|
|
1407
1444
|
id: C.value,
|
|
1408
|
-
contents:
|
|
1445
|
+
contents: N == null ? void 0 : N.options
|
|
1409
1446
|
});
|
|
1410
|
-
}),
|
|
1447
|
+
}), E.value = I, m.value = I;
|
|
1411
1448
|
}, u = () => {
|
|
1412
|
-
var
|
|
1449
|
+
var N, O;
|
|
1413
1450
|
a.value = !0;
|
|
1414
1451
|
let I = [];
|
|
1415
|
-
(
|
|
1452
|
+
(O = (N = Ce == null ? void 0 : Ce.find((b) => (b == null ? void 0 : b.key) === "Input")) == null ? void 0 : N.value) == null || O.forEach((b) => {
|
|
1416
1453
|
C.value++, I.push({
|
|
1417
1454
|
label: b == null ? void 0 : b.label,
|
|
1418
1455
|
name: b == null ? void 0 : b.label,
|
|
@@ -1423,14 +1460,14 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
1423
1460
|
});
|
|
1424
1461
|
}), o.value = I, r.value = I;
|
|
1425
1462
|
}, y = (I) => {
|
|
1426
|
-
let
|
|
1427
|
-
|
|
1463
|
+
let N = c(m.value);
|
|
1464
|
+
N = N == null ? void 0 : N.map((O) => (O.value = I == null ? void 0 : I[O.name], O)), m.value = N;
|
|
1428
1465
|
}, P = (I) => {
|
|
1429
|
-
var
|
|
1430
|
-
if ((I == null ? void 0 : I.类型) !== ((
|
|
1431
|
-
let
|
|
1432
|
-
(L = (b =
|
|
1433
|
-
C.value++,
|
|
1466
|
+
var N, O, b, L;
|
|
1467
|
+
if ((I == null ? void 0 : I.类型) !== ((O = (N = r.value) == null ? void 0 : N.find((A) => (A == null ? void 0 : A.label) === "类型")) == null ? void 0 : O.value)) {
|
|
1468
|
+
let A = [];
|
|
1469
|
+
(L = (b = Ce == null ? void 0 : Ce.find((S) => (S == null ? void 0 : S.key) === ((I == null ? void 0 : I.类型) === "" ? "Input" : I == null ? void 0 : I.类型))) == null ? void 0 : b.value) == null || L.forEach((S) => {
|
|
1470
|
+
C.value++, A.push({
|
|
1434
1471
|
label: S == null ? void 0 : S.label,
|
|
1435
1472
|
name: S == null ? void 0 : S.label,
|
|
1436
1473
|
type: S.type,
|
|
@@ -1438,149 +1475,149 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
1438
1475
|
id: C.value,
|
|
1439
1476
|
contents: S == null ? void 0 : S.options
|
|
1440
1477
|
});
|
|
1441
|
-
}), r.value =
|
|
1478
|
+
}), r.value = A, o.value = A;
|
|
1442
1479
|
} else {
|
|
1443
|
-
let
|
|
1444
|
-
|
|
1480
|
+
let A = c(r.value);
|
|
1481
|
+
A = A == null ? void 0 : A.map((S) => (S.value = I == null ? void 0 : I[S.name], S)), r.value = A;
|
|
1445
1482
|
}
|
|
1446
1483
|
}, J = () => {
|
|
1447
|
-
var b, L,
|
|
1484
|
+
var b, L, A, S, D, H;
|
|
1448
1485
|
o.value = r.value;
|
|
1449
1486
|
let I = {};
|
|
1450
1487
|
f.value !== "" ? I.id = f.value : (C.value++, I.id = "id" + C.value);
|
|
1451
|
-
let
|
|
1452
|
-
var
|
|
1453
|
-
return (W == null ? void 0 : W.key) === (((
|
|
1488
|
+
let N = (b = Ce == null ? void 0 : Ce.find((W) => {
|
|
1489
|
+
var X, ee;
|
|
1490
|
+
return (W == null ? void 0 : W.key) === (((ee = (X = o.value) == null ? void 0 : X.find((oe) => (oe == null ? void 0 : oe.label) === "类型")) == null ? void 0 : ee.value) ?? "label");
|
|
1454
1491
|
})) == null ? void 0 : b.value;
|
|
1455
1492
|
if ((L = o.value) == null || L.forEach((W) => {
|
|
1456
|
-
const
|
|
1457
|
-
|
|
1458
|
-
}), I.width = 1, (
|
|
1493
|
+
const X = N == null ? void 0 : N.find((ee) => (ee == null ? void 0 : ee.label) === (W == null ? void 0 : W.label));
|
|
1494
|
+
X && (I[X.key] = W.value);
|
|
1495
|
+
}), I.width = 1, (A = h.value) != null && A.find((W) => W.id === I.id))
|
|
1459
1496
|
h.value = (S = h.value) == null ? void 0 : S.map((W) => (W.id === I.id && (W = I), W));
|
|
1460
1497
|
else {
|
|
1461
1498
|
let W = c(h.value);
|
|
1462
1499
|
W.push(I), h.value = W;
|
|
1463
1500
|
}
|
|
1464
1501
|
a.value = !1, f.value = "";
|
|
1465
|
-
let
|
|
1466
|
-
(
|
|
1502
|
+
let O = c(l.originalItemContents);
|
|
1503
|
+
(D = c(l.originalItemContents)) != null && D.find((W) => (W == null ? void 0 : W.key) === "formContent") ? O = (H = c(l.originalItemContents)) == null ? void 0 : H.map((W) => ((W == null ? void 0 : W.key) === "formContent" && (W.contents = h.value), W)) : O.push({
|
|
1467
1504
|
key: "formContent",
|
|
1468
1505
|
contents: h.value
|
|
1469
|
-
}), e("change",
|
|
1506
|
+
}), e("change", O);
|
|
1470
1507
|
}, R = () => {
|
|
1471
1508
|
a.value = !1, p.value = !1, f.value = "", r.value = [], m.value = [];
|
|
1472
1509
|
};
|
|
1473
|
-
return
|
|
1510
|
+
return be(
|
|
1474
1511
|
() => l.originalItemContents,
|
|
1475
1512
|
() => {
|
|
1476
|
-
var
|
|
1513
|
+
var N, O, b, L, A, S;
|
|
1477
1514
|
if (!l.originalItemContents || l.originalItemContents.length === 0) return;
|
|
1478
1515
|
const I = c(l.originalItemContents);
|
|
1479
|
-
h.value = ((
|
|
1480
|
-
label: (
|
|
1481
|
-
type: (
|
|
1482
|
-
contents: (
|
|
1483
|
-
id: (
|
|
1484
|
-
value: (
|
|
1485
|
-
}), g.value = (S = g.value) == null ? void 0 : S.map((
|
|
1486
|
-
label: (
|
|
1487
|
-
type: (
|
|
1488
|
-
background: (
|
|
1489
|
-
id: (
|
|
1516
|
+
h.value = ((N = I == null ? void 0 : I.find((D) => (D == null ? void 0 : D.key) === "formContent")) == null ? void 0 : N.contents) ?? [], g.value = ((O = I == null ? void 0 : I.find((D) => (D == null ? void 0 : D.key) === "formButton")) == null ? void 0 : O.contents) ?? [], x.value = (b = I == null ? void 0 : I.find((D) => (D == null ? void 0 : D.key) === "enableWrap")) != null && b.contents ? !((L = I == null ? void 0 : I.find((D) => (D == null ? void 0 : D.key) === "enableWrap")) != null && L.contents) : !0, h.value = (A = c(h.value)) == null ? void 0 : A.map((D, H) => D = {
|
|
1517
|
+
label: (D == null ? void 0 : D.key) ?? (D == null ? void 0 : D.label) ?? "",
|
|
1518
|
+
type: (D == null ? void 0 : D.type) ?? "",
|
|
1519
|
+
contents: (D == null ? void 0 : D.options) ?? "",
|
|
1520
|
+
id: (D == null ? void 0 : D.id) ?? H,
|
|
1521
|
+
value: (D == null ? void 0 : D.value) ?? ""
|
|
1522
|
+
}), g.value = (S = g.value) == null ? void 0 : S.map((D, H) => D = {
|
|
1523
|
+
label: (D == null ? void 0 : D.label) ?? "",
|
|
1524
|
+
type: (D == null ? void 0 : D.type) ?? "",
|
|
1525
|
+
background: (D == null ? void 0 : D.background) ?? "var(--ssComponent-primary-color)",
|
|
1526
|
+
id: (D == null ? void 0 : D.id) ?? H
|
|
1490
1527
|
});
|
|
1491
1528
|
},
|
|
1492
1529
|
{ deep: !0, immediate: !0 }
|
|
1493
|
-
), (I,
|
|
1494
|
-
const
|
|
1495
|
-
return V(),
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1530
|
+
), (I, N) => {
|
|
1531
|
+
const O = ie("svg-icon");
|
|
1532
|
+
return V(), M("div", sa, [
|
|
1533
|
+
$("div", oa, [
|
|
1534
|
+
$("div", ta, [
|
|
1535
|
+
N[2] || (N[2] = $("div", null, Z("表单内容"), -1)),
|
|
1536
|
+
$("div", {
|
|
1500
1537
|
class: "icon-content",
|
|
1501
1538
|
onClick: u
|
|
1502
1539
|
}, [
|
|
1503
|
-
|
|
1540
|
+
z(O, {
|
|
1504
1541
|
name: "Plus",
|
|
1505
1542
|
class: "icon-size"
|
|
1506
1543
|
}),
|
|
1507
|
-
|
|
1544
|
+
N[1] || (N[1] = $("div", null, Z("新增"), -1))
|
|
1508
1545
|
])
|
|
1509
1546
|
]),
|
|
1510
|
-
|
|
1511
|
-
(V(!0),
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1547
|
+
$("div", ra, [
|
|
1548
|
+
(V(!0), M(te, null, ce(h.value, (b, L) => (V(), M("div", { key: L }, [
|
|
1549
|
+
$("div", ia, [
|
|
1550
|
+
$("div", null, Z(b.label), 1),
|
|
1551
|
+
$("div", ua, [
|
|
1552
|
+
z(O, {
|
|
1516
1553
|
name: "ChildFix",
|
|
1517
1554
|
class: "svg-icon-content",
|
|
1518
1555
|
style: { width: "24px", height: "24px" },
|
|
1519
|
-
onClick: (
|
|
1556
|
+
onClick: (A) => B(b)
|
|
1520
1557
|
}, null, 8, ["onClick"]),
|
|
1521
|
-
|
|
1558
|
+
z(O, {
|
|
1522
1559
|
name: "ChildDelete",
|
|
1523
1560
|
class: "svg-icon-content",
|
|
1524
1561
|
style: { width: "24px", height: "24px" },
|
|
1525
|
-
onClick: (
|
|
1562
|
+
onClick: (A) => k(b)
|
|
1526
1563
|
}, null, 8, ["onClick"])
|
|
1527
1564
|
])
|
|
1528
1565
|
])
|
|
1529
1566
|
]))), 128))
|
|
1530
1567
|
]),
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1568
|
+
$("div", ca, [
|
|
1569
|
+
N[4] || (N[4] = $("div", null, Z("表单按钮"), -1)),
|
|
1570
|
+
$("div", {
|
|
1534
1571
|
class: "icon-content",
|
|
1535
1572
|
onClick: i
|
|
1536
1573
|
}, [
|
|
1537
|
-
|
|
1574
|
+
z(O, {
|
|
1538
1575
|
name: "Plus",
|
|
1539
1576
|
class: "icon-size"
|
|
1540
1577
|
}),
|
|
1541
|
-
|
|
1578
|
+
N[3] || (N[3] = $("div", null, Z("新增"), -1))
|
|
1542
1579
|
])
|
|
1543
1580
|
]),
|
|
1544
|
-
|
|
1545
|
-
(V(!0),
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1581
|
+
$("div", pa, [
|
|
1582
|
+
(V(!0), M(te, null, ce(g.value, (b, L) => (V(), M("div", { key: L }, [
|
|
1583
|
+
$("div", da, [
|
|
1584
|
+
$("div", null, Z(b.label), 1),
|
|
1585
|
+
$("div", fa, [
|
|
1586
|
+
z(O, {
|
|
1550
1587
|
name: "ChildFix",
|
|
1551
1588
|
class: "svg-icon-content",
|
|
1552
1589
|
style: { width: "24px", height: "24px" },
|
|
1553
|
-
onClick: (
|
|
1590
|
+
onClick: (A) => d(b)
|
|
1554
1591
|
}, null, 8, ["onClick"]),
|
|
1555
|
-
|
|
1592
|
+
z(O, {
|
|
1556
1593
|
name: "ChildDelete",
|
|
1557
1594
|
class: "svg-icon-content",
|
|
1558
1595
|
style: { width: "24px", height: "24px" },
|
|
1559
|
-
onClick: (
|
|
1596
|
+
onClick: (A) => t(b)
|
|
1560
1597
|
}, null, 8, ["onClick"])
|
|
1561
1598
|
])
|
|
1562
1599
|
])
|
|
1563
1600
|
]))), 128))
|
|
1564
1601
|
]),
|
|
1565
|
-
|
|
1566
|
-
|
|
1602
|
+
N[6] || (N[6] = $("div", { class: "operate-title" }, [
|
|
1603
|
+
$("div", null, Z("表单布局"))
|
|
1567
1604
|
], -1)),
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
modelValue:
|
|
1572
|
-
"onUpdate:modelValue":
|
|
1605
|
+
$("div", ha, [
|
|
1606
|
+
N[5] || (N[5] = $("div", { class: "operate-center-content" }, Z("是否自动撑宽"), -1)),
|
|
1607
|
+
z(ml, {
|
|
1608
|
+
modelValue: x.value,
|
|
1609
|
+
"onUpdate:modelValue": N[0] || (N[0] = (b) => x.value = b)
|
|
1573
1610
|
}, null, 8, ["modelValue"])
|
|
1574
1611
|
])
|
|
1575
1612
|
]),
|
|
1576
|
-
|
|
1613
|
+
z(xe, {
|
|
1577
1614
|
visible: a.value,
|
|
1578
1615
|
onBeforeDestroy: R,
|
|
1579
1616
|
width: 840
|
|
1580
1617
|
}, {
|
|
1581
|
-
default:
|
|
1582
|
-
|
|
1583
|
-
(V(),
|
|
1618
|
+
default: q(() => [
|
|
1619
|
+
$("div", ya, [
|
|
1620
|
+
(V(), pe(ve, {
|
|
1584
1621
|
rowContents: o.value,
|
|
1585
1622
|
key: o.value,
|
|
1586
1623
|
isEnableWrap: !0,
|
|
@@ -1588,45 +1625,45 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
1588
1625
|
}, null, 8, ["rowContents"]))
|
|
1589
1626
|
])
|
|
1590
1627
|
]),
|
|
1591
|
-
footer:
|
|
1592
|
-
|
|
1593
|
-
|
|
1628
|
+
footer: q(() => [
|
|
1629
|
+
$("div", { class: "dialog-footer" }, [
|
|
1630
|
+
$("div", {
|
|
1594
1631
|
onClick: R,
|
|
1595
1632
|
class: "cancel-button button"
|
|
1596
|
-
},
|
|
1597
|
-
|
|
1633
|
+
}, Z("取消")),
|
|
1634
|
+
$("div", {
|
|
1598
1635
|
class: "ok-button button",
|
|
1599
1636
|
onClick: J
|
|
1600
|
-
},
|
|
1637
|
+
}, Z("确认"))
|
|
1601
1638
|
])
|
|
1602
1639
|
]),
|
|
1603
1640
|
_: 1
|
|
1604
1641
|
}, 8, ["visible"]),
|
|
1605
|
-
|
|
1642
|
+
z(xe, {
|
|
1606
1643
|
visible: p.value,
|
|
1607
1644
|
onBeforeDestroy: R,
|
|
1608
1645
|
width: 840
|
|
1609
1646
|
}, {
|
|
1610
|
-
default:
|
|
1611
|
-
|
|
1612
|
-
(V(),
|
|
1613
|
-
rowContents:
|
|
1614
|
-
key:
|
|
1647
|
+
default: q(() => [
|
|
1648
|
+
$("div", ma, [
|
|
1649
|
+
(V(), pe(ve, {
|
|
1650
|
+
rowContents: E.value,
|
|
1651
|
+
key: E.value,
|
|
1615
1652
|
isEnableWrap: !0,
|
|
1616
1653
|
onChange: y
|
|
1617
1654
|
}, null, 8, ["rowContents"]))
|
|
1618
1655
|
])
|
|
1619
1656
|
]),
|
|
1620
|
-
footer:
|
|
1621
|
-
|
|
1622
|
-
|
|
1657
|
+
footer: q(() => [
|
|
1658
|
+
$("div", { class: "dialog-footer" }, [
|
|
1659
|
+
$("div", {
|
|
1623
1660
|
onClick: R,
|
|
1624
1661
|
class: "cancel-button button"
|
|
1625
|
-
},
|
|
1626
|
-
|
|
1662
|
+
}, Z("取消")),
|
|
1663
|
+
$("div", {
|
|
1627
1664
|
class: "ok-button button",
|
|
1628
1665
|
onClick: v
|
|
1629
|
-
},
|
|
1666
|
+
}, Z("确认"))
|
|
1630
1667
|
])
|
|
1631
1668
|
]),
|
|
1632
1669
|
_: 1
|
|
@@ -1634,7 +1671,7 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
1634
1671
|
]);
|
|
1635
1672
|
};
|
|
1636
1673
|
}
|
|
1637
|
-
},
|
|
1674
|
+
}, il = /* @__PURE__ */ ye(va, [["__scopeId", "data-v-7904b0dd"]]), ba = { class: "step-module content" }, ga = { class: "module-data" }, ka = { class: "step-module layout" }, Ca = { class: "form-content" }, _a = /* @__PURE__ */ De({
|
|
1638
1675
|
__name: "operate",
|
|
1639
1676
|
props: {
|
|
1640
1677
|
itemContents: {
|
|
@@ -1741,11 +1778,11 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
1741
1778
|
label: "确认",
|
|
1742
1779
|
background: "#436aaf"
|
|
1743
1780
|
}
|
|
1744
|
-
]), p =
|
|
1781
|
+
]), p = Xe({
|
|
1745
1782
|
visible: !1,
|
|
1746
1783
|
width: "40%",
|
|
1747
1784
|
title: "步骤条"
|
|
1748
|
-
}), g = U("create"), h = U({}), f = U([]),
|
|
1785
|
+
}), g = U("create"), h = U({}), f = U([]), x = (d) => {
|
|
1749
1786
|
var v;
|
|
1750
1787
|
h.value = d, e("change", (v = m()) == null ? void 0 : v.compData);
|
|
1751
1788
|
}, C = (d, v) => {
|
|
@@ -1765,7 +1802,7 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
1765
1802
|
f.value.splice(v, 1), g.value = "delete";
|
|
1766
1803
|
break;
|
|
1767
1804
|
}
|
|
1768
|
-
},
|
|
1805
|
+
}, E = (d) => {
|
|
1769
1806
|
var v, k, t;
|
|
1770
1807
|
if ((d == null ? void 0 : d.buttonName) === "确认") {
|
|
1771
1808
|
const i = c(d == null ? void 0 : d.content);
|
|
@@ -1801,54 +1838,54 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
1801
1838
|
contents: h.value
|
|
1802
1839
|
}
|
|
1803
1840
|
]
|
|
1804
|
-
}),
|
|
1841
|
+
}), B = () => {
|
|
1805
1842
|
p.visible = !1;
|
|
1806
1843
|
};
|
|
1807
|
-
return
|
|
1844
|
+
return be(() => l == null ? void 0 : l.itemContents, (d) => {
|
|
1808
1845
|
var v, k;
|
|
1809
1846
|
d && (h.value = ((v = d == null ? void 0 : d.find((t) => t.key === "stepConfig")) == null ? void 0 : v.contents) ?? {}, f.value = ((k = d == null ? void 0 : d.find((t) => t.key === "stepList")) == null ? void 0 : k.contents) ?? []);
|
|
1810
1847
|
}, { immediate: !0 }), (d, v) => {
|
|
1811
|
-
const k =
|
|
1812
|
-
return V(),
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
v[2] || (v[2] =
|
|
1816
|
-
|
|
1848
|
+
const k = ie("svg-icon"), t = ie("el-button");
|
|
1849
|
+
return V(), M(te, null, [
|
|
1850
|
+
$("div", null, [
|
|
1851
|
+
$("div", ba, [
|
|
1852
|
+
v[2] || (v[2] = $("h4", { class: "module-title" }, "内容", -1)),
|
|
1853
|
+
$("div", {
|
|
1817
1854
|
class: "module-icon",
|
|
1818
1855
|
onClick: v[0] || (v[0] = (i) => C("create"))
|
|
1819
1856
|
}, [
|
|
1820
|
-
|
|
1857
|
+
z(k, {
|
|
1821
1858
|
name: "Plus",
|
|
1822
1859
|
class: "icon-size"
|
|
1823
1860
|
}),
|
|
1824
|
-
v[1] || (v[1] =
|
|
1861
|
+
v[1] || (v[1] = $("div", null, "新增", -1))
|
|
1825
1862
|
])
|
|
1826
1863
|
]),
|
|
1827
|
-
|
|
1828
|
-
(V(!0),
|
|
1864
|
+
$("div", ga, [
|
|
1865
|
+
(V(!0), M(te, null, ce(f.value, (i, u) => (V(), M("div", {
|
|
1829
1866
|
class: "module-data-item",
|
|
1830
1867
|
key: u
|
|
1831
1868
|
}, [
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1869
|
+
$("span", null, Z(i == null ? void 0 : i.title), 1),
|
|
1870
|
+
$("div", null, [
|
|
1871
|
+
z(t, {
|
|
1835
1872
|
type: "primary",
|
|
1836
1873
|
size: "small",
|
|
1837
1874
|
onClick: (y) => C("update", { ...i, index: u + 1 })
|
|
1838
1875
|
}, {
|
|
1839
|
-
default:
|
|
1840
|
-
|
|
1876
|
+
default: q(() => v[3] || (v[3] = [
|
|
1877
|
+
ke("修改")
|
|
1841
1878
|
])),
|
|
1842
1879
|
_: 2,
|
|
1843
1880
|
__: [3]
|
|
1844
1881
|
}, 1032, ["onClick"]),
|
|
1845
|
-
|
|
1882
|
+
z(t, {
|
|
1846
1883
|
type: "danger",
|
|
1847
1884
|
size: "small",
|
|
1848
1885
|
onClick: (y) => C("delete", u)
|
|
1849
1886
|
}, {
|
|
1850
|
-
default:
|
|
1851
|
-
|
|
1887
|
+
default: q(() => v[4] || (v[4] = [
|
|
1888
|
+
ke("删除")
|
|
1852
1889
|
])),
|
|
1853
1890
|
_: 2,
|
|
1854
1891
|
__: [4]
|
|
@@ -1856,30 +1893,30 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
1856
1893
|
])
|
|
1857
1894
|
]))), 128))
|
|
1858
1895
|
]),
|
|
1859
|
-
|
|
1860
|
-
v[5] || (v[5] =
|
|
1861
|
-
|
|
1896
|
+
$("div", ka, [
|
|
1897
|
+
v[5] || (v[5] = $("div", { class: "module-title" }, "布局", -1)),
|
|
1898
|
+
z(ve, {
|
|
1862
1899
|
rowContents: a.value,
|
|
1863
|
-
onChange:
|
|
1900
|
+
onChange: x
|
|
1864
1901
|
}, null, 8, ["rowContents"])
|
|
1865
1902
|
])
|
|
1866
1903
|
]),
|
|
1867
|
-
|
|
1904
|
+
z(xe, {
|
|
1868
1905
|
visible: p.visible,
|
|
1869
1906
|
title: p.title,
|
|
1870
|
-
onBeforeDestroy:
|
|
1907
|
+
onBeforeDestroy: B,
|
|
1871
1908
|
width: p.width
|
|
1872
1909
|
}, {
|
|
1873
|
-
default:
|
|
1874
|
-
|
|
1875
|
-
(V(),
|
|
1910
|
+
default: q(() => [
|
|
1911
|
+
$("div", Ca, [
|
|
1912
|
+
(V(), pe(ve, {
|
|
1876
1913
|
rowContents: o.value,
|
|
1877
1914
|
key: o.value,
|
|
1878
1915
|
isEnableWrap: !1,
|
|
1879
1916
|
isButtonRow: !1,
|
|
1880
1917
|
isStartJustify: !1,
|
|
1881
1918
|
buttonValue: r.value,
|
|
1882
|
-
onOnButtonClick:
|
|
1919
|
+
onOnButtonClick: E
|
|
1883
1920
|
}, null, 8, ["rowContents", "buttonValue"]))
|
|
1884
1921
|
])
|
|
1885
1922
|
]),
|
|
@@ -1888,7 +1925,7 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
1888
1925
|
], 64);
|
|
1889
1926
|
};
|
|
1890
1927
|
}
|
|
1891
|
-
}),
|
|
1928
|
+
}), xa = /* @__PURE__ */ ye(_a, [["__scopeId", "data-v-47438605"]]), $a = { class: "step-module content" }, Aa = { class: "module-data" }, wa = { class: "step-module layout" }, Ta = { class: "form-content" }, Ia = /* @__PURE__ */ De({
|
|
1892
1929
|
__name: "operate",
|
|
1893
1930
|
props: {
|
|
1894
1931
|
itemContents: {
|
|
@@ -2030,11 +2067,11 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
2030
2067
|
label: "确认",
|
|
2031
2068
|
background: "#436aaf"
|
|
2032
2069
|
}
|
|
2033
|
-
]), f =
|
|
2070
|
+
]), f = Xe({
|
|
2034
2071
|
visible: !1,
|
|
2035
2072
|
width: "40%",
|
|
2036
2073
|
title: "时间线"
|
|
2037
|
-
}),
|
|
2074
|
+
}), x = (d) => {
|
|
2038
2075
|
var v;
|
|
2039
2076
|
o.value = d, console.log(1212, d), e("change", (v = m()) == null ? void 0 : v.compData);
|
|
2040
2077
|
}, C = (d, v) => {
|
|
@@ -2054,7 +2091,7 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
2054
2091
|
r.value.splice(v, 1), a.value = "delete";
|
|
2055
2092
|
break;
|
|
2056
2093
|
}
|
|
2057
|
-
},
|
|
2094
|
+
}, E = (d) => {
|
|
2058
2095
|
var v, k, t, i;
|
|
2059
2096
|
if ((d == null ? void 0 : d.buttonName) === "确认") {
|
|
2060
2097
|
const u = c(d == null ? void 0 : d.content);
|
|
@@ -2090,54 +2127,54 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
2090
2127
|
contents: o.value
|
|
2091
2128
|
}
|
|
2092
2129
|
]
|
|
2093
|
-
}),
|
|
2130
|
+
}), B = () => {
|
|
2094
2131
|
f.visible = !1;
|
|
2095
2132
|
};
|
|
2096
|
-
return
|
|
2133
|
+
return be(() => l == null ? void 0 : l.itemContents, (d) => {
|
|
2097
2134
|
var v, k;
|
|
2098
2135
|
d && (o.value = ((v = d == null ? void 0 : d.find((t) => t.key === "timeLineConfig")) == null ? void 0 : v.contents) ?? {}, r.value = ((k = d == null ? void 0 : d.find((t) => t.key === "timeLineList")) == null ? void 0 : k.contents) ?? []);
|
|
2099
2136
|
}, { immediate: !0 }), (d, v) => {
|
|
2100
|
-
const k =
|
|
2101
|
-
return V(),
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
v[2] || (v[2] =
|
|
2105
|
-
|
|
2137
|
+
const k = ie("svg-icon"), t = ie("el-button");
|
|
2138
|
+
return V(), M(te, null, [
|
|
2139
|
+
$("div", null, [
|
|
2140
|
+
$("div", $a, [
|
|
2141
|
+
v[2] || (v[2] = $("h4", { class: "module-title" }, "内容", -1)),
|
|
2142
|
+
$("div", {
|
|
2106
2143
|
class: "module-icon",
|
|
2107
2144
|
onClick: v[0] || (v[0] = (i) => C("create"))
|
|
2108
2145
|
}, [
|
|
2109
|
-
|
|
2146
|
+
z(k, {
|
|
2110
2147
|
name: "Plus",
|
|
2111
2148
|
class: "icon-size"
|
|
2112
2149
|
}),
|
|
2113
|
-
v[1] || (v[1] =
|
|
2150
|
+
v[1] || (v[1] = $("div", null, "新增", -1))
|
|
2114
2151
|
])
|
|
2115
2152
|
]),
|
|
2116
|
-
|
|
2117
|
-
(V(!0),
|
|
2153
|
+
$("div", Aa, [
|
|
2154
|
+
(V(!0), M(te, null, ce(r.value, (i, u) => (V(), M("div", {
|
|
2118
2155
|
class: "module-data-item",
|
|
2119
2156
|
key: u
|
|
2120
2157
|
}, [
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2158
|
+
$("span", null, Z(i == null ? void 0 : i.content), 1),
|
|
2159
|
+
$("div", null, [
|
|
2160
|
+
z(t, {
|
|
2124
2161
|
type: "primary",
|
|
2125
2162
|
size: "small",
|
|
2126
2163
|
onClick: (y) => C("update", { ...i, index: u + 1 })
|
|
2127
2164
|
}, {
|
|
2128
|
-
default:
|
|
2129
|
-
|
|
2165
|
+
default: q(() => v[3] || (v[3] = [
|
|
2166
|
+
ke("修改")
|
|
2130
2167
|
])),
|
|
2131
2168
|
_: 2,
|
|
2132
2169
|
__: [3]
|
|
2133
2170
|
}, 1032, ["onClick"]),
|
|
2134
|
-
|
|
2171
|
+
z(t, {
|
|
2135
2172
|
type: "danger",
|
|
2136
2173
|
size: "small",
|
|
2137
2174
|
onClick: (y) => C("delete", u)
|
|
2138
2175
|
}, {
|
|
2139
|
-
default:
|
|
2140
|
-
|
|
2176
|
+
default: q(() => v[4] || (v[4] = [
|
|
2177
|
+
ke("删除")
|
|
2141
2178
|
])),
|
|
2142
2179
|
_: 2,
|
|
2143
2180
|
__: [4]
|
|
@@ -2145,30 +2182,30 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
2145
2182
|
])
|
|
2146
2183
|
]))), 128))
|
|
2147
2184
|
]),
|
|
2148
|
-
|
|
2149
|
-
v[5] || (v[5] =
|
|
2150
|
-
|
|
2185
|
+
$("div", wa, [
|
|
2186
|
+
v[5] || (v[5] = $("div", { class: "module-title" }, "布局", -1)),
|
|
2187
|
+
z(ve, {
|
|
2151
2188
|
rowContents: p.value,
|
|
2152
|
-
onChange:
|
|
2189
|
+
onChange: x
|
|
2153
2190
|
}, null, 8, ["rowContents"])
|
|
2154
2191
|
])
|
|
2155
2192
|
]),
|
|
2156
|
-
|
|
2193
|
+
z(xe, {
|
|
2157
2194
|
visible: f.visible,
|
|
2158
2195
|
title: f.title,
|
|
2159
|
-
onBeforeDestroy:
|
|
2196
|
+
onBeforeDestroy: B,
|
|
2160
2197
|
width: f.width
|
|
2161
2198
|
}, {
|
|
2162
|
-
default:
|
|
2163
|
-
|
|
2164
|
-
(V(),
|
|
2199
|
+
default: q(() => [
|
|
2200
|
+
$("div", Ta, [
|
|
2201
|
+
(V(), pe(ve, {
|
|
2165
2202
|
rowContents: g.value,
|
|
2166
2203
|
key: g.value,
|
|
2167
2204
|
isEnableWrap: !1,
|
|
2168
2205
|
isButtonRow: !1,
|
|
2169
2206
|
isStartJustify: !1,
|
|
2170
2207
|
buttonValue: h.value,
|
|
2171
|
-
onOnButtonClick:
|
|
2208
|
+
onOnButtonClick: E
|
|
2172
2209
|
}, null, 8, ["rowContents", "buttonValue"]))
|
|
2173
2210
|
])
|
|
2174
2211
|
]),
|
|
@@ -2177,11 +2214,11 @@ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
|
|
|
2177
2214
|
], 64);
|
|
2178
2215
|
};
|
|
2179
2216
|
}
|
|
2180
|
-
}),
|
|
2181
|
-
function
|
|
2182
|
-
return V(),
|
|
2217
|
+
}), Ea = /* @__PURE__ */ ye(Ia, [["__scopeId", "data-v-40aea043"]]), Da = {};
|
|
2218
|
+
function Oa(n, s) {
|
|
2219
|
+
return V(), M("div");
|
|
2183
2220
|
}
|
|
2184
|
-
const
|
|
2221
|
+
const Ba = /* @__PURE__ */ ye(Da, [["render", Oa]]), Fa = { class: "extra-content" }, Na = { key: 0 }, Sa = { key: 1 }, La = {
|
|
2185
2222
|
__name: "index",
|
|
2186
2223
|
props: {
|
|
2187
2224
|
itemData: {
|
|
@@ -2202,7 +2239,7 @@ const xa = /* @__PURE__ */ fe(Ca, [["render", _a]]), $a = { class: "extra-conten
|
|
|
2202
2239
|
emits: ["change"],
|
|
2203
2240
|
setup(n, { emit: s }) {
|
|
2204
2241
|
const l = n, e = U(0), a = U(), o = U(), r = s, p = U(!1), g = U({}), h = U({}), f = U();
|
|
2205
|
-
|
|
2242
|
+
be(
|
|
2206
2243
|
() => [l.itemData],
|
|
2207
2244
|
() => {
|
|
2208
2245
|
var i;
|
|
@@ -2221,22 +2258,22 @@ const xa = /* @__PURE__ */ fe(Ca, [["render", _a]]), $a = { class: "extra-conten
|
|
|
2221
2258
|
},
|
|
2222
2259
|
{ deep: !0, immediate: !0 }
|
|
2223
2260
|
);
|
|
2224
|
-
const
|
|
2261
|
+
const x = (t, i, u, y) => {
|
|
2225
2262
|
var J;
|
|
2226
2263
|
let P = {};
|
|
2227
2264
|
((J = t == null ? void 0 : t[0]) == null ? void 0 : J.contents) === "详情" && (p.value = !0, P[i] = t, o.value = t == null ? void 0 : t.filter((R) => (R == null ? void 0 : R.key) !== "tableContentName"), g.value = P, h.value = u, f.value = y.id);
|
|
2228
2265
|
}, C = (t) => {
|
|
2229
|
-
var R, I,
|
|
2230
|
-
const i = (I = (R = Object.values(c(g.value))) == null ? void 0 : R[0]) == null ? void 0 : I.filter((b) => (b == null ? void 0 : b.key) === "tableContentName"), u = (
|
|
2231
|
-
var
|
|
2232
|
-
return L === t.index && (b == null ? void 0 : b.comp) === "Table" && (b.compData = (
|
|
2233
|
-
var
|
|
2234
|
-
return (S == null ? void 0 : S.key) === "tableContents" && (S.contents = (
|
|
2235
|
-
let
|
|
2236
|
-
for (let
|
|
2237
|
-
|
|
2238
|
-
return
|
|
2239
|
-
})) == null ? void 0 :
|
|
2266
|
+
var R, I, N, O;
|
|
2267
|
+
const i = (I = (R = Object.values(c(g.value))) == null ? void 0 : R[0]) == null ? void 0 : I.filter((b) => (b == null ? void 0 : b.key) === "tableContentName"), u = (O = (N = Object.values(c(g.value))) == null ? void 0 : N[0]) == null ? void 0 : O.filter((b) => (b == null ? void 0 : b.key) !== "tableContentName"), y = u == null ? void 0 : u.map((b, L) => {
|
|
2268
|
+
var A;
|
|
2269
|
+
return L === t.index && (b == null ? void 0 : b.comp) === "Table" && (b.compData = (A = b.compData) == null ? void 0 : A.map((S) => {
|
|
2270
|
+
var D, H;
|
|
2271
|
+
return (S == null ? void 0 : S.key) === "tableContents" && (S.contents = (H = (D = t.content) == null ? void 0 : D.map((W) => {
|
|
2272
|
+
let X = {};
|
|
2273
|
+
for (let ee in W)
|
|
2274
|
+
ee !== "id" && (X[ee] = W[ee]);
|
|
2275
|
+
return X;
|
|
2276
|
+
})) == null ? void 0 : H.map((W) => Object.values(W))), S;
|
|
2240
2277
|
})), b;
|
|
2241
2278
|
});
|
|
2242
2279
|
y.unshift(i == null ? void 0 : i[0]);
|
|
@@ -2244,17 +2281,17 @@ const xa = /* @__PURE__ */ fe(Ca, [["render", _a]]), $a = { class: "extra-conten
|
|
|
2244
2281
|
for (let b in P)
|
|
2245
2282
|
J[b] = y;
|
|
2246
2283
|
g.value = J;
|
|
2247
|
-
},
|
|
2284
|
+
}, E = () => {
|
|
2248
2285
|
p.value = !1, g.value = {}, h.value = {}, f.value = void 0, e.value++;
|
|
2249
2286
|
}, m = (t) => {
|
|
2250
|
-
var R, I,
|
|
2251
|
-
const i = (I = (R = Object.values(c(g.value))) == null ? void 0 : R[0]) == null ? void 0 : I.filter((b) => (b == null ? void 0 : b.key) === "tableContentName"), u = (
|
|
2287
|
+
var R, I, N, O;
|
|
2288
|
+
const i = (I = (R = Object.values(c(g.value))) == null ? void 0 : R[0]) == null ? void 0 : I.filter((b) => (b == null ? void 0 : b.key) === "tableContentName"), u = (O = (N = Object.values(c(g.value))) == null ? void 0 : N[0]) == null ? void 0 : O.filter((b) => (b == null ? void 0 : b.key) !== "tableContentName"), y = u == null ? void 0 : u.map((b, L) => (L === t.index && (b.compData = t.contents), b));
|
|
2252
2289
|
y.unshift(i == null ? void 0 : i[0]);
|
|
2253
2290
|
let P = c(g.value), J = {};
|
|
2254
2291
|
for (let b in P)
|
|
2255
2292
|
J[b] = y;
|
|
2256
2293
|
g.value = J;
|
|
2257
|
-
},
|
|
2294
|
+
}, B = () => {
|
|
2258
2295
|
var i, u;
|
|
2259
2296
|
let t = {};
|
|
2260
2297
|
for (let y in h.value)
|
|
@@ -2268,30 +2305,30 @@ const xa = /* @__PURE__ */ fe(Ca, [["render", _a]]), $a = { class: "extra-conten
|
|
|
2268
2305
|
p.value = !1, g.value = {}, h.value = {}, f.value = void 0;
|
|
2269
2306
|
}, v = (t) => {
|
|
2270
2307
|
r("change", t, "methodData");
|
|
2271
|
-
}, k = (t) =>
|
|
2272
|
-
return (t, i) => (V(),
|
|
2273
|
-
(V(!0),
|
|
2274
|
-
(u == null ? void 0 : u.key) === "extra" ? (V(),
|
|
2275
|
-
(V(),
|
|
2308
|
+
}, k = (t) => ms(t);
|
|
2309
|
+
return (t, i) => (V(), M("div", Fa, [
|
|
2310
|
+
(V(!0), M(te, null, ce(a.value, (u, y) => (V(), M("div", { key: e.value }, [
|
|
2311
|
+
(u == null ? void 0 : u.key) === "extra" ? (V(), M("div", Na)) : (V(), M("div", Sa, [
|
|
2312
|
+
(V(), pe(qe(k(u.comp)), {
|
|
2276
2313
|
itemData: u == null ? void 0 : u.compData,
|
|
2277
2314
|
childItemData: u == null ? void 0 : u.itemChildData,
|
|
2278
2315
|
key: y,
|
|
2279
2316
|
index: (u == null ? void 0 : u.id) ?? y,
|
|
2280
|
-
onContentClick:
|
|
2317
|
+
onContentClick: x,
|
|
2281
2318
|
onChange: v
|
|
2282
2319
|
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
2283
2320
|
]))
|
|
2284
2321
|
]))), 128)),
|
|
2285
|
-
|
|
2322
|
+
z(xe, {
|
|
2286
2323
|
visible: p.value,
|
|
2287
2324
|
onBeforeDestroy: d
|
|
2288
2325
|
}, {
|
|
2289
|
-
default:
|
|
2290
|
-
(V(!0),
|
|
2326
|
+
default: q(() => [
|
|
2327
|
+
(V(!0), M(te, null, ce(o.value, (u, y) => (V(), M("div", {
|
|
2291
2328
|
key: y,
|
|
2292
2329
|
class: "extra-dialog"
|
|
2293
2330
|
}, [
|
|
2294
|
-
(V(),
|
|
2331
|
+
(V(), pe(qe(k(u.comp)), {
|
|
2295
2332
|
itemData: u == null ? void 0 : u.compData,
|
|
2296
2333
|
onChange: C,
|
|
2297
2334
|
childItemData: u == null ? void 0 : u.itemChildData,
|
|
@@ -2302,23 +2339,23 @@ const xa = /* @__PURE__ */ fe(Ca, [["render", _a]]), $a = { class: "extra-conten
|
|
|
2302
2339
|
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
2303
2340
|
]))), 128))
|
|
2304
2341
|
]),
|
|
2305
|
-
footer:
|
|
2306
|
-
|
|
2307
|
-
|
|
2342
|
+
footer: q(() => [
|
|
2343
|
+
$("div", { class: "dialog-footer" }, [
|
|
2344
|
+
$("div", {
|
|
2308
2345
|
class: "cancel-button footer-button",
|
|
2309
|
-
onClick:
|
|
2310
|
-
},
|
|
2311
|
-
|
|
2346
|
+
onClick: E
|
|
2347
|
+
}, Z("取消")),
|
|
2348
|
+
$("div", {
|
|
2312
2349
|
class: "confirm-button footer-button",
|
|
2313
|
-
onClick:
|
|
2314
|
-
},
|
|
2350
|
+
onClick: B
|
|
2351
|
+
}, Z("确认"))
|
|
2315
2352
|
])
|
|
2316
2353
|
]),
|
|
2317
2354
|
_: 1
|
|
2318
2355
|
}, 8, ["visible"])
|
|
2319
2356
|
]));
|
|
2320
2357
|
}
|
|
2321
|
-
},
|
|
2358
|
+
}, ja = /* @__PURE__ */ ye(La, [["__scopeId", "data-v-b0b2f71f"]]), Ua = { class: "method-content" }, Pa = ["onClick"], Ra = {
|
|
2322
2359
|
__name: "index",
|
|
2323
2360
|
props: {
|
|
2324
2361
|
itemData: {
|
|
@@ -2337,21 +2374,21 @@ const xa = /* @__PURE__ */ fe(Ca, [["render", _a]]), $a = { class: "extra-conten
|
|
|
2337
2374
|
}
|
|
2338
2375
|
},
|
|
2339
2376
|
setup(n) {
|
|
2340
|
-
const s = U([]), l = n, e =
|
|
2377
|
+
const s = U([]), l = n, e = Kl(Ge), { itemData: a, isEdit: o } = Ye(e), r = (h, f) => {
|
|
2341
2378
|
var C;
|
|
2342
|
-
const
|
|
2343
|
-
return h == null ? void 0 : h.map((
|
|
2379
|
+
const x = (C = f == null ? void 0 : f[0]) == null ? void 0 : C.children;
|
|
2380
|
+
return h == null ? void 0 : h.map((E) => {
|
|
2344
2381
|
var m;
|
|
2345
|
-
return
|
|
2382
|
+
return E = (m = E == null ? void 0 : E.map((B, d) => {
|
|
2346
2383
|
var v;
|
|
2347
2384
|
return {
|
|
2348
|
-
key: (v =
|
|
2349
|
-
value:
|
|
2385
|
+
key: (v = x[d]) == null ? void 0 : v.label,
|
|
2386
|
+
value: B
|
|
2350
2387
|
};
|
|
2351
|
-
})) == null ? void 0 : m.filter((
|
|
2388
|
+
})) == null ? void 0 : m.filter((B) => B.key), E;
|
|
2352
2389
|
});
|
|
2353
2390
|
};
|
|
2354
|
-
|
|
2391
|
+
be(
|
|
2355
2392
|
() => a.value,
|
|
2356
2393
|
async () => {
|
|
2357
2394
|
o.value == "view" && await g(c(l.itemData));
|
|
@@ -2362,35 +2399,35 @@ const xa = /* @__PURE__ */ fe(Ca, [["render", _a]]), $a = { class: "extra-conten
|
|
|
2362
2399
|
var t, i, u, y, P, J;
|
|
2363
2400
|
let f = {};
|
|
2364
2401
|
if ((t = c(h.content)) == null || t.forEach((R, I) => {
|
|
2365
|
-
var
|
|
2402
|
+
var N, O, b, L, A, S, D, H, W, X, ee, oe, de, fe, ge, se, me;
|
|
2366
2403
|
if ((R == null ? void 0 : R.comp) === "Table") {
|
|
2367
|
-
let
|
|
2368
|
-
if (
|
|
2369
|
-
f[
|
|
2404
|
+
let he = (L = (b = (O = (N = R == null ? void 0 : R.compData) == null ? void 0 : N.find((T) => (T == null ? void 0 : T.key) === "header")) == null ? void 0 : O.contents) == null ? void 0 : b[0]) == null ? void 0 : L.some((T) => T == null ? void 0 : T.children), re = (D = (S = (A = R == null ? void 0 : R.compData) == null ? void 0 : A.find((T) => (T == null ? void 0 : T.key) === "tableContents")) == null ? void 0 : S.contents) == null ? void 0 : D.map((T) => T.slice(1)), w = (oe = (ee = (X = (W = (H = R == null ? void 0 : R.compData) == null ? void 0 : H.find((T) => (T == null ? void 0 : T.key) === "header")) == null ? void 0 : W.contents) == null ? void 0 : X[0]) == null ? void 0 : ee[0]) == null ? void 0 : oe.label, _ = (ge = (fe = (de = R == null ? void 0 : R.compData) == null ? void 0 : de.find((T) => (T == null ? void 0 : T.key) === "header")) == null ? void 0 : fe.contents) == null ? void 0 : ge[0];
|
|
2405
|
+
if (he)
|
|
2406
|
+
f[w] = r(re, _);
|
|
2370
2407
|
else {
|
|
2371
|
-
const
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
key:
|
|
2376
|
-
value:
|
|
2408
|
+
const T = [];
|
|
2409
|
+
_ = _.slice(1, _.length - 1), _ == null || _.forEach((F, le) => {
|
|
2410
|
+
re == null || re.forEach((Q) => {
|
|
2411
|
+
T.push({
|
|
2412
|
+
key: F.label + Q[0],
|
|
2413
|
+
value: Q[le + 1]
|
|
2377
2414
|
});
|
|
2378
2415
|
});
|
|
2379
|
-
}), f["form" + I] =
|
|
2416
|
+
}), f["form" + I] = T;
|
|
2380
2417
|
}
|
|
2381
2418
|
} else {
|
|
2382
|
-
const
|
|
2419
|
+
const he = (me = (se = R.compData) == null ? void 0 : se.find((w) => (w == null ? void 0 : w.key) === "formContent")) == null ? void 0 : me.contents;
|
|
2383
2420
|
f.form = {};
|
|
2384
|
-
const
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
key:
|
|
2388
|
-
value:
|
|
2389
|
-
},
|
|
2390
|
-
}), f.form =
|
|
2421
|
+
const re = [];
|
|
2422
|
+
he == null || he.forEach((w) => {
|
|
2423
|
+
w.key !== "" && (w = {
|
|
2424
|
+
key: w == null ? void 0 : w.key,
|
|
2425
|
+
value: w == null ? void 0 : w.value
|
|
2426
|
+
}, re.push(w));
|
|
2427
|
+
}), f.form = re;
|
|
2391
2428
|
}
|
|
2392
2429
|
}), h.api) {
|
|
2393
|
-
const R = await
|
|
2430
|
+
const R = await Gl.post(h.api, {
|
|
2394
2431
|
data: f,
|
|
2395
2432
|
templateFileName: (i = h == null ? void 0 : h.extraContent) == null ? void 0 : i[0]
|
|
2396
2433
|
}, {
|
|
@@ -2400,65 +2437,65 @@ const xa = /* @__PURE__ */ fe(Ca, [["render", _a]]), $a = { class: "extra-conten
|
|
|
2400
2437
|
"Content-Type": "application/json"
|
|
2401
2438
|
}
|
|
2402
2439
|
});
|
|
2403
|
-
var
|
|
2440
|
+
var x = new Blob([R.data], {
|
|
2404
2441
|
type: "application/octet-stream;charset=UTF-8"
|
|
2405
|
-
}), C = R.headers["content-disposition"],
|
|
2406
|
-
d.style.display = "none", d.href = v, d.download = decodeURI(
|
|
2442
|
+
}), C = R.headers["content-disposition"], E = new RegExp("filename=([^;]+\\.[^\\.;]+);*"), m = E.exec(C), B = ((P = (y = (u = h == null ? void 0 : h.extraContent) == null ? void 0 : u[0]) == null ? void 0 : y.split(".")) == null ? void 0 : P[0]) + "." + ((J = m[1].split(".")) == null ? void 0 : J[1]), d = document.createElement("a"), v = window.URL.createObjectURL(x), k = /^["](.*)["]$/g;
|
|
2443
|
+
d.style.display = "none", d.href = v, d.download = decodeURI(B.replace(k, "$1")), document.body.appendChild(d), d.click(), document.body.removeChild(d), window.URL.revokeObjectURL(v);
|
|
2407
2444
|
}
|
|
2408
2445
|
}, g = async (h) => {
|
|
2409
|
-
var
|
|
2410
|
-
const f = c(h),
|
|
2446
|
+
var E;
|
|
2447
|
+
const f = c(h), x = f == null ? void 0 : f.map(async (m) => {
|
|
2411
2448
|
var i, u, y, P, J, R, I;
|
|
2412
|
-
const d = (i = (await
|
|
2449
|
+
const d = (i = (await tl({
|
|
2413
2450
|
key: {
|
|
2414
2451
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
2415
2452
|
parentTable: "",
|
|
2416
2453
|
type: "method",
|
|
2417
2454
|
methodName: m.method
|
|
2418
2455
|
}
|
|
2419
|
-
})).data.result) == null ? void 0 : i[0], v = await
|
|
2456
|
+
})).data.result) == null ? void 0 : i[0], v = await tl({
|
|
2420
2457
|
key: {
|
|
2421
2458
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
2422
2459
|
type: "methodData",
|
|
2423
2460
|
tableId: d == null ? void 0 : d.id
|
|
2424
2461
|
}
|
|
2425
|
-
}), k = await
|
|
2462
|
+
}), k = await Pl((u = m == null ? void 0 : m.value) == null ? void 0 : u[0], sessionStorage.getItem("systemKey"), ""), t = (y = v.data.result) == null ? void 0 : y[0];
|
|
2426
2463
|
return {
|
|
2427
2464
|
buttonName: (P = d == null ? void 0 : d.key) == null ? void 0 : P.methodKey,
|
|
2428
2465
|
api: (R = (J = t == null ? void 0 : t.value) == null ? void 0 : J.tableData) == null ? void 0 : R[0],
|
|
2429
|
-
content: k == null ? void 0 : k.filter((
|
|
2466
|
+
content: k == null ? void 0 : k.filter((N) => N.comp !== "methodButton"),
|
|
2430
2467
|
extraContent: (I = c(m.value)) == null ? void 0 : I.slice(1)
|
|
2431
2468
|
};
|
|
2432
|
-
}), C = await Promise.all(
|
|
2433
|
-
s.value = C == null ? void 0 : C.filter((m) => m == null ? void 0 : m.extraContent), (
|
|
2434
|
-
var
|
|
2435
|
-
m.api === "" && ((
|
|
2469
|
+
}), C = await Promise.all(x);
|
|
2470
|
+
s.value = C == null ? void 0 : C.filter((m) => m == null ? void 0 : m.extraContent), (E = s.value) == null || E.forEach((m) => {
|
|
2471
|
+
var B;
|
|
2472
|
+
m.api === "" && ((B = m.content) == null || B.forEach((d) => {
|
|
2436
2473
|
var v;
|
|
2437
|
-
d.comp == "Table" && e.setExtraContents(
|
|
2474
|
+
d.comp == "Table" && e.setExtraContents(Rl(d.compData, (v = m.extraContent) == null ? void 0 : v[0]));
|
|
2438
2475
|
}));
|
|
2439
2476
|
});
|
|
2440
2477
|
};
|
|
2441
|
-
return
|
|
2478
|
+
return be(
|
|
2442
2479
|
() => l.itemData,
|
|
2443
2480
|
async () => {
|
|
2444
2481
|
o.value == "view" && await g(c(l.itemData));
|
|
2445
2482
|
},
|
|
2446
2483
|
{ immediate: !0, deep: !0 }
|
|
2447
|
-
), (h, f) => (V(),
|
|
2448
|
-
(V(!0),
|
|
2449
|
-
|
|
2484
|
+
), (h, f) => (V(), M("div", Ua, [
|
|
2485
|
+
(V(!0), M(te, null, ce(s.value, (x) => (V(), M("div", null, [
|
|
2486
|
+
x.api !== "" ? (V(), M("div", {
|
|
2450
2487
|
key: 0,
|
|
2451
|
-
onClick: (C) => p(
|
|
2488
|
+
onClick: (C) => p(x),
|
|
2452
2489
|
class: "method-buttons"
|
|
2453
|
-
},
|
|
2490
|
+
}, Z(x.buttonName), 9, Pa)) : Se("", !0)
|
|
2454
2491
|
]))), 256))
|
|
2455
2492
|
]));
|
|
2456
2493
|
}
|
|
2457
|
-
},
|
|
2458
|
-
function
|
|
2494
|
+
}, Ja = /* @__PURE__ */ ye(Ra, [["__scopeId", "data-v-9df085f9"]]), Va = {};
|
|
2495
|
+
function Wa(n, s) {
|
|
2459
2496
|
return " 567 ";
|
|
2460
2497
|
}
|
|
2461
|
-
const
|
|
2498
|
+
const za = /* @__PURE__ */ ye(Va, [["render", Wa]]), Ga = { class: "module content" }, Ma = { class: "module data" }, Za = { class: "module layout" }, Ha = { class: "form-content" }, Ka = /* @__PURE__ */ De({
|
|
2462
2499
|
__name: "operate",
|
|
2463
2500
|
props: {
|
|
2464
2501
|
itemContents: {
|
|
@@ -2472,7 +2509,7 @@ const Sa = /* @__PURE__ */ fe(Na, [["render", Fa]]), La = { class: "module conte
|
|
|
2472
2509
|
},
|
|
2473
2510
|
emits: ["change"],
|
|
2474
2511
|
setup(n, { emit: s }) {
|
|
2475
|
-
const l = s, e =
|
|
2512
|
+
const l = s, e = Xe({
|
|
2476
2513
|
visible: !1,
|
|
2477
2514
|
width: "40%",
|
|
2478
2515
|
title: "签名配置"
|
|
@@ -2590,14 +2627,14 @@ const Sa = /* @__PURE__ */ fe(Na, [["render", Fa]]), La = { class: "module conte
|
|
|
2590
2627
|
contents: g.value
|
|
2591
2628
|
}
|
|
2592
2629
|
]
|
|
2593
|
-
}),
|
|
2630
|
+
}), x = (B) => {
|
|
2594
2631
|
var d;
|
|
2595
|
-
g.value = c(
|
|
2596
|
-
}, C = (
|
|
2632
|
+
g.value = c(B), l("change", (d = f()) == null ? void 0 : d.compData);
|
|
2633
|
+
}, C = (B) => {
|
|
2597
2634
|
var d, v;
|
|
2598
|
-
if ((
|
|
2599
|
-
const k = c(
|
|
2600
|
-
switch (console.log(1212,
|
|
2635
|
+
if ((B == null ? void 0 : B.buttonName) === "确认") {
|
|
2636
|
+
const k = c(B == null ? void 0 : B.content);
|
|
2637
|
+
switch (console.log(1212, B), Object.keys(k).forEach((t) => {
|
|
2601
2638
|
k[t] === "" && delete k[t];
|
|
2602
2639
|
}), a.value) {
|
|
2603
2640
|
case "create":
|
|
@@ -2613,9 +2650,9 @@ const Sa = /* @__PURE__ */ fe(Na, [["render", Fa]]), La = { class: "module conte
|
|
|
2613
2650
|
l("change", (v = f()) == null ? void 0 : v.compData), e.visible = !1;
|
|
2614
2651
|
} else
|
|
2615
2652
|
e.visible = !1;
|
|
2616
|
-
},
|
|
2653
|
+
}, E = (B, d) => {
|
|
2617
2654
|
var v, k;
|
|
2618
|
-
switch (
|
|
2655
|
+
switch (B) {
|
|
2619
2656
|
case "create":
|
|
2620
2657
|
(v = p.value) == null || v.forEach((t) => {
|
|
2621
2658
|
t.value = "";
|
|
@@ -2633,50 +2670,50 @@ const Sa = /* @__PURE__ */ fe(Na, [["render", Fa]]), La = { class: "module conte
|
|
|
2633
2670
|
}, m = () => {
|
|
2634
2671
|
e.visible = !1;
|
|
2635
2672
|
};
|
|
2636
|
-
return (
|
|
2637
|
-
const v =
|
|
2638
|
-
return V(),
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
d[2] || (d[2] =
|
|
2642
|
-
|
|
2673
|
+
return (B, d) => {
|
|
2674
|
+
const v = ie("svg-icon"), k = ie("el-button");
|
|
2675
|
+
return V(), M(te, null, [
|
|
2676
|
+
$("div", null, [
|
|
2677
|
+
$("div", Ga, [
|
|
2678
|
+
d[2] || (d[2] = $("h4", { class: "module-title" }, "签名类型", -1)),
|
|
2679
|
+
$("div", {
|
|
2643
2680
|
class: "module-icon",
|
|
2644
|
-
onClick: d[0] || (d[0] = (t) =>
|
|
2681
|
+
onClick: d[0] || (d[0] = (t) => E("create"))
|
|
2645
2682
|
}, [
|
|
2646
|
-
|
|
2647
|
-
|
|
2683
|
+
$("div", null, [
|
|
2684
|
+
z(v, {
|
|
2648
2685
|
name: "Plus",
|
|
2649
2686
|
class: "icon-size"
|
|
2650
2687
|
}),
|
|
2651
|
-
d[1] || (d[1] =
|
|
2688
|
+
d[1] || (d[1] = $("span", null, "新增", -1))
|
|
2652
2689
|
])
|
|
2653
2690
|
])
|
|
2654
2691
|
]),
|
|
2655
|
-
|
|
2656
|
-
(V(!0),
|
|
2692
|
+
$("div", Ma, [
|
|
2693
|
+
(V(!0), M(te, null, ce(h.value, (t, i) => (V(), M("div", {
|
|
2657
2694
|
class: "module-data-item",
|
|
2658
2695
|
key: i
|
|
2659
2696
|
}, [
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2697
|
+
$("span", null, Z(t == null ? void 0 : t.label), 1),
|
|
2698
|
+
$("div", null, [
|
|
2699
|
+
z(k, {
|
|
2663
2700
|
type: "primary",
|
|
2664
2701
|
size: "small",
|
|
2665
|
-
onClick: (u) =>
|
|
2702
|
+
onClick: (u) => E("update", { ...t, index: i + 1 })
|
|
2666
2703
|
}, {
|
|
2667
|
-
default:
|
|
2668
|
-
|
|
2704
|
+
default: q(() => d[3] || (d[3] = [
|
|
2705
|
+
ke("修改")
|
|
2669
2706
|
])),
|
|
2670
2707
|
_: 2,
|
|
2671
2708
|
__: [3]
|
|
2672
2709
|
}, 1032, ["onClick"]),
|
|
2673
|
-
|
|
2710
|
+
z(k, {
|
|
2674
2711
|
type: "danger",
|
|
2675
2712
|
size: "small",
|
|
2676
|
-
onClick: (u) =>
|
|
2713
|
+
onClick: (u) => E("delete", i)
|
|
2677
2714
|
}, {
|
|
2678
|
-
default:
|
|
2679
|
-
|
|
2715
|
+
default: q(() => d[4] || (d[4] = [
|
|
2716
|
+
ke("删除")
|
|
2680
2717
|
])),
|
|
2681
2718
|
_: 2,
|
|
2682
2719
|
__: [4]
|
|
@@ -2684,22 +2721,22 @@ const Sa = /* @__PURE__ */ fe(Na, [["render", Fa]]), La = { class: "module conte
|
|
|
2684
2721
|
])
|
|
2685
2722
|
]))), 128))
|
|
2686
2723
|
]),
|
|
2687
|
-
|
|
2688
|
-
|
|
2724
|
+
$("div", Za, [
|
|
2725
|
+
z(ve, {
|
|
2689
2726
|
rowContents: r.value,
|
|
2690
|
-
onChange:
|
|
2727
|
+
onChange: x
|
|
2691
2728
|
}, null, 8, ["rowContents"])
|
|
2692
2729
|
])
|
|
2693
2730
|
]),
|
|
2694
|
-
|
|
2731
|
+
z(xe, {
|
|
2695
2732
|
visible: e.visible,
|
|
2696
2733
|
title: e.title,
|
|
2697
2734
|
onBeforeDestroy: m,
|
|
2698
2735
|
width: e.width
|
|
2699
2736
|
}, {
|
|
2700
|
-
default:
|
|
2701
|
-
|
|
2702
|
-
(V(),
|
|
2737
|
+
default: q(() => [
|
|
2738
|
+
$("div", Ha, [
|
|
2739
|
+
(V(), pe(ve, {
|
|
2703
2740
|
rowContents: p.value,
|
|
2704
2741
|
key: p.value,
|
|
2705
2742
|
isEnableWrap: !1,
|
|
@@ -2715,7 +2752,7 @@ const Sa = /* @__PURE__ */ fe(Na, [["render", Fa]]), La = { class: "module conte
|
|
|
2715
2752
|
], 64);
|
|
2716
2753
|
};
|
|
2717
2754
|
}
|
|
2718
|
-
}),
|
|
2755
|
+
}), qa = /* @__PURE__ */ ye(Ka, [["__scopeId", "data-v-01849996"]]), Qa = /* @__PURE__ */ De({
|
|
2719
2756
|
__name: "index",
|
|
2720
2757
|
props: {
|
|
2721
2758
|
stepConfig: {
|
|
@@ -2729,44 +2766,44 @@ const Sa = /* @__PURE__ */ fe(Na, [["render", Fa]]), La = { class: "module conte
|
|
|
2729
2766
|
},
|
|
2730
2767
|
emits: ["clickStep", "clickTrigger", "changeTrigger"],
|
|
2731
2768
|
setup(n, { emit: s }) {
|
|
2732
|
-
const l = n, e = s, a = U(1), o =
|
|
2733
|
-
var
|
|
2734
|
-
return (
|
|
2735
|
-
}), r = (
|
|
2736
|
-
a.value = C, e("clickStep",
|
|
2737
|
-
}, p = (
|
|
2769
|
+
const l = n, e = s, a = U(1), o = Vl(() => {
|
|
2770
|
+
var x, C;
|
|
2771
|
+
return (x = l == null ? void 0 : l.stepConfig) != null && x.allowTrigger ? a.value : (C = l == null ? void 0 : l.stepConfig) == null ? void 0 : C.active;
|
|
2772
|
+
}), r = (x, C) => {
|
|
2773
|
+
a.value = C, e("clickStep", x, C);
|
|
2774
|
+
}, p = (x) => Ml(x), g = () => {
|
|
2738
2775
|
var C;
|
|
2739
|
-
const
|
|
2740
|
-
return console.log("findStep",
|
|
2741
|
-
}, h = (
|
|
2742
|
-
e("clickTrigger",
|
|
2743
|
-
}, f = (
|
|
2744
|
-
e("changeTrigger",
|
|
2776
|
+
const x = (C = l == null ? void 0 : l.stepList) == null ? void 0 : C.find((E, m) => m + 1 === o.value);
|
|
2777
|
+
return console.log("findStep", x), x ? x == null ? void 0 : x.children : [];
|
|
2778
|
+
}, h = (x) => {
|
|
2779
|
+
e("clickTrigger", x);
|
|
2780
|
+
}, f = (x) => {
|
|
2781
|
+
e("changeTrigger", x);
|
|
2745
2782
|
};
|
|
2746
|
-
return (
|
|
2747
|
-
var
|
|
2748
|
-
const
|
|
2749
|
-
return V(),
|
|
2750
|
-
|
|
2751
|
-
direction: (
|
|
2783
|
+
return (x, C) => {
|
|
2784
|
+
var B, d, v, k, t;
|
|
2785
|
+
const E = ie("el-step"), m = ie("el-steps");
|
|
2786
|
+
return V(), M(te, null, [
|
|
2787
|
+
z(m, {
|
|
2788
|
+
direction: (B = n.stepConfig) == null ? void 0 : B.direction,
|
|
2752
2789
|
active: o.value,
|
|
2753
2790
|
"finish-status": "success",
|
|
2754
2791
|
simple: (d = n.stepConfig) == null ? void 0 : d.simple,
|
|
2755
2792
|
"align-center": (v = n.stepConfig) == null ? void 0 : v.alignCenter
|
|
2756
2793
|
}, {
|
|
2757
|
-
default:
|
|
2758
|
-
(V(!0),
|
|
2794
|
+
default: q(() => [
|
|
2795
|
+
(V(!0), M(te, null, ce(n.stepList, (i, u) => (V(), pe(E, {
|
|
2759
2796
|
key: u,
|
|
2760
2797
|
class: "step-item",
|
|
2761
2798
|
onClick: (y) => r(i, u + 1)
|
|
2762
2799
|
}, {
|
|
2763
|
-
title:
|
|
2764
|
-
|
|
2800
|
+
title: q(() => [
|
|
2801
|
+
Re(x.$slots, "title", {
|
|
2765
2802
|
title: i == null ? void 0 : i.title
|
|
2766
2803
|
}, void 0, !0)
|
|
2767
2804
|
]),
|
|
2768
|
-
description:
|
|
2769
|
-
|
|
2805
|
+
description: q(() => [
|
|
2806
|
+
Re(x.$slots, "description", {
|
|
2770
2807
|
description: i == null ? void 0 : i.description
|
|
2771
2808
|
}, void 0, !0)
|
|
2772
2809
|
]),
|
|
@@ -2775,29 +2812,29 @@ const Sa = /* @__PURE__ */ fe(Na, [["render", Fa]]), La = { class: "module conte
|
|
|
2775
2812
|
]),
|
|
2776
2813
|
_: 3
|
|
2777
2814
|
}, 8, ["direction", "active", "simple", "align-center"]),
|
|
2778
|
-
(k = n.stepConfig) != null && k.allowTrigger && ((t = n.stepConfig) != null && t.active) ? (V(!0),
|
|
2815
|
+
(k = n.stepConfig) != null && k.allowTrigger && ((t = n.stepConfig) != null && t.active) ? (V(!0), M(te, { key: 0 }, ce(g(), (i, u) => (V(), M("div", {
|
|
2779
2816
|
key: u,
|
|
2780
2817
|
class: "step-cont-wrap"
|
|
2781
2818
|
}, [
|
|
2782
|
-
(V(),
|
|
2819
|
+
(V(), pe(qe(p(i == null ? void 0 : i.type)), {
|
|
2783
2820
|
modelValue: i.value,
|
|
2784
2821
|
"onUpdate:modelValue": (y) => i.value = y,
|
|
2785
2822
|
onClickTrigger: h,
|
|
2786
2823
|
onChangeTrigger: f,
|
|
2787
2824
|
content: i == null ? void 0 : i.content
|
|
2788
|
-
},
|
|
2789
|
-
|
|
2825
|
+
}, Wl({ _: 2 }, [
|
|
2826
|
+
ce(x.$slots, (y, P) => ({
|
|
2790
2827
|
name: P,
|
|
2791
|
-
fn:
|
|
2792
|
-
|
|
2828
|
+
fn: q((J) => [
|
|
2829
|
+
Re(x.$slots, P, zl({ ref_for: !0 }, J || {}), void 0, !0)
|
|
2793
2830
|
])
|
|
2794
2831
|
}))
|
|
2795
2832
|
]), 1064, ["modelValue", "onUpdate:modelValue", "content"]))
|
|
2796
|
-
]))), 128)) :
|
|
2833
|
+
]))), 128)) : Se("", !0)
|
|
2797
2834
|
], 64);
|
|
2798
2835
|
};
|
|
2799
2836
|
}
|
|
2800
|
-
}),
|
|
2837
|
+
}), Xa = /* @__PURE__ */ ye(Qa, [["__scopeId", "data-v-003d9390"]]), Ya = /* @__PURE__ */ De({
|
|
2801
2838
|
__name: "index",
|
|
2802
2839
|
props: {
|
|
2803
2840
|
itemData: {
|
|
@@ -2814,32 +2851,32 @@ const Sa = /* @__PURE__ */ fe(Na, [["render", Fa]]), La = { class: "module conte
|
|
|
2814
2851
|
const l = n, e = s, a = U({}), o = U([]), r = (p, g) => {
|
|
2815
2852
|
e("clickStep", p, g);
|
|
2816
2853
|
};
|
|
2817
|
-
return
|
|
2854
|
+
return be(() => l == null ? void 0 : l.itemData, (p) => {
|
|
2818
2855
|
var g, h;
|
|
2819
2856
|
o.value = (g = p == null ? void 0 : p.find((f) => (f == null ? void 0 : f.key) === "stepList")) == null ? void 0 : g.contents, a.value = (h = p == null ? void 0 : p.find((f) => (f == null ? void 0 : f.key) === "stepConfig")) == null ? void 0 : h.contents;
|
|
2820
2857
|
}, {
|
|
2821
2858
|
immediate: !0
|
|
2822
2859
|
}), (p, g) => {
|
|
2823
|
-
const h =
|
|
2824
|
-
return V(),
|
|
2860
|
+
const h = ie("svg-icon");
|
|
2861
|
+
return V(), pe(Xa, {
|
|
2825
2862
|
stepConfig: a.value,
|
|
2826
2863
|
stepList: o.value,
|
|
2827
2864
|
onClickStep: r
|
|
2828
2865
|
}, {
|
|
2829
|
-
icon:
|
|
2830
|
-
|
|
2866
|
+
icon: q(() => [
|
|
2867
|
+
z(h, { name: "import" })
|
|
2831
2868
|
]),
|
|
2832
|
-
title:
|
|
2833
|
-
|
|
2869
|
+
title: q(({ title: f }) => [
|
|
2870
|
+
ke(Z(f), 1)
|
|
2834
2871
|
]),
|
|
2835
|
-
description:
|
|
2836
|
-
|
|
2872
|
+
description: q(({ description: f }) => [
|
|
2873
|
+
ke(Z(f), 1)
|
|
2837
2874
|
]),
|
|
2838
2875
|
_: 1
|
|
2839
2876
|
}, 8, ["stepConfig", "stepList"]);
|
|
2840
2877
|
};
|
|
2841
2878
|
}
|
|
2842
|
-
}),
|
|
2879
|
+
}), es = /* @__PURE__ */ De({
|
|
2843
2880
|
__name: "index",
|
|
2844
2881
|
props: {
|
|
2845
2882
|
activities: {
|
|
@@ -2854,10 +2891,10 @@ const Sa = /* @__PURE__ */ fe(Na, [["render", Fa]]), La = { class: "module conte
|
|
|
2854
2891
|
},
|
|
2855
2892
|
setup(n) {
|
|
2856
2893
|
return (s, l) => {
|
|
2857
|
-
const e =
|
|
2858
|
-
return V(),
|
|
2859
|
-
default:
|
|
2860
|
-
(V(!0),
|
|
2894
|
+
const e = ie("el-timeline-item"), a = ie("el-timeline");
|
|
2895
|
+
return V(), pe(a, null, {
|
|
2896
|
+
default: q(() => [
|
|
2897
|
+
(V(!0), M(te, null, ce(n.activities, (o, r) => (V(), pe(e, {
|
|
2861
2898
|
key: r,
|
|
2862
2899
|
timestamp: o.timestamp,
|
|
2863
2900
|
placement: n.timeLineConfig.placement,
|
|
@@ -2869,8 +2906,8 @@ const Sa = /* @__PURE__ */ fe(Na, [["render", Fa]]), La = { class: "module conte
|
|
|
2869
2906
|
icon: n.timeLineConfig.icon,
|
|
2870
2907
|
hollow: n.timeLineConfig.isHollow
|
|
2871
2908
|
}, {
|
|
2872
|
-
default:
|
|
2873
|
-
|
|
2909
|
+
default: q(() => [
|
|
2910
|
+
Re(s.$slots, "content", {
|
|
2874
2911
|
content: o == null ? void 0 : o.content,
|
|
2875
2912
|
timestamp: o == null ? void 0 : o.timestamp
|
|
2876
2913
|
}, void 0, !0)
|
|
@@ -2882,7 +2919,7 @@ const Sa = /* @__PURE__ */ fe(Na, [["render", Fa]]), La = { class: "module conte
|
|
|
2882
2919
|
});
|
|
2883
2920
|
};
|
|
2884
2921
|
}
|
|
2885
|
-
}),
|
|
2922
|
+
}), ls = /* @__PURE__ */ ye(es, [["__scopeId", "data-v-4172a886"]]), ns = { class: "line-content" }, as = { class: "line-time" }, ss = /* @__PURE__ */ De({
|
|
2886
2923
|
__name: "index",
|
|
2887
2924
|
props: {
|
|
2888
2925
|
itemData: {
|
|
@@ -2892,23 +2929,23 @@ const Sa = /* @__PURE__ */ fe(Na, [["render", Fa]]), La = { class: "module conte
|
|
|
2892
2929
|
},
|
|
2893
2930
|
setup(n) {
|
|
2894
2931
|
const s = n, l = U({}), e = U([]);
|
|
2895
|
-
return
|
|
2932
|
+
return be(() => s == null ? void 0 : s.itemData, (a) => {
|
|
2896
2933
|
var o, r;
|
|
2897
2934
|
e.value = (o = a == null ? void 0 : a.find((p) => (p == null ? void 0 : p.key) === "timeLineList")) == null ? void 0 : o.contents, l.value = (r = a == null ? void 0 : a.find((p) => (p == null ? void 0 : p.key) === "timeLineConfig")) == null ? void 0 : r.contents;
|
|
2898
2935
|
}, {
|
|
2899
2936
|
immediate: !0
|
|
2900
|
-
}), (a, o) => (V(),
|
|
2937
|
+
}), (a, o) => (V(), pe(ls, {
|
|
2901
2938
|
activities: e.value,
|
|
2902
2939
|
timeLineConfig: l.value
|
|
2903
2940
|
}, {
|
|
2904
|
-
content:
|
|
2905
|
-
|
|
2906
|
-
|
|
2941
|
+
content: q(({ content: r, timestamp: p }) => [
|
|
2942
|
+
$("span", ns, Z(r), 1),
|
|
2943
|
+
$("span", as, Z(p), 1)
|
|
2907
2944
|
]),
|
|
2908
2945
|
_: 1
|
|
2909
2946
|
}, 8, ["activities", "timeLineConfig"]));
|
|
2910
2947
|
}
|
|
2911
|
-
}),
|
|
2948
|
+
}), os = /* @__PURE__ */ ye(ss, [["__scopeId", "data-v-b4d9deed"]]), ts = { class: "tabs-content" }, rs = {
|
|
2912
2949
|
__name: "index",
|
|
2913
2950
|
props: {
|
|
2914
2951
|
itemData: {
|
|
@@ -2923,7 +2960,7 @@ const Sa = /* @__PURE__ */ fe(Na, [["render", Fa]]), La = { class: "module conte
|
|
|
2923
2960
|
},
|
|
2924
2961
|
setup(n) {
|
|
2925
2962
|
const s = n, l = U([]);
|
|
2926
|
-
return
|
|
2963
|
+
return be(
|
|
2927
2964
|
() => s == null ? void 0 : s.itemData,
|
|
2928
2965
|
(e) => {
|
|
2929
2966
|
const a = e.find((o) => (o == null ? void 0 : o.key) == "stepList");
|
|
@@ -2935,11 +2972,11 @@ const Sa = /* @__PURE__ */ fe(Na, [["render", Fa]]), La = { class: "module conte
|
|
|
2935
2972
|
})));
|
|
2936
2973
|
},
|
|
2937
2974
|
{ immediate: !0, deep: !0 }
|
|
2938
|
-
), (e, a) => (V(),
|
|
2939
|
-
|
|
2975
|
+
), (e, a) => (V(), M("div", ts, [
|
|
2976
|
+
z(Zl, { tabsContents: l.value }, null, 8, ["tabsContents"])
|
|
2940
2977
|
]));
|
|
2941
2978
|
}
|
|
2942
|
-
},
|
|
2979
|
+
}, is = /* @__PURE__ */ ye(rs, [["__scopeId", "data-v-d3bb10b7"]]), us = { class: "tabs-header" }, cs = { class: "tabs-list" }, ps = { class: "tab-name" }, ds = { class: "tab-actions" }, fs = {
|
|
2943
2980
|
__name: "operate",
|
|
2944
2981
|
props: {
|
|
2945
2982
|
itemContents: {
|
|
@@ -2953,16 +2990,16 @@ const Sa = /* @__PURE__ */ fe(Na, [["render", Fa]]), La = { class: "module conte
|
|
|
2953
2990
|
r.value = "新增标签页", p.value.title = "", g.value = -1, o.value = !0;
|
|
2954
2991
|
}, f = (m) => {
|
|
2955
2992
|
r.value = "修改标签页", p.value.title = a.value[m].title, g.value = m, o.value = !0;
|
|
2956
|
-
},
|
|
2957
|
-
a.value.splice(m, 1),
|
|
2993
|
+
}, x = (m) => {
|
|
2994
|
+
a.value.splice(m, 1), E();
|
|
2958
2995
|
}, C = () => {
|
|
2959
2996
|
p.value.title.trim() && (g.value === -1 ? a.value.push({
|
|
2960
2997
|
title: p.value.title,
|
|
2961
2998
|
value: p.value.title,
|
|
2962
2999
|
label: p.value.title,
|
|
2963
3000
|
children: []
|
|
2964
|
-
}) : (a.value[g.value].title = p.value.title, a.value[g.value].value = p.value.title, a.value[g.value].label = p.value.title), o.value = !1,
|
|
2965
|
-
},
|
|
3001
|
+
}) : (a.value[g.value].title = p.value.title, a.value[g.value].value = p.value.title, a.value[g.value].label = p.value.title), o.value = !1, E());
|
|
3002
|
+
}, E = () => {
|
|
2966
3003
|
const m = [
|
|
2967
3004
|
{
|
|
2968
3005
|
key: "stepList",
|
|
@@ -2971,12 +3008,12 @@ const Sa = /* @__PURE__ */ fe(Na, [["render", Fa]]), La = { class: "module conte
|
|
|
2971
3008
|
];
|
|
2972
3009
|
e("change", m);
|
|
2973
3010
|
};
|
|
2974
|
-
return
|
|
3011
|
+
return be(
|
|
2975
3012
|
() => l.itemContents,
|
|
2976
3013
|
(m) => {
|
|
2977
3014
|
if (m && m.length > 0) {
|
|
2978
|
-
const
|
|
2979
|
-
|
|
3015
|
+
const B = m.find((d) => d.key === "stepList");
|
|
3016
|
+
B && B.contents && (a.value = B.contents.map((d) => ({
|
|
2980
3017
|
title: d.title || "",
|
|
2981
3018
|
value: d.value || d.title || "",
|
|
2982
3019
|
label: d.label || d.title || "",
|
|
@@ -2985,52 +3022,52 @@ const Sa = /* @__PURE__ */ fe(Na, [["render", Fa]]), La = { class: "module conte
|
|
|
2985
3022
|
}
|
|
2986
3023
|
},
|
|
2987
3024
|
{ immediate: !0 }
|
|
2988
|
-
), (m,
|
|
2989
|
-
const d =
|
|
2990
|
-
return V(),
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
3025
|
+
), (m, B) => {
|
|
3026
|
+
const d = ie("svg-icon"), v = ie("el-button"), k = ie("el-input"), t = ie("el-form-item"), i = ie("el-form"), u = ie("el-dialog");
|
|
3027
|
+
return V(), M("div", null, [
|
|
3028
|
+
$("div", us, [
|
|
3029
|
+
B[4] || (B[4] = $("h4", null, "标签页管理", -1)),
|
|
3030
|
+
z(v, {
|
|
2994
3031
|
type: "primary",
|
|
2995
3032
|
size: "small",
|
|
2996
3033
|
onClick: h
|
|
2997
3034
|
}, {
|
|
2998
|
-
default:
|
|
2999
|
-
|
|
3035
|
+
default: q(() => [
|
|
3036
|
+
z(d, {
|
|
3000
3037
|
name: "Plus",
|
|
3001
3038
|
style: { width: "14px", height: "14px", "margin-right": "4px" }
|
|
3002
3039
|
}),
|
|
3003
|
-
|
|
3040
|
+
B[3] || (B[3] = ke(" 新增标签页 "))
|
|
3004
3041
|
]),
|
|
3005
3042
|
_: 1,
|
|
3006
3043
|
__: [3]
|
|
3007
3044
|
})
|
|
3008
3045
|
]),
|
|
3009
|
-
|
|
3010
|
-
(V(!0),
|
|
3046
|
+
$("div", cs, [
|
|
3047
|
+
(V(!0), M(te, null, ce(a.value, (y, P) => (V(), M("div", {
|
|
3011
3048
|
class: "tab-item",
|
|
3012
3049
|
key: P
|
|
3013
3050
|
}, [
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3051
|
+
$("span", ps, Z(y.title), 1),
|
|
3052
|
+
$("div", ds, [
|
|
3053
|
+
z(v, {
|
|
3017
3054
|
type: "primary",
|
|
3018
3055
|
size: "small",
|
|
3019
3056
|
onClick: (J) => f(P)
|
|
3020
3057
|
}, {
|
|
3021
|
-
default:
|
|
3022
|
-
|
|
3058
|
+
default: q(() => B[5] || (B[5] = [
|
|
3059
|
+
ke("修改")
|
|
3023
3060
|
])),
|
|
3024
3061
|
_: 2,
|
|
3025
3062
|
__: [5]
|
|
3026
3063
|
}, 1032, ["onClick"]),
|
|
3027
|
-
|
|
3064
|
+
z(v, {
|
|
3028
3065
|
type: "danger",
|
|
3029
3066
|
size: "small",
|
|
3030
|
-
onClick: (J) =>
|
|
3067
|
+
onClick: (J) => x(P)
|
|
3031
3068
|
}, {
|
|
3032
|
-
default:
|
|
3033
|
-
|
|
3069
|
+
default: q(() => B[6] || (B[6] = [
|
|
3070
|
+
ke("删除")
|
|
3034
3071
|
])),
|
|
3035
3072
|
_: 2,
|
|
3036
3073
|
__: [6]
|
|
@@ -3038,46 +3075,46 @@ const Sa = /* @__PURE__ */ fe(Na, [["render", Fa]]), La = { class: "module conte
|
|
|
3038
3075
|
])
|
|
3039
3076
|
]))), 128))
|
|
3040
3077
|
]),
|
|
3041
|
-
|
|
3078
|
+
z(u, {
|
|
3042
3079
|
modelValue: o.value,
|
|
3043
|
-
"onUpdate:modelValue":
|
|
3080
|
+
"onUpdate:modelValue": B[2] || (B[2] = (y) => o.value = y),
|
|
3044
3081
|
title: r.value
|
|
3045
3082
|
}, {
|
|
3046
|
-
footer:
|
|
3047
|
-
|
|
3048
|
-
onClick:
|
|
3083
|
+
footer: q(() => [
|
|
3084
|
+
z(v, {
|
|
3085
|
+
onClick: B[1] || (B[1] = (y) => o.value = !1)
|
|
3049
3086
|
}, {
|
|
3050
|
-
default:
|
|
3051
|
-
|
|
3087
|
+
default: q(() => B[7] || (B[7] = [
|
|
3088
|
+
ke("取消")
|
|
3052
3089
|
])),
|
|
3053
3090
|
_: 1,
|
|
3054
3091
|
__: [7]
|
|
3055
3092
|
}),
|
|
3056
|
-
|
|
3093
|
+
z(v, {
|
|
3057
3094
|
type: "primary",
|
|
3058
3095
|
onClick: C
|
|
3059
3096
|
}, {
|
|
3060
|
-
default:
|
|
3061
|
-
|
|
3097
|
+
default: q(() => B[8] || (B[8] = [
|
|
3098
|
+
ke("确定")
|
|
3062
3099
|
])),
|
|
3063
3100
|
_: 1,
|
|
3064
3101
|
__: [8]
|
|
3065
3102
|
})
|
|
3066
3103
|
]),
|
|
3067
|
-
default:
|
|
3068
|
-
|
|
3104
|
+
default: q(() => [
|
|
3105
|
+
z(i, {
|
|
3069
3106
|
model: p.value,
|
|
3070
3107
|
"label-width": "80px"
|
|
3071
3108
|
}, {
|
|
3072
|
-
default:
|
|
3073
|
-
|
|
3109
|
+
default: q(() => [
|
|
3110
|
+
z(t, {
|
|
3074
3111
|
label: "标签名称",
|
|
3075
3112
|
required: ""
|
|
3076
3113
|
}, {
|
|
3077
|
-
default:
|
|
3078
|
-
|
|
3114
|
+
default: q(() => [
|
|
3115
|
+
z(k, {
|
|
3079
3116
|
modelValue: p.value.title,
|
|
3080
|
-
"onUpdate:modelValue":
|
|
3117
|
+
"onUpdate:modelValue": B[0] || (B[0] = (y) => p.value.title = y),
|
|
3081
3118
|
placeholder: "请输入标签页名称"
|
|
3082
3119
|
}, null, 8, ["modelValue"])
|
|
3083
3120
|
]),
|
|
@@ -3092,7 +3129,7 @@ const Sa = /* @__PURE__ */ fe(Na, [["render", Fa]]), La = { class: "module conte
|
|
|
3092
3129
|
]);
|
|
3093
3130
|
};
|
|
3094
3131
|
}
|
|
3095
|
-
},
|
|
3132
|
+
}, hs = /* @__PURE__ */ ye(fs, [["__scopeId", "data-v-a26b1c22"]]), mo = U([
|
|
3096
3133
|
{
|
|
3097
3134
|
name: "表格",
|
|
3098
3135
|
type: "table",
|
|
@@ -3141,32 +3178,32 @@ const Sa = /* @__PURE__ */ fe(Na, [["render", Fa]]), La = { class: "module conte
|
|
|
3141
3178
|
comp: "Tabs",
|
|
3142
3179
|
icon: "Tabs"
|
|
3143
3180
|
}
|
|
3144
|
-
]),
|
|
3145
|
-
TABLE:
|
|
3146
|
-
FORM:
|
|
3147
|
-
TABLEOPERATE:
|
|
3148
|
-
FORMOPERATE:
|
|
3149
|
-
FOLD:
|
|
3150
|
-
CALCULATOR:
|
|
3151
|
-
METHODBUTTON:
|
|
3152
|
-
AVATARUPLOAD:
|
|
3153
|
-
SIGNATURE:
|
|
3154
|
-
FORMTOP:
|
|
3155
|
-
STEP:
|
|
3156
|
-
STEPOPERATE:
|
|
3157
|
-
TIMELINE:
|
|
3158
|
-
TIMELINEOPERATE:
|
|
3159
|
-
FORMTOPOPERATE:
|
|
3160
|
-
SIGNATUREOPERATE:
|
|
3161
|
-
AVATARUPLOADOPERATE:
|
|
3162
|
-
TABS:
|
|
3163
|
-
TABSOPERATE:
|
|
3181
|
+
]), ys = {
|
|
3182
|
+
TABLE: Jl,
|
|
3183
|
+
FORM: rl,
|
|
3184
|
+
TABLEOPERATE: aa,
|
|
3185
|
+
FORMOPERATE: il,
|
|
3186
|
+
FOLD: Ba,
|
|
3187
|
+
CALCULATOR: ja,
|
|
3188
|
+
METHODBUTTON: Ja,
|
|
3189
|
+
AVATARUPLOAD: Ql,
|
|
3190
|
+
SIGNATURE: ql,
|
|
3191
|
+
FORMTOP: rl,
|
|
3192
|
+
STEP: Ya,
|
|
3193
|
+
STEPOPERATE: xa,
|
|
3194
|
+
TIMELINE: os,
|
|
3195
|
+
TIMELINEOPERATE: Ea,
|
|
3196
|
+
FORMTOPOPERATE: il,
|
|
3197
|
+
SIGNATUREOPERATE: qa,
|
|
3198
|
+
AVATARUPLOADOPERATE: za,
|
|
3199
|
+
TABS: is,
|
|
3200
|
+
TABSOPERATE: hs
|
|
3164
3201
|
// 添加其他组件...
|
|
3165
3202
|
};
|
|
3166
|
-
function
|
|
3167
|
-
return
|
|
3203
|
+
function ms(n) {
|
|
3204
|
+
return ys[n == null ? void 0 : n.toUpperCase()] || null;
|
|
3168
3205
|
}
|
|
3169
|
-
const
|
|
3206
|
+
const ae = [
|
|
3170
3207
|
{
|
|
3171
3208
|
key: "FormName",
|
|
3172
3209
|
value: "Form"
|
|
@@ -3187,7 +3224,7 @@ const se = [
|
|
|
3187
3224
|
key: "SystemKey",
|
|
3188
3225
|
value: "System"
|
|
3189
3226
|
}
|
|
3190
|
-
],
|
|
3227
|
+
], ne = [
|
|
3191
3228
|
{
|
|
3192
3229
|
key: "FormDirect",
|
|
3193
3230
|
value: "formFlex"
|
|
@@ -3232,34 +3269,34 @@ const se = [
|
|
|
3232
3269
|
key: "GroupContents",
|
|
3233
3270
|
value: "groupContents"
|
|
3234
3271
|
}
|
|
3235
|
-
],
|
|
3272
|
+
], Be = U(0), vs = (n) => {
|
|
3236
3273
|
const [s, l] = n.split(/=(.+)/), e = s.replace(/['"]/g, "").trim(), a = l.replace(/^['"]|['"]$/g, "");
|
|
3237
3274
|
return { key: e, value: a };
|
|
3238
|
-
},
|
|
3275
|
+
}, Je = (n) => {
|
|
3239
3276
|
try {
|
|
3240
3277
|
return JSON.parse(n), !0;
|
|
3241
3278
|
} catch {
|
|
3242
3279
|
return !1;
|
|
3243
3280
|
}
|
|
3244
|
-
},
|
|
3281
|
+
}, bs = (n) => n.includes("$") && n.trim().endsWith("(") ? n + ")" : n, gs = (n) => {
|
|
3245
3282
|
let s = n;
|
|
3246
3283
|
const l = [];
|
|
3247
3284
|
let e = "";
|
|
3248
3285
|
for (const a of s)
|
|
3249
3286
|
a.includes("{") || e.includes("{") || a.includes("[") || e.includes("[") || a.includes("【") || e.includes("【") || a.includes("(") || e.includes("(") || a.includes("(") || e.includes("(") || a.includes("/*") || e.includes("/*") ? (e += a.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(a.trim());
|
|
3250
3287
|
return l == null ? void 0 : l.filter((a) => a.includes("{"));
|
|
3251
|
-
},
|
|
3288
|
+
}, ks = (n) => {
|
|
3252
3289
|
var l;
|
|
3253
3290
|
let s = [];
|
|
3254
|
-
return (l =
|
|
3291
|
+
return (l = gs(n.slice(1, -1))) == null || l.forEach((e) => {
|
|
3255
3292
|
var o, r, p, g;
|
|
3256
3293
|
let a = ((r = (o = e.slice(1, -1)) == null ? void 0 : o.split(",")) == null ? void 0 : r.length) ?? 1;
|
|
3257
3294
|
(g = (p = e.slice(1, -1)) == null ? void 0 : p.split(",")) == null || g.forEach((h) => {
|
|
3258
|
-
var
|
|
3259
|
-
let f = h == null ? void 0 : h.split(":"),
|
|
3260
|
-
|
|
3261
|
-
id:
|
|
3262
|
-
key:
|
|
3295
|
+
var E, m, B, d, v, k, t, i, u, y, P, J, R;
|
|
3296
|
+
let f = h == null ? void 0 : h.split(":"), x = f != null && f[0] ? (f == null ? void 0 : f[1].split("$").length) - 1 === 1 ? ((E = f == null ? void 0 : f[0]) == null ? void 0 : E.replace(/^"(.*)"$/, "$1")) + ((m = f == null ? void 0 : f[1]) == null ? void 0 : m.replace(/^"(.*)"$/, "$1")) : Array.isArray((d = (B = f == null ? void 0 : f[1]) == null ? void 0 : B.replace(/^"(.*)"$/, "$1")) == null ? void 0 : d.split("(")) && ((t = (k = (v = f == null ? void 0 : f[1]) == null ? void 0 : v.replace(/^"(.*)"$/, "$1")) == null ? void 0 : k.split("(")) == null ? void 0 : t.length) > 1 ? ((i = f == null ? void 0 : f[0]) == null ? void 0 : i.replace(/^"(.*)"$/, "$1")) + ((P = (y = (u = f == null ? void 0 : f[1]) == null ? void 0 : u.replace(/^"(.*)"$/, "$1")) == null ? void 0 : y.split("(")) == null ? void 0 : P[0]) + "()" : (J = f == null ? void 0 : f[0]) == null ? void 0 : J.replace(/^"(.*)"$/, "$1") : "", C = (f == null ? void 0 : f[1].split("$").length) - 1 === 0 ? (R = f == null ? void 0 : f[1]) == null ? void 0 : R.replace(/^"(.*)"$/, "$1") : "";
|
|
3297
|
+
Be.value++, s.push({
|
|
3298
|
+
id: Be.value,
|
|
3299
|
+
key: x,
|
|
3263
3300
|
value: C,
|
|
3264
3301
|
// 如果值为空,则key设为空字符串,否则保留原值
|
|
3265
3302
|
width: a,
|
|
@@ -3267,20 +3304,20 @@ const se = [
|
|
|
3267
3304
|
});
|
|
3268
3305
|
});
|
|
3269
3306
|
}), s;
|
|
3270
|
-
},
|
|
3307
|
+
}, $l = (n) => {
|
|
3271
3308
|
var s, l;
|
|
3272
3309
|
try {
|
|
3273
3310
|
const e = n.replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",").replace(/:/g, ":").replace(/:\s*(?=,|}|$)/g, ': ""');
|
|
3274
3311
|
if (c(e).split("{").length - 1 > 1) {
|
|
3275
3312
|
let a = c(e).replace(/^\{(.*)\}$/, "[$1]");
|
|
3276
|
-
if (
|
|
3313
|
+
if (Je(a) && !a.includes("$") || (a = a.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g, '"$1$$$2"')), Je(a)) {
|
|
3277
3314
|
const o = JSON.parse(a);
|
|
3278
3315
|
let r = [];
|
|
3279
3316
|
return o == null || o.forEach((p) => {
|
|
3280
3317
|
var g;
|
|
3281
3318
|
(g = Object.entries(c(p))) == null || g.forEach((h) => {
|
|
3282
|
-
|
|
3283
|
-
id:
|
|
3319
|
+
Be.value++, r.push({
|
|
3320
|
+
id: Be.value,
|
|
3284
3321
|
key: (h == null ? void 0 : h[0]) ?? "",
|
|
3285
3322
|
value: (h == null ? void 0 : h[1]) === "" ? "" : h == null ? void 0 : h[1],
|
|
3286
3323
|
// 如果值为空,则key设为空字符串,否则保留原值
|
|
@@ -3289,25 +3326,25 @@ const se = [
|
|
|
3289
3326
|
});
|
|
3290
3327
|
}), r;
|
|
3291
3328
|
} else
|
|
3292
|
-
return e.trim().startsWith("{{") ?
|
|
3293
|
-
} else if (
|
|
3329
|
+
return e.trim().startsWith("{{") ? ks(e.trim()) : Ze(a);
|
|
3330
|
+
} else if (Je(e)) {
|
|
3294
3331
|
const a = JSON.parse(e);
|
|
3295
|
-
return Object.entries(a).map(([o, r]) => (
|
|
3296
|
-
id:
|
|
3332
|
+
return Object.entries(a).map(([o, r]) => (Be.value++, {
|
|
3333
|
+
id: Be.value,
|
|
3297
3334
|
key: o,
|
|
3298
3335
|
value: r === "" ? "" : r,
|
|
3299
3336
|
// 如果值为空,则key设为空字符串,否则保留原值
|
|
3300
3337
|
width: 1
|
|
3301
3338
|
}));
|
|
3302
3339
|
} else
|
|
3303
|
-
return ((s =
|
|
3340
|
+
return ((s = Ze(e)) == null ? void 0 : s.length) === 0 ? e : (l = Ze(e)) == null ? void 0 : l.map((a) => ({
|
|
3304
3341
|
label: a.label,
|
|
3305
|
-
method:
|
|
3342
|
+
method: bs(a.method)
|
|
3306
3343
|
}));
|
|
3307
3344
|
} catch (e) {
|
|
3308
3345
|
return console.error("转换失败:", e), [];
|
|
3309
3346
|
}
|
|
3310
|
-
},
|
|
3347
|
+
}, Ze = (n) => {
|
|
3311
3348
|
n = n.trim().replace(/^\{|\}$/g, "").trim();
|
|
3312
3349
|
const s = [];
|
|
3313
3350
|
let l = 0;
|
|
@@ -3330,25 +3367,25 @@ const se = [
|
|
|
3330
3367
|
});
|
|
3331
3368
|
}
|
|
3332
3369
|
return s;
|
|
3333
|
-
},
|
|
3370
|
+
}, Cs = (n, s) => {
|
|
3334
3371
|
try {
|
|
3335
|
-
if (
|
|
3372
|
+
if (ae != null && ae.find((l) => (l == null ? void 0 : l.key) === s))
|
|
3336
3373
|
return n.replace(/['"]/g, "").trim();
|
|
3337
3374
|
if (c(n).split("[").length - 1 > 1) {
|
|
3338
3375
|
const l = c(n).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
|
|
3339
3376
|
return JSON.parse(l);
|
|
3340
3377
|
} else {
|
|
3341
3378
|
const l = c(n).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",");
|
|
3342
|
-
if (
|
|
3379
|
+
if (Je(l)) {
|
|
3343
3380
|
const e = JSON.parse(l);
|
|
3344
3381
|
return Array.isArray(e) ? e.map((a) => ({ label: a })) : e;
|
|
3345
3382
|
} else
|
|
3346
|
-
return
|
|
3383
|
+
return $l(c(n));
|
|
3347
3384
|
}
|
|
3348
3385
|
} catch (l) {
|
|
3349
3386
|
return console.error("解析失败:", l), n;
|
|
3350
3387
|
}
|
|
3351
|
-
},
|
|
3388
|
+
}, _s = (n) => ({ [n == null ? void 0 : n.key]: Cs(n == null ? void 0 : n.value, n == null ? void 0 : n.key) }), xs = (n) => {
|
|
3352
3389
|
try {
|
|
3353
3390
|
if (c(n).split("[").length - 1 > 1) {
|
|
3354
3391
|
const s = c(n).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
|
|
@@ -3358,38 +3395,38 @@ const se = [
|
|
|
3358
3395
|
} catch (s) {
|
|
3359
3396
|
return console.error("解析失败:", s), n;
|
|
3360
3397
|
}
|
|
3361
|
-
},
|
|
3398
|
+
}, $s = (n) => {
|
|
3362
3399
|
const s = n.match(/\(([^)]+)\)/);
|
|
3363
3400
|
return s ? s[1] : "";
|
|
3364
|
-
},
|
|
3401
|
+
}, As = (n) => {
|
|
3365
3402
|
const s = n.match(/^([^(]+)\s*\(/);
|
|
3366
3403
|
return s ? s[1].trim() : n;
|
|
3367
|
-
},
|
|
3404
|
+
}, ul = (n) => n.replace(/'/g, "").replace(/"/g, "").replace(/{|}/g, "").split(":").map((s) => s.trim()).filter((s) => s).join("/"), ws = (n) => {
|
|
3368
3405
|
var r, p;
|
|
3369
3406
|
let s = [], l = [];
|
|
3370
|
-
const e = (r = c(n)) == null ? void 0 : r.map((g) => g == null ? void 0 : g.key), a = [...new Set((p = c(e)) == null ? void 0 : p.map((g) =>
|
|
3407
|
+
const e = (r = c(n)) == null ? void 0 : r.map((g) => g == null ? void 0 : g.key), a = [...new Set((p = c(e)) == null ? void 0 : p.map((g) => $s(g)))];
|
|
3371
3408
|
a == null || a.forEach((g) => {
|
|
3372
3409
|
let h = n == null ? void 0 : n.filter((C) => C.key.includes(g));
|
|
3373
3410
|
h == null || h.forEach((C) => {
|
|
3374
3411
|
C != null && C.key.includes("Menus") && (s.push({
|
|
3375
3412
|
key: "GroupName",
|
|
3376
|
-
value:
|
|
3377
|
-
}), l.push(
|
|
3413
|
+
value: ul(C == null ? void 0 : C.value)
|
|
3414
|
+
}), l.push(ul(C == null ? void 0 : C.value)));
|
|
3378
3415
|
});
|
|
3379
3416
|
let f = n == null ? void 0 : n.filter((C) => C.key.includes(g) && !(C != null && C.key.includes("Menus")));
|
|
3380
|
-
f = f == null ? void 0 : f.map((C) => (C.key =
|
|
3381
|
-
const
|
|
3417
|
+
f = f == null ? void 0 : f.map((C) => (C.key = As(C.key), C));
|
|
3418
|
+
const x = {
|
|
3382
3419
|
key: "GroupContents",
|
|
3383
3420
|
value: f
|
|
3384
3421
|
};
|
|
3385
|
-
s.push(
|
|
3422
|
+
s.push(x);
|
|
3386
3423
|
});
|
|
3387
3424
|
const o = {
|
|
3388
3425
|
key: "Menus",
|
|
3389
3426
|
value: l
|
|
3390
3427
|
};
|
|
3391
3428
|
return s.unshift(o), s;
|
|
3392
|
-
},
|
|
3429
|
+
}, Al = (n) => {
|
|
3393
3430
|
var s, l;
|
|
3394
3431
|
if (Array.isArray(Object.keys(n)) && ((s = Object.keys(n)) == null ? void 0 : s.length) > 0) {
|
|
3395
3432
|
let e = [];
|
|
@@ -3398,7 +3435,7 @@ const se = [
|
|
|
3398
3435
|
let r = [];
|
|
3399
3436
|
if (r.push(a), ((p = Object.keys(o)) == null ? void 0 : p.length) > 0) {
|
|
3400
3437
|
let h = [];
|
|
3401
|
-
(g =
|
|
3438
|
+
(g = Al(o)) == null || g.forEach((f) => {
|
|
3402
3439
|
h.push(f);
|
|
3403
3440
|
}), h == null || h.forEach((f) => {
|
|
3404
3441
|
r.push(f);
|
|
@@ -3407,20 +3444,20 @@ const se = [
|
|
|
3407
3444
|
e.push(r);
|
|
3408
3445
|
}), e;
|
|
3409
3446
|
}
|
|
3410
|
-
},
|
|
3447
|
+
}, Ts = (n, s) => {
|
|
3411
3448
|
var e;
|
|
3412
3449
|
let l = s;
|
|
3413
3450
|
return Array.isArray(Object.keys(n)) && ((e = Object.entries(n)) == null || e.forEach(([a, o]) => {
|
|
3414
3451
|
let r = [a];
|
|
3415
3452
|
if (typeof o == "object" && o !== null) {
|
|
3416
|
-
let p =
|
|
3453
|
+
let p = Al(o);
|
|
3417
3454
|
p == null || p.forEach((g) => {
|
|
3418
3455
|
r.push(g);
|
|
3419
3456
|
});
|
|
3420
3457
|
}
|
|
3421
3458
|
l.push(r);
|
|
3422
3459
|
})), l;
|
|
3423
|
-
},
|
|
3460
|
+
}, Is = (n) => {
|
|
3424
3461
|
const s = {};
|
|
3425
3462
|
return n.forEach((e) => {
|
|
3426
3463
|
const a = e.split("/");
|
|
@@ -3428,26 +3465,26 @@ const se = [
|
|
|
3428
3465
|
a.forEach((r) => {
|
|
3429
3466
|
o[r] || (o[r] = {}), o = o[r];
|
|
3430
3467
|
});
|
|
3431
|
-
}),
|
|
3432
|
-
},
|
|
3468
|
+
}), Ts(s, []);
|
|
3469
|
+
}, wl = (n) => Is(n), vo = (n) => {
|
|
3433
3470
|
var s, l, e, a, o, r, p, g;
|
|
3434
3471
|
try {
|
|
3435
|
-
const h =
|
|
3436
|
-
if (((o =
|
|
3472
|
+
const h = ll((l = (s = c(n)) == null ? void 0 : s.replace("(", "(")) == null ? void 0 : l.replace(")", ")")), f = (a = (e = c(h)) == null ? void 0 : e.filter((m) => !m.includes("/*"))) == null ? void 0 : a.map((m) => vs(m)), x = ws(f), C = [];
|
|
3473
|
+
if (((o = x == null ? void 0 : x.find((m) => (m == null ? void 0 : m.key) === "Menus")) == null ? void 0 : o.value.length) === 0)
|
|
3437
3474
|
return !1;
|
|
3438
|
-
(r = c(
|
|
3439
|
-
var
|
|
3440
|
-
|
|
3475
|
+
(r = c(x)) == null || r.forEach((m) => {
|
|
3476
|
+
var B, d, v, k, t;
|
|
3477
|
+
ae != null && ae.find((i) => {
|
|
3441
3478
|
var u, y;
|
|
3442
3479
|
return ((u = i == null ? void 0 : i.key) == null ? void 0 : u.toUpperCase()) === ((y = m == null ? void 0 : m.key) == null ? void 0 : y.toUpperCase());
|
|
3443
3480
|
}) ? C.push({
|
|
3444
|
-
comp: ((
|
|
3481
|
+
comp: ((B = ae == null ? void 0 : ae.find((i) => {
|
|
3445
3482
|
var u, y;
|
|
3446
3483
|
return ((u = i == null ? void 0 : i.key) == null ? void 0 : u.toUpperCase()) === ((y = m == null ? void 0 : m.key) == null ? void 0 : y.toUpperCase());
|
|
3447
|
-
})) == null ? void 0 :
|
|
3484
|
+
})) == null ? void 0 : B.value) ?? "",
|
|
3448
3485
|
name: (d = m == null ? void 0 : m.value) == null ? void 0 : d.replace(/[’]|[‘]|[']/g, ""),
|
|
3449
3486
|
compData: []
|
|
3450
|
-
}) :
|
|
3487
|
+
}) : ne != null && ne.find((i) => {
|
|
3451
3488
|
var u, y;
|
|
3452
3489
|
return ((u = i == null ? void 0 : i.key) == null ? void 0 : u.toUpperCase()) === ((y = m == null ? void 0 : m.key) == null ? void 0 : y.toUpperCase());
|
|
3453
3490
|
}) && ((C == null ? void 0 : C.length) === 0 && (v = m.key) != null && v.includes("Menus") && C.push({
|
|
@@ -3455,131 +3492,131 @@ const se = [
|
|
|
3455
3492
|
name: "",
|
|
3456
3493
|
compData: []
|
|
3457
3494
|
}), (k = C == null ? void 0 : C[(C == null ? void 0 : C.length) - 1]) != null && k.compData && C[(C == null ? void 0 : C.length) - 1].compData.push({
|
|
3458
|
-
key: (t =
|
|
3495
|
+
key: (t = ne == null ? void 0 : ne.find((i) => {
|
|
3459
3496
|
var u, y;
|
|
3460
3497
|
return ((u = i == null ? void 0 : i.key) == null ? void 0 : u.toUpperCase()) === ((y = m == null ? void 0 : m.key) == null ? void 0 : y.toUpperCase());
|
|
3461
3498
|
})) == null ? void 0 : t.value,
|
|
3462
3499
|
contents: m == null ? void 0 : m.value
|
|
3463
3500
|
}));
|
|
3464
3501
|
});
|
|
3465
|
-
let
|
|
3466
|
-
var
|
|
3467
|
-
return m != null && m.compData && (m.compData = (
|
|
3468
|
-
var v, k, t, i, u, y, P, J, R, I,
|
|
3502
|
+
let E = (p = c(C)) == null ? void 0 : p.map((m) => {
|
|
3503
|
+
var B;
|
|
3504
|
+
return m != null && m.compData && (m.compData = (B = m == null ? void 0 : m.compData) == null ? void 0 : B.map((d) => {
|
|
3505
|
+
var v, k, t, i, u, y, P, J, R, I, N;
|
|
3469
3506
|
if ((d == null ? void 0 : d.key) === "formFlex")
|
|
3470
3507
|
d.contents = ((k = (v = d.contents) == null ? void 0 : v.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : k.toUpperCase()) !== "Vertical".toUpperCase();
|
|
3471
3508
|
else if ((d == null ? void 0 : d.key) === "groupContents")
|
|
3472
|
-
d.contents = (t = c(d.contents)) == null ? void 0 : t.map((
|
|
3509
|
+
d.contents = (t = c(d.contents)) == null ? void 0 : t.map((O) => _s(c(O)));
|
|
3473
3510
|
else if (Array.isArray(d == null ? void 0 : d.contents))
|
|
3474
|
-
d.contents =
|
|
3475
|
-
else if (((u = (i = d == null ? void 0 : d.contents) == null ? void 0 : i.trim()) != null && u.startsWith("[") || (P = (y = d.contents) == null ? void 0 : y.trim()) != null && P.startsWith("【")) && ((R = (J = d.contents) == null ? void 0 : J.trim()) != null && R.endsWith("]") || (
|
|
3476
|
-
d.contents =
|
|
3511
|
+
d.contents = wl(d.contents);
|
|
3512
|
+
else if (((u = (i = d == null ? void 0 : d.contents) == null ? void 0 : i.trim()) != null && u.startsWith("[") || (P = (y = d.contents) == null ? void 0 : y.trim()) != null && P.startsWith("【")) && ((R = (J = d.contents) == null ? void 0 : J.trim()) != null && R.endsWith("]") || (N = (I = d.contents) == null ? void 0 : I.trim()) != null && N.endsWith("】")))
|
|
3513
|
+
d.contents = xs(c(d.contents));
|
|
3477
3514
|
else {
|
|
3478
3515
|
if (!d.contents) return;
|
|
3479
|
-
d.contents =
|
|
3516
|
+
d.contents = $l(c(d.contents));
|
|
3480
3517
|
}
|
|
3481
3518
|
return d;
|
|
3482
3519
|
})), m;
|
|
3483
3520
|
});
|
|
3484
|
-
return
|
|
3485
|
-
var
|
|
3486
|
-
return (m == null ? void 0 : m.comp) === "Group" && (m.compData = (
|
|
3521
|
+
return E = (g = c(E)) == null ? void 0 : g.map((m) => {
|
|
3522
|
+
var B;
|
|
3523
|
+
return (m == null ? void 0 : m.comp) === "Group" && (m.compData = (B = m.compData) == null ? void 0 : B.map((d) => {
|
|
3487
3524
|
var k;
|
|
3488
3525
|
let v = [];
|
|
3489
3526
|
return (k = d.contents) == null || k.forEach((t) => {
|
|
3490
|
-
var i, u, y, P, J, R, I,
|
|
3491
|
-
if (
|
|
3492
|
-
var
|
|
3493
|
-
return ((
|
|
3527
|
+
var i, u, y, P, J, R, I, N, O, b, L, A;
|
|
3528
|
+
if (ae != null && ae.find((S) => {
|
|
3529
|
+
var D, H, W;
|
|
3530
|
+
return ((D = S == null ? void 0 : S.key) == null ? void 0 : D.toUpperCase()) === ((W = (H = Object.keys(t)) == null ? void 0 : H[0]) == null ? void 0 : W.toUpperCase());
|
|
3494
3531
|
}))
|
|
3495
3532
|
v.push({
|
|
3496
|
-
comp: (i =
|
|
3497
|
-
var
|
|
3498
|
-
return ((
|
|
3533
|
+
comp: (i = ae == null ? void 0 : ae.find((S) => {
|
|
3534
|
+
var D, H, W;
|
|
3535
|
+
return ((D = S == null ? void 0 : S.key) == null ? void 0 : D.toUpperCase()) === ((W = (H = Object.keys(t)) == null ? void 0 : H[0]) == null ? void 0 : W.toUpperCase());
|
|
3499
3536
|
})) == null ? void 0 : i.value,
|
|
3500
3537
|
name: (y = (u = Object.values(t)) == null ? void 0 : u[0]) == null ? void 0 : y.replace(/[’]|[‘]|[']/g, ""),
|
|
3501
3538
|
compData: []
|
|
3502
3539
|
});
|
|
3503
|
-
else if (
|
|
3504
|
-
var
|
|
3505
|
-
return ((
|
|
3540
|
+
else if (ne != null && ne.find((S) => {
|
|
3541
|
+
var D, H, W;
|
|
3542
|
+
return ((D = S == null ? void 0 : S.key) == null ? void 0 : D.toUpperCase()) === ((W = (H = Object.keys(t)) == null ? void 0 : H[0]) == null ? void 0 : W.toUpperCase());
|
|
3506
3543
|
})) {
|
|
3507
3544
|
if ((v == null ? void 0 : v.length) === 0) return;
|
|
3508
3545
|
(P = v == null ? void 0 : v[(v == null ? void 0 : v.length) - 1]) != null && P.compData && v[(v == null ? void 0 : v.length) - 1].compData.push({
|
|
3509
|
-
key: (J =
|
|
3510
|
-
var
|
|
3511
|
-
return ((
|
|
3546
|
+
key: (J = ne == null ? void 0 : ne.find((S) => {
|
|
3547
|
+
var D, H, W;
|
|
3548
|
+
return ((D = S == null ? void 0 : S.key) == null ? void 0 : D.toUpperCase()) === ((W = (H = Object.keys(t)) == null ? void 0 : H[0]) == null ? void 0 : W.toUpperCase());
|
|
3512
3549
|
})) == null ? void 0 : J.value,
|
|
3513
3550
|
contents: (R = Object.values(t)) == null ? void 0 : R[0]
|
|
3514
3551
|
});
|
|
3515
|
-
} else if ((
|
|
3516
|
-
const S = (b = (
|
|
3552
|
+
} else if ((N = (I = Object.keys(t)) == null ? void 0 : I[0]) != null && N.includes("$")) {
|
|
3553
|
+
const S = (b = (O = Object.keys(c(t))) == null ? void 0 : O[0]) == null ? void 0 : b.split("$");
|
|
3517
3554
|
v[(v == null ? void 0 : v.length) - 1].compData.push({
|
|
3518
|
-
key: (L =
|
|
3519
|
-
var
|
|
3520
|
-
return ((
|
|
3555
|
+
key: (L = ne == null ? void 0 : ne.find((D) => {
|
|
3556
|
+
var H, W;
|
|
3557
|
+
return ((H = D == null ? void 0 : D.key) == null ? void 0 : H.toUpperCase()) === ((W = S == null ? void 0 : S[0]) == null ? void 0 : W.toUpperCase());
|
|
3521
3558
|
})) == null ? void 0 : L.value,
|
|
3522
|
-
contents: (
|
|
3559
|
+
contents: (A = Object.values(t)) == null ? void 0 : A[0],
|
|
3523
3560
|
selectLabel: S == null ? void 0 : S[1]
|
|
3524
3561
|
});
|
|
3525
3562
|
}
|
|
3526
3563
|
return t;
|
|
3527
3564
|
}), d.contents = v, d;
|
|
3528
3565
|
})), m;
|
|
3529
|
-
}),
|
|
3566
|
+
}), E;
|
|
3530
3567
|
} catch {
|
|
3531
3568
|
return !1;
|
|
3532
3569
|
}
|
|
3533
|
-
},
|
|
3570
|
+
}, cl = U(0), Tl = (n) => {
|
|
3534
3571
|
const s = [];
|
|
3535
3572
|
let l = null;
|
|
3536
3573
|
for (let e = 0; e < n.length; e++) {
|
|
3537
3574
|
const a = n[e];
|
|
3538
3575
|
if (Array.isArray(a))
|
|
3539
|
-
l && (l.children =
|
|
3576
|
+
l && (l.children = Tl(a));
|
|
3540
3577
|
else {
|
|
3541
3578
|
const o = { label: a };
|
|
3542
3579
|
s.push(o), l = o;
|
|
3543
3580
|
}
|
|
3544
3581
|
}
|
|
3545
3582
|
return s;
|
|
3546
|
-
},
|
|
3583
|
+
}, Il = (n) => {
|
|
3547
3584
|
let s = 0;
|
|
3548
3585
|
for (const l of n)
|
|
3549
|
-
s++, l.children && (s +=
|
|
3586
|
+
s++, l.children && (s += Il(l.children));
|
|
3550
3587
|
return s;
|
|
3551
|
-
},
|
|
3588
|
+
}, El = (n, s, l = []) => {
|
|
3552
3589
|
let e = 0;
|
|
3553
3590
|
for (const a of s) {
|
|
3554
3591
|
if (e >= n.length) break;
|
|
3555
3592
|
const o = [...n[e]];
|
|
3556
3593
|
if (l.push(o), e++, a.children && a.children.length > 0) {
|
|
3557
3594
|
const r = [];
|
|
3558
|
-
|
|
3595
|
+
El(
|
|
3559
3596
|
n.slice(e),
|
|
3560
3597
|
a.children,
|
|
3561
3598
|
r
|
|
3562
|
-
), r.length > 0 && (o.push(r), e +=
|
|
3599
|
+
), r.length > 0 && (o.push(r), e += Il(a.children));
|
|
3563
3600
|
}
|
|
3564
3601
|
}
|
|
3565
3602
|
return l;
|
|
3566
|
-
},
|
|
3603
|
+
}, Es = (n, s) => {
|
|
3567
3604
|
let l = [];
|
|
3568
3605
|
return n == null || n.forEach((a) => {
|
|
3569
3606
|
a.some((o) => Array.isArray(o)) ? l.push(...a) : l.push(a);
|
|
3570
|
-
}),
|
|
3571
|
-
},
|
|
3607
|
+
}), El(l, s);
|
|
3608
|
+
}, Qe = (n) => {
|
|
3572
3609
|
const s = { label: n[0].trim() };
|
|
3573
3610
|
if (n.length > 1) {
|
|
3574
3611
|
const l = n.slice(1);
|
|
3575
3612
|
l.length === 1 && Array.isArray(l[0]) ? s.children = l[0].map(
|
|
3576
|
-
(e) => Array.isArray(e) ?
|
|
3613
|
+
(e) => Array.isArray(e) ? Qe(e) : { label: e.trim() }
|
|
3577
3614
|
) : s.children = l.map(
|
|
3578
|
-
(e) => Array.isArray(e) ?
|
|
3615
|
+
(e) => Array.isArray(e) ? Qe(e) : { label: e.trim() }
|
|
3579
3616
|
);
|
|
3580
3617
|
}
|
|
3581
3618
|
return s;
|
|
3582
|
-
},
|
|
3619
|
+
}, pl = (n) => {
|
|
3583
3620
|
let s = n.replace(/:([^{}\[\],\s]+)([,\]}])/g, ':"$1"$2');
|
|
3584
3621
|
return s = s.replace(/:}(?=,|]|}|$)/g, ':""}'), s = s.replace(/:,(?=\s*")/g, ':"",'), s = s.replace(
|
|
3585
3622
|
/(https?|HTTPS?):"\/\/([^"]+)"/gi,
|
|
@@ -3588,34 +3625,34 @@ const se = [
|
|
|
3588
3625
|
/(\[|\s|,)((?:https?|HTTPS?):\/\/[^\s,\]]+)(\]|,|$)/gi,
|
|
3589
3626
|
'$1"$2"$3'
|
|
3590
3627
|
), s;
|
|
3591
|
-
},
|
|
3628
|
+
}, Ds = (n) => {
|
|
3592
3629
|
var l;
|
|
3593
3630
|
return n.some((e) => !Array.isArray(e)) ? n : (l = c(n)) == null ? void 0 : l.map((e) => {
|
|
3594
3631
|
let a = [];
|
|
3595
3632
|
return e.some((o) => Array.isArray(o)) ? e == null || e.forEach((o) => {
|
|
3596
|
-
Array.isArray(o) && a.push(
|
|
3633
|
+
Array.isArray(o) && a.push(Qe(o));
|
|
3597
3634
|
}) : e.some((o) => o.includes("[")) ? a.push(e) : a = e.map((o) => ({ label: o.trim() })), a;
|
|
3598
3635
|
});
|
|
3599
|
-
},
|
|
3636
|
+
}, Dl = (n, s, l) => {
|
|
3600
3637
|
let e = n, a = l, o = s;
|
|
3601
3638
|
return o.children && (Array.isArray(a[a.length - 1]) ? a[a.length - 1].push(e[0]) : a.push(e[0]), e.shift(), o = o.children), Array.isArray(o) && o.forEach((r) => {
|
|
3602
3639
|
if (r.children) {
|
|
3603
|
-
const p =
|
|
3640
|
+
const p = Dl(e, r, a);
|
|
3604
3641
|
a = p[0], e = p[1];
|
|
3605
3642
|
}
|
|
3606
3643
|
}), [a, e];
|
|
3607
|
-
},
|
|
3644
|
+
}, Os = (n, s) => {
|
|
3608
3645
|
let l = n, e = [];
|
|
3609
3646
|
return s.length > 0 ? s == null || s.forEach((a) => {
|
|
3610
3647
|
let o = l == null ? void 0 : l[0];
|
|
3611
3648
|
l.shift();
|
|
3612
|
-
const r =
|
|
3649
|
+
const r = Dl(c(l), a, o);
|
|
3613
3650
|
o = r[0], l = r[1], e.push(o);
|
|
3614
3651
|
}) : e = l, e;
|
|
3615
|
-
},
|
|
3616
|
-
const l =
|
|
3617
|
-
return
|
|
3618
|
-
},
|
|
3652
|
+
}, el = (n, s) => {
|
|
3653
|
+
const l = Ds(c(n));
|
|
3654
|
+
return Os(l, s);
|
|
3655
|
+
}, Bs = (n) => {
|
|
3619
3656
|
const s = [];
|
|
3620
3657
|
let l = 0;
|
|
3621
3658
|
const e = n.length;
|
|
@@ -3628,26 +3665,26 @@ const se = [
|
|
|
3628
3665
|
}), l += 2) : (s.push(a), l += 1);
|
|
3629
3666
|
}
|
|
3630
3667
|
return s;
|
|
3631
|
-
},
|
|
3668
|
+
}, Ol = (n) => el([n], []), ze = (n) => {
|
|
3632
3669
|
const s = [];
|
|
3633
3670
|
return n == null || n.forEach((l) => l == null ? void 0 : l.forEach((a) => {
|
|
3634
3671
|
var o, r;
|
|
3635
|
-
|
|
3636
|
-
id:
|
|
3672
|
+
cl.value++, s.push({
|
|
3673
|
+
id: cl.value,
|
|
3637
3674
|
key: (o = Object.keys(a)) == null ? void 0 : o[0],
|
|
3638
3675
|
value: (r = Object.values(a)) == null ? void 0 : r[0],
|
|
3639
3676
|
// 如果值为空,则key设为空字符串,否则保留原值
|
|
3640
3677
|
width: l.length
|
|
3641
3678
|
});
|
|
3642
3679
|
})), s;
|
|
3643
|
-
},
|
|
3644
|
-
let s =
|
|
3680
|
+
}, dl = (n) => {
|
|
3681
|
+
let s = Bs(n);
|
|
3645
3682
|
return s = s == null ? void 0 : s.map((l) => {
|
|
3646
3683
|
var e, a, o, r;
|
|
3647
3684
|
if (l.comp === "Table")
|
|
3648
3685
|
(e = l.compData) != null && e.find((p) => (p == null ? void 0 : p.key) === "header") || (l.compData = (a = l.compData) == null ? void 0 : a.map((p) => (p.key === "tableColumns" ? p = {
|
|
3649
3686
|
key: "header",
|
|
3650
|
-
contents:
|
|
3687
|
+
contents: el(p.value, [])
|
|
3651
3688
|
} : p = {
|
|
3652
3689
|
key: p.key,
|
|
3653
3690
|
contents: p.value
|
|
@@ -3669,7 +3706,7 @@ const se = [
|
|
|
3669
3706
|
},
|
|
3670
3707
|
{
|
|
3671
3708
|
key: "formContent",
|
|
3672
|
-
contents:
|
|
3709
|
+
contents: ze(p)
|
|
3673
3710
|
}
|
|
3674
3711
|
],
|
|
3675
3712
|
name: ""
|
|
@@ -3685,7 +3722,7 @@ const se = [
|
|
|
3685
3722
|
},
|
|
3686
3723
|
{
|
|
3687
3724
|
key: "formContent",
|
|
3688
|
-
contents:
|
|
3725
|
+
contents: ze(p)
|
|
3689
3726
|
},
|
|
3690
3727
|
{
|
|
3691
3728
|
key: "enableWrap",
|
|
@@ -3705,9 +3742,9 @@ const se = [
|
|
|
3705
3742
|
}
|
|
3706
3743
|
return l;
|
|
3707
3744
|
}), s;
|
|
3708
|
-
},
|
|
3709
|
-
var p, g, h, f,
|
|
3710
|
-
const l = [], e =
|
|
3745
|
+
}, Fs = (n, s) => {
|
|
3746
|
+
var p, g, h, f, x, C;
|
|
3747
|
+
const l = [], e = Tl((g = (p = n == null ? void 0 : n.find((E) => E.key === "tableIndex")) == null ? void 0 : p.value) == null ? void 0 : g[0]);
|
|
3711
3748
|
l.push({
|
|
3712
3749
|
key: "tableIndexColumn",
|
|
3713
3750
|
contents: s
|
|
@@ -3716,12 +3753,12 @@ const se = [
|
|
|
3716
3753
|
contents: e
|
|
3717
3754
|
});
|
|
3718
3755
|
let a = [];
|
|
3719
|
-
const o = (h = n == null ? void 0 : n.find((
|
|
3720
|
-
o.length === 1 && !(o != null && o[0].some((
|
|
3756
|
+
const o = (h = n == null ? void 0 : n.find((E) => E.key === "tableColumns")) == null ? void 0 : h.value;
|
|
3757
|
+
o.length === 1 && !(o != null && o[0].some((E) => Array.isArray(E))) ? a = (f = o == null ? void 0 : o[0]) == null ? void 0 : f.map((E) => ({ label: E })) : a = el((x = n == null ? void 0 : n.find((E) => E.key === "tableColumns")) == null ? void 0 : x.value, e), l.push({
|
|
3721
3758
|
key: "header",
|
|
3722
3759
|
contents: a
|
|
3723
3760
|
});
|
|
3724
|
-
const r =
|
|
3761
|
+
const r = Es((C = n == null ? void 0 : n.find((E) => E.key === "tableContents")) == null ? void 0 : C.value, e);
|
|
3725
3762
|
return l.push({
|
|
3726
3763
|
key: "tableContents",
|
|
3727
3764
|
contents: r
|
|
@@ -3732,19 +3769,19 @@ const se = [
|
|
|
3732
3769
|
key: "rowButton",
|
|
3733
3770
|
contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
|
|
3734
3771
|
}), l;
|
|
3735
|
-
},
|
|
3736
|
-
const a =
|
|
3772
|
+
}, Bl = (n) => n.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g, (s, l, e) => {
|
|
3773
|
+
const a = Bl(e);
|
|
3737
3774
|
return `"${l}",${a}`;
|
|
3738
|
-
}),
|
|
3775
|
+
}), Ue = (n) => {
|
|
3739
3776
|
const s = n.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g, '"$1",$2');
|
|
3740
|
-
return
|
|
3741
|
-
},
|
|
3777
|
+
return Bl(s).replace(/^"(.*)"$/, "$1");
|
|
3778
|
+
}, Ns = (n) => {
|
|
3742
3779
|
const s = /* @__PURE__ */ new Set();
|
|
3743
3780
|
return n.filter((l) => {
|
|
3744
3781
|
const e = JSON.stringify(l);
|
|
3745
3782
|
return s.has(e) ? !1 : s.add(e);
|
|
3746
3783
|
});
|
|
3747
|
-
},
|
|
3784
|
+
}, fl = (n) => {
|
|
3748
3785
|
var l;
|
|
3749
3786
|
let s = [];
|
|
3750
3787
|
return (l = c(n)) == null || l.forEach((e) => {
|
|
@@ -3752,16 +3789,16 @@ const se = [
|
|
|
3752
3789
|
(a = e.contents) == null || a.forEach((o) => {
|
|
3753
3790
|
s.push(o);
|
|
3754
3791
|
});
|
|
3755
|
-
}), s =
|
|
3792
|
+
}), s = Ns(s), s.push({
|
|
3756
3793
|
label: "操作"
|
|
3757
3794
|
}), [s];
|
|
3758
|
-
},
|
|
3795
|
+
}, Ss = (n, s) => n.reduce((l, e, a) => {
|
|
3759
3796
|
const o = Math.floor(a / s);
|
|
3760
3797
|
return l[o] || (l[o] = []), l[o].push(e), l;
|
|
3761
|
-
}, []),
|
|
3798
|
+
}, []), Fl = (n) => n.reduce((s, l) => l.children && l.children.length > 0 ? s + Fl(l.children) : s + 1, 0), Ls = (n, s) => {
|
|
3762
3799
|
var e;
|
|
3763
3800
|
let l = [];
|
|
3764
|
-
return (e =
|
|
3801
|
+
return (e = Ss(n, Fl(s == null ? void 0 : s[0]) - 1)) == null || e.forEach((a) => {
|
|
3765
3802
|
let o = [];
|
|
3766
3803
|
a.forEach((r) => {
|
|
3767
3804
|
var p;
|
|
@@ -3770,7 +3807,7 @@ const se = [
|
|
|
3770
3807
|
}) : o.push(r.contents);
|
|
3771
3808
|
}), l.push(o);
|
|
3772
3809
|
}), [l];
|
|
3773
|
-
},
|
|
3810
|
+
}, js = ["方法体", "输入", "输出"], hl = U(1), ll = (n) => {
|
|
3774
3811
|
let s;
|
|
3775
3812
|
n.replaceAll(" ", `\r
|
|
3776
3813
|
`).includes(`\r
|
|
@@ -3784,10 +3821,10 @@ const se = [
|
|
|
3784
3821
|
for (const a of s)
|
|
3785
3822
|
a.includes("{") || e.includes("{") || a.includes("[") || e.includes("[") || a.includes("【") || e.includes("【") || a.includes("(") || e.includes("(") || a.includes("(") || e.includes("(") || a.includes("/*") || e.includes("/*") ? (e += a.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(a.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
|
|
3786
3823
|
return l;
|
|
3787
|
-
},
|
|
3824
|
+
}, Us = (n) => {
|
|
3788
3825
|
const [s, l] = n.split(/=(.+)/), e = s.replace(/['"]/g, "").trim(), a = l.replace(/^['"]|['"]$/g, "");
|
|
3789
3826
|
return { key: e, value: a };
|
|
3790
|
-
},
|
|
3827
|
+
}, Me = (n) => {
|
|
3791
3828
|
let s;
|
|
3792
3829
|
n != null && n.includes(":") ? s = n.split(":").filter((a) => a.trim() !== "") : s = n == null ? void 0 : n.split(":").filter((a) => a.trim() !== "");
|
|
3793
3830
|
const l = [];
|
|
@@ -3795,7 +3832,7 @@ const se = [
|
|
|
3795
3832
|
for (const a of s)
|
|
3796
3833
|
a.includes("{") || e.includes("{") || a.includes("[") || e.includes("[") || a.includes("【") || e.includes("【") || a.includes("(") || e.includes("(") || a.includes("(") || e.includes("(") || a.includes("/*") || e.includes("/*") ? (e = e !== "" ? e + ":" + a.trim() : a.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(a.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
|
|
3797
3834
|
return l;
|
|
3798
|
-
},
|
|
3835
|
+
}, Ps = (n) => /^[\x00-\x7F]*$/.test(n), Rs = (n) => {
|
|
3799
3836
|
var a, o;
|
|
3800
3837
|
const s = (a = n.map((r) => {
|
|
3801
3838
|
var g, h;
|
|
@@ -3803,11 +3840,11 @@ const se = [
|
|
|
3803
3840
|
return p == null ? void 0 : p.slice(0, p.length - 1);
|
|
3804
3841
|
})) == null ? void 0 : a.filter((r) => r), l = s == null ? void 0 : s.map((r) => {
|
|
3805
3842
|
var g;
|
|
3806
|
-
return (g =
|
|
3843
|
+
return (g = Me(r)) == null ? void 0 : g.map((h) => {
|
|
3807
3844
|
var f;
|
|
3808
3845
|
if (h.includes("{")) {
|
|
3809
|
-
let
|
|
3810
|
-
h =
|
|
3846
|
+
let x = (f = h.split(":")) == null ? void 0 : f[0];
|
|
3847
|
+
h = x.slice(1, x.length);
|
|
3811
3848
|
}
|
|
3812
3849
|
return h;
|
|
3813
3850
|
});
|
|
@@ -3817,15 +3854,15 @@ const se = [
|
|
|
3817
3854
|
g.includes("{") || (p = p === "" ? p + c(g) : p + "/" + c(g));
|
|
3818
3855
|
}), p;
|
|
3819
3856
|
});
|
|
3820
|
-
return
|
|
3821
|
-
},
|
|
3857
|
+
return wl([...new Set(e)]);
|
|
3858
|
+
}, Nl = (n) => {
|
|
3822
3859
|
var l, e, a, o, r, p, g, h;
|
|
3823
3860
|
const s = (e = (l = n.split("(")) == null ? void 0 : l[1]) == null ? void 0 : e.trim();
|
|
3824
|
-
return ((a =
|
|
3825
|
-
},
|
|
3861
|
+
return ((a = Me(s.slice(0, s.length - 1))) == null ? void 0 : a.length) > 0 ? s.slice(0, s.length - 1) : (h = (g = (p = (r = (o = n.split("(")) == null ? void 0 : o[1]) == null ? void 0 : r.trim()) == null ? void 0 : p.split(")")) == null ? void 0 : g[0]) == null ? void 0 : h.trim();
|
|
3862
|
+
}, Js = (n) => {
|
|
3826
3863
|
var a;
|
|
3827
3864
|
if (!n) return;
|
|
3828
|
-
const s =
|
|
3865
|
+
const s = Nl(n), l = (a = Me(s)) == null ? void 0 : a.map((o) => {
|
|
3829
3866
|
var r;
|
|
3830
3867
|
if (o.includes("{")) {
|
|
3831
3868
|
let p = (r = o.split(":")) == null ? void 0 : r[0];
|
|
@@ -3837,7 +3874,7 @@ const se = [
|
|
|
3837
3874
|
return l.forEach((o) => {
|
|
3838
3875
|
o.includes("{") || (e = e === "" ? e + c(o) : e + "/" + c(o));
|
|
3839
3876
|
}), e;
|
|
3840
|
-
},
|
|
3877
|
+
}, Vs = (n) => {
|
|
3841
3878
|
const s = n.match(/\[(.*)\]/s);
|
|
3842
3879
|
if (s) {
|
|
3843
3880
|
const l = `[${s[1]}]`;
|
|
@@ -3848,22 +3885,22 @@ const se = [
|
|
|
3848
3885
|
return JSON.parse(l.replace(/\[(\s*)(,|])/g, '[""$2').replace(/([^\[\],\s]+)/g, '"$1"').replace(/""/g, '"'));
|
|
3849
3886
|
}
|
|
3850
3887
|
}
|
|
3851
|
-
},
|
|
3888
|
+
}, Ws = (n) => {
|
|
3852
3889
|
var o;
|
|
3853
3890
|
if (!n) return;
|
|
3854
|
-
const s =
|
|
3891
|
+
const s = Nl(n);
|
|
3855
3892
|
let l = [], e = [], a = [];
|
|
3856
|
-
return (o =
|
|
3893
|
+
return (o = Me(s)) == null || o.forEach((r) => {
|
|
3857
3894
|
var p;
|
|
3858
|
-
r.includes("[") ? l.push(
|
|
3895
|
+
r.includes("[") ? l.push(Vs(r)) : r.includes("{") && (Ps((p = r.slice(1, r.length - 1).split(":")) == null ? void 0 : p[0]) ? a.push(JSON.parse(r.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3'))) : $e(r.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3')) ? e.push(JSON.parse(r.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3'))) : r.includes("$"));
|
|
3859
3896
|
}), [l, e, a];
|
|
3860
|
-
},
|
|
3897
|
+
}, zs = (n) => {
|
|
3861
3898
|
const s = [];
|
|
3862
3899
|
let l = "";
|
|
3863
3900
|
for (const e of n)
|
|
3864
3901
|
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, ""));
|
|
3865
3902
|
return s;
|
|
3866
|
-
},
|
|
3903
|
+
}, yl = (n) => {
|
|
3867
3904
|
var r, p;
|
|
3868
3905
|
const s = [], l = /(?:{'([^']+)'[^}]+}: {'([^']+)'[^}]+}|'([^']+)': {'([^']+)'[^}]+})/, e = n.match(l);
|
|
3869
3906
|
if (e) {
|
|
@@ -3875,10 +3912,10 @@ const se = [
|
|
|
3875
3912
|
}
|
|
3876
3913
|
const a = /(https?:\/\/[^\s)]+|Http:\/\/[^\s)]+|\/[^\s)]+)/i, o = n.match(a);
|
|
3877
3914
|
return o ? s.push(o[0].replace(/\)+$/, "")) : (n == null ? void 0 : n.split(",").length) === 2 && s.push((p = (r = n == null ? void 0 : n.split(",")) == null ? void 0 : r[1]) == null ? void 0 : p.trim()), s;
|
|
3878
|
-
},
|
|
3915
|
+
}, He = (n) => {
|
|
3879
3916
|
let s = n.replace(/\[\s*,\s*,/g, '[{"": ""}, {"": ""},');
|
|
3880
3917
|
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, a, o, r) => a.includes("'") ? `:${e}${a}${o}${r}` : `:${e}"${a}"${o}${r}`), s = s.replace(/:\s*([,\]}])/g, ': ""$1'), s;
|
|
3881
|
-
},
|
|
3918
|
+
}, Gs = (n) => !/\[[^\]]*\{[^\]]*\]/.test(n), Ms = (n) => {
|
|
3882
3919
|
const s = c(n).match(/(\w+)\(['"]([^'"]+)['"]:\s*\{['"]([^'"]+)['"]\}\)/), l = s ? `${s[2]}/${s[3]}` : null, e = n.match(/\[\{([^}]+)\}\]/), a = e == null ? void 0 : e[1].replaceAll(":", "").replaceAll("'", '"').trim();
|
|
3883
3920
|
let o = null;
|
|
3884
3921
|
if (a)
|
|
@@ -3888,8 +3925,8 @@ const se = [
|
|
|
3888
3925
|
console.error("解析数组失败:", r);
|
|
3889
3926
|
}
|
|
3890
3927
|
return [l, o];
|
|
3891
|
-
},
|
|
3892
|
-
var p, g, h, f,
|
|
3928
|
+
}, Zs = (n) => {
|
|
3929
|
+
var p, g, h, f, x, C, E, m, B, d, v;
|
|
3893
3930
|
let s = [], l = [], e = {}, a = [], o = n.trim(), r = [];
|
|
3894
3931
|
if (o.trim().includes("输入") && o.trim().includes("输出")) {
|
|
3895
3932
|
let k = [], t = n.trim();
|
|
@@ -3900,14 +3937,14 @@ const se = [
|
|
|
3900
3937
|
const P = u;
|
|
3901
3938
|
let J = [];
|
|
3902
3939
|
(R = P.slice(1, P.length - 1).replace(":", "$:").split("$:")) == null || R.forEach((I) => {
|
|
3903
|
-
var
|
|
3904
|
-
if (
|
|
3940
|
+
var N, O, b;
|
|
3941
|
+
if (js.find((L) => I.includes(L)))
|
|
3905
3942
|
if (!I.includes("=="))
|
|
3906
3943
|
J.push({ key: "tableIndexColumn", contents: I.replaceAll("'", "") });
|
|
3907
3944
|
else {
|
|
3908
3945
|
let L = [];
|
|
3909
|
-
const
|
|
3910
|
-
L.push(
|
|
3946
|
+
const A = I.replaceAll("'", "").split("==");
|
|
3947
|
+
L.push(A == null ? void 0 : A[0]), A != null && A[1].includes("[") ? L.push(A == null ? void 0 : A[1].trim().slice(1, (A == null ? void 0 : A[1].length) - 1).split(",")) : L.push([A == null ? void 0 : A[1]]), J.push({ key: "header", contents: [(O = (N = Ol([L])) == null ? void 0 : N[0]) == null ? void 0 : O[0]] });
|
|
3911
3948
|
}
|
|
3912
3949
|
else {
|
|
3913
3950
|
let L = I.trim().replaceAll(",", ",").replaceAll("'", '"');
|
|
@@ -3920,70 +3957,70 @@ const se = [
|
|
|
3920
3957
|
contents: [{ label: L.slice(1, L.length - 1) }]
|
|
3921
3958
|
});
|
|
3922
3959
|
else if ((L == null ? void 0 : L[0]) === "{") {
|
|
3923
|
-
let
|
|
3960
|
+
let A = [];
|
|
3924
3961
|
const S = L.slice(1, L.length - 1).split(":");
|
|
3925
|
-
if (S.every((
|
|
3926
|
-
|
|
3927
|
-
let
|
|
3928
|
-
S.forEach((
|
|
3962
|
+
if (S.every((D) => $e(D.trim()))) {
|
|
3963
|
+
A.push({ key: "tableContentName", contents: "详情" });
|
|
3964
|
+
let D = [];
|
|
3965
|
+
S.forEach((H, W) => {
|
|
3929
3966
|
if (W === 0) {
|
|
3930
|
-
const
|
|
3931
|
-
|
|
3967
|
+
const X = JSON.parse(H).map((ee) => ({ label: ee }));
|
|
3968
|
+
X.push({
|
|
3932
3969
|
label: "操作"
|
|
3933
|
-
}),
|
|
3970
|
+
}), D.push({
|
|
3934
3971
|
key: "header",
|
|
3935
|
-
contents:
|
|
3972
|
+
contents: X
|
|
3936
3973
|
});
|
|
3937
3974
|
} else
|
|
3938
|
-
|
|
3975
|
+
D.push({
|
|
3939
3976
|
key: "tableContents",
|
|
3940
|
-
contents: JSON.parse(
|
|
3977
|
+
contents: JSON.parse(H)
|
|
3941
3978
|
});
|
|
3942
|
-
}),
|
|
3979
|
+
}), D.push({
|
|
3943
3980
|
key: "extraButton",
|
|
3944
3981
|
contents: [{ label: "新增" }]
|
|
3945
|
-
}),
|
|
3982
|
+
}), D.push({
|
|
3946
3983
|
key: "rowButton",
|
|
3947
3984
|
contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
|
|
3948
|
-
}),
|
|
3985
|
+
}), A.push({
|
|
3949
3986
|
comp: "Table",
|
|
3950
|
-
compData:
|
|
3987
|
+
compData: D,
|
|
3951
3988
|
name: ""
|
|
3952
3989
|
}), k.push({
|
|
3953
3990
|
key: "tableContents",
|
|
3954
|
-
contents: [
|
|
3991
|
+
contents: [A]
|
|
3955
3992
|
});
|
|
3956
3993
|
}
|
|
3957
3994
|
} else {
|
|
3958
|
-
let
|
|
3959
|
-
|
|
3995
|
+
let A = L;
|
|
3996
|
+
A.slice(1, A.length - 1).includes("[") || A.slice(1, A.length - 1).includes("{") ? $e(pl(A.replace(/\s+/g, ""))) && ((b = JSON.parse(pl(A.replace(/\s+/g, "")))) == null || b.map((S) => {
|
|
3960
3997
|
if (Array.isArray(S == null ? void 0 : S[0])) {
|
|
3961
|
-
const
|
|
3962
|
-
|
|
3963
|
-
let
|
|
3998
|
+
const D = [];
|
|
3999
|
+
D.push({ key: "tableContentName", contents: "详情" });
|
|
4000
|
+
let H = [];
|
|
3964
4001
|
S.forEach((W) => {
|
|
3965
|
-
W.forEach((
|
|
3966
|
-
var
|
|
3967
|
-
|
|
3968
|
-
id:
|
|
3969
|
-
key: (
|
|
3970
|
-
value: (oe = Object.values(
|
|
4002
|
+
W.forEach((X) => {
|
|
4003
|
+
var ee, oe;
|
|
4004
|
+
hl.value++, H.push({
|
|
4005
|
+
id: hl.value,
|
|
4006
|
+
key: (ee = Object.keys(X)) == null ? void 0 : ee[0],
|
|
4007
|
+
value: (oe = Object.values(X)) == null ? void 0 : oe[0],
|
|
3971
4008
|
width: W.length
|
|
3972
4009
|
});
|
|
3973
4010
|
});
|
|
3974
|
-
}),
|
|
4011
|
+
}), D.push({
|
|
3975
4012
|
comp: "Form",
|
|
3976
4013
|
compData: [{
|
|
3977
4014
|
key: "formFlex",
|
|
3978
4015
|
contents: ""
|
|
3979
4016
|
}, {
|
|
3980
4017
|
key: "formContent",
|
|
3981
|
-
contents:
|
|
4018
|
+
contents: H
|
|
3982
4019
|
}],
|
|
3983
4020
|
name: ""
|
|
3984
4021
|
}), k.push({
|
|
3985
4022
|
key: "tableContents",
|
|
3986
|
-
contents: [
|
|
4023
|
+
contents: [D]
|
|
3987
4024
|
});
|
|
3988
4025
|
} else
|
|
3989
4026
|
k.push({
|
|
@@ -3992,14 +4029,14 @@ const se = [
|
|
|
3992
4029
|
});
|
|
3993
4030
|
})) : k.push({
|
|
3994
4031
|
key: "tableContents",
|
|
3995
|
-
contents:
|
|
4032
|
+
contents: A.trim().slice(1, A.length - 1)
|
|
3996
4033
|
});
|
|
3997
4034
|
}
|
|
3998
4035
|
}
|
|
3999
4036
|
}), k.push(J == null ? void 0 : J[0]);
|
|
4000
4037
|
}), r.push({
|
|
4001
4038
|
key: "tableIndex",
|
|
4002
|
-
contents: (
|
|
4039
|
+
contents: (B = k == null ? void 0 : k.filter((u) => (u == null ? void 0 : u.key) === "tableIndex")) == null ? void 0 : B.map((u) => {
|
|
4003
4040
|
var y;
|
|
4004
4041
|
return (y = u.contents) == null ? void 0 : y[0];
|
|
4005
4042
|
})
|
|
@@ -4014,10 +4051,10 @@ const se = [
|
|
|
4014
4051
|
contents: (v = (d = k == null ? void 0 : k.filter((u) => (u == null ? void 0 : u.key) === "tableIndexColumn")) == null ? void 0 : d[0]) == null ? void 0 : v.contents
|
|
4015
4052
|
}), r.push({
|
|
4016
4053
|
key: "header",
|
|
4017
|
-
contents:
|
|
4054
|
+
contents: fl(k == null ? void 0 : k.filter((u) => (u == null ? void 0 : u.key) === "header"))
|
|
4018
4055
|
}), r.push({
|
|
4019
4056
|
key: "tableContents",
|
|
4020
|
-
contents:
|
|
4057
|
+
contents: Ls(k == null ? void 0 : k.filter((u) => (u == null ? void 0 : u.key) === "tableContents"), fl(k == null ? void 0 : k.filter((u) => (u == null ? void 0 : u.key) === "header")))
|
|
4021
4058
|
});
|
|
4022
4059
|
} else {
|
|
4023
4060
|
const k = (p = o.trim().split(",$")) == null ? void 0 : p[0];
|
|
@@ -4026,44 +4063,44 @@ const se = [
|
|
|
4026
4063
|
if (o.includes("$")) {
|
|
4027
4064
|
o = c(o), e.method = (f = (h = c(o).trim()) == null ? void 0 : h.slice(1, o.length).split("(")) == null ? void 0 : f[0];
|
|
4028
4065
|
let i;
|
|
4029
|
-
|
|
4066
|
+
yl(o.slice(1, o.length - 2)).length > 1 ? i = yl(o.slice(1, o.length - 2)) : i = Ms(o), e.value = i;
|
|
4030
4067
|
} else
|
|
4031
|
-
|
|
4068
|
+
$e("[" + He(o).replaceAll("'", '"') + "]") && !Gs(He(o).replaceAll("'", '"')) ? (o = JSON.parse("[" + He(o).replaceAll("'", '"') + "]"), a = o) : t = (C = (x = c(o).split("}")) == null ? void 0 : x.filter((i) => i !== "")) == null ? void 0 : C.map((i) => {
|
|
4032
4069
|
let u = i;
|
|
4033
4070
|
return u[0] === "," ? u = u.slice(2, u.length) : u = u.slice(1, u.length), u;
|
|
4034
4071
|
});
|
|
4035
|
-
(
|
|
4036
|
-
var u, y, P, J, R, I,
|
|
4072
|
+
(E = c(t)) == null || E.forEach((i) => {
|
|
4073
|
+
var u, y, P, J, R, I, N, O, b, L, A, S, D, H, W;
|
|
4037
4074
|
if (i.includes("==")) {
|
|
4038
|
-
const
|
|
4039
|
-
if (
|
|
4075
|
+
const X = (S = i == null ? void 0 : i.split(":")) == null ? void 0 : S[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"').replaceAll("'", '"'), ee = (D = i == null ? void 0 : i.split(":")) == null ? void 0 : D[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"');
|
|
4076
|
+
if ($e(ee.trim()) ? l.push(JSON.parse(ee.trim())) : l.push(JSON.parse(ee.replaceAll("'", '"').trim())), X[0] !== "[") {
|
|
4040
4077
|
let oe = [];
|
|
4041
|
-
|
|
4042
|
-
const
|
|
4043
|
-
|
|
4078
|
+
$e("[" + Ue(X) + "]") ? oe.push(JSON.parse("[" + Ue(X) + "]")) : $e("[" + Ue(X).replaceAll("==", ",") + "]") && oe.push(JSON.parse("[" + Ue(X).replaceAll("==", ",") + "]"));
|
|
4079
|
+
const de = c(oe);
|
|
4080
|
+
de.push(["操作"]), s.push(de);
|
|
4044
4081
|
} else {
|
|
4045
|
-
const oe = (
|
|
4046
|
-
let
|
|
4047
|
-
|
|
4048
|
-
var
|
|
4049
|
-
let
|
|
4050
|
-
|
|
4082
|
+
const oe = (H = X.slice(1, X.length - 1).replaceAll(",", ",|")) == null ? void 0 : H.split("|"), de = (W = zs(oe)) == null ? void 0 : W.map((se) => ((se == null ? void 0 : se[se.length - 1]) === "," && (se = se.slice(0, se.length - 1)), se));
|
|
4083
|
+
let fe = [];
|
|
4084
|
+
de == null || de.forEach((se) => {
|
|
4085
|
+
var he, re, w, _;
|
|
4086
|
+
let me = [];
|
|
4087
|
+
me.push((he = se.split("==")) == null ? void 0 : he[0].trim().replace(/^"|"$/g, "")), ((re = se.split("==")) == null ? void 0 : re[1].trim()[0]) === "[" ? me.push(JSON.parse((w = se.split("==")) == null ? void 0 : w[1].trim())) : me.push([JSON.parse((_ = se.split("==")) == null ? void 0 : _[1].trim())]), fe.push(me);
|
|
4051
4088
|
});
|
|
4052
|
-
const
|
|
4053
|
-
|
|
4089
|
+
const ge = c(fe);
|
|
4090
|
+
ge.push(["操作"]), s.push(ge);
|
|
4054
4091
|
}
|
|
4055
4092
|
} else {
|
|
4056
|
-
if (
|
|
4057
|
-
let
|
|
4058
|
-
Array.isArray(
|
|
4093
|
+
if ($e((u = i == null ? void 0 : i.split(":")) == null ? void 0 : u[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"').replaceAll("'", '"'))) {
|
|
4094
|
+
let X = JSON.parse((y = i == null ? void 0 : i.split(":")) == null ? void 0 : y[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"').replaceAll("'", '"'));
|
|
4095
|
+
Array.isArray(X) || (X = [X]), X.push("操作"), s.push(X);
|
|
4059
4096
|
}
|
|
4060
|
-
|
|
4097
|
+
$e((R = (J = (P = i == null ? void 0 : i.split(":")) == null ? void 0 : P[1]) == null ? void 0 : J.replace(/^"|"$/g, "'")) == null ? void 0 : R.replace(/'([^']+)'/g, '"$1"')) ? l.push(JSON.parse((I = i == null ? void 0 : i.split(":")) == null ? void 0 : I[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"'))) : $e((L = (b = (O = (N = i == null ? void 0 : i.split(":")) == null ? void 0 : N[1]) == null ? void 0 : O.replace(/^"|"$/g, "'")) == null ? void 0 : b.replaceAll("'", '"')) == null ? void 0 : L.replace(/'([^']+)'/g, '"$1"')) && l.push(JSON.parse((A = i == null ? void 0 : i.split(":")) == null ? void 0 : A[1].replace(/^"|"$/g, "'").replaceAll("'", '"').replace(/'([^']+)'/g, '"$1"')));
|
|
4061
4098
|
}
|
|
4062
4099
|
});
|
|
4063
4100
|
}
|
|
4064
4101
|
return [s, l, r, e, a];
|
|
4065
|
-
},
|
|
4066
|
-
const s = [], l =
|
|
4102
|
+
}, Hs = (n) => {
|
|
4103
|
+
const s = [], l = Js(n == null ? void 0 : n.key), e = Ws(n == null ? void 0 : n.key), a = Zs(n == null ? void 0 : n.value), o = e == null ? void 0 : e[0], r = a == null ? void 0 : a[4], p = e == null ? void 0 : e[1], g = e == null ? void 0 : e[2], h = a == null ? void 0 : a[0], f = a == null ? void 0 : a[1], x = a == null ? void 0 : a[2], C = a == null ? void 0 : a[3];
|
|
4067
4104
|
return l && s.push({
|
|
4068
4105
|
key: "contentPath",
|
|
4069
4106
|
value: l
|
|
@@ -4082,9 +4119,9 @@ const se = [
|
|
|
4082
4119
|
}), (g == null ? void 0 : g.length) > 0 && s.push({
|
|
4083
4120
|
key: "extra",
|
|
4084
4121
|
value: g
|
|
4085
|
-
}), (
|
|
4122
|
+
}), (x == null ? void 0 : x.length) > 0 && s.push({
|
|
4086
4123
|
comp: "Table",
|
|
4087
|
-
compData:
|
|
4124
|
+
compData: x,
|
|
4088
4125
|
name: ""
|
|
4089
4126
|
}), (h == null ? void 0 : h.length) > 0 && s.push({
|
|
4090
4127
|
key: "tableColumns",
|
|
@@ -4093,7 +4130,7 @@ const se = [
|
|
|
4093
4130
|
key: "tableContents",
|
|
4094
4131
|
value: f
|
|
4095
4132
|
}), s;
|
|
4096
|
-
},
|
|
4133
|
+
}, Ks = (n) => {
|
|
4097
4134
|
let s = [], l = [];
|
|
4098
4135
|
n == null || n.forEach((a) => {
|
|
4099
4136
|
Array.isArray(a) && (a == null || a.forEach((o) => {
|
|
@@ -4130,11 +4167,11 @@ const se = [
|
|
|
4130
4167
|
} else
|
|
4131
4168
|
a.comp !== "FormTop" && s.push(a);
|
|
4132
4169
|
}), s;
|
|
4133
|
-
},
|
|
4170
|
+
}, qs = (n, s) => {
|
|
4134
4171
|
const l = s.split("/");
|
|
4135
4172
|
let e = [];
|
|
4136
4173
|
return n == null || n.forEach((a) => {
|
|
4137
|
-
var p, g, h, f,
|
|
4174
|
+
var p, g, h, f, x, C, E, m, B, d, v;
|
|
4138
4175
|
const o = [], r = (g = (p = a.find((k) => k.key === "tableIndex")) == null ? void 0 : p.value) == null ? void 0 : g[0];
|
|
4139
4176
|
if (r && !r.some((k) => Array.isArray(k))) {
|
|
4140
4177
|
const k = (f = (h = a.find((t) => t.key === "tableColumns")) == null ? void 0 : h.value) == null ? void 0 : f[0];
|
|
@@ -4152,13 +4189,13 @@ const se = [
|
|
|
4152
4189
|
contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
|
|
4153
4190
|
}), Array.isArray(k) && k.some((t) => Array.isArray(t)) ? o.push({
|
|
4154
4191
|
key: "header",
|
|
4155
|
-
contents:
|
|
4192
|
+
contents: Ol(k)
|
|
4156
4193
|
}) : o.push({
|
|
4157
4194
|
key: "header",
|
|
4158
4195
|
contents: Array.isArray(k) ? k == null ? void 0 : k.map((t) => ({ label: t })) : [k].map((t) => ({ label: t }))
|
|
4159
4196
|
}), o.push({
|
|
4160
4197
|
key: "tableContents",
|
|
4161
|
-
contents: Array.isArray(k) ? (C = (
|
|
4198
|
+
contents: Array.isArray(k) ? (C = (x = a.find((t) => t.key === "tableContents")) == null ? void 0 : x.value) == null ? void 0 : C[0] : (B = (m = (E = a.find((t) => t.key === "tableContents")) == null ? void 0 : E.value) == null ? void 0 : m[0]) == null ? void 0 : B.map((t) => [t])
|
|
4162
4199
|
}), e.push({
|
|
4163
4200
|
comp: "Table",
|
|
4164
4201
|
name: "",
|
|
@@ -4172,7 +4209,7 @@ const se = [
|
|
|
4172
4209
|
},
|
|
4173
4210
|
{
|
|
4174
4211
|
key: "formContent",
|
|
4175
|
-
contents:
|
|
4212
|
+
contents: ze([(d = a == null ? void 0 : a.find((t) => (t == null ? void 0 : t.key) === "formTop")) == null ? void 0 : d.value])
|
|
4176
4213
|
},
|
|
4177
4214
|
{
|
|
4178
4215
|
key: "enableWrap",
|
|
@@ -4192,7 +4229,7 @@ const se = [
|
|
|
4192
4229
|
} else r ? (e.push({
|
|
4193
4230
|
comp: "Table",
|
|
4194
4231
|
name: "",
|
|
4195
|
-
compData:
|
|
4232
|
+
compData: Fs(a, l[l.length - 1])
|
|
4196
4233
|
}), a != null && a.find((k) => (k == null ? void 0 : k.key) === "formTop") && e.push({
|
|
4197
4234
|
comp: "FormTop",
|
|
4198
4235
|
compData: [
|
|
@@ -4202,7 +4239,7 @@ const se = [
|
|
|
4202
4239
|
},
|
|
4203
4240
|
{
|
|
4204
4241
|
key: "formContent",
|
|
4205
|
-
contents:
|
|
4242
|
+
contents: ze([(v = a == null ? void 0 : a.find((k) => (k == null ? void 0 : k.key) === "formTop")) == null ? void 0 : v.value])
|
|
4206
4243
|
},
|
|
4207
4244
|
{
|
|
4208
4245
|
key: "enableWrap",
|
|
@@ -4221,21 +4258,21 @@ const se = [
|
|
|
4221
4258
|
})) : a.some((k) => k.key === "extra") ? e.push({
|
|
4222
4259
|
comp: "calculator",
|
|
4223
4260
|
name: "",
|
|
4224
|
-
compData:
|
|
4225
|
-
}) : e.push(
|
|
4226
|
-
}),
|
|
4227
|
-
},
|
|
4261
|
+
compData: dl(a)
|
|
4262
|
+
}) : e.push(dl(a));
|
|
4263
|
+
}), Ks(e);
|
|
4264
|
+
}, Qs = (n, s) => {
|
|
4228
4265
|
var a, o;
|
|
4229
4266
|
const l = n.map((r) => r.filter((p) => p.key !== "contentPath"));
|
|
4230
4267
|
return {
|
|
4231
4268
|
comp: "Group",
|
|
4232
4269
|
compData: [{
|
|
4233
|
-
contents:
|
|
4270
|
+
contents: qs(l, s),
|
|
4234
4271
|
key: "groupContents"
|
|
4235
4272
|
}],
|
|
4236
4273
|
name: (o = (a = n[0]) == null ? void 0 : a.find((r) => r.key === "contentPath")) == null ? void 0 : o.value
|
|
4237
4274
|
};
|
|
4238
|
-
},
|
|
4275
|
+
}, Xs = (n) => {
|
|
4239
4276
|
var a;
|
|
4240
4277
|
const s = [], l = c(n).map((o) => {
|
|
4241
4278
|
var r;
|
|
@@ -4244,66 +4281,66 @@ const se = [
|
|
|
4244
4281
|
}).filter((o) => o !== ""), e = [...new Set(l)];
|
|
4245
4282
|
return (a = e == null ? void 0 : e.filter((o) => o)) == null || a.forEach((o) => {
|
|
4246
4283
|
var r;
|
|
4247
|
-
s.push(
|
|
4284
|
+
s.push(Qs((r = c(n)) == null ? void 0 : r.filter((p) => p.find((g) => g.key === "contentPath" && g.value === o)), o));
|
|
4248
4285
|
}), s;
|
|
4249
|
-
},
|
|
4286
|
+
}, Ys = (n) => {
|
|
4250
4287
|
let s = [];
|
|
4251
4288
|
s.push({
|
|
4252
4289
|
comp: "Menu",
|
|
4253
4290
|
compData: [{
|
|
4254
|
-
contents:
|
|
4291
|
+
contents: Rs(c(n)),
|
|
4255
4292
|
key: "menuContents"
|
|
4256
4293
|
}],
|
|
4257
4294
|
name: ""
|
|
4258
4295
|
});
|
|
4259
|
-
const l = n.map((e) =>
|
|
4260
|
-
return s = [...s, ...
|
|
4261
|
-
},
|
|
4296
|
+
const l = n.map((e) => Hs(e)).filter((e) => e.length !== 0);
|
|
4297
|
+
return s = [...s, ...Xs(l)], s;
|
|
4298
|
+
}, bo = (n) => {
|
|
4262
4299
|
var s, l, e, a, o;
|
|
4263
4300
|
try {
|
|
4264
|
-
const r = (e =
|
|
4265
|
-
return
|
|
4301
|
+
const r = (e = ll((l = (s = c(n)) == null ? void 0 : s.replace("(", "(")) == null ? void 0 : l.replace(")", ")"))) == null ? void 0 : e.filter((h) => h !== ""), p = (o = (a = c(r)) == null ? void 0 : a.filter((h) => !h.includes("/*"))) == null ? void 0 : o.map((h) => Us(h));
|
|
4302
|
+
return Ys(p);
|
|
4266
4303
|
} catch {
|
|
4267
4304
|
return !1;
|
|
4268
4305
|
}
|
|
4269
|
-
},
|
|
4306
|
+
}, Pe = U(0), Ke = U(0), eo = (n) => {
|
|
4270
4307
|
const s = n.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 = {};
|
|
4271
4308
|
let a;
|
|
4272
4309
|
for (; (a = l.exec(s)) !== null; ) {
|
|
4273
4310
|
const o = a[1];
|
|
4274
4311
|
let r = a[2].trim();
|
|
4275
|
-
(r.match(/\[/g) || []).length !== (r.match(/\]/g) || []).length && (r = r == null ? void 0 : r.replace(/]$/, "")), e[o] ? (e[o +
|
|
4312
|
+
(r.match(/\[/g) || []).length !== (r.match(/\]/g) || []).length && (r = r == null ? void 0 : r.replace(/]$/, "")), e[o] ? (e[o + Ke.value] && Ke.value++, e[o + Ke.value] = o + "=" + r) : e[o] = o + "=" + r;
|
|
4276
4313
|
}
|
|
4277
4314
|
return e;
|
|
4278
|
-
},
|
|
4315
|
+
}, Sl = (n) => {
|
|
4279
4316
|
const [s, l] = n.split("=").map((o) => o.trim()), e = s.replace(/['"]/g, ""), a = l.replace(/^['"]|['"]$/g, "");
|
|
4280
4317
|
return { key: e, value: a };
|
|
4281
|
-
},
|
|
4318
|
+
}, lo = (n) => {
|
|
4282
4319
|
var r;
|
|
4283
4320
|
let s = [];
|
|
4284
4321
|
const [l, e] = n.split(/=(.+)/), a = l.replace(/['"]/g, "").trim(), o = e.replace(/^['"]|['"]$/g, "");
|
|
4285
|
-
return (r = Object.values(
|
|
4286
|
-
s.push(
|
|
4322
|
+
return (r = Object.values(eo(o))) == null || r.forEach((p) => {
|
|
4323
|
+
s.push(Sl(p));
|
|
4287
4324
|
}), { key: a, value: s };
|
|
4288
|
-
},
|
|
4325
|
+
}, Ve = (n) => {
|
|
4289
4326
|
try {
|
|
4290
4327
|
return JSON.parse(n), !0;
|
|
4291
4328
|
} catch {
|
|
4292
4329
|
return !1;
|
|
4293
4330
|
}
|
|
4294
|
-
},
|
|
4331
|
+
}, Ll = (n) => {
|
|
4295
4332
|
try {
|
|
4296
4333
|
const s = n.replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",").replace(/:/g, ":").replace(/:\s*(?=,|}|$)/g, ': ""');
|
|
4297
4334
|
if (c(s).split("{").length - 1 > 1) {
|
|
4298
4335
|
let l = c(s).replace(/^\{(.*)\}$/, "[$1]");
|
|
4299
|
-
if (
|
|
4336
|
+
if (Ve(l) && !l.includes("$") || (l = l.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g, '"$1$$$2"')), Ve(l)) {
|
|
4300
4337
|
const e = JSON.parse(l);
|
|
4301
4338
|
let a = [];
|
|
4302
4339
|
return e == null || e.forEach((o) => {
|
|
4303
4340
|
var r;
|
|
4304
4341
|
(r = Object.entries(c(o))) == null || r.forEach((p) => {
|
|
4305
|
-
|
|
4306
|
-
id:
|
|
4342
|
+
Pe.value++, a.push({
|
|
4343
|
+
id: Pe.value,
|
|
4307
4344
|
key: (p == null ? void 0 : p[0]) ?? "",
|
|
4308
4345
|
value: (p == null ? void 0 : p[1]) === "" ? "" : p == null ? void 0 : p[1],
|
|
4309
4346
|
// 如果值为空,则key设为空字符串,否则保留原值
|
|
@@ -4313,10 +4350,10 @@ const se = [
|
|
|
4313
4350
|
}), a;
|
|
4314
4351
|
} else
|
|
4315
4352
|
return console.error("转换类型不正确:"), [];
|
|
4316
|
-
} else if (
|
|
4353
|
+
} else if (Ve(s)) {
|
|
4317
4354
|
const l = JSON.parse(s);
|
|
4318
|
-
return Object.entries(l).map(([e, a]) => (
|
|
4319
|
-
id:
|
|
4355
|
+
return Object.entries(l).map(([e, a]) => (Pe.value++, {
|
|
4356
|
+
id: Pe.value,
|
|
4320
4357
|
key: e,
|
|
4321
4358
|
value: a === "" ? "" : a,
|
|
4322
4359
|
// 如果值为空,则key设为空字符串,否则保留原值
|
|
@@ -4327,25 +4364,25 @@ const se = [
|
|
|
4327
4364
|
} catch (s) {
|
|
4328
4365
|
return console.error("转换失败:", s), [];
|
|
4329
4366
|
}
|
|
4330
|
-
},
|
|
4367
|
+
}, no = (n, s) => {
|
|
4331
4368
|
try {
|
|
4332
|
-
if (
|
|
4369
|
+
if (ae != null && ae.find((l) => (l == null ? void 0 : l.key) === s))
|
|
4333
4370
|
return JSON.parse(n.replace(/[’]|[‘]|[']/g, '"'));
|
|
4334
4371
|
if (c(n).split("[").length - 1 > 1) {
|
|
4335
4372
|
const l = c(n).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
|
|
4336
4373
|
return JSON.parse(l);
|
|
4337
4374
|
} else {
|
|
4338
4375
|
const l = c(n).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",");
|
|
4339
|
-
if (
|
|
4376
|
+
if (Ve(l)) {
|
|
4340
4377
|
const e = JSON.parse(l);
|
|
4341
4378
|
return Array.isArray(e) ? e.map((a) => ({ label: a })) : e;
|
|
4342
4379
|
} else
|
|
4343
|
-
return
|
|
4380
|
+
return Ll(c(n));
|
|
4344
4381
|
}
|
|
4345
4382
|
} catch (l) {
|
|
4346
4383
|
return console.error("解析失败:", l), n;
|
|
4347
4384
|
}
|
|
4348
|
-
},
|
|
4385
|
+
}, ao = (n) => ({ [n == null ? void 0 : n.key]: no(n == null ? void 0 : n.value, n == null ? void 0 : n.key) }), so = (n) => {
|
|
4349
4386
|
try {
|
|
4350
4387
|
if (c(n).split("[").length - 1 > 1) {
|
|
4351
4388
|
const s = c(n).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
|
|
@@ -4355,122 +4392,122 @@ const se = [
|
|
|
4355
4392
|
} catch (s) {
|
|
4356
4393
|
return console.error("解析失败:", s), n;
|
|
4357
4394
|
}
|
|
4358
|
-
},
|
|
4395
|
+
}, jl = (n) => {
|
|
4359
4396
|
var s, l, e, a, o, r;
|
|
4360
4397
|
try {
|
|
4361
|
-
const p =
|
|
4362
|
-
var
|
|
4363
|
-
let C = (m = (
|
|
4364
|
-
return C != null && C.includes("GroupContents") ?
|
|
4398
|
+
const p = ll((l = (s = c(n)) == null ? void 0 : s.replace("(", "(")) == null ? void 0 : l.replace(")", ")")), g = (e = c(p)) == null ? void 0 : e.map((x) => {
|
|
4399
|
+
var E, m;
|
|
4400
|
+
let C = (m = (E = c(x)) == null ? void 0 : E.split("=")) == null ? void 0 : m[0];
|
|
4401
|
+
return C != null && C.includes("GroupContents") ? lo(x) : Sl(x);
|
|
4365
4402
|
}), h = [];
|
|
4366
|
-
(a = c(g)) == null || a.forEach((
|
|
4367
|
-
var C,
|
|
4368
|
-
|
|
4403
|
+
(a = c(g)) == null || a.forEach((x) => {
|
|
4404
|
+
var C, E, m, B, d;
|
|
4405
|
+
ae != null && ae.find((v) => {
|
|
4369
4406
|
var k, t;
|
|
4370
|
-
return ((k = v == null ? void 0 : v.key) == null ? void 0 : k.toUpperCase()) === ((t =
|
|
4407
|
+
return ((k = v == null ? void 0 : v.key) == null ? void 0 : k.toUpperCase()) === ((t = x == null ? void 0 : x.key) == null ? void 0 : t.toUpperCase());
|
|
4371
4408
|
}) ? h.push({
|
|
4372
|
-
comp: ((C =
|
|
4409
|
+
comp: ((C = ae == null ? void 0 : ae.find((v) => {
|
|
4373
4410
|
var k, t;
|
|
4374
|
-
return ((k = v == null ? void 0 : v.key) == null ? void 0 : k.toUpperCase()) === ((t =
|
|
4411
|
+
return ((k = v == null ? void 0 : v.key) == null ? void 0 : k.toUpperCase()) === ((t = x == null ? void 0 : x.key) == null ? void 0 : t.toUpperCase());
|
|
4375
4412
|
})) == null ? void 0 : C.value) ?? "",
|
|
4376
|
-
name: (
|
|
4413
|
+
name: (E = x == null ? void 0 : x.value) == null ? void 0 : E.replace(/[’]|[‘]|[']/g, ""),
|
|
4377
4414
|
compData: []
|
|
4378
|
-
}) :
|
|
4415
|
+
}) : ne != null && ne.find((v) => {
|
|
4379
4416
|
var k, t;
|
|
4380
|
-
return ((k = v == null ? void 0 : v.key) == null ? void 0 : k.toUpperCase()) === ((t =
|
|
4381
|
-
}) && ((h == null ? void 0 : h.length) === 0 && (m =
|
|
4417
|
+
return ((k = v == null ? void 0 : v.key) == null ? void 0 : k.toUpperCase()) === ((t = x == null ? void 0 : x.key) == null ? void 0 : t.toUpperCase());
|
|
4418
|
+
}) && ((h == null ? void 0 : h.length) === 0 && (m = x.key) != null && m.includes("Menus") && h.push({
|
|
4382
4419
|
comp: "Menu",
|
|
4383
4420
|
name: "",
|
|
4384
4421
|
compData: []
|
|
4385
|
-
}), (
|
|
4386
|
-
key: (d =
|
|
4422
|
+
}), (B = h == null ? void 0 : h[(h == null ? void 0 : h.length) - 1]) != null && B.compData && h[(h == null ? void 0 : h.length) - 1].compData.push({
|
|
4423
|
+
key: (d = ne == null ? void 0 : ne.find((v) => {
|
|
4387
4424
|
var k, t;
|
|
4388
|
-
return ((k = v == null ? void 0 : v.key) == null ? void 0 : k.toUpperCase()) === ((t =
|
|
4425
|
+
return ((k = v == null ? void 0 : v.key) == null ? void 0 : k.toUpperCase()) === ((t = x == null ? void 0 : x.key) == null ? void 0 : t.toUpperCase());
|
|
4389
4426
|
})) == null ? void 0 : d.value,
|
|
4390
|
-
contents:
|
|
4427
|
+
contents: x == null ? void 0 : x.value
|
|
4391
4428
|
}));
|
|
4392
4429
|
}), console.log("newContents", h);
|
|
4393
|
-
let f = (o = c(h)) == null ? void 0 : o.map((
|
|
4430
|
+
let f = (o = c(h)) == null ? void 0 : o.map((x) => {
|
|
4394
4431
|
var C;
|
|
4395
|
-
return
|
|
4396
|
-
var m,
|
|
4397
|
-
if ((
|
|
4398
|
-
|
|
4399
|
-
else if ((
|
|
4400
|
-
|
|
4401
|
-
else if (((k = (v =
|
|
4402
|
-
|
|
4432
|
+
return x != null && x.compData && (x.compData = (C = x == null ? void 0 : x.compData) == null ? void 0 : C.map((E) => {
|
|
4433
|
+
var m, B, d, v, k, t, i, u, y, P, J;
|
|
4434
|
+
if ((E == null ? void 0 : E.key) === "formFlex")
|
|
4435
|
+
E.contents = ((B = (m = E.contents) == null ? void 0 : m.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : B.toUpperCase()) !== "Vertical".toUpperCase();
|
|
4436
|
+
else if ((E == null ? void 0 : E.key) === "groupContents")
|
|
4437
|
+
E.contents = (d = c(E.contents)) == null ? void 0 : d.map((R) => ao(c(R)));
|
|
4438
|
+
else if (((k = (v = E.contents) == null ? void 0 : v.trim()) != null && k.startsWith("[") || (i = (t = E.contents) == null ? void 0 : t.trim()) != null && i.startsWith("【")) && ((y = (u = E.contents) == null ? void 0 : u.trim()) != null && y.endsWith("]") || (J = (P = E.contents) == null ? void 0 : P.trim()) != null && J.endsWith("】")))
|
|
4439
|
+
E.contents = so(c(E.contents));
|
|
4403
4440
|
else {
|
|
4404
|
-
if (!
|
|
4405
|
-
|
|
4441
|
+
if (!E.contents) return;
|
|
4442
|
+
E.contents = Ll(c(E.contents));
|
|
4406
4443
|
}
|
|
4407
|
-
return
|
|
4408
|
-
})),
|
|
4444
|
+
return E;
|
|
4445
|
+
})), x;
|
|
4409
4446
|
});
|
|
4410
|
-
return f = (r = c(f)) == null ? void 0 : r.map((
|
|
4447
|
+
return f = (r = c(f)) == null ? void 0 : r.map((x) => {
|
|
4411
4448
|
var C;
|
|
4412
|
-
return (
|
|
4413
|
-
var
|
|
4449
|
+
return (x == null ? void 0 : x.comp) === "Group" && (x.compData = (C = x.compData) == null ? void 0 : C.map((E) => {
|
|
4450
|
+
var B;
|
|
4414
4451
|
let m = [];
|
|
4415
|
-
return (
|
|
4416
|
-
var v, k, t, i, u, y, P, J, R, I,
|
|
4417
|
-
if (
|
|
4418
|
-
var L,
|
|
4419
|
-
return ((L = b == null ? void 0 : b.key) == null ? void 0 : L.toUpperCase()) === ((S = (
|
|
4452
|
+
return (B = E.contents) == null || B.forEach((d) => {
|
|
4453
|
+
var v, k, t, i, u, y, P, J, R, I, N, O;
|
|
4454
|
+
if (ae != null && ae.find((b) => {
|
|
4455
|
+
var L, A, S;
|
|
4456
|
+
return ((L = b == null ? void 0 : b.key) == null ? void 0 : L.toUpperCase()) === ((S = (A = Object.keys(d)) == null ? void 0 : A[0]) == null ? void 0 : S.toUpperCase());
|
|
4420
4457
|
}))
|
|
4421
4458
|
m.push({
|
|
4422
|
-
comp: (v =
|
|
4423
|
-
var L,
|
|
4424
|
-
return ((L = b == null ? void 0 : b.key) == null ? void 0 : L.toUpperCase()) === ((S = (
|
|
4459
|
+
comp: (v = ae == null ? void 0 : ae.find((b) => {
|
|
4460
|
+
var L, A, S;
|
|
4461
|
+
return ((L = b == null ? void 0 : b.key) == null ? void 0 : L.toUpperCase()) === ((S = (A = Object.keys(d)) == null ? void 0 : A[0]) == null ? void 0 : S.toUpperCase());
|
|
4425
4462
|
})) == null ? void 0 : v.value,
|
|
4426
4463
|
name: (t = (k = Object.values(d)) == null ? void 0 : k[0]) == null ? void 0 : t.replace(/[’]|[‘]|[']/g, ""),
|
|
4427
4464
|
compData: []
|
|
4428
4465
|
});
|
|
4429
|
-
else if (
|
|
4430
|
-
var L,
|
|
4431
|
-
return ((L = b == null ? void 0 : b.key) == null ? void 0 : L.toUpperCase()) === ((S = (
|
|
4466
|
+
else if (ne != null && ne.find((b) => {
|
|
4467
|
+
var L, A, S;
|
|
4468
|
+
return ((L = b == null ? void 0 : b.key) == null ? void 0 : L.toUpperCase()) === ((S = (A = Object.keys(d)) == null ? void 0 : A[0]) == null ? void 0 : S.toUpperCase());
|
|
4432
4469
|
})) {
|
|
4433
4470
|
if ((m == null ? void 0 : m.length) === 0) return;
|
|
4434
4471
|
(i = m == null ? void 0 : m[(m == null ? void 0 : m.length) - 1]) != null && i.compData && m[(m == null ? void 0 : m.length) - 1].compData.push({
|
|
4435
|
-
key: (u =
|
|
4436
|
-
var L,
|
|
4437
|
-
return ((L = b == null ? void 0 : b.key) == null ? void 0 : L.toUpperCase()) === ((S = (
|
|
4472
|
+
key: (u = ne == null ? void 0 : ne.find((b) => {
|
|
4473
|
+
var L, A, S;
|
|
4474
|
+
return ((L = b == null ? void 0 : b.key) == null ? void 0 : L.toUpperCase()) === ((S = (A = Object.keys(d)) == null ? void 0 : A[0]) == null ? void 0 : S.toUpperCase());
|
|
4438
4475
|
})) == null ? void 0 : u.value,
|
|
4439
4476
|
contents: (y = Object.values(d)) == null ? void 0 : y[0]
|
|
4440
4477
|
});
|
|
4441
4478
|
} else if ((J = (P = Object.keys(d)) == null ? void 0 : P[0]) != null && J.includes("$")) {
|
|
4442
4479
|
const b = (I = (R = Object.keys(c(d))) == null ? void 0 : R[0]) == null ? void 0 : I.split("$");
|
|
4443
4480
|
m[(m == null ? void 0 : m.length) - 1].compData.push({
|
|
4444
|
-
key: (
|
|
4445
|
-
var
|
|
4446
|
-
return ((
|
|
4447
|
-
})) == null ? void 0 :
|
|
4448
|
-
contents: (
|
|
4481
|
+
key: (N = ne == null ? void 0 : ne.find((L) => {
|
|
4482
|
+
var A, S;
|
|
4483
|
+
return ((A = L == null ? void 0 : L.key) == null ? void 0 : A.toUpperCase()) === ((S = b == null ? void 0 : b[0]) == null ? void 0 : S.toUpperCase());
|
|
4484
|
+
})) == null ? void 0 : N.value,
|
|
4485
|
+
contents: (O = Object.values(d)) == null ? void 0 : O[0],
|
|
4449
4486
|
selectLabel: b == null ? void 0 : b[1]
|
|
4450
4487
|
});
|
|
4451
4488
|
}
|
|
4452
4489
|
return d;
|
|
4453
|
-
}),
|
|
4454
|
-
})),
|
|
4490
|
+
}), E.contents = m, E;
|
|
4491
|
+
})), x;
|
|
4455
4492
|
}), f;
|
|
4456
4493
|
} catch {
|
|
4457
4494
|
return !1;
|
|
4458
4495
|
}
|
|
4459
|
-
},
|
|
4496
|
+
}, go = (n) => jl(n), ko = (n) => !!jl(n), Ne = U(0), Co = (n) => n.reduce((l, e) => {
|
|
4460
4497
|
var o, r;
|
|
4461
4498
|
const a = Object.values(l);
|
|
4462
|
-
return (((o = Object.keys(l)) == null ? void 0 : o.length) === 0 || a[a.length - 1].length >= (e == null ? void 0 : e.width)) && (l[
|
|
4499
|
+
return (((o = Object.keys(l)) == null ? void 0 : o.length) === 0 || a[a.length - 1].length >= (e == null ? void 0 : e.width)) && (l[Ne.value] = [], Ne.value++), l[Ne.value - 1].push(e), ((r = Object.keys(l)) == null ? void 0 : r.length) === (e == null ? void 0 : e.width) && (l[Ne.value] = [], Ne.value++), l;
|
|
4463
4500
|
}, {});
|
|
4464
4501
|
export {
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4502
|
+
Co as a,
|
|
4503
|
+
Nl as b,
|
|
4504
|
+
ll as c,
|
|
4505
|
+
vo as d,
|
|
4506
|
+
go as e,
|
|
4507
|
+
bo as f,
|
|
4508
|
+
ms as g,
|
|
4509
|
+
ko as i,
|
|
4510
|
+
wl as m,
|
|
4511
|
+
Us as p,
|
|
4512
|
+
mo as s
|
|
4476
4513
|
};
|