ss-component-new 1.1.204 → 1.1.205
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-BFhKYj7r.js → array-559oEJXO.js} +773 -800
- package/dist/{array-bExKAUYR.cjs → array-JF6CCAiw.cjs} +2 -2
- package/dist/{cloneDeep-BCr0AurG.cjs → cloneDeep-DgLlm_Jw.cjs} +1 -1
- package/dist/{cloneDeep-Dq88RgWY.js → cloneDeep-kffz0j_1.js} +1 -1
- package/dist/{index-DT5En52_.cjs → index-1-nR6fwq.cjs} +1 -1
- package/dist/{index-r3Nx3snx.cjs → index-38ObDEJY.cjs} +1 -1
- package/dist/{index-CVzNs53h.js → index-BBpo28RV.js} +5 -5
- package/dist/{index-DOEcQixr.js → index-BHZ8bNd2.js} +3 -3
- package/dist/{index-nc4_Bpdv.cjs → index-BTM77A0p.cjs} +1 -1
- package/dist/{index-lfgJD0L5.js → index-BWI4uVaO.js} +7 -7
- package/dist/{index-0eAIyYff.cjs → index-BWnExbkP.cjs} +1 -1
- package/dist/{index-CphtNZ9f.js → index-BbCBJn_d.js} +5 -5
- package/dist/{index-DelI4OVL.js → index-BbYQJXfY.js} +7 -7
- package/dist/{index-dr1odtaY.cjs → index-Bjnr25kk.cjs} +2 -2
- package/dist/{index-DQj83_aM.js → index-Br8oy8H7.js} +3 -3
- package/dist/{index-CAGxWFn3.cjs → index-Bvyk67qH.cjs} +1 -1
- package/dist/{index-BJuKaxGz.js → index-ByzV6Koo.js} +5 -5
- package/dist/{index--Xb7ij8h.cjs → index-BzA74Y1p.cjs} +1 -1
- package/dist/{index-gJZhOiq9.js → index-C2PxHmUq.js} +8 -8
- package/dist/{index-DAbdQlPV.js → index-CI8WhwPR.js} +1 -1
- package/dist/{index-snM5YAh4.cjs → index-CL9GlVkc.cjs} +1 -1
- package/dist/{index-JFe7di24.js → index-Cku8YAjO.js} +3 -3
- package/dist/{index-bPZ2MclO.js → index-CmAGO9_x.js} +4 -4
- package/dist/{index-m4bWHH6F.cjs → index-CohpVqQ6.cjs} +1 -1
- package/dist/{index-D73Q_nmy.cjs → index-CpuZnsAt.cjs} +1 -1
- package/dist/{index-DFQ7hQT3.js → index-Ctav4Baa.js} +1 -1
- package/dist/{index-DmVGnOrm.js → index-D25GS4Fu.js} +1 -1
- package/dist/{index-CWrT1c43.cjs → index-D4FO3D_8.cjs} +1 -1
- package/dist/{index-BI8Ay1S1.js → index-D7EBAesk.js} +67 -65
- package/dist/{index-BTmQwpJo.cjs → index-D7wUxg_x.cjs} +1 -1
- package/dist/{index-CSs-MY84.cjs → index-D8Lvkefh.cjs} +1 -1
- package/dist/{index-B8Miz_Cq.cjs → index-DBaP5Lzq.cjs} +1 -1
- package/dist/{index-Bd5QGxn7.cjs → index-DCGTTpF2.cjs} +1 -1
- package/dist/{index-CNviXSeZ.js → index-DI1EtlEj.js} +12 -12
- package/dist/{index-CC4cb6ld.js → index-DIororWD.js} +1 -1
- package/dist/{index-DxIdjoxy.js → index-Da2go7Uv.js} +6 -6
- package/dist/{index-CrDB6nwv.cjs → index-Da_uUHWz.cjs} +1 -1
- package/dist/{index-DogEyKcQ.js → index-DdcX3YIo.js} +1 -1
- package/dist/{index-kMOvkC5Z.cjs → index-Di-GQc7_.cjs} +1 -1
- package/dist/{index-B7u8L5ZJ.cjs → index-DjnHoGb3.cjs} +1 -1
- package/dist/index-Dq97ANpj.cjs +1 -0
- package/dist/{index-DJ9JnJgt.js → index-DxiqylE3.js} +1 -1
- package/dist/{index-BTe5xHk0.js → index-Sz6D3nDL.js} +6 -6
- package/dist/{index-B_ldqUKR.js → index-Uy4ZULgP.js} +6 -6
- package/dist/{index-YDZx5P00.cjs → index-d9UDAExx.cjs} +1 -1
- package/dist/{index-BDiB9HCu.js → index-mNyTYmUr.js} +21 -21
- package/dist/{index-BYTj8UHM.cjs → index-mnZaFu-c.cjs} +1 -1
- package/dist/{index-Ci--zW_l.cjs → index-q5Gg854X.cjs} +1 -1
- package/dist/{index-B-TxGWuh.cjs → index-rEsquz6p.cjs} +1 -1
- package/dist/{index-DVw7tf49.js → index-rMiaCknf.js} +6 -6
- package/dist/{index.vue_vue_type_script_setup_true_lang-9MyavSYE.js → index.vue_vue_type_script_setup_true_lang-CUKF21sz.js} +4 -4
- package/dist/{index.vue_vue_type_script_setup_true_lang-CPm96puV.cjs → index.vue_vue_type_script_setup_true_lang-Dtsi4tHS.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BjyJ6UQq.js → index.vue_vue_type_script_setup_true_lang-DvtsjpQB.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-1n66gqmK.cjs → index.vue_vue_type_script_setup_true_lang-jGbdA3_K.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_997b1786_lang-CtfzWM73.js → index.vue_vue_type_style_index_0_scoped_997b1786_lang-2WQdUmow.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_997b1786_lang-Bz7R4y-8.cjs → index.vue_vue_type_style_index_0_scoped_997b1786_lang-5kUSujk8.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_fb273504_lang-CqrG0OgP.cjs → index.vue_vue_type_style_index_0_scoped_fb273504_lang-BLwmOIyf.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_fb273504_lang-MwT97C_Q.js → index.vue_vue_type_style_index_0_scoped_fb273504_lang-CnYwrRxC.js} +8 -8
- package/dist/{login-MlPjBP9y.js → login-BqSU9LPd.js} +2 -2
- package/dist/{login-RagDvJln.cjs → login-CG_skqJM.cjs} +1 -1
- package/dist/{main-D3QI9caW.js → main-BoJ9T3Yc.js} +5 -5
- package/dist/{main-Df6GUSmS.cjs → main-CJUqYuHI.cjs} +1 -1
- package/dist/{menu-CK3bK1Rk.cjs → menu-C29TTYR-.cjs} +1 -1
- package/dist/{menu-CgUytgzT.js → menu-CCoQanzl.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +7 -7
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +1 -1
- package/package.json +1 -1
- package/dist/index-BF7CacOf.cjs +0 -1
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { u as $l, g as _l, s as Ol } from "./index-
|
|
2
|
-
import { ref as R, watch as
|
|
3
|
-
import { p as ke, u as
|
|
4
|
-
import { s as Ee, f as vl, a as ue, b as El } from "./index-
|
|
1
|
+
import { u as $l, g as _l, s as Ol } from "./index-Sz6D3nDL.js";
|
|
2
|
+
import { ref as R, watch as ae, createElementBlock as Y, openBlock as z, createVNode as V, resolveComponent as nl, createElementVNode as I, toDisplayString as X, withCtx as se, createTextVNode as ce, Fragment as he, renderList as xe, createBlock as Be, resolveDynamicComponent as je, createCommentVNode as Tl } from "vue";
|
|
3
|
+
import { p as ke, u as tl, g as Ue, b as xl } from "./index-Ctav4Baa.js";
|
|
4
|
+
import { s as Ee, f as vl, a as ue, b as El } from "./index-D7EBAesk.js";
|
|
5
5
|
import { _ as pe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import { U as
|
|
6
|
+
import { U as Fe, g as Re, a as we, i as Je, S as Ae, b as Dl, c as u } from "./cloneDeep-kffz0j_1.js";
|
|
7
7
|
import { _ as Nl } from "./index.vue_vue_type_script_setup_true_lang-DQ2k4Z7D.js";
|
|
8
|
-
import { s as De, u as Sl } from "./menu-
|
|
9
|
-
import { _ as Pl, s as Bl } from "./index.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { M as
|
|
11
|
-
var
|
|
8
|
+
import { s as De, u as Sl } from "./menu-CCoQanzl.js";
|
|
9
|
+
import { _ as Pl, s as Bl } from "./index.vue_vue_type_script_setup_true_lang-CUKF21sz.js";
|
|
10
|
+
import { M as jl, S as Le, e as Ul, i as Ge, b as Me } from "./index-BbYQJXfY.js";
|
|
11
|
+
var Fl = "__lodash_hash_undefined__";
|
|
12
12
|
function Rl(e) {
|
|
13
|
-
return this.__data__.set(e,
|
|
13
|
+
return this.__data__.set(e, Fl), this;
|
|
14
14
|
}
|
|
15
15
|
function wl(e) {
|
|
16
16
|
return this.__data__.has(e);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
var
|
|
20
|
-
for (this.__data__ = new
|
|
21
|
-
this.add(e[
|
|
18
|
+
function ge(e) {
|
|
19
|
+
var t = -1, n = e == null ? 0 : e.length;
|
|
20
|
+
for (this.__data__ = new jl(); ++t < n; )
|
|
21
|
+
this.add(e[t]);
|
|
22
22
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
function Jl(e,
|
|
23
|
+
ge.prototype.add = ge.prototype.push = Rl;
|
|
24
|
+
ge.prototype.has = wl;
|
|
25
|
+
function Jl(e, t) {
|
|
26
26
|
for (var n = -1, l = e == null ? 0 : e.length; ++n < l; )
|
|
27
|
-
if (
|
|
27
|
+
if (t(e[n], n, e))
|
|
28
28
|
return !0;
|
|
29
29
|
return !1;
|
|
30
30
|
}
|
|
31
|
-
function Ll(e,
|
|
32
|
-
return e.has(
|
|
31
|
+
function Ll(e, t) {
|
|
32
|
+
return e.has(t);
|
|
33
33
|
}
|
|
34
34
|
var Gl = 1, Ml = 2;
|
|
35
|
-
function
|
|
36
|
-
var o = n & Gl,
|
|
37
|
-
if (
|
|
35
|
+
function al(e, t, n, l, a, s) {
|
|
36
|
+
var o = n & Gl, i = e.length, f = t.length;
|
|
37
|
+
if (i != f && !(o && f > i))
|
|
38
38
|
return !1;
|
|
39
|
-
var h = s.get(e), k = s.get(
|
|
39
|
+
var h = s.get(e), k = s.get(t);
|
|
40
40
|
if (h && k)
|
|
41
|
-
return h ==
|
|
42
|
-
var A = -1, $ = !0, O = n & Ml ? new
|
|
43
|
-
for (s.set(e,
|
|
44
|
-
var C = e[A], N =
|
|
41
|
+
return h == t && k == e;
|
|
42
|
+
var A = -1, $ = !0, O = n & Ml ? new ge() : void 0;
|
|
43
|
+
for (s.set(e, t), s.set(t, e); ++A < i; ) {
|
|
44
|
+
var C = e[A], N = t[A];
|
|
45
45
|
if (l)
|
|
46
|
-
var y = o ? l(N, C, A,
|
|
46
|
+
var y = o ? l(N, C, A, t, e, s) : l(C, N, A, e, t, s);
|
|
47
47
|
if (y !== void 0) {
|
|
48
48
|
if (y)
|
|
49
49
|
continue;
|
|
@@ -51,126 +51,126 @@ function tl(e, a, n, l, t, s) {
|
|
|
51
51
|
break;
|
|
52
52
|
}
|
|
53
53
|
if (O) {
|
|
54
|
-
if (!Jl(
|
|
55
|
-
if (!Ll(O,
|
|
56
|
-
return O.push(
|
|
54
|
+
if (!Jl(t, function(d, p) {
|
|
55
|
+
if (!Ll(O, p) && (C === d || a(C, d, n, l, s)))
|
|
56
|
+
return O.push(p);
|
|
57
57
|
})) {
|
|
58
58
|
$ = !1;
|
|
59
59
|
break;
|
|
60
60
|
}
|
|
61
|
-
} else if (!(C === N ||
|
|
61
|
+
} else if (!(C === N || a(C, N, n, l, s))) {
|
|
62
62
|
$ = !1;
|
|
63
63
|
break;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
return s.delete(e), s.delete(
|
|
66
|
+
return s.delete(e), s.delete(t), $;
|
|
67
67
|
}
|
|
68
68
|
function Il(e) {
|
|
69
|
-
var
|
|
70
|
-
return e.forEach(function(l,
|
|
71
|
-
n[++
|
|
69
|
+
var t = -1, n = Array(e.size);
|
|
70
|
+
return e.forEach(function(l, a) {
|
|
71
|
+
n[++t] = [a, l];
|
|
72
72
|
}), n;
|
|
73
73
|
}
|
|
74
74
|
function Hl(e) {
|
|
75
|
-
var
|
|
75
|
+
var t = -1, n = Array(e.size);
|
|
76
76
|
return e.forEach(function(l) {
|
|
77
|
-
n[++
|
|
77
|
+
n[++t] = l;
|
|
78
78
|
}), n;
|
|
79
79
|
}
|
|
80
|
-
var Wl = 1, Zl = 2, Kl = "[object Boolean]", ql = "[object Date]", zl = "[object Error]", Ql = "[object Map]", Xl = "[object Number]", Yl = "[object RegExp]", Vl = "[object Set]", en = "[object String]", ln = "[object Symbol]", nn = "[object ArrayBuffer]",
|
|
81
|
-
function
|
|
80
|
+
var Wl = 1, Zl = 2, Kl = "[object Boolean]", ql = "[object Date]", zl = "[object Error]", Ql = "[object Map]", Xl = "[object Number]", Yl = "[object RegExp]", Vl = "[object Set]", en = "[object String]", ln = "[object Symbol]", nn = "[object ArrayBuffer]", tn = "[object DataView]", Ie = Le ? Le.prototype : void 0, $e = Ie ? Ie.valueOf : void 0;
|
|
81
|
+
function an(e, t, n, l, a, s, o) {
|
|
82
82
|
switch (n) {
|
|
83
|
-
case
|
|
84
|
-
if (e.byteLength !=
|
|
83
|
+
case tn:
|
|
84
|
+
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
|
|
85
85
|
return !1;
|
|
86
|
-
e = e.buffer,
|
|
86
|
+
e = e.buffer, t = t.buffer;
|
|
87
87
|
case nn:
|
|
88
|
-
return !(e.byteLength !=
|
|
88
|
+
return !(e.byteLength != t.byteLength || !s(new Fe(e), new Fe(t)));
|
|
89
89
|
case Kl:
|
|
90
90
|
case ql:
|
|
91
91
|
case Xl:
|
|
92
|
-
return
|
|
92
|
+
return Ul(+e, +t);
|
|
93
93
|
case zl:
|
|
94
|
-
return e.name ==
|
|
94
|
+
return e.name == t.name && e.message == t.message;
|
|
95
95
|
case Yl:
|
|
96
96
|
case en:
|
|
97
|
-
return e ==
|
|
97
|
+
return e == t + "";
|
|
98
98
|
case Ql:
|
|
99
|
-
var
|
|
99
|
+
var i = Il;
|
|
100
100
|
case Vl:
|
|
101
101
|
var f = l & Wl;
|
|
102
|
-
if (
|
|
102
|
+
if (i || (i = Hl), e.size != t.size && !f)
|
|
103
103
|
return !1;
|
|
104
104
|
var h = o.get(e);
|
|
105
105
|
if (h)
|
|
106
|
-
return h ==
|
|
107
|
-
l |= Zl, o.set(e,
|
|
108
|
-
var k =
|
|
106
|
+
return h == t;
|
|
107
|
+
l |= Zl, o.set(e, t);
|
|
108
|
+
var k = al(i(e), i(t), l, a, s, o);
|
|
109
109
|
return o.delete(e), k;
|
|
110
110
|
case ln:
|
|
111
111
|
if ($e)
|
|
112
|
-
return $e.call(e) == $e.call(
|
|
112
|
+
return $e.call(e) == $e.call(t);
|
|
113
113
|
}
|
|
114
114
|
return !1;
|
|
115
115
|
}
|
|
116
116
|
var sn = 1, rn = Object.prototype, on = rn.hasOwnProperty;
|
|
117
|
-
function cn(e,
|
|
118
|
-
var o = n & sn,
|
|
117
|
+
function cn(e, t, n, l, a, s) {
|
|
118
|
+
var o = n & sn, i = Re(e), f = i.length, h = Re(t), k = h.length;
|
|
119
119
|
if (f != k && !o)
|
|
120
120
|
return !1;
|
|
121
121
|
for (var A = f; A--; ) {
|
|
122
|
-
var $ =
|
|
123
|
-
if (!(o ? $ in
|
|
122
|
+
var $ = i[A];
|
|
123
|
+
if (!(o ? $ in t : on.call(t, $)))
|
|
124
124
|
return !1;
|
|
125
125
|
}
|
|
126
|
-
var O = s.get(e), C = s.get(
|
|
126
|
+
var O = s.get(e), C = s.get(t);
|
|
127
127
|
if (O && C)
|
|
128
|
-
return O ==
|
|
128
|
+
return O == t && C == e;
|
|
129
129
|
var N = !0;
|
|
130
|
-
s.set(e,
|
|
130
|
+
s.set(e, t), s.set(t, e);
|
|
131
131
|
for (var y = o; ++A < f; ) {
|
|
132
|
-
$ =
|
|
133
|
-
var d = e[$],
|
|
132
|
+
$ = i[A];
|
|
133
|
+
var d = e[$], p = t[$];
|
|
134
134
|
if (l)
|
|
135
|
-
var
|
|
136
|
-
if (!(
|
|
135
|
+
var b = o ? l(p, d, $, t, e, s) : l(d, p, $, e, t, s);
|
|
136
|
+
if (!(b === void 0 ? d === p || a(d, p, n, l, s) : b)) {
|
|
137
137
|
N = !1;
|
|
138
138
|
break;
|
|
139
139
|
}
|
|
140
140
|
y || (y = $ == "constructor");
|
|
141
141
|
}
|
|
142
142
|
if (N && !y) {
|
|
143
|
-
var c = e.constructor, r =
|
|
144
|
-
c != r && "constructor" in e && "constructor" in
|
|
143
|
+
var c = e.constructor, r = t.constructor;
|
|
144
|
+
c != r && "constructor" in e && "constructor" in t && !(typeof c == "function" && c instanceof c && typeof r == "function" && r instanceof r) && (N = !1);
|
|
145
145
|
}
|
|
146
|
-
return s.delete(e), s.delete(
|
|
146
|
+
return s.delete(e), s.delete(t), N;
|
|
147
147
|
}
|
|
148
148
|
var un = 1, He = "[object Arguments]", We = "[object Array]", ie = "[object Object]", pn = Object.prototype, Ze = pn.hasOwnProperty;
|
|
149
|
-
function fn(e,
|
|
150
|
-
var o = Ge(e),
|
|
149
|
+
function fn(e, t, n, l, a, s) {
|
|
150
|
+
var o = Ge(e), i = Ge(t), f = o ? We : we(e), h = i ? We : we(t);
|
|
151
151
|
f = f == He ? ie : f, h = h == He ? ie : h;
|
|
152
152
|
var k = f == ie, A = h == ie, $ = f == h;
|
|
153
153
|
if ($ && Je(e)) {
|
|
154
|
-
if (!Je(
|
|
154
|
+
if (!Je(t))
|
|
155
155
|
return !1;
|
|
156
156
|
o = !0, k = !1;
|
|
157
157
|
}
|
|
158
158
|
if ($ && !k)
|
|
159
|
-
return s || (s = new Ae()), o || Dl(e) ?
|
|
159
|
+
return s || (s = new Ae()), o || Dl(e) ? al(e, t, n, l, a, s) : an(e, t, f, n, l, a, s);
|
|
160
160
|
if (!(n & un)) {
|
|
161
|
-
var O = k && Ze.call(e, "__wrapped__"), C = A && Ze.call(
|
|
161
|
+
var O = k && Ze.call(e, "__wrapped__"), C = A && Ze.call(t, "__wrapped__");
|
|
162
162
|
if (O || C) {
|
|
163
|
-
var N = O ? e.value() : e, y = C ?
|
|
164
|
-
return s || (s = new Ae()),
|
|
163
|
+
var N = O ? e.value() : e, y = C ? t.value() : t;
|
|
164
|
+
return s || (s = new Ae()), a(N, y, n, l, s);
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
return $ ? (s || (s = new Ae()), cn(e,
|
|
167
|
+
return $ ? (s || (s = new Ae()), cn(e, t, n, l, a, s)) : !1;
|
|
168
168
|
}
|
|
169
|
-
function sl(e,
|
|
170
|
-
return e ===
|
|
169
|
+
function sl(e, t, n, l, a) {
|
|
170
|
+
return e === t ? !0 : e == null || t == null || !Me(e) && !Me(t) ? e !== e && t !== t : fn(e, t, n, l, sl, a);
|
|
171
171
|
}
|
|
172
|
-
function dn(e,
|
|
173
|
-
return sl(e,
|
|
172
|
+
function dn(e, t) {
|
|
173
|
+
return sl(e, t);
|
|
174
174
|
}
|
|
175
175
|
const fe = [
|
|
176
176
|
{
|
|
@@ -203,12 +203,12 @@ const fe = [
|
|
|
203
203
|
index: Number
|
|
204
204
|
},
|
|
205
205
|
emits: ["change", "contentChange"],
|
|
206
|
-
setup(e, { emit:
|
|
207
|
-
const n = e, l =
|
|
208
|
-
var y, d,
|
|
209
|
-
const $ = (d = (y =
|
|
206
|
+
setup(e, { emit: t }) {
|
|
207
|
+
const n = e, l = t, a = R([]), s = R(!1), o = R([]), i = $l(ke), f = R(), h = (A) => {
|
|
208
|
+
var y, d, p, b;
|
|
209
|
+
const $ = (d = (y = u(n.itemData)) == null ? void 0 : y.find((c) => (c == null ? void 0 : c.key) === "formContent")) == null ? void 0 : d.contents, O = u(A.content);
|
|
210
210
|
let C = {};
|
|
211
|
-
O && ((
|
|
211
|
+
O && ((p = Object.values(O)) == null ? void 0 : p.length) > 0 && ((b = Object.values(O)) == null || b.forEach((c, r) => {
|
|
212
212
|
C[$[r].key] = c;
|
|
213
213
|
}));
|
|
214
214
|
const N = {
|
|
@@ -220,24 +220,24 @@ const fe = [
|
|
|
220
220
|
}, k = (A) => {
|
|
221
221
|
var C, N;
|
|
222
222
|
if (!A) return;
|
|
223
|
-
if (((C = Object.values(
|
|
224
|
-
const y = (N = Object.values(
|
|
223
|
+
if (((C = Object.values(u(A))) == null ? void 0 : C.length) > 0) {
|
|
224
|
+
const y = (N = Object.values(u(A))) == null ? void 0 : N.map((p) => p);
|
|
225
225
|
let d = "";
|
|
226
|
-
y == null || y.forEach((
|
|
227
|
-
|
|
228
|
-
}),
|
|
226
|
+
y == null || y.forEach((p) => {
|
|
227
|
+
p !== "" && p !== void 0 && (d = d === "" ? p : d + "/" + p);
|
|
228
|
+
}), i.setSelectArray(y), i.setSelectString(d);
|
|
229
229
|
}
|
|
230
|
-
const $ =
|
|
230
|
+
const $ = u(n.itemData), O = $ == null ? void 0 : $.map((y) => {
|
|
231
231
|
var d;
|
|
232
|
-
return (y == null ? void 0 : y.key) === "formContent" && ((d = y.contents) == null || d.map((
|
|
233
|
-
var c, r, m, _, T, v, x,
|
|
234
|
-
return
|
|
232
|
+
return (y == null ? void 0 : y.key) === "formContent" && ((d = y.contents) == null || d.map((p, b) => {
|
|
233
|
+
var c, r, m, _, T, v, x, U, E, D, B, P, S, g, j, F, w, W, K;
|
|
234
|
+
return p.type = p != null && p.type ? p.type : (_ = (m = (r = (c = p == null ? void 0 : p.key) == null ? void 0 : c.split("$")) == null ? void 0 : r[1]) == null ? void 0 : m.split("(")) != null && _[0] ? (T = fe == null ? void 0 : fe.find((Z) => {
|
|
235
235
|
var le, ee, G, Q;
|
|
236
|
-
return (Z == null ? void 0 : Z.key) === ((Q = (G = (ee = (le =
|
|
237
|
-
})) == null ? void 0 : T.value : "Input",
|
|
236
|
+
return (Z == null ? void 0 : Z.key) === ((Q = (G = (ee = (le = p == null ? void 0 : p.key) == null ? void 0 : le.split("$")) == null ? void 0 : ee[1]) == null ? void 0 : G.split("(")) == null ? void 0 : Q[0]);
|
|
237
|
+
})) == null ? void 0 : T.value : "Input", p.options = p != null && p.options ? p.options : ((U = (x = (v = p == null ? void 0 : p.key) == null ? void 0 : v.split("$")) == null ? void 0 : x[1]) == null ? void 0 : U.length) > 0 ? (P = (B = vl((D = (E = p == null ? void 0 : p.key) == null ? void 0 : E.split("$")) == null ? void 0 : D[1])) == null ? void 0 : B.split(",")) == null ? void 0 : P.map((Z) => ({
|
|
238
238
|
label: Z,
|
|
239
239
|
value: Z
|
|
240
|
-
})) : [], (S =
|
|
240
|
+
})) : [], (S = p == null ? void 0 : p.key) != null && S.includes("$") && (p.key = (j = (g = p == null ? void 0 : p.key) == null ? void 0 : g.split("$")) == null ? void 0 : j[0]), p.value = Array.isArray((F = Object.values(A)) == null ? void 0 : F[b]) ? (W = (w = Object.values(A)) == null ? void 0 : w[b]) == null ? void 0 : W[0] : (K = Object.values(A)) == null ? void 0 : K[b], p;
|
|
241
241
|
})), y;
|
|
242
242
|
});
|
|
243
243
|
l("contentChange", {
|
|
@@ -245,19 +245,19 @@ const fe = [
|
|
|
245
245
|
index: n.index
|
|
246
246
|
});
|
|
247
247
|
};
|
|
248
|
-
return
|
|
248
|
+
return ae(
|
|
249
249
|
() => n.itemData,
|
|
250
250
|
() => {
|
|
251
|
-
var N, y, d,
|
|
252
|
-
const A = (N =
|
|
253
|
-
if ((C == null ? void 0 : C.contents) === "纵向" ? s.value = !1 : s.value = !0, f.value = typeof (O == null ? void 0 : O.contents) != "boolean" ? !(!(O != null && O.contents) === "" || ((
|
|
251
|
+
var N, y, d, p, b, c, r, m, _, T;
|
|
252
|
+
const A = (N = u(n.itemData)) == null ? void 0 : N.find((v) => (v == null ? void 0 : v.key) === "formContent"), $ = (y = u(n.itemData)) == null ? void 0 : y.find((v) => (v == null ? void 0 : v.key) === "formButton"), O = (d = u(n.itemData)) == null ? void 0 : d.find((v) => (v == null ? void 0 : v.key) === "formFlex"), C = (p = u(n.itemData)) == null ? void 0 : p.find((v) => (v == null ? void 0 : v.key) === "formWrap");
|
|
253
|
+
if ((C == null ? void 0 : C.contents) === "纵向" ? s.value = !1 : s.value = !0, f.value = typeof (O == null ? void 0 : O.contents) != "boolean" ? !(!(O != null && O.contents) === "" || ((b = O == null ? void 0 : O.contents) == null ? void 0 : b.toUpperCase()) === "VERTICAL") : O == null ? void 0 : O.contents, ((c = A == null ? void 0 : A.contents) == null ? void 0 : c.length) > 0 && Array.isArray(A == null ? void 0 : A.contents)) {
|
|
254
254
|
const v = [];
|
|
255
255
|
(r = A == null ? void 0 : A.contents) == null || r.forEach((E, D) => {
|
|
256
|
-
var B, P, S,
|
|
256
|
+
var B, P, S, g, j, F, w, W, K, Z;
|
|
257
257
|
if ((E == null ? void 0 : E.label) !== "") {
|
|
258
258
|
let le = (E == null ? void 0 : E.key) ?? "", ee = (E == null ? void 0 : E.type) ?? "", G = (E == null ? void 0 : E.options) ?? [];
|
|
259
|
-
if ((B = E == null ? void 0 : E.key) != null && B.includes("$") && (le = (P =
|
|
260
|
-
const [Q, q] = (
|
|
259
|
+
if ((B = E == null ? void 0 : E.key) != null && B.includes("$") && (le = (P = u(E == null ? void 0 : E.key).split("$")) == null ? void 0 : P[0], ((g = (S = u(E == null ? void 0 : E.key).split("$")) == null ? void 0 : S[1]) == null ? void 0 : g.length) > 0)) {
|
|
260
|
+
const [Q, q] = (F = (j = u(E == null ? void 0 : E.key).split("$")) == null ? void 0 : j[1]) == null ? void 0 : F.split(/[()]/);
|
|
261
261
|
ee = ((w = fe.find((H) => (H == null ? void 0 : H.key) === Q)) == null ? void 0 : w.value) ?? "", ((W = q == null ? void 0 : q.split(",")) == null ? void 0 : W.length) > 0 && (G = (K = q == null ? void 0 : q.split(",")) == null ? void 0 : K.map((H) => ({
|
|
262
262
|
label: H,
|
|
263
263
|
value: H
|
|
@@ -274,19 +274,19 @@ const fe = [
|
|
|
274
274
|
});
|
|
275
275
|
}
|
|
276
276
|
});
|
|
277
|
-
const x = (m =
|
|
278
|
-
let
|
|
277
|
+
const x = (m = u(v)) == null ? void 0 : m.map((E) => E.value);
|
|
278
|
+
let U = "";
|
|
279
279
|
x == null || x.forEach((E) => {
|
|
280
|
-
E !== "" && E !== void 0 && (
|
|
281
|
-
}),
|
|
280
|
+
E !== "" && E !== void 0 && (U = U === "" ? E : U + "/" + E);
|
|
281
|
+
}), i.setSelectArray(x), i.setSelectString(U), a.value = v;
|
|
282
282
|
} else
|
|
283
|
-
|
|
283
|
+
a.value = [];
|
|
284
284
|
if (((_ = $ == null ? void 0 : $.contents) == null ? void 0 : _.length) > 0) {
|
|
285
285
|
const v = [];
|
|
286
|
-
(T = $ == null ? void 0 : $.contents) == null || T.forEach((x,
|
|
286
|
+
(T = $ == null ? void 0 : $.contents) == null || T.forEach((x, U) => {
|
|
287
287
|
(x == null ? void 0 : x.label) !== "" && v.push({
|
|
288
288
|
label: (x == null ? void 0 : x.label) ?? "",
|
|
289
|
-
id: (x == null ? void 0 : x.id) ??
|
|
289
|
+
id: (x == null ? void 0 : x.id) ?? U,
|
|
290
290
|
type: (x == null ? void 0 : x.type) ?? "",
|
|
291
291
|
background: x == null ? void 0 : x.background
|
|
292
292
|
});
|
|
@@ -297,7 +297,7 @@ const fe = [
|
|
|
297
297
|
{ deep: !0, immediate: !0 }
|
|
298
298
|
), (A, $) => (z(), Y("div", yn, [
|
|
299
299
|
V(Ee, {
|
|
300
|
-
rowContents:
|
|
300
|
+
rowContents: a.value,
|
|
301
301
|
buttonValue: o.value,
|
|
302
302
|
isRowFlex: f.value,
|
|
303
303
|
isEnableWrap: !1,
|
|
@@ -307,7 +307,7 @@ const fe = [
|
|
|
307
307
|
}, null, 8, ["rowContents", "buttonValue", "isRowFlex", "isButtonRow"])
|
|
308
308
|
]));
|
|
309
309
|
}
|
|
310
|
-
}, mn = /* @__PURE__ */ pe(hn, [["__scopeId", "data-v-3775f389"]]),
|
|
310
|
+
}, mn = /* @__PURE__ */ pe(hn, [["__scopeId", "data-v-3775f389"]]), bn = { class: "table-operate-content" }, gn = { class: "table-operate-item" }, kn = { class: "operate-title" }, Cn = { class: "operate-content" }, An = { class: "operate-title" }, $n = { class: "operate-content" }, _n = { class: "operate-title" }, On = { class: "operate-content" }, Tn = { class: "operate-content" }, xn = {
|
|
311
311
|
__name: "operate",
|
|
312
312
|
props: {
|
|
313
313
|
itemContents: {
|
|
@@ -320,8 +320,8 @@ const fe = [
|
|
|
320
320
|
}
|
|
321
321
|
},
|
|
322
322
|
emits: ["change"],
|
|
323
|
-
setup(e, { emit:
|
|
324
|
-
const n = e, l =
|
|
323
|
+
setup(e, { emit: t }) {
|
|
324
|
+
const n = e, l = t, a = R([]), s = R([]), o = R([]), i = R([{
|
|
325
325
|
label: "按钮名称",
|
|
326
326
|
prop: "label",
|
|
327
327
|
type: "edit"
|
|
@@ -435,57 +435,57 @@ const fe = [
|
|
|
435
435
|
type: "operate",
|
|
436
436
|
sortable: !1
|
|
437
437
|
}], O = (c) => {
|
|
438
|
-
let r =
|
|
438
|
+
let r = u(a.value);
|
|
439
439
|
const m = r == null ? void 0 : r.find((_) => _.key === "page");
|
|
440
440
|
(m == null ? void 0 : m.contents) !== void 0 ? r = r == null ? void 0 : r.map((_) => ((_ == null ? void 0 : _.key) === "page" && (_.contents = c == null ? void 0 : c.isPagination), _)) : r.push({
|
|
441
441
|
key: "page",
|
|
442
442
|
contents: c == null ? void 0 : c.isPagination
|
|
443
|
-
}),
|
|
443
|
+
}), a.value = r;
|
|
444
444
|
};
|
|
445
|
-
|
|
445
|
+
ae(
|
|
446
446
|
() => n.originalItemContents,
|
|
447
447
|
() => {
|
|
448
|
-
var c, r, m, _, T, v, x,
|
|
449
|
-
!n.originalItemContents || n.originalItemContents.length === 0 || (
|
|
448
|
+
var c, r, m, _, T, v, x, U, E, D, B, P, S;
|
|
449
|
+
!n.originalItemContents || n.originalItemContents.length === 0 || (a.value = u(n.originalItemContents), s.value = (r = (c = a.value) == null ? void 0 : c.find((g) => (g == null ? void 0 : g.key) === "header")) == null ? void 0 : r.contents, o.value = (_ = (m = a.value) == null ? void 0 : m.find((g) => (g == null ? void 0 : g.key) === "rowButton")) == null ? void 0 : _.contents, i.value = (v = (T = a.value) == null ? void 0 : T.find((g) => (g == null ? void 0 : g.key) === "extraButton")) == null ? void 0 : v.contents, A.value = (U = (x = a.value) == null ? void 0 : x.find((g) => (g == null ? void 0 : g.key) === "page")) != null && U.contents ? [{
|
|
450
450
|
name: "isPagination",
|
|
451
451
|
label: "是否显示分页",
|
|
452
452
|
type: "Switch",
|
|
453
|
-
value: (D = (E =
|
|
453
|
+
value: (D = (E = a.value) == null ? void 0 : E.find((g) => (g == null ? void 0 : g.key) === "page")) == null ? void 0 : D.contents
|
|
454
454
|
}] : [{
|
|
455
455
|
name: "isPagination",
|
|
456
456
|
label: "是否显示分页",
|
|
457
457
|
type: "Switch",
|
|
458
458
|
value: !0
|
|
459
|
-
}], s.value = (B = s.value) == null ? void 0 : B.map((
|
|
460
|
-
label: (
|
|
461
|
-
prop: (
|
|
462
|
-
width:
|
|
463
|
-
fixed: (
|
|
464
|
-
sortable: (
|
|
465
|
-
align: (
|
|
466
|
-
showOverflowTooltip: (
|
|
467
|
-
isNotDrag: (
|
|
468
|
-
isEditCol: (
|
|
469
|
-
isOperate: (
|
|
470
|
-
id: (
|
|
471
|
-
}), o.value = (P = o.value) == null ? void 0 : P.map((
|
|
472
|
-
label: (
|
|
473
|
-
type: (
|
|
474
|
-
textColor: (
|
|
475
|
-
id: (
|
|
476
|
-
}),
|
|
477
|
-
label: (
|
|
478
|
-
type: (
|
|
479
|
-
background: (
|
|
480
|
-
id: (
|
|
459
|
+
}], s.value = (B = s.value) == null ? void 0 : B.map((g, j) => g = {
|
|
460
|
+
label: (g == null ? void 0 : g.label) ?? "",
|
|
461
|
+
prop: (g == null ? void 0 : g.label) === "操作" ? "operate" : g == null ? void 0 : g.prop,
|
|
462
|
+
width: g != null && g.width ? parseInt(g.width) : "",
|
|
463
|
+
fixed: (g == null ? void 0 : g.fixed) ?? void 0,
|
|
464
|
+
sortable: (g == null ? void 0 : g.sortable) ?? !1,
|
|
465
|
+
align: (g == null ? void 0 : g.align) ?? "center",
|
|
466
|
+
showOverflowTooltip: (g == null ? void 0 : g.showOverflowTooltip) ?? !0,
|
|
467
|
+
isNotDrag: (g == null ? void 0 : g.isNotDrag) ?? !1,
|
|
468
|
+
isEditCol: (g == null ? void 0 : g.isEditCol) ?? !1,
|
|
469
|
+
isOperate: (g == null ? void 0 : g.isOperate) ?? !1,
|
|
470
|
+
id: (g == null ? void 0 : g.id) ?? j
|
|
471
|
+
}), o.value = (P = o.value) == null ? void 0 : P.map((g, j) => g = {
|
|
472
|
+
label: (g == null ? void 0 : g.label) ?? "",
|
|
473
|
+
type: (g == null ? void 0 : g.type) ?? "",
|
|
474
|
+
textColor: (g == null ? void 0 : g.textColor) ?? "#000000",
|
|
475
|
+
id: (g == null ? void 0 : g.id) ?? j
|
|
476
|
+
}), i.value = (S = i.value) == null ? void 0 : S.map((g, j) => g = {
|
|
477
|
+
label: (g == null ? void 0 : g.label) ?? "",
|
|
478
|
+
type: (g == null ? void 0 : g.type) ?? "",
|
|
479
|
+
background: (g == null ? void 0 : g.textColor) ?? "#FFFFFF",
|
|
480
|
+
id: (g == null ? void 0 : g.id) ?? j
|
|
481
481
|
}));
|
|
482
482
|
},
|
|
483
483
|
{ deep: !0, immediate: !0 }
|
|
484
|
-
),
|
|
484
|
+
), ae(
|
|
485
485
|
() => A.value,
|
|
486
486
|
() => {
|
|
487
487
|
var m;
|
|
488
|
-
let c =
|
|
488
|
+
let c = u(a.value);
|
|
489
489
|
const r = c == null ? void 0 : c.find((_) => _.key === "page");
|
|
490
490
|
r != null && r.contents ? c = c == null ? void 0 : c.map((_) => {
|
|
491
491
|
var T;
|
|
@@ -493,13 +493,13 @@ const fe = [
|
|
|
493
493
|
}) : c.push({
|
|
494
494
|
key: "page",
|
|
495
495
|
contents: (m = A.value) == null ? void 0 : m[0].value
|
|
496
|
-
}),
|
|
496
|
+
}), a.value = c;
|
|
497
497
|
},
|
|
498
498
|
{ immediate: !0, deep: !0 }
|
|
499
499
|
);
|
|
500
500
|
const C = () => {
|
|
501
|
-
const c =
|
|
502
|
-
let r =
|
|
501
|
+
const c = u(s.value);
|
|
502
|
+
let r = u(a.value);
|
|
503
503
|
c.push({
|
|
504
504
|
label: "",
|
|
505
505
|
prop: "",
|
|
@@ -517,10 +517,10 @@ const fe = [
|
|
|
517
517
|
m != null && m.contents ? (m.contents = c, r = r == null ? void 0 : r.map((_) => ((_ == null ? void 0 : _.key) === "header" && (_.contents = c), _))) : r.push({
|
|
518
518
|
key: "header",
|
|
519
519
|
contents: c
|
|
520
|
-
}),
|
|
520
|
+
}), a.value = r;
|
|
521
521
|
}, N = () => {
|
|
522
|
-
const c =
|
|
523
|
-
let r =
|
|
522
|
+
const c = u(o.value);
|
|
523
|
+
let r = u(a.value);
|
|
524
524
|
c.push({
|
|
525
525
|
label: "",
|
|
526
526
|
type: "",
|
|
@@ -531,10 +531,10 @@ const fe = [
|
|
|
531
531
|
m != null && m.contents ? (m.contents = c, r = r == null ? void 0 : r.map((_) => ((_ == null ? void 0 : _.key) === "rowButton" && (_.contents = c), _))) : r.push({
|
|
532
532
|
key: "rowButton",
|
|
533
533
|
contents: c
|
|
534
|
-
}),
|
|
534
|
+
}), a.value = r;
|
|
535
535
|
}, y = () => {
|
|
536
|
-
const c =
|
|
537
|
-
let r =
|
|
536
|
+
const c = u(h.value);
|
|
537
|
+
let r = u(a.value);
|
|
538
538
|
c.push({
|
|
539
539
|
label: "",
|
|
540
540
|
type: "",
|
|
@@ -545,30 +545,30 @@ const fe = [
|
|
|
545
545
|
m != null && m.contents ? (m.contents = c, r = r == null ? void 0 : r.map((_) => ((_ == null ? void 0 : _.key) === "extraButton" && (_.contents = c), _))) : r.push({
|
|
546
546
|
key: "extraButton",
|
|
547
547
|
contents: c
|
|
548
|
-
}),
|
|
548
|
+
}), a.value = r;
|
|
549
549
|
}, d = (c) => {
|
|
550
|
-
const r =
|
|
551
|
-
let m =
|
|
550
|
+
const r = u(o.value);
|
|
551
|
+
let m = u(a.value);
|
|
552
552
|
o.value = r.filter((T) => T.id !== c.id);
|
|
553
553
|
const _ = m == null ? void 0 : m.find((T) => T.key === "rowButton");
|
|
554
|
-
_ != null && _.contents && (m = m == null ? void 0 : m.map((T) => ((T == null ? void 0 : T.key) === "rowButton" && (T.contents = r.filter((v) => v.id !== c.id)), T))),
|
|
555
|
-
},
|
|
556
|
-
const r =
|
|
557
|
-
let m =
|
|
554
|
+
_ != null && _.contents && (m = m == null ? void 0 : m.map((T) => ((T == null ? void 0 : T.key) === "rowButton" && (T.contents = r.filter((v) => v.id !== c.id)), T))), a.value = m;
|
|
555
|
+
}, p = (c) => {
|
|
556
|
+
const r = u(h.value);
|
|
557
|
+
let m = u(a.value);
|
|
558
558
|
h.value = r.filter((T) => T.id !== c.id);
|
|
559
559
|
const _ = m == null ? void 0 : m.find((T) => T.key === "extraButton");
|
|
560
|
-
_ != null && _.contents && (m = m == null ? void 0 : m.map((T) => ((T == null ? void 0 : T.key) === "extraButton" && (T.contents = r.filter((v) => v.id !== c.id)), T))),
|
|
561
|
-
},
|
|
562
|
-
const r =
|
|
563
|
-
let m =
|
|
560
|
+
_ != null && _.contents && (m = m == null ? void 0 : m.map((T) => ((T == null ? void 0 : T.key) === "extraButton" && (T.contents = r.filter((v) => v.id !== c.id)), T))), a.value = m;
|
|
561
|
+
}, b = (c) => {
|
|
562
|
+
const r = u(s.value);
|
|
563
|
+
let m = u(a.value);
|
|
564
564
|
s.value = r.filter((T) => T.id !== c.id);
|
|
565
565
|
const _ = m == null ? void 0 : m.find((T) => T.key === "header");
|
|
566
|
-
_ != null && _.contents && (m = m == null ? void 0 : m.map((T) => ((T == null ? void 0 : T.key) === "header" && (T.contents = r.filter((v) => v.id !== c.id)), T))),
|
|
566
|
+
_ != null && _.contents && (m = m == null ? void 0 : m.map((T) => ((T == null ? void 0 : T.key) === "header" && (T.contents = r.filter((v) => v.id !== c.id)), T))), a.value = m;
|
|
567
567
|
};
|
|
568
|
-
return
|
|
569
|
-
() => [
|
|
568
|
+
return ae(
|
|
569
|
+
() => [a.value, s.value],
|
|
570
570
|
() => {
|
|
571
|
-
let c =
|
|
571
|
+
let c = u(a.value);
|
|
572
572
|
const r = c == null ? void 0 : c.find((m) => (m == null ? void 0 : m.key) === "header");
|
|
573
573
|
r != null && r.contents ? (r.contents = s.value, c = c == null ? void 0 : c.map((m) => ((m == null ? void 0 : m.key) === "header" && (m.contents = s.value), m))) : c.push({
|
|
574
574
|
key: "header",
|
|
@@ -578,8 +578,8 @@ const fe = [
|
|
|
578
578
|
{ deep: !0, immediate: !0 }
|
|
579
579
|
), (c, r) => {
|
|
580
580
|
const m = nl("el-button");
|
|
581
|
-
return z(), Y("div",
|
|
582
|
-
I("div",
|
|
581
|
+
return z(), Y("div", bn, [
|
|
582
|
+
I("div", gn, [
|
|
583
583
|
I("div", kn, [
|
|
584
584
|
r[1] || (r[1] = I("div", null, X("表头"), -1)),
|
|
585
585
|
V(m, {
|
|
@@ -601,7 +601,7 @@ const fe = [
|
|
|
601
601
|
isShowEdit: !1,
|
|
602
602
|
isMoveColumn: !1,
|
|
603
603
|
tableData: s.value,
|
|
604
|
-
onDeleteRow:
|
|
604
|
+
onDeleteRow: b
|
|
605
605
|
}, null, 8, ["tableData"])
|
|
606
606
|
]),
|
|
607
607
|
I("div", An, [
|
|
@@ -644,12 +644,12 @@ const fe = [
|
|
|
644
644
|
]),
|
|
645
645
|
I("div", On, [
|
|
646
646
|
V(ue, {
|
|
647
|
-
columns:
|
|
647
|
+
columns: i.value,
|
|
648
648
|
isShowPagination: !1,
|
|
649
649
|
isShowEdit: !1,
|
|
650
650
|
isMoveColumn: !1,
|
|
651
651
|
tableData: h.value,
|
|
652
|
-
onDeleteRow:
|
|
652
|
+
onDeleteRow: p
|
|
653
653
|
}, null, 8, ["columns", "tableData"])
|
|
654
654
|
]),
|
|
655
655
|
r[6] || (r[6] = I("div", { class: "operate-title" }, [
|
|
@@ -665,7 +665,7 @@ const fe = [
|
|
|
665
665
|
]);
|
|
666
666
|
};
|
|
667
667
|
}
|
|
668
|
-
}, vn = /* @__PURE__ */ pe(xn, [["__scopeId", "data-v-877911eb"]]), En = { class: "form-operate-content" }, Dn = { class: "form-operate-item" }, Nn = { class: "operate-title" }, Sn = { class: "operate-content" }, Pn = { class: "operate-title" }, Bn = { class: "operate-content" },
|
|
668
|
+
}, vn = /* @__PURE__ */ pe(xn, [["__scopeId", "data-v-877911eb"]]), En = { class: "form-operate-content" }, Dn = { class: "form-operate-item" }, Nn = { class: "operate-title" }, Sn = { class: "operate-content" }, Pn = { class: "operate-title" }, Bn = { class: "operate-content" }, jn = { class: "operate-content" }, Un = {
|
|
669
669
|
__name: "operate",
|
|
670
670
|
props: {
|
|
671
671
|
itemContents: {
|
|
@@ -678,8 +678,8 @@ const fe = [
|
|
|
678
678
|
}
|
|
679
679
|
},
|
|
680
680
|
emits: ["change"],
|
|
681
|
-
setup(e, { emit:
|
|
682
|
-
const n = e, l =
|
|
681
|
+
setup(e, { emit: t }) {
|
|
682
|
+
const n = e, l = t, a = R([{
|
|
683
683
|
name: "isRowFlex",
|
|
684
684
|
label: "是否横向布局",
|
|
685
685
|
type: "Switch",
|
|
@@ -723,23 +723,23 @@ const fe = [
|
|
|
723
723
|
prop: "operate",
|
|
724
724
|
type: "operate",
|
|
725
725
|
sortable: !1
|
|
726
|
-
}]),
|
|
727
|
-
|
|
726
|
+
}]), i = R([]), f = R([]), h = R([]), k = R(0);
|
|
727
|
+
ae(
|
|
728
728
|
() => n.originalItemContents,
|
|
729
729
|
() => {
|
|
730
|
-
var y, d,
|
|
731
|
-
!n.originalItemContents || n.originalItemContents.length === 0 || (f.value =
|
|
730
|
+
var y, d, p, b, c, r, m, _, T, v;
|
|
731
|
+
!n.originalItemContents || n.originalItemContents.length === 0 || (f.value = u(n.originalItemContents), h.value = (d = (y = f.value) == null ? void 0 : y.find((x) => (x == null ? void 0 : x.key) === "formContent")) == null ? void 0 : d.contents, i.value = (b = (p = f.value) == null ? void 0 : p.find((x) => (x == null ? void 0 : x.key) === "formButton")) == null ? void 0 : b.contents, h.value = (c = h.value) == null ? void 0 : c.map((x, U) => x = {
|
|
732
732
|
label: (x == null ? void 0 : x.label) ?? "",
|
|
733
733
|
type: (x == null ? void 0 : x.type) ?? "",
|
|
734
734
|
key: (x == null ? void 0 : x.key) ?? "",
|
|
735
735
|
options: (x == null ? void 0 : x.options) ?? "",
|
|
736
|
-
id: (x == null ? void 0 : x.id) ??
|
|
737
|
-
}),
|
|
736
|
+
id: (x == null ? void 0 : x.id) ?? U
|
|
737
|
+
}), i.value = (r = i.value) == null ? void 0 : r.map((x, U) => x = {
|
|
738
738
|
label: (x == null ? void 0 : x.label) ?? "",
|
|
739
739
|
type: (x == null ? void 0 : x.type) ?? "",
|
|
740
740
|
background: (x == null ? void 0 : x.background) ?? "#000000",
|
|
741
|
-
id: (x == null ? void 0 : x.id) ??
|
|
742
|
-
}),
|
|
741
|
+
id: (x == null ? void 0 : x.id) ?? U
|
|
742
|
+
}), a.value = (_ = (m = f.value) == null ? void 0 : m.find((x) => (x == null ? void 0 : x.key) === "formFlex")) != null && _.contents ? [{
|
|
743
743
|
name: "isRowFlex",
|
|
744
744
|
label: "是否横向布局",
|
|
745
745
|
type: "Switch",
|
|
@@ -754,22 +754,22 @@ const fe = [
|
|
|
754
754
|
{ deep: !0, immediate: !0 }
|
|
755
755
|
);
|
|
756
756
|
const A = () => {
|
|
757
|
-
const y =
|
|
758
|
-
let d =
|
|
757
|
+
const y = u(i.value);
|
|
758
|
+
let d = u(f.value);
|
|
759
759
|
y.push({
|
|
760
760
|
label: "",
|
|
761
761
|
type: "",
|
|
762
762
|
background: "#000000",
|
|
763
763
|
id: k.value
|
|
764
|
-
}),
|
|
765
|
-
const
|
|
766
|
-
|
|
764
|
+
}), i.value = y, k.value++;
|
|
765
|
+
const p = d == null ? void 0 : d.find((b) => (b == null ? void 0 : b.key) === "formButton");
|
|
766
|
+
p != null && p.contents ? (p.contents = y, d = d == null ? void 0 : d.map((b) => ((b == null ? void 0 : b.key) === "formButton" && (b.contents = y), b))) : d.push({
|
|
767
767
|
key: "formButton",
|
|
768
768
|
contents: y
|
|
769
769
|
}), f.value = d;
|
|
770
770
|
}, $ = () => {
|
|
771
|
-
const y =
|
|
772
|
-
let d =
|
|
771
|
+
const y = u(h.value);
|
|
772
|
+
let d = u(f.value);
|
|
773
773
|
y.push({
|
|
774
774
|
label: "",
|
|
775
775
|
type: "",
|
|
@@ -777,49 +777,49 @@ const fe = [
|
|
|
777
777
|
options: "",
|
|
778
778
|
id: k.value
|
|
779
779
|
}), h.value = y, k.value++;
|
|
780
|
-
const
|
|
781
|
-
|
|
780
|
+
const p = d == null ? void 0 : d.find((b) => (b == null ? void 0 : b.key) === "formContent");
|
|
781
|
+
p != null && p.contents ? (p.contents = y, d = d == null ? void 0 : d.map((b) => ((b == null ? void 0 : b.key) === "formContent" && (b.contents = y), b))) : d.push({
|
|
782
782
|
key: "formContent",
|
|
783
783
|
contents: y
|
|
784
784
|
}), f.value = d;
|
|
785
785
|
}, O = (y) => {
|
|
786
|
-
const d =
|
|
787
|
-
let
|
|
788
|
-
|
|
789
|
-
const
|
|
790
|
-
|
|
786
|
+
const d = u(i.value);
|
|
787
|
+
let p = u(f.value);
|
|
788
|
+
i.value = d.filter((c) => c.id !== y.id);
|
|
789
|
+
const b = p == null ? void 0 : p.find((c) => c.key === "formButton");
|
|
790
|
+
b != null && b.contents && (p = p == null ? void 0 : p.map((c) => ((c == null ? void 0 : c.key) === "formButton" && (c.contents = d.filter((r) => r.id !== y.id)), c))), f.value = p;
|
|
791
791
|
}, C = (y) => {
|
|
792
|
-
const d =
|
|
793
|
-
let
|
|
792
|
+
const d = u(h.value);
|
|
793
|
+
let p = u(f.value);
|
|
794
794
|
h.value = d.filter((c) => c.id !== y.id);
|
|
795
|
-
const
|
|
796
|
-
|
|
795
|
+
const b = p == null ? void 0 : p.find((c) => c.key === "formContent");
|
|
796
|
+
b != null && b.contents && (p = p == null ? void 0 : p.map((c) => ((c == null ? void 0 : c.key) === "formContent" && (c.contents = d.filter((r) => r.id !== y.id)), c))), f.value = p;
|
|
797
797
|
}, N = (y) => {
|
|
798
|
-
let d =
|
|
799
|
-
const
|
|
800
|
-
(
|
|
798
|
+
let d = u(f.value);
|
|
799
|
+
const p = d == null ? void 0 : d.find((b) => b.key === "formFlex");
|
|
800
|
+
(p == null ? void 0 : p.contents) !== void 0 ? d = d == null ? void 0 : d.map((b) => ((b == null ? void 0 : b.key) === "formFlex" && (b.contents = y == null ? void 0 : y.isRowFlex), b)) : d.push({
|
|
801
801
|
key: "formFlex",
|
|
802
802
|
contents: y == null ? void 0 : y.isRowFlex
|
|
803
803
|
}), f.value = d;
|
|
804
804
|
};
|
|
805
|
-
return
|
|
805
|
+
return ae(
|
|
806
806
|
() => [f.value, h.value],
|
|
807
807
|
() => {
|
|
808
|
-
let y =
|
|
809
|
-
const d = y == null ? void 0 : y.find((
|
|
810
|
-
d != null && d.contents ? (d.contents = h.value, y = y == null ? void 0 : y.map((
|
|
808
|
+
let y = u(f.value);
|
|
809
|
+
const d = y == null ? void 0 : y.find((p) => (p == null ? void 0 : p.key) === "formContent");
|
|
810
|
+
d != null && d.contents ? (d.contents = h.value, y = y == null ? void 0 : y.map((p) => ((p == null ? void 0 : p.key) === "formContent" && (p.contents = h.value), p))) : y.push({
|
|
811
811
|
key: "formContent",
|
|
812
812
|
contents: h.value
|
|
813
813
|
}), l("change", y);
|
|
814
814
|
},
|
|
815
815
|
{ deep: !0, immediate: !0 }
|
|
816
816
|
), (y, d) => {
|
|
817
|
-
const
|
|
817
|
+
const p = nl("el-button");
|
|
818
818
|
return z(), Y("div", En, [
|
|
819
819
|
I("div", Dn, [
|
|
820
820
|
I("div", Nn, [
|
|
821
821
|
d[1] || (d[1] = I("div", null, X("表单信息"), -1)),
|
|
822
|
-
V(
|
|
822
|
+
V(p, {
|
|
823
823
|
class: "blue-operate-button",
|
|
824
824
|
icon: "ele-Plus",
|
|
825
825
|
onClick: $
|
|
@@ -843,7 +843,7 @@ const fe = [
|
|
|
843
843
|
]),
|
|
844
844
|
I("div", Pn, [
|
|
845
845
|
d[3] || (d[3] = I("div", null, X("表单按钮"), -1)),
|
|
846
|
-
V(
|
|
846
|
+
V(p, {
|
|
847
847
|
class: "blue-operate-button",
|
|
848
848
|
icon: "ele-Plus",
|
|
849
849
|
onClick: A
|
|
@@ -861,16 +861,16 @@ const fe = [
|
|
|
861
861
|
isShowPagination: !1,
|
|
862
862
|
isShowEdit: !1,
|
|
863
863
|
isMoveColumn: !1,
|
|
864
|
-
tableData:
|
|
864
|
+
tableData: i.value,
|
|
865
865
|
onDeleteRow: O
|
|
866
866
|
}, null, 8, ["columns", "tableData"])
|
|
867
867
|
]),
|
|
868
868
|
d[4] || (d[4] = I("div", { class: "operate-title" }, [
|
|
869
869
|
I("div", null, X("表单布局"))
|
|
870
870
|
], -1)),
|
|
871
|
-
I("div",
|
|
871
|
+
I("div", jn, [
|
|
872
872
|
V(Ee, {
|
|
873
|
-
rowContents:
|
|
873
|
+
rowContents: a.value,
|
|
874
874
|
onChange: N
|
|
875
875
|
}, null, 8, ["rowContents"])
|
|
876
876
|
])
|
|
@@ -878,7 +878,7 @@ const fe = [
|
|
|
878
878
|
]);
|
|
879
879
|
};
|
|
880
880
|
}
|
|
881
|
-
},
|
|
881
|
+
}, Fn = /* @__PURE__ */ pe(Un, [["__scopeId", "data-v-a36b8468"]]), Rn = { class: "extra-content" }, wn = { key: 0 }, Jn = { key: 1 }, Ln = {
|
|
882
882
|
__name: "index",
|
|
883
883
|
props: {
|
|
884
884
|
itemData: {
|
|
@@ -897,14 +897,14 @@ const fe = [
|
|
|
897
897
|
}
|
|
898
898
|
},
|
|
899
899
|
emits: ["change"],
|
|
900
|
-
setup(e, { emit:
|
|
901
|
-
const n = e, l = R(0),
|
|
902
|
-
|
|
900
|
+
setup(e, { emit: t }) {
|
|
901
|
+
const n = e, l = R(0), a = R(), s = R(), o = t, i = R(!1), f = R({}), h = R({}), k = R();
|
|
902
|
+
ae(
|
|
903
903
|
() => [n.itemData],
|
|
904
904
|
() => {
|
|
905
905
|
var c;
|
|
906
|
-
const
|
|
907
|
-
|
|
906
|
+
const b = u(n.itemData);
|
|
907
|
+
a.value = (c = u(b)) == null ? void 0 : c.map((r) => {
|
|
908
908
|
var m;
|
|
909
909
|
if (r.key === "extra") {
|
|
910
910
|
let _ = [];
|
|
@@ -918,59 +918,59 @@ const fe = [
|
|
|
918
918
|
},
|
|
919
919
|
{ deep: !0, immediate: !0 }
|
|
920
920
|
);
|
|
921
|
-
const A = (
|
|
921
|
+
const A = (b, c, r, m) => {
|
|
922
922
|
var T;
|
|
923
923
|
let _ = {};
|
|
924
|
-
((T =
|
|
925
|
-
}, $ = (
|
|
926
|
-
var v, x,
|
|
927
|
-
const c = (x = (v = Object.values(
|
|
924
|
+
((T = b == null ? void 0 : b[0]) == null ? void 0 : T.contents) === "详情" && (i.value = !0, _[c] = b, s.value = b == null ? void 0 : b.filter((v) => (v == null ? void 0 : v.key) !== "tableContentName"), f.value = _, h.value = r, k.value = m.id);
|
|
925
|
+
}, $ = (b) => {
|
|
926
|
+
var v, x, U, E;
|
|
927
|
+
const c = (x = (v = Object.values(u(f.value))) == null ? void 0 : v[0]) == null ? void 0 : x.filter((D) => (D == null ? void 0 : D.key) === "tableContentName"), r = (E = (U = Object.values(u(f.value))) == null ? void 0 : U[0]) == null ? void 0 : E.filter((D) => (D == null ? void 0 : D.key) !== "tableContentName"), m = r == null ? void 0 : r.map((D, B) => {
|
|
928
928
|
var P;
|
|
929
|
-
return B ===
|
|
930
|
-
var
|
|
931
|
-
return (S == null ? void 0 : S.key) === "tableContents" && (S.contents = (
|
|
929
|
+
return B === b.index && (D == null ? void 0 : D.comp) === "Table" && (D.compData = (P = D.compData) == null ? void 0 : P.map((S) => {
|
|
930
|
+
var g, j;
|
|
931
|
+
return (S == null ? void 0 : S.key) === "tableContents" && (S.contents = (j = (g = b.content) == null ? void 0 : g.map((F) => {
|
|
932
932
|
let w = {};
|
|
933
|
-
for (let W in
|
|
934
|
-
W !== "id" && (w[W] =
|
|
933
|
+
for (let W in F)
|
|
934
|
+
W !== "id" && (w[W] = F[W]);
|
|
935
935
|
return w;
|
|
936
|
-
})) == null ? void 0 :
|
|
936
|
+
})) == null ? void 0 : j.map((F) => Object.values(F))), S;
|
|
937
937
|
})), D;
|
|
938
938
|
});
|
|
939
939
|
m.unshift(c == null ? void 0 : c[0]);
|
|
940
|
-
let _ =
|
|
940
|
+
let _ = u(f.value), T = {};
|
|
941
941
|
for (let D in _)
|
|
942
942
|
T[D] = m;
|
|
943
943
|
f.value = T;
|
|
944
944
|
}, O = () => {
|
|
945
|
-
|
|
946
|
-
}, C = (
|
|
947
|
-
var v, x,
|
|
948
|
-
const c = (x = (v = Object.values(
|
|
945
|
+
i.value = !1, f.value = {}, h.value = {}, k.value = void 0, l.value++;
|
|
946
|
+
}, C = (b) => {
|
|
947
|
+
var v, x, U, E;
|
|
948
|
+
const c = (x = (v = Object.values(u(f.value))) == null ? void 0 : v[0]) == null ? void 0 : x.filter((D) => (D == null ? void 0 : D.key) === "tableContentName"), r = (E = (U = Object.values(u(f.value))) == null ? void 0 : U[0]) == null ? void 0 : E.filter((D) => (D == null ? void 0 : D.key) !== "tableContentName"), m = r == null ? void 0 : r.map((D, B) => (B === b.index && (D.compData = b.contents), D));
|
|
949
949
|
m.unshift(c == null ? void 0 : c[0]);
|
|
950
|
-
let _ =
|
|
950
|
+
let _ = u(f.value), T = {};
|
|
951
951
|
for (let D in _)
|
|
952
952
|
T[D] = m;
|
|
953
953
|
f.value = T;
|
|
954
954
|
}, N = () => {
|
|
955
955
|
var c, r;
|
|
956
|
-
let
|
|
956
|
+
let b = {};
|
|
957
957
|
for (let m in h.value)
|
|
958
|
-
m === ((c = Object.keys(f.value)) == null ? void 0 : c[0]) ?
|
|
958
|
+
m === ((c = Object.keys(f.value)) == null ? void 0 : c[0]) ? b[m] = (r = Object.values(f.value)) == null ? void 0 : r[0] : b[m] = h.value[m];
|
|
959
959
|
o("change", {
|
|
960
960
|
buttonName: "编辑",
|
|
961
961
|
index: k.value,
|
|
962
|
-
singleContent:
|
|
963
|
-
}, "methodData"),
|
|
962
|
+
singleContent: b
|
|
963
|
+
}, "methodData"), i.value = !1, f.value = {}, h.value = {}, k.value = void 0;
|
|
964
964
|
}, y = () => {
|
|
965
|
-
|
|
966
|
-
}, d = (
|
|
967
|
-
o("change",
|
|
968
|
-
},
|
|
969
|
-
return (
|
|
965
|
+
i.value = !1, f.value = {}, h.value = {}, k.value = void 0;
|
|
966
|
+
}, d = (b) => {
|
|
967
|
+
o("change", b, "methodData");
|
|
968
|
+
}, p = (b) => zn(b);
|
|
969
|
+
return (b, c) => (z(), Y(he, null, [
|
|
970
970
|
I("div", Rn, [
|
|
971
|
-
(z(!0), Y(he, null, xe(
|
|
971
|
+
(z(!0), Y(he, null, xe(a.value, (r, m) => (z(), Y("div", { key: l.value }, [
|
|
972
972
|
(r == null ? void 0 : r.key) === "extra" ? (z(), Y("div", wn)) : (z(), Y("div", Jn, [
|
|
973
|
-
(z(), Be(
|
|
973
|
+
(z(), Be(je(p(r.comp)), {
|
|
974
974
|
itemData: r == null ? void 0 : r.compData,
|
|
975
975
|
childItemData: r == null ? void 0 : r.itemChildData,
|
|
976
976
|
key: m,
|
|
@@ -982,7 +982,7 @@ const fe = [
|
|
|
982
982
|
]))), 128))
|
|
983
983
|
]),
|
|
984
984
|
V(El, {
|
|
985
|
-
visible:
|
|
985
|
+
visible: i.value,
|
|
986
986
|
onBeforeDestroy: y
|
|
987
987
|
}, {
|
|
988
988
|
default: se(() => [
|
|
@@ -990,7 +990,7 @@ const fe = [
|
|
|
990
990
|
key: m,
|
|
991
991
|
class: "extra-dialog"
|
|
992
992
|
}, [
|
|
993
|
-
(z(), Be(
|
|
993
|
+
(z(), Be(je(p(r.comp)), {
|
|
994
994
|
itemData: r == null ? void 0 : r.compData,
|
|
995
995
|
onChange: $,
|
|
996
996
|
childItemData: r == null ? void 0 : r.itemChildData,
|
|
@@ -1018,35 +1018,35 @@ const fe = [
|
|
|
1018
1018
|
], 64));
|
|
1019
1019
|
}
|
|
1020
1020
|
}, Gn = /* @__PURE__ */ pe(Ln, [["__scopeId", "data-v-e3e0f29d"]]), Ke = (e) => {
|
|
1021
|
-
let
|
|
1022
|
-
function n(
|
|
1023
|
-
|
|
1021
|
+
let t = [];
|
|
1022
|
+
function n(a) {
|
|
1023
|
+
a == null || a.forEach((s) => {
|
|
1024
1024
|
Array.isArray(s) || (s = [s]), s == null || s.forEach((o) => {
|
|
1025
|
-
!(o != null && o.children) || o.children.length === 0 ?
|
|
1025
|
+
!(o != null && o.children) || o.children.length === 0 ? t.push(o.label) : l(o.children);
|
|
1026
1026
|
});
|
|
1027
1027
|
});
|
|
1028
1028
|
}
|
|
1029
|
-
function l(
|
|
1030
|
-
|
|
1031
|
-
!(s != null && s.children) || s.children.length === 0 ?
|
|
1029
|
+
function l(a) {
|
|
1030
|
+
a == null || a.forEach((s) => {
|
|
1031
|
+
!(s != null && s.children) || s.children.length === 0 ? t.push(s.label) : l(s.children);
|
|
1032
1032
|
});
|
|
1033
1033
|
}
|
|
1034
|
-
return n(e),
|
|
1035
|
-
}, Mn = (e,
|
|
1036
|
-
var
|
|
1037
|
-
let l = (
|
|
1034
|
+
return n(e), t;
|
|
1035
|
+
}, Mn = (e, t, n) => {
|
|
1036
|
+
var a;
|
|
1037
|
+
let l = (a = u(e)) == null ? void 0 : a.map((s) => (s = s.filter((o) => !o.id), s));
|
|
1038
1038
|
return l = l == null ? void 0 : l.map((s) => {
|
|
1039
1039
|
var o;
|
|
1040
|
-
return s = (o = s.map((
|
|
1040
|
+
return s = (o = s.map((i, f) => {
|
|
1041
1041
|
let h = {};
|
|
1042
|
-
if (n != null && n.find((k) => k ===
|
|
1043
|
-
return h[
|
|
1044
|
-
})) == null ? void 0 : o.filter((
|
|
1042
|
+
if (n != null && n.find((k) => k === t[f]))
|
|
1043
|
+
return h[t[f]] = i, h;
|
|
1044
|
+
})) == null ? void 0 : o.filter((i) => i), s;
|
|
1045
1045
|
}), l;
|
|
1046
|
-
}, In = (e,
|
|
1047
|
-
var o,
|
|
1048
|
-
const n =
|
|
1049
|
-
return Mn(
|
|
1046
|
+
}, In = (e, t) => {
|
|
1047
|
+
var o, i;
|
|
1048
|
+
const n = u(e), l = (o = n == null ? void 0 : n.find((f) => (f == null ? void 0 : f.key) === "header")) == null ? void 0 : o.contents, a = (i = n == null ? void 0 : n.find((f) => (f == null ? void 0 : f.key) === "tableContents")) == null ? void 0 : i.contents;
|
|
1049
|
+
return Mn(a, Ke(l).slice(0, Ke(l).length - 1), t);
|
|
1050
1050
|
}, Hn = { class: "method-content" }, Wn = ["onClick"], Zn = {
|
|
1051
1051
|
__name: "index",
|
|
1052
1052
|
props: {
|
|
@@ -1066,7 +1066,7 @@ const fe = [
|
|
|
1066
1066
|
}
|
|
1067
1067
|
},
|
|
1068
1068
|
setup(e) {
|
|
1069
|
-
const
|
|
1069
|
+
const t = R([]), n = e, l = tl(ke), { itemData: a } = De(l), s = (f, h) => {
|
|
1070
1070
|
var A;
|
|
1071
1071
|
const k = (A = h == null ? void 0 : h[0]) == null ? void 0 : A.children;
|
|
1072
1072
|
return f == null ? void 0 : f.map(($) => {
|
|
@@ -1080,20 +1080,20 @@ const fe = [
|
|
|
1080
1080
|
})) == null ? void 0 : O.filter((C) => C.key), $;
|
|
1081
1081
|
});
|
|
1082
1082
|
};
|
|
1083
|
-
|
|
1084
|
-
() =>
|
|
1083
|
+
ae(
|
|
1084
|
+
() => a.value,
|
|
1085
1085
|
async () => {
|
|
1086
|
-
await u(
|
|
1086
|
+
await i(u(n.itemData));
|
|
1087
1087
|
},
|
|
1088
1088
|
{ deep: !0 }
|
|
1089
1089
|
);
|
|
1090
1090
|
const o = async (f) => {
|
|
1091
|
-
var
|
|
1091
|
+
var p, b, c, r, m, _;
|
|
1092
1092
|
let h = {};
|
|
1093
|
-
if ((
|
|
1094
|
-
var x,
|
|
1093
|
+
if ((p = u(f.content)) == null || p.forEach((T, v) => {
|
|
1094
|
+
var x, U, E, D, B, P, S, g, j, F, w, W, K, Z, le, ee, G;
|
|
1095
1095
|
if ((T == null ? void 0 : T.comp) === "Table") {
|
|
1096
|
-
let Q = (D = (E = (
|
|
1096
|
+
let Q = (D = (E = (U = (x = T == null ? void 0 : T.compData) == null ? void 0 : x.find((M) => (M == null ? void 0 : M.key) === "header")) == null ? void 0 : U.contents) == null ? void 0 : E[0]) == null ? void 0 : D.some((M) => M == null ? void 0 : M.children), q = (S = (P = (B = T == null ? void 0 : T.compData) == null ? void 0 : B.find((M) => (M == null ? void 0 : M.key) === "tableContents")) == null ? void 0 : P.contents) == null ? void 0 : S.map((M) => M.slice(1)), H = (W = (w = (F = (j = (g = T == null ? void 0 : T.compData) == null ? void 0 : g.find((M) => (M == null ? void 0 : M.key) === "header")) == null ? void 0 : j.contents) == null ? void 0 : F[0]) == null ? void 0 : w[0]) == null ? void 0 : W.label, ne = (le = (Z = (K = T == null ? void 0 : T.compData) == null ? void 0 : K.find((M) => (M == null ? void 0 : M.key) === "header")) == null ? void 0 : Z.contents) == null ? void 0 : le[0];
|
|
1097
1097
|
if (Q)
|
|
1098
1098
|
h[H] = s(q, ne);
|
|
1099
1099
|
else {
|
|
@@ -1121,7 +1121,7 @@ const fe = [
|
|
|
1121
1121
|
}), f.api) {
|
|
1122
1122
|
const T = await xl.post(f.api, {
|
|
1123
1123
|
data: h,
|
|
1124
|
-
templateFileName: (
|
|
1124
|
+
templateFileName: (b = f == null ? void 0 : f.extraContent) == null ? void 0 : b[0]
|
|
1125
1125
|
}, {
|
|
1126
1126
|
responseType: "blob",
|
|
1127
1127
|
// 必须设置
|
|
@@ -1134,32 +1134,32 @@ const fe = [
|
|
|
1134
1134
|
}), A = T.headers["content-disposition"], $ = new RegExp("filename=([^;]+\\.[^\\.;]+);*"), O = $.exec(A), C = ((m = (r = (c = f == null ? void 0 : f.extraContent) == null ? void 0 : c[0]) == null ? void 0 : r.split(".")) == null ? void 0 : m[0]) + "." + ((_ = O[1].split(".")) == null ? void 0 : _[1]), N = document.createElement("a"), y = window.URL.createObjectURL(k), d = /^["](.*)["]$/g;
|
|
1135
1135
|
N.style.display = "none", N.href = y, N.download = decodeURI(C.replace(d, "$1")), document.body.appendChild(N), N.click(), document.body.removeChild(N), window.URL.revokeObjectURL(y);
|
|
1136
1136
|
}
|
|
1137
|
-
},
|
|
1137
|
+
}, i = async (f) => {
|
|
1138
1138
|
var $;
|
|
1139
|
-
const h =
|
|
1140
|
-
var
|
|
1141
|
-
const N = (
|
|
1139
|
+
const h = u(f), k = h == null ? void 0 : h.map(async (O) => {
|
|
1140
|
+
var b, c, r, m, _, T;
|
|
1141
|
+
const N = (b = (await Ue({
|
|
1142
1142
|
key: {
|
|
1143
1143
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
1144
1144
|
parentTable: "",
|
|
1145
1145
|
type: "method",
|
|
1146
1146
|
methodName: O.method
|
|
1147
1147
|
}
|
|
1148
|
-
})).data.result) == null ? void 0 :
|
|
1148
|
+
})).data.result) == null ? void 0 : b[0], y = await Ue({
|
|
1149
1149
|
key: {
|
|
1150
1150
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
1151
1151
|
type: "methodData",
|
|
1152
1152
|
tableId: N == null ? void 0 : N.id
|
|
1153
1153
|
}
|
|
1154
|
-
}), d = await _l((c = O == null ? void 0 : O.value) == null ? void 0 : c[0], sessionStorage.getItem("systemKey"), ""),
|
|
1154
|
+
}), d = await _l((c = O == null ? void 0 : O.value) == null ? void 0 : c[0], sessionStorage.getItem("systemKey"), ""), p = (r = y.data.result) == null ? void 0 : r[0];
|
|
1155
1155
|
return {
|
|
1156
1156
|
buttonName: (m = N == null ? void 0 : N.key) == null ? void 0 : m.methodKey,
|
|
1157
|
-
api: (T = (_ =
|
|
1157
|
+
api: (T = (_ = p == null ? void 0 : p.value) == null ? void 0 : _.tableData) == null ? void 0 : T[0],
|
|
1158
1158
|
content: d == null ? void 0 : d.filter((v) => v.comp !== "methodButton"),
|
|
1159
|
-
extraContent:
|
|
1159
|
+
extraContent: u(O.value).slice(1)
|
|
1160
1160
|
};
|
|
1161
1161
|
}), A = await Promise.all(k);
|
|
1162
|
-
|
|
1162
|
+
t.value = A, ($ = t.value) == null || $.forEach((O) => {
|
|
1163
1163
|
var C;
|
|
1164
1164
|
O.api === "" && ((C = O.content) == null || C.forEach((N) => {
|
|
1165
1165
|
var y;
|
|
@@ -1167,14 +1167,14 @@ const fe = [
|
|
|
1167
1167
|
}));
|
|
1168
1168
|
});
|
|
1169
1169
|
};
|
|
1170
|
-
return
|
|
1170
|
+
return ae(
|
|
1171
1171
|
() => n.itemData,
|
|
1172
1172
|
async () => {
|
|
1173
|
-
await u(
|
|
1173
|
+
await i(u(n.itemData));
|
|
1174
1174
|
},
|
|
1175
1175
|
{ immediate: !0, deep: !0 }
|
|
1176
1176
|
), (f, h) => (z(), Y("div", Hn, [
|
|
1177
|
-
(z(!0), Y(he, null, xe(
|
|
1177
|
+
(z(!0), Y(he, null, xe(t.value, (k) => (z(), Y("div", null, [
|
|
1178
1178
|
k.api !== "" ? (z(), Y("div", {
|
|
1179
1179
|
key: 0,
|
|
1180
1180
|
onClick: (A) => o(k),
|
|
@@ -1183,7 +1183,7 @@ const fe = [
|
|
|
1183
1183
|
]))), 256))
|
|
1184
1184
|
]));
|
|
1185
1185
|
}
|
|
1186
|
-
}, Kn = /* @__PURE__ */ pe(Zn, [["__scopeId", "data-v-3daae5c9"]]),
|
|
1186
|
+
}, Kn = /* @__PURE__ */ pe(Zn, [["__scopeId", "data-v-3daae5c9"]]), zt = R([
|
|
1187
1187
|
{
|
|
1188
1188
|
name: "表格",
|
|
1189
1189
|
type: "table",
|
|
@@ -1218,7 +1218,7 @@ const fe = [
|
|
|
1218
1218
|
TABLE: Ol,
|
|
1219
1219
|
FORM: mn,
|
|
1220
1220
|
TABLEOPERATE: vn,
|
|
1221
|
-
FORMOPERATE:
|
|
1221
|
+
FORMOPERATE: Fn,
|
|
1222
1222
|
FOLD: Nl,
|
|
1223
1223
|
CALCULATOR: Gn,
|
|
1224
1224
|
METHODBUTTON: Kn,
|
|
@@ -1296,8 +1296,8 @@ const L = [
|
|
|
1296
1296
|
value: "groupContents"
|
|
1297
1297
|
}
|
|
1298
1298
|
], re = R(0), Qn = (e) => {
|
|
1299
|
-
const [
|
|
1300
|
-
return { key: l, value:
|
|
1299
|
+
const [t, n] = e.split(/=(.+)/), l = t.replace(/['"]/g, "").trim(), a = n.replace(/^['"]|['"]$/g, "");
|
|
1300
|
+
return { key: l, value: a };
|
|
1301
1301
|
}, me = (e) => {
|
|
1302
1302
|
try {
|
|
1303
1303
|
return JSON.parse(e), !0;
|
|
@@ -1305,57 +1305,57 @@ const L = [
|
|
|
1305
1305
|
return !1;
|
|
1306
1306
|
}
|
|
1307
1307
|
}, Xn = (e) => e.includes("$") && e.trim().endsWith("(") ? e + ")" : e, Yn = (e) => {
|
|
1308
|
-
let
|
|
1308
|
+
let t = e;
|
|
1309
1309
|
const n = [];
|
|
1310
1310
|
let l = "";
|
|
1311
|
-
for (const
|
|
1312
|
-
|
|
1313
|
-
return n == null ? void 0 : n.filter((
|
|
1311
|
+
for (const a of t)
|
|
1312
|
+
a.includes("{") || l.includes("{") || a.includes("[") || l.includes("[") || a.includes("【") || l.includes("【") || a.includes("(") || l.includes("(") || a.includes("(") || l.includes("(") || a.includes("/*") || l.includes("/*") ? (l += a.trim(), u(l).split("{").length - 1 === u(l).split("}").length - 1 && u(l).split("【").length - 1 === u(l).split("】").length - 1 && u(l).split("[").length - 1 === u(l).split("]").length - 1 && u(l).split("(").length - 1 === u(l).split(")").length - 1 && u(l).split("(").length - 1 === u(l).split(")").length - 1 && u(l).split("/*").length - 1 === u(l).split("*/").length - 1 && (n.push(l), l = "")) : n.push(a.trim());
|
|
1313
|
+
return n == null ? void 0 : n.filter((a) => a.includes("{"));
|
|
1314
1314
|
}, Vn = (e) => {
|
|
1315
1315
|
var n;
|
|
1316
|
-
let
|
|
1316
|
+
let t = [];
|
|
1317
1317
|
return (n = Yn(e.slice(1, -1))) == null || n.forEach((l) => {
|
|
1318
|
-
var s, o,
|
|
1319
|
-
let
|
|
1320
|
-
(f = (
|
|
1321
|
-
var O, C, N, y, d,
|
|
1322
|
-
let k = h == null ? void 0 : h.split(":"), A = k != null && k[0] ? (k == null ? void 0 : k[1].split("$").length) - 1 === 1 ? ((O = k == null ? void 0 : k[0]) == null ? void 0 : O.replace(/^"(.*)"$/, "$1")) + ((C = k == null ? void 0 : k[1]) == null ? void 0 : C.replace(/^"(.*)"$/, "$1")) : Array.isArray((y = (N = k == null ? void 0 : k[1]) == null ? void 0 : N.replace(/^"(.*)"$/, "$1")) == null ? void 0 : y.split("(")) && ((
|
|
1323
|
-
re.value++,
|
|
1318
|
+
var s, o, i, f;
|
|
1319
|
+
let a = ((o = (s = l.slice(1, -1)) == null ? void 0 : s.split(",")) == null ? void 0 : o.length) ?? 1;
|
|
1320
|
+
(f = (i = l.slice(1, -1)) == null ? void 0 : i.split(",")) == null || f.forEach((h) => {
|
|
1321
|
+
var O, C, N, y, d, p, b, c, r, m, _, T, v;
|
|
1322
|
+
let k = h == null ? void 0 : h.split(":"), A = k != null && k[0] ? (k == null ? void 0 : k[1].split("$").length) - 1 === 1 ? ((O = k == null ? void 0 : k[0]) == null ? void 0 : O.replace(/^"(.*)"$/, "$1")) + ((C = k == null ? void 0 : k[1]) == null ? void 0 : C.replace(/^"(.*)"$/, "$1")) : Array.isArray((y = (N = k == null ? void 0 : k[1]) == null ? void 0 : N.replace(/^"(.*)"$/, "$1")) == null ? void 0 : y.split("(")) && ((b = (p = (d = k == null ? void 0 : k[1]) == null ? void 0 : d.replace(/^"(.*)"$/, "$1")) == null ? void 0 : p.split("(")) == null ? void 0 : b.length) > 1 ? ((c = k == null ? void 0 : k[0]) == null ? void 0 : c.replace(/^"(.*)"$/, "$1")) + ((_ = (m = (r = k == null ? void 0 : k[1]) == null ? void 0 : r.replace(/^"(.*)"$/, "$1")) == null ? void 0 : m.split("(")) == null ? void 0 : _[0]) + "()" : (T = k == null ? void 0 : k[0]) == null ? void 0 : T.replace(/^"(.*)"$/, "$1") : "", $ = (k == null ? void 0 : k[1].split("$").length) - 1 === 0 ? (v = k == null ? void 0 : k[1]) == null ? void 0 : v.replace(/^"(.*)"$/, "$1") : "";
|
|
1323
|
+
re.value++, t.push({
|
|
1324
1324
|
id: re.value,
|
|
1325
1325
|
key: A,
|
|
1326
1326
|
value: $,
|
|
1327
1327
|
// 如果值为空,则key设为空字符串,否则保留原值
|
|
1328
|
-
width:
|
|
1328
|
+
width: a,
|
|
1329
1329
|
extraContent: k == null ? void 0 : k[1]
|
|
1330
1330
|
});
|
|
1331
1331
|
});
|
|
1332
|
-
}),
|
|
1332
|
+
}), t;
|
|
1333
1333
|
}, rl = (e) => {
|
|
1334
|
-
var
|
|
1334
|
+
var t, n;
|
|
1335
1335
|
try {
|
|
1336
1336
|
const l = e.replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",").replace(/:/g, ":").replace(/:\s*(?=,|}|$)/g, ': ""');
|
|
1337
|
-
if (
|
|
1338
|
-
let
|
|
1339
|
-
if (me(
|
|
1340
|
-
const s = JSON.parse(
|
|
1337
|
+
if (u(l).split("{").length - 1 > 1) {
|
|
1338
|
+
let a = u(l).replace(/^\{(.*)\}$/, "[$1]");
|
|
1339
|
+
if (me(a) && !a.includes("$") || (a = a.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g, '"$1$$$2"')), me(a)) {
|
|
1340
|
+
const s = JSON.parse(a);
|
|
1341
1341
|
let o = [];
|
|
1342
|
-
return s == null || s.forEach((
|
|
1342
|
+
return s == null || s.forEach((i) => {
|
|
1343
1343
|
var f;
|
|
1344
|
-
(f = Object.entries(
|
|
1344
|
+
(f = Object.entries(u(i))) == null || f.forEach((h) => {
|
|
1345
1345
|
re.value++, o.push({
|
|
1346
1346
|
id: re.value,
|
|
1347
1347
|
key: (h == null ? void 0 : h[0]) ?? "",
|
|
1348
1348
|
value: (h == null ? void 0 : h[1]) === "" ? "" : h == null ? void 0 : h[1],
|
|
1349
1349
|
// 如果值为空,则key设为空字符串,否则保留原值
|
|
1350
|
-
width: Object.keys(
|
|
1350
|
+
width: Object.keys(u(i)).length
|
|
1351
1351
|
});
|
|
1352
1352
|
});
|
|
1353
1353
|
}), o;
|
|
1354
1354
|
} else
|
|
1355
|
-
return l.trim().startsWith("{{") ? Vn(l.trim()) : _e(
|
|
1355
|
+
return l.trim().startsWith("{{") ? Vn(l.trim()) : _e(a);
|
|
1356
1356
|
} else if (me(l)) {
|
|
1357
|
-
const
|
|
1358
|
-
return Object.entries(
|
|
1357
|
+
const a = JSON.parse(l);
|
|
1358
|
+
return Object.entries(a).map(([s, o]) => (re.value++, {
|
|
1359
1359
|
id: re.value,
|
|
1360
1360
|
key: s,
|
|
1361
1361
|
value: o === "" ? "" : o,
|
|
@@ -1363,103 +1363,103 @@ const L = [
|
|
|
1363
1363
|
width: 1
|
|
1364
1364
|
}));
|
|
1365
1365
|
} else
|
|
1366
|
-
return ((
|
|
1367
|
-
label:
|
|
1368
|
-
method: Xn(
|
|
1366
|
+
return ((t = _e(l)) == null ? void 0 : t.length) === 0 ? l : (n = _e(l)) == null ? void 0 : n.map((a) => ({
|
|
1367
|
+
label: a.label,
|
|
1368
|
+
method: Xn(a.method)
|
|
1369
1369
|
}));
|
|
1370
1370
|
} catch (l) {
|
|
1371
1371
|
return console.error("转换失败:", l), [];
|
|
1372
1372
|
}
|
|
1373
1373
|
}, _e = (e) => {
|
|
1374
1374
|
e = e.trim().replace(/^\{|\}$/g, "").trim();
|
|
1375
|
-
const
|
|
1375
|
+
const t = [];
|
|
1376
1376
|
let n = 0;
|
|
1377
1377
|
for (; n < e.length; ) {
|
|
1378
1378
|
const l = e.slice(n).match(/^\s*"([^"]+)"\s*:\s*/);
|
|
1379
1379
|
if (!l) break;
|
|
1380
|
-
const
|
|
1380
|
+
const a = l[1];
|
|
1381
1381
|
n += l[0].length;
|
|
1382
|
-
let s = "", o = 0,
|
|
1382
|
+
let s = "", o = 0, i = !1, f = "";
|
|
1383
1383
|
for (let h = n; h < e.length; h++) {
|
|
1384
1384
|
const k = e[h];
|
|
1385
|
-
if ((k === '"' || k === "'") && !
|
|
1385
|
+
if ((k === '"' || k === "'") && !i ? (i = !0, f = k) : k === f && i && (i = !1, f = ""), !i && ((k === "{" || k === "(" || k === "[") && o++, (k === "}" || k === ")" || k === "]") && o--, k === "," && o === 0 || h === e.length - 1)) {
|
|
1386
1386
|
s = e.slice(n, h + 1).trim(), n = h + 1;
|
|
1387
1387
|
break;
|
|
1388
1388
|
}
|
|
1389
1389
|
}
|
|
1390
|
-
|
|
1391
|
-
label:
|
|
1390
|
+
t.push({
|
|
1391
|
+
label: a,
|
|
1392
1392
|
method: s
|
|
1393
1393
|
});
|
|
1394
1394
|
}
|
|
1395
|
-
return
|
|
1396
|
-
},
|
|
1395
|
+
return t;
|
|
1396
|
+
}, et = (e, t) => {
|
|
1397
1397
|
try {
|
|
1398
|
-
if (L != null && L.find((n) => (n == null ? void 0 : n.key) ===
|
|
1398
|
+
if (L != null && L.find((n) => (n == null ? void 0 : n.key) === t))
|
|
1399
1399
|
return e.replace(/['"]/g, "").trim();
|
|
1400
|
-
if (
|
|
1401
|
-
const n =
|
|
1400
|
+
if (u(e).split("[").length - 1 > 1) {
|
|
1401
|
+
const n = u(e).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
|
|
1402
1402
|
return JSON.parse(n);
|
|
1403
1403
|
} else {
|
|
1404
|
-
const n =
|
|
1404
|
+
const n = u(e).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",");
|
|
1405
1405
|
if (me(n)) {
|
|
1406
1406
|
const l = JSON.parse(n);
|
|
1407
|
-
return Array.isArray(l) ? l.map((
|
|
1407
|
+
return Array.isArray(l) ? l.map((a) => ({ label: a })) : l;
|
|
1408
1408
|
} else
|
|
1409
|
-
return rl(
|
|
1409
|
+
return rl(u(e));
|
|
1410
1410
|
}
|
|
1411
1411
|
} catch (n) {
|
|
1412
1412
|
return console.error("解析失败:", n), e;
|
|
1413
1413
|
}
|
|
1414
|
-
},
|
|
1414
|
+
}, lt = (e) => ({ [e == null ? void 0 : e.key]: et(e == null ? void 0 : e.value, e == null ? void 0 : e.key) }), nt = (e) => {
|
|
1415
1415
|
try {
|
|
1416
|
-
if (
|
|
1417
|
-
const
|
|
1418
|
-
return JSON.parse(
|
|
1416
|
+
if (u(e).split("[").length - 1 > 1) {
|
|
1417
|
+
const t = u(e).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
|
|
1418
|
+
return JSON.parse(t);
|
|
1419
1419
|
} else
|
|
1420
|
-
return JSON.parse(
|
|
1421
|
-
} catch (
|
|
1422
|
-
return console.error("解析失败:",
|
|
1420
|
+
return JSON.parse(u(e).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",")).map((n) => ({ label: n }));
|
|
1421
|
+
} catch (t) {
|
|
1422
|
+
return console.error("解析失败:", t), e;
|
|
1423
1423
|
}
|
|
1424
|
-
},
|
|
1425
|
-
const
|
|
1426
|
-
return
|
|
1427
|
-
},
|
|
1428
|
-
const
|
|
1429
|
-
return
|
|
1430
|
-
}, qe = (e) => e.replace(/'/g, "").replace(/"/g, "").replace(/{|}/g, "").split(":").map((
|
|
1431
|
-
var o,
|
|
1432
|
-
let
|
|
1433
|
-
const l = (o =
|
|
1434
|
-
|
|
1424
|
+
}, tt = (e) => {
|
|
1425
|
+
const t = e.match(/\(([^)]+)\)/);
|
|
1426
|
+
return t ? t[1] : "";
|
|
1427
|
+
}, at = (e) => {
|
|
1428
|
+
const t = e.match(/^([^(]+)\s*\(/);
|
|
1429
|
+
return t ? t[1].trim() : e;
|
|
1430
|
+
}, qe = (e) => e.replace(/'/g, "").replace(/"/g, "").replace(/{|}/g, "").split(":").map((t) => t.trim()).filter((t) => t).join("/"), st = (e) => {
|
|
1431
|
+
var o, i;
|
|
1432
|
+
let t = [], n = [];
|
|
1433
|
+
const l = (o = u(e)) == null ? void 0 : o.map((f) => f == null ? void 0 : f.key), a = [...new Set((i = u(l)) == null ? void 0 : i.map((f) => tt(f)))];
|
|
1434
|
+
a == null || a.forEach((f) => {
|
|
1435
1435
|
let h = e == null ? void 0 : e.filter(($) => $.key.includes(f));
|
|
1436
1436
|
h == null || h.forEach(($) => {
|
|
1437
|
-
$ != null && $.key.includes("Menus") && (
|
|
1437
|
+
$ != null && $.key.includes("Menus") && (t.push({
|
|
1438
1438
|
key: "GroupName",
|
|
1439
1439
|
value: qe($ == null ? void 0 : $.value)
|
|
1440
1440
|
}), n.push(qe($ == null ? void 0 : $.value)));
|
|
1441
1441
|
});
|
|
1442
1442
|
let k = e == null ? void 0 : e.filter(($) => $.key.includes(f) && !($ != null && $.key.includes("Menus")));
|
|
1443
|
-
k = k == null ? void 0 : k.map(($) => ($.key =
|
|
1443
|
+
k = k == null ? void 0 : k.map(($) => ($.key = at($.key), $));
|
|
1444
1444
|
const A = {
|
|
1445
1445
|
key: "GroupContents",
|
|
1446
1446
|
value: k
|
|
1447
1447
|
};
|
|
1448
|
-
|
|
1448
|
+
t.push(A);
|
|
1449
1449
|
});
|
|
1450
1450
|
const s = {
|
|
1451
1451
|
key: "Menus",
|
|
1452
1452
|
value: n
|
|
1453
1453
|
};
|
|
1454
|
-
return
|
|
1454
|
+
return t.unshift(s), t;
|
|
1455
1455
|
}, ol = (e) => {
|
|
1456
|
-
var
|
|
1457
|
-
if (Array.isArray(Object.keys(e)) && ((
|
|
1456
|
+
var t, n;
|
|
1457
|
+
if (Array.isArray(Object.keys(e)) && ((t = Object.keys(e)) == null ? void 0 : t.length) > 0) {
|
|
1458
1458
|
let l = [];
|
|
1459
|
-
return (n = Object.entries(e)) == null || n.forEach(([
|
|
1460
|
-
var
|
|
1459
|
+
return (n = Object.entries(e)) == null || n.forEach(([a, s]) => {
|
|
1460
|
+
var i, f;
|
|
1461
1461
|
let o = [];
|
|
1462
|
-
if (o.push(
|
|
1462
|
+
if (o.push(a), ((i = Object.keys(s)) == null ? void 0 : i.length) > 0) {
|
|
1463
1463
|
let h = [];
|
|
1464
1464
|
(f = ol(s)) == null || f.forEach((k) => {
|
|
1465
1465
|
h.push(k);
|
|
@@ -1470,36 +1470,36 @@ const L = [
|
|
|
1470
1470
|
l.push(o);
|
|
1471
1471
|
}), l;
|
|
1472
1472
|
}
|
|
1473
|
-
},
|
|
1473
|
+
}, rt = (e, t) => {
|
|
1474
1474
|
var l;
|
|
1475
|
-
let n =
|
|
1476
|
-
return Array.isArray(Object.keys(e)) && ((l = Object.entries(e)) == null || l.forEach(([
|
|
1477
|
-
let o = [
|
|
1475
|
+
let n = t;
|
|
1476
|
+
return Array.isArray(Object.keys(e)) && ((l = Object.entries(e)) == null || l.forEach(([a, s]) => {
|
|
1477
|
+
let o = [a];
|
|
1478
1478
|
if (typeof s == "object" && s !== null) {
|
|
1479
|
-
let
|
|
1480
|
-
|
|
1479
|
+
let i = ol(s);
|
|
1480
|
+
i == null || i.forEach((f) => {
|
|
1481
1481
|
o.push(f);
|
|
1482
1482
|
});
|
|
1483
1483
|
}
|
|
1484
1484
|
n.push(o);
|
|
1485
1485
|
})), n;
|
|
1486
|
-
},
|
|
1487
|
-
const
|
|
1486
|
+
}, ot = (e) => {
|
|
1487
|
+
const t = {};
|
|
1488
1488
|
return e.forEach((l) => {
|
|
1489
|
-
const
|
|
1490
|
-
let s =
|
|
1491
|
-
|
|
1489
|
+
const a = l.split("/");
|
|
1490
|
+
let s = t;
|
|
1491
|
+
a.forEach((o) => {
|
|
1492
1492
|
s[o] || (s[o] = {}), s = s[o];
|
|
1493
1493
|
});
|
|
1494
|
-
}),
|
|
1495
|
-
}, cl = (e) =>
|
|
1496
|
-
var
|
|
1494
|
+
}), rt(t, []);
|
|
1495
|
+
}, cl = (e) => ot(e), Qt = (e) => {
|
|
1496
|
+
var t, n, l, a, s, o, i, f;
|
|
1497
1497
|
try {
|
|
1498
|
-
const h = Se((n = (
|
|
1498
|
+
const h = Se((n = (t = u(e)) == null ? void 0 : t.replace("(", "(")) == null ? void 0 : n.replace(")", ")")), k = (a = (l = u(h)) == null ? void 0 : l.filter((C) => !C.includes("/*"))) == null ? void 0 : a.map((C) => Qn(C)), A = st(k), $ = [];
|
|
1499
1499
|
if (((s = A == null ? void 0 : A.find((C) => (C == null ? void 0 : C.key) === "Menus")) == null ? void 0 : s.value.length) === 0)
|
|
1500
1500
|
return !1;
|
|
1501
|
-
(o =
|
|
1502
|
-
var N, y, d,
|
|
1501
|
+
(o = u(A)) == null || o.forEach((C) => {
|
|
1502
|
+
var N, y, d, p, b;
|
|
1503
1503
|
L != null && L.find((c) => {
|
|
1504
1504
|
var r, m;
|
|
1505
1505
|
return ((r = c == null ? void 0 : c.key) == null ? void 0 : r.toUpperCase()) === ((m = C == null ? void 0 : C.key) == null ? void 0 : m.toUpperCase());
|
|
@@ -1517,210 +1517,210 @@ const L = [
|
|
|
1517
1517
|
comp: "Menu",
|
|
1518
1518
|
name: "",
|
|
1519
1519
|
compData: []
|
|
1520
|
-
}), (
|
|
1521
|
-
key: (
|
|
1520
|
+
}), (p = $ == null ? void 0 : $[($ == null ? void 0 : $.length) - 1]) != null && p.compData && $[($ == null ? void 0 : $.length) - 1].compData.push({
|
|
1521
|
+
key: (b = J == null ? void 0 : J.find((c) => {
|
|
1522
1522
|
var r, m;
|
|
1523
1523
|
return ((r = c == null ? void 0 : c.key) == null ? void 0 : r.toUpperCase()) === ((m = C == null ? void 0 : C.key) == null ? void 0 : m.toUpperCase());
|
|
1524
|
-
})) == null ? void 0 :
|
|
1524
|
+
})) == null ? void 0 : b.value,
|
|
1525
1525
|
contents: C == null ? void 0 : C.value
|
|
1526
1526
|
}));
|
|
1527
1527
|
});
|
|
1528
|
-
let O = (
|
|
1528
|
+
let O = (i = u($)) == null ? void 0 : i.map((C) => {
|
|
1529
1529
|
var N;
|
|
1530
1530
|
return C != null && C.compData && (C.compData = (N = C == null ? void 0 : C.compData) == null ? void 0 : N.map((y) => {
|
|
1531
|
-
var d,
|
|
1531
|
+
var d, p, b, c, r, m, _, T, v, x, U;
|
|
1532
1532
|
if ((y == null ? void 0 : y.key) === "formFlex")
|
|
1533
|
-
y.contents = ((
|
|
1533
|
+
y.contents = ((p = (d = y.contents) == null ? void 0 : d.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : p.toUpperCase()) !== "Vertical".toUpperCase();
|
|
1534
1534
|
else if ((y == null ? void 0 : y.key) === "groupContents")
|
|
1535
|
-
y.contents = (
|
|
1535
|
+
y.contents = (b = u(y.contents)) == null ? void 0 : b.map((E) => lt(u(E)));
|
|
1536
1536
|
else if (Array.isArray(y == null ? void 0 : y.contents))
|
|
1537
1537
|
y.contents = cl(y.contents);
|
|
1538
|
-
else if (((r = (c = y == null ? void 0 : y.contents) == null ? void 0 : c.trim()) != null && r.startsWith("[") || (_ = (m = y.contents) == null ? void 0 : m.trim()) != null && _.startsWith("【")) && ((v = (T = y.contents) == null ? void 0 : T.trim()) != null && v.endsWith("]") || (
|
|
1539
|
-
y.contents =
|
|
1538
|
+
else if (((r = (c = y == null ? void 0 : y.contents) == null ? void 0 : c.trim()) != null && r.startsWith("[") || (_ = (m = y.contents) == null ? void 0 : m.trim()) != null && _.startsWith("【")) && ((v = (T = y.contents) == null ? void 0 : T.trim()) != null && v.endsWith("]") || (U = (x = y.contents) == null ? void 0 : x.trim()) != null && U.endsWith("】")))
|
|
1539
|
+
y.contents = nt(u(y.contents));
|
|
1540
1540
|
else {
|
|
1541
1541
|
if (!y.contents) return;
|
|
1542
|
-
y.contents = rl(
|
|
1542
|
+
y.contents = rl(u(y.contents));
|
|
1543
1543
|
}
|
|
1544
1544
|
return y;
|
|
1545
1545
|
})), C;
|
|
1546
1546
|
});
|
|
1547
|
-
return O = (f =
|
|
1547
|
+
return O = (f = u(O)) == null ? void 0 : f.map((C) => {
|
|
1548
1548
|
var N;
|
|
1549
1549
|
return (C == null ? void 0 : C.comp) === "Group" && (C.compData = (N = C.compData) == null ? void 0 : N.map((y) => {
|
|
1550
|
-
var
|
|
1550
|
+
var p;
|
|
1551
1551
|
let d = [];
|
|
1552
|
-
return (
|
|
1553
|
-
var c, r, m, _, T, v, x,
|
|
1552
|
+
return (p = y.contents) == null || p.forEach((b) => {
|
|
1553
|
+
var c, r, m, _, T, v, x, U, E, D, B, P;
|
|
1554
1554
|
if (L != null && L.find((S) => {
|
|
1555
|
-
var
|
|
1556
|
-
return ((
|
|
1555
|
+
var g, j, F;
|
|
1556
|
+
return ((g = S == null ? void 0 : S.key) == null ? void 0 : g.toUpperCase()) === ((F = (j = Object.keys(b)) == null ? void 0 : j[0]) == null ? void 0 : F.toUpperCase());
|
|
1557
1557
|
}))
|
|
1558
1558
|
d.push({
|
|
1559
1559
|
comp: (c = L == null ? void 0 : L.find((S) => {
|
|
1560
|
-
var
|
|
1561
|
-
return ((
|
|
1560
|
+
var g, j, F;
|
|
1561
|
+
return ((g = S == null ? void 0 : S.key) == null ? void 0 : g.toUpperCase()) === ((F = (j = Object.keys(b)) == null ? void 0 : j[0]) == null ? void 0 : F.toUpperCase());
|
|
1562
1562
|
})) == null ? void 0 : c.value,
|
|
1563
|
-
name: (m = (r = Object.values(
|
|
1563
|
+
name: (m = (r = Object.values(b)) == null ? void 0 : r[0]) == null ? void 0 : m.replace(/[’]|[‘]|[']/g, ""),
|
|
1564
1564
|
compData: []
|
|
1565
1565
|
});
|
|
1566
1566
|
else if (J != null && J.find((S) => {
|
|
1567
|
-
var
|
|
1568
|
-
return ((
|
|
1567
|
+
var g, j, F;
|
|
1568
|
+
return ((g = S == null ? void 0 : S.key) == null ? void 0 : g.toUpperCase()) === ((F = (j = Object.keys(b)) == null ? void 0 : j[0]) == null ? void 0 : F.toUpperCase());
|
|
1569
1569
|
})) {
|
|
1570
1570
|
if ((d == null ? void 0 : d.length) === 0) return;
|
|
1571
1571
|
(_ = d == null ? void 0 : d[(d == null ? void 0 : d.length) - 1]) != null && _.compData && d[(d == null ? void 0 : d.length) - 1].compData.push({
|
|
1572
1572
|
key: (T = J == null ? void 0 : J.find((S) => {
|
|
1573
|
-
var
|
|
1574
|
-
return ((
|
|
1573
|
+
var g, j, F;
|
|
1574
|
+
return ((g = S == null ? void 0 : S.key) == null ? void 0 : g.toUpperCase()) === ((F = (j = Object.keys(b)) == null ? void 0 : j[0]) == null ? void 0 : F.toUpperCase());
|
|
1575
1575
|
})) == null ? void 0 : T.value,
|
|
1576
|
-
contents: (v = Object.values(
|
|
1576
|
+
contents: (v = Object.values(b)) == null ? void 0 : v[0]
|
|
1577
1577
|
});
|
|
1578
|
-
} else if ((
|
|
1579
|
-
const S = (D = (E = Object.keys(
|
|
1578
|
+
} else if ((U = (x = Object.keys(b)) == null ? void 0 : x[0]) != null && U.includes("$")) {
|
|
1579
|
+
const S = (D = (E = Object.keys(u(b))) == null ? void 0 : E[0]) == null ? void 0 : D.split("$");
|
|
1580
1580
|
d[(d == null ? void 0 : d.length) - 1].compData.push({
|
|
1581
|
-
key: (B = J == null ? void 0 : J.find((
|
|
1582
|
-
var
|
|
1583
|
-
return ((
|
|
1581
|
+
key: (B = J == null ? void 0 : J.find((g) => {
|
|
1582
|
+
var j, F;
|
|
1583
|
+
return ((j = g == null ? void 0 : g.key) == null ? void 0 : j.toUpperCase()) === ((F = S == null ? void 0 : S[0]) == null ? void 0 : F.toUpperCase());
|
|
1584
1584
|
})) == null ? void 0 : B.value,
|
|
1585
|
-
contents: (P = Object.values(
|
|
1585
|
+
contents: (P = Object.values(b)) == null ? void 0 : P[0],
|
|
1586
1586
|
selectLabel: S == null ? void 0 : S[1]
|
|
1587
1587
|
});
|
|
1588
1588
|
}
|
|
1589
|
-
return
|
|
1589
|
+
return b;
|
|
1590
1590
|
}), y.contents = d, y;
|
|
1591
1591
|
})), C;
|
|
1592
1592
|
}), O;
|
|
1593
1593
|
} catch {
|
|
1594
1594
|
return !1;
|
|
1595
1595
|
}
|
|
1596
|
-
},
|
|
1596
|
+
}, te = (e) => {
|
|
1597
1597
|
try {
|
|
1598
1598
|
return JSON.parse(e), !0;
|
|
1599
1599
|
} catch {
|
|
1600
1600
|
return !1;
|
|
1601
1601
|
}
|
|
1602
|
-
},
|
|
1603
|
-
const
|
|
1602
|
+
}, Xt = (e, t) => dn(e, t), ze = R(0), ul = (e) => {
|
|
1603
|
+
const t = [];
|
|
1604
1604
|
let n = null;
|
|
1605
1605
|
for (let l = 0; l < e.length; l++) {
|
|
1606
|
-
const
|
|
1607
|
-
if (Array.isArray(
|
|
1608
|
-
n && (n.children = ul(
|
|
1606
|
+
const a = e[l];
|
|
1607
|
+
if (Array.isArray(a))
|
|
1608
|
+
n && (n.children = ul(a));
|
|
1609
1609
|
else {
|
|
1610
|
-
const s = { label:
|
|
1611
|
-
|
|
1610
|
+
const s = { label: a };
|
|
1611
|
+
t.push(s), n = s;
|
|
1612
1612
|
}
|
|
1613
1613
|
}
|
|
1614
|
-
return
|
|
1614
|
+
return t;
|
|
1615
1615
|
}, pl = (e) => {
|
|
1616
|
-
let
|
|
1616
|
+
let t = 0;
|
|
1617
1617
|
for (const n of e)
|
|
1618
|
-
|
|
1619
|
-
return
|
|
1620
|
-
}, il = (e,
|
|
1618
|
+
t++, n.children && (t += pl(n.children));
|
|
1619
|
+
return t;
|
|
1620
|
+
}, il = (e, t, n = []) => {
|
|
1621
1621
|
let l = 0;
|
|
1622
|
-
for (const
|
|
1622
|
+
for (const a of t) {
|
|
1623
1623
|
if (l >= e.length) break;
|
|
1624
1624
|
const s = [...e[l]];
|
|
1625
|
-
if (n.push(s), l++,
|
|
1625
|
+
if (n.push(s), l++, a.children && a.children.length > 0) {
|
|
1626
1626
|
const o = [];
|
|
1627
1627
|
il(
|
|
1628
1628
|
e.slice(l),
|
|
1629
|
-
|
|
1629
|
+
a.children,
|
|
1630
1630
|
o
|
|
1631
|
-
), o.length > 0 && (s.push(o), l += pl(
|
|
1631
|
+
), o.length > 0 && (s.push(o), l += pl(a.children));
|
|
1632
1632
|
}
|
|
1633
1633
|
}
|
|
1634
1634
|
return n;
|
|
1635
|
-
},
|
|
1635
|
+
}, ct = (e, t) => {
|
|
1636
1636
|
let n = [];
|
|
1637
|
-
return e == null || e.forEach((
|
|
1638
|
-
|
|
1639
|
-
}), il(n,
|
|
1637
|
+
return e == null || e.forEach((a) => {
|
|
1638
|
+
a.some((s) => Array.isArray(s)) ? n.push(...a) : n.push(a);
|
|
1639
|
+
}), il(n, t);
|
|
1640
1640
|
}, ve = (e) => {
|
|
1641
|
-
const
|
|
1641
|
+
const t = { label: e[0].trim() };
|
|
1642
1642
|
if (e.length > 1) {
|
|
1643
1643
|
const n = e.slice(1);
|
|
1644
|
-
n.length === 1 && Array.isArray(n[0]) ?
|
|
1644
|
+
n.length === 1 && Array.isArray(n[0]) ? t.children = n[0].map(
|
|
1645
1645
|
(l) => Array.isArray(l) ? ve(l) : { label: l.trim() }
|
|
1646
|
-
) :
|
|
1646
|
+
) : t.children = n.map(
|
|
1647
1647
|
(l) => Array.isArray(l) ? ve(l) : { label: l.trim() }
|
|
1648
1648
|
);
|
|
1649
1649
|
}
|
|
1650
|
-
return
|
|
1650
|
+
return t;
|
|
1651
1651
|
}, Qe = (e) => {
|
|
1652
|
-
let
|
|
1653
|
-
return
|
|
1652
|
+
let t = e.replace(/:([^{}\[\],\s]+)([,\]}])/g, ':"$1"$2');
|
|
1653
|
+
return t = t.replace(/:}(?=,|]|}|$)/g, ':""}'), t = t.replace(/:,(?=\s*")/g, ':"",'), t = t.replace(
|
|
1654
1654
|
/(https?|HTTPS?):"\/\/([^"]+)"/gi,
|
|
1655
|
-
(n, l,
|
|
1656
|
-
),
|
|
1655
|
+
(n, l, a) => `"${l}://${a}"`
|
|
1656
|
+
), t = t.replace(
|
|
1657
1657
|
/(\[|\s|,)((?:https?|HTTPS?):\/\/[^\s,\]]+)(\]|,|$)/gi,
|
|
1658
1658
|
'$1"$2"$3'
|
|
1659
|
-
),
|
|
1660
|
-
},
|
|
1659
|
+
), t;
|
|
1660
|
+
}, ut = (e) => {
|
|
1661
1661
|
var n;
|
|
1662
|
-
return e.some((l) => !Array.isArray(l)) ? e : (n =
|
|
1663
|
-
let
|
|
1662
|
+
return e.some((l) => !Array.isArray(l)) ? e : (n = u(e)) == null ? void 0 : n.map((l) => {
|
|
1663
|
+
let a = [];
|
|
1664
1664
|
return l.some((s) => Array.isArray(s)) ? l == null || l.forEach((s) => {
|
|
1665
|
-
Array.isArray(s) &&
|
|
1666
|
-
}) : l.some((s) => s.includes("[")) ?
|
|
1665
|
+
Array.isArray(s) && a.push(ve(s));
|
|
1666
|
+
}) : l.some((s) => s.includes("[")) ? a.push(l) : a = l.map((s) => ({ label: s.trim() })), a;
|
|
1667
1667
|
});
|
|
1668
|
-
}, fl = (e,
|
|
1669
|
-
let l = e,
|
|
1670
|
-
return s.children && (Array.isArray(
|
|
1668
|
+
}, fl = (e, t, n) => {
|
|
1669
|
+
let l = e, a = n, s = t;
|
|
1670
|
+
return s.children && (Array.isArray(a[a.length - 1]) ? a[a.length - 1].push(l[0]) : a.push(l[0]), l.shift(), s = s.children), Array.isArray(s) && s.forEach((o) => {
|
|
1671
1671
|
if (o.children) {
|
|
1672
|
-
const
|
|
1673
|
-
|
|
1672
|
+
const i = fl(l, o, a);
|
|
1673
|
+
a = i[0], l = i[1];
|
|
1674
1674
|
}
|
|
1675
|
-
}), [
|
|
1676
|
-
},
|
|
1675
|
+
}), [a, l];
|
|
1676
|
+
}, pt = (e, t) => {
|
|
1677
1677
|
let n = e, l = [];
|
|
1678
|
-
return
|
|
1678
|
+
return t.length > 0 ? t == null || t.forEach((a) => {
|
|
1679
1679
|
let s = n == null ? void 0 : n[0];
|
|
1680
1680
|
n.shift();
|
|
1681
|
-
const o = fl(
|
|
1681
|
+
const o = fl(u(n), a, s);
|
|
1682
1682
|
s = o[0], n = o[1], l.push(s);
|
|
1683
1683
|
}) : l = n, l;
|
|
1684
|
-
}, Ne = (e,
|
|
1685
|
-
const n =
|
|
1686
|
-
return
|
|
1687
|
-
},
|
|
1688
|
-
const
|
|
1684
|
+
}, Ne = (e, t) => {
|
|
1685
|
+
const n = ut(u(e));
|
|
1686
|
+
return pt(n, t);
|
|
1687
|
+
}, it = (e) => {
|
|
1688
|
+
const t = [];
|
|
1689
1689
|
let n = 0;
|
|
1690
1690
|
const l = e.length;
|
|
1691
1691
|
for (; n < l; ) {
|
|
1692
|
-
const
|
|
1693
|
-
|
|
1692
|
+
const a = e[n];
|
|
1693
|
+
a.key === "tableColumns" && n + 1 < l && e[n + 1].key === "tableContents" ? (t.push({
|
|
1694
1694
|
comp: "Table",
|
|
1695
|
-
compData: [
|
|
1695
|
+
compData: [a, e[n + 1]],
|
|
1696
1696
|
name: ""
|
|
1697
|
-
}), n += 2) : (
|
|
1697
|
+
}), n += 2) : (t.push(a), n += 1);
|
|
1698
1698
|
}
|
|
1699
|
-
return
|
|
1699
|
+
return t;
|
|
1700
1700
|
}, dl = (e) => Ne([e], []), Xe = (e) => {
|
|
1701
|
-
const
|
|
1702
|
-
return e == null || e.forEach((n) => n == null ? void 0 : n.forEach((
|
|
1701
|
+
const t = [];
|
|
1702
|
+
return e == null || e.forEach((n) => n == null ? void 0 : n.forEach((a) => {
|
|
1703
1703
|
var s, o;
|
|
1704
|
-
ze.value++,
|
|
1704
|
+
ze.value++, t.push({
|
|
1705
1705
|
id: ze.value,
|
|
1706
|
-
key: (s = Object.keys(
|
|
1707
|
-
value: (o = Object.values(
|
|
1706
|
+
key: (s = Object.keys(a)) == null ? void 0 : s[0],
|
|
1707
|
+
value: (o = Object.values(a)) == null ? void 0 : o[0],
|
|
1708
1708
|
// 如果值为空,则key设为空字符串,否则保留原值
|
|
1709
1709
|
width: n.length
|
|
1710
1710
|
});
|
|
1711
|
-
})),
|
|
1711
|
+
})), t;
|
|
1712
1712
|
}, Ye = (e) => {
|
|
1713
|
-
let
|
|
1714
|
-
return
|
|
1715
|
-
var l,
|
|
1713
|
+
let t = it(e);
|
|
1714
|
+
return t = t == null ? void 0 : t.map((n) => {
|
|
1715
|
+
var l, a, s, o;
|
|
1716
1716
|
if (n.comp === "Table")
|
|
1717
|
-
(l = n.compData) != null && l.find((
|
|
1717
|
+
(l = n.compData) != null && l.find((i) => (i == null ? void 0 : i.key) === "header") || (n.compData = (a = n.compData) == null ? void 0 : a.map((i) => (i.key === "tableColumns" ? i = {
|
|
1718
1718
|
key: "header",
|
|
1719
|
-
contents: Ne(
|
|
1720
|
-
} :
|
|
1721
|
-
key:
|
|
1722
|
-
contents:
|
|
1723
|
-
},
|
|
1719
|
+
contents: Ne(i.value, [])
|
|
1720
|
+
} : i = {
|
|
1721
|
+
key: i.key,
|
|
1722
|
+
contents: i.value
|
|
1723
|
+
}, i)), n.compData.push({
|
|
1724
1724
|
key: "extraButton",
|
|
1725
1725
|
contents: [{ label: "新增" }]
|
|
1726
1726
|
}), n.compData.push({
|
|
@@ -1728,7 +1728,7 @@ const L = [
|
|
|
1728
1728
|
contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
|
|
1729
1729
|
}));
|
|
1730
1730
|
else if (n.key === "form") {
|
|
1731
|
-
const
|
|
1731
|
+
const i = (s = n == null ? void 0 : n.value) == null ? void 0 : s.map((f) => (Array.isArray(f) || (f = [f]), f));
|
|
1732
1732
|
n = {
|
|
1733
1733
|
comp: "Form",
|
|
1734
1734
|
compData: [
|
|
@@ -1738,13 +1738,13 @@ const L = [
|
|
|
1738
1738
|
},
|
|
1739
1739
|
{
|
|
1740
1740
|
key: "formContent",
|
|
1741
|
-
contents: Xe(
|
|
1741
|
+
contents: Xe(i)
|
|
1742
1742
|
}
|
|
1743
1743
|
],
|
|
1744
1744
|
name: ""
|
|
1745
1745
|
};
|
|
1746
1746
|
} else if (n.key === "formTop") {
|
|
1747
|
-
const
|
|
1747
|
+
const i = (o = n == null ? void 0 : n.value) == null ? void 0 : o.map((f) => (Array.isArray(f) || (f = [f]), f));
|
|
1748
1748
|
n = {
|
|
1749
1749
|
comp: "FormTop",
|
|
1750
1750
|
compData: [
|
|
@@ -1754,31 +1754,31 @@ const L = [
|
|
|
1754
1754
|
},
|
|
1755
1755
|
{
|
|
1756
1756
|
key: "formContent",
|
|
1757
|
-
contents: Xe(
|
|
1757
|
+
contents: Xe(i)
|
|
1758
1758
|
}
|
|
1759
1759
|
],
|
|
1760
1760
|
name: ""
|
|
1761
1761
|
};
|
|
1762
1762
|
}
|
|
1763
1763
|
return n;
|
|
1764
|
-
}),
|
|
1765
|
-
},
|
|
1766
|
-
var
|
|
1767
|
-
const n = [], l = ul((f = (
|
|
1764
|
+
}), t;
|
|
1765
|
+
}, ft = (e, t) => {
|
|
1766
|
+
var i, f, h, k, A, $;
|
|
1767
|
+
const n = [], l = ul((f = (i = e == null ? void 0 : e.find((O) => O.key === "tableIndex")) == null ? void 0 : i.value) == null ? void 0 : f[0]);
|
|
1768
1768
|
n.push({
|
|
1769
1769
|
key: "tableIndexColumn",
|
|
1770
|
-
contents:
|
|
1770
|
+
contents: t
|
|
1771
1771
|
}), n.push({
|
|
1772
1772
|
key: "tableIndex",
|
|
1773
1773
|
contents: l
|
|
1774
1774
|
});
|
|
1775
|
-
let
|
|
1775
|
+
let a = [];
|
|
1776
1776
|
const s = (h = e == null ? void 0 : e.find((O) => O.key === "tableColumns")) == null ? void 0 : h.value;
|
|
1777
|
-
s.length === 1 && !(s != null && s[0].some((O) => Array.isArray(O))) ?
|
|
1777
|
+
s.length === 1 && !(s != null && s[0].some((O) => Array.isArray(O))) ? a = (k = s == null ? void 0 : s[0]) == null ? void 0 : k.map((O) => ({ label: O })) : a = Ne((A = e == null ? void 0 : e.find((O) => O.key === "tableColumns")) == null ? void 0 : A.value, l), n.push({
|
|
1778
1778
|
key: "header",
|
|
1779
|
-
contents:
|
|
1779
|
+
contents: a
|
|
1780
1780
|
});
|
|
1781
|
-
const o =
|
|
1781
|
+
const o = ct(($ = e == null ? void 0 : e.find((O) => O.key === "tableContents")) == null ? void 0 : $.value, l);
|
|
1782
1782
|
return n.push({
|
|
1783
1783
|
key: "tableContents",
|
|
1784
1784
|
contents: o
|
|
@@ -1789,78 +1789,78 @@ const L = [
|
|
|
1789
1789
|
key: "rowButton",
|
|
1790
1790
|
contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
|
|
1791
1791
|
}), n;
|
|
1792
|
-
}, yl = (e) => e.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g, (
|
|
1793
|
-
const
|
|
1794
|
-
return `"${n}",${
|
|
1792
|
+
}, yl = (e) => e.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g, (t, n, l) => {
|
|
1793
|
+
const a = yl(l);
|
|
1794
|
+
return `"${n}",${a}`;
|
|
1795
1795
|
}), de = (e) => {
|
|
1796
|
-
const
|
|
1797
|
-
return yl(
|
|
1798
|
-
},
|
|
1799
|
-
const
|
|
1796
|
+
const t = e.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g, '"$1",$2');
|
|
1797
|
+
return yl(t).replace(/^"(.*)"$/, "$1");
|
|
1798
|
+
}, dt = (e) => {
|
|
1799
|
+
const t = /* @__PURE__ */ new Set();
|
|
1800
1800
|
return e.filter((n) => {
|
|
1801
1801
|
const l = JSON.stringify(n);
|
|
1802
|
-
return
|
|
1802
|
+
return t.has(l) ? !1 : t.add(l);
|
|
1803
1803
|
});
|
|
1804
1804
|
}, Ve = (e) => {
|
|
1805
1805
|
var n;
|
|
1806
|
-
let
|
|
1807
|
-
return (n =
|
|
1808
|
-
var
|
|
1809
|
-
(
|
|
1810
|
-
|
|
1806
|
+
let t = [];
|
|
1807
|
+
return (n = u(e)) == null || n.forEach((l) => {
|
|
1808
|
+
var a;
|
|
1809
|
+
(a = l.contents) == null || a.forEach((s) => {
|
|
1810
|
+
t.push(s);
|
|
1811
1811
|
});
|
|
1812
|
-
}),
|
|
1812
|
+
}), t = dt(t), t.push({
|
|
1813
1813
|
label: "操作"
|
|
1814
|
-
}), [
|
|
1815
|
-
},
|
|
1816
|
-
const s = Math.floor(
|
|
1814
|
+
}), [t];
|
|
1815
|
+
}, yt = (e, t) => e.reduce((n, l, a) => {
|
|
1816
|
+
const s = Math.floor(a / t);
|
|
1817
1817
|
return n[s] || (n[s] = []), n[s].push(l), n;
|
|
1818
|
-
}, []), hl = (e) => e.reduce((
|
|
1818
|
+
}, []), hl = (e) => e.reduce((t, n) => n.children && n.children.length > 0 ? t + hl(n.children) : t + 1, 0), ht = (e, t) => {
|
|
1819
1819
|
var l;
|
|
1820
1820
|
let n = [];
|
|
1821
|
-
return (l =
|
|
1821
|
+
return (l = yt(e, hl(t == null ? void 0 : t[0]) - 1)) == null || l.forEach((a) => {
|
|
1822
1822
|
let s = [];
|
|
1823
|
-
|
|
1824
|
-
var
|
|
1825
|
-
Array.isArray(o.contents) ? (
|
|
1823
|
+
a.forEach((o) => {
|
|
1824
|
+
var i;
|
|
1825
|
+
Array.isArray(o.contents) ? (i = o.contents) == null || i.forEach((f) => {
|
|
1826
1826
|
s.push(f);
|
|
1827
1827
|
}) : s.push(o.contents);
|
|
1828
1828
|
}), n.push(s);
|
|
1829
1829
|
}), [n];
|
|
1830
|
-
},
|
|
1831
|
-
let
|
|
1830
|
+
}, mt = ["方法体", "输入", "输出"], el = R(1), Se = (e) => {
|
|
1831
|
+
let t;
|
|
1832
1832
|
e.replaceAll(" ", `\r
|
|
1833
1833
|
`).includes(`\r
|
|
1834
|
-
`) ?
|
|
1834
|
+
`) ? t = e.replaceAll(" ", `\r
|
|
1835
1835
|
`).split(`\r
|
|
1836
|
-
`).filter((
|
|
1836
|
+
`).filter((a) => a.trim() !== "") : t = e.replaceAll(" ", `\r
|
|
1837
1837
|
`).split(`
|
|
1838
|
-
`).filter((
|
|
1838
|
+
`).filter((a) => a.trim() !== "");
|
|
1839
1839
|
const n = [];
|
|
1840
1840
|
let l = "";
|
|
1841
|
-
for (const
|
|
1842
|
-
|
|
1841
|
+
for (const a of t)
|
|
1842
|
+
a.includes("{") || l.includes("{") || a.includes("[") || l.includes("[") || a.includes("【") || l.includes("【") || a.includes("(") || l.includes("(") || a.includes("(") || l.includes("(") || a.includes("/*") || l.includes("/*") ? (l += a.trim(), u(l).split("{").length - 1 === u(l).split("}").length - 1 && u(l).split("【").length - 1 === u(l).split("】").length - 1 && u(l).split("[").length - 1 === u(l).split("]").length - 1 && u(l).split("(").length - 1 === u(l).split(")").length - 1 && u(l).split("(").length - 1 === u(l).split(")").length - 1 && u(l).split("/*").length - 1 === u(l).split("*/").length - 1 && l[l.length - 1] !== "," && (n.push(l.replace(/\/\*[\s\S]*?\*\//g, "")), l = "")) : n.push(a.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
|
|
1843
1843
|
return n;
|
|
1844
|
-
},
|
|
1845
|
-
const [
|
|
1846
|
-
return { key: l, value:
|
|
1844
|
+
}, bt = (e) => {
|
|
1845
|
+
const [t, n] = e.split(/=(.+)/), l = t.replace(/['"]/g, "").trim(), a = n.replace(/^['"]|['"]$/g, "");
|
|
1846
|
+
return { key: l, value: a };
|
|
1847
1847
|
}, Ce = (e) => {
|
|
1848
|
-
let
|
|
1849
|
-
e.includes(":") ?
|
|
1848
|
+
let t;
|
|
1849
|
+
e.includes(":") ? t = e.split(":").filter((a) => a.trim() !== "") : t = e.split(":").filter((a) => a.trim() !== "");
|
|
1850
1850
|
const n = [];
|
|
1851
1851
|
let l = "";
|
|
1852
|
-
for (const
|
|
1853
|
-
|
|
1852
|
+
for (const a of t)
|
|
1853
|
+
a.includes("{") || l.includes("{") || a.includes("[") || l.includes("[") || a.includes("【") || l.includes("【") || a.includes("(") || l.includes("(") || a.includes("(") || l.includes("(") || a.includes("/*") || l.includes("/*") ? (l = l !== "" ? l + ":" + a.trim() : a.trim(), u(l).split("{").length - 1 === u(l).split("}").length - 1 && u(l).split("【").length - 1 === u(l).split("】").length - 1 && u(l).split("[").length - 1 === u(l).split("]").length - 1 && u(l).split("(").length - 1 === u(l).split(")").length - 1 && u(l).split("(").length - 1 === u(l).split(")").length - 1 && u(l).split("/*").length - 1 === u(l).split("*/").length - 1 && (n.push(l.replace(/\/\*[\s\S]*?\*\//g, "")), l = "")) : n.push(a.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
|
|
1854
1854
|
return n;
|
|
1855
|
-
},
|
|
1856
|
-
var
|
|
1857
|
-
const
|
|
1858
|
-
var
|
|
1859
|
-
let o = (f = (
|
|
1855
|
+
}, gt = (e) => /^[\x00-\x7F]*$/.test(e), kt = (e) => {
|
|
1856
|
+
var a;
|
|
1857
|
+
const t = e.map((s) => {
|
|
1858
|
+
var i, f;
|
|
1859
|
+
let o = (f = (i = s.key.split("(")) == null ? void 0 : i[1]) == null ? void 0 : f.trim();
|
|
1860
1860
|
return o.slice(0, o.length - 1);
|
|
1861
|
-
}), n =
|
|
1862
|
-
var
|
|
1863
|
-
return (
|
|
1861
|
+
}), n = t == null ? void 0 : t.map((s) => {
|
|
1862
|
+
var i;
|
|
1863
|
+
return (i = Ce(s)) == null ? void 0 : i.map((f) => {
|
|
1864
1864
|
var h;
|
|
1865
1865
|
if (f.includes("{")) {
|
|
1866
1866
|
let k = (h = f.split(":")) == null ? void 0 : h[0];
|
|
@@ -1868,195 +1868,195 @@ const L = [
|
|
|
1868
1868
|
}
|
|
1869
1869
|
return f;
|
|
1870
1870
|
});
|
|
1871
|
-
}).filter((s) => s.length !== 0), l = (
|
|
1871
|
+
}).filter((s) => s.length !== 0), l = (a = n == null ? void 0 : n.filter((s) => s.length !== 0)) == null ? void 0 : a.map((s) => {
|
|
1872
1872
|
let o = "";
|
|
1873
|
-
return s.forEach((
|
|
1874
|
-
|
|
1873
|
+
return s.forEach((i) => {
|
|
1874
|
+
i.includes("{") || (o = o === "" ? o + u(i) : o + "/" + u(i));
|
|
1875
1875
|
}), o;
|
|
1876
1876
|
});
|
|
1877
1877
|
return cl([...new Set(l)]);
|
|
1878
1878
|
}, ml = (e) => {
|
|
1879
|
-
var n, l,
|
|
1880
|
-
const
|
|
1881
|
-
return ((
|
|
1882
|
-
},
|
|
1883
|
-
var
|
|
1879
|
+
var n, l, a, s, o, i, f, h;
|
|
1880
|
+
const t = (l = (n = e.split("(")) == null ? void 0 : n[1]) == null ? void 0 : l.trim();
|
|
1881
|
+
return ((a = Ce(t.slice(0, t.length - 1))) == null ? void 0 : a.length) > 0 ? t.slice(0, t.length - 1) : (h = (f = (i = (o = (s = e.split("(")) == null ? void 0 : s[1]) == null ? void 0 : o.trim()) == null ? void 0 : i.split(")")) == null ? void 0 : f[0]) == null ? void 0 : h.trim();
|
|
1882
|
+
}, Ct = (e) => {
|
|
1883
|
+
var a;
|
|
1884
1884
|
if (!e) return;
|
|
1885
|
-
const
|
|
1885
|
+
const t = ml(e), n = (a = Ce(t)) == null ? void 0 : a.map((s) => {
|
|
1886
1886
|
var o;
|
|
1887
1887
|
if (s.includes("{")) {
|
|
1888
|
-
let
|
|
1889
|
-
s =
|
|
1888
|
+
let i = (o = s.split(":")) == null ? void 0 : o[0];
|
|
1889
|
+
s = i.slice(1, i.length);
|
|
1890
1890
|
}
|
|
1891
1891
|
return s;
|
|
1892
1892
|
});
|
|
1893
1893
|
let l = "";
|
|
1894
1894
|
return n.forEach((s) => {
|
|
1895
|
-
s.includes("{") || (l = l === "" ? l +
|
|
1895
|
+
s.includes("{") || (l = l === "" ? l + u(s) : l + "/" + u(s));
|
|
1896
1896
|
}), l;
|
|
1897
|
-
},
|
|
1898
|
-
const
|
|
1899
|
-
if (
|
|
1900
|
-
const n = `[${
|
|
1897
|
+
}, At = (e) => {
|
|
1898
|
+
const t = e.match(/\[(.*)\]/s);
|
|
1899
|
+
if (t) {
|
|
1900
|
+
const n = `[${t[1]}]`;
|
|
1901
1901
|
try {
|
|
1902
1902
|
const l = n.replace(/([^\[\],\s]+)/g, '"$1"');
|
|
1903
1903
|
return JSON.parse(l);
|
|
1904
|
-
} catch {
|
|
1905
|
-
|
|
1904
|
+
} catch (l) {
|
|
1905
|
+
console.error("解析失败:", l);
|
|
1906
1906
|
}
|
|
1907
1907
|
}
|
|
1908
|
-
}, $
|
|
1908
|
+
}, $t = (e) => {
|
|
1909
1909
|
var s;
|
|
1910
1910
|
if (!e) return;
|
|
1911
|
-
const
|
|
1912
|
-
let n = [], l = [],
|
|
1913
|
-
return (s = Ce(
|
|
1914
|
-
var
|
|
1915
|
-
o.includes("[") ? n.push(
|
|
1916
|
-
}), [n, l,
|
|
1917
|
-
},
|
|
1918
|
-
const
|
|
1911
|
+
const t = ml(e);
|
|
1912
|
+
let n = [], l = [], a = [];
|
|
1913
|
+
return (s = Ce(t)) == null || s.forEach((o) => {
|
|
1914
|
+
var i;
|
|
1915
|
+
o.includes("[") ? n.push(At(o)) : o.includes("{") && (gt((i = o.slice(1, o.length - 1).split(":")) == null ? void 0 : i[0]) ? a.push(JSON.parse(o.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3'))) : te(o.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3')) ? l.push(JSON.parse(o.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3'))) : o.includes("$") || l.push(o.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3')));
|
|
1916
|
+
}), [n, l, a];
|
|
1917
|
+
}, _t = (e) => {
|
|
1918
|
+
const t = [];
|
|
1919
1919
|
let n = "";
|
|
1920
1920
|
for (const l of e)
|
|
1921
|
-
l.includes("[") || n.includes("[") || l.includes("/*") || n.includes("/*") ? (n += l.trim(),
|
|
1922
|
-
return
|
|
1921
|
+
l.includes("[") || n.includes("[") || l.includes("/*") || n.includes("/*") ? (n += l.trim(), u(n).split("{").length - 1 === u(n).split("}").length - 1 && u(n).split("【").length - 1 === u(n).split("】").length - 1 && u(n).split("[").length - 1 === u(n).split("]").length - 1 && u(n).split("(").length - 1 === u(n).split(")").length - 1 && u(n).split("(").length - 1 === u(n).split(")").length - 1 && u(n).split("/*").length - 1 === u(n).split("*/").length - 1 && (t.push(n.replace(/\/\*[\s\S]*?\*\//g, "")), n = "")) : t.push(l.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
|
|
1922
|
+
return t;
|
|
1923
1923
|
}, ll = (e) => {
|
|
1924
|
-
var o,
|
|
1925
|
-
const
|
|
1924
|
+
var o, i;
|
|
1925
|
+
const t = [], n = /(?:{'([^']+)'[^}]+}: {'([^']+)'[^}]+}|'([^']+)': {'([^']+)'[^}]+})/, l = e.match(n);
|
|
1926
1926
|
if (l) {
|
|
1927
1927
|
const f = l[1] || l[3], h = l[2] || l[4];
|
|
1928
1928
|
if (f && h) {
|
|
1929
1929
|
const k = `${f}/${h}`;
|
|
1930
|
-
|
|
1930
|
+
t.push(k);
|
|
1931
1931
|
}
|
|
1932
1932
|
}
|
|
1933
|
-
const
|
|
1934
|
-
return s ?
|
|
1933
|
+
const a = /(https?:\/\/[^\s)]+|Http:\/\/[^\s)]+|\/[^\s)]+)/i, s = e.match(a);
|
|
1934
|
+
return s ? t.push(s[0].replace(/\)+$/, "")) : (e == null ? void 0 : e.split(",").length) === 2 && t.push((i = (o = e == null ? void 0 : e.split(",")) == null ? void 0 : o[1]) == null ? void 0 : i.trim()), t;
|
|
1935
1935
|
}, Oe = (e) => {
|
|
1936
|
-
let
|
|
1937
|
-
return
|
|
1938
|
-
},
|
|
1939
|
-
const
|
|
1936
|
+
let t = e.replace(/\[\s*,\s*,/g, '[{"": ""}, {"": ""},');
|
|
1937
|
+
return t = t.replace(/\[\s*,/g, '[{"": ""},'), t = t.replace(/,\s*,/g, ', {"": ""},'), t = t.replace(/,\s*\]/g, ', {"": ""}]'), t = t.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,\]}])/g, (n, l, a, s, o) => a.includes("'") ? `:${l}${a}${s}${o}` : `:${l}"${a}"${s}${o}`), t = t.replace(/:\s*([,\]}])/g, ': ""$1'), t;
|
|
1938
|
+
}, Ot = (e) => !/\[[^\]]*\{[^\]]*\]/.test(e), Tt = (e) => {
|
|
1939
|
+
const t = u(e).match(/(\w+)\(['"]([^'"]+)['"]:\s*\{['"]([^'"]+)['"]\}\)/), n = t ? `${t[2]}/${t[3]}` : null, l = e.match(/\[\{([^}]+)\}\]/), a = l == null ? void 0 : l[1].replaceAll(":", "").replaceAll("'", '"').trim();
|
|
1940
1940
|
let s = null;
|
|
1941
|
-
if (
|
|
1941
|
+
if (a)
|
|
1942
1942
|
try {
|
|
1943
|
-
s = JSON.parse(
|
|
1943
|
+
s = JSON.parse(a);
|
|
1944
1944
|
} catch (o) {
|
|
1945
1945
|
console.error("解析数组失败:", o);
|
|
1946
1946
|
}
|
|
1947
1947
|
return [n, s];
|
|
1948
|
-
},
|
|
1949
|
-
var
|
|
1950
|
-
let
|
|
1948
|
+
}, xt = (e) => {
|
|
1949
|
+
var i, f, h, k, A, $, O, C, N, y, d;
|
|
1950
|
+
let t = [], n = [], l = {}, a = [], s = e.trim(), o = [];
|
|
1951
1951
|
if (s.trim().includes("输入") && s.trim().includes("输出")) {
|
|
1952
|
-
let
|
|
1953
|
-
|
|
1952
|
+
let p = [], b = e.trim();
|
|
1953
|
+
b = u(b).slice(1, u(b).length - 1);
|
|
1954
1954
|
const c = /(\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})/g;
|
|
1955
|
-
(C =
|
|
1955
|
+
(C = b.match(c)) == null || C.forEach((r, m) => {
|
|
1956
1956
|
var v;
|
|
1957
1957
|
const _ = r;
|
|
1958
1958
|
let T = [];
|
|
1959
1959
|
(v = _.slice(1, _.length - 1).replace(":", "$:").split("$:")) == null || v.forEach((x) => {
|
|
1960
|
-
var
|
|
1961
|
-
if (
|
|
1960
|
+
var U, E, D;
|
|
1961
|
+
if (mt.find((B) => x.includes(B)))
|
|
1962
1962
|
if (!x.includes("=="))
|
|
1963
1963
|
T.push({ key: "tableIndexColumn", contents: x.replaceAll("'", "") });
|
|
1964
1964
|
else {
|
|
1965
1965
|
let B = [];
|
|
1966
1966
|
const P = x.replaceAll("'", "").split("==");
|
|
1967
|
-
B.push(P == null ? void 0 : P[0]), P != null && P[1].includes("[") ? B.push(P == null ? void 0 : P[1].trim().slice(1, (P == null ? void 0 : P[1].length) - 1).split(",")) : B.push([P == null ? void 0 : P[1]]), T.push({ key: "header", contents: [(E = (
|
|
1967
|
+
B.push(P == null ? void 0 : P[0]), P != null && P[1].includes("[") ? B.push(P == null ? void 0 : P[1].trim().slice(1, (P == null ? void 0 : P[1].length) - 1).split(",")) : B.push([P == null ? void 0 : P[1]]), T.push({ key: "header", contents: [(E = (U = dl([B])) == null ? void 0 : U[0]) == null ? void 0 : E[0]] });
|
|
1968
1968
|
}
|
|
1969
1969
|
else {
|
|
1970
1970
|
let B = x.trim().replaceAll(",", ",").replaceAll("'", '"');
|
|
1971
1971
|
if (m % 3 === 0)
|
|
1972
|
-
B.slice(1, B.length - 1).includes("[") ?
|
|
1972
|
+
B.slice(1, B.length - 1).includes("[") ? p.push({
|
|
1973
1973
|
key: "tableIndex",
|
|
1974
1974
|
contents: [{ label: B }]
|
|
1975
|
-
}) :
|
|
1975
|
+
}) : p.push({
|
|
1976
1976
|
key: "tableIndex",
|
|
1977
1977
|
contents: [{ label: B.slice(1, B.length - 1) }]
|
|
1978
1978
|
});
|
|
1979
1979
|
else if ((B == null ? void 0 : B[0]) === "{") {
|
|
1980
1980
|
let P = [];
|
|
1981
1981
|
const S = B.slice(1, B.length - 1).split(":");
|
|
1982
|
-
if (S.every((
|
|
1982
|
+
if (S.every((g) => te(g.trim()))) {
|
|
1983
1983
|
P.push({ key: "tableContentName", contents: "详情" });
|
|
1984
|
-
let
|
|
1985
|
-
S.forEach((
|
|
1986
|
-
if (
|
|
1987
|
-
const w = JSON.parse(
|
|
1984
|
+
let g = [];
|
|
1985
|
+
S.forEach((j, F) => {
|
|
1986
|
+
if (F === 0) {
|
|
1987
|
+
const w = JSON.parse(j).map((W) => ({ label: W }));
|
|
1988
1988
|
w.push({
|
|
1989
1989
|
label: "操作"
|
|
1990
|
-
}),
|
|
1990
|
+
}), g.push({
|
|
1991
1991
|
key: "header",
|
|
1992
1992
|
contents: w
|
|
1993
1993
|
});
|
|
1994
1994
|
} else
|
|
1995
|
-
|
|
1995
|
+
g.push({
|
|
1996
1996
|
key: "tableContents",
|
|
1997
|
-
contents: JSON.parse(
|
|
1997
|
+
contents: JSON.parse(j)
|
|
1998
1998
|
});
|
|
1999
|
-
}),
|
|
1999
|
+
}), g.push({
|
|
2000
2000
|
key: "extraButton",
|
|
2001
2001
|
contents: [{ label: "新增" }]
|
|
2002
|
-
}),
|
|
2002
|
+
}), g.push({
|
|
2003
2003
|
key: "rowButton",
|
|
2004
2004
|
contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
|
|
2005
2005
|
}), P.push({
|
|
2006
2006
|
comp: "Table",
|
|
2007
|
-
compData:
|
|
2007
|
+
compData: g,
|
|
2008
2008
|
name: ""
|
|
2009
|
-
}),
|
|
2009
|
+
}), p.push({
|
|
2010
2010
|
key: "tableContents",
|
|
2011
2011
|
contents: [P]
|
|
2012
2012
|
});
|
|
2013
2013
|
}
|
|
2014
2014
|
} else {
|
|
2015
2015
|
let P = B;
|
|
2016
|
-
P.slice(1, P.length - 1).includes("[") || P.slice(1, P.length - 1).includes("{") ?
|
|
2016
|
+
P.slice(1, P.length - 1).includes("[") || P.slice(1, P.length - 1).includes("{") ? te(Qe(P.replace(/\s+/g, ""))) && ((D = JSON.parse(Qe(P.replace(/\s+/g, "")))) == null || D.map((S) => {
|
|
2017
2017
|
if (Array.isArray(S == null ? void 0 : S[0])) {
|
|
2018
|
-
const
|
|
2019
|
-
|
|
2020
|
-
let
|
|
2021
|
-
S.forEach((
|
|
2022
|
-
|
|
2018
|
+
const g = [];
|
|
2019
|
+
g.push({ key: "tableContentName", contents: "详情" });
|
|
2020
|
+
let j = [];
|
|
2021
|
+
S.forEach((F) => {
|
|
2022
|
+
F.forEach((w) => {
|
|
2023
2023
|
var W, K;
|
|
2024
|
-
el.value++,
|
|
2024
|
+
el.value++, j.push({
|
|
2025
2025
|
id: el.value,
|
|
2026
2026
|
key: (W = Object.keys(w)) == null ? void 0 : W[0],
|
|
2027
2027
|
value: (K = Object.values(w)) == null ? void 0 : K[0],
|
|
2028
|
-
width:
|
|
2028
|
+
width: F.length
|
|
2029
2029
|
});
|
|
2030
2030
|
});
|
|
2031
|
-
}),
|
|
2031
|
+
}), g.push({
|
|
2032
2032
|
comp: "Form",
|
|
2033
2033
|
compData: [{
|
|
2034
2034
|
key: "formFlex",
|
|
2035
2035
|
contents: ""
|
|
2036
2036
|
}, {
|
|
2037
2037
|
key: "formContent",
|
|
2038
|
-
contents:
|
|
2038
|
+
contents: j
|
|
2039
2039
|
}],
|
|
2040
2040
|
name: ""
|
|
2041
|
-
}),
|
|
2041
|
+
}), p.push({
|
|
2042
2042
|
key: "tableContents",
|
|
2043
|
-
contents: [
|
|
2043
|
+
contents: [g]
|
|
2044
2044
|
});
|
|
2045
2045
|
} else
|
|
2046
|
-
|
|
2046
|
+
p.push({
|
|
2047
2047
|
key: "tableContents",
|
|
2048
2048
|
contents: S == null ? void 0 : S[0]
|
|
2049
2049
|
});
|
|
2050
|
-
})) :
|
|
2050
|
+
})) : p.push({
|
|
2051
2051
|
key: "tableContents",
|
|
2052
2052
|
contents: P.trim().slice(1, P.length - 1)
|
|
2053
2053
|
});
|
|
2054
2054
|
}
|
|
2055
2055
|
}
|
|
2056
|
-
}),
|
|
2056
|
+
}), p.push(T == null ? void 0 : T[0]);
|
|
2057
2057
|
}), o.push({
|
|
2058
2058
|
key: "tableIndex",
|
|
2059
|
-
contents: (N =
|
|
2059
|
+
contents: (N = p == null ? void 0 : p.filter((r) => (r == null ? void 0 : r.key) === "tableIndex")) == null ? void 0 : N.map((r) => {
|
|
2060
2060
|
var m;
|
|
2061
2061
|
return (m = r.contents) == null ? void 0 : m[0];
|
|
2062
2062
|
})
|
|
@@ -2068,123 +2068,96 @@ const L = [
|
|
|
2068
2068
|
contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
|
|
2069
2069
|
}), o.push({
|
|
2070
2070
|
key: "tableIndexColumn",
|
|
2071
|
-
contents: (d = (y =
|
|
2071
|
+
contents: (d = (y = p == null ? void 0 : p.filter((r) => (r == null ? void 0 : r.key) === "tableIndexColumn")) == null ? void 0 : y[0]) == null ? void 0 : d.contents
|
|
2072
2072
|
}), o.push({
|
|
2073
2073
|
key: "header",
|
|
2074
|
-
contents: Ve(
|
|
2074
|
+
contents: Ve(p == null ? void 0 : p.filter((r) => (r == null ? void 0 : r.key) === "header"))
|
|
2075
2075
|
}), o.push({
|
|
2076
2076
|
key: "tableContents",
|
|
2077
|
-
contents:
|
|
2077
|
+
contents: ht(p == null ? void 0 : p.filter((r) => (r == null ? void 0 : r.key) === "tableContents"), Ve(p == null ? void 0 : p.filter((r) => (r == null ? void 0 : r.key) === "header")))
|
|
2078
2078
|
});
|
|
2079
2079
|
} else {
|
|
2080
|
-
const
|
|
2081
|
-
|
|
2082
|
-
let
|
|
2080
|
+
const p = (i = s.trim().split(",$")) == null ? void 0 : i[0];
|
|
2081
|
+
p[0] === "[" ? s = p.slice(1, p.length - 1) : s.includes(",$") && (s = (f = s.trim().split(",$")) == null ? void 0 : f[0]);
|
|
2082
|
+
let b;
|
|
2083
2083
|
if (s.includes("$")) {
|
|
2084
|
-
s =
|
|
2084
|
+
s = u(s), l.method = (k = (h = u(s).trim()) == null ? void 0 : h.slice(1, s.length).split("(")) == null ? void 0 : k[0];
|
|
2085
2085
|
let c;
|
|
2086
|
-
ll(s.slice(1, s.length - 2)).length > 1 ? c = ll(s.slice(1, s.length - 2)) : c =
|
|
2086
|
+
ll(s.slice(1, s.length - 2)).length > 1 ? c = ll(s.slice(1, s.length - 2)) : c = Tt(s), l.value = c;
|
|
2087
2087
|
} else
|
|
2088
|
-
|
|
2088
|
+
te("[" + Oe(s).replaceAll("'", '"') + "]") && !Ot(Oe(s).replaceAll("'", '"')) ? (s = JSON.parse("[" + Oe(s).replaceAll("'", '"') + "]"), a = s) : b = ($ = (A = u(s).split("}")) == null ? void 0 : A.filter((c) => c !== "")) == null ? void 0 : $.map((c) => {
|
|
2089
2089
|
let r = c;
|
|
2090
2090
|
return r[0] === "," ? r = r.slice(2, r.length) : r = r.slice(1, r.length), r;
|
|
2091
2091
|
});
|
|
2092
|
-
(O =
|
|
2093
|
-
var r, m, _, T, v, x,
|
|
2092
|
+
(O = u(b)) == null || O.forEach((c) => {
|
|
2093
|
+
var r, m, _, T, v, x, U, E, D, B, P, S, g, j, F;
|
|
2094
2094
|
if (c.includes("==")) {
|
|
2095
|
-
const w = (S = c == null ? void 0 : c.split(":")) == null ? void 0 : S[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"').replaceAll("'", '"'), W = (
|
|
2096
|
-
if (
|
|
2095
|
+
const w = (S = c == null ? void 0 : c.split(":")) == null ? void 0 : S[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"').replaceAll("'", '"'), W = (g = c == null ? void 0 : c.split(":")) == null ? void 0 : g[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"');
|
|
2096
|
+
if (te(W.trim()) ? n.push(JSON.parse(W.trim())) : n.push(JSON.parse(W.replaceAll("'", '"').trim())), w[0] !== "[") {
|
|
2097
2097
|
let K = [];
|
|
2098
|
-
|
|
2099
|
-
const Z =
|
|
2100
|
-
Z.push(["操作"]),
|
|
2098
|
+
te("[" + de(w) + "]") ? K.push(JSON.parse("[" + de(w) + "]")) : te("[" + de(w).replaceAll("==", ",") + "]") && K.push(JSON.parse("[" + de(w).replaceAll("==", ",") + "]"));
|
|
2099
|
+
const Z = u(K);
|
|
2100
|
+
Z.push(["操作"]), t.push(Z);
|
|
2101
2101
|
} else {
|
|
2102
|
-
const K = (
|
|
2102
|
+
const K = (j = w.slice(1, w.length - 1).replaceAll(",", ",|")) == null ? void 0 : j.split("|"), Z = (F = _t(K)) == null ? void 0 : F.map((G) => ((G == null ? void 0 : G[G.length - 1]) === "," && (G = G.slice(0, G.length - 1)), G));
|
|
2103
2103
|
let le = [];
|
|
2104
2104
|
Z == null || Z.forEach((G) => {
|
|
2105
2105
|
var q, H, ne, M;
|
|
2106
2106
|
let Q = [];
|
|
2107
2107
|
Q.push((q = G.split("==")) == null ? void 0 : q[0].trim().replace(/^"|"$/g, "")), ((H = G.split("==")) == null ? void 0 : H[1].trim()[0]) === "[" ? Q.push(JSON.parse((ne = G.split("==")) == null ? void 0 : ne[1].trim())) : Q.push([JSON.parse((M = G.split("==")) == null ? void 0 : M[1].trim())]), le.push(Q);
|
|
2108
2108
|
});
|
|
2109
|
-
const ee =
|
|
2110
|
-
ee.push(["操作"]),
|
|
2109
|
+
const ee = u(le);
|
|
2110
|
+
ee.push(["操作"]), t.push(ee);
|
|
2111
2111
|
}
|
|
2112
2112
|
} else {
|
|
2113
|
-
if (
|
|
2113
|
+
if (te((r = c == null ? void 0 : c.split(":")) == null ? void 0 : r[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"').replaceAll("'", '"'))) {
|
|
2114
2114
|
let w = JSON.parse((m = c == null ? void 0 : c.split(":")) == null ? void 0 : m[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"').replaceAll("'", '"'));
|
|
2115
|
-
Array.isArray(w) || (w = [w]), w.push("操作"),
|
|
2115
|
+
Array.isArray(w) || (w = [w]), w.push("操作"), t.push(w);
|
|
2116
2116
|
}
|
|
2117
|
-
|
|
2117
|
+
te((v = (T = (_ = c == null ? void 0 : c.split(":")) == null ? void 0 : _[1]) == null ? void 0 : T.replace(/^"|"$/g, "'")) == null ? void 0 : v.replace(/'([^']+)'/g, '"$1"')) ? n.push(JSON.parse((x = c == null ? void 0 : c.split(":")) == null ? void 0 : x[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"'))) : te((B = (D = (E = (U = c == null ? void 0 : c.split(":")) == null ? void 0 : U[1]) == null ? void 0 : E.replace(/^"|"$/g, "'")) == null ? void 0 : D.replaceAll("'", '"')) == null ? void 0 : B.replace(/'([^']+)'/g, '"$1"')) && n.push(JSON.parse((P = c == null ? void 0 : c.split(":")) == null ? void 0 : P[1].replace(/^"|"$/g, "'").replaceAll("'", '"').replace(/'([^']+)'/g, '"$1"')));
|
|
2118
2118
|
}
|
|
2119
2119
|
});
|
|
2120
2120
|
}
|
|
2121
|
-
return [
|
|
2122
|
-
},
|
|
2123
|
-
const
|
|
2124
|
-
return n &&
|
|
2121
|
+
return [t, n, o, l, a];
|
|
2122
|
+
}, vt = (e) => {
|
|
2123
|
+
const t = [], n = Ct(e == null ? void 0 : e.key), l = $t(e == null ? void 0 : e.key), a = xt(e == null ? void 0 : e.value), s = l == null ? void 0 : l[0], o = a == null ? void 0 : a[4], i = l == null ? void 0 : l[1], f = l == null ? void 0 : l[2], h = a == null ? void 0 : a[0], k = a == null ? void 0 : a[1], A = a == null ? void 0 : a[2], $ = a == null ? void 0 : a[3];
|
|
2124
|
+
return n && t.push({
|
|
2125
2125
|
key: "contentPath",
|
|
2126
2126
|
value: n
|
|
2127
|
-
}), (s == null ? void 0 : s.length) > 0 &&
|
|
2127
|
+
}), (s == null ? void 0 : s.length) > 0 && t.push({
|
|
2128
2128
|
key: "tableIndex",
|
|
2129
2129
|
value: s
|
|
2130
|
-
}), $ &&
|
|
2130
|
+
}), $ && t.push({
|
|
2131
2131
|
key: "extraButton",
|
|
2132
2132
|
value: $
|
|
2133
|
-
}), (o == null ? void 0 : o.length) > 0 &&
|
|
2133
|
+
}), (o == null ? void 0 : o.length) > 0 && t.push({
|
|
2134
2134
|
key: "form",
|
|
2135
2135
|
value: o
|
|
2136
|
-
}), (
|
|
2136
|
+
}), (i == null ? void 0 : i.length) > 0 && t.push({
|
|
2137
2137
|
key: "formTop",
|
|
2138
|
-
value:
|
|
2139
|
-
}), (f == null ? void 0 : f.length) > 0 &&
|
|
2138
|
+
value: i
|
|
2139
|
+
}), (f == null ? void 0 : f.length) > 0 && t.push({
|
|
2140
2140
|
key: "extra",
|
|
2141
2141
|
value: f
|
|
2142
|
-
}), (A == null ? void 0 : A.length) > 0 &&
|
|
2142
|
+
}), (A == null ? void 0 : A.length) > 0 && t.push({
|
|
2143
2143
|
comp: "Table",
|
|
2144
2144
|
compData: A,
|
|
2145
2145
|
name: ""
|
|
2146
|
-
}), (h == null ? void 0 : h.length) > 0 &&
|
|
2146
|
+
}), (h == null ? void 0 : h.length) > 0 && t.push({
|
|
2147
2147
|
key: "tableColumns",
|
|
2148
2148
|
value: h
|
|
2149
|
-
}), (k == null ? void 0 : k.length) > 0 &&
|
|
2149
|
+
}), (k == null ? void 0 : k.length) > 0 && t.push({
|
|
2150
2150
|
key: "tableContents",
|
|
2151
2151
|
value: k
|
|
2152
|
-
}),
|
|
2153
|
-
},
|
|
2154
|
-
|
|
2155
|
-
e == null || e.forEach((t) => {
|
|
2156
|
-
Array.isArray(t) && (t == null || t.forEach((s) => {
|
|
2157
|
-
var o;
|
|
2158
|
-
s.comp === "FormTop" && ((o = s.compData) == null || o.forEach((u) => {
|
|
2159
|
-
(u == null ? void 0 : u.key) === "formContent" && (n = [...n, ...u.contents]);
|
|
2160
|
-
}));
|
|
2161
|
-
}));
|
|
2162
|
-
});
|
|
2163
|
-
const l = n.reduce((t, s) => t.find((u) => (u == null ? void 0 : u.key) === (s == null ? void 0 : s.key)) ? t : t.concat([s]), []);
|
|
2164
|
-
return l.length !== 0 && a.push([{
|
|
2165
|
-
comp: "FormTop",
|
|
2166
|
-
compData: [{
|
|
2167
|
-
key: "formFlex",
|
|
2168
|
-
contents: ""
|
|
2169
|
-
}, {
|
|
2170
|
-
key: "formContent",
|
|
2171
|
-
contents: l
|
|
2172
|
-
}]
|
|
2173
|
-
}]), e == null || e.forEach((t) => {
|
|
2174
|
-
if (Array.isArray(t)) {
|
|
2175
|
-
const s = t.filter((o) => o.comp !== "FormTop");
|
|
2176
|
-
a.push(s);
|
|
2177
|
-
} else
|
|
2178
|
-
a.push(t);
|
|
2179
|
-
}), a;
|
|
2180
|
-
}, Da = (e, a) => {
|
|
2181
|
-
const n = a.split("/");
|
|
2152
|
+
}), t;
|
|
2153
|
+
}, Et = (e, t) => {
|
|
2154
|
+
const n = t.split("/");
|
|
2182
2155
|
let l = [];
|
|
2183
|
-
return e == null || e.forEach((
|
|
2184
|
-
var
|
|
2185
|
-
const s = [], o = (f = (
|
|
2156
|
+
return e == null || e.forEach((a) => {
|
|
2157
|
+
var i, f, h, k, A, $, O, C, N;
|
|
2158
|
+
const s = [], o = (f = (i = a.find((y) => y.key === "tableIndex")) == null ? void 0 : i.value) == null ? void 0 : f[0];
|
|
2186
2159
|
if (o && !o.some((y) => Array.isArray(y))) {
|
|
2187
|
-
const y = (k = (h =
|
|
2160
|
+
const y = (k = (h = a.find((d) => d.key === "tableColumns")) == null ? void 0 : h.value) == null ? void 0 : k[0];
|
|
2188
2161
|
s.push({
|
|
2189
2162
|
key: "tableIndexColumn",
|
|
2190
2163
|
contents: n[n.length - 1]
|
|
@@ -2205,7 +2178,7 @@ const L = [
|
|
|
2205
2178
|
contents: Array.isArray(y) ? y == null ? void 0 : y.map((d) => ({ label: d })) : [y].map((d) => ({ label: d }))
|
|
2206
2179
|
}), s.push({
|
|
2207
2180
|
key: "tableContents",
|
|
2208
|
-
contents: Array.isArray(y) ? ($ = (A =
|
|
2181
|
+
contents: Array.isArray(y) ? ($ = (A = a.find((d) => d.key === "tableContents")) == null ? void 0 : A.value) == null ? void 0 : $[0] : (N = (C = (O = a.find((d) => d.key === "tableContents")) == null ? void 0 : O.value) == null ? void 0 : C[0]) == null ? void 0 : N.map((d) => [d])
|
|
2209
2182
|
}), l.push({
|
|
2210
2183
|
comp: "Table",
|
|
2211
2184
|
name: "",
|
|
@@ -2214,199 +2187,199 @@ const L = [
|
|
|
2214
2187
|
} else o ? l.push({
|
|
2215
2188
|
comp: "Table",
|
|
2216
2189
|
name: "",
|
|
2217
|
-
compData:
|
|
2218
|
-
}) :
|
|
2190
|
+
compData: ft(a, n[n.length - 1])
|
|
2191
|
+
}) : a.some((y) => y.key === "extra") ? l.push({
|
|
2219
2192
|
comp: "calculator",
|
|
2220
2193
|
name: "",
|
|
2221
|
-
compData: Ye(
|
|
2222
|
-
}) : l.push(Ye(
|
|
2223
|
-
}),
|
|
2224
|
-
},
|
|
2225
|
-
var
|
|
2226
|
-
const n = e.map((o) => o.filter((
|
|
2194
|
+
compData: Ye(a)
|
|
2195
|
+
}) : l.push(Ye(a));
|
|
2196
|
+
}), l;
|
|
2197
|
+
}, Dt = (e, t) => {
|
|
2198
|
+
var a, s;
|
|
2199
|
+
const n = e.map((o) => o.filter((i) => i.key !== "contentPath"));
|
|
2227
2200
|
return {
|
|
2228
2201
|
comp: "Group",
|
|
2229
2202
|
compData: [{
|
|
2230
|
-
contents:
|
|
2203
|
+
contents: Et(n, t),
|
|
2231
2204
|
key: "groupContents"
|
|
2232
2205
|
}],
|
|
2233
|
-
name: (s = (
|
|
2206
|
+
name: (s = (a = e[0]) == null ? void 0 : a.find((o) => o.key === "contentPath")) == null ? void 0 : s.value
|
|
2234
2207
|
};
|
|
2235
|
-
},
|
|
2236
|
-
var
|
|
2237
|
-
const
|
|
2208
|
+
}, Nt = (e) => {
|
|
2209
|
+
var a;
|
|
2210
|
+
const t = [], n = u(e).map((s) => {
|
|
2238
2211
|
var o;
|
|
2239
|
-
if (s != null && s.find((
|
|
2240
|
-
return (o = s == null ? void 0 : s.find((
|
|
2212
|
+
if (s != null && s.find((i) => (i == null ? void 0 : i.key) === "contentPath"))
|
|
2213
|
+
return (o = s == null ? void 0 : s.find((i) => (i == null ? void 0 : i.key) === "contentPath")) == null ? void 0 : o.value;
|
|
2241
2214
|
}).filter((s) => s !== ""), l = [...new Set(n)];
|
|
2242
|
-
return (
|
|
2215
|
+
return (a = l == null ? void 0 : l.filter((s) => s)) == null || a.forEach((s) => {
|
|
2243
2216
|
var o;
|
|
2244
|
-
|
|
2245
|
-
}),
|
|
2246
|
-
},
|
|
2247
|
-
let
|
|
2248
|
-
|
|
2217
|
+
t.push(Dt((o = u(e)) == null ? void 0 : o.filter((i) => i.find((f) => f.key === "contentPath" && f.value === s)), s));
|
|
2218
|
+
}), t;
|
|
2219
|
+
}, St = (e) => {
|
|
2220
|
+
let t = [];
|
|
2221
|
+
t.push({
|
|
2249
2222
|
comp: "Menu",
|
|
2250
2223
|
compData: [{
|
|
2251
|
-
contents:
|
|
2224
|
+
contents: kt(u(e)),
|
|
2252
2225
|
key: "menuContents"
|
|
2253
2226
|
}],
|
|
2254
2227
|
name: ""
|
|
2255
2228
|
});
|
|
2256
|
-
const n = e.map((l) =>
|
|
2257
|
-
return
|
|
2258
|
-
},
|
|
2259
|
-
var
|
|
2260
|
-
const
|
|
2261
|
-
return
|
|
2262
|
-
}, ye = R(0), Te = R(0),
|
|
2263
|
-
const
|
|
2264
|
-
let
|
|
2265
|
-
for (; (
|
|
2266
|
-
const s =
|
|
2267
|
-
let o =
|
|
2229
|
+
const n = e.map((l) => vt(l)).filter((l) => l.length !== 0);
|
|
2230
|
+
return t = [...t, ...Nt(n)], t;
|
|
2231
|
+
}, Yt = (e) => {
|
|
2232
|
+
var a, s, o, i, f;
|
|
2233
|
+
const t = (o = Se((s = (a = u(e)) == null ? void 0 : a.replace("(", "(")) == null ? void 0 : s.replace(")", ")"))) == null ? void 0 : o.filter((h) => h !== ""), n = (f = (i = u(t)) == null ? void 0 : i.filter((h) => !h.includes("/*"))) == null ? void 0 : f.map((h) => bt(h));
|
|
2234
|
+
return St(n);
|
|
2235
|
+
}, ye = R(0), Te = R(0), Pt = (e) => {
|
|
2236
|
+
const t = e.trim().replace(/^'|'$/g, ""), n = /((?:\$?[a-zA-Z_][a-zA-Z0-9_]*\$?\([^)]*\))|[a-zA-Z_][a-zA-Z0-9_]*)\s*=\s*(.*?)(?=\s*(?:(?:\$?[a-zA-Z_][a-zA-Z0-9_]*\$?\([^)]*\))|[a-zA-Z_][a-zA-Z0-9_]*)\s*=|$)/g, l = {};
|
|
2237
|
+
let a;
|
|
2238
|
+
for (; (a = n.exec(t)) !== null; ) {
|
|
2239
|
+
const s = a[1];
|
|
2240
|
+
let o = a[2].trim();
|
|
2268
2241
|
(o.match(/\[/g) || []).length !== (o.match(/\]/g) || []).length && (o = o == null ? void 0 : o.replace(/]$/, "")), l[s] ? (l[s + Te.value] && Te.value++, l[s + Te.value] = s + "=" + o) : l[s] = s + "=" + o;
|
|
2269
2242
|
}
|
|
2270
2243
|
return l;
|
|
2271
|
-
},
|
|
2272
|
-
const [
|
|
2273
|
-
return { key: l, value:
|
|
2274
|
-
},
|
|
2244
|
+
}, bl = (e) => {
|
|
2245
|
+
const [t, n] = e.split("=").map((s) => s.trim()), l = t.replace(/['"]/g, ""), a = n.replace(/^['"]|['"]$/g, "");
|
|
2246
|
+
return { key: l, value: a };
|
|
2247
|
+
}, Bt = (e) => {
|
|
2275
2248
|
var o;
|
|
2276
|
-
let
|
|
2277
|
-
const [n, l] = e.split(/=(.+)/),
|
|
2278
|
-
return (o = Object.values(
|
|
2279
|
-
|
|
2280
|
-
}), { key:
|
|
2281
|
-
},
|
|
2249
|
+
let t = [];
|
|
2250
|
+
const [n, l] = e.split(/=(.+)/), a = n.replace(/['"]/g, "").trim(), s = l.replace(/^['"]|['"]$/g, "");
|
|
2251
|
+
return (o = Object.values(Pt(s))) == null || o.forEach((i) => {
|
|
2252
|
+
t.push(bl(i));
|
|
2253
|
+
}), { key: a, value: t };
|
|
2254
|
+
}, be = (e) => {
|
|
2282
2255
|
try {
|
|
2283
2256
|
return JSON.parse(e), !0;
|
|
2284
2257
|
} catch {
|
|
2285
2258
|
return !1;
|
|
2286
2259
|
}
|
|
2287
|
-
},
|
|
2260
|
+
}, gl = (e) => {
|
|
2288
2261
|
try {
|
|
2289
|
-
const
|
|
2290
|
-
if (
|
|
2291
|
-
let n =
|
|
2292
|
-
if (
|
|
2262
|
+
const t = e.replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",").replace(/:/g, ":").replace(/:\s*(?=,|}|$)/g, ': ""');
|
|
2263
|
+
if (u(t).split("{").length - 1 > 1) {
|
|
2264
|
+
let n = u(t).replace(/^\{(.*)\}$/, "[$1]");
|
|
2265
|
+
if (be(n) && !n.includes("$") || (n = n.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g, '"$1$$$2"')), be(n)) {
|
|
2293
2266
|
const l = JSON.parse(n);
|
|
2294
|
-
let
|
|
2267
|
+
let a = [];
|
|
2295
2268
|
return l == null || l.forEach((s) => {
|
|
2296
2269
|
var o;
|
|
2297
|
-
(o = Object.entries(
|
|
2298
|
-
ye.value++,
|
|
2270
|
+
(o = Object.entries(u(s))) == null || o.forEach((i) => {
|
|
2271
|
+
ye.value++, a.push({
|
|
2299
2272
|
id: ye.value,
|
|
2300
|
-
key: (
|
|
2301
|
-
value: (
|
|
2273
|
+
key: (i == null ? void 0 : i[0]) ?? "",
|
|
2274
|
+
value: (i == null ? void 0 : i[1]) === "" ? "" : i == null ? void 0 : i[1],
|
|
2302
2275
|
// 如果值为空,则key设为空字符串,否则保留原值
|
|
2303
|
-
width: Object.keys(
|
|
2276
|
+
width: Object.keys(u(s)).length
|
|
2304
2277
|
});
|
|
2305
2278
|
});
|
|
2306
|
-
}),
|
|
2279
|
+
}), a;
|
|
2307
2280
|
} else
|
|
2308
2281
|
return console.error("转换类型不正确:"), [];
|
|
2309
|
-
} else if (
|
|
2310
|
-
const n = JSON.parse(
|
|
2311
|
-
return Object.entries(n).map(([l,
|
|
2282
|
+
} else if (be(t)) {
|
|
2283
|
+
const n = JSON.parse(t);
|
|
2284
|
+
return Object.entries(n).map(([l, a]) => (ye.value++, {
|
|
2312
2285
|
id: ye.value,
|
|
2313
2286
|
key: l,
|
|
2314
|
-
value:
|
|
2287
|
+
value: a === "" ? "" : a,
|
|
2315
2288
|
// 如果值为空,则key设为空字符串,否则保留原值
|
|
2316
2289
|
width: 1
|
|
2317
2290
|
}));
|
|
2318
2291
|
} else
|
|
2319
|
-
return
|
|
2320
|
-
} catch (
|
|
2321
|
-
return console.error("转换失败:",
|
|
2292
|
+
return t;
|
|
2293
|
+
} catch (t) {
|
|
2294
|
+
return console.error("转换失败:", t), [];
|
|
2322
2295
|
}
|
|
2323
|
-
},
|
|
2296
|
+
}, jt = (e, t) => {
|
|
2324
2297
|
try {
|
|
2325
|
-
if (L != null && L.find((n) => (n == null ? void 0 : n.key) ===
|
|
2298
|
+
if (L != null && L.find((n) => (n == null ? void 0 : n.key) === t))
|
|
2326
2299
|
return JSON.parse(e.replace(/[’]|[‘]|[']/g, '"'));
|
|
2327
|
-
if (
|
|
2328
|
-
const n =
|
|
2300
|
+
if (u(e).split("[").length - 1 > 1) {
|
|
2301
|
+
const n = u(e).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
|
|
2329
2302
|
return JSON.parse(n);
|
|
2330
2303
|
} else {
|
|
2331
|
-
const n =
|
|
2332
|
-
if (
|
|
2304
|
+
const n = u(e).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",");
|
|
2305
|
+
if (be(n)) {
|
|
2333
2306
|
const l = JSON.parse(n);
|
|
2334
|
-
return Array.isArray(l) ? l.map((
|
|
2307
|
+
return Array.isArray(l) ? l.map((a) => ({ label: a })) : l;
|
|
2335
2308
|
} else
|
|
2336
|
-
return
|
|
2309
|
+
return gl(u(e));
|
|
2337
2310
|
}
|
|
2338
2311
|
} catch (n) {
|
|
2339
2312
|
return console.error("解析失败:", n), e;
|
|
2340
2313
|
}
|
|
2341
|
-
},
|
|
2314
|
+
}, Ut = (e) => ({ [e == null ? void 0 : e.key]: jt(e == null ? void 0 : e.value, e == null ? void 0 : e.key) }), Ft = (e) => {
|
|
2342
2315
|
try {
|
|
2343
|
-
if (
|
|
2344
|
-
const
|
|
2345
|
-
return JSON.parse(
|
|
2316
|
+
if (u(e).split("[").length - 1 > 1) {
|
|
2317
|
+
const t = u(e).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
|
|
2318
|
+
return JSON.parse(t);
|
|
2346
2319
|
} else
|
|
2347
|
-
return JSON.parse(
|
|
2348
|
-
} catch (
|
|
2349
|
-
return console.error("解析失败:",
|
|
2320
|
+
return JSON.parse(u(e).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",")).map((n) => ({ label: n }));
|
|
2321
|
+
} catch (t) {
|
|
2322
|
+
return console.error("解析失败:", t), e;
|
|
2350
2323
|
}
|
|
2351
2324
|
}, kl = (e) => {
|
|
2352
|
-
var
|
|
2325
|
+
var t, n, l, a, s, o;
|
|
2353
2326
|
try {
|
|
2354
|
-
const
|
|
2327
|
+
const i = Se((n = (t = u(e)) == null ? void 0 : t.replace("(", "(")) == null ? void 0 : n.replace(")", ")")), f = (l = u(i)) == null ? void 0 : l.map((A) => {
|
|
2355
2328
|
var O, C;
|
|
2356
|
-
let $ = (C = (O =
|
|
2357
|
-
return $ != null && $.includes("GroupContents") ?
|
|
2329
|
+
let $ = (C = (O = u(A)) == null ? void 0 : O.split("=")) == null ? void 0 : C[0];
|
|
2330
|
+
return $ != null && $.includes("GroupContents") ? Bt(A) : bl(A);
|
|
2358
2331
|
}), h = [];
|
|
2359
|
-
(
|
|
2332
|
+
(a = u(f)) == null || a.forEach((A) => {
|
|
2360
2333
|
var $, O, C, N, y;
|
|
2361
2334
|
L != null && L.find((d) => {
|
|
2362
|
-
var
|
|
2363
|
-
return ((
|
|
2335
|
+
var p, b;
|
|
2336
|
+
return ((p = d == null ? void 0 : d.key) == null ? void 0 : p.toUpperCase()) === ((b = A == null ? void 0 : A.key) == null ? void 0 : b.toUpperCase());
|
|
2364
2337
|
}) ? h.push({
|
|
2365
2338
|
comp: (($ = L == null ? void 0 : L.find((d) => {
|
|
2366
|
-
var
|
|
2367
|
-
return ((
|
|
2339
|
+
var p, b;
|
|
2340
|
+
return ((p = d == null ? void 0 : d.key) == null ? void 0 : p.toUpperCase()) === ((b = A == null ? void 0 : A.key) == null ? void 0 : b.toUpperCase());
|
|
2368
2341
|
})) == null ? void 0 : $.value) ?? "",
|
|
2369
2342
|
name: (O = A == null ? void 0 : A.value) == null ? void 0 : O.replace(/[’]|[‘]|[']/g, ""),
|
|
2370
2343
|
compData: []
|
|
2371
2344
|
}) : J != null && J.find((d) => {
|
|
2372
|
-
var
|
|
2373
|
-
return ((
|
|
2345
|
+
var p, b;
|
|
2346
|
+
return ((p = d == null ? void 0 : d.key) == null ? void 0 : p.toUpperCase()) === ((b = A == null ? void 0 : A.key) == null ? void 0 : b.toUpperCase());
|
|
2374
2347
|
}) && ((h == null ? void 0 : h.length) === 0 && (C = A.key) != null && C.includes("Menus") && h.push({
|
|
2375
2348
|
comp: "Menu",
|
|
2376
2349
|
name: "",
|
|
2377
2350
|
compData: []
|
|
2378
2351
|
}), (N = h == null ? void 0 : h[(h == null ? void 0 : h.length) - 1]) != null && N.compData && h[(h == null ? void 0 : h.length) - 1].compData.push({
|
|
2379
2352
|
key: (y = J == null ? void 0 : J.find((d) => {
|
|
2380
|
-
var
|
|
2381
|
-
return ((
|
|
2353
|
+
var p, b;
|
|
2354
|
+
return ((p = d == null ? void 0 : d.key) == null ? void 0 : p.toUpperCase()) === ((b = A == null ? void 0 : A.key) == null ? void 0 : b.toUpperCase());
|
|
2382
2355
|
})) == null ? void 0 : y.value,
|
|
2383
2356
|
contents: A == null ? void 0 : A.value
|
|
2384
2357
|
}));
|
|
2385
2358
|
}), console.log("newContents", h);
|
|
2386
|
-
let k = (s =
|
|
2359
|
+
let k = (s = u(h)) == null ? void 0 : s.map((A) => {
|
|
2387
2360
|
var $;
|
|
2388
2361
|
return A != null && A.compData && (A.compData = ($ = A == null ? void 0 : A.compData) == null ? void 0 : $.map((O) => {
|
|
2389
|
-
var C, N, y, d,
|
|
2362
|
+
var C, N, y, d, p, b, c, r, m, _, T;
|
|
2390
2363
|
if ((O == null ? void 0 : O.key) === "formFlex")
|
|
2391
2364
|
O.contents = ((N = (C = O.contents) == null ? void 0 : C.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : N.toUpperCase()) !== "Vertical".toUpperCase();
|
|
2392
2365
|
else if ((O == null ? void 0 : O.key) === "groupContents")
|
|
2393
|
-
O.contents = (y =
|
|
2394
|
-
else if (((
|
|
2395
|
-
O.contents =
|
|
2366
|
+
O.contents = (y = u(O.contents)) == null ? void 0 : y.map((v) => Ut(u(v)));
|
|
2367
|
+
else if (((p = (d = O.contents) == null ? void 0 : d.trim()) != null && p.startsWith("[") || (c = (b = O.contents) == null ? void 0 : b.trim()) != null && c.startsWith("【")) && ((m = (r = O.contents) == null ? void 0 : r.trim()) != null && m.endsWith("]") || (T = (_ = O.contents) == null ? void 0 : _.trim()) != null && T.endsWith("】")))
|
|
2368
|
+
O.contents = Ft(u(O.contents));
|
|
2396
2369
|
else {
|
|
2397
2370
|
if (!O.contents) return;
|
|
2398
|
-
O.contents =
|
|
2371
|
+
O.contents = gl(u(O.contents));
|
|
2399
2372
|
}
|
|
2400
2373
|
return O;
|
|
2401
2374
|
})), A;
|
|
2402
2375
|
});
|
|
2403
|
-
return k = (o =
|
|
2376
|
+
return k = (o = u(k)) == null ? void 0 : o.map((A) => {
|
|
2404
2377
|
var $;
|
|
2405
2378
|
return (A == null ? void 0 : A.comp) === "Group" && (A.compData = ($ = A.compData) == null ? void 0 : $.map((O) => {
|
|
2406
2379
|
var N;
|
|
2407
2380
|
let C = [];
|
|
2408
2381
|
return (N = O.contents) == null || N.forEach((y) => {
|
|
2409
|
-
var d,
|
|
2382
|
+
var d, p, b, c, r, m, _, T, v, x, U, E;
|
|
2410
2383
|
if (L != null && L.find((D) => {
|
|
2411
2384
|
var B, P, S;
|
|
2412
2385
|
return ((B = D == null ? void 0 : D.key) == null ? void 0 : B.toUpperCase()) === ((S = (P = Object.keys(y)) == null ? void 0 : P[0]) == null ? void 0 : S.toUpperCase());
|
|
@@ -2416,7 +2389,7 @@ const L = [
|
|
|
2416
2389
|
var B, P, S;
|
|
2417
2390
|
return ((B = D == null ? void 0 : D.key) == null ? void 0 : B.toUpperCase()) === ((S = (P = Object.keys(y)) == null ? void 0 : P[0]) == null ? void 0 : S.toUpperCase());
|
|
2418
2391
|
})) == null ? void 0 : d.value,
|
|
2419
|
-
name: (
|
|
2392
|
+
name: (b = (p = Object.values(y)) == null ? void 0 : p[0]) == null ? void 0 : b.replace(/[’]|[‘]|[']/g, ""),
|
|
2420
2393
|
compData: []
|
|
2421
2394
|
});
|
|
2422
2395
|
else if (J != null && J.find((D) => {
|
|
@@ -2432,12 +2405,12 @@ const L = [
|
|
|
2432
2405
|
contents: (m = Object.values(y)) == null ? void 0 : m[0]
|
|
2433
2406
|
});
|
|
2434
2407
|
} else if ((T = (_ = Object.keys(y)) == null ? void 0 : _[0]) != null && T.includes("$")) {
|
|
2435
|
-
const D = (x = (v = Object.keys(
|
|
2408
|
+
const D = (x = (v = Object.keys(u(y))) == null ? void 0 : v[0]) == null ? void 0 : x.split("$");
|
|
2436
2409
|
C[(C == null ? void 0 : C.length) - 1].compData.push({
|
|
2437
|
-
key: (
|
|
2410
|
+
key: (U = J == null ? void 0 : J.find((B) => {
|
|
2438
2411
|
var P, S;
|
|
2439
2412
|
return ((P = B == null ? void 0 : B.key) == null ? void 0 : P.toUpperCase()) === ((S = D == null ? void 0 : D[0]) == null ? void 0 : S.toUpperCase());
|
|
2440
|
-
})) == null ? void 0 :
|
|
2413
|
+
})) == null ? void 0 : U.value,
|
|
2441
2414
|
contents: (E = Object.values(y)) == null ? void 0 : E[0],
|
|
2442
2415
|
selectLabel: D == null ? void 0 : D[1]
|
|
2443
2416
|
});
|
|
@@ -2449,18 +2422,18 @@ const L = [
|
|
|
2449
2422
|
} catch {
|
|
2450
2423
|
return !1;
|
|
2451
2424
|
}
|
|
2452
|
-
},
|
|
2425
|
+
}, Vt = (e) => kl(e), ea = (e) => !!kl(e), Rt = tl(ke), { itemData: la } = De(Rt), wt = Sl(ke), { systemKey: na, activeMenuPath: ta } = De(wt), oe = R(0), aa = (e) => e.reduce((n, l) => {
|
|
2453
2426
|
var s, o;
|
|
2454
|
-
const
|
|
2455
|
-
return (((s = Object.keys(n)) == null ? void 0 : s.length) === 0 ||
|
|
2427
|
+
const a = Object.values(n);
|
|
2428
|
+
return (((s = Object.keys(n)) == null ? void 0 : s.length) === 0 || a[a.length - 1].length >= (l == null ? void 0 : l.width)) && (n[oe.value] = [], oe.value++), n[oe.value - 1].push(l), ((o = Object.keys(n)) == null ? void 0 : o.length) === (l == null ? void 0 : l.width) && (n[oe.value] = [], oe.value++), n;
|
|
2456
2429
|
}, {});
|
|
2457
2430
|
export {
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2431
|
+
aa as a,
|
|
2432
|
+
Qt as b,
|
|
2433
|
+
Yt as c,
|
|
2434
|
+
Xt as d,
|
|
2435
|
+
Vt as e,
|
|
2463
2436
|
zn as g,
|
|
2464
|
-
|
|
2465
|
-
|
|
2437
|
+
ea as i,
|
|
2438
|
+
zt as s
|
|
2466
2439
|
};
|