ss-component-new 1.1.201 → 1.1.203
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-Crj-rCrk.js → array-CFjAQKy7.js} +411 -408
- package/dist/array-D7Sl6w5S.cjs +7 -0
- package/dist/{cloneDeep-BPIVs2SM.js → cloneDeep-BLQghEgs.js} +29 -29
- package/dist/{cloneDeep-BcOXEEv2.cjs → cloneDeep-CAdgmyte.cjs} +1 -1
- package/dist/formToTable--4_ply1A.js +45 -0
- package/dist/formToTable-DfXTizQm.cjs +1 -0
- package/dist/index-70ma5PtB.js +120 -0
- package/dist/{index-BEGev1aZ.cjs → index-8zvtyKvJ.cjs} +1 -1
- package/dist/index-B7KlE4Iz.cjs +6 -0
- package/dist/index-BE1qDBEi.cjs +1 -0
- package/dist/index-BE4uhsw4.js +148 -0
- package/dist/index-BMVKpGjH.cjs +1 -0
- package/dist/index-BOCRVlu3.js +140 -0
- package/dist/{index-CymW4wNe.js → index-Be5FUSN9.js} +18 -18
- package/dist/{index-BEa5aIb3.js → index-Bh1Og1wO.js} +14 -14
- package/dist/index-BispWQeW.cjs +87 -0
- package/dist/index-BoWb2Khh.cjs +1 -0
- package/dist/index-BqiaKavV.cjs +1 -0
- package/dist/index-BtK6i9pV.js +2920 -0
- package/dist/{request-Bfh57hRu.js → index-Bu89TD1D.js} +297 -265
- package/dist/index-C24hUN_f.js +180 -0
- package/dist/{index--9VS1Po1.js → index-CIh-8WPZ.js} +1666 -1660
- package/dist/index-CNeO7_VE.cjs +1 -0
- package/dist/{index-DMI4zAvb.js → index-CVOu0TLp.js} +6 -6
- package/dist/{index-D3jlqe7L.js → index-CYzuIrEX.js} +1 -1
- package/dist/index-CZcQb49C.cjs +32 -0
- package/dist/index-C_4U5pAc.cjs +6 -0
- package/dist/{index--0PI2HbW.js → index-C_SFjPGc.js} +151 -151
- package/dist/index-CbQ_9CDv.cjs +1 -0
- package/dist/index-CdFTOAEw.js +4663 -0
- package/dist/index-Cdua8FdU.js +38 -0
- package/dist/{index-C-vCkHdl.js → index-CeJhazIQ.js} +1 -1
- package/dist/{index-pTz7wRhC.cjs → index-Co-2rSih.cjs} +1 -1
- package/dist/index-D64eMcNi.js +358 -0
- package/dist/index-D9RWfn8t.cjs +1 -0
- package/dist/index-DHO-TIRh.js +60 -0
- package/dist/index-DKwl8Syi.cjs +1 -0
- package/dist/{index-DXr4Ih8j.cjs → index-DQrgyQpG.cjs} +1 -1
- package/dist/index-DU4fEU0q.cjs +1 -0
- package/dist/{index-BMXvVDV3.js → index-DknHePUM.js} +236 -248
- package/dist/{index-D70fMB8u.js → index-DpVDVL0C.js} +6 -6
- package/dist/{index-DzWECzT9.cjs → index-Dt6dA5b3.cjs} +171 -171
- package/dist/index-DwBKBHl2.cjs +1 -0
- package/dist/{index-BZUY-U4m.js → index-DwdOlNEH.js} +7051 -7021
- package/dist/index-S3sfBb6v.cjs +1 -0
- package/dist/index-XKs8yoYm.cjs +1 -0
- package/dist/index-iHgg-F_A.js +38 -0
- package/dist/index-tYeHnS70.cjs +6 -0
- package/dist/index-xjDqSCvD.cjs +1 -0
- package/dist/{index-CY1uUb5a.js → index-zkm3iJQ1.js} +11 -12
- package/dist/index.vue_vue_type_script_setup_true_lang-CsHQ7Z5q.cjs +1 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-DP5Alumh.js +293 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_baf99455_lang--aIYMMju.js → index.vue_vue_type_style_index_0_scoped_baf99455_lang-82FJYtra.js} +135 -134
- package/dist/index.vue_vue_type_style_index_0_scoped_baf99455_lang-DABNQUIV.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-d4iaRhVo.cjs → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-6shkmv3t.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CpMCkcRG.js → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CS0CxTyd.js} +8 -8
- package/dist/login-CHHhxW8B.cjs +1 -0
- package/dist/{login-h9Co14f5.js → login-YVUKYLQ_.js} +6 -7
- package/dist/{main-4TykuUli.js → main-CxKKAHce.js} +6 -6
- package/dist/main-Ma-ZG7Ku.cjs +1 -0
- package/dist/menu-CloMe28c.cjs +11 -0
- package/dist/{menu-DZ9h2YlJ.js → menu-ClqeFk6S.js} +272 -281
- package/dist/{modelComp-Ca9juGZr.js → modelComp-D8PxHDjf.js} +1 -1
- package/dist/{modelComp-CpQyB22b.cjs → modelComp-zpEEQ6Tj.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +7 -7
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +1 -1
- package/package.json +2 -1
- package/dist/array-CNjg4YJo.cjs +0 -7
- package/dist/crypto-BRyGpjGR.js +0 -2004
- package/dist/crypto-CRbcEKIz.cjs +0 -26
- package/dist/formToTable-ByBLiwoc.cjs +0 -1
- package/dist/formToTable-uu5dtAiJ.js +0 -18
- package/dist/index-0ORf165A.js +0 -2668
- package/dist/index-B082suc7.cjs +0 -9
- package/dist/index-B1wEvEPC.cjs +0 -1
- package/dist/index-B7glwz_2.cjs +0 -1
- package/dist/index-BBCH4IyC.cjs +0 -1
- package/dist/index-BOTZInFG.cjs +0 -74
- package/dist/index-BjgI5G4X.cjs +0 -1
- package/dist/index-BrnySweC.cjs +0 -1
- package/dist/index-Bt3-0vjE.js +0 -61
- package/dist/index-CJJyblUM.cjs +0 -1
- package/dist/index-C_eLSZa0.js +0 -150
- package/dist/index-D-LxJAlM.cjs +0 -7
- package/dist/index-D8RcZCU0.cjs +0 -1
- package/dist/index-DAB4vKek.js +0 -3291
- package/dist/index-DUMxUtvv.cjs +0 -6
- package/dist/index-DUswh-3c.cjs +0 -1
- package/dist/index-DYts1noR.js +0 -330
- package/dist/index-DddiqSGo.js +0 -191
- package/dist/index-GGTKRYr6.js +0 -68
- package/dist/index-J2yc1eCm.cjs +0 -1
- package/dist/index-L3YisjLJ.cjs +0 -1
- package/dist/index-XvO03bMs.js +0 -159
- package/dist/index-nFaKW4fl.cjs +0 -1
- package/dist/index-nfybdVvt.cjs +0 -1
- package/dist/index-w8IaNUsW.js +0 -35
- package/dist/index.vue_vue_type_script_setup_true_lang-BivVclss.js +0 -232
- package/dist/index.vue_vue_type_script_setup_true_lang-Smvw4sUj.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_baf99455_lang-6lm3bAnN.cjs +0 -1
- package/dist/login-BnYzFDmd.cjs +0 -1
- package/dist/main-ZgUibS4P.cjs +0 -1
- package/dist/menu-BE_REnWn.cjs +0 -11
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/dist/request-D70ZQl-W.cjs +0 -6
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -1,42 +1,41 @@
|
|
|
1
|
-
import { g as Cl, s as Al } from "./index
|
|
2
|
-
import { _ as $l,
|
|
3
|
-
import { ref as
|
|
4
|
-
import { s as ue, a as el, b as
|
|
1
|
+
import { g as Cl, s as Al } from "./index-CIh-8WPZ.js";
|
|
2
|
+
import { _ as $l, a as Ol, s as _l } from "./index.vue_vue_type_script_setup_true_lang-DP5Alumh.js";
|
|
3
|
+
import { ref as R, watch as te, resolveComponent as Ve, createElementBlock as q, openBlock as Z, createElementVNode as w, createVNode as z, toDisplayString as K, withCtx as ne, createTextVNode as ce, Fragment as de, renderList as _e, createBlock as Se, resolveDynamicComponent as Pe, createCommentVNode as vl } from "vue";
|
|
4
|
+
import { s as ue, a as el, b as xl } from "./index-BtK6i9pV.js";
|
|
5
5
|
import { _ as ge } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import { U as Be, g as Ue, a as je, i as Fe, S as ke, b as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { g as Je } from "./index-
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
var Pl = "__lodash_hash_undefined__";
|
|
14
|
-
function Bl(e) {
|
|
15
|
-
return this.__data__.set(e, Pl), this;
|
|
16
|
-
}
|
|
6
|
+
import { U as Be, g as Ue, a as je, i as Fe, S as ke, b as Tl, c as u } from "./cloneDeep-BLQghEgs.js";
|
|
7
|
+
import { _ as El } from "./index.vue_vue_type_script_setup_true_lang-DQ2k4Z7D.js";
|
|
8
|
+
import { p as xe, g as Je, a as Dl } from "./index-Bu89TD1D.js";
|
|
9
|
+
import { s as Te, u as Nl } from "./menu-ClqeFk6S.js";
|
|
10
|
+
import { u as ll } from "./modelComp-D8PxHDjf.js";
|
|
11
|
+
import { M as Sl, S as Re, e as Pl, i as Le, b as we } from "./index-C_SFjPGc.js";
|
|
12
|
+
var Bl = "__lodash_hash_undefined__";
|
|
17
13
|
function Ul(e) {
|
|
14
|
+
return this.__data__.set(e, Bl), this;
|
|
15
|
+
}
|
|
16
|
+
function jl(e) {
|
|
18
17
|
return this.__data__.has(e);
|
|
19
18
|
}
|
|
20
19
|
function me(e) {
|
|
21
20
|
var t = -1, n = e == null ? 0 : e.length;
|
|
22
|
-
for (this.__data__ = new
|
|
21
|
+
for (this.__data__ = new Sl(); ++t < n; )
|
|
23
22
|
this.add(e[t]);
|
|
24
23
|
}
|
|
25
|
-
me.prototype.add = me.prototype.push =
|
|
26
|
-
me.prototype.has =
|
|
27
|
-
function
|
|
24
|
+
me.prototype.add = me.prototype.push = Ul;
|
|
25
|
+
me.prototype.has = jl;
|
|
26
|
+
function Fl(e, t) {
|
|
28
27
|
for (var n = -1, l = e == null ? 0 : e.length; ++n < l; )
|
|
29
28
|
if (t(e[n], n, e))
|
|
30
29
|
return !0;
|
|
31
30
|
return !1;
|
|
32
31
|
}
|
|
33
|
-
function
|
|
32
|
+
function Jl(e, t) {
|
|
34
33
|
return e.has(t);
|
|
35
34
|
}
|
|
36
|
-
var
|
|
35
|
+
var Rl = 1, Ll = 2;
|
|
37
36
|
function tl(e, t, n, l, a, s) {
|
|
38
|
-
var
|
|
39
|
-
if (p != i && !(
|
|
37
|
+
var r = n & Rl, p = e.length, i = t.length;
|
|
38
|
+
if (p != i && !(r && i > p))
|
|
40
39
|
return !1;
|
|
41
40
|
var d = s.get(e), m = s.get(t);
|
|
42
41
|
if (d && m)
|
|
@@ -45,7 +44,7 @@ function tl(e, t, n, l, a, s) {
|
|
|
45
44
|
for (s.set(e, t), s.set(t, e); ++_ < p; ) {
|
|
46
45
|
var C = e[_], E = t[_];
|
|
47
46
|
if (l)
|
|
48
|
-
var h =
|
|
47
|
+
var h = r ? l(E, C, _, t, e, s) : l(C, E, _, e, t, s);
|
|
49
48
|
if (h !== void 0) {
|
|
50
49
|
if (h)
|
|
51
50
|
continue;
|
|
@@ -53,8 +52,8 @@ function tl(e, t, n, l, a, s) {
|
|
|
53
52
|
break;
|
|
54
53
|
}
|
|
55
54
|
if (v) {
|
|
56
|
-
if (!
|
|
57
|
-
if (!
|
|
55
|
+
if (!Fl(t, function(f, g) {
|
|
56
|
+
if (!Jl(v, g) && (C === f || a(C, f, n, l, s)))
|
|
58
57
|
return v.push(g);
|
|
59
58
|
})) {
|
|
60
59
|
$ = !1;
|
|
@@ -67,62 +66,62 @@ function tl(e, t, n, l, a, s) {
|
|
|
67
66
|
}
|
|
68
67
|
return s.delete(e), s.delete(t), $;
|
|
69
68
|
}
|
|
70
|
-
function
|
|
69
|
+
function wl(e) {
|
|
71
70
|
var t = -1, n = Array(e.size);
|
|
72
71
|
return e.forEach(function(l, a) {
|
|
73
72
|
n[++t] = [a, l];
|
|
74
73
|
}), n;
|
|
75
74
|
}
|
|
76
|
-
function
|
|
75
|
+
function Gl(e) {
|
|
77
76
|
var t = -1, n = Array(e.size);
|
|
78
77
|
return e.forEach(function(l) {
|
|
79
78
|
n[++t] = l;
|
|
80
79
|
}), n;
|
|
81
80
|
}
|
|
82
|
-
var
|
|
83
|
-
function
|
|
81
|
+
var Ml = 1, Il = 2, Hl = "[object Boolean]", Wl = "[object Date]", Zl = "[object Error]", Kl = "[object Map]", ql = "[object Number]", zl = "[object RegExp]", Ql = "[object Set]", Xl = "[object String]", Yl = "[object Symbol]", Vl = "[object ArrayBuffer]", et = "[object DataView]", Ge = Re ? Re.prototype : void 0, Ce = Ge ? Ge.valueOf : void 0;
|
|
82
|
+
function lt(e, t, n, l, a, s, r) {
|
|
84
83
|
switch (n) {
|
|
85
|
-
case
|
|
84
|
+
case et:
|
|
86
85
|
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
|
|
87
86
|
return !1;
|
|
88
87
|
e = e.buffer, t = t.buffer;
|
|
89
|
-
case
|
|
88
|
+
case Vl:
|
|
90
89
|
return !(e.byteLength != t.byteLength || !s(new Be(e), new Be(t)));
|
|
91
|
-
case Il:
|
|
92
90
|
case Hl:
|
|
93
|
-
case Kl:
|
|
94
|
-
return Sl(+e, +t);
|
|
95
91
|
case Wl:
|
|
96
|
-
return e.name == t.name && e.message == t.message;
|
|
97
92
|
case ql:
|
|
98
|
-
|
|
99
|
-
return e == t + "";
|
|
93
|
+
return Pl(+e, +t);
|
|
100
94
|
case Zl:
|
|
101
|
-
|
|
95
|
+
return e.name == t.name && e.message == t.message;
|
|
102
96
|
case zl:
|
|
103
|
-
|
|
104
|
-
|
|
97
|
+
case Xl:
|
|
98
|
+
return e == t + "";
|
|
99
|
+
case Kl:
|
|
100
|
+
var p = wl;
|
|
101
|
+
case Ql:
|
|
102
|
+
var i = l & Ml;
|
|
103
|
+
if (p || (p = Gl), e.size != t.size && !i)
|
|
105
104
|
return !1;
|
|
106
|
-
var d =
|
|
105
|
+
var d = r.get(e);
|
|
107
106
|
if (d)
|
|
108
107
|
return d == t;
|
|
109
|
-
l |=
|
|
110
|
-
var m = tl(p(e), p(t), l, a, s,
|
|
111
|
-
return
|
|
112
|
-
case
|
|
108
|
+
l |= Il, r.set(e, t);
|
|
109
|
+
var m = tl(p(e), p(t), l, a, s, r);
|
|
110
|
+
return r.delete(e), m;
|
|
111
|
+
case Yl:
|
|
113
112
|
if (Ce)
|
|
114
113
|
return Ce.call(e) == Ce.call(t);
|
|
115
114
|
}
|
|
116
115
|
return !1;
|
|
117
116
|
}
|
|
118
|
-
var
|
|
119
|
-
function
|
|
120
|
-
var
|
|
121
|
-
if (i != m && !
|
|
117
|
+
var tt = 1, nt = Object.prototype, at = nt.hasOwnProperty;
|
|
118
|
+
function st(e, t, n, l, a, s) {
|
|
119
|
+
var r = n & tt, p = Ue(e), i = p.length, d = Ue(t), m = d.length;
|
|
120
|
+
if (i != m && !r)
|
|
122
121
|
return !1;
|
|
123
122
|
for (var _ = i; _--; ) {
|
|
124
123
|
var $ = p[_];
|
|
125
|
-
if (!(
|
|
124
|
+
if (!(r ? $ in t : at.call(t, $)))
|
|
126
125
|
return !1;
|
|
127
126
|
}
|
|
128
127
|
var v = s.get(e), C = s.get(t);
|
|
@@ -130,11 +129,11 @@ function at(e, t, n, l, a, s) {
|
|
|
130
129
|
return v == t && C == e;
|
|
131
130
|
var E = !0;
|
|
132
131
|
s.set(e, t), s.set(t, e);
|
|
133
|
-
for (var h =
|
|
132
|
+
for (var h = r; ++_ < i; ) {
|
|
134
133
|
$ = p[_];
|
|
135
134
|
var f = e[$], g = t[$];
|
|
136
135
|
if (l)
|
|
137
|
-
var k =
|
|
136
|
+
var k = r ? l(g, f, $, t, e, s) : l(f, g, $, e, t, s);
|
|
138
137
|
if (!(k === void 0 ? f === g || a(f, g, n, l, s) : k)) {
|
|
139
138
|
E = !1;
|
|
140
139
|
break;
|
|
@@ -142,39 +141,39 @@ function at(e, t, n, l, a, s) {
|
|
|
142
141
|
h || (h = $ == "constructor");
|
|
143
142
|
}
|
|
144
143
|
if (E && !h) {
|
|
145
|
-
var c = e.constructor,
|
|
146
|
-
c !=
|
|
144
|
+
var c = e.constructor, o = t.constructor;
|
|
145
|
+
c != o && "constructor" in e && "constructor" in t && !(typeof c == "function" && c instanceof c && typeof o == "function" && o instanceof o) && (E = !1);
|
|
147
146
|
}
|
|
148
147
|
return s.delete(e), s.delete(t), E;
|
|
149
148
|
}
|
|
150
|
-
var
|
|
151
|
-
function
|
|
152
|
-
var
|
|
149
|
+
var rt = 1, Me = "[object Arguments]", Ie = "[object Array]", pe = "[object Object]", ot = Object.prototype, He = ot.hasOwnProperty;
|
|
150
|
+
function ct(e, t, n, l, a, s) {
|
|
151
|
+
var r = Le(e), p = Le(t), i = r ? Ie : je(e), d = p ? Ie : je(t);
|
|
153
152
|
i = i == Me ? pe : i, d = d == Me ? pe : d;
|
|
154
153
|
var m = i == pe, _ = d == pe, $ = i == d;
|
|
155
154
|
if ($ && Fe(e)) {
|
|
156
155
|
if (!Fe(t))
|
|
157
156
|
return !1;
|
|
158
|
-
|
|
157
|
+
r = !0, m = !1;
|
|
159
158
|
}
|
|
160
159
|
if ($ && !m)
|
|
161
|
-
return s || (s = new ke()),
|
|
162
|
-
if (!(n &
|
|
160
|
+
return s || (s = new ke()), r || Tl(e) ? tl(e, t, n, l, a, s) : lt(e, t, i, n, l, a, s);
|
|
161
|
+
if (!(n & rt)) {
|
|
163
162
|
var v = m && He.call(e, "__wrapped__"), C = _ && He.call(t, "__wrapped__");
|
|
164
163
|
if (v || C) {
|
|
165
164
|
var E = v ? e.value() : e, h = C ? t.value() : t;
|
|
166
165
|
return s || (s = new ke()), a(E, h, n, l, s);
|
|
167
166
|
}
|
|
168
167
|
}
|
|
169
|
-
return $ ? (s || (s = new ke()),
|
|
168
|
+
return $ ? (s || (s = new ke()), st(e, t, n, l, a, s)) : !1;
|
|
170
169
|
}
|
|
171
170
|
function nl(e, t, n, l, a) {
|
|
172
|
-
return e === t ? !0 : e == null || t == null || !we(e) && !we(t) ? e !== e && t !== t :
|
|
171
|
+
return e === t ? !0 : e == null || t == null || !we(e) && !we(t) ? e !== e && t !== t : ct(e, t, n, l, nl, a);
|
|
173
172
|
}
|
|
174
|
-
function
|
|
173
|
+
function ut(e, t) {
|
|
175
174
|
return nl(e, t);
|
|
176
175
|
}
|
|
177
|
-
const
|
|
176
|
+
const pt = { class: "table-operate-content" }, it = { class: "table-operate-item" }, ft = { class: "operate-title" }, dt = { class: "operate-content" }, ht = { class: "operate-title" }, yt = { class: "operate-content" }, mt = { class: "operate-title" }, gt = { class: "operate-content" }, bt = { class: "operate-content" }, kt = {
|
|
178
177
|
__name: "operate",
|
|
179
178
|
props: {
|
|
180
179
|
itemContents: {
|
|
@@ -188,7 +187,7 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
188
187
|
},
|
|
189
188
|
emits: ["change"],
|
|
190
189
|
setup(e, { emit: t }) {
|
|
191
|
-
const n = e, l = t, a =
|
|
190
|
+
const n = e, l = t, a = R([]), s = R([]), r = R([]), p = R([{
|
|
192
191
|
label: "按钮名称",
|
|
193
192
|
prop: "label",
|
|
194
193
|
type: "edit"
|
|
@@ -206,7 +205,7 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
206
205
|
prop: "operate",
|
|
207
206
|
type: "operate",
|
|
208
207
|
sortable: !1
|
|
209
|
-
}]), i =
|
|
208
|
+
}]), i = R([{
|
|
210
209
|
label: "标签名称",
|
|
211
210
|
prop: "label",
|
|
212
211
|
type: "edit"
|
|
@@ -224,7 +223,7 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
224
223
|
prop: "operate",
|
|
225
224
|
type: "operate",
|
|
226
225
|
sortable: !1
|
|
227
|
-
}]), d =
|
|
226
|
+
}]), d = R([]), m = R(0), _ = R([{
|
|
228
227
|
name: "isPagination",
|
|
229
228
|
label: "是否显示分页",
|
|
230
229
|
type: "Switch",
|
|
@@ -302,18 +301,18 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
302
301
|
type: "operate",
|
|
303
302
|
sortable: !1
|
|
304
303
|
}], v = (c) => {
|
|
305
|
-
let
|
|
306
|
-
const y =
|
|
307
|
-
(y == null ? void 0 : y.contents) !== void 0 ?
|
|
304
|
+
let o = u(a.value);
|
|
305
|
+
const y = o == null ? void 0 : o.find((A) => A.key === "page");
|
|
306
|
+
(y == null ? void 0 : y.contents) !== void 0 ? o = o == null ? void 0 : o.map((A) => ((A == null ? void 0 : A.key) === "page" && (A.contents = c == null ? void 0 : c.isPagination), A)) : o.push({
|
|
308
307
|
key: "page",
|
|
309
308
|
contents: c == null ? void 0 : c.isPagination
|
|
310
|
-
}), a.value =
|
|
309
|
+
}), a.value = o;
|
|
311
310
|
};
|
|
312
311
|
te(
|
|
313
312
|
() => n.originalItemContents,
|
|
314
313
|
() => {
|
|
315
|
-
var c,
|
|
316
|
-
!n.originalItemContents || n.originalItemContents.length === 0 || (a.value = u(n.originalItemContents), s.value = (
|
|
314
|
+
var c, o, y, A, O, P, x, U, G, T, S, N, D;
|
|
315
|
+
!n.originalItemContents || n.originalItemContents.length === 0 || (a.value = u(n.originalItemContents), s.value = (o = (c = a.value) == null ? void 0 : c.find((b) => (b == null ? void 0 : b.key) === "header")) == null ? void 0 : o.contents, r.value = (A = (y = a.value) == null ? void 0 : y.find((b) => (b == null ? void 0 : b.key) === "rowButton")) == null ? void 0 : A.contents, p.value = (P = (O = a.value) == null ? void 0 : O.find((b) => (b == null ? void 0 : b.key) === "extraButton")) == null ? void 0 : P.contents, _.value = (U = (x = a.value) == null ? void 0 : x.find((b) => (b == null ? void 0 : b.key) === "page")) != null && U.contents ? [{
|
|
317
316
|
name: "isPagination",
|
|
318
317
|
label: "是否显示分页",
|
|
319
318
|
type: "Switch",
|
|
@@ -335,7 +334,7 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
335
334
|
isEditCol: (b == null ? void 0 : b.isEditCol) ?? !1,
|
|
336
335
|
isOperate: (b == null ? void 0 : b.isOperate) ?? !1,
|
|
337
336
|
id: (b == null ? void 0 : b.id) ?? B
|
|
338
|
-
}),
|
|
337
|
+
}), r.value = (N = r.value) == null ? void 0 : N.map((b, B) => b = {
|
|
339
338
|
label: (b == null ? void 0 : b.label) ?? "",
|
|
340
339
|
type: (b == null ? void 0 : b.type) ?? "",
|
|
341
340
|
textColor: (b == null ? void 0 : b.textColor) ?? "#000000",
|
|
@@ -353,8 +352,8 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
353
352
|
() => {
|
|
354
353
|
var y;
|
|
355
354
|
let c = u(a.value);
|
|
356
|
-
const
|
|
357
|
-
|
|
355
|
+
const o = c == null ? void 0 : c.find((A) => A.key === "page");
|
|
356
|
+
o != null && o.contents ? c = c == null ? void 0 : c.map((A) => {
|
|
358
357
|
var O;
|
|
359
358
|
return (A == null ? void 0 : A.key) === "page" && (A.contents = (O = _.value) == null ? void 0 : O[0].value), A;
|
|
360
359
|
}) : c.push({
|
|
@@ -366,7 +365,7 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
366
365
|
);
|
|
367
366
|
const C = () => {
|
|
368
367
|
const c = u(s.value);
|
|
369
|
-
let
|
|
368
|
+
let o = u(a.value);
|
|
370
369
|
c.push({
|
|
371
370
|
label: "",
|
|
372
371
|
prop: "",
|
|
@@ -380,88 +379,88 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
380
379
|
isOperate: !1,
|
|
381
380
|
id: m.value
|
|
382
381
|
}), s.value = c, m.value++;
|
|
383
|
-
const y =
|
|
384
|
-
y != null && y.contents ? (y.contents = c,
|
|
382
|
+
const y = o == null ? void 0 : o.find((A) => (A == null ? void 0 : A.key) === "header");
|
|
383
|
+
y != null && y.contents ? (y.contents = c, o = o == null ? void 0 : o.map((A) => ((A == null ? void 0 : A.key) === "header" && (A.contents = c), A))) : o.push({
|
|
385
384
|
key: "header",
|
|
386
385
|
contents: c
|
|
387
|
-
}), a.value =
|
|
386
|
+
}), a.value = o;
|
|
388
387
|
}, E = () => {
|
|
389
|
-
const c = u(
|
|
390
|
-
let
|
|
388
|
+
const c = u(r.value);
|
|
389
|
+
let o = u(a.value);
|
|
391
390
|
c.push({
|
|
392
391
|
label: "",
|
|
393
392
|
type: "",
|
|
394
393
|
textColor: "#000000",
|
|
395
394
|
id: m.value
|
|
396
|
-
}),
|
|
397
|
-
const y =
|
|
398
|
-
y != null && y.contents ? (y.contents = c,
|
|
395
|
+
}), r.value = c, m.value++;
|
|
396
|
+
const y = o == null ? void 0 : o.find((A) => (A == null ? void 0 : A.key) === "rowButton");
|
|
397
|
+
y != null && y.contents ? (y.contents = c, o = o == null ? void 0 : o.map((A) => ((A == null ? void 0 : A.key) === "rowButton" && (A.contents = c), A))) : o.push({
|
|
399
398
|
key: "rowButton",
|
|
400
399
|
contents: c
|
|
401
|
-
}), a.value =
|
|
400
|
+
}), a.value = o;
|
|
402
401
|
}, h = () => {
|
|
403
402
|
const c = u(d.value);
|
|
404
|
-
let
|
|
403
|
+
let o = u(a.value);
|
|
405
404
|
c.push({
|
|
406
405
|
label: "",
|
|
407
406
|
type: "",
|
|
408
407
|
background: "#FFFFFF",
|
|
409
408
|
id: m.value
|
|
410
409
|
}), d.value = c, m.value++;
|
|
411
|
-
const y =
|
|
412
|
-
y != null && y.contents ? (y.contents = c,
|
|
410
|
+
const y = o == null ? void 0 : o.find((A) => (A == null ? void 0 : A.key) === "extraButton");
|
|
411
|
+
y != null && y.contents ? (y.contents = c, o = o == null ? void 0 : o.map((A) => ((A == null ? void 0 : A.key) === "extraButton" && (A.contents = c), A))) : o.push({
|
|
413
412
|
key: "extraButton",
|
|
414
413
|
contents: c
|
|
415
|
-
}), a.value =
|
|
414
|
+
}), a.value = o;
|
|
416
415
|
}, f = (c) => {
|
|
417
|
-
const
|
|
416
|
+
const o = u(r.value);
|
|
418
417
|
let y = u(a.value);
|
|
419
|
-
|
|
418
|
+
r.value = o.filter((O) => O.id !== c.id);
|
|
420
419
|
const A = y == null ? void 0 : y.find((O) => O.key === "rowButton");
|
|
421
|
-
A != null && A.contents && (y = y == null ? void 0 : y.map((O) => ((O == null ? void 0 : O.key) === "rowButton" && (O.contents =
|
|
420
|
+
A != null && A.contents && (y = y == null ? void 0 : y.map((O) => ((O == null ? void 0 : O.key) === "rowButton" && (O.contents = o.filter((P) => P.id !== c.id)), O))), a.value = y;
|
|
422
421
|
}, g = (c) => {
|
|
423
|
-
const
|
|
422
|
+
const o = u(d.value);
|
|
424
423
|
let y = u(a.value);
|
|
425
|
-
d.value =
|
|
424
|
+
d.value = o.filter((O) => O.id !== c.id);
|
|
426
425
|
const A = y == null ? void 0 : y.find((O) => O.key === "extraButton");
|
|
427
|
-
A != null && A.contents && (y = y == null ? void 0 : y.map((O) => ((O == null ? void 0 : O.key) === "extraButton" && (O.contents =
|
|
426
|
+
A != null && A.contents && (y = y == null ? void 0 : y.map((O) => ((O == null ? void 0 : O.key) === "extraButton" && (O.contents = o.filter((P) => P.id !== c.id)), O))), a.value = y;
|
|
428
427
|
}, k = (c) => {
|
|
429
|
-
const
|
|
428
|
+
const o = u(s.value);
|
|
430
429
|
let y = u(a.value);
|
|
431
|
-
s.value =
|
|
430
|
+
s.value = o.filter((O) => O.id !== c.id);
|
|
432
431
|
const A = y == null ? void 0 : y.find((O) => O.key === "header");
|
|
433
|
-
A != null && A.contents && (y = y == null ? void 0 : y.map((O) => ((O == null ? void 0 : O.key) === "header" && (O.contents =
|
|
432
|
+
A != null && A.contents && (y = y == null ? void 0 : y.map((O) => ((O == null ? void 0 : O.key) === "header" && (O.contents = o.filter((P) => P.id !== c.id)), O))), a.value = y;
|
|
434
433
|
};
|
|
435
434
|
return te(
|
|
436
435
|
() => [a.value, s.value],
|
|
437
436
|
() => {
|
|
438
437
|
let c = u(a.value);
|
|
439
|
-
const
|
|
440
|
-
|
|
438
|
+
const o = c == null ? void 0 : c.find((y) => (y == null ? void 0 : y.key) === "header");
|
|
439
|
+
o != null && o.contents ? (o.contents = s.value, c = c == null ? void 0 : c.map((y) => ((y == null ? void 0 : y.key) === "header" && (y.contents = s.value), y))) : c.push({
|
|
441
440
|
key: "header",
|
|
442
441
|
contents: s.value
|
|
443
442
|
}), l("change", c);
|
|
444
443
|
},
|
|
445
444
|
{ deep: !0, immediate: !0 }
|
|
446
|
-
), (c,
|
|
445
|
+
), (c, o) => {
|
|
447
446
|
const y = Ve("el-button");
|
|
448
|
-
return Z(), q("div",
|
|
449
|
-
w("div",
|
|
450
|
-
w("div",
|
|
451
|
-
|
|
447
|
+
return Z(), q("div", pt, [
|
|
448
|
+
w("div", it, [
|
|
449
|
+
w("div", ft, [
|
|
450
|
+
o[1] || (o[1] = w("div", null, K("表头"), -1)),
|
|
452
451
|
z(y, {
|
|
453
452
|
class: "blue-operate-button",
|
|
454
453
|
icon: "ele-Plus",
|
|
455
454
|
onClick: C
|
|
456
455
|
}, {
|
|
457
|
-
default: ne(() =>
|
|
456
|
+
default: ne(() => o[0] || (o[0] = [
|
|
458
457
|
ce(K("新建"))
|
|
459
458
|
])),
|
|
460
459
|
_: 1,
|
|
461
460
|
__: [0]
|
|
462
461
|
})
|
|
463
462
|
]),
|
|
464
|
-
w("div",
|
|
463
|
+
w("div", dt, [
|
|
465
464
|
z(ue, {
|
|
466
465
|
columns: $,
|
|
467
466
|
isShowPagination: !1,
|
|
@@ -471,45 +470,45 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
471
470
|
onDeleteRow: k
|
|
472
471
|
}, null, 8, ["tableData"])
|
|
473
472
|
]),
|
|
474
|
-
w("div",
|
|
475
|
-
|
|
473
|
+
w("div", ht, [
|
|
474
|
+
o[3] || (o[3] = w("div", null, K("行内按钮"), -1)),
|
|
476
475
|
z(y, {
|
|
477
476
|
class: "blue-operate-button",
|
|
478
477
|
icon: "ele-Plus",
|
|
479
478
|
onClick: E
|
|
480
479
|
}, {
|
|
481
|
-
default: ne(() =>
|
|
480
|
+
default: ne(() => o[2] || (o[2] = [
|
|
482
481
|
ce(K("新建"))
|
|
483
482
|
])),
|
|
484
483
|
_: 1,
|
|
485
484
|
__: [2]
|
|
486
485
|
})
|
|
487
486
|
]),
|
|
488
|
-
w("div",
|
|
487
|
+
w("div", yt, [
|
|
489
488
|
z(ue, {
|
|
490
489
|
columns: i.value,
|
|
491
490
|
isShowPagination: !1,
|
|
492
491
|
isShowEdit: !1,
|
|
493
492
|
isMoveColumn: !1,
|
|
494
|
-
tableData:
|
|
493
|
+
tableData: r.value,
|
|
495
494
|
onDeleteRow: f
|
|
496
495
|
}, null, 8, ["columns", "tableData"])
|
|
497
496
|
]),
|
|
498
|
-
w("div",
|
|
499
|
-
|
|
497
|
+
w("div", mt, [
|
|
498
|
+
o[5] || (o[5] = w("div", null, K("表格外部按钮"), -1)),
|
|
500
499
|
z(y, {
|
|
501
500
|
class: "blue-operate-button",
|
|
502
501
|
icon: "ele-Plus",
|
|
503
502
|
onClick: h
|
|
504
503
|
}, {
|
|
505
|
-
default: ne(() =>
|
|
504
|
+
default: ne(() => o[4] || (o[4] = [
|
|
506
505
|
ce(K("新建"))
|
|
507
506
|
])),
|
|
508
507
|
_: 1,
|
|
509
508
|
__: [4]
|
|
510
509
|
})
|
|
511
510
|
]),
|
|
512
|
-
w("div",
|
|
511
|
+
w("div", gt, [
|
|
513
512
|
z(ue, {
|
|
514
513
|
columns: p.value,
|
|
515
514
|
isShowPagination: !1,
|
|
@@ -519,10 +518,10 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
519
518
|
onDeleteRow: g
|
|
520
519
|
}, null, 8, ["columns", "tableData"])
|
|
521
520
|
]),
|
|
522
|
-
|
|
521
|
+
o[6] || (o[6] = w("div", { class: "operate-title" }, [
|
|
523
522
|
w("div", null, K("分页"))
|
|
524
523
|
], -1)),
|
|
525
|
-
w("div",
|
|
524
|
+
w("div", bt, [
|
|
526
525
|
z(el, {
|
|
527
526
|
rowContents: _.value,
|
|
528
527
|
onChange: v
|
|
@@ -532,7 +531,7 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
532
531
|
]);
|
|
533
532
|
};
|
|
534
533
|
}
|
|
535
|
-
},
|
|
534
|
+
}, Ct = /* @__PURE__ */ ge(kt, [["__scopeId", "data-v-877911eb"]]), At = { class: "form-operate-content" }, $t = { class: "form-operate-item" }, Ot = { class: "operate-title" }, _t = { class: "operate-content" }, vt = { class: "operate-title" }, xt = { class: "operate-content" }, Tt = { class: "operate-content" }, Et = {
|
|
536
535
|
__name: "operate",
|
|
537
536
|
props: {
|
|
538
537
|
itemContents: {
|
|
@@ -546,12 +545,12 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
546
545
|
},
|
|
547
546
|
emits: ["change"],
|
|
548
547
|
setup(e, { emit: t }) {
|
|
549
|
-
const n = e, l = t, a =
|
|
548
|
+
const n = e, l = t, a = R([{
|
|
550
549
|
name: "isRowFlex",
|
|
551
550
|
label: "是否横向布局",
|
|
552
551
|
type: "Switch",
|
|
553
552
|
value: !0
|
|
554
|
-
}]), s =
|
|
553
|
+
}]), s = R([{
|
|
555
554
|
label: "字段名称",
|
|
556
555
|
prop: "label",
|
|
557
556
|
type: "edit"
|
|
@@ -572,7 +571,7 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
572
571
|
prop: "operate",
|
|
573
572
|
type: "operate",
|
|
574
573
|
sortable: !1
|
|
575
|
-
}]),
|
|
574
|
+
}]), r = R([{
|
|
576
575
|
label: "字段名称",
|
|
577
576
|
prop: "label",
|
|
578
577
|
type: "edit"
|
|
@@ -590,18 +589,18 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
590
589
|
prop: "operate",
|
|
591
590
|
type: "operate",
|
|
592
591
|
sortable: !1
|
|
593
|
-
}]), p =
|
|
592
|
+
}]), p = R([]), i = R([]), d = R([]), m = R(0);
|
|
594
593
|
te(
|
|
595
594
|
() => n.originalItemContents,
|
|
596
595
|
() => {
|
|
597
|
-
var h, f, g, k, c,
|
|
596
|
+
var h, f, g, k, c, o, y, A, O, P;
|
|
598
597
|
!n.originalItemContents || n.originalItemContents.length === 0 || (i.value = u(n.originalItemContents), d.value = (f = (h = i.value) == null ? void 0 : h.find((x) => (x == null ? void 0 : x.key) === "formContent")) == null ? void 0 : f.contents, p.value = (k = (g = i.value) == null ? void 0 : g.find((x) => (x == null ? void 0 : x.key) === "formButton")) == null ? void 0 : k.contents, d.value = (c = d.value) == null ? void 0 : c.map((x, U) => x = {
|
|
599
598
|
label: (x == null ? void 0 : x.label) ?? "",
|
|
600
599
|
type: (x == null ? void 0 : x.type) ?? "",
|
|
601
600
|
key: (x == null ? void 0 : x.key) ?? "",
|
|
602
601
|
options: (x == null ? void 0 : x.options) ?? "",
|
|
603
602
|
id: (x == null ? void 0 : x.id) ?? U
|
|
604
|
-
}), p.value = (
|
|
603
|
+
}), p.value = (o = p.value) == null ? void 0 : o.map((x, U) => x = {
|
|
605
604
|
label: (x == null ? void 0 : x.label) ?? "",
|
|
606
605
|
type: (x == null ? void 0 : x.type) ?? "",
|
|
607
606
|
background: (x == null ? void 0 : x.background) ?? "#000000",
|
|
@@ -654,13 +653,13 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
654
653
|
let g = u(i.value);
|
|
655
654
|
p.value = f.filter((c) => c.id !== h.id);
|
|
656
655
|
const k = g == null ? void 0 : g.find((c) => c.key === "formButton");
|
|
657
|
-
k != null && k.contents && (g = g == null ? void 0 : g.map((c) => ((c == null ? void 0 : c.key) === "formButton" && (c.contents = f.filter((
|
|
656
|
+
k != null && k.contents && (g = g == null ? void 0 : g.map((c) => ((c == null ? void 0 : c.key) === "formButton" && (c.contents = f.filter((o) => o.id !== h.id)), c))), i.value = g;
|
|
658
657
|
}, C = (h) => {
|
|
659
658
|
const f = u(d.value);
|
|
660
659
|
let g = u(i.value);
|
|
661
660
|
d.value = f.filter((c) => c.id !== h.id);
|
|
662
661
|
const k = g == null ? void 0 : g.find((c) => c.key === "formContent");
|
|
663
|
-
k != null && k.contents && (g = g == null ? void 0 : g.map((c) => ((c == null ? void 0 : c.key) === "formContent" && (c.contents = f.filter((
|
|
662
|
+
k != null && k.contents && (g = g == null ? void 0 : g.map((c) => ((c == null ? void 0 : c.key) === "formContent" && (c.contents = f.filter((o) => o.id !== h.id)), c))), i.value = g;
|
|
664
663
|
}, E = (h) => {
|
|
665
664
|
let f = u(i.value);
|
|
666
665
|
const g = f == null ? void 0 : f.find((k) => k.key === "formFlex");
|
|
@@ -682,9 +681,9 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
682
681
|
{ deep: !0, immediate: !0 }
|
|
683
682
|
), (h, f) => {
|
|
684
683
|
const g = Ve("el-button");
|
|
685
|
-
return Z(), q("div",
|
|
686
|
-
w("div",
|
|
687
|
-
w("div",
|
|
684
|
+
return Z(), q("div", At, [
|
|
685
|
+
w("div", $t, [
|
|
686
|
+
w("div", Ot, [
|
|
688
687
|
f[1] || (f[1] = w("div", null, K("表单信息"), -1)),
|
|
689
688
|
z(g, {
|
|
690
689
|
class: "blue-operate-button",
|
|
@@ -698,7 +697,7 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
698
697
|
__: [0]
|
|
699
698
|
})
|
|
700
699
|
]),
|
|
701
|
-
w("div",
|
|
700
|
+
w("div", _t, [
|
|
702
701
|
z(ue, {
|
|
703
702
|
columns: s.value,
|
|
704
703
|
isShowPagination: !1,
|
|
@@ -708,7 +707,7 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
708
707
|
onDeleteRow: C
|
|
709
708
|
}, null, 8, ["columns", "tableData"])
|
|
710
709
|
]),
|
|
711
|
-
w("div",
|
|
710
|
+
w("div", vt, [
|
|
712
711
|
f[3] || (f[3] = w("div", null, K("表单按钮"), -1)),
|
|
713
712
|
z(g, {
|
|
714
713
|
class: "blue-operate-button",
|
|
@@ -722,9 +721,9 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
722
721
|
__: [2]
|
|
723
722
|
})
|
|
724
723
|
]),
|
|
725
|
-
w("div",
|
|
724
|
+
w("div", xt, [
|
|
726
725
|
z(ue, {
|
|
727
|
-
columns:
|
|
726
|
+
columns: r.value,
|
|
728
727
|
isShowPagination: !1,
|
|
729
728
|
isShowEdit: !1,
|
|
730
729
|
isMoveColumn: !1,
|
|
@@ -735,7 +734,7 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
735
734
|
f[4] || (f[4] = w("div", { class: "operate-title" }, [
|
|
736
735
|
w("div", null, K("表单布局"))
|
|
737
736
|
], -1)),
|
|
738
|
-
w("div",
|
|
737
|
+
w("div", Tt, [
|
|
739
738
|
z(el, {
|
|
740
739
|
rowContents: a.value,
|
|
741
740
|
onChange: E
|
|
@@ -745,7 +744,7 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
745
744
|
]);
|
|
746
745
|
};
|
|
747
746
|
}
|
|
748
|
-
},
|
|
747
|
+
}, Dt = /* @__PURE__ */ ge(Et, [["__scopeId", "data-v-a36b8468"]]), Nt = { class: "extra-content" }, St = { key: 0 }, Pt = { key: 1 }, Bt = {
|
|
749
748
|
__name: "index",
|
|
750
749
|
props: {
|
|
751
750
|
itemData: {
|
|
@@ -765,33 +764,33 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
765
764
|
},
|
|
766
765
|
emits: ["change"],
|
|
767
766
|
setup(e, { emit: t }) {
|
|
768
|
-
const n = e, l =
|
|
767
|
+
const n = e, l = R(0), a = R(), s = R(), r = t, p = R(!1), i = R({}), d = R({}), m = R();
|
|
769
768
|
te(
|
|
770
769
|
() => [n.itemData],
|
|
771
770
|
() => {
|
|
772
771
|
var c;
|
|
773
772
|
const k = u(n.itemData);
|
|
774
|
-
a.value = (c = u(k)) == null ? void 0 : c.map((
|
|
773
|
+
a.value = (c = u(k)) == null ? void 0 : c.map((o) => {
|
|
775
774
|
var y;
|
|
776
|
-
if (
|
|
775
|
+
if (o.key === "extra") {
|
|
777
776
|
let A = [];
|
|
778
|
-
(y =
|
|
777
|
+
(y = o.value) == null || y.forEach((O) => {
|
|
779
778
|
var P;
|
|
780
779
|
A.push((P = Object.values(O)) == null ? void 0 : P[0]);
|
|
781
|
-
}),
|
|
780
|
+
}), o.value = A;
|
|
782
781
|
}
|
|
783
|
-
return
|
|
782
|
+
return o;
|
|
784
783
|
});
|
|
785
784
|
},
|
|
786
785
|
{ deep: !0, immediate: !0 }
|
|
787
786
|
);
|
|
788
|
-
const _ = (k, c,
|
|
787
|
+
const _ = (k, c, o, y) => {
|
|
789
788
|
var O;
|
|
790
789
|
let A = {};
|
|
791
|
-
((O = k == null ? void 0 : k[0]) == null ? void 0 : O.contents) === "详情" && (p.value = !0, A[c] = k, s.value = k == null ? void 0 : k.filter((P) => (P == null ? void 0 : P.key) !== "tableContentName"), i.value = A, d.value =
|
|
790
|
+
((O = k == null ? void 0 : k[0]) == null ? void 0 : O.contents) === "详情" && (p.value = !0, A[c] = k, s.value = k == null ? void 0 : k.filter((P) => (P == null ? void 0 : P.key) !== "tableContentName"), i.value = A, d.value = o, m.value = y.id);
|
|
792
791
|
}, $ = (k) => {
|
|
793
792
|
var P, x, U, G;
|
|
794
|
-
const c = (x = (P = Object.values(u(i.value))) == null ? void 0 : P[0]) == null ? void 0 : x.filter((T) => (T == null ? void 0 : T.key) === "tableContentName"),
|
|
793
|
+
const c = (x = (P = Object.values(u(i.value))) == null ? void 0 : P[0]) == null ? void 0 : x.filter((T) => (T == null ? void 0 : T.key) === "tableContentName"), o = (G = (U = Object.values(u(i.value))) == null ? void 0 : U[0]) == null ? void 0 : G.filter((T) => (T == null ? void 0 : T.key) !== "tableContentName"), y = o == null ? void 0 : o.map((T, S) => {
|
|
795
794
|
var N;
|
|
796
795
|
return S === k.index && (T == null ? void 0 : T.comp) === "Table" && (T.compData = (N = T.compData) == null ? void 0 : N.map((D) => {
|
|
797
796
|
var b, B;
|
|
@@ -812,18 +811,18 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
812
811
|
p.value = !1, i.value = {}, d.value = {}, m.value = void 0, l.value++;
|
|
813
812
|
}, C = (k) => {
|
|
814
813
|
var P, x, U, G;
|
|
815
|
-
const c = (x = (P = Object.values(u(i.value))) == null ? void 0 : P[0]) == null ? void 0 : x.filter((T) => (T == null ? void 0 : T.key) === "tableContentName"),
|
|
814
|
+
const c = (x = (P = Object.values(u(i.value))) == null ? void 0 : P[0]) == null ? void 0 : x.filter((T) => (T == null ? void 0 : T.key) === "tableContentName"), o = (G = (U = Object.values(u(i.value))) == null ? void 0 : U[0]) == null ? void 0 : G.filter((T) => (T == null ? void 0 : T.key) !== "tableContentName"), y = o == null ? void 0 : o.map((T, S) => (S === k.index && (T.compData = k.contents), T));
|
|
816
815
|
y.unshift(c == null ? void 0 : c[0]);
|
|
817
816
|
let A = u(i.value), O = {};
|
|
818
817
|
for (let T in A)
|
|
819
818
|
O[T] = y;
|
|
820
819
|
i.value = O;
|
|
821
820
|
}, E = () => {
|
|
822
|
-
var c,
|
|
821
|
+
var c, o;
|
|
823
822
|
let k = {};
|
|
824
823
|
for (let y in d.value)
|
|
825
|
-
y === ((c = Object.keys(i.value)) == null ? void 0 : c[0]) ? k[y] = (
|
|
826
|
-
|
|
824
|
+
y === ((c = Object.keys(i.value)) == null ? void 0 : c[0]) ? k[y] = (o = Object.values(i.value)) == null ? void 0 : o[0] : k[y] = d.value[y];
|
|
825
|
+
r("change", {
|
|
827
826
|
buttonName: "编辑",
|
|
828
827
|
index: m.value,
|
|
829
828
|
singleContent: k
|
|
@@ -831,39 +830,39 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
831
830
|
}, h = () => {
|
|
832
831
|
p.value = !1, i.value = {}, d.value = {}, m.value = void 0;
|
|
833
832
|
}, f = (k) => {
|
|
834
|
-
|
|
835
|
-
}, g = (k) =>
|
|
833
|
+
r("change", k, "methodData");
|
|
834
|
+
}, g = (k) => Mt(k);
|
|
836
835
|
return (k, c) => (Z(), q(de, null, [
|
|
837
|
-
w("div",
|
|
838
|
-
(Z(!0), q(de, null, _e(a.value, (
|
|
839
|
-
(
|
|
840
|
-
(Z(), Se(Pe(g(
|
|
841
|
-
itemData:
|
|
842
|
-
childItemData:
|
|
836
|
+
w("div", Nt, [
|
|
837
|
+
(Z(!0), q(de, null, _e(a.value, (o, y) => (Z(), q("div", { key: l.value }, [
|
|
838
|
+
(o == null ? void 0 : o.key) === "extra" ? (Z(), q("div", St)) : (Z(), q("div", Pt, [
|
|
839
|
+
(Z(), Se(Pe(g(o.comp)), {
|
|
840
|
+
itemData: o == null ? void 0 : o.compData,
|
|
841
|
+
childItemData: o == null ? void 0 : o.itemChildData,
|
|
843
842
|
key: y,
|
|
844
|
-
index: (
|
|
843
|
+
index: (o == null ? void 0 : o.id) ?? y,
|
|
845
844
|
onContentClick: _,
|
|
846
845
|
onChange: f
|
|
847
846
|
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
848
847
|
]))
|
|
849
848
|
]))), 128))
|
|
850
849
|
]),
|
|
851
|
-
z(
|
|
850
|
+
z(xl, {
|
|
852
851
|
visible: p.value,
|
|
853
852
|
onBeforeDestroy: h
|
|
854
853
|
}, {
|
|
855
854
|
default: ne(() => [
|
|
856
|
-
(Z(!0), q(de, null, _e(s.value, (
|
|
855
|
+
(Z(!0), q(de, null, _e(s.value, (o, y) => (Z(), q("div", {
|
|
857
856
|
key: y,
|
|
858
857
|
class: "extra-dialog"
|
|
859
858
|
}, [
|
|
860
|
-
(Z(), Se(Pe(g(
|
|
861
|
-
itemData:
|
|
859
|
+
(Z(), Se(Pe(g(o.comp)), {
|
|
860
|
+
itemData: o == null ? void 0 : o.compData,
|
|
862
861
|
onChange: $,
|
|
863
|
-
childItemData:
|
|
862
|
+
childItemData: o == null ? void 0 : o.itemChildData,
|
|
864
863
|
key: y,
|
|
865
864
|
onContentChange: C,
|
|
866
|
-
index: (
|
|
865
|
+
index: (o == null ? void 0 : o.id) ?? y,
|
|
867
866
|
class: "extra-component"
|
|
868
867
|
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
869
868
|
]))), 128))
|
|
@@ -884,12 +883,12 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
884
883
|
}, 8, ["visible"])
|
|
885
884
|
], 64));
|
|
886
885
|
}
|
|
887
|
-
},
|
|
886
|
+
}, Ut = /* @__PURE__ */ ge(Bt, [["__scopeId", "data-v-e3e0f29d"]]), We = (e) => {
|
|
888
887
|
let t = [];
|
|
889
888
|
function n(a) {
|
|
890
889
|
a == null || a.forEach((s) => {
|
|
891
|
-
Array.isArray(s) || (s = [s]), s == null || s.forEach((
|
|
892
|
-
!(
|
|
890
|
+
Array.isArray(s) || (s = [s]), s == null || s.forEach((r) => {
|
|
891
|
+
!(r != null && r.children) || r.children.length === 0 ? t.push(r.label) : l(r.children);
|
|
893
892
|
});
|
|
894
893
|
});
|
|
895
894
|
}
|
|
@@ -899,22 +898,22 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
899
898
|
});
|
|
900
899
|
}
|
|
901
900
|
return n(e), t;
|
|
902
|
-
},
|
|
901
|
+
}, jt = (e, t, n) => {
|
|
903
902
|
var a;
|
|
904
|
-
let l = (a = u(e)) == null ? void 0 : a.map((s) => (s = s.filter((
|
|
903
|
+
let l = (a = u(e)) == null ? void 0 : a.map((s) => (s = s.filter((r) => !r.id), s));
|
|
905
904
|
return l = l == null ? void 0 : l.map((s) => {
|
|
906
|
-
var
|
|
907
|
-
return s = (
|
|
905
|
+
var r;
|
|
906
|
+
return s = (r = s.map((p, i) => {
|
|
908
907
|
let d = {};
|
|
909
908
|
if (n != null && n.find((m) => m === t[i]))
|
|
910
909
|
return d[t[i]] = p, d;
|
|
911
|
-
})) == null ? void 0 :
|
|
910
|
+
})) == null ? void 0 : r.filter((p) => p), s;
|
|
912
911
|
}), l;
|
|
913
|
-
},
|
|
914
|
-
var
|
|
915
|
-
const n = u(e), l = (
|
|
916
|
-
return
|
|
917
|
-
},
|
|
912
|
+
}, Ft = (e, t) => {
|
|
913
|
+
var r, p;
|
|
914
|
+
const n = u(e), l = (r = n == null ? void 0 : n.find((i) => (i == null ? void 0 : i.key) === "header")) == null ? void 0 : r.contents, a = (p = n == null ? void 0 : n.find((i) => (i == null ? void 0 : i.key) === "tableContents")) == null ? void 0 : p.contents;
|
|
915
|
+
return jt(a, We(l).slice(0, We(l).length - 1), t);
|
|
916
|
+
}, Jt = { class: "method-content" }, Rt = ["onClick"], Lt = {
|
|
918
917
|
__name: "index",
|
|
919
918
|
props: {
|
|
920
919
|
itemData: {
|
|
@@ -933,7 +932,7 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
933
932
|
}
|
|
934
933
|
},
|
|
935
934
|
setup(e) {
|
|
936
|
-
const t =
|
|
935
|
+
const t = R([]), n = e, l = ll(xe), { itemData: a } = Te(l), s = (i, d) => {
|
|
937
936
|
var _;
|
|
938
937
|
const m = (_ = d == null ? void 0 : d[0]) == null ? void 0 : _.children;
|
|
939
938
|
return i == null ? void 0 : i.map(($) => {
|
|
@@ -954,25 +953,25 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
954
953
|
},
|
|
955
954
|
{ deep: !0 }
|
|
956
955
|
);
|
|
957
|
-
const
|
|
958
|
-
var g, k, c,
|
|
956
|
+
const r = async (i) => {
|
|
957
|
+
var g, k, c, o, y, A;
|
|
959
958
|
let d = {};
|
|
960
959
|
if ((g = u(i.content)) == null || g.forEach((O, P) => {
|
|
961
960
|
var x, U, G, T, S, N, D, b, B, j, M, W, Q, le, se, re, H;
|
|
962
961
|
if ((O == null ? void 0 : O.comp) === "Table") {
|
|
963
|
-
let X = (T = (G = (U = (x = O == null ? void 0 : O.compData) == null ? void 0 : x.find((
|
|
962
|
+
let X = (T = (G = (U = (x = O == null ? void 0 : O.compData) == null ? void 0 : x.find((L) => (L == null ? void 0 : L.key) === "header")) == null ? void 0 : U.contents) == null ? void 0 : G[0]) == null ? void 0 : T.some((L) => L == null ? void 0 : L.children), Y = (D = (N = (S = O == null ? void 0 : O.compData) == null ? void 0 : S.find((L) => (L == null ? void 0 : L.key) === "tableContents")) == null ? void 0 : N.contents) == null ? void 0 : D.map((L) => L.slice(1)), I = (W = (M = (j = (B = (b = O == null ? void 0 : O.compData) == null ? void 0 : b.find((L) => (L == null ? void 0 : L.key) === "header")) == null ? void 0 : B.contents) == null ? void 0 : j[0]) == null ? void 0 : M[0]) == null ? void 0 : W.label, V = (se = (le = (Q = O == null ? void 0 : O.compData) == null ? void 0 : Q.find((L) => (L == null ? void 0 : L.key) === "header")) == null ? void 0 : le.contents) == null ? void 0 : se[0];
|
|
964
963
|
if (X)
|
|
965
964
|
d[I] = s(Y, V);
|
|
966
965
|
else {
|
|
967
|
-
const
|
|
966
|
+
const L = [];
|
|
968
967
|
V = V.slice(1, V.length - 1), V == null || V.forEach((bl, kl) => {
|
|
969
968
|
Y == null || Y.forEach((Ne) => {
|
|
970
|
-
|
|
969
|
+
L.push({
|
|
971
970
|
key: bl.label + Ne[0],
|
|
972
971
|
value: Ne[kl + 1]
|
|
973
972
|
});
|
|
974
973
|
});
|
|
975
|
-
}), d["form" + P] =
|
|
974
|
+
}), d["form" + P] = L;
|
|
976
975
|
}
|
|
977
976
|
} else {
|
|
978
977
|
const X = (H = (re = O.compData) == null ? void 0 : re.find((I) => (I == null ? void 0 : I.key) === "formContent")) == null ? void 0 : H.contents;
|
|
@@ -986,7 +985,7 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
986
985
|
}), d.form = Y;
|
|
987
986
|
}
|
|
988
987
|
}), i.api) {
|
|
989
|
-
const O = await
|
|
988
|
+
const O = await Dl.post(i.api, {
|
|
990
989
|
data: d,
|
|
991
990
|
templateFileName: (k = i == null ? void 0 : i.extraContent) == null ? void 0 : k[0]
|
|
992
991
|
}, {
|
|
@@ -998,13 +997,13 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
998
997
|
});
|
|
999
998
|
var m = new Blob([O.data], {
|
|
1000
999
|
type: "application/octet-stream;charset=UTF-8"
|
|
1001
|
-
}), _ = O.headers["content-disposition"], $ = new RegExp("filename=([^;]+\\.[^\\.;]+);*"), v = $.exec(_), C = ((y = (
|
|
1000
|
+
}), _ = O.headers["content-disposition"], $ = new RegExp("filename=([^;]+\\.[^\\.;]+);*"), v = $.exec(_), C = ((y = (o = (c = i == null ? void 0 : i.extraContent) == null ? void 0 : c[0]) == null ? void 0 : o.split(".")) == null ? void 0 : y[0]) + "." + ((A = v[1].split(".")) == null ? void 0 : A[1]), E = document.createElement("a"), h = window.URL.createObjectURL(m), f = /^["](.*)["]$/g;
|
|
1002
1001
|
E.style.display = "none", E.href = h, E.download = decodeURI(C.replace(f, "$1")), document.body.appendChild(E), E.click(), document.body.removeChild(E), window.URL.revokeObjectURL(h);
|
|
1003
1002
|
}
|
|
1004
1003
|
}, p = async (i) => {
|
|
1005
1004
|
var $;
|
|
1006
1005
|
const d = u(i), m = d == null ? void 0 : d.map(async (v) => {
|
|
1007
|
-
var k, c,
|
|
1006
|
+
var k, c, o, y, A, O;
|
|
1008
1007
|
const E = (k = (await Je({
|
|
1009
1008
|
key: {
|
|
1010
1009
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
@@ -1018,7 +1017,7 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
1018
1017
|
type: "methodData",
|
|
1019
1018
|
tableId: E == null ? void 0 : E.id
|
|
1020
1019
|
}
|
|
1021
|
-
}), f = await Cl((c = v == null ? void 0 : v.value) == null ? void 0 : c[0], sessionStorage.getItem("systemKey"), ""), g = (
|
|
1020
|
+
}), f = await Cl((c = v == null ? void 0 : v.value) == null ? void 0 : c[0], sessionStorage.getItem("systemKey"), ""), g = (o = h.data.result) == null ? void 0 : o[0];
|
|
1022
1021
|
return {
|
|
1023
1022
|
buttonName: (y = E == null ? void 0 : E.key) == null ? void 0 : y.methodKey,
|
|
1024
1023
|
api: (O = (A = g == null ? void 0 : g.value) == null ? void 0 : A.tableData) == null ? void 0 : O[0],
|
|
@@ -1030,7 +1029,7 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
1030
1029
|
var C;
|
|
1031
1030
|
v.api === "" && ((C = v.content) == null || C.forEach((E) => {
|
|
1032
1031
|
var h;
|
|
1033
|
-
E.comp == "Table" && l.setExtraContents(
|
|
1032
|
+
E.comp == "Table" && l.setExtraContents(Ft(E.compData, (h = v.extraContent) == null ? void 0 : h[0]));
|
|
1034
1033
|
}));
|
|
1035
1034
|
});
|
|
1036
1035
|
};
|
|
@@ -1040,17 +1039,17 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
1040
1039
|
await p(u(n.itemData));
|
|
1041
1040
|
},
|
|
1042
1041
|
{ immediate: !0, deep: !0 }
|
|
1043
|
-
), (i, d) => (Z(), q("div",
|
|
1042
|
+
), (i, d) => (Z(), q("div", Jt, [
|
|
1044
1043
|
(Z(!0), q(de, null, _e(t.value, (m) => (Z(), q("div", null, [
|
|
1045
1044
|
m.api !== "" ? (Z(), q("div", {
|
|
1046
1045
|
key: 0,
|
|
1047
|
-
onClick: (_) =>
|
|
1046
|
+
onClick: (_) => r(m),
|
|
1048
1047
|
class: "method-buttons"
|
|
1049
|
-
}, K(m.buttonName), 9,
|
|
1048
|
+
}, K(m.buttonName), 9, Rt)) : vl("", !0)
|
|
1050
1049
|
]))), 256))
|
|
1051
1050
|
]));
|
|
1052
1051
|
}
|
|
1053
|
-
},
|
|
1052
|
+
}, wt = /* @__PURE__ */ ge(Lt, [["__scopeId", "data-v-3daae5c9"]]), Wn = R([
|
|
1054
1053
|
{
|
|
1055
1054
|
name: "表格",
|
|
1056
1055
|
type: "table",
|
|
@@ -1081,19 +1080,20 @@ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item
|
|
|
1081
1080
|
comp: "Signature",
|
|
1082
1081
|
icon: "Signature"
|
|
1083
1082
|
}
|
|
1084
|
-
]),
|
|
1083
|
+
]), Gt = {
|
|
1085
1084
|
TABLE: Al,
|
|
1086
|
-
FORM:
|
|
1087
|
-
TABLEOPERATE:
|
|
1088
|
-
FORMOPERATE:
|
|
1089
|
-
FOLD:
|
|
1090
|
-
CALCULATOR:
|
|
1091
|
-
METHODBUTTON:
|
|
1092
|
-
AVATARUPLOAD:
|
|
1085
|
+
FORM: _l,
|
|
1086
|
+
TABLEOPERATE: Ct,
|
|
1087
|
+
FORMOPERATE: Dt,
|
|
1088
|
+
FOLD: El,
|
|
1089
|
+
CALCULATOR: Ut,
|
|
1090
|
+
METHODBUTTON: wt,
|
|
1091
|
+
AVATARUPLOAD: Ol,
|
|
1092
|
+
SIGNATURE: $l
|
|
1093
1093
|
// 添加其他组件...
|
|
1094
1094
|
};
|
|
1095
|
-
function
|
|
1096
|
-
return
|
|
1095
|
+
function Mt(e) {
|
|
1096
|
+
return Gt[e == null ? void 0 : e.toUpperCase()] || null;
|
|
1097
1097
|
}
|
|
1098
1098
|
const J = [
|
|
1099
1099
|
{
|
|
@@ -1161,7 +1161,7 @@ const J = [
|
|
|
1161
1161
|
key: "GroupContents",
|
|
1162
1162
|
value: "groupContents"
|
|
1163
1163
|
}
|
|
1164
|
-
], ae =
|
|
1164
|
+
], ae = R(0), It = (e) => {
|
|
1165
1165
|
const [t, n] = e.split(/=(.+)/), l = t.replace(/['"]/g, "").trim(), a = n.replace(/^['"]|['"]$/g, "");
|
|
1166
1166
|
return { key: l, value: a };
|
|
1167
1167
|
}, he = (e) => {
|
|
@@ -1170,22 +1170,22 @@ const J = [
|
|
|
1170
1170
|
} catch {
|
|
1171
1171
|
return !1;
|
|
1172
1172
|
}
|
|
1173
|
-
},
|
|
1173
|
+
}, Ht = (e) => e.includes("$") && e.trim().endsWith("(") ? e + ")" : e, Wt = (e) => {
|
|
1174
1174
|
let t = e;
|
|
1175
1175
|
const n = [];
|
|
1176
1176
|
let l = "";
|
|
1177
1177
|
for (const a of t)
|
|
1178
1178
|
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());
|
|
1179
1179
|
return n == null ? void 0 : n.filter((a) => a.includes("{"));
|
|
1180
|
-
},
|
|
1180
|
+
}, Zt = (e) => {
|
|
1181
1181
|
var n;
|
|
1182
1182
|
let t = [];
|
|
1183
|
-
return (n =
|
|
1184
|
-
var s,
|
|
1185
|
-
let a = ((
|
|
1183
|
+
return (n = Wt(e.slice(1, -1))) == null || n.forEach((l) => {
|
|
1184
|
+
var s, r, p, i;
|
|
1185
|
+
let a = ((r = (s = l.slice(1, -1)) == null ? void 0 : s.split(",")) == null ? void 0 : r.length) ?? 1;
|
|
1186
1186
|
(i = (p = l.slice(1, -1)) == null ? void 0 : p.split(",")) == null || i.forEach((d) => {
|
|
1187
|
-
var v, C, E, h, f, g, k, c,
|
|
1188
|
-
let m = d == null ? void 0 : d.split(":"), _ = m != null && m[0] ? (m == null ? void 0 : m[1].split("$").length) - 1 === 1 ? ((v = m == null ? void 0 : m[0]) == null ? void 0 : v.replace(/^"(.*)"$/, "$1")) + ((C = m == null ? void 0 : m[1]) == null ? void 0 : C.replace(/^"(.*)"$/, "$1")) : Array.isArray((h = (E = m == null ? void 0 : m[1]) == null ? void 0 : E.replace(/^"(.*)"$/, "$1")) == null ? void 0 : h.split("(")) && ((k = (g = (f = m == null ? void 0 : m[1]) == null ? void 0 : f.replace(/^"(.*)"$/, "$1")) == null ? void 0 : g.split("(")) == null ? void 0 : k.length) > 1 ? ((c = m == null ? void 0 : m[0]) == null ? void 0 : c.replace(/^"(.*)"$/, "$1")) + ((A = (y = (
|
|
1187
|
+
var v, C, E, h, f, g, k, c, o, y, A, O, P;
|
|
1188
|
+
let m = d == null ? void 0 : d.split(":"), _ = m != null && m[0] ? (m == null ? void 0 : m[1].split("$").length) - 1 === 1 ? ((v = m == null ? void 0 : m[0]) == null ? void 0 : v.replace(/^"(.*)"$/, "$1")) + ((C = m == null ? void 0 : m[1]) == null ? void 0 : C.replace(/^"(.*)"$/, "$1")) : Array.isArray((h = (E = m == null ? void 0 : m[1]) == null ? void 0 : E.replace(/^"(.*)"$/, "$1")) == null ? void 0 : h.split("(")) && ((k = (g = (f = m == null ? void 0 : m[1]) == null ? void 0 : f.replace(/^"(.*)"$/, "$1")) == null ? void 0 : g.split("(")) == null ? void 0 : k.length) > 1 ? ((c = m == null ? void 0 : m[0]) == null ? void 0 : c.replace(/^"(.*)"$/, "$1")) + ((A = (y = (o = m == null ? void 0 : m[1]) == null ? void 0 : o.replace(/^"(.*)"$/, "$1")) == null ? void 0 : y.split("(")) == null ? void 0 : A[0]) + "()" : (O = m == null ? void 0 : m[0]) == null ? void 0 : O.replace(/^"(.*)"$/, "$1") : "", $ = (m == null ? void 0 : m[1].split("$").length) - 1 === 0 ? (P = m == null ? void 0 : m[1]) == null ? void 0 : P.replace(/^"(.*)"$/, "$1") : "";
|
|
1189
1189
|
ae.value++, t.push({
|
|
1190
1190
|
id: ae.value,
|
|
1191
1191
|
key: _,
|
|
@@ -1204,11 +1204,11 @@ const J = [
|
|
|
1204
1204
|
let a = u(l).replace(/^\{(.*)\}$/, "[$1]");
|
|
1205
1205
|
if (he(a) && !a.includes("$") || (a = a.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g, '"$1$$$2"')), he(a)) {
|
|
1206
1206
|
const s = JSON.parse(a);
|
|
1207
|
-
let
|
|
1207
|
+
let r = [];
|
|
1208
1208
|
return s == null || s.forEach((p) => {
|
|
1209
1209
|
var i;
|
|
1210
1210
|
(i = Object.entries(u(p))) == null || i.forEach((d) => {
|
|
1211
|
-
ae.value++,
|
|
1211
|
+
ae.value++, r.push({
|
|
1212
1212
|
id: ae.value,
|
|
1213
1213
|
key: (d == null ? void 0 : d[0]) ?? "",
|
|
1214
1214
|
value: (d == null ? void 0 : d[1]) === "" ? "" : d == null ? void 0 : d[1],
|
|
@@ -1216,22 +1216,22 @@ const J = [
|
|
|
1216
1216
|
width: Object.keys(u(p)).length
|
|
1217
1217
|
});
|
|
1218
1218
|
});
|
|
1219
|
-
}),
|
|
1219
|
+
}), r;
|
|
1220
1220
|
} else
|
|
1221
|
-
return l.trim().startsWith("{{") ?
|
|
1221
|
+
return l.trim().startsWith("{{") ? Zt(l.trim()) : Ae(a);
|
|
1222
1222
|
} else if (he(l)) {
|
|
1223
1223
|
const a = JSON.parse(l);
|
|
1224
|
-
return Object.entries(a).map(([s,
|
|
1224
|
+
return Object.entries(a).map(([s, r]) => (ae.value++, {
|
|
1225
1225
|
id: ae.value,
|
|
1226
1226
|
key: s,
|
|
1227
|
-
value:
|
|
1227
|
+
value: r === "" ? "" : r,
|
|
1228
1228
|
// 如果值为空,则key设为空字符串,否则保留原值
|
|
1229
1229
|
width: 1
|
|
1230
1230
|
}));
|
|
1231
1231
|
} else
|
|
1232
1232
|
return ((t = Ae(l)) == null ? void 0 : t.length) === 0 ? l : (n = Ae(l)) == null ? void 0 : n.map((a) => ({
|
|
1233
1233
|
label: a.label,
|
|
1234
|
-
method:
|
|
1234
|
+
method: Ht(a.method)
|
|
1235
1235
|
}));
|
|
1236
1236
|
} catch (l) {
|
|
1237
1237
|
return console.error("转换失败:", l), [];
|
|
@@ -1245,10 +1245,10 @@ const J = [
|
|
|
1245
1245
|
if (!l) break;
|
|
1246
1246
|
const a = l[1];
|
|
1247
1247
|
n += l[0].length;
|
|
1248
|
-
let s = "",
|
|
1248
|
+
let s = "", r = 0, p = !1, i = "";
|
|
1249
1249
|
for (let d = n; d < e.length; d++) {
|
|
1250
1250
|
const m = e[d];
|
|
1251
|
-
if ((m === '"' || m === "'") && !p ? (p = !0, i = m) : m === i && p && (p = !1, i = ""), !p && ((m === "{" || m === "(" || m === "[") &&
|
|
1251
|
+
if ((m === '"' || m === "'") && !p ? (p = !0, i = m) : m === i && p && (p = !1, i = ""), !p && ((m === "{" || m === "(" || m === "[") && r++, (m === "}" || m === ")" || m === "]") && r--, m === "," && r === 0 || d === e.length - 1)) {
|
|
1252
1252
|
s = e.slice(n, d + 1).trim(), n = d + 1;
|
|
1253
1253
|
break;
|
|
1254
1254
|
}
|
|
@@ -1259,7 +1259,7 @@ const J = [
|
|
|
1259
1259
|
});
|
|
1260
1260
|
}
|
|
1261
1261
|
return t;
|
|
1262
|
-
},
|
|
1262
|
+
}, Kt = (e, t) => {
|
|
1263
1263
|
try {
|
|
1264
1264
|
if (J != null && J.find((n) => (n == null ? void 0 : n.key) === t))
|
|
1265
1265
|
return e.replace(/['"]/g, "").trim();
|
|
@@ -1277,7 +1277,7 @@ const J = [
|
|
|
1277
1277
|
} catch (n) {
|
|
1278
1278
|
return console.error("解析失败:", n), e;
|
|
1279
1279
|
}
|
|
1280
|
-
},
|
|
1280
|
+
}, qt = (e) => ({ [e == null ? void 0 : e.key]: Kt(e == null ? void 0 : e.value, e == null ? void 0 : e.key) }), zt = (e) => {
|
|
1281
1281
|
try {
|
|
1282
1282
|
if (u(e).split("[").length - 1 > 1) {
|
|
1283
1283
|
const t = u(e).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
|
|
@@ -1287,16 +1287,16 @@ const J = [
|
|
|
1287
1287
|
} catch (t) {
|
|
1288
1288
|
return console.error("解析失败:", t), e;
|
|
1289
1289
|
}
|
|
1290
|
-
},
|
|
1290
|
+
}, Qt = (e) => {
|
|
1291
1291
|
const t = e.match(/\(([^)]+)\)/);
|
|
1292
1292
|
return t ? t[1] : "";
|
|
1293
|
-
},
|
|
1293
|
+
}, Xt = (e) => {
|
|
1294
1294
|
const t = e.match(/^([^(]+)\s*\(/);
|
|
1295
1295
|
return t ? t[1].trim() : e;
|
|
1296
|
-
}, Ze = (e) => e.replace(/'/g, "").replace(/"/g, "").replace(/{|}/g, "").split(":").map((t) => t.trim()).filter((t) => t).join("/"),
|
|
1297
|
-
var
|
|
1296
|
+
}, Ze = (e) => e.replace(/'/g, "").replace(/"/g, "").replace(/{|}/g, "").split(":").map((t) => t.trim()).filter((t) => t).join("/"), Yt = (e) => {
|
|
1297
|
+
var r, p;
|
|
1298
1298
|
let t = [], n = [];
|
|
1299
|
-
const l = (
|
|
1299
|
+
const l = (r = u(e)) == null ? void 0 : r.map((i) => i == null ? void 0 : i.key), a = [...new Set((p = u(l)) == null ? void 0 : p.map((i) => Qt(i)))];
|
|
1300
1300
|
a == null || a.forEach((i) => {
|
|
1301
1301
|
let d = e == null ? void 0 : e.filter(($) => $.key.includes(i));
|
|
1302
1302
|
d == null || d.forEach(($) => {
|
|
@@ -1306,7 +1306,7 @@ const J = [
|
|
|
1306
1306
|
}), n.push(Ze($ == null ? void 0 : $.value)));
|
|
1307
1307
|
});
|
|
1308
1308
|
let m = e == null ? void 0 : e.filter(($) => $.key.includes(i) && !($ != null && $.key.includes("Menus")));
|
|
1309
|
-
m = m == null ? void 0 : m.map(($) => ($.key =
|
|
1309
|
+
m = m == null ? void 0 : m.map(($) => ($.key = Xt($.key), $));
|
|
1310
1310
|
const _ = {
|
|
1311
1311
|
key: "GroupContents",
|
|
1312
1312
|
value: m
|
|
@@ -1324,69 +1324,69 @@ const J = [
|
|
|
1324
1324
|
let l = [];
|
|
1325
1325
|
return (n = Object.entries(e)) == null || n.forEach(([a, s]) => {
|
|
1326
1326
|
var p, i;
|
|
1327
|
-
let
|
|
1328
|
-
if (
|
|
1327
|
+
let r = [];
|
|
1328
|
+
if (r.push(a), ((p = Object.keys(s)) == null ? void 0 : p.length) > 0) {
|
|
1329
1329
|
let d = [];
|
|
1330
1330
|
(i = sl(s)) == null || i.forEach((m) => {
|
|
1331
1331
|
d.push(m);
|
|
1332
1332
|
}), d == null || d.forEach((m) => {
|
|
1333
|
-
|
|
1333
|
+
r.push(m);
|
|
1334
1334
|
});
|
|
1335
1335
|
}
|
|
1336
|
-
l.push(
|
|
1336
|
+
l.push(r);
|
|
1337
1337
|
}), l;
|
|
1338
1338
|
}
|
|
1339
|
-
},
|
|
1339
|
+
}, Vt = (e, t) => {
|
|
1340
1340
|
var l;
|
|
1341
1341
|
let n = t;
|
|
1342
1342
|
return Array.isArray(Object.keys(e)) && ((l = Object.entries(e)) == null || l.forEach(([a, s]) => {
|
|
1343
|
-
let
|
|
1343
|
+
let r = [a];
|
|
1344
1344
|
if (typeof s == "object" && s !== null) {
|
|
1345
1345
|
let p = sl(s);
|
|
1346
1346
|
p == null || p.forEach((i) => {
|
|
1347
|
-
|
|
1347
|
+
r.push(i);
|
|
1348
1348
|
});
|
|
1349
1349
|
}
|
|
1350
|
-
n.push(
|
|
1350
|
+
n.push(r);
|
|
1351
1351
|
})), n;
|
|
1352
|
-
},
|
|
1352
|
+
}, en = (e) => {
|
|
1353
1353
|
const t = {};
|
|
1354
1354
|
return e.forEach((l) => {
|
|
1355
1355
|
const a = l.split("/");
|
|
1356
1356
|
let s = t;
|
|
1357
|
-
a.forEach((
|
|
1358
|
-
s[
|
|
1357
|
+
a.forEach((r) => {
|
|
1358
|
+
s[r] || (s[r] = {}), s = s[r];
|
|
1359
1359
|
});
|
|
1360
|
-
}),
|
|
1361
|
-
}, rl = (e) =>
|
|
1362
|
-
var t, n, l, a, s,
|
|
1360
|
+
}), Vt(t, []);
|
|
1361
|
+
}, rl = (e) => en(e), Zn = (e) => {
|
|
1362
|
+
var t, n, l, a, s, r, p, i;
|
|
1363
1363
|
try {
|
|
1364
|
-
const d = De((n = (t = u(e)) == null ? void 0 : t.replace("(", "(")) == null ? void 0 : n.replace(")", ")")), m = (a = (l = u(d)) == null ? void 0 : l.filter((C) => !C.includes("/*"))) == null ? void 0 : a.map((C) =>
|
|
1364
|
+
const d = De((n = (t = u(e)) == null ? void 0 : t.replace("(", "(")) == null ? void 0 : n.replace(")", ")")), m = (a = (l = u(d)) == null ? void 0 : l.filter((C) => !C.includes("/*"))) == null ? void 0 : a.map((C) => It(C)), _ = Yt(m), $ = [];
|
|
1365
1365
|
if (((s = _ == null ? void 0 : _.find((C) => (C == null ? void 0 : C.key) === "Menus")) == null ? void 0 : s.value.length) === 0)
|
|
1366
1366
|
return !1;
|
|
1367
|
-
(
|
|
1367
|
+
(r = u(_)) == null || r.forEach((C) => {
|
|
1368
1368
|
var E, h, f, g, k;
|
|
1369
1369
|
J != null && J.find((c) => {
|
|
1370
|
-
var
|
|
1371
|
-
return ((
|
|
1370
|
+
var o, y;
|
|
1371
|
+
return ((o = c == null ? void 0 : c.key) == null ? void 0 : o.toUpperCase()) === ((y = C == null ? void 0 : C.key) == null ? void 0 : y.toUpperCase());
|
|
1372
1372
|
}) ? $.push({
|
|
1373
1373
|
comp: ((E = J == null ? void 0 : J.find((c) => {
|
|
1374
|
-
var
|
|
1375
|
-
return ((
|
|
1374
|
+
var o, y;
|
|
1375
|
+
return ((o = c == null ? void 0 : c.key) == null ? void 0 : o.toUpperCase()) === ((y = C == null ? void 0 : C.key) == null ? void 0 : y.toUpperCase());
|
|
1376
1376
|
})) == null ? void 0 : E.value) ?? "",
|
|
1377
1377
|
name: (h = C == null ? void 0 : C.value) == null ? void 0 : h.replace(/[’]|[‘]|[']/g, ""),
|
|
1378
1378
|
compData: []
|
|
1379
1379
|
}) : F != null && F.find((c) => {
|
|
1380
|
-
var
|
|
1381
|
-
return ((
|
|
1380
|
+
var o, y;
|
|
1381
|
+
return ((o = c == null ? void 0 : c.key) == null ? void 0 : o.toUpperCase()) === ((y = C == null ? void 0 : C.key) == null ? void 0 : y.toUpperCase());
|
|
1382
1382
|
}) && (($ == null ? void 0 : $.length) === 0 && (f = C.key) != null && f.includes("Menus") && $.push({
|
|
1383
1383
|
comp: "Menu",
|
|
1384
1384
|
name: "",
|
|
1385
1385
|
compData: []
|
|
1386
1386
|
}), (g = $ == null ? void 0 : $[($ == null ? void 0 : $.length) - 1]) != null && g.compData && $[($ == null ? void 0 : $.length) - 1].compData.push({
|
|
1387
1387
|
key: (k = F == null ? void 0 : F.find((c) => {
|
|
1388
|
-
var
|
|
1389
|
-
return ((
|
|
1388
|
+
var o, y;
|
|
1389
|
+
return ((o = c == null ? void 0 : c.key) == null ? void 0 : o.toUpperCase()) === ((y = C == null ? void 0 : C.key) == null ? void 0 : y.toUpperCase());
|
|
1390
1390
|
})) == null ? void 0 : k.value,
|
|
1391
1391
|
contents: C == null ? void 0 : C.value
|
|
1392
1392
|
}));
|
|
@@ -1394,15 +1394,15 @@ const J = [
|
|
|
1394
1394
|
let v = (p = u($)) == null ? void 0 : p.map((C) => {
|
|
1395
1395
|
var E;
|
|
1396
1396
|
return C != null && C.compData && (C.compData = (E = C == null ? void 0 : C.compData) == null ? void 0 : E.map((h) => {
|
|
1397
|
-
var f, g, k, c,
|
|
1397
|
+
var f, g, k, c, o, y, A, O, P, x, U;
|
|
1398
1398
|
if ((h == null ? void 0 : h.key) === "formFlex")
|
|
1399
1399
|
h.contents = ((g = (f = h.contents) == null ? void 0 : f.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : g.toUpperCase()) !== "Vertical".toUpperCase();
|
|
1400
1400
|
else if ((h == null ? void 0 : h.key) === "groupContents")
|
|
1401
|
-
h.contents = (k = u(h.contents)) == null ? void 0 : k.map((G) =>
|
|
1401
|
+
h.contents = (k = u(h.contents)) == null ? void 0 : k.map((G) => qt(u(G)));
|
|
1402
1402
|
else if (Array.isArray(h == null ? void 0 : h.contents))
|
|
1403
1403
|
h.contents = rl(h.contents);
|
|
1404
|
-
else if (((
|
|
1405
|
-
h.contents =
|
|
1404
|
+
else if (((o = (c = h == null ? void 0 : h.contents) == null ? void 0 : c.trim()) != null && o.startsWith("[") || (A = (y = h.contents) == null ? void 0 : y.trim()) != null && A.startsWith("【")) && ((P = (O = h.contents) == null ? void 0 : O.trim()) != null && P.endsWith("]") || (U = (x = h.contents) == null ? void 0 : x.trim()) != null && U.endsWith("】")))
|
|
1405
|
+
h.contents = zt(u(h.contents));
|
|
1406
1406
|
else {
|
|
1407
1407
|
if (!h.contents) return;
|
|
1408
1408
|
h.contents = al(u(h.contents));
|
|
@@ -1416,7 +1416,7 @@ const J = [
|
|
|
1416
1416
|
var g;
|
|
1417
1417
|
let f = [];
|
|
1418
1418
|
return (g = h.contents) == null || g.forEach((k) => {
|
|
1419
|
-
var c,
|
|
1419
|
+
var c, o, y, A, O, P, x, U, G, T, S, N;
|
|
1420
1420
|
if (J != null && J.find((D) => {
|
|
1421
1421
|
var b, B, j;
|
|
1422
1422
|
return ((b = D == null ? void 0 : D.key) == null ? void 0 : b.toUpperCase()) === ((j = (B = Object.keys(k)) == null ? void 0 : B[0]) == null ? void 0 : j.toUpperCase());
|
|
@@ -1426,7 +1426,7 @@ const J = [
|
|
|
1426
1426
|
var b, B, j;
|
|
1427
1427
|
return ((b = D == null ? void 0 : D.key) == null ? void 0 : b.toUpperCase()) === ((j = (B = Object.keys(k)) == null ? void 0 : B[0]) == null ? void 0 : j.toUpperCase());
|
|
1428
1428
|
})) == null ? void 0 : c.value,
|
|
1429
|
-
name: (y = (
|
|
1429
|
+
name: (y = (o = Object.values(k)) == null ? void 0 : o[0]) == null ? void 0 : y.replace(/[’]|[‘]|[']/g, ""),
|
|
1430
1430
|
compData: []
|
|
1431
1431
|
});
|
|
1432
1432
|
else if (F != null && F.find((D) => {
|
|
@@ -1465,7 +1465,7 @@ const J = [
|
|
|
1465
1465
|
} catch {
|
|
1466
1466
|
return !1;
|
|
1467
1467
|
}
|
|
1468
|
-
}, Kn = (e, t) =>
|
|
1468
|
+
}, Kn = (e, t) => ut(e, t), Ke = R(0), ol = (e) => {
|
|
1469
1469
|
const t = [];
|
|
1470
1470
|
let n = null;
|
|
1471
1471
|
for (let l = 0; l < e.length; l++) {
|
|
@@ -1489,16 +1489,16 @@ const J = [
|
|
|
1489
1489
|
if (l >= e.length) break;
|
|
1490
1490
|
const s = [...e[l]];
|
|
1491
1491
|
if (n.push(s), l++, a.children && a.children.length > 0) {
|
|
1492
|
-
const
|
|
1492
|
+
const r = [];
|
|
1493
1493
|
ul(
|
|
1494
1494
|
e.slice(l),
|
|
1495
1495
|
a.children,
|
|
1496
|
-
|
|
1497
|
-
),
|
|
1496
|
+
r
|
|
1497
|
+
), r.length > 0 && (s.push(r), l += cl(a.children));
|
|
1498
1498
|
}
|
|
1499
1499
|
}
|
|
1500
1500
|
return n;
|
|
1501
|
-
},
|
|
1501
|
+
}, ln = (e, t) => {
|
|
1502
1502
|
let n = [];
|
|
1503
1503
|
return e == null || e.forEach((a) => {
|
|
1504
1504
|
a.some((s) => Array.isArray(s)) ? n.push(...a) : n.push(a);
|
|
@@ -1523,7 +1523,7 @@ const J = [
|
|
|
1523
1523
|
/(\[|\s|,)((?:https?|HTTPS?):\/\/[^\s,\]]+)(\]|,|$)/gi,
|
|
1524
1524
|
'$1"$2"$3'
|
|
1525
1525
|
), t;
|
|
1526
|
-
},
|
|
1526
|
+
}, tn = (e) => {
|
|
1527
1527
|
var n;
|
|
1528
1528
|
return e.some((l) => !Array.isArray(l)) ? e : (n = u(e)) == null ? void 0 : n.map((l) => {
|
|
1529
1529
|
let a = [];
|
|
@@ -1533,24 +1533,24 @@ const J = [
|
|
|
1533
1533
|
});
|
|
1534
1534
|
}, pl = (e, t, n) => {
|
|
1535
1535
|
let l = e, a = n, s = t;
|
|
1536
|
-
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((
|
|
1537
|
-
if (
|
|
1538
|
-
const p = pl(l,
|
|
1536
|
+
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((r) => {
|
|
1537
|
+
if (r.children) {
|
|
1538
|
+
const p = pl(l, r, a);
|
|
1539
1539
|
a = p[0], l = p[1];
|
|
1540
1540
|
}
|
|
1541
1541
|
}), [a, l];
|
|
1542
|
-
},
|
|
1542
|
+
}, nn = (e, t) => {
|
|
1543
1543
|
let n = e, l = [];
|
|
1544
1544
|
return t.length > 0 ? t == null || t.forEach((a) => {
|
|
1545
1545
|
let s = n == null ? void 0 : n[0];
|
|
1546
1546
|
n.shift();
|
|
1547
|
-
const
|
|
1548
|
-
s =
|
|
1547
|
+
const r = pl(u(n), a, s);
|
|
1548
|
+
s = r[0], n = r[1], l.push(s);
|
|
1549
1549
|
}) : l = n, l;
|
|
1550
1550
|
}, Ee = (e, t) => {
|
|
1551
|
-
const n =
|
|
1552
|
-
return
|
|
1553
|
-
},
|
|
1551
|
+
const n = tn(u(e));
|
|
1552
|
+
return nn(n, t);
|
|
1553
|
+
}, an = (e) => {
|
|
1554
1554
|
const t = [];
|
|
1555
1555
|
let n = 0;
|
|
1556
1556
|
const l = e.length;
|
|
@@ -1563,30 +1563,30 @@ const J = [
|
|
|
1563
1563
|
}), n += 2) : (t.push(a), n += 1);
|
|
1564
1564
|
}
|
|
1565
1565
|
return t;
|
|
1566
|
-
}, il = (e) => Ee([e], []),
|
|
1566
|
+
}, il = (e) => Ee([e], []), sn = (e) => {
|
|
1567
1567
|
const t = [];
|
|
1568
1568
|
return e == null || e.forEach((n) => n == null ? void 0 : n.forEach((a) => {
|
|
1569
|
-
var s,
|
|
1569
|
+
var s, r;
|
|
1570
1570
|
Ke.value++, t.push({
|
|
1571
1571
|
id: Ke.value,
|
|
1572
1572
|
key: (s = Object.keys(a)) == null ? void 0 : s[0],
|
|
1573
|
-
value: (
|
|
1573
|
+
value: (r = Object.values(a)) == null ? void 0 : r[0],
|
|
1574
1574
|
// 如果值为空,则key设为空字符串,否则保留原值
|
|
1575
1575
|
width: n.length
|
|
1576
1576
|
});
|
|
1577
1577
|
})), t;
|
|
1578
1578
|
}, ze = (e) => {
|
|
1579
|
-
let t =
|
|
1579
|
+
let t = an(e);
|
|
1580
1580
|
return t = t == null ? void 0 : t.map((n) => {
|
|
1581
1581
|
var l, a, s;
|
|
1582
1582
|
if (n.comp === "Table")
|
|
1583
|
-
(l = n.compData) != null && l.find((
|
|
1583
|
+
(l = n.compData) != null && l.find((r) => (r == null ? void 0 : r.key) === "header") || (n.compData = (a = n.compData) == null ? void 0 : a.map((r) => (r.key === "tableColumns" ? r = {
|
|
1584
1584
|
key: "header",
|
|
1585
|
-
contents: Ee(
|
|
1586
|
-
} :
|
|
1587
|
-
key:
|
|
1588
|
-
contents:
|
|
1589
|
-
},
|
|
1585
|
+
contents: Ee(r.value, [])
|
|
1586
|
+
} : r = {
|
|
1587
|
+
key: r.key,
|
|
1588
|
+
contents: r.value
|
|
1589
|
+
}, r)), n.compData.push({
|
|
1590
1590
|
key: "extraButton",
|
|
1591
1591
|
contents: [{ label: "新增" }]
|
|
1592
1592
|
}), n.compData.push({
|
|
@@ -1594,7 +1594,7 @@ const J = [
|
|
|
1594
1594
|
contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
|
|
1595
1595
|
}));
|
|
1596
1596
|
else if (n.key === "form") {
|
|
1597
|
-
const
|
|
1597
|
+
const r = (s = n == null ? void 0 : n.value) == null ? void 0 : s.map((p) => (Array.isArray(p) || (p = [p]), p));
|
|
1598
1598
|
n = {
|
|
1599
1599
|
comp: "Form",
|
|
1600
1600
|
compData: [
|
|
@@ -1604,7 +1604,7 @@ const J = [
|
|
|
1604
1604
|
},
|
|
1605
1605
|
{
|
|
1606
1606
|
key: "formContent",
|
|
1607
|
-
contents:
|
|
1607
|
+
contents: sn(r)
|
|
1608
1608
|
}
|
|
1609
1609
|
],
|
|
1610
1610
|
name: ""
|
|
@@ -1612,7 +1612,7 @@ const J = [
|
|
|
1612
1612
|
}
|
|
1613
1613
|
return n;
|
|
1614
1614
|
}), t;
|
|
1615
|
-
},
|
|
1615
|
+
}, rn = (e, t) => {
|
|
1616
1616
|
var p, i, d, m, _, $;
|
|
1617
1617
|
const n = [], l = ol((i = (p = e == null ? void 0 : e.find((v) => v.key === "tableIndex")) == null ? void 0 : p.value) == null ? void 0 : i[0]);
|
|
1618
1618
|
n.push({
|
|
@@ -1628,10 +1628,10 @@ const J = [
|
|
|
1628
1628
|
key: "header",
|
|
1629
1629
|
contents: a
|
|
1630
1630
|
});
|
|
1631
|
-
const
|
|
1631
|
+
const r = ln(($ = e == null ? void 0 : e.find((v) => v.key === "tableContents")) == null ? void 0 : $.value, l);
|
|
1632
1632
|
return n.push({
|
|
1633
1633
|
key: "tableContents",
|
|
1634
|
-
contents:
|
|
1634
|
+
contents: r
|
|
1635
1635
|
}), n.push({
|
|
1636
1636
|
key: "extraButton",
|
|
1637
1637
|
contents: [{ label: "新增" }]
|
|
@@ -1645,7 +1645,7 @@ const J = [
|
|
|
1645
1645
|
}), ie = (e) => {
|
|
1646
1646
|
const t = e.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g, '"$1",$2');
|
|
1647
1647
|
return fl(t).replace(/^"(.*)"$/, "$1");
|
|
1648
|
-
},
|
|
1648
|
+
}, on = (e) => {
|
|
1649
1649
|
const t = /* @__PURE__ */ new Set();
|
|
1650
1650
|
return e.filter((n) => {
|
|
1651
1651
|
const l = JSON.stringify(n);
|
|
@@ -1659,25 +1659,25 @@ const J = [
|
|
|
1659
1659
|
(a = l.contents) == null || a.forEach((s) => {
|
|
1660
1660
|
t.push(s);
|
|
1661
1661
|
});
|
|
1662
|
-
}), t =
|
|
1662
|
+
}), t = on(t), t.push({
|
|
1663
1663
|
label: "操作"
|
|
1664
1664
|
}), [t];
|
|
1665
|
-
},
|
|
1665
|
+
}, cn = (e, t) => e.reduce((n, l, a) => {
|
|
1666
1666
|
const s = Math.floor(a / t);
|
|
1667
1667
|
return n[s] || (n[s] = []), n[s].push(l), n;
|
|
1668
|
-
}, []), dl = (e) => e.reduce((t, n) => n.children && n.children.length > 0 ? t + dl(n.children) : t + 1, 0),
|
|
1668
|
+
}, []), dl = (e) => e.reduce((t, n) => n.children && n.children.length > 0 ? t + dl(n.children) : t + 1, 0), un = (e, t) => {
|
|
1669
1669
|
var l;
|
|
1670
1670
|
let n = [];
|
|
1671
|
-
return (l =
|
|
1671
|
+
return (l = cn(e, dl(t == null ? void 0 : t[0]) - 1)) == null || l.forEach((a) => {
|
|
1672
1672
|
let s = [];
|
|
1673
|
-
a.forEach((
|
|
1673
|
+
a.forEach((r) => {
|
|
1674
1674
|
var p;
|
|
1675
|
-
Array.isArray(
|
|
1675
|
+
Array.isArray(r.contents) ? (p = r.contents) == null || p.forEach((i) => {
|
|
1676
1676
|
s.push(i);
|
|
1677
|
-
}) : s.push(
|
|
1677
|
+
}) : s.push(r.contents);
|
|
1678
1678
|
}), n.push(s);
|
|
1679
1679
|
}), [n];
|
|
1680
|
-
},
|
|
1680
|
+
}, pn = ["方法体", "输入", "输出"], Xe = R(1), De = (e) => {
|
|
1681
1681
|
let t;
|
|
1682
1682
|
e.replaceAll(" ", `\r
|
|
1683
1683
|
`).includes(`\r
|
|
@@ -1691,7 +1691,7 @@ const J = [
|
|
|
1691
1691
|
for (const a of t)
|
|
1692
1692
|
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, ""));
|
|
1693
1693
|
return n;
|
|
1694
|
-
},
|
|
1694
|
+
}, fn = (e) => {
|
|
1695
1695
|
const [t, n] = e.split(/=(.+)/), l = t.replace(/['"]/g, "").trim(), a = n.replace(/^['"]|['"]$/g, "");
|
|
1696
1696
|
return { key: l, value: a };
|
|
1697
1697
|
}, be = (e) => {
|
|
@@ -1702,12 +1702,12 @@ const J = [
|
|
|
1702
1702
|
for (const a of t)
|
|
1703
1703
|
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, ""));
|
|
1704
1704
|
return n;
|
|
1705
|
-
},
|
|
1705
|
+
}, dn = (e) => /^[\x00-\x7F]*$/.test(e), hn = (e) => {
|
|
1706
1706
|
var a;
|
|
1707
1707
|
const t = e.map((s) => {
|
|
1708
1708
|
var p, i;
|
|
1709
|
-
let
|
|
1710
|
-
return
|
|
1709
|
+
let r = (i = (p = s.key.split("(")) == null ? void 0 : p[1]) == null ? void 0 : i.trim();
|
|
1710
|
+
return r.slice(0, r.length - 1);
|
|
1711
1711
|
}), n = t == null ? void 0 : t.map((s) => {
|
|
1712
1712
|
var p;
|
|
1713
1713
|
return (p = be(s)) == null ? void 0 : p.map((i) => {
|
|
@@ -1719,23 +1719,23 @@ const J = [
|
|
|
1719
1719
|
return i;
|
|
1720
1720
|
});
|
|
1721
1721
|
}).filter((s) => s.length !== 0), l = (a = n == null ? void 0 : n.filter((s) => s.length !== 0)) == null ? void 0 : a.map((s) => {
|
|
1722
|
-
let
|
|
1722
|
+
let r = "";
|
|
1723
1723
|
return s.forEach((p) => {
|
|
1724
|
-
p.includes("{") || (
|
|
1725
|
-
}),
|
|
1724
|
+
p.includes("{") || (r = r === "" ? r + u(p) : r + "/" + u(p));
|
|
1725
|
+
}), r;
|
|
1726
1726
|
});
|
|
1727
1727
|
return rl([...new Set(l)]);
|
|
1728
1728
|
}, hl = (e) => {
|
|
1729
|
-
var n, l, a, s,
|
|
1729
|
+
var n, l, a, s, r, p, i, d;
|
|
1730
1730
|
const t = (l = (n = e.split("(")) == null ? void 0 : n[1]) == null ? void 0 : l.trim();
|
|
1731
|
-
return ((a = be(t.slice(0, t.length - 1))) == null ? void 0 : a.length) > 0 ? t.slice(0, t.length - 1) : (d = (i = (p = (
|
|
1732
|
-
},
|
|
1731
|
+
return ((a = be(t.slice(0, t.length - 1))) == null ? void 0 : a.length) > 0 ? t.slice(0, t.length - 1) : (d = (i = (p = (r = (s = e.split("(")) == null ? void 0 : s[1]) == null ? void 0 : r.trim()) == null ? void 0 : p.split(")")) == null ? void 0 : i[0]) == null ? void 0 : d.trim();
|
|
1732
|
+
}, yn = (e) => {
|
|
1733
1733
|
var a;
|
|
1734
1734
|
if (!e) return;
|
|
1735
1735
|
const t = hl(e), n = (a = be(t)) == null ? void 0 : a.map((s) => {
|
|
1736
|
-
var
|
|
1736
|
+
var r;
|
|
1737
1737
|
if (s.includes("{")) {
|
|
1738
|
-
let p = (
|
|
1738
|
+
let p = (r = s.split(":")) == null ? void 0 : r[0];
|
|
1739
1739
|
s = p.slice(1, p.length);
|
|
1740
1740
|
}
|
|
1741
1741
|
return s;
|
|
@@ -1744,7 +1744,7 @@ const J = [
|
|
|
1744
1744
|
return n.forEach((s) => {
|
|
1745
1745
|
s.includes("{") || (l = l === "" ? l + u(s) : l + "/" + u(s));
|
|
1746
1746
|
}), l;
|
|
1747
|
-
},
|
|
1747
|
+
}, mn = (e) => {
|
|
1748
1748
|
const t = e.match(/\[(.*)\]/s);
|
|
1749
1749
|
if (t) {
|
|
1750
1750
|
const n = `[${t[1]}]`;
|
|
@@ -1755,23 +1755,23 @@ const J = [
|
|
|
1755
1755
|
console.error("解析失败:", l);
|
|
1756
1756
|
}
|
|
1757
1757
|
}
|
|
1758
|
-
},
|
|
1758
|
+
}, gn = (e) => {
|
|
1759
1759
|
var s;
|
|
1760
1760
|
if (!e) return;
|
|
1761
1761
|
const t = hl(e);
|
|
1762
1762
|
let n = [], l = [], a = [];
|
|
1763
|
-
return (s = be(t)) == null || s.forEach((
|
|
1763
|
+
return (s = be(t)) == null || s.forEach((r) => {
|
|
1764
1764
|
var p;
|
|
1765
|
-
|
|
1765
|
+
r.includes("[") ? n.push(mn(r)) : r.includes("{") && (dn((p = r.slice(1, r.length - 1).split(":")) == null ? void 0 : p[0]) ? a.push(JSON.parse(r.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3'))) : ee(r.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3')) ? l.push(JSON.parse(r.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3'))) : r.includes("$") || l.push(r.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3')));
|
|
1766
1766
|
}), [n, l, a];
|
|
1767
|
-
},
|
|
1767
|
+
}, bn = (e) => {
|
|
1768
1768
|
const t = [];
|
|
1769
1769
|
let n = "";
|
|
1770
1770
|
for (const l of e)
|
|
1771
1771
|
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, ""));
|
|
1772
1772
|
return t;
|
|
1773
1773
|
}, Ye = (e) => {
|
|
1774
|
-
var
|
|
1774
|
+
var r, p;
|
|
1775
1775
|
const t = [], n = /(?:{'([^']+)'[^}]+}: {'([^']+)'[^}]+}|'([^']+)': {'([^']+)'[^}]+})/, l = e.match(n);
|
|
1776
1776
|
if (l) {
|
|
1777
1777
|
const i = l[1] || l[3], d = l[2] || l[4];
|
|
@@ -1781,34 +1781,34 @@ const J = [
|
|
|
1781
1781
|
}
|
|
1782
1782
|
}
|
|
1783
1783
|
const a = /(https?:\/\/[^\s)]+|Http:\/\/[^\s)]+|\/[^\s)]+)/i, s = e.match(a);
|
|
1784
|
-
return s ? t.push(s[0].replace(/\)+$/, "")) : (e == null ? void 0 : e.split(",").length) === 2 && t.push((p = (
|
|
1784
|
+
return s ? t.push(s[0].replace(/\)+$/, "")) : (e == null ? void 0 : e.split(",").length) === 2 && t.push((p = (r = e == null ? void 0 : e.split(",")) == null ? void 0 : r[1]) == null ? void 0 : p.trim()), t;
|
|
1785
1785
|
}, $e = (e) => {
|
|
1786
1786
|
let t = e.replace(/\[\s*,\s*,/g, '[{"": ""}, {"": ""},');
|
|
1787
|
-
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,
|
|
1788
|
-
},
|
|
1787
|
+
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, r) => a.includes("'") ? `:${l}${a}${s}${r}` : `:${l}"${a}"${s}${r}`), t = t.replace(/:\s*([,\]}])/g, ': ""$1'), t;
|
|
1788
|
+
}, kn = (e) => !/\[[^\]]*\{[^\]]*\]/.test(e), Cn = (e) => {
|
|
1789
1789
|
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();
|
|
1790
1790
|
let s = null;
|
|
1791
1791
|
if (a)
|
|
1792
1792
|
try {
|
|
1793
1793
|
s = JSON.parse(a);
|
|
1794
|
-
} catch (
|
|
1795
|
-
console.error("解析数组失败:",
|
|
1794
|
+
} catch (r) {
|
|
1795
|
+
console.error("解析数组失败:", r);
|
|
1796
1796
|
}
|
|
1797
1797
|
return [n, s];
|
|
1798
|
-
},
|
|
1798
|
+
}, An = (e) => {
|
|
1799
1799
|
var p, i, d, m, _, $, v, C, E, h, f;
|
|
1800
|
-
let t = [], n = [], l = {}, a = [], s = e.trim(),
|
|
1800
|
+
let t = [], n = [], l = {}, a = [], s = e.trim(), r = [];
|
|
1801
1801
|
if (s.trim().includes("输入") && s.trim().includes("输出")) {
|
|
1802
1802
|
let g = [], k = e.trim();
|
|
1803
1803
|
k = u(k).slice(1, u(k).length - 1);
|
|
1804
1804
|
const c = /(\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})/g;
|
|
1805
|
-
(C = k.match(c)) == null || C.forEach((
|
|
1805
|
+
(C = k.match(c)) == null || C.forEach((o, y) => {
|
|
1806
1806
|
var P;
|
|
1807
|
-
const A =
|
|
1807
|
+
const A = o;
|
|
1808
1808
|
let O = [];
|
|
1809
1809
|
(P = A.slice(1, A.length - 1).replace(":", "$:").split("$:")) == null || P.forEach((x) => {
|
|
1810
1810
|
var U, G, T;
|
|
1811
|
-
if (
|
|
1811
|
+
if (pn.find((S) => x.includes(S)))
|
|
1812
1812
|
if (!x.includes("=="))
|
|
1813
1813
|
O.push({ key: "tableIndexColumn", contents: x.replaceAll("'", "") });
|
|
1814
1814
|
else {
|
|
@@ -1904,27 +1904,27 @@ const J = [
|
|
|
1904
1904
|
}
|
|
1905
1905
|
}
|
|
1906
1906
|
}), g.push(O == null ? void 0 : O[0]);
|
|
1907
|
-
}),
|
|
1907
|
+
}), r.push({
|
|
1908
1908
|
key: "tableIndex",
|
|
1909
|
-
contents: (E = g == null ? void 0 : g.filter((
|
|
1909
|
+
contents: (E = g == null ? void 0 : g.filter((o) => (o == null ? void 0 : o.key) === "tableIndex")) == null ? void 0 : E.map((o) => {
|
|
1910
1910
|
var y;
|
|
1911
|
-
return (y =
|
|
1911
|
+
return (y = o.contents) == null ? void 0 : y[0];
|
|
1912
1912
|
})
|
|
1913
|
-
}),
|
|
1913
|
+
}), r.push({
|
|
1914
1914
|
key: "extraButton",
|
|
1915
1915
|
contents: [{ label: "新增" }]
|
|
1916
|
-
}),
|
|
1916
|
+
}), r.push({
|
|
1917
1917
|
key: "rowButton",
|
|
1918
1918
|
contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
|
|
1919
|
-
}),
|
|
1919
|
+
}), r.push({
|
|
1920
1920
|
key: "tableIndexColumn",
|
|
1921
|
-
contents: (f = (h = g == null ? void 0 : g.filter((
|
|
1922
|
-
}),
|
|
1921
|
+
contents: (f = (h = g == null ? void 0 : g.filter((o) => (o == null ? void 0 : o.key) === "tableIndexColumn")) == null ? void 0 : h[0]) == null ? void 0 : f.contents
|
|
1922
|
+
}), r.push({
|
|
1923
1923
|
key: "header",
|
|
1924
|
-
contents: Qe(g == null ? void 0 : g.filter((
|
|
1925
|
-
}),
|
|
1924
|
+
contents: Qe(g == null ? void 0 : g.filter((o) => (o == null ? void 0 : o.key) === "header"))
|
|
1925
|
+
}), r.push({
|
|
1926
1926
|
key: "tableContents",
|
|
1927
|
-
contents:
|
|
1927
|
+
contents: un(g == null ? void 0 : g.filter((o) => (o == null ? void 0 : o.key) === "tableContents"), Qe(g == null ? void 0 : g.filter((o) => (o == null ? void 0 : o.key) === "header")))
|
|
1928
1928
|
});
|
|
1929
1929
|
} else {
|
|
1930
1930
|
const g = (p = s.trim().split(",$")) == null ? void 0 : p[0];
|
|
@@ -1933,14 +1933,14 @@ const J = [
|
|
|
1933
1933
|
if (s.includes("$")) {
|
|
1934
1934
|
s = u(s), l.method = (m = (d = u(s).trim()) == null ? void 0 : d.slice(1, s.length).split("(")) == null ? void 0 : m[0];
|
|
1935
1935
|
let c;
|
|
1936
|
-
Ye(s.slice(1, s.length - 2)).length > 1 ? c = Ye(s.slice(1, s.length - 2)) : c =
|
|
1936
|
+
Ye(s.slice(1, s.length - 2)).length > 1 ? c = Ye(s.slice(1, s.length - 2)) : c = Cn(s), l.value = c;
|
|
1937
1937
|
} else
|
|
1938
|
-
ee("[" + $e(s).replaceAll("'", '"') + "]") && !
|
|
1939
|
-
let
|
|
1940
|
-
return
|
|
1938
|
+
ee("[" + $e(s).replaceAll("'", '"') + "]") && !kn($e(s).replaceAll("'", '"')) ? (s = JSON.parse("[" + $e(s).replaceAll("'", '"') + "]"), a = s) : k = ($ = (_ = u(s).split("}")) == null ? void 0 : _.filter((c) => c !== "")) == null ? void 0 : $.map((c) => {
|
|
1939
|
+
let o = c;
|
|
1940
|
+
return o[0] === "," ? o = o.slice(2, o.length) : o = o.slice(1, o.length), o;
|
|
1941
1941
|
});
|
|
1942
1942
|
(v = u(k)) == null || v.forEach((c) => {
|
|
1943
|
-
var
|
|
1943
|
+
var o, y, A, O, P, x, U, G, T, S, N, D, b, B, j;
|
|
1944
1944
|
if (c.includes("==")) {
|
|
1945
1945
|
const M = (D = c == null ? void 0 : c.split(":")) == null ? void 0 : D[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"').replaceAll("'", '"'), W = (b = c == null ? void 0 : c.split(":")) == null ? void 0 : b[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"');
|
|
1946
1946
|
if (ee(W.trim()) ? n.push(JSON.parse(W.trim())) : n.push(JSON.parse(W.replaceAll("'", '"').trim())), M[0] !== "[") {
|
|
@@ -1949,18 +1949,18 @@ const J = [
|
|
|
1949
1949
|
const le = u(Q);
|
|
1950
1950
|
le.push(["操作"]), t.push(le);
|
|
1951
1951
|
} else {
|
|
1952
|
-
const Q = (B = M.slice(1, M.length - 1).replaceAll(",", ",|")) == null ? void 0 : B.split("|"), le = (j =
|
|
1952
|
+
const Q = (B = M.slice(1, M.length - 1).replaceAll(",", ",|")) == null ? void 0 : B.split("|"), le = (j = bn(Q)) == null ? void 0 : j.map((H) => ((H == null ? void 0 : H[H.length - 1]) === "," && (H = H.slice(0, H.length - 1)), H));
|
|
1953
1953
|
let se = [];
|
|
1954
1954
|
le == null || le.forEach((H) => {
|
|
1955
|
-
var Y, I, V,
|
|
1955
|
+
var Y, I, V, L;
|
|
1956
1956
|
let X = [];
|
|
1957
|
-
X.push((Y = H.split("==")) == null ? void 0 : Y[0].trim().replace(/^"|"$/g, "")), ((I = H.split("==")) == null ? void 0 : I[1].trim()[0]) === "[" ? X.push(JSON.parse((V = H.split("==")) == null ? void 0 : V[1].trim())) : X.push([JSON.parse((
|
|
1957
|
+
X.push((Y = H.split("==")) == null ? void 0 : Y[0].trim().replace(/^"|"$/g, "")), ((I = H.split("==")) == null ? void 0 : I[1].trim()[0]) === "[" ? X.push(JSON.parse((V = H.split("==")) == null ? void 0 : V[1].trim())) : X.push([JSON.parse((L = H.split("==")) == null ? void 0 : L[1].trim())]), se.push(X);
|
|
1958
1958
|
});
|
|
1959
1959
|
const re = u(se);
|
|
1960
1960
|
re.push(["操作"]), t.push(re);
|
|
1961
1961
|
}
|
|
1962
1962
|
} else {
|
|
1963
|
-
if (ee((
|
|
1963
|
+
if (ee((o = c == null ? void 0 : c.split(":")) == null ? void 0 : o[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"').replaceAll("'", '"'))) {
|
|
1964
1964
|
let M = JSON.parse((y = c == null ? void 0 : c.split(":")) == null ? void 0 : y[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"').replaceAll("'", '"'));
|
|
1965
1965
|
Array.isArray(M) || (M = [M]), M.push("操作"), t.push(M);
|
|
1966
1966
|
}
|
|
@@ -1968,49 +1968,52 @@ const J = [
|
|
|
1968
1968
|
}
|
|
1969
1969
|
});
|
|
1970
1970
|
}
|
|
1971
|
-
return [t, n,
|
|
1972
|
-
},
|
|
1973
|
-
const t = [], n =
|
|
1971
|
+
return [t, n, r, l, a];
|
|
1972
|
+
}, $n = (e) => {
|
|
1973
|
+
const t = [], n = yn(e == null ? void 0 : e.key), l = gn(e == null ? void 0 : e.key), a = An(e == null ? void 0 : e.value), s = l == null ? void 0 : l[0], r = a == null ? void 0 : a[4], p = l == null ? void 0 : l[1], i = l == null ? void 0 : l[2], d = a == null ? void 0 : a[0], m = a == null ? void 0 : a[1], _ = a == null ? void 0 : a[2], $ = a == null ? void 0 : a[3];
|
|
1974
1974
|
return n && t.push({
|
|
1975
1975
|
key: "contentPath",
|
|
1976
1976
|
value: n
|
|
1977
1977
|
}), (s == null ? void 0 : s.length) > 0 && t.push({
|
|
1978
1978
|
key: "tableIndex",
|
|
1979
1979
|
value: s
|
|
1980
|
-
}),
|
|
1980
|
+
}), $ && t.push({
|
|
1981
1981
|
key: "extraButton",
|
|
1982
|
-
value:
|
|
1983
|
-
}), (
|
|
1982
|
+
value: $
|
|
1983
|
+
}), (r == null ? void 0 : r.length) > 0 && t.push({
|
|
1984
1984
|
key: "form",
|
|
1985
|
-
value:
|
|
1985
|
+
value: r
|
|
1986
1986
|
}), (p == null ? void 0 : p.length) > 0 && t.push({
|
|
1987
|
-
key: "
|
|
1987
|
+
key: "formTop",
|
|
1988
1988
|
value: p
|
|
1989
|
-
}), (m == null ? void 0 : m.length) > 0 && t.push({
|
|
1990
|
-
comp: "Table",
|
|
1991
|
-
compData: m,
|
|
1992
|
-
name: ""
|
|
1993
1989
|
}), (i == null ? void 0 : i.length) > 0 && t.push({
|
|
1994
|
-
key: "
|
|
1990
|
+
key: "extra",
|
|
1995
1991
|
value: i
|
|
1992
|
+
}), (_ == null ? void 0 : _.length) > 0 && t.push({
|
|
1993
|
+
comp: "Table",
|
|
1994
|
+
compData: _,
|
|
1995
|
+
name: ""
|
|
1996
1996
|
}), (d == null ? void 0 : d.length) > 0 && t.push({
|
|
1997
|
-
key: "
|
|
1997
|
+
key: "tableColumns",
|
|
1998
1998
|
value: d
|
|
1999
|
-
}), t
|
|
2000
|
-
|
|
1999
|
+
}), (m == null ? void 0 : m.length) > 0 && t.push({
|
|
2000
|
+
key: "tableContents",
|
|
2001
|
+
value: m
|
|
2002
|
+
}), console.log(232, t), t;
|
|
2003
|
+
}, On = (e, t) => {
|
|
2001
2004
|
const n = t.split("/");
|
|
2002
2005
|
let l = [];
|
|
2003
2006
|
return e == null || e.forEach((a) => {
|
|
2004
2007
|
var p, i, d, m, _, $, v, C, E;
|
|
2005
|
-
const s = [],
|
|
2006
|
-
if (
|
|
2008
|
+
const s = [], r = (i = (p = a.find((h) => h.key === "tableIndex")) == null ? void 0 : p.value) == null ? void 0 : i[0];
|
|
2009
|
+
if (r && !r.some((h) => Array.isArray(h))) {
|
|
2007
2010
|
const h = (m = (d = a.find((f) => f.key === "tableColumns")) == null ? void 0 : d.value) == null ? void 0 : m[0];
|
|
2008
2011
|
s.push({
|
|
2009
2012
|
key: "tableIndexColumn",
|
|
2010
2013
|
contents: n[n.length - 1]
|
|
2011
2014
|
}), s.push({
|
|
2012
2015
|
key: "tableIndex",
|
|
2013
|
-
contents:
|
|
2016
|
+
contents: r == null ? void 0 : r.map((f) => ({ label: f }))
|
|
2014
2017
|
}), s.push({
|
|
2015
2018
|
key: "extraButton",
|
|
2016
2019
|
contents: [{ label: "新增" }]
|
|
@@ -2031,71 +2034,71 @@ const J = [
|
|
|
2031
2034
|
name: "",
|
|
2032
2035
|
compData: s
|
|
2033
2036
|
});
|
|
2034
|
-
} else
|
|
2037
|
+
} else r ? l.push({
|
|
2035
2038
|
comp: "Table",
|
|
2036
2039
|
name: "",
|
|
2037
|
-
compData:
|
|
2040
|
+
compData: rn(a, n[n.length - 1])
|
|
2038
2041
|
}) : a.some((h) => h.key === "extra") ? l.push({
|
|
2039
2042
|
comp: "calculator",
|
|
2040
2043
|
name: "",
|
|
2041
2044
|
compData: ze(a)
|
|
2042
2045
|
}) : l.push(ze(a));
|
|
2043
2046
|
}), l;
|
|
2044
|
-
},
|
|
2047
|
+
}, _n = (e, t) => {
|
|
2045
2048
|
var a, s;
|
|
2046
|
-
const n = e.map((
|
|
2049
|
+
const n = e.map((r) => r.filter((p) => p.key !== "contentPath"));
|
|
2047
2050
|
return {
|
|
2048
2051
|
comp: "Group",
|
|
2049
2052
|
compData: [{
|
|
2050
|
-
contents:
|
|
2053
|
+
contents: On(n, t),
|
|
2051
2054
|
key: "groupContents"
|
|
2052
2055
|
}],
|
|
2053
|
-
name: (s = (a = e[0]) == null ? void 0 : a.find((
|
|
2056
|
+
name: (s = (a = e[0]) == null ? void 0 : a.find((r) => r.key === "contentPath")) == null ? void 0 : s.value
|
|
2054
2057
|
};
|
|
2055
|
-
},
|
|
2058
|
+
}, vn = (e) => {
|
|
2056
2059
|
var a;
|
|
2057
2060
|
const t = [], n = u(e).map((s) => {
|
|
2058
|
-
var
|
|
2061
|
+
var r;
|
|
2059
2062
|
if (s != null && s.find((p) => (p == null ? void 0 : p.key) === "contentPath"))
|
|
2060
|
-
return (
|
|
2063
|
+
return (r = s == null ? void 0 : s.find((p) => (p == null ? void 0 : p.key) === "contentPath")) == null ? void 0 : r.value;
|
|
2061
2064
|
}).filter((s) => s !== ""), l = [...new Set(n)];
|
|
2062
2065
|
return (a = l == null ? void 0 : l.filter((s) => s)) == null || a.forEach((s) => {
|
|
2063
|
-
var
|
|
2064
|
-
t.push(
|
|
2066
|
+
var r;
|
|
2067
|
+
t.push(_n((r = u(e)) == null ? void 0 : r.filter((p) => p.find((i) => i.key === "contentPath" && i.value === s)), s));
|
|
2065
2068
|
}), t;
|
|
2066
|
-
},
|
|
2069
|
+
}, xn = (e) => {
|
|
2067
2070
|
let t = [];
|
|
2068
2071
|
t.push({
|
|
2069
2072
|
comp: "Menu",
|
|
2070
2073
|
compData: [{
|
|
2071
|
-
contents:
|
|
2074
|
+
contents: hn(u(e)),
|
|
2072
2075
|
key: "menuContents"
|
|
2073
2076
|
}],
|
|
2074
2077
|
name: ""
|
|
2075
2078
|
});
|
|
2076
|
-
const n = e.map((l) =>
|
|
2077
|
-
return t = [...t, ...
|
|
2079
|
+
const n = e.map((l) => $n(l)).filter((l) => l.length !== 0);
|
|
2080
|
+
return t = [...t, ...vn(n)], t;
|
|
2078
2081
|
}, qn = (e) => {
|
|
2079
|
-
var a, s,
|
|
2080
|
-
const t = (
|
|
2081
|
-
return
|
|
2082
|
-
}, fe =
|
|
2082
|
+
var a, s, r, p, i;
|
|
2083
|
+
const t = (r = De((s = (a = u(e)) == null ? void 0 : a.replace("(", "(")) == null ? void 0 : s.replace(")", ")"))) == null ? void 0 : r.filter((d) => d !== ""), n = (i = (p = u(t)) == null ? void 0 : p.filter((d) => !d.includes("/*"))) == null ? void 0 : i.map((d) => fn(d));
|
|
2084
|
+
return xn(n);
|
|
2085
|
+
}, fe = R(0), Oe = R(0), Tn = (e) => {
|
|
2083
2086
|
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 = {};
|
|
2084
2087
|
let a;
|
|
2085
2088
|
for (; (a = n.exec(t)) !== null; ) {
|
|
2086
2089
|
const s = a[1];
|
|
2087
|
-
let
|
|
2088
|
-
(
|
|
2090
|
+
let r = a[2].trim();
|
|
2091
|
+
(r.match(/\[/g) || []).length !== (r.match(/\]/g) || []).length && (r = r == null ? void 0 : r.replace(/]$/, "")), l[s] ? (l[s + Oe.value] && Oe.value++, l[s + Oe.value] = s + "=" + r) : l[s] = s + "=" + r;
|
|
2089
2092
|
}
|
|
2090
2093
|
return l;
|
|
2091
2094
|
}, yl = (e) => {
|
|
2092
2095
|
const [t, n] = e.split("=").map((s) => s.trim()), l = t.replace(/['"]/g, ""), a = n.replace(/^['"]|['"]$/g, "");
|
|
2093
2096
|
return { key: l, value: a };
|
|
2094
|
-
},
|
|
2095
|
-
var
|
|
2097
|
+
}, En = (e) => {
|
|
2098
|
+
var r;
|
|
2096
2099
|
let t = [];
|
|
2097
2100
|
const [n, l] = e.split(/=(.+)/), a = n.replace(/['"]/g, "").trim(), s = l.replace(/^['"]|['"]$/g, "");
|
|
2098
|
-
return (
|
|
2101
|
+
return (r = Object.values(Tn(s))) == null || r.forEach((p) => {
|
|
2099
2102
|
t.push(yl(p));
|
|
2100
2103
|
}), { key: a, value: t };
|
|
2101
2104
|
}, ye = (e) => {
|
|
@@ -2113,8 +2116,8 @@ const J = [
|
|
|
2113
2116
|
const l = JSON.parse(n);
|
|
2114
2117
|
let a = [];
|
|
2115
2118
|
return l == null || l.forEach((s) => {
|
|
2116
|
-
var
|
|
2117
|
-
(
|
|
2119
|
+
var r;
|
|
2120
|
+
(r = Object.entries(u(s))) == null || r.forEach((p) => {
|
|
2118
2121
|
fe.value++, a.push({
|
|
2119
2122
|
id: fe.value,
|
|
2120
2123
|
key: (p == null ? void 0 : p[0]) ?? "",
|
|
@@ -2140,7 +2143,7 @@ const J = [
|
|
|
2140
2143
|
} catch (t) {
|
|
2141
2144
|
return console.error("转换失败:", t), [];
|
|
2142
2145
|
}
|
|
2143
|
-
},
|
|
2146
|
+
}, Dn = (e, t) => {
|
|
2144
2147
|
try {
|
|
2145
2148
|
if (J != null && J.find((n) => (n == null ? void 0 : n.key) === t))
|
|
2146
2149
|
return JSON.parse(e.replace(/[’]|[‘]|[']/g, '"'));
|
|
@@ -2158,7 +2161,7 @@ const J = [
|
|
|
2158
2161
|
} catch (n) {
|
|
2159
2162
|
return console.error("解析失败:", n), e;
|
|
2160
2163
|
}
|
|
2161
|
-
},
|
|
2164
|
+
}, Nn = (e) => ({ [e == null ? void 0 : e.key]: Dn(e == null ? void 0 : e.value, e == null ? void 0 : e.key) }), Sn = (e) => {
|
|
2162
2165
|
try {
|
|
2163
2166
|
if (u(e).split("[").length - 1 > 1) {
|
|
2164
2167
|
const t = u(e).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
|
|
@@ -2169,12 +2172,12 @@ const J = [
|
|
|
2169
2172
|
return console.error("解析失败:", t), e;
|
|
2170
2173
|
}
|
|
2171
2174
|
}, gl = (e) => {
|
|
2172
|
-
var t, n, l, a, s,
|
|
2175
|
+
var t, n, l, a, s, r;
|
|
2173
2176
|
try {
|
|
2174
2177
|
const p = De((n = (t = u(e)) == null ? void 0 : t.replace("(", "(")) == null ? void 0 : n.replace(")", ")")), i = (l = u(p)) == null ? void 0 : l.map((_) => {
|
|
2175
2178
|
var v, C;
|
|
2176
2179
|
let $ = (C = (v = u(_)) == null ? void 0 : v.split("=")) == null ? void 0 : C[0];
|
|
2177
|
-
return $ != null && $.includes("GroupContents") ?
|
|
2180
|
+
return $ != null && $.includes("GroupContents") ? En(_) : yl(_);
|
|
2178
2181
|
}), d = [];
|
|
2179
2182
|
(a = u(i)) == null || a.forEach((_) => {
|
|
2180
2183
|
var $, v, C, E, h;
|
|
@@ -2206,13 +2209,13 @@ const J = [
|
|
|
2206
2209
|
let m = (s = u(d)) == null ? void 0 : s.map((_) => {
|
|
2207
2210
|
var $;
|
|
2208
2211
|
return _ != null && _.compData && (_.compData = ($ = _ == null ? void 0 : _.compData) == null ? void 0 : $.map((v) => {
|
|
2209
|
-
var C, E, h, f, g, k, c,
|
|
2212
|
+
var C, E, h, f, g, k, c, o, y, A, O;
|
|
2210
2213
|
if ((v == null ? void 0 : v.key) === "formFlex")
|
|
2211
2214
|
v.contents = ((E = (C = v.contents) == null ? void 0 : C.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : E.toUpperCase()) !== "Vertical".toUpperCase();
|
|
2212
2215
|
else if ((v == null ? void 0 : v.key) === "groupContents")
|
|
2213
|
-
v.contents = (h = u(v.contents)) == null ? void 0 : h.map((P) =>
|
|
2214
|
-
else if (((g = (f = v.contents) == null ? void 0 : f.trim()) != null && g.startsWith("[") || (c = (k = v.contents) == null ? void 0 : k.trim()) != null && c.startsWith("【")) && ((y = (
|
|
2215
|
-
v.contents =
|
|
2216
|
+
v.contents = (h = u(v.contents)) == null ? void 0 : h.map((P) => Nn(u(P)));
|
|
2217
|
+
else if (((g = (f = v.contents) == null ? void 0 : f.trim()) != null && g.startsWith("[") || (c = (k = v.contents) == null ? void 0 : k.trim()) != null && c.startsWith("【")) && ((y = (o = v.contents) == null ? void 0 : o.trim()) != null && y.endsWith("]") || (O = (A = v.contents) == null ? void 0 : A.trim()) != null && O.endsWith("】")))
|
|
2218
|
+
v.contents = Sn(u(v.contents));
|
|
2216
2219
|
else {
|
|
2217
2220
|
if (!v.contents) return;
|
|
2218
2221
|
v.contents = ml(u(v.contents));
|
|
@@ -2220,13 +2223,13 @@ const J = [
|
|
|
2220
2223
|
return v;
|
|
2221
2224
|
})), _;
|
|
2222
2225
|
});
|
|
2223
|
-
return m = (
|
|
2226
|
+
return m = (r = u(m)) == null ? void 0 : r.map((_) => {
|
|
2224
2227
|
var $;
|
|
2225
2228
|
return (_ == null ? void 0 : _.comp) === "Group" && (_.compData = ($ = _.compData) == null ? void 0 : $.map((v) => {
|
|
2226
2229
|
var E;
|
|
2227
2230
|
let C = [];
|
|
2228
2231
|
return (E = v.contents) == null || E.forEach((h) => {
|
|
2229
|
-
var f, g, k, c,
|
|
2232
|
+
var f, g, k, c, o, y, A, O, P, x, U, G;
|
|
2230
2233
|
if (J != null && J.find((T) => {
|
|
2231
2234
|
var S, N, D;
|
|
2232
2235
|
return ((S = T == null ? void 0 : T.key) == null ? void 0 : S.toUpperCase()) === ((D = (N = Object.keys(h)) == null ? void 0 : N[0]) == null ? void 0 : D.toUpperCase());
|
|
@@ -2245,10 +2248,10 @@ const J = [
|
|
|
2245
2248
|
})) {
|
|
2246
2249
|
if ((C == null ? void 0 : C.length) === 0) return;
|
|
2247
2250
|
(c = C == null ? void 0 : C[(C == null ? void 0 : C.length) - 1]) != null && c.compData && C[(C == null ? void 0 : C.length) - 1].compData.push({
|
|
2248
|
-
key: (
|
|
2251
|
+
key: (o = F == null ? void 0 : F.find((T) => {
|
|
2249
2252
|
var S, N, D;
|
|
2250
2253
|
return ((S = T == null ? void 0 : T.key) == null ? void 0 : S.toUpperCase()) === ((D = (N = Object.keys(h)) == null ? void 0 : N[0]) == null ? void 0 : D.toUpperCase());
|
|
2251
|
-
})) == null ? void 0 :
|
|
2254
|
+
})) == null ? void 0 : o.value,
|
|
2252
2255
|
contents: (y = Object.values(h)) == null ? void 0 : y[0]
|
|
2253
2256
|
});
|
|
2254
2257
|
} else if ((O = (A = Object.keys(h)) == null ? void 0 : A[0]) != null && O.includes("$")) {
|
|
@@ -2269,10 +2272,10 @@ const J = [
|
|
|
2269
2272
|
} catch {
|
|
2270
2273
|
return !1;
|
|
2271
2274
|
}
|
|
2272
|
-
}, zn = (e) => gl(e), Qn = (e) => !!gl(e),
|
|
2273
|
-
var s,
|
|
2275
|
+
}, zn = (e) => gl(e), Qn = (e) => !!gl(e), Pn = ll(xe), { itemData: Xn } = Te(Pn), Bn = Nl(xe), { systemKey: Yn, activeMenuPath: Vn } = Te(Bn), oe = R(0), ea = (e) => e.reduce((n, l) => {
|
|
2276
|
+
var s, r;
|
|
2274
2277
|
const a = Object.values(n);
|
|
2275
|
-
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), ((
|
|
2278
|
+
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), ((r = Object.keys(n)) == null ? void 0 : r.length) === (l == null ? void 0 : l.width) && (n[oe.value] = [], oe.value++), n;
|
|
2276
2279
|
}, {});
|
|
2277
2280
|
export {
|
|
2278
2281
|
ea as a,
|
|
@@ -2280,7 +2283,7 @@ export {
|
|
|
2280
2283
|
qn as c,
|
|
2281
2284
|
Kn as d,
|
|
2282
2285
|
zn as e,
|
|
2283
|
-
|
|
2286
|
+
Mt as g,
|
|
2284
2287
|
Qn as i,
|
|
2285
2288
|
Wn as s
|
|
2286
2289
|
};
|