ss-component-new 1.1.127 → 1.1.130
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-DTtrrzQd.js → array-B4DGq65v.js} +209 -209
- package/dist/{array-CurR3v66.cjs → array-DDHmcL8S.cjs} +1 -1
- package/dist/{cloneDeep-Clr48pMI.cjs → cloneDeep-C82qXIWn.cjs} +1 -1
- package/dist/{cloneDeep-BykArIBz.js → cloneDeep-DMKEzwyr.js} +1 -1
- package/dist/{index-DGzhnqIQ.cjs → index-0Bbk1Ay9.cjs} +1 -1
- package/dist/{index-gXMWIFTw.cjs → index-4jP6cc1c.cjs} +1 -1
- package/dist/{index-DikZCBkj.cjs → index-AObYqnmb.cjs} +1 -1
- package/dist/{index-V2u0crqV.js → index-B8FfR8Z2.js} +6 -6
- package/dist/{index-BLCQM_T-.js → index-BEKnrHJW.js} +4 -4
- package/dist/{index-CxwTH7bD.cjs → index-BL0DKJul.cjs} +1 -1
- package/dist/{index-B79l1LTb.js → index-BTCrWMro.js} +5 -5
- package/dist/{index-Dorbe1Hh.cjs → index-BY-bs7k4.cjs} +1 -1
- package/dist/{index-BCYttTl8.js → index-BcZIkNE5.js} +1 -1
- package/dist/{index-DlvqWPU0.js → index-BczKzzfZ.js} +1 -1
- package/dist/{index-BkB-RraM.cjs → index-C6bg0LwO.cjs} +1 -1
- package/dist/{index-LamQBVAR.js → index-CCJfX_f_.js} +10 -10
- package/dist/{index-CvWEwAiE.js → index-CKkuGGCT.js} +7 -7
- package/dist/{index-Do2Dcgm2.js → index-CMLNq3NH.js} +4 -4
- package/dist/{index-D2o1lE_X.js → index-CMbV6ORa.js} +1 -1
- package/dist/{index-BIItraak.js → index-CPlabQMg.js} +4 -4
- package/dist/{index-Eospwh02.js → index-CUET-Yll.js} +6 -6
- package/dist/{index-Ds0E8_Xi.cjs → index-CloCAGs1.cjs} +1 -1
- package/dist/{index-CU2xxV40.js → index-CuxuHFI8.js} +6 -6
- package/dist/{index-CIqRNPFn.cjs → index-D53nFT93.cjs} +1 -1
- package/dist/{index-BT4uc7NX.cjs → index-D80-gS4q.cjs} +1 -1
- package/dist/{index-0PxMF89Q.cjs → index-DDkieM-F.cjs} +1 -1
- package/dist/{index-DZLf-oSB.cjs → index-DHg3iFd8.cjs} +1 -1
- package/dist/{index-Dom1Dx9P.cjs → index-DMusjZZf.cjs} +1 -1
- package/dist/{index-CYIPUtR0.js → index-DgYmGICp.js} +6 -6
- package/dist/{index-B3rltuG0.cjs → index-DiQ4q1BD.cjs} +1 -1
- package/dist/{index-1nN3IgiR.cjs → index-DpcPXeWN.cjs} +1 -1
- package/dist/{index-C9_vhil0.js → index-E4X9tQ-Q.js} +1 -1
- package/dist/{index-DnuiTCnN.js → index-IfWbjRSD.js} +6 -6
- package/dist/{index-C3Raef-F.js → index-KNMDTAtj.js} +1 -1
- package/dist/{index-D6BMKBHx.cjs → index-KVr4cYt2.cjs} +1 -1
- package/dist/{index-CRlHDrcB.js → index-NA3YGQZ0.js} +6 -6
- package/dist/{index-DoZuG3KT.cjs → index-RZ7jxfFv.cjs} +1 -1
- package/dist/{index-CrvU8ouC.js → index-mC2Ln1Te.js} +7 -7
- package/dist/{index-DRH3RpIZ.cjs → index-qejFMxWc.cjs} +1 -1
- package/dist/{index-Beg3eOLp.cjs → index-teA8C86s.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_baf99455_lang-GNUF-mH_.cjs → index.vue_vue_type_style_index_0_scoped_baf99455_lang-B2z7YlNq.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_baf99455_lang-DQmFHtDL.js → index.vue_vue_type_style_index_0_scoped_baf99455_lang-DET0h2mg.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-BDGqX6-2.cjs → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-As-UotA9.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DKHDhNd1.js → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-BYNSBnsv.js} +6 -6
- package/dist/{login-4oM7j3Xl.js → login-BFf2aL4J.js} +2 -2
- package/dist/{login-DOedrOey.cjs → login-cYWvHMOS.cjs} +1 -1
- package/dist/{main-CEtwTMCO.cjs → main-B2X4rasg.cjs} +1 -1
- package/dist/{main-CAWj3Mhn.js → main-GFmRcu29.js} +6 -6
- package/dist/{menu-DoEnaZv_.cjs → menu-CdaKonj8.cjs} +1 -1
- package/dist/{menu-DEAmWa8h.js → menu-D6D61V-w.js} +1 -1
- package/dist/{modelComp-DWHu4UPC.js → modelComp-BTnY8qyI.js} +1 -1
- package/dist/{modelComp-pUpWG-9S.cjs → modelComp-tF0PKce3.cjs} +1 -1
- package/dist/ss-component.cjs +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
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { u as pl, s as il } from "./index-
|
|
1
|
+
import { u as pl, s as il } from "./index-CuxuHFI8.js";
|
|
2
2
|
import { ref as U, watch as Y, createElementBlock as q, openBlock as H, createVNode as G, resolveComponent as Ie, createElementVNode as w, toDisplayString as M, withCtx as K, createTextVNode as ae, Fragment as me, renderList as ve, createBlock as Ee, resolveDynamicComponent as De } from "vue";
|
|
3
|
-
import { p as $e } from "./index-
|
|
4
|
-
import { s as Oe, f as fl, a as re, b as dl } from "./index-
|
|
3
|
+
import { p as $e } from "./index-BczKzzfZ.js";
|
|
4
|
+
import { s as Oe, f as fl, a as re, b as dl } from "./index-CMLNq3NH.js";
|
|
5
5
|
import { _ as he } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import { U as Ne, g as Se, a as Pe, i as je, S as be, b as yl, c } from "./cloneDeep-
|
|
6
|
+
import { U as Ne, g as Se, a as Pe, i as je, S as be, b as yl, c as u } from "./cloneDeep-DMKEzwyr.js";
|
|
7
7
|
import { _ as hl } from "./index.vue_vue_type_script_setup_true_lang-DQ2k4Z7D.js";
|
|
8
|
-
import { M as ml, S as Be, e as bl, i as Fe, a as Ue } from "./index-
|
|
9
|
-
import { s as qe, u as gl } from "./menu-
|
|
10
|
-
import "./index-
|
|
11
|
-
import { u as kl } from "./modelComp-
|
|
8
|
+
import { M as ml, S as Be, e as bl, i as Fe, a as Ue } from "./index-BTCrWMro.js";
|
|
9
|
+
import { s as qe, u as gl } from "./menu-D6D61V-w.js";
|
|
10
|
+
import "./index-CMbV6ORa.js";
|
|
11
|
+
import { u as kl } from "./modelComp-BTnY8qyI.js";
|
|
12
12
|
var Cl = "__lodash_hash_undefined__";
|
|
13
13
|
function Al(e) {
|
|
14
14
|
return this.__data__.set(e, Cl), this;
|
|
@@ -141,16 +141,16 @@ function Il(e, t, n, l, s, a) {
|
|
|
141
141
|
o || (o = _ == "constructor");
|
|
142
142
|
}
|
|
143
143
|
if (P && !o) {
|
|
144
|
-
var p = e.constructor,
|
|
145
|
-
p !=
|
|
144
|
+
var p = e.constructor, c = t.constructor;
|
|
145
|
+
p != c && "constructor" in e && "constructor" in t && !(typeof p == "function" && p instanceof p && typeof c == "function" && c instanceof c) && (P = !1);
|
|
146
146
|
}
|
|
147
147
|
return a.delete(e), a.delete(t), P;
|
|
148
148
|
}
|
|
149
|
-
var ql = 1, Re = "[object Arguments]", Le = "[object Array]",
|
|
149
|
+
var ql = 1, Re = "[object Arguments]", Le = "[object Array]", ce = "[object Object]", zl = Object.prototype, we = zl.hasOwnProperty;
|
|
150
150
|
function Ql(e, t, n, l, s, a) {
|
|
151
151
|
var i = Fe(e), h = Fe(t), k = i ? Le : Pe(e), g = h ? Le : Pe(t);
|
|
152
|
-
k = k == Re ?
|
|
153
|
-
var C = k ==
|
|
152
|
+
k = k == Re ? ce : k, g = g == Re ? ce : g;
|
|
153
|
+
var C = k == ce, $ = g == ce, _ = k == g;
|
|
154
154
|
if (_ && je(e)) {
|
|
155
155
|
if (!je(t))
|
|
156
156
|
return !1;
|
|
@@ -173,7 +173,7 @@ function Qe(e, t, n, l, s) {
|
|
|
173
173
|
function Xl(e, t) {
|
|
174
174
|
return Qe(e, t);
|
|
175
175
|
}
|
|
176
|
-
const
|
|
176
|
+
const ue = [
|
|
177
177
|
{
|
|
178
178
|
key: "单选",
|
|
179
179
|
value: "Select"
|
|
@@ -207,10 +207,10 @@ const ce = [
|
|
|
207
207
|
setup(e, { emit: t }) {
|
|
208
208
|
const n = e, l = t, s = U([]), a = U(!1), i = U([]), h = pl($e), k = U(), g = ($) => {
|
|
209
209
|
var o, r, f, b;
|
|
210
|
-
const _ = (r = (o =
|
|
210
|
+
const _ = (r = (o = u(n.itemData)) == null ? void 0 : o.find((p) => (p == null ? void 0 : p.key) === "formContent")) == null ? void 0 : r.contents, x = u($.content);
|
|
211
211
|
let d = {};
|
|
212
|
-
x && ((f = Object.values(x)) == null ? void 0 : f.length) > 0 && ((b = Object.values(x)) == null || b.forEach((p,
|
|
213
|
-
d[_[
|
|
212
|
+
x && ((f = Object.values(x)) == null ? void 0 : f.length) > 0 && ((b = Object.values(x)) == null || b.forEach((p, c) => {
|
|
213
|
+
d[_[c].key] = p;
|
|
214
214
|
}));
|
|
215
215
|
const P = {
|
|
216
216
|
content: d,
|
|
@@ -221,18 +221,18 @@ const ce = [
|
|
|
221
221
|
}, C = ($) => {
|
|
222
222
|
var d, P;
|
|
223
223
|
if (!$) return;
|
|
224
|
-
if (((d = Object.values(
|
|
225
|
-
const o = (P = Object.values(
|
|
224
|
+
if (((d = Object.values(u($))) == null ? void 0 : d.length) > 0) {
|
|
225
|
+
const o = (P = Object.values(u($))) == null ? void 0 : P.map((f) => f);
|
|
226
226
|
let r = "";
|
|
227
227
|
o == null || o.forEach((f) => {
|
|
228
228
|
f !== "" && f !== void 0 && (r = r === "" ? f : r + "/" + f);
|
|
229
229
|
}), h.setSelectArray(o), h.setSelectString(r);
|
|
230
230
|
}
|
|
231
|
-
const _ =
|
|
231
|
+
const _ = u(n.itemData), x = _ == null ? void 0 : _.map((o) => {
|
|
232
232
|
var r;
|
|
233
233
|
return (o == null ? void 0 : o.key) === "formContent" && ((r = o.contents) == null || r.map((f, b) => {
|
|
234
|
-
var p,
|
|
235
|
-
return f.type = f != null && f.type ? f.type : (O = (y = (
|
|
234
|
+
var p, c, y, O, E, N, A, D, v, T, j, B, S, m, F, L, Z, W, X;
|
|
235
|
+
return f.type = f != null && f.type ? f.type : (O = (y = (c = (p = f == null ? void 0 : f.key) == null ? void 0 : p.split("$")) == null ? void 0 : c[1]) == null ? void 0 : y.split("(")) != null && O[0] ? (E = ue == null ? void 0 : ue.find((z) => {
|
|
236
236
|
var te, V, I, oe;
|
|
237
237
|
return (z == null ? void 0 : z.key) === ((oe = (I = (V = (te = f == null ? void 0 : f.key) == null ? void 0 : te.split("$")) == null ? void 0 : V[1]) == null ? void 0 : I.split("(")) == null ? void 0 : oe[0]);
|
|
238
238
|
})) == null ? void 0 : E.value : "Input", f.options = f != null && f.options ? f.options : ((D = (A = (N = f == null ? void 0 : f.key) == null ? void 0 : N.split("$")) == null ? void 0 : A[1]) == null ? void 0 : D.length) > 0 ? (B = (j = fl((T = (v = f == null ? void 0 : f.key) == null ? void 0 : v.split("$")) == null ? void 0 : T[1])) == null ? void 0 : j.split(",")) == null ? void 0 : B.map((z) => ({
|
|
@@ -249,17 +249,17 @@ const ce = [
|
|
|
249
249
|
return Y(
|
|
250
250
|
() => n.itemData,
|
|
251
251
|
() => {
|
|
252
|
-
var P, o, r, f, b, p,
|
|
253
|
-
const $ = (P =
|
|
252
|
+
var P, o, r, f, b, p, c, y, O, E;
|
|
253
|
+
const $ = (P = u(n.itemData)) == null ? void 0 : P.find((N) => (N == null ? void 0 : N.key) === "formContent"), _ = (o = u(n.itemData)) == null ? void 0 : o.find((N) => (N == null ? void 0 : N.key) === "formButton"), x = (r = u(n.itemData)) == null ? void 0 : r.find((N) => (N == null ? void 0 : N.key) === "formFlex"), d = (f = u(n.itemData)) == null ? void 0 : f.find((N) => (N == null ? void 0 : N.key) === "formWrap");
|
|
254
254
|
if ((d == null ? void 0 : d.contents) === "纵向" ? a.value = !1 : a.value = !0, k.value = typeof (x == null ? void 0 : x.contents) != "boolean" ? !(!(x != null && x.contents) === "" || ((b = x == null ? void 0 : x.contents) == null ? void 0 : b.toUpperCase()) === "VERTICAL") : x == null ? void 0 : x.contents, ((p = $ == null ? void 0 : $.contents) == null ? void 0 : p.length) > 0 && Array.isArray($ == null ? void 0 : $.contents)) {
|
|
255
255
|
const N = [];
|
|
256
|
-
(
|
|
256
|
+
(c = $ == null ? void 0 : $.contents) == null || c.forEach((v, T) => {
|
|
257
257
|
var j, B, S, m, F, L, Z, W, X, z;
|
|
258
258
|
if ((v == null ? void 0 : v.label) !== "") {
|
|
259
259
|
let te = (v == null ? void 0 : v.key) ?? "", V = (v == null ? void 0 : v.type) ?? "", I = (v == null ? void 0 : v.options) ?? [];
|
|
260
|
-
if ((j = v == null ? void 0 : v.key) != null && j.includes("$") && (te = (B =
|
|
261
|
-
const [oe, ee] = (L = (F =
|
|
262
|
-
V = ((Z =
|
|
260
|
+
if ((j = v == null ? void 0 : v.key) != null && j.includes("$") && (te = (B = u(v == null ? void 0 : v.key).split("$")) == null ? void 0 : B[0], ((m = (S = u(v == null ? void 0 : v.key).split("$")) == null ? void 0 : S[1]) == null ? void 0 : m.length) > 0)) {
|
|
261
|
+
const [oe, ee] = (L = (F = u(v == null ? void 0 : v.key).split("$")) == null ? void 0 : F[1]) == null ? void 0 : L.split(/[()]/);
|
|
262
|
+
V = ((Z = ue.find((le) => (le == null ? void 0 : le.key) === oe)) == null ? void 0 : Z.value) ?? "", ((W = ee == null ? void 0 : ee.split(",")) == null ? void 0 : W.length) > 0 && (I = (X = ee == null ? void 0 : ee.split(",")) == null ? void 0 : X.map((le) => ({
|
|
263
263
|
label: le,
|
|
264
264
|
value: le
|
|
265
265
|
})));
|
|
@@ -275,7 +275,7 @@ const ce = [
|
|
|
275
275
|
});
|
|
276
276
|
}
|
|
277
277
|
});
|
|
278
|
-
const A = (y =
|
|
278
|
+
const A = (y = u(N)) == null ? void 0 : y.map((v) => v.value);
|
|
279
279
|
let D = "";
|
|
280
280
|
A == null || A.forEach((v) => {
|
|
281
281
|
v !== "" && v !== void 0 && (D = D === "" ? v : D + "/" + v);
|
|
@@ -308,7 +308,7 @@ const ce = [
|
|
|
308
308
|
}, null, 8, ["rowContents", "buttonValue", "isRowFlex", "isButtonRow"])
|
|
309
309
|
]));
|
|
310
310
|
}
|
|
311
|
-
}, Vl = /* @__PURE__ */ he(Kl, [["__scopeId", "data-v-1b0ef247"]]), en = { class: "table-operate-content" }, ln = { class: "table-operate-item" }, nn = { class: "operate-title" }, tn = { class: "operate-content" }, sn = { class: "operate-title" }, an = { class: "operate-content" }, rn = { class: "operate-title" }, on = { class: "operate-content" },
|
|
311
|
+
}, Vl = /* @__PURE__ */ he(Kl, [["__scopeId", "data-v-1b0ef247"]]), en = { class: "table-operate-content" }, ln = { class: "table-operate-item" }, nn = { class: "operate-title" }, tn = { class: "operate-content" }, sn = { class: "operate-title" }, an = { class: "operate-content" }, rn = { class: "operate-title" }, on = { class: "operate-content" }, cn = { class: "operate-content" }, un = {
|
|
312
312
|
__name: "operate",
|
|
313
313
|
props: {
|
|
314
314
|
itemContents: {
|
|
@@ -436,18 +436,18 @@ const ce = [
|
|
|
436
436
|
type: "operate",
|
|
437
437
|
sortable: !1
|
|
438
438
|
}], x = (p) => {
|
|
439
|
-
let
|
|
440
|
-
const y =
|
|
441
|
-
(y == null ? void 0 : y.contents) !== void 0 ?
|
|
439
|
+
let c = u(s.value);
|
|
440
|
+
const y = c == null ? void 0 : c.find((O) => O.key === "page");
|
|
441
|
+
(y == null ? void 0 : y.contents) !== void 0 ? c = c == null ? void 0 : c.map((O) => ((O == null ? void 0 : O.key) === "page" && (O.contents = p == null ? void 0 : p.isPagination), O)) : c.push({
|
|
442
442
|
key: "page",
|
|
443
443
|
contents: p == null ? void 0 : p.isPagination
|
|
444
|
-
}), s.value =
|
|
444
|
+
}), s.value = c;
|
|
445
445
|
};
|
|
446
446
|
Y(
|
|
447
447
|
() => n.originalItemContents,
|
|
448
448
|
() => {
|
|
449
|
-
var p,
|
|
450
|
-
!n.originalItemContents || n.originalItemContents.length === 0 || (s.value =
|
|
449
|
+
var p, c, y, O, E, N, A, D, v, T, j, B, S;
|
|
450
|
+
!n.originalItemContents || n.originalItemContents.length === 0 || (s.value = u(n.originalItemContents), a.value = (c = (p = s.value) == null ? void 0 : p.find((m) => (m == null ? void 0 : m.key) === "header")) == null ? void 0 : c.contents, i.value = (O = (y = s.value) == null ? void 0 : y.find((m) => (m == null ? void 0 : m.key) === "rowButton")) == null ? void 0 : O.contents, h.value = (N = (E = s.value) == null ? void 0 : E.find((m) => (m == null ? void 0 : m.key) === "extraButton")) == null ? void 0 : N.contents, $.value = (D = (A = s.value) == null ? void 0 : A.find((m) => (m == null ? void 0 : m.key) === "page")) != null && D.contents ? [{
|
|
451
451
|
name: "isPagination",
|
|
452
452
|
label: "是否显示分页",
|
|
453
453
|
type: "Switch",
|
|
@@ -486,9 +486,9 @@ const ce = [
|
|
|
486
486
|
() => $.value,
|
|
487
487
|
() => {
|
|
488
488
|
var y;
|
|
489
|
-
let p =
|
|
490
|
-
const
|
|
491
|
-
|
|
489
|
+
let p = u(s.value);
|
|
490
|
+
const c = p == null ? void 0 : p.find((O) => O.key === "page");
|
|
491
|
+
c != null && c.contents ? p = p == null ? void 0 : p.map((O) => {
|
|
492
492
|
var E;
|
|
493
493
|
return (O == null ? void 0 : O.key) === "page" && (O.contents = (E = $.value) == null ? void 0 : E[0].value), O;
|
|
494
494
|
}) : p.push({
|
|
@@ -499,8 +499,8 @@ const ce = [
|
|
|
499
499
|
{ immediate: !0, deep: !0 }
|
|
500
500
|
);
|
|
501
501
|
const d = () => {
|
|
502
|
-
const p =
|
|
503
|
-
let
|
|
502
|
+
const p = u(a.value);
|
|
503
|
+
let c = u(s.value);
|
|
504
504
|
p.push({
|
|
505
505
|
label: "",
|
|
506
506
|
prop: "",
|
|
@@ -514,81 +514,81 @@ const ce = [
|
|
|
514
514
|
isOperate: !1,
|
|
515
515
|
id: C.value
|
|
516
516
|
}), a.value = p, C.value++;
|
|
517
|
-
const y =
|
|
518
|
-
y != null && y.contents ? (y.contents = p,
|
|
517
|
+
const y = c == null ? void 0 : c.find((O) => (O == null ? void 0 : O.key) === "header");
|
|
518
|
+
y != null && y.contents ? (y.contents = p, c = c == null ? void 0 : c.map((O) => ((O == null ? void 0 : O.key) === "header" && (O.contents = p), O))) : c.push({
|
|
519
519
|
key: "header",
|
|
520
520
|
contents: p
|
|
521
|
-
}), s.value =
|
|
521
|
+
}), s.value = c;
|
|
522
522
|
}, P = () => {
|
|
523
|
-
const p =
|
|
524
|
-
let
|
|
523
|
+
const p = u(i.value);
|
|
524
|
+
let c = u(s.value);
|
|
525
525
|
p.push({
|
|
526
526
|
label: "",
|
|
527
527
|
type: "",
|
|
528
528
|
textColor: "#000000",
|
|
529
529
|
id: C.value
|
|
530
530
|
}), i.value = p, C.value++;
|
|
531
|
-
const y =
|
|
532
|
-
y != null && y.contents ? (y.contents = p,
|
|
531
|
+
const y = c == null ? void 0 : c.find((O) => (O == null ? void 0 : O.key) === "rowButton");
|
|
532
|
+
y != null && y.contents ? (y.contents = p, c = c == null ? void 0 : c.map((O) => ((O == null ? void 0 : O.key) === "rowButton" && (O.contents = p), O))) : c.push({
|
|
533
533
|
key: "rowButton",
|
|
534
534
|
contents: p
|
|
535
|
-
}), s.value =
|
|
535
|
+
}), s.value = c;
|
|
536
536
|
}, o = () => {
|
|
537
|
-
const p =
|
|
538
|
-
let
|
|
537
|
+
const p = u(g.value);
|
|
538
|
+
let c = u(s.value);
|
|
539
539
|
p.push({
|
|
540
540
|
label: "",
|
|
541
541
|
type: "",
|
|
542
542
|
background: "#FFFFFF",
|
|
543
543
|
id: C.value
|
|
544
544
|
}), g.value = p, C.value++;
|
|
545
|
-
const y =
|
|
546
|
-
y != null && y.contents ? (y.contents = p,
|
|
545
|
+
const y = c == null ? void 0 : c.find((O) => (O == null ? void 0 : O.key) === "extraButton");
|
|
546
|
+
y != null && y.contents ? (y.contents = p, c = c == null ? void 0 : c.map((O) => ((O == null ? void 0 : O.key) === "extraButton" && (O.contents = p), O))) : c.push({
|
|
547
547
|
key: "extraButton",
|
|
548
548
|
contents: p
|
|
549
|
-
}), s.value =
|
|
549
|
+
}), s.value = c;
|
|
550
550
|
}, r = (p) => {
|
|
551
|
-
const
|
|
552
|
-
let y =
|
|
553
|
-
i.value =
|
|
551
|
+
const c = u(i.value);
|
|
552
|
+
let y = u(s.value);
|
|
553
|
+
i.value = c.filter((E) => E.id !== p.id);
|
|
554
554
|
const O = y == null ? void 0 : y.find((E) => E.key === "rowButton");
|
|
555
|
-
O != null && O.contents && (y = y == null ? void 0 : y.map((E) => ((E == null ? void 0 : E.key) === "rowButton" && (E.contents =
|
|
555
|
+
O != null && O.contents && (y = y == null ? void 0 : y.map((E) => ((E == null ? void 0 : E.key) === "rowButton" && (E.contents = c.filter((N) => N.id !== p.id)), E))), s.value = y;
|
|
556
556
|
}, f = (p) => {
|
|
557
|
-
const
|
|
558
|
-
let y =
|
|
559
|
-
g.value =
|
|
557
|
+
const c = u(g.value);
|
|
558
|
+
let y = u(s.value);
|
|
559
|
+
g.value = c.filter((E) => E.id !== p.id);
|
|
560
560
|
const O = y == null ? void 0 : y.find((E) => E.key === "extraButton");
|
|
561
|
-
O != null && O.contents && (y = y == null ? void 0 : y.map((E) => ((E == null ? void 0 : E.key) === "extraButton" && (E.contents =
|
|
561
|
+
O != null && O.contents && (y = y == null ? void 0 : y.map((E) => ((E == null ? void 0 : E.key) === "extraButton" && (E.contents = c.filter((N) => N.id !== p.id)), E))), s.value = y;
|
|
562
562
|
}, b = (p) => {
|
|
563
|
-
const
|
|
564
|
-
let y =
|
|
565
|
-
a.value =
|
|
563
|
+
const c = u(a.value);
|
|
564
|
+
let y = u(s.value);
|
|
565
|
+
a.value = c.filter((E) => E.id !== p.id);
|
|
566
566
|
const O = y == null ? void 0 : y.find((E) => E.key === "header");
|
|
567
|
-
O != null && O.contents && (y = y == null ? void 0 : y.map((E) => ((E == null ? void 0 : E.key) === "header" && (E.contents =
|
|
567
|
+
O != null && O.contents && (y = y == null ? void 0 : y.map((E) => ((E == null ? void 0 : E.key) === "header" && (E.contents = c.filter((N) => N.id !== p.id)), E))), s.value = y;
|
|
568
568
|
};
|
|
569
569
|
return Y(
|
|
570
570
|
() => [s.value, a.value],
|
|
571
571
|
() => {
|
|
572
|
-
let p =
|
|
573
|
-
const
|
|
574
|
-
|
|
572
|
+
let p = u(s.value);
|
|
573
|
+
const c = p == null ? void 0 : p.find((y) => (y == null ? void 0 : y.key) === "header");
|
|
574
|
+
c != null && c.contents ? (c.contents = a.value, p = p == null ? void 0 : p.map((y) => ((y == null ? void 0 : y.key) === "header" && (y.contents = a.value), y))) : p.push({
|
|
575
575
|
key: "header",
|
|
576
576
|
contents: a.value
|
|
577
577
|
}), l("change", p);
|
|
578
578
|
},
|
|
579
579
|
{ deep: !0, immediate: !0 }
|
|
580
|
-
), (p,
|
|
580
|
+
), (p, c) => {
|
|
581
581
|
const y = Ie("el-button");
|
|
582
582
|
return H(), q("div", en, [
|
|
583
583
|
w("div", ln, [
|
|
584
584
|
w("div", nn, [
|
|
585
|
-
|
|
585
|
+
c[1] || (c[1] = w("div", null, M("表头"), -1)),
|
|
586
586
|
G(y, {
|
|
587
587
|
class: "blue-operate-button",
|
|
588
588
|
icon: "ele-Plus",
|
|
589
589
|
onClick: d
|
|
590
590
|
}, {
|
|
591
|
-
default: K(() =>
|
|
591
|
+
default: K(() => c[0] || (c[0] = [
|
|
592
592
|
ae(M("新建"))
|
|
593
593
|
])),
|
|
594
594
|
_: 1,
|
|
@@ -606,13 +606,13 @@ const ce = [
|
|
|
606
606
|
}, null, 8, ["tableData"])
|
|
607
607
|
]),
|
|
608
608
|
w("div", sn, [
|
|
609
|
-
|
|
609
|
+
c[3] || (c[3] = w("div", null, M("行内按钮"), -1)),
|
|
610
610
|
G(y, {
|
|
611
611
|
class: "blue-operate-button",
|
|
612
612
|
icon: "ele-Plus",
|
|
613
613
|
onClick: P
|
|
614
614
|
}, {
|
|
615
|
-
default: K(() =>
|
|
615
|
+
default: K(() => c[2] || (c[2] = [
|
|
616
616
|
ae(M("新建"))
|
|
617
617
|
])),
|
|
618
618
|
_: 1,
|
|
@@ -630,13 +630,13 @@ const ce = [
|
|
|
630
630
|
}, null, 8, ["columns", "tableData"])
|
|
631
631
|
]),
|
|
632
632
|
w("div", rn, [
|
|
633
|
-
|
|
633
|
+
c[5] || (c[5] = w("div", null, M("表格外部按钮"), -1)),
|
|
634
634
|
G(y, {
|
|
635
635
|
class: "blue-operate-button",
|
|
636
636
|
icon: "ele-Plus",
|
|
637
637
|
onClick: o
|
|
638
638
|
}, {
|
|
639
|
-
default: K(() =>
|
|
639
|
+
default: K(() => c[4] || (c[4] = [
|
|
640
640
|
ae(M("新建"))
|
|
641
641
|
])),
|
|
642
642
|
_: 1,
|
|
@@ -653,10 +653,10 @@ const ce = [
|
|
|
653
653
|
onDeleteRow: f
|
|
654
654
|
}, null, 8, ["columns", "tableData"])
|
|
655
655
|
]),
|
|
656
|
-
|
|
656
|
+
c[6] || (c[6] = w("div", { class: "operate-title" }, [
|
|
657
657
|
w("div", null, M("分页"))
|
|
658
658
|
], -1)),
|
|
659
|
-
w("div",
|
|
659
|
+
w("div", cn, [
|
|
660
660
|
G(Oe, {
|
|
661
661
|
rowContents: $.value,
|
|
662
662
|
onChange: x
|
|
@@ -666,7 +666,7 @@ const ce = [
|
|
|
666
666
|
]);
|
|
667
667
|
};
|
|
668
668
|
}
|
|
669
|
-
}, pn = /* @__PURE__ */ he(
|
|
669
|
+
}, pn = /* @__PURE__ */ he(un, [["__scopeId", "data-v-877911eb"]]), fn = { class: "form-operate-content" }, dn = { class: "form-operate-item" }, yn = { class: "operate-title" }, hn = { class: "operate-content" }, mn = { class: "operate-title" }, bn = { class: "operate-content" }, gn = { class: "operate-content" }, kn = {
|
|
670
670
|
__name: "operate",
|
|
671
671
|
props: {
|
|
672
672
|
itemContents: {
|
|
@@ -728,14 +728,14 @@ const ce = [
|
|
|
728
728
|
Y(
|
|
729
729
|
() => n.originalItemContents,
|
|
730
730
|
() => {
|
|
731
|
-
var o, r, f, b, p,
|
|
732
|
-
!n.originalItemContents || n.originalItemContents.length === 0 || (k.value =
|
|
731
|
+
var o, r, f, b, p, c, y, O, E, N;
|
|
732
|
+
!n.originalItemContents || n.originalItemContents.length === 0 || (k.value = u(n.originalItemContents), g.value = (r = (o = k.value) == null ? void 0 : o.find((A) => (A == null ? void 0 : A.key) === "formContent")) == null ? void 0 : r.contents, h.value = (b = (f = k.value) == null ? void 0 : f.find((A) => (A == null ? void 0 : A.key) === "formButton")) == null ? void 0 : b.contents, g.value = (p = g.value) == null ? void 0 : p.map((A, D) => A = {
|
|
733
733
|
label: (A == null ? void 0 : A.label) ?? "",
|
|
734
734
|
type: (A == null ? void 0 : A.type) ?? "",
|
|
735
735
|
key: (A == null ? void 0 : A.key) ?? "",
|
|
736
736
|
options: (A == null ? void 0 : A.options) ?? "",
|
|
737
737
|
id: (A == null ? void 0 : A.id) ?? D
|
|
738
|
-
}), h.value = (
|
|
738
|
+
}), h.value = (c = h.value) == null ? void 0 : c.map((A, D) => A = {
|
|
739
739
|
label: (A == null ? void 0 : A.label) ?? "",
|
|
740
740
|
type: (A == null ? void 0 : A.type) ?? "",
|
|
741
741
|
background: (A == null ? void 0 : A.background) ?? "#000000",
|
|
@@ -755,8 +755,8 @@ const ce = [
|
|
|
755
755
|
{ deep: !0, immediate: !0 }
|
|
756
756
|
);
|
|
757
757
|
const $ = () => {
|
|
758
|
-
const o =
|
|
759
|
-
let r =
|
|
758
|
+
const o = u(h.value);
|
|
759
|
+
let r = u(k.value);
|
|
760
760
|
o.push({
|
|
761
761
|
label: "",
|
|
762
762
|
type: "",
|
|
@@ -769,8 +769,8 @@ const ce = [
|
|
|
769
769
|
contents: o
|
|
770
770
|
}), k.value = r;
|
|
771
771
|
}, _ = () => {
|
|
772
|
-
const o =
|
|
773
|
-
let r =
|
|
772
|
+
const o = u(g.value);
|
|
773
|
+
let r = u(k.value);
|
|
774
774
|
o.push({
|
|
775
775
|
label: "",
|
|
776
776
|
type: "",
|
|
@@ -784,19 +784,19 @@ const ce = [
|
|
|
784
784
|
contents: o
|
|
785
785
|
}), k.value = r;
|
|
786
786
|
}, x = (o) => {
|
|
787
|
-
const r =
|
|
788
|
-
let f =
|
|
787
|
+
const r = u(h.value);
|
|
788
|
+
let f = u(k.value);
|
|
789
789
|
h.value = r.filter((p) => p.id !== o.id);
|
|
790
790
|
const b = f == null ? void 0 : f.find((p) => p.key === "formButton");
|
|
791
|
-
b != null && b.contents && (f = f == null ? void 0 : f.map((p) => ((p == null ? void 0 : p.key) === "formButton" && (p.contents = r.filter((
|
|
791
|
+
b != null && b.contents && (f = f == null ? void 0 : f.map((p) => ((p == null ? void 0 : p.key) === "formButton" && (p.contents = r.filter((c) => c.id !== o.id)), p))), k.value = f;
|
|
792
792
|
}, d = (o) => {
|
|
793
|
-
const r =
|
|
794
|
-
let f =
|
|
793
|
+
const r = u(g.value);
|
|
794
|
+
let f = u(k.value);
|
|
795
795
|
g.value = r.filter((p) => p.id !== o.id);
|
|
796
796
|
const b = f == null ? void 0 : f.find((p) => p.key === "formContent");
|
|
797
|
-
b != null && b.contents && (f = f == null ? void 0 : f.map((p) => ((p == null ? void 0 : p.key) === "formContent" && (p.contents = r.filter((
|
|
797
|
+
b != null && b.contents && (f = f == null ? void 0 : f.map((p) => ((p == null ? void 0 : p.key) === "formContent" && (p.contents = r.filter((c) => c.id !== o.id)), p))), k.value = f;
|
|
798
798
|
}, P = (o) => {
|
|
799
|
-
let r =
|
|
799
|
+
let r = u(k.value);
|
|
800
800
|
const f = r == null ? void 0 : r.find((b) => b.key === "formFlex");
|
|
801
801
|
(f == null ? void 0 : f.contents) !== void 0 ? r = r == null ? void 0 : r.map((b) => ((b == null ? void 0 : b.key) === "formFlex" && (b.contents = o == null ? void 0 : o.isRowFlex), b)) : r.push({
|
|
802
802
|
key: "formFlex",
|
|
@@ -806,7 +806,7 @@ const ce = [
|
|
|
806
806
|
return Y(
|
|
807
807
|
() => [k.value, g.value],
|
|
808
808
|
() => {
|
|
809
|
-
let o =
|
|
809
|
+
let o = u(k.value);
|
|
810
810
|
const r = o == null ? void 0 : o.find((f) => (f == null ? void 0 : f.key) === "formContent");
|
|
811
811
|
r != null && r.contents ? (r.contents = g.value, o = o == null ? void 0 : o.map((f) => ((f == null ? void 0 : f.key) === "formContent" && (f.contents = g.value), f))) : o.push({
|
|
812
812
|
key: "formContent",
|
|
@@ -904,28 +904,28 @@ const ce = [
|
|
|
904
904
|
() => [n.itemData],
|
|
905
905
|
() => {
|
|
906
906
|
var p;
|
|
907
|
-
const b =
|
|
908
|
-
s.value = (p =
|
|
907
|
+
const b = u(n.itemData);
|
|
908
|
+
s.value = (p = u(b)) == null ? void 0 : p.map((c) => {
|
|
909
909
|
var y;
|
|
910
|
-
if (
|
|
910
|
+
if (c.key === "extra") {
|
|
911
911
|
let O = [];
|
|
912
|
-
(y =
|
|
912
|
+
(y = c.value) == null || y.forEach((E) => {
|
|
913
913
|
var N;
|
|
914
914
|
O.push((N = Object.values(E)) == null ? void 0 : N[0]);
|
|
915
|
-
}),
|
|
915
|
+
}), c.value = O;
|
|
916
916
|
}
|
|
917
|
-
return
|
|
917
|
+
return c;
|
|
918
918
|
});
|
|
919
919
|
},
|
|
920
920
|
{ deep: !0, immediate: !0 }
|
|
921
921
|
);
|
|
922
|
-
const $ = (b, p,
|
|
922
|
+
const $ = (b, p, c, y) => {
|
|
923
923
|
var E;
|
|
924
924
|
let O = {};
|
|
925
|
-
((E = b == null ? void 0 : b[0]) == null ? void 0 : E.contents) === "详情" && (h.value = !0, O[p] = b, a.value = b == null ? void 0 : b.filter((N) => (N == null ? void 0 : N.key) !== "tableContentName"), k.value = O, g.value =
|
|
925
|
+
((E = b == null ? void 0 : b[0]) == null ? void 0 : E.contents) === "详情" && (h.value = !0, O[p] = b, a.value = b == null ? void 0 : b.filter((N) => (N == null ? void 0 : N.key) !== "tableContentName"), k.value = O, g.value = c, C.value = y.id);
|
|
926
926
|
}, _ = (b) => {
|
|
927
927
|
var N, A, D, v;
|
|
928
|
-
const p = (A = (N = Object.values(
|
|
928
|
+
const p = (A = (N = Object.values(u(k.value))) == null ? void 0 : N[0]) == null ? void 0 : A.filter((T) => (T == null ? void 0 : T.key) === "tableContentName"), c = (v = (D = Object.values(u(k.value))) == null ? void 0 : D[0]) == null ? void 0 : v.filter((T) => (T == null ? void 0 : T.key) !== "tableContentName"), y = c == null ? void 0 : c.map((T, j) => {
|
|
929
929
|
var B;
|
|
930
930
|
return j === b.index && (T == null ? void 0 : T.comp) === "Table" && (T.compData = (B = T.compData) == null ? void 0 : B.map((S) => {
|
|
931
931
|
var m, F;
|
|
@@ -938,7 +938,7 @@ const ce = [
|
|
|
938
938
|
})), T;
|
|
939
939
|
});
|
|
940
940
|
y.unshift(p == null ? void 0 : p[0]);
|
|
941
|
-
let O =
|
|
941
|
+
let O = u(k.value), E = {};
|
|
942
942
|
for (let T in O)
|
|
943
943
|
E[T] = y;
|
|
944
944
|
k.value = E;
|
|
@@ -946,17 +946,17 @@ const ce = [
|
|
|
946
946
|
h.value = !1, k.value = {}, g.value = {}, C.value = void 0, l.value++;
|
|
947
947
|
}, d = (b) => {
|
|
948
948
|
var N, A, D, v;
|
|
949
|
-
const p = (A = (N = Object.values(
|
|
949
|
+
const p = (A = (N = Object.values(u(k.value))) == null ? void 0 : N[0]) == null ? void 0 : A.filter((T) => (T == null ? void 0 : T.key) === "tableContentName"), c = (v = (D = Object.values(u(k.value))) == null ? void 0 : D[0]) == null ? void 0 : v.filter((T) => (T == null ? void 0 : T.key) !== "tableContentName"), y = c == null ? void 0 : c.map((T, j) => (j === b.index && (T.compData = b.contents), T));
|
|
950
950
|
y.unshift(p == null ? void 0 : p[0]);
|
|
951
|
-
let O =
|
|
951
|
+
let O = u(k.value), E = {};
|
|
952
952
|
for (let T in O)
|
|
953
953
|
E[T] = y;
|
|
954
954
|
k.value = E;
|
|
955
955
|
}, P = () => {
|
|
956
|
-
var p,
|
|
956
|
+
var p, c;
|
|
957
957
|
let b = {};
|
|
958
958
|
for (let y in g.value)
|
|
959
|
-
y === ((p = Object.keys(k.value)) == null ? void 0 : p[0]) ? b[y] = (
|
|
959
|
+
y === ((p = Object.keys(k.value)) == null ? void 0 : p[0]) ? b[y] = (c = Object.values(k.value)) == null ? void 0 : c[0] : b[y] = g.value[y];
|
|
960
960
|
i("change", {
|
|
961
961
|
buttonName: "编辑",
|
|
962
962
|
index: C.value,
|
|
@@ -969,13 +969,13 @@ const ce = [
|
|
|
969
969
|
}, f = (b) => vn(b);
|
|
970
970
|
return (b, p) => (H(), q(me, null, [
|
|
971
971
|
w("div", An, [
|
|
972
|
-
(H(!0), q(me, null, ve(s.value, (
|
|
973
|
-
(
|
|
974
|
-
(H(), Ee(De(f(
|
|
975
|
-
itemData:
|
|
976
|
-
childItemData:
|
|
972
|
+
(H(!0), q(me, null, ve(s.value, (c, y) => (H(), q("div", { key: l.value }, [
|
|
973
|
+
(c == null ? void 0 : c.key) === "extra" ? (H(), q("div", $n)) : (H(), q("div", On, [
|
|
974
|
+
(H(), Ee(De(f(c.comp)), {
|
|
975
|
+
itemData: c == null ? void 0 : c.compData,
|
|
976
|
+
childItemData: c == null ? void 0 : c.itemChildData,
|
|
977
977
|
key: y,
|
|
978
|
-
index: (
|
|
978
|
+
index: (c == null ? void 0 : c.id) ?? y,
|
|
979
979
|
onContentClick: $,
|
|
980
980
|
onChange: r
|
|
981
981
|
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
@@ -987,17 +987,17 @@ const ce = [
|
|
|
987
987
|
onBeforeDestroy: o
|
|
988
988
|
}, {
|
|
989
989
|
default: K(() => [
|
|
990
|
-
(H(!0), q(me, null, ve(a.value, (
|
|
990
|
+
(H(!0), q(me, null, ve(a.value, (c, y) => (H(), q("div", {
|
|
991
991
|
key: y,
|
|
992
992
|
class: "extra-dialog"
|
|
993
993
|
}, [
|
|
994
|
-
(H(), Ee(De(f(
|
|
995
|
-
itemData:
|
|
994
|
+
(H(), Ee(De(f(c.comp)), {
|
|
995
|
+
itemData: c == null ? void 0 : c.compData,
|
|
996
996
|
onChange: _,
|
|
997
|
-
childItemData:
|
|
997
|
+
childItemData: c == null ? void 0 : c.itemChildData,
|
|
998
998
|
key: y,
|
|
999
999
|
onContentChange: d,
|
|
1000
|
-
index: (
|
|
1000
|
+
index: (c == null ? void 0 : c.id) ?? y,
|
|
1001
1001
|
class: "extra-component"
|
|
1002
1002
|
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
1003
1003
|
]))), 128))
|
|
@@ -1129,7 +1129,7 @@ const R = [
|
|
|
1129
1129
|
const n = [];
|
|
1130
1130
|
let l = "";
|
|
1131
1131
|
for (const s of t)
|
|
1132
|
-
s.includes("{") || l.includes("{") || s.includes("[") || l.includes("[") || s.includes("【") || l.includes("【") || s.includes("(") || l.includes("(") || s.includes("(") || l.includes("(") || s.includes("/*") || l.includes("/*") ? (l += s.trim(),
|
|
1132
|
+
s.includes("{") || l.includes("{") || s.includes("[") || l.includes("[") || s.includes("【") || l.includes("【") || s.includes("(") || l.includes("(") || s.includes("(") || l.includes("(") || s.includes("/*") || l.includes("/*") ? (l += s.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(s.trim());
|
|
1133
1133
|
return n == null ? void 0 : n.filter((s) => s.includes("{"));
|
|
1134
1134
|
}, Sn = (e) => {
|
|
1135
1135
|
var n;
|
|
@@ -1138,8 +1138,8 @@ const R = [
|
|
|
1138
1138
|
var a, i, h, k;
|
|
1139
1139
|
let s = ((i = (a = l.slice(1, -1)) == null ? void 0 : a.split(",")) == null ? void 0 : i.length) ?? 1;
|
|
1140
1140
|
(k = (h = l.slice(1, -1)) == null ? void 0 : h.split(",")) == null || k.forEach((g) => {
|
|
1141
|
-
var x, d, P, o, r, f, b, p,
|
|
1142
|
-
let C = g == null ? void 0 : g.split(":"), $ = 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")) + ((d = C == null ? void 0 : C[1]) == null ? void 0 : d.replace(/^"(.*)"$/, "$1")) : Array.isArray((o = (P = C == null ? void 0 : C[1]) == null ? void 0 : P.replace(/^"(.*)"$/, "$1")) == null ? void 0 : o.split("(")) && ((b = (f = (r = C == null ? void 0 : C[1]) == null ? void 0 : r.replace(/^"(.*)"$/, "$1")) == null ? void 0 : f.split("(")) == null ? void 0 : b.length) > 1 ? ((p = C == null ? void 0 : C[0]) == null ? void 0 : p.replace(/^"(.*)"$/, "$1")) + ((O = (y = (
|
|
1141
|
+
var x, d, P, o, r, f, b, p, c, y, O, E, N;
|
|
1142
|
+
let C = g == null ? void 0 : g.split(":"), $ = 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")) + ((d = C == null ? void 0 : C[1]) == null ? void 0 : d.replace(/^"(.*)"$/, "$1")) : Array.isArray((o = (P = C == null ? void 0 : C[1]) == null ? void 0 : P.replace(/^"(.*)"$/, "$1")) == null ? void 0 : o.split("(")) && ((b = (f = (r = C == null ? void 0 : C[1]) == null ? void 0 : r.replace(/^"(.*)"$/, "$1")) == null ? void 0 : f.split("(")) == null ? void 0 : b.length) > 1 ? ((p = C == null ? void 0 : C[0]) == null ? void 0 : p.replace(/^"(.*)"$/, "$1")) + ((O = (y = (c = C == null ? void 0 : C[1]) == null ? void 0 : c.replace(/^"(.*)"$/, "$1")) == null ? void 0 : y.split("(")) == null ? void 0 : O[0]) + "()" : (E = C == null ? void 0 : C[0]) == null ? void 0 : E.replace(/^"(.*)"$/, "$1") : "", _ = (C == null ? void 0 : C[1].split("$").length) - 1 === 0 ? (N = C == null ? void 0 : C[1]) == null ? void 0 : N.replace(/^"(.*)"$/, "$1") : "";
|
|
1143
1143
|
ne.value++, t.push({
|
|
1144
1144
|
id: ne.value,
|
|
1145
1145
|
key: $,
|
|
@@ -1154,20 +1154,20 @@ const R = [
|
|
|
1154
1154
|
var t, n;
|
|
1155
1155
|
try {
|
|
1156
1156
|
const l = e.replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",").replace(/:/g, ":").replace(/:\s*(?=,|}|$)/g, ': ""');
|
|
1157
|
-
if (
|
|
1158
|
-
let s =
|
|
1157
|
+
if (u(l).split("{").length - 1 > 1) {
|
|
1158
|
+
let s = u(l).replace(/^\{(.*)\}$/, "[$1]");
|
|
1159
1159
|
if (fe(s) && !s.includes("$") || (s = s.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g, '"$1$$$2"')), fe(s)) {
|
|
1160
1160
|
const a = JSON.parse(s);
|
|
1161
1161
|
let i = [];
|
|
1162
1162
|
return a == null || a.forEach((h) => {
|
|
1163
1163
|
var k;
|
|
1164
|
-
(k = Object.entries(
|
|
1164
|
+
(k = Object.entries(u(h))) == null || k.forEach((g) => {
|
|
1165
1165
|
ne.value++, i.push({
|
|
1166
1166
|
id: ne.value,
|
|
1167
1167
|
key: (g == null ? void 0 : g[0]) ?? "",
|
|
1168
1168
|
value: (g == null ? void 0 : g[1]) === "" ? "" : g == null ? void 0 : g[1],
|
|
1169
1169
|
// 如果值为空,则key设为空字符串,否则保留原值
|
|
1170
|
-
width: Object.keys(
|
|
1170
|
+
width: Object.keys(u(h)).length
|
|
1171
1171
|
});
|
|
1172
1172
|
});
|
|
1173
1173
|
}), i;
|
|
@@ -1217,27 +1217,27 @@ const R = [
|
|
|
1217
1217
|
try {
|
|
1218
1218
|
if (R != null && R.find((n) => (n == null ? void 0 : n.key) === t))
|
|
1219
1219
|
return e.replace(/['"]/g, "").trim();
|
|
1220
|
-
if (
|
|
1221
|
-
const n =
|
|
1220
|
+
if (u(e).split("[").length - 1 > 1) {
|
|
1221
|
+
const n = u(e).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
|
|
1222
1222
|
return JSON.parse(n);
|
|
1223
1223
|
} else {
|
|
1224
|
-
const n =
|
|
1224
|
+
const n = u(e).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",");
|
|
1225
1225
|
if (fe(n)) {
|
|
1226
1226
|
const l = JSON.parse(n);
|
|
1227
1227
|
return Array.isArray(l) ? l.map((s) => ({ label: s })) : l;
|
|
1228
1228
|
} else
|
|
1229
|
-
return Xe(
|
|
1229
|
+
return Xe(u(e));
|
|
1230
1230
|
}
|
|
1231
1231
|
} catch (n) {
|
|
1232
1232
|
return console.error("解析失败:", n), e;
|
|
1233
1233
|
}
|
|
1234
1234
|
}, jn = (e) => ({ [e == null ? void 0 : e.key]: Pn(e == null ? void 0 : e.value, e == null ? void 0 : e.key) }), Bn = (e) => {
|
|
1235
1235
|
try {
|
|
1236
|
-
if (
|
|
1237
|
-
const t =
|
|
1236
|
+
if (u(e).split("[").length - 1 > 1) {
|
|
1237
|
+
const t = u(e).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
|
|
1238
1238
|
return JSON.parse(t);
|
|
1239
1239
|
} else
|
|
1240
|
-
return JSON.parse(
|
|
1240
|
+
return JSON.parse(u(e).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",")).map((n) => ({ label: n }));
|
|
1241
1241
|
} catch (t) {
|
|
1242
1242
|
return console.error("解析失败:", t), e;
|
|
1243
1243
|
}
|
|
@@ -1250,7 +1250,7 @@ const R = [
|
|
|
1250
1250
|
}, Ge = (e) => e.replace(/'/g, "").replace(/"/g, "").replace(/{|}/g, "").split(":").map((t) => t.trim()).filter((t) => t).join("/"), Jn = (e) => {
|
|
1251
1251
|
var i, h;
|
|
1252
1252
|
let t = [], n = [];
|
|
1253
|
-
const l = (i =
|
|
1253
|
+
const l = (i = u(e)) == null ? void 0 : i.map((k) => k == null ? void 0 : k.key), s = [...new Set((h = u(l)) == null ? void 0 : h.map((k) => Fn(k)))];
|
|
1254
1254
|
s == null || s.forEach((k) => {
|
|
1255
1255
|
let g = e == null ? void 0 : e.filter((_) => _.key.includes(k));
|
|
1256
1256
|
g == null || g.forEach((_) => {
|
|
@@ -1315,62 +1315,62 @@ const R = [
|
|
|
1315
1315
|
}, Ke = (e) => Ln(e), vt = (e) => {
|
|
1316
1316
|
var t, n, l, s, a, i, h, k;
|
|
1317
1317
|
try {
|
|
1318
|
-
const g = xe((n = (t =
|
|
1318
|
+
const g = xe((n = (t = u(e)) == null ? void 0 : t.replace("(", "(")) == null ? void 0 : n.replace(")", ")")), C = (s = (l = u(g)) == null ? void 0 : l.filter((d) => !d.includes("/*"))) == null ? void 0 : s.map((d) => En(d)), $ = Jn(C), _ = [];
|
|
1319
1319
|
if (((a = $ == null ? void 0 : $.find((d) => (d == null ? void 0 : d.key) === "Menus")) == null ? void 0 : a.value.length) === 0)
|
|
1320
1320
|
return !1;
|
|
1321
|
-
(i =
|
|
1321
|
+
(i = u($)) == null || i.forEach((d) => {
|
|
1322
1322
|
var P, o, r, f, b;
|
|
1323
1323
|
R != null && R.find((p) => {
|
|
1324
|
-
var
|
|
1325
|
-
return ((
|
|
1324
|
+
var c, y;
|
|
1325
|
+
return ((c = p == null ? void 0 : p.key) == null ? void 0 : c.toUpperCase()) === ((y = d == null ? void 0 : d.key) == null ? void 0 : y.toUpperCase());
|
|
1326
1326
|
}) ? _.push({
|
|
1327
1327
|
comp: ((P = R == null ? void 0 : R.find((p) => {
|
|
1328
|
-
var
|
|
1329
|
-
return ((
|
|
1328
|
+
var c, y;
|
|
1329
|
+
return ((c = p == null ? void 0 : p.key) == null ? void 0 : c.toUpperCase()) === ((y = d == null ? void 0 : d.key) == null ? void 0 : y.toUpperCase());
|
|
1330
1330
|
})) == null ? void 0 : P.value) ?? "",
|
|
1331
1331
|
name: (o = d == null ? void 0 : d.value) == null ? void 0 : o.replace(/[’]|[‘]|[']/g, ""),
|
|
1332
1332
|
compData: []
|
|
1333
1333
|
}) : J != null && J.find((p) => {
|
|
1334
|
-
var
|
|
1335
|
-
return ((
|
|
1334
|
+
var c, y;
|
|
1335
|
+
return ((c = p == null ? void 0 : p.key) == null ? void 0 : c.toUpperCase()) === ((y = d == null ? void 0 : d.key) == null ? void 0 : y.toUpperCase());
|
|
1336
1336
|
}) && ((_ == null ? void 0 : _.length) === 0 && (r = d.key) != null && r.includes("Menus") && _.push({
|
|
1337
1337
|
comp: "Menu",
|
|
1338
1338
|
name: "",
|
|
1339
1339
|
compData: []
|
|
1340
1340
|
}), (f = _ == null ? void 0 : _[(_ == null ? void 0 : _.length) - 1]) != null && f.compData && _[(_ == null ? void 0 : _.length) - 1].compData.push({
|
|
1341
1341
|
key: (b = J == null ? void 0 : J.find((p) => {
|
|
1342
|
-
var
|
|
1343
|
-
return ((
|
|
1342
|
+
var c, y;
|
|
1343
|
+
return ((c = p == null ? void 0 : p.key) == null ? void 0 : c.toUpperCase()) === ((y = d == null ? void 0 : d.key) == null ? void 0 : y.toUpperCase());
|
|
1344
1344
|
})) == null ? void 0 : b.value,
|
|
1345
1345
|
contents: d == null ? void 0 : d.value
|
|
1346
1346
|
}));
|
|
1347
1347
|
});
|
|
1348
|
-
let x = (h =
|
|
1348
|
+
let x = (h = u(_)) == null ? void 0 : h.map((d) => {
|
|
1349
1349
|
var P;
|
|
1350
1350
|
return d != null && d.compData && (d.compData = (P = d == null ? void 0 : d.compData) == null ? void 0 : P.map((o) => {
|
|
1351
|
-
var r, f, b, p,
|
|
1351
|
+
var r, f, b, p, c, y, O, E, N, A, D;
|
|
1352
1352
|
if ((o == null ? void 0 : o.key) === "formFlex")
|
|
1353
1353
|
o.contents = ((f = (r = o.contents) == null ? void 0 : r.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : f.toUpperCase()) !== "Vertical".toUpperCase();
|
|
1354
1354
|
else if ((o == null ? void 0 : o.key) === "groupContents")
|
|
1355
|
-
o.contents = (b =
|
|
1355
|
+
o.contents = (b = u(o.contents)) == null ? void 0 : b.map((v) => jn(u(v)));
|
|
1356
1356
|
else if (Array.isArray(o == null ? void 0 : o.contents))
|
|
1357
1357
|
o.contents = Ke(o.contents);
|
|
1358
|
-
else if (((
|
|
1359
|
-
o.contents = Bn(
|
|
1358
|
+
else if (((c = (p = o == null ? void 0 : o.contents) == null ? void 0 : p.trim()) != null && c.startsWith("[") || (O = (y = o.contents) == null ? void 0 : y.trim()) != null && O.startsWith("【")) && ((N = (E = o.contents) == null ? void 0 : E.trim()) != null && N.endsWith("]") || (D = (A = o.contents) == null ? void 0 : A.trim()) != null && D.endsWith("】")))
|
|
1359
|
+
o.contents = Bn(u(o.contents));
|
|
1360
1360
|
else {
|
|
1361
1361
|
if (!o.contents) return;
|
|
1362
|
-
o.contents = Xe(
|
|
1362
|
+
o.contents = Xe(u(o.contents));
|
|
1363
1363
|
}
|
|
1364
1364
|
return o;
|
|
1365
1365
|
})), d;
|
|
1366
1366
|
});
|
|
1367
|
-
return x = (k =
|
|
1367
|
+
return x = (k = u(x)) == null ? void 0 : k.map((d) => {
|
|
1368
1368
|
var P;
|
|
1369
1369
|
return (d == null ? void 0 : d.comp) === "Group" && (d.compData = (P = d.compData) == null ? void 0 : P.map((o) => {
|
|
1370
1370
|
var f;
|
|
1371
1371
|
let r = [];
|
|
1372
1372
|
return (f = o.contents) == null || f.forEach((b) => {
|
|
1373
|
-
var p,
|
|
1373
|
+
var p, c, y, O, E, N, A, D, v, T, j, B;
|
|
1374
1374
|
if (R != null && R.find((S) => {
|
|
1375
1375
|
var m, F, L;
|
|
1376
1376
|
return ((m = S == null ? void 0 : S.key) == null ? void 0 : m.toUpperCase()) === ((L = (F = Object.keys(b)) == null ? void 0 : F[0]) == null ? void 0 : L.toUpperCase());
|
|
@@ -1380,7 +1380,7 @@ const R = [
|
|
|
1380
1380
|
var m, F, L;
|
|
1381
1381
|
return ((m = S == null ? void 0 : S.key) == null ? void 0 : m.toUpperCase()) === ((L = (F = Object.keys(b)) == null ? void 0 : F[0]) == null ? void 0 : L.toUpperCase());
|
|
1382
1382
|
})) == null ? void 0 : p.value,
|
|
1383
|
-
name: (y = (
|
|
1383
|
+
name: (y = (c = Object.values(b)) == null ? void 0 : c[0]) == null ? void 0 : y.replace(/[’]|[‘]|[']/g, ""),
|
|
1384
1384
|
compData: []
|
|
1385
1385
|
});
|
|
1386
1386
|
else if (J != null && J.find((S) => {
|
|
@@ -1396,7 +1396,7 @@ const R = [
|
|
|
1396
1396
|
contents: (N = Object.values(b)) == null ? void 0 : N[0]
|
|
1397
1397
|
});
|
|
1398
1398
|
} else if ((D = (A = Object.keys(b)) == null ? void 0 : A[0]) != null && D.includes("$")) {
|
|
1399
|
-
const S = (T = (v = Object.keys(
|
|
1399
|
+
const S = (T = (v = Object.keys(u(b))) == null ? void 0 : v[0]) == null ? void 0 : T.split("$");
|
|
1400
1400
|
r[(r == null ? void 0 : r.length) - 1].compData.push({
|
|
1401
1401
|
key: (j = J == null ? void 0 : J.find((m) => {
|
|
1402
1402
|
var F, L;
|
|
@@ -1479,7 +1479,7 @@ const R = [
|
|
|
1479
1479
|
), t;
|
|
1480
1480
|
}, Gn = (e) => {
|
|
1481
1481
|
var n;
|
|
1482
|
-
return e.some((l) => !Array.isArray(l)) ? e : (n =
|
|
1482
|
+
return e.some((l) => !Array.isArray(l)) ? e : (n = u(e)) == null ? void 0 : n.map((l) => {
|
|
1483
1483
|
let s = [];
|
|
1484
1484
|
return l.some((a) => Array.isArray(a)) ? l == null || l.forEach((a) => {
|
|
1485
1485
|
Array.isArray(a) && s.push(Ae(a));
|
|
@@ -1498,11 +1498,11 @@ const R = [
|
|
|
1498
1498
|
return t.length > 0 ? t == null || t.forEach((s) => {
|
|
1499
1499
|
let a = n == null ? void 0 : n[0];
|
|
1500
1500
|
n.shift();
|
|
1501
|
-
const i = nl(
|
|
1501
|
+
const i = nl(u(n), s, a);
|
|
1502
1502
|
a = i[0], n = i[1], l.push(a);
|
|
1503
1503
|
}) : l = n, l;
|
|
1504
1504
|
}, _e = (e, t) => {
|
|
1505
|
-
const n = Gn(
|
|
1505
|
+
const n = Gn(u(e));
|
|
1506
1506
|
return Mn(n, t);
|
|
1507
1507
|
}, Wn = (e) => {
|
|
1508
1508
|
const t = [];
|
|
@@ -1571,7 +1571,7 @@ const R = [
|
|
|
1571
1571
|
return `"${n}",${s}`;
|
|
1572
1572
|
}), pe = (e) => {
|
|
1573
1573
|
const t = e.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g, '"$1",$2');
|
|
1574
|
-
return sl(t);
|
|
1574
|
+
return sl(t).replace(/^"(.*)"$/, "$1");
|
|
1575
1575
|
}, Zn = (e) => {
|
|
1576
1576
|
const t = /* @__PURE__ */ new Set();
|
|
1577
1577
|
return e.filter((n) => {
|
|
@@ -1581,7 +1581,7 @@ const R = [
|
|
|
1581
1581
|
}, He = (e) => {
|
|
1582
1582
|
var n;
|
|
1583
1583
|
let t = [];
|
|
1584
|
-
return (n =
|
|
1584
|
+
return (n = u(e)) == null || n.forEach((l) => {
|
|
1585
1585
|
var s;
|
|
1586
1586
|
(s = l.contents) == null || s.forEach((a) => {
|
|
1587
1587
|
t.push(a);
|
|
@@ -1616,7 +1616,7 @@ const R = [
|
|
|
1616
1616
|
const n = [];
|
|
1617
1617
|
let l = "";
|
|
1618
1618
|
for (const s of t)
|
|
1619
|
-
s.includes("{") || l.includes("{") || s.includes("[") || l.includes("[") || s.includes("【") || l.includes("【") || s.includes("(") || l.includes("(") || s.includes("(") || l.includes("(") || s.includes("/*") || l.includes("/*") ? (l += s.trim(),
|
|
1619
|
+
s.includes("{") || l.includes("{") || s.includes("[") || l.includes("[") || s.includes("【") || l.includes("【") || s.includes("(") || l.includes("(") || s.includes("(") || l.includes("(") || s.includes("/*") || l.includes("/*") ? (l += s.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(s.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
|
|
1620
1620
|
return n;
|
|
1621
1621
|
}, Qn = (e) => {
|
|
1622
1622
|
const [t, n] = e.split(/=(.+)/), l = t.replace(/['"]/g, "").trim(), s = n.replace(/^['"]|['"]$/g, "");
|
|
@@ -1627,7 +1627,7 @@ const R = [
|
|
|
1627
1627
|
const n = [];
|
|
1628
1628
|
let l = "";
|
|
1629
1629
|
for (const s of t)
|
|
1630
|
-
s.includes("{") || l.includes("{") || s.includes("[") || l.includes("[") || s.includes("【") || l.includes("【") || s.includes("(") || l.includes("(") || s.includes("(") || l.includes("(") || s.includes("/*") || l.includes("/*") ? (l = l !== "" ? l + ":" + s.trim() : s.trim(),
|
|
1630
|
+
s.includes("{") || l.includes("{") || s.includes("[") || l.includes("[") || s.includes("【") || l.includes("【") || s.includes("(") || l.includes("(") || s.includes("(") || l.includes("(") || s.includes("/*") || l.includes("/*") ? (l = l !== "" ? l + ":" + s.trim() : s.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(s.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
|
|
1631
1631
|
return n;
|
|
1632
1632
|
}, Xn = (e) => /^[\x00-\x7F]*$/.test(e), Yn = (e) => {
|
|
1633
1633
|
var s;
|
|
@@ -1648,7 +1648,7 @@ const R = [
|
|
|
1648
1648
|
}).filter((a) => a.length !== 0), l = (s = n == null ? void 0 : n.filter((a) => a.length !== 0)) == null ? void 0 : s.map((a) => {
|
|
1649
1649
|
let i = "";
|
|
1650
1650
|
return a.forEach((h) => {
|
|
1651
|
-
h.includes("{") || (i = i === "" ? i +
|
|
1651
|
+
h.includes("{") || (i = i === "" ? i + u(h) : i + "/" + u(h));
|
|
1652
1652
|
}), i;
|
|
1653
1653
|
});
|
|
1654
1654
|
return Ke([...new Set(l)]);
|
|
@@ -1669,7 +1669,7 @@ const R = [
|
|
|
1669
1669
|
});
|
|
1670
1670
|
let l = "";
|
|
1671
1671
|
return n.forEach((a) => {
|
|
1672
|
-
a.includes("{") || (l = l === "" ? l +
|
|
1672
|
+
a.includes("{") || (l = l === "" ? l + u(a) : l + "/" + u(a));
|
|
1673
1673
|
}), l;
|
|
1674
1674
|
}, Vn = (e) => {
|
|
1675
1675
|
const t = e.match(/\[(.*)\]/s);
|
|
@@ -1695,20 +1695,20 @@ const R = [
|
|
|
1695
1695
|
const t = [];
|
|
1696
1696
|
let n = "";
|
|
1697
1697
|
for (const l of e)
|
|
1698
|
-
l.includes("[") || n.includes("[") || l.includes("/*") || n.includes("/*") ? (n += l.trim(),
|
|
1698
|
+
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, ""));
|
|
1699
1699
|
return t;
|
|
1700
1700
|
}, nt = (e) => {
|
|
1701
1701
|
var a, i, h, k, g, C, $, _, x;
|
|
1702
1702
|
let t = [], n = [], l = e.trim(), s = [];
|
|
1703
1703
|
if (l.trim().includes("输入") && l.trim().includes("输出")) {
|
|
1704
1704
|
let d = [], P = e.trim();
|
|
1705
|
-
P =
|
|
1705
|
+
P = u(P).slice(1, u(P).length - 1);
|
|
1706
1706
|
const o = /(\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})/g;
|
|
1707
1707
|
(C = P.match(o)) == null || C.forEach((r, f) => {
|
|
1708
|
-
var
|
|
1708
|
+
var c;
|
|
1709
1709
|
const b = r;
|
|
1710
1710
|
let p = [];
|
|
1711
|
-
(
|
|
1711
|
+
(c = b.slice(1, b.length - 1).replace(":", "$:").split("$:")) == null || c.forEach((y) => {
|
|
1712
1712
|
var O, E, N;
|
|
1713
1713
|
if (zn.find((A) => y.includes(A)))
|
|
1714
1714
|
if (!y.includes("=="))
|
|
@@ -1832,17 +1832,17 @@ const R = [
|
|
|
1832
1832
|
const d = (a = l.trim().split(",$")) == null ? void 0 : a[0];
|
|
1833
1833
|
d[0] === "[" ? l = d.slice(1, d.length - 1) : l.includes(",$") && (l = (i = l.trim().split(",$")) == null ? void 0 : i[0]);
|
|
1834
1834
|
let P;
|
|
1835
|
-
l.includes("$") ? l =
|
|
1835
|
+
l.includes("$") ? l = u(l) : P = (k = (h = u(l).split("}")) == null ? void 0 : h.filter((o) => o !== "")) == null ? void 0 : k.map((o) => {
|
|
1836
1836
|
let r = o;
|
|
1837
1837
|
return r[0] === "," ? r = r.slice(2, r.length) : r = r.slice(1, r.length), r;
|
|
1838
|
-
}), (g =
|
|
1839
|
-
var r, f, b, p,
|
|
1838
|
+
}), (g = u(P)) == null || g.forEach((o) => {
|
|
1839
|
+
var r, f, b, p, c, y, O, E, N, A;
|
|
1840
1840
|
if (o.includes("==")) {
|
|
1841
1841
|
const D = (O = o == null ? void 0 : o.split(":")) == null ? void 0 : O[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"').replaceAll("'", '"'), v = (E = o == null ? void 0 : o.split(":")) == null ? void 0 : E[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"');
|
|
1842
1842
|
if (Q(v.trim()) ? n.push(JSON.parse(v.trim())) : n.push(JSON.parse(v.replaceAll("'", '"').trim())), D[0] !== "[") {
|
|
1843
1843
|
let T = [];
|
|
1844
1844
|
Q("[" + pe(D) + "]") ? T.push(JSON.parse("[" + pe(D) + "]")) : Q("[" + pe(D).replaceAll("==", ",") + "]") && T.push(JSON.parse("[" + pe(D).replaceAll("==", ",") + "]"));
|
|
1845
|
-
const j =
|
|
1845
|
+
const j = u(T);
|
|
1846
1846
|
j.push(["操作"]), t.push(j);
|
|
1847
1847
|
} else {
|
|
1848
1848
|
const T = (N = D.slice(1, D.length - 1).replaceAll(",", ",|")) == null ? void 0 : N.split("|"), j = (A = lt(T)) == null ? void 0 : A.map((m) => ((m == null ? void 0 : m[m.length - 1]) === "," && (m = m.slice(0, m.length - 1)), m));
|
|
@@ -1852,7 +1852,7 @@ const R = [
|
|
|
1852
1852
|
let F = [];
|
|
1853
1853
|
F.push((L = m.split("==")) == null ? void 0 : L[0].trim().replace(/^"|"$/g, "")), ((Z = m.split("==")) == null ? void 0 : Z[1].trim()[0]) === "[" ? F.push(JSON.parse((W = m.split("==")) == null ? void 0 : W[1].trim())) : F.push([JSON.parse((X = m.split("==")) == null ? void 0 : X[1].trim())]), B.push(F);
|
|
1854
1854
|
});
|
|
1855
|
-
const S =
|
|
1855
|
+
const S = u(B);
|
|
1856
1856
|
S.push(["操作"]), t.push(S);
|
|
1857
1857
|
}
|
|
1858
1858
|
} else {
|
|
@@ -1860,7 +1860,7 @@ const R = [
|
|
|
1860
1860
|
let D = JSON.parse((f = o == null ? void 0 : o.split(":")) == null ? void 0 : f[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"').replaceAll("'", '"'));
|
|
1861
1861
|
Array.isArray(D) || (D = [D]), D.push("操作"), t.push(D);
|
|
1862
1862
|
}
|
|
1863
|
-
Q((b = o == null ? void 0 : o.split(":")) == null ? void 0 : b[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"')) ? n.push(JSON.parse((p = o == null ? void 0 : o.split(":")) == null ? void 0 : p[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"'))) : Q((
|
|
1863
|
+
Q((b = o == null ? void 0 : o.split(":")) == null ? void 0 : b[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"')) ? n.push(JSON.parse((p = o == null ? void 0 : o.split(":")) == null ? void 0 : p[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"'))) : Q((c = o == null ? void 0 : o.split(":")) == null ? void 0 : c[1].replace(/^"|"$/g, "'").replaceAll("'", '"').replace(/'([^']+)'/g, '"$1"')) && n.push(JSON.parse((y = o == null ? void 0 : o.split(":")) == null ? void 0 : y[1].replace(/^"|"$/g, "'").replaceAll("'", '"').replace(/'([^']+)'/g, '"$1"')));
|
|
1864
1864
|
}
|
|
1865
1865
|
});
|
|
1866
1866
|
}
|
|
@@ -1947,21 +1947,21 @@ const R = [
|
|
|
1947
1947
|
};
|
|
1948
1948
|
}, rt = (e) => {
|
|
1949
1949
|
var s;
|
|
1950
|
-
const t = [], n =
|
|
1950
|
+
const t = [], n = u(e).map((a) => {
|
|
1951
1951
|
var i;
|
|
1952
1952
|
if (a != null && a.find((h) => (h == null ? void 0 : h.key) === "contentPath"))
|
|
1953
1953
|
return (i = a == null ? void 0 : a.find((h) => (h == null ? void 0 : h.key) === "contentPath")) == null ? void 0 : i.value;
|
|
1954
1954
|
}).filter((a) => a !== ""), l = [...new Set(n)];
|
|
1955
1955
|
return (s = l == null ? void 0 : l.filter((a) => a)) == null || s.forEach((a) => {
|
|
1956
1956
|
var i;
|
|
1957
|
-
t.push(at((i =
|
|
1957
|
+
t.push(at((i = u(e)) == null ? void 0 : i.filter((h) => h.find((k) => k.key === "contentPath" && k.value === a)), a));
|
|
1958
1958
|
}), t;
|
|
1959
1959
|
}, ot = (e) => {
|
|
1960
1960
|
let t = [];
|
|
1961
1961
|
t.push({
|
|
1962
1962
|
comp: "Menu",
|
|
1963
1963
|
compData: [{
|
|
1964
|
-
contents: Yn(
|
|
1964
|
+
contents: Yn(u(e)),
|
|
1965
1965
|
key: "menuContents"
|
|
1966
1966
|
}],
|
|
1967
1967
|
name: ""
|
|
@@ -1970,9 +1970,9 @@ const R = [
|
|
|
1970
1970
|
return t = [...t, ...rt(n)], t;
|
|
1971
1971
|
}, Dt = (e) => {
|
|
1972
1972
|
var s, a, i, h, k;
|
|
1973
|
-
const t = (i = xe((a = (s =
|
|
1973
|
+
const t = (i = xe((a = (s = u(e)) == null ? void 0 : s.replace("(", "(")) == null ? void 0 : a.replace(")", ")"))) == null ? void 0 : i.filter((g) => g !== ""), n = (k = (h = u(t)) == null ? void 0 : h.filter((g) => !g.includes("/*"))) == null ? void 0 : k.map((g) => Qn(g));
|
|
1974
1974
|
return ot(n);
|
|
1975
|
-
}, ie = U(0), Ce = U(0),
|
|
1975
|
+
}, ie = U(0), Ce = U(0), ct = (e) => {
|
|
1976
1976
|
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 = {};
|
|
1977
1977
|
let s;
|
|
1978
1978
|
for (; (s = n.exec(t)) !== null; ) {
|
|
@@ -1984,11 +1984,11 @@ const R = [
|
|
|
1984
1984
|
}, ol = (e) => {
|
|
1985
1985
|
const [t, n] = e.split("=").map((a) => a.trim()), l = t.replace(/['"]/g, ""), s = n.replace(/^['"]|['"]$/g, "");
|
|
1986
1986
|
return { key: l, value: s };
|
|
1987
|
-
},
|
|
1987
|
+
}, ut = (e) => {
|
|
1988
1988
|
var i;
|
|
1989
1989
|
let t = [];
|
|
1990
1990
|
const [n, l] = e.split(/=(.+)/), s = n.replace(/['"]/g, "").trim(), a = l.replace(/^['"]|['"]$/g, "");
|
|
1991
|
-
return (i = Object.values(
|
|
1991
|
+
return (i = Object.values(ct(a))) == null || i.forEach((h) => {
|
|
1992
1992
|
t.push(ol(h));
|
|
1993
1993
|
}), { key: s, value: t };
|
|
1994
1994
|
}, de = (e) => {
|
|
@@ -1997,23 +1997,23 @@ const R = [
|
|
|
1997
1997
|
} catch {
|
|
1998
1998
|
return !1;
|
|
1999
1999
|
}
|
|
2000
|
-
},
|
|
2000
|
+
}, cl = (e) => {
|
|
2001
2001
|
try {
|
|
2002
2002
|
const t = e.replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",").replace(/:/g, ":").replace(/:\s*(?=,|}|$)/g, ': ""');
|
|
2003
|
-
if (
|
|
2004
|
-
let n =
|
|
2003
|
+
if (u(t).split("{").length - 1 > 1) {
|
|
2004
|
+
let n = u(t).replace(/^\{(.*)\}$/, "[$1]");
|
|
2005
2005
|
if (de(n) && !n.includes("$") || (n = n.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g, '"$1$$$2"')), de(n)) {
|
|
2006
2006
|
const l = JSON.parse(n);
|
|
2007
2007
|
let s = [];
|
|
2008
2008
|
return l == null || l.forEach((a) => {
|
|
2009
2009
|
var i;
|
|
2010
|
-
(i = Object.entries(
|
|
2010
|
+
(i = Object.entries(u(a))) == null || i.forEach((h) => {
|
|
2011
2011
|
ie.value++, s.push({
|
|
2012
2012
|
id: ie.value,
|
|
2013
2013
|
key: (h == null ? void 0 : h[0]) ?? "",
|
|
2014
2014
|
value: (h == null ? void 0 : h[1]) === "" ? "" : h == null ? void 0 : h[1],
|
|
2015
2015
|
// 如果值为空,则key设为空字符串,否则保留原值
|
|
2016
|
-
width: Object.keys(
|
|
2016
|
+
width: Object.keys(u(a)).length
|
|
2017
2017
|
});
|
|
2018
2018
|
});
|
|
2019
2019
|
}), s;
|
|
@@ -2037,39 +2037,39 @@ const R = [
|
|
|
2037
2037
|
try {
|
|
2038
2038
|
if (R != null && R.find((n) => (n == null ? void 0 : n.key) === t))
|
|
2039
2039
|
return JSON.parse(e.replace(/[’]|[‘]|[']/g, '"'));
|
|
2040
|
-
if (
|
|
2041
|
-
const n =
|
|
2040
|
+
if (u(e).split("[").length - 1 > 1) {
|
|
2041
|
+
const n = u(e).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
|
|
2042
2042
|
return JSON.parse(n);
|
|
2043
2043
|
} else {
|
|
2044
|
-
const n =
|
|
2044
|
+
const n = u(e).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",");
|
|
2045
2045
|
if (de(n)) {
|
|
2046
2046
|
const l = JSON.parse(n);
|
|
2047
2047
|
return Array.isArray(l) ? l.map((s) => ({ label: s })) : l;
|
|
2048
2048
|
} else
|
|
2049
|
-
return
|
|
2049
|
+
return cl(u(e));
|
|
2050
2050
|
}
|
|
2051
2051
|
} catch (n) {
|
|
2052
2052
|
return console.error("解析失败:", n), e;
|
|
2053
2053
|
}
|
|
2054
2054
|
}, it = (e) => ({ [e == null ? void 0 : e.key]: pt(e == null ? void 0 : e.value, e == null ? void 0 : e.key) }), ft = (e) => {
|
|
2055
2055
|
try {
|
|
2056
|
-
if (
|
|
2057
|
-
const t =
|
|
2056
|
+
if (u(e).split("[").length - 1 > 1) {
|
|
2057
|
+
const t = u(e).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
|
|
2058
2058
|
return JSON.parse(t);
|
|
2059
2059
|
} else
|
|
2060
|
-
return JSON.parse(
|
|
2060
|
+
return JSON.parse(u(e).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",")).map((n) => ({ label: n }));
|
|
2061
2061
|
} catch (t) {
|
|
2062
2062
|
return console.error("解析失败:", t), e;
|
|
2063
2063
|
}
|
|
2064
|
-
},
|
|
2064
|
+
}, ul = (e) => {
|
|
2065
2065
|
var t, n, l, s, a, i;
|
|
2066
2066
|
try {
|
|
2067
|
-
const h = xe((n = (t =
|
|
2067
|
+
const h = xe((n = (t = u(e)) == null ? void 0 : t.replace("(", "(")) == null ? void 0 : n.replace(")", ")")), k = (l = u(h)) == null ? void 0 : l.map(($) => {
|
|
2068
2068
|
var x, d;
|
|
2069
|
-
let _ = (d = (x =
|
|
2070
|
-
return _ != null && _.includes("GroupContents") ?
|
|
2069
|
+
let _ = (d = (x = u($)) == null ? void 0 : x.split("=")) == null ? void 0 : d[0];
|
|
2070
|
+
return _ != null && _.includes("GroupContents") ? ut($) : ol($);
|
|
2071
2071
|
}), g = [];
|
|
2072
|
-
(s =
|
|
2072
|
+
(s = u(k)) == null || s.forEach(($) => {
|
|
2073
2073
|
var _, x, d, P, o;
|
|
2074
2074
|
R != null && R.find((r) => {
|
|
2075
2075
|
var f, b;
|
|
@@ -2096,30 +2096,30 @@ const R = [
|
|
|
2096
2096
|
contents: $ == null ? void 0 : $.value
|
|
2097
2097
|
}));
|
|
2098
2098
|
}), console.log("newContents", g);
|
|
2099
|
-
let C = (a =
|
|
2099
|
+
let C = (a = u(g)) == null ? void 0 : a.map(($) => {
|
|
2100
2100
|
var _;
|
|
2101
2101
|
return $ != null && $.compData && ($.compData = (_ = $ == null ? void 0 : $.compData) == null ? void 0 : _.map((x) => {
|
|
2102
|
-
var d, P, o, r, f, b, p,
|
|
2102
|
+
var d, P, o, r, f, b, p, c, y, O, E;
|
|
2103
2103
|
if ((x == null ? void 0 : x.key) === "formFlex")
|
|
2104
2104
|
x.contents = ((P = (d = x.contents) == null ? void 0 : d.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : P.toUpperCase()) !== "Vertical".toUpperCase();
|
|
2105
2105
|
else if ((x == null ? void 0 : x.key) === "groupContents")
|
|
2106
|
-
x.contents = (o =
|
|
2107
|
-
else if (((f = (r = x.contents) == null ? void 0 : r.trim()) != null && f.startsWith("[") || (p = (b = x.contents) == null ? void 0 : b.trim()) != null && p.startsWith("【")) && ((y = (
|
|
2108
|
-
x.contents = ft(
|
|
2106
|
+
x.contents = (o = u(x.contents)) == null ? void 0 : o.map((N) => it(u(N)));
|
|
2107
|
+
else if (((f = (r = x.contents) == null ? void 0 : r.trim()) != null && f.startsWith("[") || (p = (b = x.contents) == null ? void 0 : b.trim()) != null && p.startsWith("【")) && ((y = (c = x.contents) == null ? void 0 : c.trim()) != null && y.endsWith("]") || (E = (O = x.contents) == null ? void 0 : O.trim()) != null && E.endsWith("】")))
|
|
2108
|
+
x.contents = ft(u(x.contents));
|
|
2109
2109
|
else {
|
|
2110
2110
|
if (!x.contents) return;
|
|
2111
|
-
x.contents =
|
|
2111
|
+
x.contents = cl(u(x.contents));
|
|
2112
2112
|
}
|
|
2113
2113
|
return x;
|
|
2114
2114
|
})), $;
|
|
2115
2115
|
});
|
|
2116
|
-
return C = (i =
|
|
2116
|
+
return C = (i = u(C)) == null ? void 0 : i.map(($) => {
|
|
2117
2117
|
var _;
|
|
2118
2118
|
return ($ == null ? void 0 : $.comp) === "Group" && ($.compData = (_ = $.compData) == null ? void 0 : _.map((x) => {
|
|
2119
2119
|
var P;
|
|
2120
2120
|
let d = [];
|
|
2121
2121
|
return (P = x.contents) == null || P.forEach((o) => {
|
|
2122
|
-
var r, f, b, p,
|
|
2122
|
+
var r, f, b, p, c, y, O, E, N, A, D, v;
|
|
2123
2123
|
if (R != null && R.find((T) => {
|
|
2124
2124
|
var j, B, S;
|
|
2125
2125
|
return ((j = T == null ? void 0 : T.key) == null ? void 0 : j.toUpperCase()) === ((S = (B = Object.keys(o)) == null ? void 0 : B[0]) == null ? void 0 : S.toUpperCase());
|
|
@@ -2138,14 +2138,14 @@ const R = [
|
|
|
2138
2138
|
})) {
|
|
2139
2139
|
if ((d == null ? void 0 : d.length) === 0) return;
|
|
2140
2140
|
(p = d == null ? void 0 : d[(d == null ? void 0 : d.length) - 1]) != null && p.compData && d[(d == null ? void 0 : d.length) - 1].compData.push({
|
|
2141
|
-
key: (
|
|
2141
|
+
key: (c = J == null ? void 0 : J.find((T) => {
|
|
2142
2142
|
var j, B, S;
|
|
2143
2143
|
return ((j = T == null ? void 0 : T.key) == null ? void 0 : j.toUpperCase()) === ((S = (B = Object.keys(o)) == null ? void 0 : B[0]) == null ? void 0 : S.toUpperCase());
|
|
2144
|
-
})) == null ? void 0 :
|
|
2144
|
+
})) == null ? void 0 : c.value,
|
|
2145
2145
|
contents: (y = Object.values(o)) == null ? void 0 : y[0]
|
|
2146
2146
|
});
|
|
2147
2147
|
} else if ((E = (O = Object.keys(o)) == null ? void 0 : O[0]) != null && E.includes("$")) {
|
|
2148
|
-
const T = (A = (N = Object.keys(
|
|
2148
|
+
const T = (A = (N = Object.keys(u(o))) == null ? void 0 : N[0]) == null ? void 0 : A.split("$");
|
|
2149
2149
|
d[(d == null ? void 0 : d.length) - 1].compData.push({
|
|
2150
2150
|
key: (D = J == null ? void 0 : J.find((j) => {
|
|
2151
2151
|
var B, S;
|
|
@@ -2162,7 +2162,7 @@ const R = [
|
|
|
2162
2162
|
} catch {
|
|
2163
2163
|
return !1;
|
|
2164
2164
|
}
|
|
2165
|
-
}, Nt = (e) =>
|
|
2165
|
+
}, Nt = (e) => ul(e), St = (e) => !!ul(e), dt = kl($e), { itemData: Pt } = qe(dt), yt = gl($e), { systemKey: jt, activeMenuPath: Bt } = qe(yt), se = U(0), Ft = (e) => e.reduce((n, l) => {
|
|
2166
2166
|
var a, i;
|
|
2167
2167
|
const s = Object.values(n);
|
|
2168
2168
|
return (((a = Object.keys(n)) == null ? void 0 : a.length) === 0 || s[s.length - 1].length >= (l == null ? void 0 : l.width)) && (n[se.value] = [], se.value++), n[se.value - 1].push(l), ((i = Object.keys(n)) == null ? void 0 : i.length) === (l == null ? void 0 : l.width) && (n[se.value] = [], se.value++), n;
|