ss-component-new 1.1.108 → 1.1.111
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-BTFJdCPJ.js +1729 -0
- package/dist/array-MOqJRqj_.cjs +7 -0
- package/dist/cloneDeep-BBTgEPs_.cjs +1 -0
- package/dist/{cloneDeep-DthCQY7X.js → cloneDeep-DIp5Djvp.js} +8 -2
- package/dist/index-6-mEl2PZ.cjs +1 -0
- package/dist/{index-Cd4HZR9d.cjs → index-BXC130YR.cjs} +1 -1
- package/dist/index-BkT-XiOy.cjs +7 -0
- package/dist/{index-CB4EPC1h.cjs → index-BlZCBhoV.cjs} +1 -1
- package/dist/{index-C0jnoHBL.js → index-Bo0ZGJXk.js} +11 -3
- package/dist/{index-DTdc9Wwr.js → index-BoTaQZEe.js} +1124 -1030
- package/dist/index-BpyGVTxP.js +367 -0
- package/dist/index-C2ILbsGr.js +2707 -0
- package/dist/index-C6JoteVx.cjs +1 -0
- package/dist/{index-DVYNsDMA.cjs → index-CGwybNPv.cjs} +1 -1
- package/dist/index-CXEcGiRI.cjs +1 -0
- package/dist/{index-Bpgr-r6F.cjs → index-Cga4eqxB.cjs} +1 -1
- package/dist/{index-baJTqQyX.cjs → index-Ciz4VEwQ.cjs} +2 -2
- package/dist/{index-Bn3JIIsj.js → index-CslNKS_G.js} +1 -1
- package/dist/{index-Co2laWWp.cjs → index-CxN0M9fQ.cjs} +1 -1
- package/dist/{index-BZWjnoyd.cjs → index-D1P-7PDN.cjs} +1 -1
- package/dist/{index-Ca522QBy.js → index-D2YaYhA8.js} +5 -5
- package/dist/index-DMWw9Hxm.js +454 -0
- package/dist/{index-DMTbcizk.js → index-DMXOKEu9.js} +13 -13
- package/dist/{index-DHrVR-KZ.js → index-DRe0xZFb.js} +4 -4
- package/dist/{index-GG2WOiqk.js → index-DgkvmuCO.js} +2 -2
- package/dist/{index-waDJqzgf.js → index-DhAWSBik.js} +1 -1
- package/dist/{index-DZMc-M99.cjs → index-M3zXDy9L.cjs} +1 -1
- package/dist/{index-C_lUuzbI.js → index-Us9Ktk0Q.js} +5 -5
- package/dist/index-XmWX5yOU.cjs +6 -0
- package/dist/{index-DfpTk1qM.js → index-iFmFROWN.js} +2 -2
- package/dist/{index-Dy_6IplG.js → index-s4Vmrqq6.js} +74 -73
- package/dist/{index-j8Yse3sK.cjs → index-xFvUGDWt.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-B7QZ2MPq.cjs → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-B5ZzVN6N.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-BKWGzAIy.js → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-ClvYugd-.js} +2 -2
- package/dist/{main-B1wNLXBB.js → main-BIEa95EI.js} +4 -4
- package/dist/{main-CsdrHABa.cjs → main-GNd3rC4M.cjs} +1 -1
- package/dist/{request-DfYKYfLU.cjs → request-D1wShRmC.cjs} +1 -1
- package/dist/{request-C1vE5ufY.js → request-DXZzznPD.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +6 -6
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +1 -1
- package/package.json +1 -1
- package/dist/array-Bw_xniaW.js +0 -1620
- package/dist/array-oXZb-AJg.cjs +0 -7
- package/dist/cloneDeep-B63vYPdo.cjs +0 -1
- package/dist/index-BeJSKTdN.cjs +0 -1
- package/dist/index-BnzOClla.js +0 -418
- package/dist/index-C2y-GIYQ.cjs +0 -1
- package/dist/index-CPeGRDn-.js +0 -329
- package/dist/index-D8t3GQHd.js +0 -447
- package/dist/index-DhQg-0Mz.cjs +0 -6
- package/dist/index-Odp8QoV2.cjs +0 -1
- package/dist/index-VVOqnQ27.cjs +0 -1
- /package/dist/{index.vue_vue_type_style_index_0_scoped_2ff1497d_lang-CF5e1L_i.cjs → index.vue_vue_type_style_index_0_scoped_77dec451_lang-CF5e1L_i.cjs} +0 -0
- /package/dist/{index.vue_vue_type_style_index_0_scoped_2ff1497d_lang-DrStz9iD.js → index.vue_vue_type_style_index_0_scoped_77dec451_lang-DrStz9iD.js} +0 -0
|
@@ -0,0 +1,1729 @@
|
|
|
1
|
+
import { u as Ge, p as de, s as Le } from "./index-DMWw9Hxm.js";
|
|
2
|
+
import { ref as R, watch as q, createElementBlock as M, openBlock as Z, createVNode as W, resolveComponent as Oe, createElementVNode as G, toDisplayString as z, withCtx as ee, createTextVNode as le, Fragment as Ce, renderList as $e, createCommentVNode as We, createBlock as ze, resolveDynamicComponent as Ze } from "vue";
|
|
3
|
+
import { s as ye, f as Me, a as te } from "./index-Us9Ktk0Q.js";
|
|
4
|
+
import { _ as oe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
import { c as r } from "./cloneDeep-DIp5Djvp.js";
|
|
6
|
+
import { _ as He } from "./index.vue_vue_type_script_setup_true_lang-DQ2k4Z7D.js";
|
|
7
|
+
import { s as _e, u as qe } from "./menu-BIINB-0Y.js";
|
|
8
|
+
import "./request-DXZzznPD.js";
|
|
9
|
+
import { u as Qe } from "./modelComp-CHWFvhCq.js";
|
|
10
|
+
const ne = [
|
|
11
|
+
{
|
|
12
|
+
key: "单选",
|
|
13
|
+
value: "Select"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
key: "日期",
|
|
17
|
+
value: "Date"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
key: "长文本",
|
|
21
|
+
value: "TextArea"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
key: "上传",
|
|
25
|
+
value: "Upload"
|
|
26
|
+
}
|
|
27
|
+
], Xe = { class: "form-content" }, Ye = {
|
|
28
|
+
__name: "index",
|
|
29
|
+
props: {
|
|
30
|
+
itemData: {
|
|
31
|
+
type: Array,
|
|
32
|
+
default: () => []
|
|
33
|
+
},
|
|
34
|
+
childItemData: {
|
|
35
|
+
type: Array,
|
|
36
|
+
default: () => []
|
|
37
|
+
},
|
|
38
|
+
index: Number
|
|
39
|
+
},
|
|
40
|
+
emits: ["change", "contentChange"],
|
|
41
|
+
setup(t, { emit: s }) {
|
|
42
|
+
const l = t, e = s, n = R([]), a = R(!1), o = R([]), y = Ge(de), O = R(), b = (d) => {
|
|
43
|
+
var u, c, p, g;
|
|
44
|
+
const $ = (c = (u = r(l.itemData)) == null ? void 0 : u.find((i) => (i == null ? void 0 : i.key) === "formContent")) == null ? void 0 : c.contents, x = r(d.content);
|
|
45
|
+
let k = {};
|
|
46
|
+
x && ((p = Object.values(x)) == null ? void 0 : p.length) > 0 && ((g = Object.values(x)) == null || g.forEach((i, f) => {
|
|
47
|
+
k[$[f].key] = i;
|
|
48
|
+
}));
|
|
49
|
+
const S = {
|
|
50
|
+
content: k,
|
|
51
|
+
index: l == null ? void 0 : l.index,
|
|
52
|
+
buttonName: d == null ? void 0 : d.buttonName
|
|
53
|
+
};
|
|
54
|
+
e("change", S);
|
|
55
|
+
}, C = (d) => {
|
|
56
|
+
var k, S;
|
|
57
|
+
if (!d) return;
|
|
58
|
+
if (((k = Object.values(r(d))) == null ? void 0 : k.length) > 0) {
|
|
59
|
+
const u = (S = Object.values(r(d))) == null ? void 0 : S.map((p) => p);
|
|
60
|
+
let c = "";
|
|
61
|
+
u == null || u.forEach((p) => {
|
|
62
|
+
p !== "" && p !== void 0 && (c = c === "" ? p : c + "/" + p);
|
|
63
|
+
}), y.setSelectArray(u), y.setSelectString(c);
|
|
64
|
+
}
|
|
65
|
+
const $ = r(l.itemData), x = $ == null ? void 0 : $.map((u) => {
|
|
66
|
+
var c;
|
|
67
|
+
return (u == null ? void 0 : u.key) === "formContent" && ((c = u.contents) == null || c.map((p, g) => {
|
|
68
|
+
var i, f, h, A, T, D, _, j, E, F, U, v, N, m;
|
|
69
|
+
return p.type = p != null && p.type ? p.type : (h = (f = (i = p == null ? void 0 : p.key.split("$")) == null ? void 0 : i[1]) == null ? void 0 : f.split("(")) != null && h[0] ? (A = ne == null ? void 0 : ne.find((P) => {
|
|
70
|
+
var L, K, V;
|
|
71
|
+
return (P == null ? void 0 : P.key) === ((V = (K = (L = p == null ? void 0 : p.key.split("$")) == null ? void 0 : L[1]) == null ? void 0 : K.split("(")) == null ? void 0 : V[0]);
|
|
72
|
+
})) == null ? void 0 : A.value : "Input", p.options = p != null && p.options ? p.options : ((D = (T = p == null ? void 0 : p.key.split("$")) == null ? void 0 : T[1]) == null ? void 0 : D.length) > 0 ? (E = (j = Me((_ = p == null ? void 0 : p.key.split("$")) == null ? void 0 : _[1])) == null ? void 0 : j.split(",")) == null ? void 0 : E.map((P) => ({
|
|
73
|
+
label: P,
|
|
74
|
+
value: P
|
|
75
|
+
})) : [], p != null && p.key.includes("$") && (p.key = (F = p == null ? void 0 : p.key.split("$")) == null ? void 0 : F[0]), p.value = p != null && p.value ? p.value : Array.isArray((U = Object.values(d)) == null ? void 0 : U[g]) ? (N = (v = Object.values(d)) == null ? void 0 : v[g]) == null ? void 0 : N[0] : (m = Object.values(d)) == null ? void 0 : m[g], p;
|
|
76
|
+
})), u;
|
|
77
|
+
});
|
|
78
|
+
e("contentChange", {
|
|
79
|
+
contents: x,
|
|
80
|
+
index: l.index
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
return q(
|
|
84
|
+
() => l.itemData,
|
|
85
|
+
() => {
|
|
86
|
+
var S, u, c, p, g, i, f, h, A, T;
|
|
87
|
+
const d = (S = r(l.itemData)) == null ? void 0 : S.find((D) => (D == null ? void 0 : D.key) === "formContent"), $ = (u = r(l.itemData)) == null ? void 0 : u.find((D) => (D == null ? void 0 : D.key) === "formButton"), x = (c = r(l.itemData)) == null ? void 0 : c.find((D) => (D == null ? void 0 : D.key) === "formFlex"), k = (p = r(l.itemData)) == null ? void 0 : p.find((D) => (D == null ? void 0 : D.key) === "formWrap");
|
|
88
|
+
if ((k == null ? void 0 : k.contents) === "纵向" ? a.value = !1 : a.value = !0, O.value = typeof (x == null ? void 0 : x.contents) != "boolean" ? !(!(x != null && x.contents) === "" || ((g = x == null ? void 0 : x.contents) == null ? void 0 : g.toUpperCase()) === "VERTICAL") : x == null ? void 0 : x.contents, ((i = d == null ? void 0 : d.contents) == null ? void 0 : i.length) > 0 && Array.isArray(d == null ? void 0 : d.contents)) {
|
|
89
|
+
const D = [];
|
|
90
|
+
(f = d == null ? void 0 : d.contents) == null || f.forEach((E, F) => {
|
|
91
|
+
var U, v, N, m, P, L, K, V, ke;
|
|
92
|
+
if ((E == null ? void 0 : E.label) !== "") {
|
|
93
|
+
let ge = (E == null ? void 0 : E.key) ?? "", ce = (E == null ? void 0 : E.type) ?? "", H = (E == null ? void 0 : E.options) ?? [];
|
|
94
|
+
if (E != null && E.key.includes("$") && (ge = (U = r(E == null ? void 0 : E.key).split("$")) == null ? void 0 : U[0], ((N = (v = r(E == null ? void 0 : E.key).split("$")) == null ? void 0 : v[1]) == null ? void 0 : N.length) > 0)) {
|
|
95
|
+
const [Re, Q] = (P = (m = r(E == null ? void 0 : E.key).split("$")) == null ? void 0 : m[1]) == null ? void 0 : P.split(/[()]/);
|
|
96
|
+
ce = ((L = ne.find((X) => (X == null ? void 0 : X.key) === Re)) == null ? void 0 : L.value) ?? "", ((K = Q == null ? void 0 : Q.split(",")) == null ? void 0 : K.length) > 0 && (H = (V = Q == null ? void 0 : Q.split(",")) == null ? void 0 : V.map((X) => ({
|
|
97
|
+
label: X,
|
|
98
|
+
value: X
|
|
99
|
+
})));
|
|
100
|
+
}
|
|
101
|
+
D.push({
|
|
102
|
+
label: ge ?? "",
|
|
103
|
+
name: "t" + F,
|
|
104
|
+
type: ce === "" ? "Input" : ce,
|
|
105
|
+
value: E != null && E.value ? E.value : (H == null ? void 0 : H.length) > 0 ? (ke = H == null ? void 0 : H[0]) == null ? void 0 : ke.value : (E == null ? void 0 : E.value) ?? "",
|
|
106
|
+
id: (E == null ? void 0 : E.id) ?? F,
|
|
107
|
+
contents: H ?? [],
|
|
108
|
+
width: (E == null ? void 0 : E.width) ?? 1
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
const _ = (h = r(D)) == null ? void 0 : h.map((E) => E.value);
|
|
113
|
+
let j = "";
|
|
114
|
+
_ == null || _.forEach((E) => {
|
|
115
|
+
E !== "" && E !== void 0 && (j = j === "" ? E : j + "/" + E);
|
|
116
|
+
}), y.setSelectArray(_), y.setSelectString(j), n.value = D;
|
|
117
|
+
} else
|
|
118
|
+
n.value = [];
|
|
119
|
+
if (((A = $ == null ? void 0 : $.contents) == null ? void 0 : A.length) > 0) {
|
|
120
|
+
const D = [];
|
|
121
|
+
(T = $ == null ? void 0 : $.contents) == null || T.forEach((_, j) => {
|
|
122
|
+
(_ == null ? void 0 : _.label) !== "" && D.push({
|
|
123
|
+
label: (_ == null ? void 0 : _.label) ?? "",
|
|
124
|
+
id: (_ == null ? void 0 : _.id) ?? j,
|
|
125
|
+
type: (_ == null ? void 0 : _.type) ?? "",
|
|
126
|
+
background: _ == null ? void 0 : _.background
|
|
127
|
+
});
|
|
128
|
+
}), o.value = D;
|
|
129
|
+
} else
|
|
130
|
+
o.value = [];
|
|
131
|
+
},
|
|
132
|
+
{ deep: !0, immediate: !0 }
|
|
133
|
+
), (d, $) => (Z(), M("div", Xe, [
|
|
134
|
+
W(ye, {
|
|
135
|
+
rowContents: n.value,
|
|
136
|
+
buttonValue: o.value,
|
|
137
|
+
isRowFlex: O.value,
|
|
138
|
+
isEnableWrap: !1,
|
|
139
|
+
onOnButtonClick: b,
|
|
140
|
+
onChange: C,
|
|
141
|
+
isButtonRow: a.value
|
|
142
|
+
}, null, 8, ["rowContents", "buttonValue", "isRowFlex", "isButtonRow"])
|
|
143
|
+
]));
|
|
144
|
+
}
|
|
145
|
+
}, we = /* @__PURE__ */ oe(Ye, [["__scopeId", "data-v-156885e4"]]), Ke = { class: "table-operate-content" }, Ve = { class: "table-operate-item" }, Ie = { class: "operate-title" }, el = { class: "operate-content" }, ll = { class: "operate-title" }, tl = { class: "operate-content" }, nl = { class: "operate-title" }, sl = { class: "operate-content" }, al = { class: "operate-content" }, rl = {
|
|
146
|
+
__name: "operate",
|
|
147
|
+
props: {
|
|
148
|
+
itemContents: {
|
|
149
|
+
type: Array,
|
|
150
|
+
default: () => []
|
|
151
|
+
},
|
|
152
|
+
originalItemContents: {
|
|
153
|
+
type: Array,
|
|
154
|
+
default: () => []
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
emits: ["change"],
|
|
158
|
+
setup(t, { emit: s }) {
|
|
159
|
+
const l = t, e = s, n = R([]), a = R([]), o = R([]), y = R([{
|
|
160
|
+
label: "按钮名称",
|
|
161
|
+
prop: "label",
|
|
162
|
+
type: "edit"
|
|
163
|
+
}, {
|
|
164
|
+
label: "按钮类型",
|
|
165
|
+
prop: "type",
|
|
166
|
+
type: "edit"
|
|
167
|
+
}, {
|
|
168
|
+
label: "按钮背景颜色",
|
|
169
|
+
prop: "background",
|
|
170
|
+
type: "edit",
|
|
171
|
+
columnType: "Color"
|
|
172
|
+
}, {
|
|
173
|
+
label: "操作",
|
|
174
|
+
prop: "operate",
|
|
175
|
+
type: "operate",
|
|
176
|
+
sortable: !1
|
|
177
|
+
}]), O = R([{
|
|
178
|
+
label: "标签名称",
|
|
179
|
+
prop: "label",
|
|
180
|
+
type: "edit"
|
|
181
|
+
}, {
|
|
182
|
+
label: "标签类型",
|
|
183
|
+
prop: "type",
|
|
184
|
+
type: "edit"
|
|
185
|
+
}, {
|
|
186
|
+
label: "按钮文字颜色",
|
|
187
|
+
prop: "textColor",
|
|
188
|
+
type: "edit",
|
|
189
|
+
columnType: "Color"
|
|
190
|
+
}, {
|
|
191
|
+
label: "操作",
|
|
192
|
+
prop: "operate",
|
|
193
|
+
type: "operate",
|
|
194
|
+
sortable: !1
|
|
195
|
+
}]), b = R([]), C = R(0), d = R([{
|
|
196
|
+
name: "isPagination",
|
|
197
|
+
label: "是否显示分页",
|
|
198
|
+
type: "Switch",
|
|
199
|
+
value: !0
|
|
200
|
+
}]), $ = [{
|
|
201
|
+
label: "标签名",
|
|
202
|
+
prop: "label",
|
|
203
|
+
type: "edit"
|
|
204
|
+
}, {
|
|
205
|
+
label: "属性名",
|
|
206
|
+
prop: "prop",
|
|
207
|
+
type: "edit"
|
|
208
|
+
}, {
|
|
209
|
+
label: "宽度",
|
|
210
|
+
prop: "width",
|
|
211
|
+
type: "edit",
|
|
212
|
+
columnType: "Number"
|
|
213
|
+
}, {
|
|
214
|
+
label: "是否固定列",
|
|
215
|
+
prop: "fixed",
|
|
216
|
+
type: "edit",
|
|
217
|
+
columnType: "Radio",
|
|
218
|
+
contents: [{
|
|
219
|
+
label: "left",
|
|
220
|
+
value: "左"
|
|
221
|
+
}, {
|
|
222
|
+
label: "right",
|
|
223
|
+
value: "右"
|
|
224
|
+
}]
|
|
225
|
+
}, {
|
|
226
|
+
label: "是否支持排序",
|
|
227
|
+
prop: "sortable",
|
|
228
|
+
type: "edit",
|
|
229
|
+
columnType: "Switch"
|
|
230
|
+
}, {
|
|
231
|
+
label: "文本所在位置",
|
|
232
|
+
prop: "align",
|
|
233
|
+
type: "edit",
|
|
234
|
+
columnType: "Radio",
|
|
235
|
+
contents: [{
|
|
236
|
+
label: "left",
|
|
237
|
+
value: "左"
|
|
238
|
+
}, {
|
|
239
|
+
label: "center",
|
|
240
|
+
value: "中"
|
|
241
|
+
}, {
|
|
242
|
+
label: "right",
|
|
243
|
+
value: "右"
|
|
244
|
+
}]
|
|
245
|
+
}, {
|
|
246
|
+
label: "溢出悬浮文字",
|
|
247
|
+
prop: "showOverflowTooltip",
|
|
248
|
+
type: "edit",
|
|
249
|
+
columnType: "Switch"
|
|
250
|
+
}, {
|
|
251
|
+
label: "是否不可拖动",
|
|
252
|
+
prop: "isNotDrag",
|
|
253
|
+
type: "edit",
|
|
254
|
+
columnType: "Switch"
|
|
255
|
+
}, {
|
|
256
|
+
label: "是否可编辑列名",
|
|
257
|
+
//暂不支持
|
|
258
|
+
prop: "isEditCol",
|
|
259
|
+
type: "edit",
|
|
260
|
+
columnType: "Switch"
|
|
261
|
+
}, {
|
|
262
|
+
label: "是否出现在附属界面",
|
|
263
|
+
//暂不支持
|
|
264
|
+
prop: "isOperate",
|
|
265
|
+
type: "edit",
|
|
266
|
+
columnType: "Switch"
|
|
267
|
+
}, {
|
|
268
|
+
label: "操作",
|
|
269
|
+
prop: "operate",
|
|
270
|
+
type: "operate",
|
|
271
|
+
sortable: !1
|
|
272
|
+
}], x = (i) => {
|
|
273
|
+
let f = r(n.value);
|
|
274
|
+
const h = f == null ? void 0 : f.find((A) => A.key === "page");
|
|
275
|
+
(h == null ? void 0 : h.contents) !== void 0 ? f = f == null ? void 0 : f.map((A) => ((A == null ? void 0 : A.key) === "page" && (A.contents = i == null ? void 0 : i.isPagination), A)) : f.push({
|
|
276
|
+
key: "page",
|
|
277
|
+
contents: i == null ? void 0 : i.isPagination
|
|
278
|
+
}), n.value = f;
|
|
279
|
+
};
|
|
280
|
+
q(
|
|
281
|
+
() => l.originalItemContents,
|
|
282
|
+
() => {
|
|
283
|
+
var i, f, h, A, T, D, _, j, E, F, U, v, N;
|
|
284
|
+
!l.originalItemContents || l.originalItemContents.length === 0 || (n.value = r(l.originalItemContents), a.value = (f = (i = n.value) == null ? void 0 : i.find((m) => (m == null ? void 0 : m.key) === "header")) == null ? void 0 : f.contents, o.value = (A = (h = n.value) == null ? void 0 : h.find((m) => (m == null ? void 0 : m.key) === "rowButton")) == null ? void 0 : A.contents, y.value = (D = (T = n.value) == null ? void 0 : T.find((m) => (m == null ? void 0 : m.key) === "extraButton")) == null ? void 0 : D.contents, d.value = (j = (_ = n.value) == null ? void 0 : _.find((m) => (m == null ? void 0 : m.key) === "page")) != null && j.contents ? [{
|
|
285
|
+
name: "isPagination",
|
|
286
|
+
label: "是否显示分页",
|
|
287
|
+
type: "Switch",
|
|
288
|
+
value: (F = (E = n.value) == null ? void 0 : E.find((m) => (m == null ? void 0 : m.key) === "page")) == null ? void 0 : F.contents
|
|
289
|
+
}] : [{
|
|
290
|
+
name: "isPagination",
|
|
291
|
+
label: "是否显示分页",
|
|
292
|
+
type: "Switch",
|
|
293
|
+
value: !0
|
|
294
|
+
}], a.value = (U = a.value) == null ? void 0 : U.map((m, P) => m = {
|
|
295
|
+
label: (m == null ? void 0 : m.label) ?? "",
|
|
296
|
+
prop: (m == null ? void 0 : m.label) === "操作" ? "operate" : m == null ? void 0 : m.prop,
|
|
297
|
+
width: m != null && m.width ? parseInt(m.width) : "",
|
|
298
|
+
fixed: (m == null ? void 0 : m.fixed) ?? void 0,
|
|
299
|
+
sortable: (m == null ? void 0 : m.sortable) ?? !1,
|
|
300
|
+
align: (m == null ? void 0 : m.align) ?? "center",
|
|
301
|
+
showOverflowTooltip: (m == null ? void 0 : m.showOverflowTooltip) ?? !0,
|
|
302
|
+
isNotDrag: (m == null ? void 0 : m.isNotDrag) ?? !1,
|
|
303
|
+
isEditCol: (m == null ? void 0 : m.isEditCol) ?? !1,
|
|
304
|
+
isOperate: (m == null ? void 0 : m.isOperate) ?? !1,
|
|
305
|
+
id: (m == null ? void 0 : m.id) ?? P
|
|
306
|
+
}), o.value = (v = o.value) == null ? void 0 : v.map((m, P) => m = {
|
|
307
|
+
label: (m == null ? void 0 : m.label) ?? "",
|
|
308
|
+
type: (m == null ? void 0 : m.type) ?? "",
|
|
309
|
+
textColor: (m == null ? void 0 : m.textColor) ?? "#000000",
|
|
310
|
+
id: (m == null ? void 0 : m.id) ?? P
|
|
311
|
+
}), y.value = (N = y.value) == null ? void 0 : N.map((m, P) => m = {
|
|
312
|
+
label: (m == null ? void 0 : m.label) ?? "",
|
|
313
|
+
type: (m == null ? void 0 : m.type) ?? "",
|
|
314
|
+
background: (m == null ? void 0 : m.textColor) ?? "#FFFFFF",
|
|
315
|
+
id: (m == null ? void 0 : m.id) ?? P
|
|
316
|
+
}));
|
|
317
|
+
},
|
|
318
|
+
{ deep: !0, immediate: !0 }
|
|
319
|
+
), q(
|
|
320
|
+
() => d.value,
|
|
321
|
+
() => {
|
|
322
|
+
var h;
|
|
323
|
+
let i = r(n.value);
|
|
324
|
+
const f = i == null ? void 0 : i.find((A) => A.key === "page");
|
|
325
|
+
f != null && f.contents ? i = i == null ? void 0 : i.map((A) => {
|
|
326
|
+
var T;
|
|
327
|
+
return (A == null ? void 0 : A.key) === "page" && (A.contents = (T = d.value) == null ? void 0 : T[0].value), A;
|
|
328
|
+
}) : i.push({
|
|
329
|
+
key: "page",
|
|
330
|
+
contents: (h = d.value) == null ? void 0 : h[0].value
|
|
331
|
+
}), n.value = i;
|
|
332
|
+
},
|
|
333
|
+
{ immediate: !0, deep: !0 }
|
|
334
|
+
);
|
|
335
|
+
const k = () => {
|
|
336
|
+
const i = r(a.value);
|
|
337
|
+
let f = r(n.value);
|
|
338
|
+
i.push({
|
|
339
|
+
label: "",
|
|
340
|
+
prop: "",
|
|
341
|
+
width: "",
|
|
342
|
+
fixed: void 0,
|
|
343
|
+
sortable: !1,
|
|
344
|
+
align: "center",
|
|
345
|
+
showOverflowTooltip: !0,
|
|
346
|
+
isNotDrag: !1,
|
|
347
|
+
isEditCol: !1,
|
|
348
|
+
isOperate: !1,
|
|
349
|
+
id: C.value
|
|
350
|
+
}), a.value = i, C.value++;
|
|
351
|
+
const h = f == null ? void 0 : f.find((A) => (A == null ? void 0 : A.key) === "header");
|
|
352
|
+
h != null && h.contents ? (h.contents = i, f = f == null ? void 0 : f.map((A) => ((A == null ? void 0 : A.key) === "header" && (A.contents = i), A))) : f.push({
|
|
353
|
+
key: "header",
|
|
354
|
+
contents: i
|
|
355
|
+
}), n.value = f;
|
|
356
|
+
}, S = () => {
|
|
357
|
+
const i = r(o.value);
|
|
358
|
+
let f = r(n.value);
|
|
359
|
+
i.push({
|
|
360
|
+
label: "",
|
|
361
|
+
type: "",
|
|
362
|
+
textColor: "#000000",
|
|
363
|
+
id: C.value
|
|
364
|
+
}), o.value = i, C.value++;
|
|
365
|
+
const h = f == null ? void 0 : f.find((A) => (A == null ? void 0 : A.key) === "rowButton");
|
|
366
|
+
h != null && h.contents ? (h.contents = i, f = f == null ? void 0 : f.map((A) => ((A == null ? void 0 : A.key) === "rowButton" && (A.contents = i), A))) : f.push({
|
|
367
|
+
key: "rowButton",
|
|
368
|
+
contents: i
|
|
369
|
+
}), n.value = f;
|
|
370
|
+
}, u = () => {
|
|
371
|
+
const i = r(b.value);
|
|
372
|
+
let f = r(n.value);
|
|
373
|
+
i.push({
|
|
374
|
+
label: "",
|
|
375
|
+
type: "",
|
|
376
|
+
background: "#FFFFFF",
|
|
377
|
+
id: C.value
|
|
378
|
+
}), b.value = i, C.value++;
|
|
379
|
+
const h = f == null ? void 0 : f.find((A) => (A == null ? void 0 : A.key) === "extraButton");
|
|
380
|
+
h != null && h.contents ? (h.contents = i, f = f == null ? void 0 : f.map((A) => ((A == null ? void 0 : A.key) === "extraButton" && (A.contents = i), A))) : f.push({
|
|
381
|
+
key: "extraButton",
|
|
382
|
+
contents: i
|
|
383
|
+
}), n.value = f;
|
|
384
|
+
}, c = (i) => {
|
|
385
|
+
const f = r(o.value);
|
|
386
|
+
let h = r(n.value);
|
|
387
|
+
o.value = f.filter((T) => T.id !== i.id);
|
|
388
|
+
const A = h == null ? void 0 : h.find((T) => T.key === "rowButton");
|
|
389
|
+
A != null && A.contents && (h = h == null ? void 0 : h.map((T) => ((T == null ? void 0 : T.key) === "rowButton" && (T.contents = f.filter((D) => D.id !== i.id)), T))), n.value = h;
|
|
390
|
+
}, p = (i) => {
|
|
391
|
+
const f = r(b.value);
|
|
392
|
+
let h = r(n.value);
|
|
393
|
+
b.value = f.filter((T) => T.id !== i.id);
|
|
394
|
+
const A = h == null ? void 0 : h.find((T) => T.key === "extraButton");
|
|
395
|
+
A != null && A.contents && (h = h == null ? void 0 : h.map((T) => ((T == null ? void 0 : T.key) === "extraButton" && (T.contents = f.filter((D) => D.id !== i.id)), T))), n.value = h;
|
|
396
|
+
}, g = (i) => {
|
|
397
|
+
const f = r(a.value);
|
|
398
|
+
let h = r(n.value);
|
|
399
|
+
a.value = f.filter((T) => T.id !== i.id);
|
|
400
|
+
const A = h == null ? void 0 : h.find((T) => T.key === "header");
|
|
401
|
+
A != null && A.contents && (h = h == null ? void 0 : h.map((T) => ((T == null ? void 0 : T.key) === "header" && (T.contents = f.filter((D) => D.id !== i.id)), T))), n.value = h;
|
|
402
|
+
};
|
|
403
|
+
return q(
|
|
404
|
+
() => [n.value, a.value],
|
|
405
|
+
() => {
|
|
406
|
+
let i = r(n.value);
|
|
407
|
+
const f = i == null ? void 0 : i.find((h) => (h == null ? void 0 : h.key) === "header");
|
|
408
|
+
f != null && f.contents ? (f.contents = a.value, i = i == null ? void 0 : i.map((h) => ((h == null ? void 0 : h.key) === "header" && (h.contents = a.value), h))) : i.push({
|
|
409
|
+
key: "header",
|
|
410
|
+
contents: a.value
|
|
411
|
+
}), e("change", i);
|
|
412
|
+
},
|
|
413
|
+
{ deep: !0, immediate: !0 }
|
|
414
|
+
), (i, f) => {
|
|
415
|
+
const h = Oe("el-button");
|
|
416
|
+
return Z(), M("div", Ke, [
|
|
417
|
+
G("div", Ve, [
|
|
418
|
+
G("div", Ie, [
|
|
419
|
+
f[1] || (f[1] = G("div", null, z("表头"), -1)),
|
|
420
|
+
W(h, {
|
|
421
|
+
class: "blue-operate-button",
|
|
422
|
+
icon: "ele-Plus",
|
|
423
|
+
onClick: k
|
|
424
|
+
}, {
|
|
425
|
+
default: ee(() => f[0] || (f[0] = [
|
|
426
|
+
le(z("新建"))
|
|
427
|
+
])),
|
|
428
|
+
_: 1,
|
|
429
|
+
__: [0]
|
|
430
|
+
})
|
|
431
|
+
]),
|
|
432
|
+
G("div", el, [
|
|
433
|
+
W(te, {
|
|
434
|
+
columns: $,
|
|
435
|
+
isShowPagination: !1,
|
|
436
|
+
isShowEdit: !1,
|
|
437
|
+
isMoveColumn: !1,
|
|
438
|
+
tableData: a.value,
|
|
439
|
+
onDeleteRow: g
|
|
440
|
+
}, null, 8, ["tableData"])
|
|
441
|
+
]),
|
|
442
|
+
G("div", ll, [
|
|
443
|
+
f[3] || (f[3] = G("div", null, z("行内按钮"), -1)),
|
|
444
|
+
W(h, {
|
|
445
|
+
class: "blue-operate-button",
|
|
446
|
+
icon: "ele-Plus",
|
|
447
|
+
onClick: S
|
|
448
|
+
}, {
|
|
449
|
+
default: ee(() => f[2] || (f[2] = [
|
|
450
|
+
le(z("新建"))
|
|
451
|
+
])),
|
|
452
|
+
_: 1,
|
|
453
|
+
__: [2]
|
|
454
|
+
})
|
|
455
|
+
]),
|
|
456
|
+
G("div", tl, [
|
|
457
|
+
W(te, {
|
|
458
|
+
columns: O.value,
|
|
459
|
+
isShowPagination: !1,
|
|
460
|
+
isShowEdit: !1,
|
|
461
|
+
isMoveColumn: !1,
|
|
462
|
+
tableData: o.value,
|
|
463
|
+
onDeleteRow: c
|
|
464
|
+
}, null, 8, ["columns", "tableData"])
|
|
465
|
+
]),
|
|
466
|
+
G("div", nl, [
|
|
467
|
+
f[5] || (f[5] = G("div", null, z("表格外部按钮"), -1)),
|
|
468
|
+
W(h, {
|
|
469
|
+
class: "blue-operate-button",
|
|
470
|
+
icon: "ele-Plus",
|
|
471
|
+
onClick: u
|
|
472
|
+
}, {
|
|
473
|
+
default: ee(() => f[4] || (f[4] = [
|
|
474
|
+
le(z("新建"))
|
|
475
|
+
])),
|
|
476
|
+
_: 1,
|
|
477
|
+
__: [4]
|
|
478
|
+
})
|
|
479
|
+
]),
|
|
480
|
+
G("div", sl, [
|
|
481
|
+
W(te, {
|
|
482
|
+
columns: y.value,
|
|
483
|
+
isShowPagination: !1,
|
|
484
|
+
isShowEdit: !1,
|
|
485
|
+
isMoveColumn: !1,
|
|
486
|
+
tableData: b.value,
|
|
487
|
+
onDeleteRow: p
|
|
488
|
+
}, null, 8, ["columns", "tableData"])
|
|
489
|
+
]),
|
|
490
|
+
f[6] || (f[6] = G("div", { class: "operate-title" }, [
|
|
491
|
+
G("div", null, z("分页"))
|
|
492
|
+
], -1)),
|
|
493
|
+
G("div", al, [
|
|
494
|
+
W(ye, {
|
|
495
|
+
rowContents: d.value,
|
|
496
|
+
onChange: x
|
|
497
|
+
}, null, 8, ["rowContents"])
|
|
498
|
+
])
|
|
499
|
+
])
|
|
500
|
+
]);
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
}, ol = /* @__PURE__ */ oe(rl, [["__scopeId", "data-v-877911eb"]]), cl = { class: "form-operate-content" }, pl = { class: "form-operate-item" }, ul = { class: "operate-title" }, il = { class: "operate-content" }, fl = { class: "operate-title" }, dl = { class: "operate-content" }, yl = { class: "operate-content" }, hl = {
|
|
504
|
+
__name: "operate",
|
|
505
|
+
props: {
|
|
506
|
+
itemContents: {
|
|
507
|
+
type: Array,
|
|
508
|
+
default: () => []
|
|
509
|
+
},
|
|
510
|
+
originalItemContents: {
|
|
511
|
+
type: Array,
|
|
512
|
+
default: () => []
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
emits: ["change"],
|
|
516
|
+
setup(t, { emit: s }) {
|
|
517
|
+
const l = t, e = s, n = R([{
|
|
518
|
+
name: "isRowFlex",
|
|
519
|
+
label: "是否横向布局",
|
|
520
|
+
type: "Switch",
|
|
521
|
+
value: !0
|
|
522
|
+
}]), a = R([{
|
|
523
|
+
label: "字段名称",
|
|
524
|
+
prop: "label",
|
|
525
|
+
type: "edit"
|
|
526
|
+
}, {
|
|
527
|
+
label: "字段类型",
|
|
528
|
+
prop: "type",
|
|
529
|
+
type: "edit"
|
|
530
|
+
}, {
|
|
531
|
+
label: "字段值",
|
|
532
|
+
prop: "key",
|
|
533
|
+
type: "edit"
|
|
534
|
+
}, {
|
|
535
|
+
label: "字段选项值",
|
|
536
|
+
prop: "options",
|
|
537
|
+
type: "edit"
|
|
538
|
+
}, {
|
|
539
|
+
label: "操作",
|
|
540
|
+
prop: "operate",
|
|
541
|
+
type: "operate",
|
|
542
|
+
sortable: !1
|
|
543
|
+
}]), o = R([{
|
|
544
|
+
label: "字段名称",
|
|
545
|
+
prop: "label",
|
|
546
|
+
type: "edit"
|
|
547
|
+
}, {
|
|
548
|
+
label: "字段类型",
|
|
549
|
+
prop: "type",
|
|
550
|
+
type: "edit"
|
|
551
|
+
}, {
|
|
552
|
+
label: "按钮背景颜色",
|
|
553
|
+
prop: "background",
|
|
554
|
+
type: "edit",
|
|
555
|
+
columnType: "Color"
|
|
556
|
+
}, {
|
|
557
|
+
label: "操作",
|
|
558
|
+
prop: "operate",
|
|
559
|
+
type: "operate",
|
|
560
|
+
sortable: !1
|
|
561
|
+
}]), y = R([]), O = R([]), b = R([]), C = R(0);
|
|
562
|
+
q(
|
|
563
|
+
() => l.originalItemContents,
|
|
564
|
+
() => {
|
|
565
|
+
var u, c, p, g, i, f, h, A, T, D;
|
|
566
|
+
!l.originalItemContents || l.originalItemContents.length === 0 || (O.value = r(l.originalItemContents), b.value = (c = (u = O.value) == null ? void 0 : u.find((_) => (_ == null ? void 0 : _.key) === "formContent")) == null ? void 0 : c.contents, y.value = (g = (p = O.value) == null ? void 0 : p.find((_) => (_ == null ? void 0 : _.key) === "formButton")) == null ? void 0 : g.contents, b.value = (i = b.value) == null ? void 0 : i.map((_, j) => _ = {
|
|
567
|
+
label: (_ == null ? void 0 : _.label) ?? "",
|
|
568
|
+
type: (_ == null ? void 0 : _.type) ?? "",
|
|
569
|
+
key: (_ == null ? void 0 : _.key) ?? "",
|
|
570
|
+
options: (_ == null ? void 0 : _.options) ?? "",
|
|
571
|
+
id: (_ == null ? void 0 : _.id) ?? j
|
|
572
|
+
}), y.value = (f = y.value) == null ? void 0 : f.map((_, j) => _ = {
|
|
573
|
+
label: (_ == null ? void 0 : _.label) ?? "",
|
|
574
|
+
type: (_ == null ? void 0 : _.type) ?? "",
|
|
575
|
+
background: (_ == null ? void 0 : _.background) ?? "#000000",
|
|
576
|
+
id: (_ == null ? void 0 : _.id) ?? j
|
|
577
|
+
}), n.value = (A = (h = O.value) == null ? void 0 : h.find((_) => (_ == null ? void 0 : _.key) === "formFlex")) != null && A.contents ? [{
|
|
578
|
+
name: "isRowFlex",
|
|
579
|
+
label: "是否横向布局",
|
|
580
|
+
type: "Switch",
|
|
581
|
+
value: (D = (T = O.value) == null ? void 0 : T.find((_) => (_ == null ? void 0 : _.key) === "formFlex")) == null ? void 0 : D.contents
|
|
582
|
+
}] : [{
|
|
583
|
+
name: "isRowFlex",
|
|
584
|
+
label: "是否横向布局",
|
|
585
|
+
type: "Switch",
|
|
586
|
+
value: !0
|
|
587
|
+
}]);
|
|
588
|
+
},
|
|
589
|
+
{ deep: !0, immediate: !0 }
|
|
590
|
+
);
|
|
591
|
+
const d = () => {
|
|
592
|
+
const u = r(y.value);
|
|
593
|
+
let c = r(O.value);
|
|
594
|
+
u.push({
|
|
595
|
+
label: "",
|
|
596
|
+
type: "",
|
|
597
|
+
background: "#000000",
|
|
598
|
+
id: C.value
|
|
599
|
+
}), y.value = u, C.value++;
|
|
600
|
+
const p = c == null ? void 0 : c.find((g) => (g == null ? void 0 : g.key) === "formButton");
|
|
601
|
+
p != null && p.contents ? (p.contents = u, c = c == null ? void 0 : c.map((g) => ((g == null ? void 0 : g.key) === "formButton" && (g.contents = u), g))) : c.push({
|
|
602
|
+
key: "formButton",
|
|
603
|
+
contents: u
|
|
604
|
+
}), O.value = c;
|
|
605
|
+
}, $ = () => {
|
|
606
|
+
const u = r(b.value);
|
|
607
|
+
let c = r(O.value);
|
|
608
|
+
u.push({
|
|
609
|
+
label: "",
|
|
610
|
+
type: "",
|
|
611
|
+
key: "",
|
|
612
|
+
options: "",
|
|
613
|
+
id: C.value
|
|
614
|
+
}), b.value = u, C.value++;
|
|
615
|
+
const p = c == null ? void 0 : c.find((g) => (g == null ? void 0 : g.key) === "formContent");
|
|
616
|
+
p != null && p.contents ? (p.contents = u, c = c == null ? void 0 : c.map((g) => ((g == null ? void 0 : g.key) === "formContent" && (g.contents = u), g))) : c.push({
|
|
617
|
+
key: "formContent",
|
|
618
|
+
contents: u
|
|
619
|
+
}), O.value = c;
|
|
620
|
+
}, x = (u) => {
|
|
621
|
+
const c = r(y.value);
|
|
622
|
+
let p = r(O.value);
|
|
623
|
+
y.value = c.filter((i) => i.id !== u.id);
|
|
624
|
+
const g = p == null ? void 0 : p.find((i) => i.key === "formButton");
|
|
625
|
+
g != null && g.contents && (p = p == null ? void 0 : p.map((i) => ((i == null ? void 0 : i.key) === "formButton" && (i.contents = c.filter((f) => f.id !== u.id)), i))), O.value = p;
|
|
626
|
+
}, k = (u) => {
|
|
627
|
+
const c = r(b.value);
|
|
628
|
+
let p = r(O.value);
|
|
629
|
+
b.value = c.filter((i) => i.id !== u.id);
|
|
630
|
+
const g = p == null ? void 0 : p.find((i) => i.key === "formContent");
|
|
631
|
+
g != null && g.contents && (p = p == null ? void 0 : p.map((i) => ((i == null ? void 0 : i.key) === "formContent" && (i.contents = c.filter((f) => f.id !== u.id)), i))), O.value = p;
|
|
632
|
+
}, S = (u) => {
|
|
633
|
+
let c = r(O.value);
|
|
634
|
+
const p = c == null ? void 0 : c.find((g) => g.key === "formFlex");
|
|
635
|
+
(p == null ? void 0 : p.contents) !== void 0 ? c = c == null ? void 0 : c.map((g) => ((g == null ? void 0 : g.key) === "formFlex" && (g.contents = u == null ? void 0 : u.isRowFlex), g)) : c.push({
|
|
636
|
+
key: "formFlex",
|
|
637
|
+
contents: u == null ? void 0 : u.isRowFlex
|
|
638
|
+
}), O.value = c;
|
|
639
|
+
};
|
|
640
|
+
return q(
|
|
641
|
+
() => [O.value, b.value],
|
|
642
|
+
() => {
|
|
643
|
+
let u = r(O.value);
|
|
644
|
+
const c = u == null ? void 0 : u.find((p) => (p == null ? void 0 : p.key) === "formContent");
|
|
645
|
+
c != null && c.contents ? (c.contents = b.value, u = u == null ? void 0 : u.map((p) => ((p == null ? void 0 : p.key) === "formContent" && (p.contents = b.value), p))) : u.push({
|
|
646
|
+
key: "formContent",
|
|
647
|
+
contents: b.value
|
|
648
|
+
}), e("change", u);
|
|
649
|
+
},
|
|
650
|
+
{ deep: !0, immediate: !0 }
|
|
651
|
+
), (u, c) => {
|
|
652
|
+
const p = Oe("el-button");
|
|
653
|
+
return Z(), M("div", cl, [
|
|
654
|
+
G("div", pl, [
|
|
655
|
+
G("div", ul, [
|
|
656
|
+
c[1] || (c[1] = G("div", null, z("表单信息"), -1)),
|
|
657
|
+
W(p, {
|
|
658
|
+
class: "blue-operate-button",
|
|
659
|
+
icon: "ele-Plus",
|
|
660
|
+
onClick: $
|
|
661
|
+
}, {
|
|
662
|
+
default: ee(() => c[0] || (c[0] = [
|
|
663
|
+
le(z("新建"))
|
|
664
|
+
])),
|
|
665
|
+
_: 1,
|
|
666
|
+
__: [0]
|
|
667
|
+
})
|
|
668
|
+
]),
|
|
669
|
+
G("div", il, [
|
|
670
|
+
W(te, {
|
|
671
|
+
columns: a.value,
|
|
672
|
+
isShowPagination: !1,
|
|
673
|
+
isShowEdit: !1,
|
|
674
|
+
isMoveColumn: !1,
|
|
675
|
+
tableData: b.value,
|
|
676
|
+
onDeleteRow: k
|
|
677
|
+
}, null, 8, ["columns", "tableData"])
|
|
678
|
+
]),
|
|
679
|
+
G("div", fl, [
|
|
680
|
+
c[3] || (c[3] = G("div", null, z("表单按钮"), -1)),
|
|
681
|
+
W(p, {
|
|
682
|
+
class: "blue-operate-button",
|
|
683
|
+
icon: "ele-Plus",
|
|
684
|
+
onClick: d
|
|
685
|
+
}, {
|
|
686
|
+
default: ee(() => c[2] || (c[2] = [
|
|
687
|
+
le(z("新建"))
|
|
688
|
+
])),
|
|
689
|
+
_: 1,
|
|
690
|
+
__: [2]
|
|
691
|
+
})
|
|
692
|
+
]),
|
|
693
|
+
G("div", dl, [
|
|
694
|
+
W(te, {
|
|
695
|
+
columns: o.value,
|
|
696
|
+
isShowPagination: !1,
|
|
697
|
+
isShowEdit: !1,
|
|
698
|
+
isMoveColumn: !1,
|
|
699
|
+
tableData: y.value,
|
|
700
|
+
onDeleteRow: x
|
|
701
|
+
}, null, 8, ["columns", "tableData"])
|
|
702
|
+
]),
|
|
703
|
+
c[4] || (c[4] = G("div", { class: "operate-title" }, [
|
|
704
|
+
G("div", null, z("表单布局"))
|
|
705
|
+
], -1)),
|
|
706
|
+
G("div", yl, [
|
|
707
|
+
W(ye, {
|
|
708
|
+
rowContents: n.value,
|
|
709
|
+
onChange: S
|
|
710
|
+
}, null, 8, ["rowContents"])
|
|
711
|
+
])
|
|
712
|
+
])
|
|
713
|
+
]);
|
|
714
|
+
};
|
|
715
|
+
}
|
|
716
|
+
}, ml = /* @__PURE__ */ oe(hl, [["__scopeId", "data-v-a36b8468"]]), bl = { class: "extra-content" }, kl = { key: 0 }, gl = {
|
|
717
|
+
key: 0,
|
|
718
|
+
class: "extra-button-item"
|
|
719
|
+
}, Cl = { key: 1 }, $l = {
|
|
720
|
+
__name: "index",
|
|
721
|
+
props: {
|
|
722
|
+
itemData: {
|
|
723
|
+
type: Array,
|
|
724
|
+
default: () => []
|
|
725
|
+
},
|
|
726
|
+
childItemData: {
|
|
727
|
+
type: Array,
|
|
728
|
+
default: () => []
|
|
729
|
+
},
|
|
730
|
+
index: Number,
|
|
731
|
+
changedContent: {
|
|
732
|
+
type: Object,
|
|
733
|
+
default: () => {
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
},
|
|
737
|
+
setup(t) {
|
|
738
|
+
const s = t, l = R();
|
|
739
|
+
q(
|
|
740
|
+
() => [s.itemData],
|
|
741
|
+
() => {
|
|
742
|
+
var a;
|
|
743
|
+
const n = r(s.itemData);
|
|
744
|
+
l.value = (a = r(n)) == null ? void 0 : a.map((o) => {
|
|
745
|
+
var y;
|
|
746
|
+
if (o.key === "extra") {
|
|
747
|
+
let O = [];
|
|
748
|
+
(y = o.value) == null || y.forEach((b) => {
|
|
749
|
+
var C;
|
|
750
|
+
O.push((C = Object.values(b)) == null ? void 0 : C[0]);
|
|
751
|
+
}), o.value = O;
|
|
752
|
+
}
|
|
753
|
+
return o;
|
|
754
|
+
});
|
|
755
|
+
},
|
|
756
|
+
{ deep: !0, immediate: !0 }
|
|
757
|
+
);
|
|
758
|
+
const e = (n) => _l(n);
|
|
759
|
+
return (n, a) => (Z(), M("div", bl, [
|
|
760
|
+
(Z(!0), M(Ce, null, $e(l.value, (o, y) => (Z(), M("div", { key: y }, [
|
|
761
|
+
(o == null ? void 0 : o.key) === "extra" ? (Z(), M("div", kl, [
|
|
762
|
+
(Z(!0), M(Ce, null, $e(o.value, (O, b) => (Z(), M("div", {
|
|
763
|
+
key: b,
|
|
764
|
+
class: "extra-button"
|
|
765
|
+
}, [
|
|
766
|
+
O ? (Z(), M("div", gl, z(O), 1)) : We("", !0)
|
|
767
|
+
]))), 128))
|
|
768
|
+
])) : (Z(), M("div", Cl, [
|
|
769
|
+
(Z(), ze(Ze(e(o.comp)), {
|
|
770
|
+
itemData: o == null ? void 0 : o.compData,
|
|
771
|
+
childItemData: o == null ? void 0 : o.itemChildData,
|
|
772
|
+
key: y,
|
|
773
|
+
index: y
|
|
774
|
+
}, null, 8, ["itemData", "childItemData", "index"]))
|
|
775
|
+
]))
|
|
776
|
+
]))), 128))
|
|
777
|
+
]));
|
|
778
|
+
}
|
|
779
|
+
}, Al = /* @__PURE__ */ oe($l, [["__scopeId", "data-v-9a96eb90"]]), bt = R([
|
|
780
|
+
{
|
|
781
|
+
name: "表格",
|
|
782
|
+
type: "table",
|
|
783
|
+
comp: "Table",
|
|
784
|
+
icon: "Grid"
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
name: "表单",
|
|
788
|
+
type: "form",
|
|
789
|
+
comp: "Form",
|
|
790
|
+
icon: "Film"
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
name: "折叠",
|
|
794
|
+
type: "fold",
|
|
795
|
+
comp: "Fold",
|
|
796
|
+
icon: "Fold"
|
|
797
|
+
}
|
|
798
|
+
]), Ol = {
|
|
799
|
+
TABLE: Le,
|
|
800
|
+
FORM: we,
|
|
801
|
+
TableOperate: ol,
|
|
802
|
+
FormOperate: ml,
|
|
803
|
+
FOLD: He,
|
|
804
|
+
CALCULATOR: Al
|
|
805
|
+
// 添加其他组件...
|
|
806
|
+
};
|
|
807
|
+
function _l(t) {
|
|
808
|
+
return Ol[t == null ? void 0 : t.toUpperCase()] || null;
|
|
809
|
+
}
|
|
810
|
+
const J = [
|
|
811
|
+
{
|
|
812
|
+
key: "FormName",
|
|
813
|
+
value: "Form"
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
key: "TableName",
|
|
817
|
+
value: "Table"
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
key: "MenuName",
|
|
821
|
+
value: "Menu"
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
key: "GroupName",
|
|
825
|
+
value: "Group"
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
key: "SystemKey",
|
|
829
|
+
value: "System"
|
|
830
|
+
}
|
|
831
|
+
], B = [
|
|
832
|
+
{
|
|
833
|
+
key: "FormDirect",
|
|
834
|
+
value: "formFlex"
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
key: "Form",
|
|
838
|
+
value: "formContent"
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
key: "FormButton",
|
|
842
|
+
value: "formButton"
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
key: "FormFlex",
|
|
846
|
+
value: "formWrap"
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
key: "TableColumns",
|
|
850
|
+
value: "header"
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
key: "TableButton",
|
|
854
|
+
value: "extraButton"
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
key: "TableLineButton",
|
|
858
|
+
value: "rowButton"
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
key: "Table",
|
|
862
|
+
value: "tableContents"
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
key: "TableIndex",
|
|
866
|
+
value: "tableIndex"
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
key: "Menus",
|
|
870
|
+
value: "menuContents"
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
key: "GroupContents",
|
|
874
|
+
value: "groupContents"
|
|
875
|
+
}
|
|
876
|
+
], w = R(0), xl = (t) => {
|
|
877
|
+
const [s, l] = t.split(/=(.+)/), e = s.replace(/['"]/g, "").trim(), n = l.replace(/^['"]|['"]$/g, "");
|
|
878
|
+
return { key: e, value: n };
|
|
879
|
+
}, ae = (t) => {
|
|
880
|
+
try {
|
|
881
|
+
return JSON.parse(t), !0;
|
|
882
|
+
} catch {
|
|
883
|
+
return !1;
|
|
884
|
+
}
|
|
885
|
+
}, Tl = (t) => t.includes("$") && t.trim().endsWith("(") ? t + ")" : t, El = (t) => {
|
|
886
|
+
let s = t;
|
|
887
|
+
const l = [];
|
|
888
|
+
let e = "";
|
|
889
|
+
for (const n of s)
|
|
890
|
+
n.includes("{") || e.includes("{") || n.includes("[") || e.includes("[") || n.includes("【") || e.includes("【") || n.includes("(") || e.includes("(") || n.includes("(") || e.includes("(") || n.includes("/*") || e.includes("/*") ? (e += n.trim(), r(e).split("{").length - 1 === r(e).split("}").length - 1 && r(e).split("【").length - 1 === r(e).split("】").length - 1 && r(e).split("[").length - 1 === r(e).split("]").length - 1 && r(e).split("(").length - 1 === r(e).split(")").length - 1 && r(e).split("(").length - 1 === r(e).split(")").length - 1 && r(e).split("/*").length - 1 === r(e).split("*/").length - 1 && (l.push(e), e = "")) : l.push(n.trim());
|
|
891
|
+
return l == null ? void 0 : l.filter((n) => n.includes("{"));
|
|
892
|
+
}, Dl = (t) => {
|
|
893
|
+
var l;
|
|
894
|
+
let s = [];
|
|
895
|
+
return (l = El(t.slice(1, -1))) == null || l.forEach((e) => {
|
|
896
|
+
var a, o, y, O;
|
|
897
|
+
let n = ((o = (a = e.slice(1, -1)) == null ? void 0 : a.split(",")) == null ? void 0 : o.length) ?? 1;
|
|
898
|
+
(O = (y = e.slice(1, -1)) == null ? void 0 : y.split(",")) == null || O.forEach((b) => {
|
|
899
|
+
var x, k, S, u, c, p, g, i, f, h, A, T, D;
|
|
900
|
+
let C = b == null ? void 0 : b.split(":"), d = C != null && C[0] ? (C == null ? void 0 : C[1].split("$").length) - 1 === 1 ? ((x = C == null ? void 0 : C[0]) == null ? void 0 : x.replace(/^"(.*)"$/, "$1")) + ((k = C == null ? void 0 : C[1]) == null ? void 0 : k.replace(/^"(.*)"$/, "$1")) : Array.isArray((u = (S = C == null ? void 0 : C[1]) == null ? void 0 : S.replace(/^"(.*)"$/, "$1")) == null ? void 0 : u.split("(")) && ((g = (p = (c = C == null ? void 0 : C[1]) == null ? void 0 : c.replace(/^"(.*)"$/, "$1")) == null ? void 0 : p.split("(")) == null ? void 0 : g.length) > 1 ? ((i = C == null ? void 0 : C[0]) == null ? void 0 : i.replace(/^"(.*)"$/, "$1")) + ((A = (h = (f = C == null ? void 0 : C[1]) == null ? void 0 : f.replace(/^"(.*)"$/, "$1")) == null ? void 0 : h.split("(")) == null ? void 0 : A[0]) + "()" : (T = C == null ? void 0 : C[0]) == null ? void 0 : T.replace(/^"(.*)"$/, "$1") : "", $ = (C == null ? void 0 : C[1].split("$").length) - 1 === 0 ? (D = C == null ? void 0 : C[1]) == null ? void 0 : D.replace(/^"(.*)"$/, "$1") : "";
|
|
901
|
+
w.value++, s.push({
|
|
902
|
+
id: w.value,
|
|
903
|
+
key: d,
|
|
904
|
+
value: $,
|
|
905
|
+
// 如果值为空,则key设为空字符串,否则保留原值
|
|
906
|
+
width: n,
|
|
907
|
+
extraContent: C == null ? void 0 : C[1]
|
|
908
|
+
});
|
|
909
|
+
});
|
|
910
|
+
}), s;
|
|
911
|
+
}, xe = (t) => {
|
|
912
|
+
var s, l;
|
|
913
|
+
try {
|
|
914
|
+
const e = t.replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",").replace(/:/g, ":").replace(/:\s*(?=,|}|$)/g, ': ""');
|
|
915
|
+
if (r(e).split("{").length - 1 > 1) {
|
|
916
|
+
let n = r(e).replace(/^\{(.*)\}$/, "[$1]");
|
|
917
|
+
if (ae(n) && !n.includes("$") || (n = n.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g, '"$1$$$2"')), ae(n)) {
|
|
918
|
+
const a = JSON.parse(n);
|
|
919
|
+
let o = [];
|
|
920
|
+
return a == null || a.forEach((y) => {
|
|
921
|
+
var O;
|
|
922
|
+
(O = Object.entries(r(y))) == null || O.forEach((b) => {
|
|
923
|
+
w.value++, o.push({
|
|
924
|
+
id: w.value,
|
|
925
|
+
key: (b == null ? void 0 : b[0]) ?? "",
|
|
926
|
+
value: (b == null ? void 0 : b[1]) === "" ? "" : b == null ? void 0 : b[1],
|
|
927
|
+
// 如果值为空,则key设为空字符串,否则保留原值
|
|
928
|
+
width: Object.keys(r(y)).length
|
|
929
|
+
});
|
|
930
|
+
});
|
|
931
|
+
}), o;
|
|
932
|
+
} else
|
|
933
|
+
return e.trim().startsWith("{{") ? Dl(e.trim()) : pe(n);
|
|
934
|
+
} else if (ae(e)) {
|
|
935
|
+
const n = JSON.parse(e);
|
|
936
|
+
return Object.entries(n).map(([a, o]) => (w.value++, {
|
|
937
|
+
id: w.value,
|
|
938
|
+
key: a,
|
|
939
|
+
value: o === "" ? "" : o,
|
|
940
|
+
// 如果值为空,则key设为空字符串,否则保留原值
|
|
941
|
+
width: 1
|
|
942
|
+
}));
|
|
943
|
+
} else
|
|
944
|
+
return ((s = pe(e)) == null ? void 0 : s.length) === 0 ? e : (l = pe(e)) == null ? void 0 : l.map((n) => ({
|
|
945
|
+
label: n.label,
|
|
946
|
+
method: Tl(n.method)
|
|
947
|
+
}));
|
|
948
|
+
} catch (e) {
|
|
949
|
+
return console.error("转换失败:", e), [];
|
|
950
|
+
}
|
|
951
|
+
}, pe = (t) => {
|
|
952
|
+
t = t.trim().replace(/^\{|\}$/g, "").trim();
|
|
953
|
+
const s = [];
|
|
954
|
+
let l = 0;
|
|
955
|
+
for (; l < t.length; ) {
|
|
956
|
+
const e = t.slice(l).match(/^\s*"([^"]+)"\s*:\s*/);
|
|
957
|
+
if (!e) break;
|
|
958
|
+
const n = e[1];
|
|
959
|
+
l += e[0].length;
|
|
960
|
+
let a = "", o = 0, y = !1, O = "";
|
|
961
|
+
for (let b = l; b < t.length; b++) {
|
|
962
|
+
const C = t[b];
|
|
963
|
+
if ((C === '"' || C === "'") && !y ? (y = !0, O = C) : C === O && y && (y = !1, O = ""), !y && ((C === "{" || C === "(" || C === "[") && o++, (C === "}" || C === ")" || C === "]") && o--, C === "," && o === 0 || b === t.length - 1)) {
|
|
964
|
+
a = t.slice(l, b + 1).trim(), l = b + 1;
|
|
965
|
+
break;
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
s.push({
|
|
969
|
+
label: n,
|
|
970
|
+
method: a
|
|
971
|
+
});
|
|
972
|
+
}
|
|
973
|
+
return s;
|
|
974
|
+
}, Nl = (t, s) => {
|
|
975
|
+
try {
|
|
976
|
+
if (J != null && J.find((l) => (l == null ? void 0 : l.key) === s))
|
|
977
|
+
return t.replace(/['"]/g, "").trim();
|
|
978
|
+
if (r(t).split("[").length - 1 > 1) {
|
|
979
|
+
const l = r(t).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
|
|
980
|
+
return JSON.parse(l);
|
|
981
|
+
} else {
|
|
982
|
+
const l = r(t).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",");
|
|
983
|
+
if (ae(l)) {
|
|
984
|
+
const e = JSON.parse(l);
|
|
985
|
+
return Array.isArray(e) ? e.map((n) => ({ label: n })) : e;
|
|
986
|
+
} else
|
|
987
|
+
return xe(r(t));
|
|
988
|
+
}
|
|
989
|
+
} catch (l) {
|
|
990
|
+
return console.error("解析失败:", l), t;
|
|
991
|
+
}
|
|
992
|
+
}, jl = (t) => ({ [t == null ? void 0 : t.key]: Nl(t == null ? void 0 : t.value, t == null ? void 0 : t.key) }), Sl = (t) => {
|
|
993
|
+
try {
|
|
994
|
+
if (r(t).split("[").length - 1 > 1) {
|
|
995
|
+
const s = r(t).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
|
|
996
|
+
return JSON.parse(s);
|
|
997
|
+
} else
|
|
998
|
+
return JSON.parse(r(t).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",")).map((l) => ({ label: l }));
|
|
999
|
+
} catch (s) {
|
|
1000
|
+
return console.error("解析失败:", s), t;
|
|
1001
|
+
}
|
|
1002
|
+
}, Fl = (t) => {
|
|
1003
|
+
const s = t.match(/\(([^)]+)\)/);
|
|
1004
|
+
return s ? s[1] : "";
|
|
1005
|
+
}, Ul = (t) => {
|
|
1006
|
+
const s = t.match(/^([^(]+)\s*\(/);
|
|
1007
|
+
return s ? s[1].trim() : t;
|
|
1008
|
+
}, Ae = (t) => t.replace(/'/g, "").replace(/"/g, "").replace(/{|}/g, "").split(":").map((s) => s.trim()).filter((s) => s).join("/"), Pl = (t) => {
|
|
1009
|
+
var o, y;
|
|
1010
|
+
let s = [], l = [];
|
|
1011
|
+
const e = (o = r(t)) == null ? void 0 : o.map((O) => O == null ? void 0 : O.key), n = [...new Set((y = r(e)) == null ? void 0 : y.map((O) => Fl(O)))];
|
|
1012
|
+
n == null || n.forEach((O) => {
|
|
1013
|
+
let b = t == null ? void 0 : t.filter(($) => $.key.includes(O));
|
|
1014
|
+
b == null || b.forEach(($) => {
|
|
1015
|
+
$ != null && $.key.includes("Menus") && (s.push({
|
|
1016
|
+
key: "GroupName",
|
|
1017
|
+
value: Ae($ == null ? void 0 : $.value)
|
|
1018
|
+
}), l.push(Ae($ == null ? void 0 : $.value)));
|
|
1019
|
+
});
|
|
1020
|
+
let C = t == null ? void 0 : t.filter(($) => $.key.includes(O) && !($ != null && $.key.includes("Menus")));
|
|
1021
|
+
C = C == null ? void 0 : C.map(($) => ($.key = Ul($.key), $));
|
|
1022
|
+
const d = {
|
|
1023
|
+
key: "GroupContents",
|
|
1024
|
+
value: C
|
|
1025
|
+
};
|
|
1026
|
+
s.push(d);
|
|
1027
|
+
});
|
|
1028
|
+
const a = {
|
|
1029
|
+
key: "Menus",
|
|
1030
|
+
value: l
|
|
1031
|
+
};
|
|
1032
|
+
return s.unshift(a), s;
|
|
1033
|
+
}, Te = (t) => {
|
|
1034
|
+
var s, l;
|
|
1035
|
+
if (Array.isArray(Object.keys(t)) && ((s = Object.keys(t)) == null ? void 0 : s.length) > 0) {
|
|
1036
|
+
let e = [];
|
|
1037
|
+
return (l = Object.entries(t)) == null || l.forEach(([n, a]) => {
|
|
1038
|
+
var y, O;
|
|
1039
|
+
let o = [];
|
|
1040
|
+
if (o.push(n), ((y = Object.keys(a)) == null ? void 0 : y.length) > 0) {
|
|
1041
|
+
let b = [];
|
|
1042
|
+
b.push((O = Te(a)) == null ? void 0 : O[0]), o.push(b == null ? void 0 : b[0]);
|
|
1043
|
+
}
|
|
1044
|
+
e.push(o);
|
|
1045
|
+
}), e;
|
|
1046
|
+
}
|
|
1047
|
+
}, Bl = (t, s) => {
|
|
1048
|
+
var e;
|
|
1049
|
+
let l = s;
|
|
1050
|
+
return Array.isArray(Object.keys(t)) && ((e = Object.entries(t)) == null || e.forEach(([n, a]) => {
|
|
1051
|
+
let o = [n];
|
|
1052
|
+
if (typeof a == "object" && a !== null) {
|
|
1053
|
+
let y = Te(a);
|
|
1054
|
+
y == null || y.forEach((O) => {
|
|
1055
|
+
o.push(O);
|
|
1056
|
+
});
|
|
1057
|
+
}
|
|
1058
|
+
l.push(o);
|
|
1059
|
+
})), l;
|
|
1060
|
+
}, Jl = (t) => {
|
|
1061
|
+
const s = {};
|
|
1062
|
+
return t.forEach((e) => {
|
|
1063
|
+
const n = e.split("/");
|
|
1064
|
+
let a = s;
|
|
1065
|
+
n.forEach((o) => {
|
|
1066
|
+
a[o] || (a[o] = {}), a = a[o];
|
|
1067
|
+
});
|
|
1068
|
+
}), Bl(s, []);
|
|
1069
|
+
}, Ee = (t) => Jl(t), kt = (t) => {
|
|
1070
|
+
var s, l, e, n, a, o, y, O;
|
|
1071
|
+
try {
|
|
1072
|
+
const b = he((l = (s = r(t)) == null ? void 0 : s.replace("(", "(")) == null ? void 0 : l.replace(")", ")")), C = (n = (e = r(b)) == null ? void 0 : e.filter((k) => !k.includes("/*"))) == null ? void 0 : n.map((k) => xl(k)), d = Pl(C), $ = [];
|
|
1073
|
+
if (((a = d == null ? void 0 : d.find((k) => (k == null ? void 0 : k.key) === "Menus")) == null ? void 0 : a.value.length) === 0)
|
|
1074
|
+
return !1;
|
|
1075
|
+
(o = r(d)) == null || o.forEach((k) => {
|
|
1076
|
+
var S, u, c, p, g;
|
|
1077
|
+
J != null && J.find((i) => {
|
|
1078
|
+
var f, h;
|
|
1079
|
+
return ((f = i == null ? void 0 : i.key) == null ? void 0 : f.toUpperCase()) === ((h = k == null ? void 0 : k.key) == null ? void 0 : h.toUpperCase());
|
|
1080
|
+
}) ? $.push({
|
|
1081
|
+
comp: ((S = J == null ? void 0 : J.find((i) => {
|
|
1082
|
+
var f, h;
|
|
1083
|
+
return ((f = i == null ? void 0 : i.key) == null ? void 0 : f.toUpperCase()) === ((h = k == null ? void 0 : k.key) == null ? void 0 : h.toUpperCase());
|
|
1084
|
+
})) == null ? void 0 : S.value) ?? "",
|
|
1085
|
+
name: (u = k == null ? void 0 : k.value) == null ? void 0 : u.replace(/[’]|[‘]|[']/g, ""),
|
|
1086
|
+
compData: []
|
|
1087
|
+
}) : B != null && B.find((i) => {
|
|
1088
|
+
var f, h;
|
|
1089
|
+
return ((f = i == null ? void 0 : i.key) == null ? void 0 : f.toUpperCase()) === ((h = k == null ? void 0 : k.key) == null ? void 0 : h.toUpperCase());
|
|
1090
|
+
}) && (($ == null ? void 0 : $.length) === 0 && (c = k.key) != null && c.includes("Menus") && $.push({
|
|
1091
|
+
comp: "Menu",
|
|
1092
|
+
name: "",
|
|
1093
|
+
compData: []
|
|
1094
|
+
}), (p = $ == null ? void 0 : $[($ == null ? void 0 : $.length) - 1]) != null && p.compData && $[($ == null ? void 0 : $.length) - 1].compData.push({
|
|
1095
|
+
key: (g = B == null ? void 0 : B.find((i) => {
|
|
1096
|
+
var f, h;
|
|
1097
|
+
return ((f = i == null ? void 0 : i.key) == null ? void 0 : f.toUpperCase()) === ((h = k == null ? void 0 : k.key) == null ? void 0 : h.toUpperCase());
|
|
1098
|
+
})) == null ? void 0 : g.value,
|
|
1099
|
+
contents: k == null ? void 0 : k.value
|
|
1100
|
+
}));
|
|
1101
|
+
});
|
|
1102
|
+
let x = (y = r($)) == null ? void 0 : y.map((k) => {
|
|
1103
|
+
var S;
|
|
1104
|
+
return k != null && k.compData && (k.compData = (S = k == null ? void 0 : k.compData) == null ? void 0 : S.map((u) => {
|
|
1105
|
+
var c, p, g, i, f, h, A, T, D, _, j;
|
|
1106
|
+
if ((u == null ? void 0 : u.key) === "formFlex")
|
|
1107
|
+
u.contents = ((p = (c = u.contents) == null ? void 0 : c.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : p.toUpperCase()) !== "Vertical".toUpperCase();
|
|
1108
|
+
else if ((u == null ? void 0 : u.key) === "groupContents")
|
|
1109
|
+
u.contents = (g = r(u.contents)) == null ? void 0 : g.map((E) => jl(r(E)));
|
|
1110
|
+
else if (Array.isArray(u == null ? void 0 : u.contents))
|
|
1111
|
+
u.contents = Ee(u.contents);
|
|
1112
|
+
else if (((f = (i = u == null ? void 0 : u.contents) == null ? void 0 : i.trim()) != null && f.startsWith("[") || (A = (h = u.contents) == null ? void 0 : h.trim()) != null && A.startsWith("【")) && ((D = (T = u.contents) == null ? void 0 : T.trim()) != null && D.endsWith("]") || (j = (_ = u.contents) == null ? void 0 : _.trim()) != null && j.endsWith("】")))
|
|
1113
|
+
u.contents = Sl(r(u.contents));
|
|
1114
|
+
else {
|
|
1115
|
+
if (!u.contents) return;
|
|
1116
|
+
u.contents = xe(r(u.contents));
|
|
1117
|
+
}
|
|
1118
|
+
return u;
|
|
1119
|
+
})), k;
|
|
1120
|
+
});
|
|
1121
|
+
return x = (O = r(x)) == null ? void 0 : O.map((k) => {
|
|
1122
|
+
var S;
|
|
1123
|
+
return (k == null ? void 0 : k.comp) === "Group" && (k.compData = (S = k.compData) == null ? void 0 : S.map((u) => {
|
|
1124
|
+
var p;
|
|
1125
|
+
let c = [];
|
|
1126
|
+
return (p = u.contents) == null || p.forEach((g) => {
|
|
1127
|
+
var i, f, h, A, T, D, _, j, E, F, U, v;
|
|
1128
|
+
if (J != null && J.find((N) => {
|
|
1129
|
+
var m, P, L;
|
|
1130
|
+
return ((m = N == null ? void 0 : N.key) == null ? void 0 : m.toUpperCase()) === ((L = (P = Object.keys(g)) == null ? void 0 : P[0]) == null ? void 0 : L.toUpperCase());
|
|
1131
|
+
}))
|
|
1132
|
+
c.push({
|
|
1133
|
+
comp: (i = J == null ? void 0 : J.find((N) => {
|
|
1134
|
+
var m, P, L;
|
|
1135
|
+
return ((m = N == null ? void 0 : N.key) == null ? void 0 : m.toUpperCase()) === ((L = (P = Object.keys(g)) == null ? void 0 : P[0]) == null ? void 0 : L.toUpperCase());
|
|
1136
|
+
})) == null ? void 0 : i.value,
|
|
1137
|
+
name: (h = (f = Object.values(g)) == null ? void 0 : f[0]) == null ? void 0 : h.replace(/[’]|[‘]|[']/g, ""),
|
|
1138
|
+
compData: []
|
|
1139
|
+
});
|
|
1140
|
+
else if (B != null && B.find((N) => {
|
|
1141
|
+
var m, P, L;
|
|
1142
|
+
return ((m = N == null ? void 0 : N.key) == null ? void 0 : m.toUpperCase()) === ((L = (P = Object.keys(g)) == null ? void 0 : P[0]) == null ? void 0 : L.toUpperCase());
|
|
1143
|
+
})) {
|
|
1144
|
+
if ((c == null ? void 0 : c.length) === 0) return;
|
|
1145
|
+
(A = c == null ? void 0 : c[(c == null ? void 0 : c.length) - 1]) != null && A.compData && c[(c == null ? void 0 : c.length) - 1].compData.push({
|
|
1146
|
+
key: (T = B == null ? void 0 : B.find((N) => {
|
|
1147
|
+
var m, P, L;
|
|
1148
|
+
return ((m = N == null ? void 0 : N.key) == null ? void 0 : m.toUpperCase()) === ((L = (P = Object.keys(g)) == null ? void 0 : P[0]) == null ? void 0 : L.toUpperCase());
|
|
1149
|
+
})) == null ? void 0 : T.value,
|
|
1150
|
+
contents: (D = Object.values(g)) == null ? void 0 : D[0]
|
|
1151
|
+
});
|
|
1152
|
+
} else if ((j = (_ = Object.keys(g)) == null ? void 0 : _[0]) != null && j.includes("$")) {
|
|
1153
|
+
const N = (F = (E = Object.keys(r(g))) == null ? void 0 : E[0]) == null ? void 0 : F.split("$");
|
|
1154
|
+
c[(c == null ? void 0 : c.length) - 1].compData.push({
|
|
1155
|
+
key: (U = B == null ? void 0 : B.find((m) => {
|
|
1156
|
+
var P, L;
|
|
1157
|
+
return ((P = m == null ? void 0 : m.key) == null ? void 0 : P.toUpperCase()) === ((L = N == null ? void 0 : N[0]) == null ? void 0 : L.toUpperCase());
|
|
1158
|
+
})) == null ? void 0 : U.value,
|
|
1159
|
+
contents: (v = Object.values(g)) == null ? void 0 : v[0],
|
|
1160
|
+
selectLabel: N == null ? void 0 : N[1]
|
|
1161
|
+
});
|
|
1162
|
+
}
|
|
1163
|
+
return g;
|
|
1164
|
+
}), u.contents = c, u;
|
|
1165
|
+
})), k;
|
|
1166
|
+
}), x;
|
|
1167
|
+
} catch {
|
|
1168
|
+
return !1;
|
|
1169
|
+
}
|
|
1170
|
+
}, Y = (t) => {
|
|
1171
|
+
try {
|
|
1172
|
+
return JSON.parse(t), !0;
|
|
1173
|
+
} catch {
|
|
1174
|
+
return !1;
|
|
1175
|
+
}
|
|
1176
|
+
}, De = (t) => {
|
|
1177
|
+
const s = [];
|
|
1178
|
+
let l = null;
|
|
1179
|
+
for (let e = 0; e < t.length; e++) {
|
|
1180
|
+
const n = t[e];
|
|
1181
|
+
if (Array.isArray(n))
|
|
1182
|
+
l && (l.children = De(n));
|
|
1183
|
+
else {
|
|
1184
|
+
const a = { label: n };
|
|
1185
|
+
s.push(a), l = a;
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
return s;
|
|
1189
|
+
}, Ne = (t) => {
|
|
1190
|
+
let s = 0;
|
|
1191
|
+
for (const l of t)
|
|
1192
|
+
s++, l.children && (s += Ne(l.children));
|
|
1193
|
+
return s;
|
|
1194
|
+
}, je = (t, s, l = []) => {
|
|
1195
|
+
let e = 0;
|
|
1196
|
+
for (const n of s) {
|
|
1197
|
+
if (e >= t.length) break;
|
|
1198
|
+
const a = [...t[e]];
|
|
1199
|
+
if (l.push(a), e++, n.children && n.children.length > 0) {
|
|
1200
|
+
const o = [];
|
|
1201
|
+
je(
|
|
1202
|
+
t.slice(e),
|
|
1203
|
+
n.children,
|
|
1204
|
+
o
|
|
1205
|
+
), o.length > 0 && (a.push(o), e += Ne(n.children));
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
return l;
|
|
1209
|
+
}, vl = (t, s) => {
|
|
1210
|
+
let l = [];
|
|
1211
|
+
return t == null || t.forEach((n) => {
|
|
1212
|
+
n.some((a) => Array.isArray(a)) ? l.push(...n) : l.push(n);
|
|
1213
|
+
}), je(l, s);
|
|
1214
|
+
}, fe = (t) => {
|
|
1215
|
+
const s = { label: t[0] };
|
|
1216
|
+
if (t.length > 1) {
|
|
1217
|
+
const l = t.slice(1);
|
|
1218
|
+
l.length === 1 && Array.isArray(l[0]) ? s.children = l[0].map(
|
|
1219
|
+
(e) => Array.isArray(e) ? fe(e) : { label: e }
|
|
1220
|
+
) : s.children = l.map(
|
|
1221
|
+
(e) => Array.isArray(e) ? fe(e) : { label: e }
|
|
1222
|
+
);
|
|
1223
|
+
}
|
|
1224
|
+
return s;
|
|
1225
|
+
}, Rl = (t) => {
|
|
1226
|
+
var l;
|
|
1227
|
+
return t.some((e) => !Array.isArray(e)) ? t : (l = r(t)) == null ? void 0 : l.map((e) => {
|
|
1228
|
+
let n = [];
|
|
1229
|
+
return e == null || e.forEach((a) => {
|
|
1230
|
+
Array.isArray(a) && n.push(fe(a));
|
|
1231
|
+
}), n;
|
|
1232
|
+
});
|
|
1233
|
+
}, Se = (t, s, l) => {
|
|
1234
|
+
let e = t, n = l, a = s;
|
|
1235
|
+
return a.children && (Array.isArray(n[n.length - 1]) ? n[n.length - 1].push(e[0]) : n.push(e[0]), e.shift(), a = a.children), Array.isArray(a) && a.forEach((o) => {
|
|
1236
|
+
if (o.children) {
|
|
1237
|
+
const y = Se(e, o, n);
|
|
1238
|
+
n = y[0], e = y[1];
|
|
1239
|
+
}
|
|
1240
|
+
}), [n, e];
|
|
1241
|
+
}, Gl = (t, s) => {
|
|
1242
|
+
let l = t, e = [];
|
|
1243
|
+
return s.length > 0 ? s == null || s.forEach((n) => {
|
|
1244
|
+
let a = l == null ? void 0 : l[0];
|
|
1245
|
+
l.shift();
|
|
1246
|
+
const o = Se(r(l), n, a);
|
|
1247
|
+
a = o[0], l = o[1], e.push(a);
|
|
1248
|
+
}) : e = l, e;
|
|
1249
|
+
}, Fe = (t, s) => {
|
|
1250
|
+
const l = Rl(r(t));
|
|
1251
|
+
return Gl(l, s);
|
|
1252
|
+
}, Ll = (t) => {
|
|
1253
|
+
const s = [];
|
|
1254
|
+
let l = 0;
|
|
1255
|
+
const e = t.length;
|
|
1256
|
+
for (; l < e; ) {
|
|
1257
|
+
const n = t[l];
|
|
1258
|
+
n.key === "tableColumns" && l + 1 < e && t[l + 1].key === "tableContents" ? (s.push({
|
|
1259
|
+
comp: "Table",
|
|
1260
|
+
compData: [n, t[l + 1]],
|
|
1261
|
+
name: ""
|
|
1262
|
+
}), l += 2) : (s.push(n), l += 1);
|
|
1263
|
+
}
|
|
1264
|
+
return s;
|
|
1265
|
+
}, Wl = (t) => {
|
|
1266
|
+
let s = Ll(t);
|
|
1267
|
+
return s = s == null ? void 0 : s.map((l) => {
|
|
1268
|
+
var e;
|
|
1269
|
+
return l.comp === "Table" ? l.compData = (e = l.compData) == null ? void 0 : e.map((n) => (n.key === "tableColumns" ? n = {
|
|
1270
|
+
key: "header",
|
|
1271
|
+
contents: Fe(n.value, [])
|
|
1272
|
+
} : n = {
|
|
1273
|
+
key: n.key,
|
|
1274
|
+
contents: n.value
|
|
1275
|
+
}, n)) : l.key === "form" && (l = {
|
|
1276
|
+
comp: "Form",
|
|
1277
|
+
compData: [],
|
|
1278
|
+
name: ""
|
|
1279
|
+
}), l;
|
|
1280
|
+
}), s;
|
|
1281
|
+
}, zl = (t, s) => {
|
|
1282
|
+
var y, O, b, C, d, $;
|
|
1283
|
+
const l = [], e = De((O = (y = t == null ? void 0 : t.find((x) => x.key === "tableIndex")) == null ? void 0 : y.value) == null ? void 0 : O[0]);
|
|
1284
|
+
l.push({
|
|
1285
|
+
key: "tableIndexColumn",
|
|
1286
|
+
contents: s
|
|
1287
|
+
}), l.push({
|
|
1288
|
+
key: "tableIndex",
|
|
1289
|
+
contents: e
|
|
1290
|
+
});
|
|
1291
|
+
let n = [];
|
|
1292
|
+
const a = (b = t == null ? void 0 : t.find((x) => x.key === "tableColumns")) == null ? void 0 : b.value;
|
|
1293
|
+
a.length === 1 && !(a != null && a[0].some((x) => Array.isArray(x))) ? n = (C = a == null ? void 0 : a[0]) == null ? void 0 : C.map((x) => ({ label: x })) : n = Fe((d = t == null ? void 0 : t.find((x) => x.key === "tableColumns")) == null ? void 0 : d.value, e), l.push({
|
|
1294
|
+
key: "header",
|
|
1295
|
+
contents: n
|
|
1296
|
+
});
|
|
1297
|
+
const o = vl(($ = t == null ? void 0 : t.find((x) => x.key === "tableContents")) == null ? void 0 : $.value, e);
|
|
1298
|
+
return l.push({
|
|
1299
|
+
key: "tableContents",
|
|
1300
|
+
contents: o
|
|
1301
|
+
}), l;
|
|
1302
|
+
}, Ue = (t) => t.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g, (s, l, e) => {
|
|
1303
|
+
const n = Ue(e);
|
|
1304
|
+
return `"${l}",${n}`;
|
|
1305
|
+
}), ue = (t) => {
|
|
1306
|
+
const s = t.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g, '"$1",$2');
|
|
1307
|
+
return Ue(s).replace(/^"(.*)"$/, "$1");
|
|
1308
|
+
}, he = (t) => {
|
|
1309
|
+
let s;
|
|
1310
|
+
t.replaceAll(" ", `\r
|
|
1311
|
+
`).includes(`\r
|
|
1312
|
+
`) ? s = t.replaceAll(" ", `\r
|
|
1313
|
+
`).split(`\r
|
|
1314
|
+
`).filter((n) => n.trim() !== "") : s = t.replaceAll(" ", `\r
|
|
1315
|
+
`).split(`
|
|
1316
|
+
`).filter((n) => n.trim() !== "");
|
|
1317
|
+
const l = [];
|
|
1318
|
+
let e = "";
|
|
1319
|
+
for (const n of s)
|
|
1320
|
+
n.includes("{") || e.includes("{") || n.includes("[") || e.includes("[") || n.includes("【") || e.includes("【") || n.includes("(") || e.includes("(") || n.includes("(") || e.includes("(") || n.includes("/*") || e.includes("/*") ? (e += n.trim(), r(e).split("{").length - 1 === r(e).split("}").length - 1 && r(e).split("【").length - 1 === r(e).split("】").length - 1 && r(e).split("[").length - 1 === r(e).split("]").length - 1 && r(e).split("(").length - 1 === r(e).split(")").length - 1 && r(e).split("(").length - 1 === r(e).split(")").length - 1 && r(e).split("/*").length - 1 === r(e).split("*/").length - 1 && e[e.length - 1] !== "," && (l.push(e.replace(/\/\*[\s\S]*?\*\//g, "")), e = "")) : l.push(n.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
|
|
1321
|
+
return l;
|
|
1322
|
+
}, Zl = (t) => {
|
|
1323
|
+
const [s, l] = t.split(/=(.+)/), e = s.replace(/['"]/g, "").trim(), n = l.replace(/^['"]|['"]$/g, "");
|
|
1324
|
+
return { key: e, value: n };
|
|
1325
|
+
}, me = (t) => {
|
|
1326
|
+
let s;
|
|
1327
|
+
t.includes(":") ? s = t.split(":").filter((n) => n.trim() !== "") : s = t.split(":").filter((n) => n.trim() !== "");
|
|
1328
|
+
const l = [];
|
|
1329
|
+
let e = "";
|
|
1330
|
+
for (const n of s)
|
|
1331
|
+
n.includes("{") || e.includes("{") || n.includes("[") || e.includes("[") || n.includes("【") || e.includes("【") || n.includes("(") || e.includes("(") || n.includes("(") || e.includes("(") || n.includes("/*") || e.includes("/*") ? (e = e !== "" ? e + ":" + n.trim() : n.trim(), r(e).split("{").length - 1 === r(e).split("}").length - 1 && r(e).split("【").length - 1 === r(e).split("】").length - 1 && r(e).split("[").length - 1 === r(e).split("]").length - 1 && r(e).split("(").length - 1 === r(e).split(")").length - 1 && r(e).split("(").length - 1 === r(e).split(")").length - 1 && r(e).split("/*").length - 1 === r(e).split("*/").length - 1 && (l.push(e.replace(/\/\*[\s\S]*?\*\//g, "")), e = "")) : l.push(n.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
|
|
1332
|
+
return l;
|
|
1333
|
+
}, be = (t) => /^[\x00-\x7F]*$/.test(t), Ml = (t) => {
|
|
1334
|
+
var n;
|
|
1335
|
+
const s = t.map((a) => {
|
|
1336
|
+
var y, O;
|
|
1337
|
+
let o = (O = (y = a.key.split("(")) == null ? void 0 : y[1]) == null ? void 0 : O.trim();
|
|
1338
|
+
return o.slice(0, o.length - 1);
|
|
1339
|
+
}), l = s == null ? void 0 : s.map((a) => {
|
|
1340
|
+
var y;
|
|
1341
|
+
return (y = me(a)) == null ? void 0 : y.map((O) => {
|
|
1342
|
+
var b;
|
|
1343
|
+
if (O.includes("{")) {
|
|
1344
|
+
let C = (b = O.split(":")) == null ? void 0 : b[0];
|
|
1345
|
+
O = C.slice(1, C.length);
|
|
1346
|
+
}
|
|
1347
|
+
return O;
|
|
1348
|
+
});
|
|
1349
|
+
}), e = (n = l == null ? void 0 : l.filter((a) => a.length !== 0)) == null ? void 0 : n.map((a) => {
|
|
1350
|
+
let o = "";
|
|
1351
|
+
return a.forEach((y) => {
|
|
1352
|
+
!be(y) && !y.includes("{") && (o = o === "" ? o + r(y) : o + "/" + r(y));
|
|
1353
|
+
}), o;
|
|
1354
|
+
});
|
|
1355
|
+
return Ee([...new Set(e)]);
|
|
1356
|
+
}, Pe = (t) => {
|
|
1357
|
+
var l, e;
|
|
1358
|
+
const s = (e = (l = t.split("(")) == null ? void 0 : l[1]) == null ? void 0 : e.trim();
|
|
1359
|
+
return s.slice(0, s.length - 1);
|
|
1360
|
+
}, Hl = (t) => {
|
|
1361
|
+
var n;
|
|
1362
|
+
if (!t) return;
|
|
1363
|
+
const s = Pe(t), l = (n = me(s)) == null ? void 0 : n.map((a) => {
|
|
1364
|
+
var o;
|
|
1365
|
+
if (a.includes("{")) {
|
|
1366
|
+
let y = (o = a.split(":")) == null ? void 0 : o[0];
|
|
1367
|
+
a = y.slice(1, y.length);
|
|
1368
|
+
}
|
|
1369
|
+
return a;
|
|
1370
|
+
});
|
|
1371
|
+
let e = "";
|
|
1372
|
+
return l.forEach((a) => {
|
|
1373
|
+
be(a) || (e = e === "" ? e + r(a) : e + "/" + r(a));
|
|
1374
|
+
}), e;
|
|
1375
|
+
}, ql = (t) => {
|
|
1376
|
+
const s = t.match(/\[(.*)\]/s);
|
|
1377
|
+
if (s) {
|
|
1378
|
+
const l = `[${s[1]}]`;
|
|
1379
|
+
try {
|
|
1380
|
+
const e = l.replace(/([^\[\],\s]+)/g, '"$1"');
|
|
1381
|
+
return JSON.parse(e);
|
|
1382
|
+
} catch (e) {
|
|
1383
|
+
console.error("解析失败:", e);
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
}, Ql = (t) => {
|
|
1387
|
+
var a;
|
|
1388
|
+
if (!t) return;
|
|
1389
|
+
const s = Pe(t);
|
|
1390
|
+
let l = [], e = [], n = [];
|
|
1391
|
+
return (a = me(s)) == null || a.forEach((o) => {
|
|
1392
|
+
var y;
|
|
1393
|
+
o.includes("[") ? l.push(ql(o)) : o.includes("{") && (be((y = o.slice(1, o.length - 1).split(":")) == null ? void 0 : y[0]) ? n.push(JSON.parse(o.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3'))) : Y(o.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3')) ? e.push(JSON.parse(o.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3'))) : o.includes("$") || e.push(o.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3')));
|
|
1394
|
+
}), [l, e, n];
|
|
1395
|
+
}, Xl = (t) => {
|
|
1396
|
+
const s = [];
|
|
1397
|
+
let l = "";
|
|
1398
|
+
for (const e of t)
|
|
1399
|
+
e.includes("[") || l.includes("[") || e.includes("/*") || l.includes("/*") ? (l += e.trim(), r(l).split("{").length - 1 === r(l).split("}").length - 1 && r(l).split("【").length - 1 === r(l).split("】").length - 1 && r(l).split("[").length - 1 === r(l).split("]").length - 1 && r(l).split("(").length - 1 === r(l).split(")").length - 1 && r(l).split("(").length - 1 === r(l).split(")").length - 1 && r(l).split("/*").length - 1 === r(l).split("*/").length - 1 && (s.push(l.replace(/\/\*[\s\S]*?\*\//g, "")), l = "")) : s.push(e.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
|
|
1400
|
+
return s;
|
|
1401
|
+
}, Yl = (t) => {
|
|
1402
|
+
var n, a, o, y, O;
|
|
1403
|
+
let s = [], l = [], e = t.trim();
|
|
1404
|
+
if (!(e.trim().includes("输入") && e.trim().includes("输出"))) {
|
|
1405
|
+
const b = (n = e.trim().split(",$")) == null ? void 0 : n[0];
|
|
1406
|
+
b[0] === "[" ? e = b.slice(1, b.length - 1) : e.includes(",$") && (e = (a = e.trim().split(",$")) == null ? void 0 : a[0]);
|
|
1407
|
+
let C;
|
|
1408
|
+
e.includes("$") ? e = r(e) : C = (y = (o = r(e).split("}")) == null ? void 0 : o.filter((d) => d !== "")) == null ? void 0 : y.map((d) => {
|
|
1409
|
+
let $ = d;
|
|
1410
|
+
return $[0] === "," ? $ = $.slice(2, $.length) : $ = $.slice(1, $.length), $;
|
|
1411
|
+
}), (O = r(C)) == null || O.forEach((d) => {
|
|
1412
|
+
var $, x, k, S, u, c, p, g, i, f;
|
|
1413
|
+
if (!d.includes("=="))
|
|
1414
|
+
Y(($ = d == null ? void 0 : d.split(":")) == null ? void 0 : $[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"')) && s.push(JSON.parse((x = d == null ? void 0 : d.split(":")) == null ? void 0 : x[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"'))), Y((k = d == null ? void 0 : d.split(":")) == null ? void 0 : k[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"')) ? l.push(JSON.parse((S = d == null ? void 0 : d.split(":")) == null ? void 0 : S[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"'))) : Y((u = d == null ? void 0 : d.split(":")) == null ? void 0 : u[1].replace(/^"|"$/g, "'").replaceAll("'", '"').replace(/'([^']+)'/g, '"$1"')) && l.push(JSON.parse((c = d == null ? void 0 : d.split(":")) == null ? void 0 : c[1].replace(/^"|"$/g, "'").replaceAll("'", '"').replace(/'([^']+)'/g, '"$1"')));
|
|
1415
|
+
else {
|
|
1416
|
+
const h = (p = d == null ? void 0 : d.split(":")) == null ? void 0 : p[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"'), A = (g = d == null ? void 0 : d.split(":")) == null ? void 0 : g[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"');
|
|
1417
|
+
if (Y(A.trim()) ? l.push(JSON.parse(A.trim())) : l.push(JSON.parse(A.replaceAll("'", '"').trim())), h[0] !== "[") {
|
|
1418
|
+
let T = [];
|
|
1419
|
+
Y("[" + ue(h) + "]") ? T.push(JSON.parse("[" + ue(h) + "]")) : T.push("[" + ue(h) + "]"), s.push(T);
|
|
1420
|
+
} else {
|
|
1421
|
+
const T = (i = h.slice(1, h.length - 1).replaceAll(",", ",|")) == null ? void 0 : i.split("|"), D = (f = Xl(T)) == null ? void 0 : f.map((j) => ((j == null ? void 0 : j[j.length - 1]) === "," && (j = j.slice(0, j.length - 1)), j));
|
|
1422
|
+
let _ = [];
|
|
1423
|
+
D == null || D.forEach((j) => {
|
|
1424
|
+
var F, U, v, N;
|
|
1425
|
+
let E = [];
|
|
1426
|
+
E.push((F = j.split("==")) == null ? void 0 : F[0].trim().replace(/^"|"$/g, "")), ((U = j.split("==")) == null ? void 0 : U[1].trim()[0]) === "[" ? E.push(JSON.parse((v = j.split("==")) == null ? void 0 : v[1].trim())) : E.push([JSON.parse((N = j.split("==")) == null ? void 0 : N[1].trim())]), _.push(E);
|
|
1427
|
+
}), s.push(_);
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
});
|
|
1431
|
+
}
|
|
1432
|
+
return [s, l];
|
|
1433
|
+
}, wl = (t) => {
|
|
1434
|
+
const s = [], l = Hl(t == null ? void 0 : t.key), e = Ql(t == null ? void 0 : t.key), n = Yl(t == null ? void 0 : t.value), a = e == null ? void 0 : e[0], o = e == null ? void 0 : e[1], y = e == null ? void 0 : e[2], O = n == null ? void 0 : n[0], b = n == null ? void 0 : n[1];
|
|
1435
|
+
return l && s.push({
|
|
1436
|
+
key: "contentPath",
|
|
1437
|
+
value: l
|
|
1438
|
+
}), (a == null ? void 0 : a.length) > 0 && s.push({
|
|
1439
|
+
key: "tableIndex",
|
|
1440
|
+
value: a
|
|
1441
|
+
}), (o == null ? void 0 : o.length) > 0 && s.push({
|
|
1442
|
+
key: "form",
|
|
1443
|
+
value: o
|
|
1444
|
+
}), (y == null ? void 0 : y.length) > 0 && s.push({
|
|
1445
|
+
key: "extra",
|
|
1446
|
+
value: y
|
|
1447
|
+
}), (O == null ? void 0 : O.length) > 0 && s.push({
|
|
1448
|
+
key: "tableColumns",
|
|
1449
|
+
value: O
|
|
1450
|
+
}), (b == null ? void 0 : b.length) > 0 && s.push({
|
|
1451
|
+
key: "tableContents",
|
|
1452
|
+
value: b
|
|
1453
|
+
}), s;
|
|
1454
|
+
}, Kl = (t, s) => {
|
|
1455
|
+
const l = s.split("/"), e = [];
|
|
1456
|
+
return t == null || t.forEach((n) => {
|
|
1457
|
+
var y, O, b, C, d, $, x, k, S;
|
|
1458
|
+
const a = [], o = (O = (y = n.find((u) => u.key === "tableIndex")) == null ? void 0 : y.value) == null ? void 0 : O[0];
|
|
1459
|
+
if (o && !o.some((u) => Array.isArray(u))) {
|
|
1460
|
+
const u = (C = (b = n.find((c) => c.key === "tableColumns")) == null ? void 0 : b.value) == null ? void 0 : C[0];
|
|
1461
|
+
a.push({
|
|
1462
|
+
key: "tableIndexColumn",
|
|
1463
|
+
contents: l[l.length - 1]
|
|
1464
|
+
}), a.push({
|
|
1465
|
+
key: "tableIndex",
|
|
1466
|
+
contents: o == null ? void 0 : o.map((c) => ({ label: c }))
|
|
1467
|
+
}), a.push({
|
|
1468
|
+
key: "header",
|
|
1469
|
+
contents: Array.isArray(u) ? u == null ? void 0 : u.map((c) => ({ label: c })) : [u].map((c) => ({ label: c }))
|
|
1470
|
+
}), a.push({
|
|
1471
|
+
key: "tableContents",
|
|
1472
|
+
contents: Array.isArray(u) ? ($ = (d = n.find((c) => c.key === "tableContents")) == null ? void 0 : d.value) == null ? void 0 : $[0] : (S = (k = (x = n.find((c) => c.key === "tableContents")) == null ? void 0 : x.value) == null ? void 0 : k[0]) == null ? void 0 : S.map((c) => [c])
|
|
1473
|
+
}), e.push({
|
|
1474
|
+
comp: "Table",
|
|
1475
|
+
name: "",
|
|
1476
|
+
compData: a
|
|
1477
|
+
});
|
|
1478
|
+
} else o ? e.push({
|
|
1479
|
+
comp: "Table",
|
|
1480
|
+
name: "",
|
|
1481
|
+
compData: zl(n, l[l.length - 1])
|
|
1482
|
+
}) : e.push({
|
|
1483
|
+
comp: "calculator",
|
|
1484
|
+
name: "",
|
|
1485
|
+
compData: Wl(n)
|
|
1486
|
+
});
|
|
1487
|
+
}), e;
|
|
1488
|
+
}, Vl = (t, s) => {
|
|
1489
|
+
var n, a;
|
|
1490
|
+
const l = t.map((o) => o.filter((y) => y.key !== "contentPath"));
|
|
1491
|
+
return {
|
|
1492
|
+
comp: "Group",
|
|
1493
|
+
compData: [{
|
|
1494
|
+
contents: Kl(l, s),
|
|
1495
|
+
key: "groupContents"
|
|
1496
|
+
}],
|
|
1497
|
+
name: (a = (n = t[0]) == null ? void 0 : n.find((o) => o.key === "contentPath")) == null ? void 0 : a.value
|
|
1498
|
+
};
|
|
1499
|
+
}, Il = (t) => {
|
|
1500
|
+
var n;
|
|
1501
|
+
const s = [], l = r(t).map((a) => {
|
|
1502
|
+
var o;
|
|
1503
|
+
if (a != null && a.find((y) => (y == null ? void 0 : y.key) === "contentPath"))
|
|
1504
|
+
return (o = a == null ? void 0 : a.find((y) => (y == null ? void 0 : y.key) === "contentPath")) == null ? void 0 : o.value;
|
|
1505
|
+
}).filter((a) => a !== ""), e = [...new Set(l)];
|
|
1506
|
+
return (n = e == null ? void 0 : e.filter((a) => a)) == null || n.forEach((a) => {
|
|
1507
|
+
var o;
|
|
1508
|
+
s.push(Vl((o = r(t)) == null ? void 0 : o.filter((y) => y.find((O) => O.key === "contentPath" && O.value === a)), a));
|
|
1509
|
+
}), s;
|
|
1510
|
+
}, et = (t) => {
|
|
1511
|
+
let s = [];
|
|
1512
|
+
s.push({
|
|
1513
|
+
comp: "Menu",
|
|
1514
|
+
compData: [{
|
|
1515
|
+
contents: Ml(r(t)),
|
|
1516
|
+
key: "menuContents"
|
|
1517
|
+
}],
|
|
1518
|
+
name: ""
|
|
1519
|
+
});
|
|
1520
|
+
const l = t.map((e) => wl(e));
|
|
1521
|
+
return s = [...s, ...Il(l)], s;
|
|
1522
|
+
}, gt = (t) => {
|
|
1523
|
+
var n, a, o, y, O;
|
|
1524
|
+
const s = (o = he((a = (n = r(t)) == null ? void 0 : n.replace("(", "(")) == null ? void 0 : a.replace(")", ")"))) == null ? void 0 : o.filter((b) => b !== ""), l = (O = (y = r(s)) == null ? void 0 : y.filter((b) => !b.includes("/*"))) == null ? void 0 : O.map((b) => Zl(b));
|
|
1525
|
+
return et(l);
|
|
1526
|
+
}, se = R(0), ie = R(0), lt = (t) => {
|
|
1527
|
+
const s = t.trim().replace(/^'|'$/g, ""), l = /((?:\$?[a-zA-Z_][a-zA-Z0-9_]*\$?\([^)]*\))|[a-zA-Z_][a-zA-Z0-9_]*)\s*=\s*(.*?)(?=\s*(?:(?:\$?[a-zA-Z_][a-zA-Z0-9_]*\$?\([^)]*\))|[a-zA-Z_][a-zA-Z0-9_]*)\s*=|$)/g, e = {};
|
|
1528
|
+
let n;
|
|
1529
|
+
for (; (n = l.exec(s)) !== null; ) {
|
|
1530
|
+
const a = n[1];
|
|
1531
|
+
let o = n[2].trim();
|
|
1532
|
+
(o.match(/\[/g) || []).length !== (o.match(/\]/g) || []).length && (o = o == null ? void 0 : o.replace(/]$/, "")), e[a] ? (e[a + ie.value] && ie.value++, e[a + ie.value] = a + "=" + o) : e[a] = a + "=" + o;
|
|
1533
|
+
}
|
|
1534
|
+
return e;
|
|
1535
|
+
}, Be = (t) => {
|
|
1536
|
+
const [s, l] = t.split("=").map((a) => a.trim()), e = s.replace(/['"]/g, ""), n = l.replace(/^['"]|['"]$/g, "");
|
|
1537
|
+
return { key: e, value: n };
|
|
1538
|
+
}, tt = (t) => {
|
|
1539
|
+
var o;
|
|
1540
|
+
let s = [];
|
|
1541
|
+
const [l, e] = t.split(/=(.+)/), n = l.replace(/['"]/g, "").trim(), a = e.replace(/^['"]|['"]$/g, "");
|
|
1542
|
+
return (o = Object.values(lt(a))) == null || o.forEach((y) => {
|
|
1543
|
+
s.push(Be(y));
|
|
1544
|
+
}), { key: n, value: s };
|
|
1545
|
+
}, re = (t) => {
|
|
1546
|
+
try {
|
|
1547
|
+
return JSON.parse(t), !0;
|
|
1548
|
+
} catch {
|
|
1549
|
+
return !1;
|
|
1550
|
+
}
|
|
1551
|
+
}, Je = (t) => {
|
|
1552
|
+
try {
|
|
1553
|
+
const s = t.replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",").replace(/:/g, ":").replace(/:\s*(?=,|}|$)/g, ': ""');
|
|
1554
|
+
if (r(s).split("{").length - 1 > 1) {
|
|
1555
|
+
let l = r(s).replace(/^\{(.*)\}$/, "[$1]");
|
|
1556
|
+
if (re(l) && !l.includes("$") || (l = l.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g, '"$1$$$2"')), re(l)) {
|
|
1557
|
+
const e = JSON.parse(l);
|
|
1558
|
+
let n = [];
|
|
1559
|
+
return e == null || e.forEach((a) => {
|
|
1560
|
+
var o;
|
|
1561
|
+
(o = Object.entries(r(a))) == null || o.forEach((y) => {
|
|
1562
|
+
se.value++, n.push({
|
|
1563
|
+
id: se.value,
|
|
1564
|
+
key: (y == null ? void 0 : y[0]) ?? "",
|
|
1565
|
+
value: (y == null ? void 0 : y[1]) === "" ? "" : y == null ? void 0 : y[1],
|
|
1566
|
+
// 如果值为空,则key设为空字符串,否则保留原值
|
|
1567
|
+
width: Object.keys(r(a)).length
|
|
1568
|
+
});
|
|
1569
|
+
});
|
|
1570
|
+
}), n;
|
|
1571
|
+
} else
|
|
1572
|
+
return console.error("转换类型不正确:"), [];
|
|
1573
|
+
} else if (re(s)) {
|
|
1574
|
+
const l = JSON.parse(s);
|
|
1575
|
+
return Object.entries(l).map(([e, n]) => (se.value++, {
|
|
1576
|
+
id: se.value,
|
|
1577
|
+
key: e,
|
|
1578
|
+
value: n === "" ? "" : n,
|
|
1579
|
+
// 如果值为空,则key设为空字符串,否则保留原值
|
|
1580
|
+
width: 1
|
|
1581
|
+
}));
|
|
1582
|
+
} else
|
|
1583
|
+
return s;
|
|
1584
|
+
} catch (s) {
|
|
1585
|
+
return console.error("转换失败:", s), [];
|
|
1586
|
+
}
|
|
1587
|
+
}, nt = (t, s) => {
|
|
1588
|
+
try {
|
|
1589
|
+
if (J != null && J.find((l) => (l == null ? void 0 : l.key) === s))
|
|
1590
|
+
return JSON.parse(t.replace(/[’]|[‘]|[']/g, '"'));
|
|
1591
|
+
if (r(t).split("[").length - 1 > 1) {
|
|
1592
|
+
const l = r(t).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
|
|
1593
|
+
return JSON.parse(l);
|
|
1594
|
+
} else {
|
|
1595
|
+
const l = r(t).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",");
|
|
1596
|
+
if (re(l)) {
|
|
1597
|
+
const e = JSON.parse(l);
|
|
1598
|
+
return Array.isArray(e) ? e.map((n) => ({ label: n })) : e;
|
|
1599
|
+
} else
|
|
1600
|
+
return Je(r(t));
|
|
1601
|
+
}
|
|
1602
|
+
} catch (l) {
|
|
1603
|
+
return console.error("解析失败:", l), t;
|
|
1604
|
+
}
|
|
1605
|
+
}, st = (t) => ({ [t == null ? void 0 : t.key]: nt(t == null ? void 0 : t.value, t == null ? void 0 : t.key) }), at = (t) => {
|
|
1606
|
+
try {
|
|
1607
|
+
if (r(t).split("[").length - 1 > 1) {
|
|
1608
|
+
const s = r(t).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
|
|
1609
|
+
return JSON.parse(s);
|
|
1610
|
+
} else
|
|
1611
|
+
return JSON.parse(r(t).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",")).map((l) => ({ label: l }));
|
|
1612
|
+
} catch (s) {
|
|
1613
|
+
return console.error("解析失败:", s), t;
|
|
1614
|
+
}
|
|
1615
|
+
}, ve = (t) => {
|
|
1616
|
+
var s, l, e, n, a, o;
|
|
1617
|
+
try {
|
|
1618
|
+
const y = he((l = (s = r(t)) == null ? void 0 : s.replace("(", "(")) == null ? void 0 : l.replace(")", ")")), O = (e = r(y)) == null ? void 0 : e.map((d) => {
|
|
1619
|
+
var x, k;
|
|
1620
|
+
let $ = (k = (x = r(d)) == null ? void 0 : x.split("=")) == null ? void 0 : k[0];
|
|
1621
|
+
return $ != null && $.includes("GroupContents") ? tt(d) : Be(d);
|
|
1622
|
+
}), b = [];
|
|
1623
|
+
(n = r(O)) == null || n.forEach((d) => {
|
|
1624
|
+
var $, x, k, S, u;
|
|
1625
|
+
J != null && J.find((c) => {
|
|
1626
|
+
var p, g;
|
|
1627
|
+
return ((p = c == null ? void 0 : c.key) == null ? void 0 : p.toUpperCase()) === ((g = d == null ? void 0 : d.key) == null ? void 0 : g.toUpperCase());
|
|
1628
|
+
}) ? b.push({
|
|
1629
|
+
comp: (($ = J == null ? void 0 : J.find((c) => {
|
|
1630
|
+
var p, g;
|
|
1631
|
+
return ((p = c == null ? void 0 : c.key) == null ? void 0 : p.toUpperCase()) === ((g = d == null ? void 0 : d.key) == null ? void 0 : g.toUpperCase());
|
|
1632
|
+
})) == null ? void 0 : $.value) ?? "",
|
|
1633
|
+
name: (x = d == null ? void 0 : d.value) == null ? void 0 : x.replace(/[’]|[‘]|[']/g, ""),
|
|
1634
|
+
compData: []
|
|
1635
|
+
}) : B != null && B.find((c) => {
|
|
1636
|
+
var p, g;
|
|
1637
|
+
return ((p = c == null ? void 0 : c.key) == null ? void 0 : p.toUpperCase()) === ((g = d == null ? void 0 : d.key) == null ? void 0 : g.toUpperCase());
|
|
1638
|
+
}) && ((b == null ? void 0 : b.length) === 0 && (k = d.key) != null && k.includes("Menus") && b.push({
|
|
1639
|
+
comp: "Menu",
|
|
1640
|
+
name: "",
|
|
1641
|
+
compData: []
|
|
1642
|
+
}), (S = b == null ? void 0 : b[(b == null ? void 0 : b.length) - 1]) != null && S.compData && b[(b == null ? void 0 : b.length) - 1].compData.push({
|
|
1643
|
+
key: (u = B == null ? void 0 : B.find((c) => {
|
|
1644
|
+
var p, g;
|
|
1645
|
+
return ((p = c == null ? void 0 : c.key) == null ? void 0 : p.toUpperCase()) === ((g = d == null ? void 0 : d.key) == null ? void 0 : g.toUpperCase());
|
|
1646
|
+
})) == null ? void 0 : u.value,
|
|
1647
|
+
contents: d == null ? void 0 : d.value
|
|
1648
|
+
}));
|
|
1649
|
+
}), console.log("newContents", b);
|
|
1650
|
+
let C = (a = r(b)) == null ? void 0 : a.map((d) => {
|
|
1651
|
+
var $;
|
|
1652
|
+
return d != null && d.compData && (d.compData = ($ = d == null ? void 0 : d.compData) == null ? void 0 : $.map((x) => {
|
|
1653
|
+
var k, S, u, c, p, g, i, f, h, A, T;
|
|
1654
|
+
if ((x == null ? void 0 : x.key) === "formFlex")
|
|
1655
|
+
x.contents = ((S = (k = x.contents) == null ? void 0 : k.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : S.toUpperCase()) !== "Vertical".toUpperCase();
|
|
1656
|
+
else if ((x == null ? void 0 : x.key) === "groupContents")
|
|
1657
|
+
x.contents = (u = r(x.contents)) == null ? void 0 : u.map((D) => st(r(D)));
|
|
1658
|
+
else if (((p = (c = x.contents) == null ? void 0 : c.trim()) != null && p.startsWith("[") || (i = (g = x.contents) == null ? void 0 : g.trim()) != null && i.startsWith("【")) && ((h = (f = x.contents) == null ? void 0 : f.trim()) != null && h.endsWith("]") || (T = (A = x.contents) == null ? void 0 : A.trim()) != null && T.endsWith("】")))
|
|
1659
|
+
x.contents = at(r(x.contents));
|
|
1660
|
+
else {
|
|
1661
|
+
if (!x.contents) return;
|
|
1662
|
+
x.contents = Je(r(x.contents));
|
|
1663
|
+
}
|
|
1664
|
+
return x;
|
|
1665
|
+
})), d;
|
|
1666
|
+
});
|
|
1667
|
+
return C = (o = r(C)) == null ? void 0 : o.map((d) => {
|
|
1668
|
+
var $;
|
|
1669
|
+
return (d == null ? void 0 : d.comp) === "Group" && (d.compData = ($ = d.compData) == null ? void 0 : $.map((x) => {
|
|
1670
|
+
var S;
|
|
1671
|
+
let k = [];
|
|
1672
|
+
return (S = x.contents) == null || S.forEach((u) => {
|
|
1673
|
+
var c, p, g, i, f, h, A, T, D, _, j, E;
|
|
1674
|
+
if (J != null && J.find((F) => {
|
|
1675
|
+
var U, v, N;
|
|
1676
|
+
return ((U = F == null ? void 0 : F.key) == null ? void 0 : U.toUpperCase()) === ((N = (v = Object.keys(u)) == null ? void 0 : v[0]) == null ? void 0 : N.toUpperCase());
|
|
1677
|
+
}))
|
|
1678
|
+
k.push({
|
|
1679
|
+
comp: (c = J == null ? void 0 : J.find((F) => {
|
|
1680
|
+
var U, v, N;
|
|
1681
|
+
return ((U = F == null ? void 0 : F.key) == null ? void 0 : U.toUpperCase()) === ((N = (v = Object.keys(u)) == null ? void 0 : v[0]) == null ? void 0 : N.toUpperCase());
|
|
1682
|
+
})) == null ? void 0 : c.value,
|
|
1683
|
+
name: (g = (p = Object.values(u)) == null ? void 0 : p[0]) == null ? void 0 : g.replace(/[’]|[‘]|[']/g, ""),
|
|
1684
|
+
compData: []
|
|
1685
|
+
});
|
|
1686
|
+
else if (B != null && B.find((F) => {
|
|
1687
|
+
var U, v, N;
|
|
1688
|
+
return ((U = F == null ? void 0 : F.key) == null ? void 0 : U.toUpperCase()) === ((N = (v = Object.keys(u)) == null ? void 0 : v[0]) == null ? void 0 : N.toUpperCase());
|
|
1689
|
+
})) {
|
|
1690
|
+
if ((k == null ? void 0 : k.length) === 0) return;
|
|
1691
|
+
(i = k == null ? void 0 : k[(k == null ? void 0 : k.length) - 1]) != null && i.compData && k[(k == null ? void 0 : k.length) - 1].compData.push({
|
|
1692
|
+
key: (f = B == null ? void 0 : B.find((F) => {
|
|
1693
|
+
var U, v, N;
|
|
1694
|
+
return ((U = F == null ? void 0 : F.key) == null ? void 0 : U.toUpperCase()) === ((N = (v = Object.keys(u)) == null ? void 0 : v[0]) == null ? void 0 : N.toUpperCase());
|
|
1695
|
+
})) == null ? void 0 : f.value,
|
|
1696
|
+
contents: (h = Object.values(u)) == null ? void 0 : h[0]
|
|
1697
|
+
});
|
|
1698
|
+
} else if ((T = (A = Object.keys(u)) == null ? void 0 : A[0]) != null && T.includes("$")) {
|
|
1699
|
+
const F = (_ = (D = Object.keys(r(u))) == null ? void 0 : D[0]) == null ? void 0 : _.split("$");
|
|
1700
|
+
k[(k == null ? void 0 : k.length) - 1].compData.push({
|
|
1701
|
+
key: (j = B == null ? void 0 : B.find((U) => {
|
|
1702
|
+
var v, N;
|
|
1703
|
+
return ((v = U == null ? void 0 : U.key) == null ? void 0 : v.toUpperCase()) === ((N = F == null ? void 0 : F[0]) == null ? void 0 : N.toUpperCase());
|
|
1704
|
+
})) == null ? void 0 : j.value,
|
|
1705
|
+
contents: (E = Object.values(u)) == null ? void 0 : E[0],
|
|
1706
|
+
selectLabel: F == null ? void 0 : F[1]
|
|
1707
|
+
});
|
|
1708
|
+
}
|
|
1709
|
+
return u;
|
|
1710
|
+
}), x.contents = k, x;
|
|
1711
|
+
})), d;
|
|
1712
|
+
}), C;
|
|
1713
|
+
} catch {
|
|
1714
|
+
return !1;
|
|
1715
|
+
}
|
|
1716
|
+
}, Ct = (t) => ve(t), $t = (t) => !!ve(t), rt = Qe(de), { itemData: At } = _e(rt), ot = qe(de), { systemKey: Ot, activeMenuPath: _t } = _e(ot), I = R(0), xt = (t) => t.reduce((l, e) => {
|
|
1717
|
+
var a, o;
|
|
1718
|
+
const n = Object.values(l);
|
|
1719
|
+
return (((a = Object.keys(l)) == null ? void 0 : a.length) === 0 || n[n.length - 1].length >= (e == null ? void 0 : e.width)) && (l[I.value] = [], I.value++), l[I.value - 1].push(e), ((o = Object.keys(l)) == null ? void 0 : o.length) === (e == null ? void 0 : e.width) && (l[I.value] = [], I.value++), l;
|
|
1720
|
+
}, {});
|
|
1721
|
+
export {
|
|
1722
|
+
xt as a,
|
|
1723
|
+
kt as b,
|
|
1724
|
+
gt as c,
|
|
1725
|
+
Ct as e,
|
|
1726
|
+
_l as g,
|
|
1727
|
+
$t as i,
|
|
1728
|
+
bt as s
|
|
1729
|
+
};
|