ss-component-new 1.1.158 → 1.1.160
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-CF1EYSXS.js → array-CGHpppnk.js} +156 -150
- package/dist/{array-C8zCM38e.cjs → array-DgXckCfA.cjs} +2 -2
- package/dist/{cloneDeep-Dc2w_Lu-.cjs → cloneDeep-B5dto-gk.cjs} +1 -1
- package/dist/{cloneDeep-B9TiLsmE.js → cloneDeep-CCy-b0IY.js} +1 -1
- package/dist/{formToTable-CmnIz37U.cjs → formToTable-Cd04iFQ6.cjs} +1 -1
- package/dist/{formToTable-B28kxNhk.js → formToTable-CgAw3Par.js} +1 -1
- package/dist/{index-DyT_adTl.js → index-B3RyXYx4.js} +4 -4
- package/dist/{index-Dx9uzuM4.cjs → index-B7M2yD60.cjs} +1 -1
- package/dist/{index-D3ShGz-b.js → index-B97D-s4t.js} +7 -7
- package/dist/{index-ngbkqVWp.js → index-B9FPRzqU.js} +1 -1
- package/dist/{index-D4ZyKx-J.js → index-BD_qMCdC.js} +4 -4
- package/dist/{index-BMobkWUk.js → index-BQXnYfEF.js} +1 -1
- package/dist/index-BVT_QpeJ.cjs +1 -0
- package/dist/{index-CSx5dw6A.js → index-Bi-XV9UR.js} +1 -1
- package/dist/{index-DLX3ew9N.cjs → index-BtJog81O.cjs} +1 -1
- package/dist/{index-CEf1eis_.js → index-BtRIT6Ae.js} +6 -6
- package/dist/{index-ZO9dn127.cjs → index-ByLp8cpz.cjs} +1 -1
- package/dist/{index-BAE5DHbs.cjs → index-C9pTderR.cjs} +1 -1
- package/dist/{index-Bn-fFaQ0.cjs → index-CDWq530B.cjs} +1 -1
- package/dist/{index-CHSuDrCC.js → index-CDzQfiDz.js} +7 -7
- package/dist/{index-4oaP54l6.cjs → index-CVfcr-R7.cjs} +1 -1
- package/dist/{index-9F99HJnT.cjs → index-CZDD-I5Z.cjs} +1 -1
- package/dist/{index-wO8Y6Vhy.js → index-CgNEix0L.js} +6 -6
- package/dist/{index-BTvG_TlS.cjs → index-ChLpP7-o.cjs} +1 -1
- package/dist/{index-CLWDpaPA.js → index-CvkjxCFU.js} +7 -7
- package/dist/index-CzC8CDl5.js +3285 -0
- package/dist/{index-BRnmis9p.js → index-D2r7kzjf.js} +7 -7
- package/dist/{index-C06nP7rT.js → index-D5apkcn5.js} +1 -1
- package/dist/index-D73pgJP6.cjs +1 -0
- package/dist/{index-CoEZVnFp.cjs → index-D7xRNMdQ.cjs} +1 -1
- package/dist/{index-Dc10GzMY.js → index-DFhE9fyQ.js} +6 -6
- package/dist/{index-ClaPKjMY.cjs → index-DGT6ZWc6.cjs} +1 -1
- package/dist/{index-BZFh2O6g.js → index-DNc603JB.js} +165 -161
- package/dist/{index-Ct9IgtJt.cjs → index-DXYG_vqx.cjs} +1 -1
- package/dist/{index-OLMx_d3p.cjs → index-DawvLCqx.cjs} +1 -1
- package/dist/{index-DlXN1Cqe.cjs → index-DfyN3qju.cjs} +1 -1
- package/dist/{index-a20EDdCQ.cjs → index-DggOhVP0.cjs} +1 -1
- package/dist/{index-BolODvJn.js → index-Djjj6UTt.js} +7 -7
- package/dist/{index-CgfHUdXv.cjs → index-Dk1VQkZ1.cjs} +1 -1
- package/dist/index-DmAup3p7.cjs +9 -0
- package/dist/{index-nlIjUSGz.js → index-DmOLuCV8.js} +10 -10
- package/dist/{index-BDMSfJjz.cjs → index-DyNEvxkD.cjs} +1 -1
- package/dist/{index-CggFByLx.js → index-dFQoZFYH.js} +1 -1
- package/dist/{index-DOA8vwcd.js → index-ocXP7HKh.js} +1 -1
- package/dist/{index-Cfu78qcq.cjs → index-pyCx1r6E.cjs} +1 -1
- package/dist/{index-DtVTJ3uF.js → index-zrOqmTVg.js} +137 -131
- package/dist/{index.vue_vue_type_script_setup_true_lang-AW9Z9ebb.cjs → index.vue_vue_type_script_setup_true_lang-Bgdcq6CT.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-UaxxHkMj.js → index.vue_vue_type_script_setup_true_lang-CZRsNsBv.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_baf99455_lang-Bq5WH8y1.js → index.vue_vue_type_style_index_0_scoped_baf99455_lang-BkHFT0yM.js} +12 -12
- package/dist/index.vue_vue_type_style_index_0_scoped_baf99455_lang-BytYU-WU.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-BOx0FpMh.cjs → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-BS9seLFj.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-KZcDy7L7.js → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DSEtEP3a.js} +6 -6
- package/dist/{login-DeHsN52A.js → login-CrDfXp-s.js} +3 -3
- package/dist/{login-CYnubgtI.cjs → login-DrSiL5wa.cjs} +1 -1
- package/dist/{main-C0_fYt9z.cjs → main-Bvdmtnxu.cjs} +1 -1
- package/dist/{main-C7F2zbjR.js → main-DLsE2nIH.js} +6 -6
- package/dist/{menu-CltkqT7g.js → menu-Ba14VNfz.js} +1 -1
- package/dist/{menu-CgAplFgC.cjs → menu-Dy2zMsxX.cjs} +1 -1
- package/dist/{modelComp-P5x7IjI9.js → modelComp-2xoln0bi.js} +1 -1
- package/dist/{modelComp-BcmEYGm9.cjs → modelComp-Bmfim5B0.cjs} +1 -1
- package/dist/{request-CuCamIQ7.js → request-5zUpa42n.js} +1 -1
- package/dist/{request-XLI2NiAW.cjs → request-RlbIzVWt.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +7 -7
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +1 -1
- package/package.json +3 -2
- package/dist/index-BKg6M7MO.cjs +0 -1
- package/dist/index-Bjgg7gom.cjs +0 -6
- package/dist/index-Du2g4zTf.js +0 -2835
- package/dist/index-Ws_Nci0i.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_baf99455_lang-CI5f4aiI.cjs +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { g as
|
|
2
|
-
import { _ as Cl, s as Al } from "./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { g as bl, s as kl } from "./index-DNc603JB.js";
|
|
2
|
+
import { _ as Cl, s as Al } from "./index.vue_vue_type_script_setup_true_lang-CZRsNsBv.js";
|
|
3
3
|
import { ref as L, watch as le, resolveComponent as Ye, createElementBlock as q, openBlock as Z, createElementVNode as w, createVNode as z, toDisplayString as K, withCtx as te, createTextVNode as re, Fragment as de, renderList as _e, createBlock as Ne, resolveDynamicComponent as Se, createCommentVNode as $l } from "vue";
|
|
4
|
-
import { s as oe, a as Ve, b as Ol } from "./index-
|
|
5
|
-
import { _ as
|
|
6
|
-
import { U as Pe, g as Be, a as Ue, i as je, S as ke, b as _l, c as p } from "./cloneDeep-
|
|
4
|
+
import { s as oe, a as Ve, b as Ol } from "./index-CzC8CDl5.js";
|
|
5
|
+
import { _ as ge } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
import { U as Pe, g as Be, a as Ue, i as je, S as ke, b as _l, c as p } from "./cloneDeep-CCy-b0IY.js";
|
|
7
7
|
import { _ as vl } from "./index.vue_vue_type_script_setup_true_lang-DQ2k4Z7D.js";
|
|
8
|
-
import { g as Fe } from "./index-
|
|
9
|
-
import { p as xe, a as xl } from "./request-
|
|
10
|
-
import { u as el } from "./modelComp-
|
|
11
|
-
import { M as Tl, S as Je, e as El, i as Le, b as Re } from "./index-
|
|
12
|
-
import { s as ll, u as Dl } from "./menu-
|
|
8
|
+
import { g as Fe } from "./index-B9FPRzqU.js";
|
|
9
|
+
import { p as xe, a as xl } from "./request-5zUpa42n.js";
|
|
10
|
+
import { u as el } from "./modelComp-2xoln0bi.js";
|
|
11
|
+
import { M as Tl, S as Je, e as El, i as Le, b as Re } from "./index-Djjj6UTt.js";
|
|
12
|
+
import { s as ll, u as Dl } from "./menu-Ba14VNfz.js";
|
|
13
13
|
var Nl = "__lodash_hash_undefined__";
|
|
14
14
|
function Sl(e) {
|
|
15
15
|
return this.__data__.set(e, Nl), this;
|
|
@@ -53,9 +53,9 @@ function tl(e, t, n, l, a, s) {
|
|
|
53
53
|
break;
|
|
54
54
|
}
|
|
55
55
|
if (_) {
|
|
56
|
-
if (!Bl(t, function(f,
|
|
57
|
-
if (!Ul(_,
|
|
58
|
-
return _.push(
|
|
56
|
+
if (!Bl(t, function(f, g) {
|
|
57
|
+
if (!Ul(_, g) && (C === f || a(C, f, n, l, s)))
|
|
58
|
+
return _.push(g);
|
|
59
59
|
})) {
|
|
60
60
|
A = !1;
|
|
61
61
|
break;
|
|
@@ -132,10 +132,10 @@ function tt(e, t, n, l, a, s) {
|
|
|
132
132
|
s.set(e, t), s.set(t, e);
|
|
133
133
|
for (var m = r; ++O < d; ) {
|
|
134
134
|
A = u[O];
|
|
135
|
-
var f = e[A],
|
|
135
|
+
var f = e[A], g = t[A];
|
|
136
136
|
if (l)
|
|
137
|
-
var k = r ? l(
|
|
138
|
-
if (!(k === void 0 ? f ===
|
|
137
|
+
var k = r ? l(g, f, A, t, e, s) : l(f, g, A, e, t, s);
|
|
138
|
+
if (!(k === void 0 ? f === g || a(f, g, n, l, s) : k)) {
|
|
139
139
|
N = !1;
|
|
140
140
|
break;
|
|
141
141
|
}
|
|
@@ -313,38 +313,38 @@ const ot = { class: "table-operate-content" }, ct = { class: "table-operate-item
|
|
|
313
313
|
() => n.originalItemContents,
|
|
314
314
|
() => {
|
|
315
315
|
var c, o, i, $, v, P, x, U, G, T, S, D, E;
|
|
316
|
-
!n.originalItemContents || n.originalItemContents.length === 0 || (a.value = p(n.originalItemContents), s.value = (o = (c = a.value) == null ? void 0 : c.find((
|
|
316
|
+
!n.originalItemContents || n.originalItemContents.length === 0 || (a.value = p(n.originalItemContents), s.value = (o = (c = a.value) == null ? void 0 : c.find((b) => (b == null ? void 0 : b.key) === "header")) == null ? void 0 : o.contents, r.value = ($ = (i = a.value) == null ? void 0 : i.find((b) => (b == null ? void 0 : b.key) === "rowButton")) == null ? void 0 : $.contents, u.value = (P = (v = a.value) == null ? void 0 : v.find((b) => (b == null ? void 0 : b.key) === "extraButton")) == null ? void 0 : P.contents, O.value = (U = (x = a.value) == null ? void 0 : x.find((b) => (b == null ? void 0 : b.key) === "page")) != null && U.contents ? [{
|
|
317
317
|
name: "isPagination",
|
|
318
318
|
label: "是否显示分页",
|
|
319
319
|
type: "Switch",
|
|
320
|
-
value: (T = (G = a.value) == null ? void 0 : G.find((
|
|
320
|
+
value: (T = (G = a.value) == null ? void 0 : G.find((b) => (b == null ? void 0 : b.key) === "page")) == null ? void 0 : T.contents
|
|
321
321
|
}] : [{
|
|
322
322
|
name: "isPagination",
|
|
323
323
|
label: "是否显示分页",
|
|
324
324
|
type: "Switch",
|
|
325
325
|
value: !0
|
|
326
|
-
}], s.value = (S = s.value) == null ? void 0 : S.map((
|
|
327
|
-
label: (
|
|
328
|
-
prop: (
|
|
329
|
-
width:
|
|
330
|
-
fixed: (
|
|
331
|
-
sortable: (
|
|
332
|
-
align: (
|
|
333
|
-
showOverflowTooltip: (
|
|
334
|
-
isNotDrag: (
|
|
335
|
-
isEditCol: (
|
|
336
|
-
isOperate: (
|
|
337
|
-
id: (
|
|
338
|
-
}), r.value = (D = r.value) == null ? void 0 : D.map((
|
|
339
|
-
label: (
|
|
340
|
-
type: (
|
|
341
|
-
textColor: (
|
|
342
|
-
id: (
|
|
343
|
-
}), u.value = (E = u.value) == null ? void 0 : E.map((
|
|
344
|
-
label: (
|
|
345
|
-
type: (
|
|
346
|
-
background: (
|
|
347
|
-
id: (
|
|
326
|
+
}], s.value = (S = s.value) == null ? void 0 : S.map((b, B) => b = {
|
|
327
|
+
label: (b == null ? void 0 : b.label) ?? "",
|
|
328
|
+
prop: (b == null ? void 0 : b.label) === "操作" ? "operate" : b == null ? void 0 : b.prop,
|
|
329
|
+
width: b != null && b.width ? parseInt(b.width) : "",
|
|
330
|
+
fixed: (b == null ? void 0 : b.fixed) ?? void 0,
|
|
331
|
+
sortable: (b == null ? void 0 : b.sortable) ?? !1,
|
|
332
|
+
align: (b == null ? void 0 : b.align) ?? "center",
|
|
333
|
+
showOverflowTooltip: (b == null ? void 0 : b.showOverflowTooltip) ?? !0,
|
|
334
|
+
isNotDrag: (b == null ? void 0 : b.isNotDrag) ?? !1,
|
|
335
|
+
isEditCol: (b == null ? void 0 : b.isEditCol) ?? !1,
|
|
336
|
+
isOperate: (b == null ? void 0 : b.isOperate) ?? !1,
|
|
337
|
+
id: (b == null ? void 0 : b.id) ?? B
|
|
338
|
+
}), r.value = (D = r.value) == null ? void 0 : D.map((b, B) => b = {
|
|
339
|
+
label: (b == null ? void 0 : b.label) ?? "",
|
|
340
|
+
type: (b == null ? void 0 : b.type) ?? "",
|
|
341
|
+
textColor: (b == null ? void 0 : b.textColor) ?? "#000000",
|
|
342
|
+
id: (b == null ? void 0 : b.id) ?? B
|
|
343
|
+
}), u.value = (E = u.value) == null ? void 0 : E.map((b, B) => b = {
|
|
344
|
+
label: (b == null ? void 0 : b.label) ?? "",
|
|
345
|
+
type: (b == null ? void 0 : b.type) ?? "",
|
|
346
|
+
background: (b == null ? void 0 : b.textColor) ?? "#FFFFFF",
|
|
347
|
+
id: (b == null ? void 0 : b.id) ?? B
|
|
348
348
|
}));
|
|
349
349
|
},
|
|
350
350
|
{ deep: !0, immediate: !0 }
|
|
@@ -419,7 +419,7 @@ const ot = { class: "table-operate-content" }, ct = { class: "table-operate-item
|
|
|
419
419
|
r.value = o.filter((v) => v.id !== c.id);
|
|
420
420
|
const $ = i == null ? void 0 : i.find((v) => v.key === "rowButton");
|
|
421
421
|
$ != null && $.contents && (i = i == null ? void 0 : i.map((v) => ((v == null ? void 0 : v.key) === "rowButton" && (v.contents = o.filter((P) => P.id !== c.id)), v))), a.value = i;
|
|
422
|
-
},
|
|
422
|
+
}, g = (c) => {
|
|
423
423
|
const o = p(y.value);
|
|
424
424
|
let i = p(a.value);
|
|
425
425
|
y.value = o.filter((v) => v.id !== c.id);
|
|
@@ -516,7 +516,7 @@ const ot = { class: "table-operate-content" }, ct = { class: "table-operate-item
|
|
|
516
516
|
isShowEdit: !1,
|
|
517
517
|
isMoveColumn: !1,
|
|
518
518
|
tableData: y.value,
|
|
519
|
-
onDeleteRow:
|
|
519
|
+
onDeleteRow: g
|
|
520
520
|
}, null, 8, ["columns", "tableData"])
|
|
521
521
|
]),
|
|
522
522
|
o[6] || (o[6] = w("div", { class: "operate-title" }, [
|
|
@@ -532,7 +532,7 @@ const ot = { class: "table-operate-content" }, ct = { class: "table-operate-item
|
|
|
532
532
|
]);
|
|
533
533
|
};
|
|
534
534
|
}
|
|
535
|
-
},
|
|
535
|
+
}, gt = /* @__PURE__ */ ge(mt, [["__scopeId", "data-v-877911eb"]]), bt = { class: "form-operate-content" }, kt = { class: "form-operate-item" }, Ct = { class: "operate-title" }, At = { class: "operate-content" }, $t = { class: "operate-title" }, Ot = { class: "operate-content" }, _t = { class: "operate-content" }, vt = {
|
|
536
536
|
__name: "operate",
|
|
537
537
|
props: {
|
|
538
538
|
itemContents: {
|
|
@@ -594,8 +594,8 @@ const ot = { class: "table-operate-content" }, ct = { class: "table-operate-item
|
|
|
594
594
|
le(
|
|
595
595
|
() => n.originalItemContents,
|
|
596
596
|
() => {
|
|
597
|
-
var m, f,
|
|
598
|
-
!n.originalItemContents || n.originalItemContents.length === 0 || (d.value = p(n.originalItemContents), y.value = (f = (m = d.value) == null ? void 0 : m.find((x) => (x == null ? void 0 : x.key) === "formContent")) == null ? void 0 : f.contents, u.value = (k = (
|
|
597
|
+
var m, f, g, k, c, o, i, $, v, P;
|
|
598
|
+
!n.originalItemContents || n.originalItemContents.length === 0 || (d.value = p(n.originalItemContents), y.value = (f = (m = d.value) == null ? void 0 : m.find((x) => (x == null ? void 0 : x.key) === "formContent")) == null ? void 0 : f.contents, u.value = (k = (g = d.value) == null ? void 0 : g.find((x) => (x == null ? void 0 : x.key) === "formButton")) == null ? void 0 : k.contents, y.value = (c = y.value) == null ? void 0 : c.map((x, U) => x = {
|
|
599
599
|
label: (x == null ? void 0 : x.label) ?? "",
|
|
600
600
|
type: (x == null ? void 0 : x.type) ?? "",
|
|
601
601
|
key: (x == null ? void 0 : x.key) ?? "",
|
|
@@ -629,8 +629,8 @@ const ot = { class: "table-operate-content" }, ct = { class: "table-operate-item
|
|
|
629
629
|
background: "#000000",
|
|
630
630
|
id: h.value
|
|
631
631
|
}), u.value = m, h.value++;
|
|
632
|
-
const
|
|
633
|
-
|
|
632
|
+
const g = f == null ? void 0 : f.find((k) => (k == null ? void 0 : k.key) === "formButton");
|
|
633
|
+
g != null && g.contents ? (g.contents = m, f = f == null ? void 0 : f.map((k) => ((k == null ? void 0 : k.key) === "formButton" && (k.contents = m), k))) : f.push({
|
|
634
634
|
key: "formButton",
|
|
635
635
|
contents: m
|
|
636
636
|
}), d.value = f;
|
|
@@ -644,27 +644,27 @@ const ot = { class: "table-operate-content" }, ct = { class: "table-operate-item
|
|
|
644
644
|
options: "",
|
|
645
645
|
id: h.value
|
|
646
646
|
}), y.value = m, h.value++;
|
|
647
|
-
const
|
|
648
|
-
|
|
647
|
+
const g = f == null ? void 0 : f.find((k) => (k == null ? void 0 : k.key) === "formContent");
|
|
648
|
+
g != null && g.contents ? (g.contents = m, f = f == null ? void 0 : f.map((k) => ((k == null ? void 0 : k.key) === "formContent" && (k.contents = m), k))) : f.push({
|
|
649
649
|
key: "formContent",
|
|
650
650
|
contents: m
|
|
651
651
|
}), d.value = f;
|
|
652
652
|
}, _ = (m) => {
|
|
653
653
|
const f = p(u.value);
|
|
654
|
-
let
|
|
654
|
+
let g = p(d.value);
|
|
655
655
|
u.value = f.filter((c) => c.id !== m.id);
|
|
656
|
-
const k =
|
|
657
|
-
k != null && k.contents && (
|
|
656
|
+
const k = g == null ? void 0 : g.find((c) => c.key === "formButton");
|
|
657
|
+
k != null && k.contents && (g = g == null ? void 0 : g.map((c) => ((c == null ? void 0 : c.key) === "formButton" && (c.contents = f.filter((o) => o.id !== m.id)), c))), d.value = g;
|
|
658
658
|
}, C = (m) => {
|
|
659
659
|
const f = p(y.value);
|
|
660
|
-
let
|
|
660
|
+
let g = p(d.value);
|
|
661
661
|
y.value = f.filter((c) => c.id !== m.id);
|
|
662
|
-
const k =
|
|
663
|
-
k != null && k.contents && (
|
|
662
|
+
const k = g == null ? void 0 : g.find((c) => c.key === "formContent");
|
|
663
|
+
k != null && k.contents && (g = g == null ? void 0 : g.map((c) => ((c == null ? void 0 : c.key) === "formContent" && (c.contents = f.filter((o) => o.id !== m.id)), c))), d.value = g;
|
|
664
664
|
}, N = (m) => {
|
|
665
665
|
let f = p(d.value);
|
|
666
|
-
const
|
|
667
|
-
(
|
|
666
|
+
const g = f == null ? void 0 : f.find((k) => k.key === "formFlex");
|
|
667
|
+
(g == null ? void 0 : g.contents) !== void 0 ? f = f == null ? void 0 : f.map((k) => ((k == null ? void 0 : k.key) === "formFlex" && (k.contents = m == null ? void 0 : m.isRowFlex), k)) : f.push({
|
|
668
668
|
key: "formFlex",
|
|
669
669
|
contents: m == null ? void 0 : m.isRowFlex
|
|
670
670
|
}), d.value = f;
|
|
@@ -673,20 +673,20 @@ const ot = { class: "table-operate-content" }, ct = { class: "table-operate-item
|
|
|
673
673
|
() => [d.value, y.value],
|
|
674
674
|
() => {
|
|
675
675
|
let m = p(d.value);
|
|
676
|
-
const f = m == null ? void 0 : m.find((
|
|
677
|
-
f != null && f.contents ? (f.contents = y.value, m = m == null ? void 0 : m.map((
|
|
676
|
+
const f = m == null ? void 0 : m.find((g) => (g == null ? void 0 : g.key) === "formContent");
|
|
677
|
+
f != null && f.contents ? (f.contents = y.value, m = m == null ? void 0 : m.map((g) => ((g == null ? void 0 : g.key) === "formContent" && (g.contents = y.value), g))) : m.push({
|
|
678
678
|
key: "formContent",
|
|
679
679
|
contents: y.value
|
|
680
680
|
}), l("change", m);
|
|
681
681
|
},
|
|
682
682
|
{ deep: !0, immediate: !0 }
|
|
683
683
|
), (m, f) => {
|
|
684
|
-
const
|
|
685
|
-
return Z(), q("div",
|
|
684
|
+
const g = Ye("el-button");
|
|
685
|
+
return Z(), q("div", bt, [
|
|
686
686
|
w("div", kt, [
|
|
687
687
|
w("div", Ct, [
|
|
688
688
|
f[1] || (f[1] = w("div", null, K("表单信息"), -1)),
|
|
689
|
-
z(
|
|
689
|
+
z(g, {
|
|
690
690
|
class: "blue-operate-button",
|
|
691
691
|
icon: "ele-Plus",
|
|
692
692
|
onClick: A
|
|
@@ -710,7 +710,7 @@ const ot = { class: "table-operate-content" }, ct = { class: "table-operate-item
|
|
|
710
710
|
]),
|
|
711
711
|
w("div", $t, [
|
|
712
712
|
f[3] || (f[3] = w("div", null, K("表单按钮"), -1)),
|
|
713
|
-
z(
|
|
713
|
+
z(g, {
|
|
714
714
|
class: "blue-operate-button",
|
|
715
715
|
icon: "ele-Plus",
|
|
716
716
|
onClick: O
|
|
@@ -745,7 +745,7 @@ const ot = { class: "table-operate-content" }, ct = { class: "table-operate-item
|
|
|
745
745
|
]);
|
|
746
746
|
};
|
|
747
747
|
}
|
|
748
|
-
}, xt = /* @__PURE__ */
|
|
748
|
+
}, xt = /* @__PURE__ */ ge(vt, [["__scopeId", "data-v-a36b8468"]]), Tt = { class: "extra-content" }, Et = { key: 0 }, Dt = { key: 1 }, Nt = {
|
|
749
749
|
__name: "index",
|
|
750
750
|
props: {
|
|
751
751
|
itemData: {
|
|
@@ -794,8 +794,8 @@ const ot = { class: "table-operate-content" }, ct = { class: "table-operate-item
|
|
|
794
794
|
const c = (x = (P = Object.values(p(d.value))) == null ? void 0 : P[0]) == null ? void 0 : x.filter((T) => (T == null ? void 0 : T.key) === "tableContentName"), o = (G = (U = Object.values(p(d.value))) == null ? void 0 : U[0]) == null ? void 0 : G.filter((T) => (T == null ? void 0 : T.key) !== "tableContentName"), i = o == null ? void 0 : o.map((T, S) => {
|
|
795
795
|
var D;
|
|
796
796
|
return S === k.index && (T == null ? void 0 : T.comp) === "Table" && (T.compData = (D = T.compData) == null ? void 0 : D.map((E) => {
|
|
797
|
-
var
|
|
798
|
-
return (E == null ? void 0 : E.key) === "tableContents" && (E.contents = (B = (
|
|
797
|
+
var b, B;
|
|
798
|
+
return (E == null ? void 0 : E.key) === "tableContents" && (E.contents = (B = (b = k.content) == null ? void 0 : b.map((j) => {
|
|
799
799
|
let M = {};
|
|
800
800
|
for (let W in j)
|
|
801
801
|
W !== "id" && (M[W] = j[W]);
|
|
@@ -832,12 +832,12 @@ const ot = { class: "table-operate-content" }, ct = { class: "table-operate-item
|
|
|
832
832
|
u.value = !1, d.value = {}, y.value = {}, h.value = void 0;
|
|
833
833
|
}, f = (k) => {
|
|
834
834
|
r("change", k, "methodData");
|
|
835
|
-
},
|
|
835
|
+
}, g = (k) => Rt(k);
|
|
836
836
|
return (k, c) => (Z(), q(de, null, [
|
|
837
837
|
w("div", Tt, [
|
|
838
838
|
(Z(!0), q(de, null, _e(a.value, (o, i) => (Z(), q("div", { key: l.value }, [
|
|
839
839
|
(o == null ? void 0 : o.key) === "extra" ? (Z(), q("div", Et)) : (Z(), q("div", Dt, [
|
|
840
|
-
(Z(), Ne(Se(
|
|
840
|
+
(Z(), Ne(Se(g(o.comp)), {
|
|
841
841
|
itemData: o == null ? void 0 : o.compData,
|
|
842
842
|
childItemData: o == null ? void 0 : o.itemChildData,
|
|
843
843
|
key: i,
|
|
@@ -857,7 +857,7 @@ const ot = { class: "table-operate-content" }, ct = { class: "table-operate-item
|
|
|
857
857
|
key: i,
|
|
858
858
|
class: "extra-dialog"
|
|
859
859
|
}, [
|
|
860
|
-
(Z(), Ne(Se(
|
|
860
|
+
(Z(), Ne(Se(g(o.comp)), {
|
|
861
861
|
itemData: o == null ? void 0 : o.compData,
|
|
862
862
|
onChange: A,
|
|
863
863
|
childItemData: o == null ? void 0 : o.itemChildData,
|
|
@@ -884,11 +884,11 @@ const ot = { class: "table-operate-content" }, ct = { class: "table-operate-item
|
|
|
884
884
|
}, 8, ["visible"])
|
|
885
885
|
], 64));
|
|
886
886
|
}
|
|
887
|
-
}, St = /* @__PURE__ */
|
|
887
|
+
}, St = /* @__PURE__ */ ge(Nt, [["__scopeId", "data-v-e3e0f29d"]]), Ie = (e) => {
|
|
888
888
|
let t = [];
|
|
889
889
|
function n(a) {
|
|
890
890
|
a == null || a.forEach((s) => {
|
|
891
|
-
s == null || s.forEach((r) => {
|
|
891
|
+
Array.isArray(s) || (s = [s]), s == null || s.forEach((r) => {
|
|
892
892
|
!(r != null && r.children) || r.children.length === 0 ? t.push(r.label) : l(r.children);
|
|
893
893
|
});
|
|
894
894
|
});
|
|
@@ -947,12 +947,12 @@ const ot = { class: "table-operate-content" }, ct = { class: "table-operate-item
|
|
|
947
947
|
})) == null ? void 0 : O.filter((A) => A.key), h;
|
|
948
948
|
});
|
|
949
949
|
}, s = async (r) => {
|
|
950
|
-
var m, f,
|
|
950
|
+
var m, f, g, k, c, o;
|
|
951
951
|
let u = {};
|
|
952
952
|
if ((m = p(r.content)) == null || m.forEach((i, $) => {
|
|
953
|
-
var v, P, x, U, G, T, S, D, E,
|
|
953
|
+
var v, P, x, U, G, T, S, D, E, b, B, j, M, W, Q, V, ae;
|
|
954
954
|
if ((i == null ? void 0 : i.comp) === "Table") {
|
|
955
|
-
let ee = (U = (x = (P = (v = i == null ? void 0 : i.compData) == null ? void 0 : v.find((R) => (R == null ? void 0 : R.key) === "header")) == null ? void 0 : P.contents) == null ? void 0 : x[0]) == null ? void 0 : U.some((R) => R == null ? void 0 : R.children), H = (S = (T = (G = i == null ? void 0 : i.compData) == null ? void 0 : G.find((R) => (R == null ? void 0 : R.key) === "tableContents")) == null ? void 0 : T.contents) == null ? void 0 : S.map((R) => R.slice(1)), I = (j = (B = (
|
|
955
|
+
let ee = (U = (x = (P = (v = i == null ? void 0 : i.compData) == null ? void 0 : v.find((R) => (R == null ? void 0 : R.key) === "header")) == null ? void 0 : P.contents) == null ? void 0 : x[0]) == null ? void 0 : U.some((R) => R == null ? void 0 : R.children), H = (S = (T = (G = i == null ? void 0 : i.compData) == null ? void 0 : G.find((R) => (R == null ? void 0 : R.key) === "tableContents")) == null ? void 0 : T.contents) == null ? void 0 : S.map((R) => R.slice(1)), I = (j = (B = (b = (E = (D = i == null ? void 0 : i.compData) == null ? void 0 : D.find((R) => (R == null ? void 0 : R.key) === "header")) == null ? void 0 : E.contents) == null ? void 0 : b[0]) == null ? void 0 : B[0]) == null ? void 0 : j.label, X = (Q = (W = (M = i == null ? void 0 : i.compData) == null ? void 0 : M.find((R) => (R == null ? void 0 : R.key) === "header")) == null ? void 0 : W.contents) == null ? void 0 : Q[0];
|
|
956
956
|
if (ee)
|
|
957
957
|
u[I] = a(H, X);
|
|
958
958
|
else {
|
|
@@ -990,7 +990,7 @@ const ot = { class: "table-operate-content" }, ct = { class: "table-operate-item
|
|
|
990
990
|
});
|
|
991
991
|
var d = new Blob([i.data], {
|
|
992
992
|
type: "application/octet-stream;charset=UTF-8"
|
|
993
|
-
}), y = i.headers["content-disposition"], h = new RegExp("filename=([^;]+\\.[^\\.;]+);*"), O = h.exec(y), A = ((c = (k = (
|
|
993
|
+
}), y = i.headers["content-disposition"], h = new RegExp("filename=([^;]+\\.[^\\.;]+);*"), O = h.exec(y), A = ((c = (k = (g = r == null ? void 0 : r.extraContent) == null ? void 0 : g[0]) == null ? void 0 : k.split(".")) == null ? void 0 : c[0]) + "." + ((o = O[1].split(".")) == null ? void 0 : o[1]), _ = document.createElement("a"), C = window.URL.createObjectURL(d), N = /^["](.*)["]$/g;
|
|
994
994
|
_.style.display = "none", _.href = C, _.download = decodeURI(A.replace(N, "$1")), document.body.appendChild(_), _.click(), document.body.removeChild(_), window.URL.revokeObjectURL(C);
|
|
995
995
|
}
|
|
996
996
|
};
|
|
@@ -999,7 +999,7 @@ const ot = { class: "table-operate-content" }, ct = { class: "table-operate-item
|
|
|
999
999
|
async () => {
|
|
1000
1000
|
var y;
|
|
1001
1001
|
const r = p(n.itemData), u = r == null ? void 0 : r.map(async (h) => {
|
|
1002
|
-
var m, f,
|
|
1002
|
+
var m, f, g, k, c, o;
|
|
1003
1003
|
const A = (m = (await Fe({
|
|
1004
1004
|
key: {
|
|
1005
1005
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
@@ -1011,9 +1011,9 @@ const ot = { class: "table-operate-content" }, ct = { class: "table-operate-item
|
|
|
1011
1011
|
key: {
|
|
1012
1012
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
1013
1013
|
type: "methodData",
|
|
1014
|
-
tableId: A.id
|
|
1014
|
+
tableId: A == null ? void 0 : A.id
|
|
1015
1015
|
}
|
|
1016
|
-
}), C = await
|
|
1016
|
+
}), C = await bl((f = h == null ? void 0 : h.value) == null ? void 0 : f[0], sessionStorage.getItem("systemKey"), ""), N = (g = _.data.result) == null ? void 0 : g[0];
|
|
1017
1017
|
return {
|
|
1018
1018
|
buttonName: (k = A == null ? void 0 : A.key) == null ? void 0 : k.methodKey,
|
|
1019
1019
|
api: (o = (c = N == null ? void 0 : N.value) == null ? void 0 : c.tableData) == null ? void 0 : o[0],
|
|
@@ -1040,7 +1040,7 @@ const ot = { class: "table-operate-content" }, ct = { class: "table-operate-item
|
|
|
1040
1040
|
]))), 256))
|
|
1041
1041
|
]));
|
|
1042
1042
|
}
|
|
1043
|
-
}, Jt = /* @__PURE__ */
|
|
1043
|
+
}, Jt = /* @__PURE__ */ ge(Ft, [["__scopeId", "data-v-f53410db"]]), Hn = L([
|
|
1044
1044
|
{
|
|
1045
1045
|
name: "表格",
|
|
1046
1046
|
type: "table",
|
|
@@ -1062,14 +1062,20 @@ const ot = { class: "table-operate-content" }, ct = { class: "table-operate-item
|
|
|
1062
1062
|
{
|
|
1063
1063
|
name: "头像",
|
|
1064
1064
|
type: "avatar",
|
|
1065
|
-
comp: "
|
|
1065
|
+
comp: "AvatarUpload",
|
|
1066
1066
|
icon: "Avatar"
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
name: "签名",
|
|
1070
|
+
type: "signature",
|
|
1071
|
+
comp: "Signature",
|
|
1072
|
+
icon: "Signature"
|
|
1067
1073
|
}
|
|
1068
1074
|
]), Lt = {
|
|
1069
1075
|
TABLE: kl,
|
|
1070
1076
|
FORM: Al,
|
|
1071
|
-
|
|
1072
|
-
|
|
1077
|
+
TABLEOPERATE: gt,
|
|
1078
|
+
FORMOPERATE: xt,
|
|
1073
1079
|
FOLD: vl,
|
|
1074
1080
|
CALCULATOR: St,
|
|
1075
1081
|
METHODBUTTON: Jt,
|
|
@@ -1168,8 +1174,8 @@ const J = [
|
|
|
1168
1174
|
var s, r, u, d;
|
|
1169
1175
|
let a = ((r = (s = l.slice(1, -1)) == null ? void 0 : s.split(",")) == null ? void 0 : r.length) ?? 1;
|
|
1170
1176
|
(d = (u = l.slice(1, -1)) == null ? void 0 : u.split(",")) == null || d.forEach((y) => {
|
|
1171
|
-
var _, C, N, m, f,
|
|
1172
|
-
let h = y == null ? void 0 : y.split(":"), O = h != null && h[0] ? (h == null ? void 0 : h[1].split("$").length) - 1 === 1 ? ((_ = h == null ? void 0 : h[0]) == null ? void 0 : _.replace(/^"(.*)"$/, "$1")) + ((C = h == null ? void 0 : h[1]) == null ? void 0 : C.replace(/^"(.*)"$/, "$1")) : Array.isArray((m = (N = h == null ? void 0 : h[1]) == null ? void 0 : N.replace(/^"(.*)"$/, "$1")) == null ? void 0 : m.split("(")) && ((k = (
|
|
1177
|
+
var _, C, N, m, f, g, k, c, o, i, $, v, P;
|
|
1178
|
+
let h = y == null ? void 0 : y.split(":"), O = h != null && h[0] ? (h == null ? void 0 : h[1].split("$").length) - 1 === 1 ? ((_ = h == null ? void 0 : h[0]) == null ? void 0 : _.replace(/^"(.*)"$/, "$1")) + ((C = h == null ? void 0 : h[1]) == null ? void 0 : C.replace(/^"(.*)"$/, "$1")) : Array.isArray((m = (N = h == null ? void 0 : h[1]) == null ? void 0 : N.replace(/^"(.*)"$/, "$1")) == null ? void 0 : m.split("(")) && ((k = (g = (f = h == null ? void 0 : h[1]) == null ? void 0 : f.replace(/^"(.*)"$/, "$1")) == null ? void 0 : g.split("(")) == null ? void 0 : k.length) > 1 ? ((c = h == null ? void 0 : h[0]) == null ? void 0 : c.replace(/^"(.*)"$/, "$1")) + (($ = (i = (o = h == null ? void 0 : h[1]) == null ? void 0 : o.replace(/^"(.*)"$/, "$1")) == null ? void 0 : i.split("(")) == null ? void 0 : $[0]) + "()" : (v = h == null ? void 0 : h[0]) == null ? void 0 : v.replace(/^"(.*)"$/, "$1") : "", A = (h == null ? void 0 : h[1].split("$").length) - 1 === 0 ? (P = h == null ? void 0 : h[1]) == null ? void 0 : P.replace(/^"(.*)"$/, "$1") : "";
|
|
1173
1179
|
ne.value++, t.push({
|
|
1174
1180
|
id: ne.value,
|
|
1175
1181
|
key: O,
|
|
@@ -1349,7 +1355,7 @@ const J = [
|
|
|
1349
1355
|
if (((s = O == null ? void 0 : O.find((C) => (C == null ? void 0 : C.key) === "Menus")) == null ? void 0 : s.value.length) === 0)
|
|
1350
1356
|
return !1;
|
|
1351
1357
|
(r = p(O)) == null || r.forEach((C) => {
|
|
1352
|
-
var N, m, f,
|
|
1358
|
+
var N, m, f, g, k;
|
|
1353
1359
|
J != null && J.find((c) => {
|
|
1354
1360
|
var o, i;
|
|
1355
1361
|
return ((o = c == null ? void 0 : c.key) == null ? void 0 : o.toUpperCase()) === ((i = C == null ? void 0 : C.key) == null ? void 0 : i.toUpperCase());
|
|
@@ -1367,7 +1373,7 @@ const J = [
|
|
|
1367
1373
|
comp: "Menu",
|
|
1368
1374
|
name: "",
|
|
1369
1375
|
compData: []
|
|
1370
|
-
}), (
|
|
1376
|
+
}), (g = A == null ? void 0 : A[(A == null ? void 0 : A.length) - 1]) != null && g.compData && A[(A == null ? void 0 : A.length) - 1].compData.push({
|
|
1371
1377
|
key: (k = F == null ? void 0 : F.find((c) => {
|
|
1372
1378
|
var o, i;
|
|
1373
1379
|
return ((o = c == null ? void 0 : c.key) == null ? void 0 : o.toUpperCase()) === ((i = C == null ? void 0 : C.key) == null ? void 0 : i.toUpperCase());
|
|
@@ -1378,9 +1384,9 @@ const J = [
|
|
|
1378
1384
|
let _ = (u = p(A)) == null ? void 0 : u.map((C) => {
|
|
1379
1385
|
var N;
|
|
1380
1386
|
return C != null && C.compData && (C.compData = (N = C == null ? void 0 : C.compData) == null ? void 0 : N.map((m) => {
|
|
1381
|
-
var f,
|
|
1387
|
+
var f, g, k, c, o, i, $, v, P, x, U;
|
|
1382
1388
|
if ((m == null ? void 0 : m.key) === "formFlex")
|
|
1383
|
-
m.contents = ((
|
|
1389
|
+
m.contents = ((g = (f = m.contents) == null ? void 0 : f.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : g.toUpperCase()) !== "Vertical".toUpperCase();
|
|
1384
1390
|
else if ((m == null ? void 0 : m.key) === "groupContents")
|
|
1385
1391
|
m.contents = (k = p(m.contents)) == null ? void 0 : k.map((G) => Wt(p(G)));
|
|
1386
1392
|
else if (Array.isArray(m == null ? void 0 : m.contents))
|
|
@@ -1397,40 +1403,40 @@ const J = [
|
|
|
1397
1403
|
return _ = (d = p(_)) == null ? void 0 : d.map((C) => {
|
|
1398
1404
|
var N;
|
|
1399
1405
|
return (C == null ? void 0 : C.comp) === "Group" && (C.compData = (N = C.compData) == null ? void 0 : N.map((m) => {
|
|
1400
|
-
var
|
|
1406
|
+
var g;
|
|
1401
1407
|
let f = [];
|
|
1402
|
-
return (
|
|
1408
|
+
return (g = m.contents) == null || g.forEach((k) => {
|
|
1403
1409
|
var c, o, i, $, v, P, x, U, G, T, S, D;
|
|
1404
1410
|
if (J != null && J.find((E) => {
|
|
1405
|
-
var
|
|
1406
|
-
return ((
|
|
1411
|
+
var b, B, j;
|
|
1412
|
+
return ((b = E == null ? void 0 : E.key) == null ? void 0 : b.toUpperCase()) === ((j = (B = Object.keys(k)) == null ? void 0 : B[0]) == null ? void 0 : j.toUpperCase());
|
|
1407
1413
|
}))
|
|
1408
1414
|
f.push({
|
|
1409
1415
|
comp: (c = J == null ? void 0 : J.find((E) => {
|
|
1410
|
-
var
|
|
1411
|
-
return ((
|
|
1416
|
+
var b, B, j;
|
|
1417
|
+
return ((b = E == null ? void 0 : E.key) == null ? void 0 : b.toUpperCase()) === ((j = (B = Object.keys(k)) == null ? void 0 : B[0]) == null ? void 0 : j.toUpperCase());
|
|
1412
1418
|
})) == null ? void 0 : c.value,
|
|
1413
1419
|
name: (i = (o = Object.values(k)) == null ? void 0 : o[0]) == null ? void 0 : i.replace(/[’]|[‘]|[']/g, ""),
|
|
1414
1420
|
compData: []
|
|
1415
1421
|
});
|
|
1416
1422
|
else if (F != null && F.find((E) => {
|
|
1417
|
-
var
|
|
1418
|
-
return ((
|
|
1423
|
+
var b, B, j;
|
|
1424
|
+
return ((b = E == null ? void 0 : E.key) == null ? void 0 : b.toUpperCase()) === ((j = (B = Object.keys(k)) == null ? void 0 : B[0]) == null ? void 0 : j.toUpperCase());
|
|
1419
1425
|
})) {
|
|
1420
1426
|
if ((f == null ? void 0 : f.length) === 0) return;
|
|
1421
1427
|
($ = f == null ? void 0 : f[(f == null ? void 0 : f.length) - 1]) != null && $.compData && f[(f == null ? void 0 : f.length) - 1].compData.push({
|
|
1422
1428
|
key: (v = F == null ? void 0 : F.find((E) => {
|
|
1423
|
-
var
|
|
1424
|
-
return ((
|
|
1429
|
+
var b, B, j;
|
|
1430
|
+
return ((b = E == null ? void 0 : E.key) == null ? void 0 : b.toUpperCase()) === ((j = (B = Object.keys(k)) == null ? void 0 : B[0]) == null ? void 0 : j.toUpperCase());
|
|
1425
1431
|
})) == null ? void 0 : v.value,
|
|
1426
1432
|
contents: (P = Object.values(k)) == null ? void 0 : P[0]
|
|
1427
1433
|
});
|
|
1428
1434
|
} else if ((U = (x = Object.keys(k)) == null ? void 0 : x[0]) != null && U.includes("$")) {
|
|
1429
1435
|
const E = (T = (G = Object.keys(p(k))) == null ? void 0 : G[0]) == null ? void 0 : T.split("$");
|
|
1430
1436
|
f[(f == null ? void 0 : f.length) - 1].compData.push({
|
|
1431
|
-
key: (S = F == null ? void 0 : F.find((
|
|
1437
|
+
key: (S = F == null ? void 0 : F.find((b) => {
|
|
1432
1438
|
var B, j;
|
|
1433
|
-
return ((B =
|
|
1439
|
+
return ((B = b == null ? void 0 : b.key) == null ? void 0 : B.toUpperCase()) === ((j = E == null ? void 0 : E[0]) == null ? void 0 : j.toUpperCase());
|
|
1434
1440
|
})) == null ? void 0 : S.value,
|
|
1435
1441
|
contents: (D = Object.values(k)) == null ? void 0 : D[0],
|
|
1436
1442
|
selectLabel: E == null ? void 0 : E[1]
|
|
@@ -1678,7 +1684,7 @@ const J = [
|
|
|
1678
1684
|
}, cn = (e) => {
|
|
1679
1685
|
const [t, n] = e.split(/=(.+)/), l = t.replace(/['"]/g, "").trim(), a = n.replace(/^['"]|['"]$/g, "");
|
|
1680
1686
|
return { key: l, value: a };
|
|
1681
|
-
},
|
|
1687
|
+
}, be = (e) => {
|
|
1682
1688
|
let t;
|
|
1683
1689
|
e.includes(":") ? t = e.split(":").filter((a) => a.trim() !== "") : t = e.split(":").filter((a) => a.trim() !== "");
|
|
1684
1690
|
const n = [];
|
|
@@ -1694,7 +1700,7 @@ const J = [
|
|
|
1694
1700
|
return r.slice(0, r.length - 1);
|
|
1695
1701
|
}), n = t == null ? void 0 : t.map((s) => {
|
|
1696
1702
|
var u;
|
|
1697
|
-
return (u =
|
|
1703
|
+
return (u = be(s)) == null ? void 0 : u.map((d) => {
|
|
1698
1704
|
var y;
|
|
1699
1705
|
if (d.includes("{")) {
|
|
1700
1706
|
let h = (y = d.split(":")) == null ? void 0 : y[0];
|
|
@@ -1712,11 +1718,11 @@ const J = [
|
|
|
1712
1718
|
}, hl = (e) => {
|
|
1713
1719
|
var n, l, a, s, r, u, d, y;
|
|
1714
1720
|
const t = (l = (n = e.split("(")) == null ? void 0 : n[1]) == null ? void 0 : l.trim();
|
|
1715
|
-
return ((a =
|
|
1721
|
+
return ((a = be(t.slice(0, t.length - 1))) == null ? void 0 : a.length) > 0 ? t.slice(0, t.length - 1) : (y = (d = (u = (r = (s = e.split("(")) == null ? void 0 : s[1]) == null ? void 0 : r.trim()) == null ? void 0 : u.split(")")) == null ? void 0 : d[0]) == null ? void 0 : y.trim();
|
|
1716
1722
|
}, fn = (e) => {
|
|
1717
1723
|
var a;
|
|
1718
1724
|
if (!e) return;
|
|
1719
|
-
const t = hl(e), n = (a =
|
|
1725
|
+
const t = hl(e), n = (a = be(t)) == null ? void 0 : a.map((s) => {
|
|
1720
1726
|
var r;
|
|
1721
1727
|
if (s.includes("{")) {
|
|
1722
1728
|
let u = (r = s.split(":")) == null ? void 0 : r[0];
|
|
@@ -1744,7 +1750,7 @@ const J = [
|
|
|
1744
1750
|
if (!e) return;
|
|
1745
1751
|
const t = hl(e);
|
|
1746
1752
|
let n = [], l = [], a = [];
|
|
1747
|
-
return (s =
|
|
1753
|
+
return (s = be(t)) == null || s.forEach((r) => {
|
|
1748
1754
|
var u;
|
|
1749
1755
|
r.includes("[") ? n.push(dn(r)) : r.includes("{") && (un((u = r.slice(1, r.length - 1).split(":")) == null ? void 0 : u[0]) ? a.push(JSON.parse(r.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3'))) : Y(r.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3')) || r.includes("$") || l.push(r.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3')));
|
|
1750
1756
|
}), [n, l, a];
|
|
@@ -1769,7 +1775,7 @@ const J = [
|
|
|
1769
1775
|
}, $e = (e) => {
|
|
1770
1776
|
let t = e.replace(/\[\s*,\s*,/g, '[{"": ""}, {"": ""},');
|
|
1771
1777
|
return t = t.replace(/\[\s*,/g, '[{"": ""},'), t = t.replace(/,\s*,/g, ', {"": ""},'), t = t.replace(/,\s*\]/g, ', {"": ""}]'), t = t.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,\]}])/g, (n, l, a, s, r) => a.includes("'") ? `:${l}${a}${s}${r}` : `:${l}"${a}"${s}${r}`), t = t.replace(/:\s*([,\]}])/g, ': ""$1'), t;
|
|
1772
|
-
}, mn = (e) => !/\[[^\]]*\{[^\]]*\]/.test(e),
|
|
1778
|
+
}, mn = (e) => !/\[[^\]]*\{[^\]]*\]/.test(e), gn = (e) => {
|
|
1773
1779
|
const t = p(e).match(/(\w+)\(['"]([^'"]+)['"]:\s*\{['"]([^'"]+)['"]\}\)/), n = t ? `${t[2]}/${t[3]}` : null, l = e.match(/\[\{([^}]+)\}\]/), a = l == null ? void 0 : l[1].replaceAll(":", "").replaceAll("'", '"').trim();
|
|
1774
1780
|
let s = null;
|
|
1775
1781
|
if (a)
|
|
@@ -1779,11 +1785,11 @@ const J = [
|
|
|
1779
1785
|
console.error("解析数组失败:", r);
|
|
1780
1786
|
}
|
|
1781
1787
|
return [n, s];
|
|
1782
|
-
},
|
|
1788
|
+
}, bn = (e) => {
|
|
1783
1789
|
var u, d, y, h, O, A, _, C, N, m, f;
|
|
1784
1790
|
let t = [], n = [], l = {}, a = [], s = e.trim(), r = [];
|
|
1785
1791
|
if (s.trim().includes("输入") && s.trim().includes("输出")) {
|
|
1786
|
-
let
|
|
1792
|
+
let g = [], k = e.trim();
|
|
1787
1793
|
k = p(k).slice(1, p(k).length - 1);
|
|
1788
1794
|
const c = /(\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})/g;
|
|
1789
1795
|
(C = k.match(c)) == null || C.forEach((o, i) => {
|
|
@@ -1803,44 +1809,44 @@ const J = [
|
|
|
1803
1809
|
else {
|
|
1804
1810
|
let S = x.trim().replaceAll(",", ",").replaceAll("'", '"');
|
|
1805
1811
|
if (i % 3 === 0)
|
|
1806
|
-
S.slice(1, S.length - 1).includes("[") ?
|
|
1812
|
+
S.slice(1, S.length - 1).includes("[") ? g.push({
|
|
1807
1813
|
key: "tableIndex",
|
|
1808
1814
|
contents: [{ label: S }]
|
|
1809
|
-
}) :
|
|
1815
|
+
}) : g.push({
|
|
1810
1816
|
key: "tableIndex",
|
|
1811
1817
|
contents: [{ label: S.slice(1, S.length - 1) }]
|
|
1812
1818
|
});
|
|
1813
1819
|
else if ((S == null ? void 0 : S[0]) === "{") {
|
|
1814
1820
|
let D = [];
|
|
1815
1821
|
const E = S.slice(1, S.length - 1).split(":");
|
|
1816
|
-
if (E.every((
|
|
1822
|
+
if (E.every((b) => Y(b.trim()))) {
|
|
1817
1823
|
D.push({ key: "tableContentName", contents: "详情" });
|
|
1818
|
-
let
|
|
1824
|
+
let b = [];
|
|
1819
1825
|
E.forEach((B, j) => {
|
|
1820
1826
|
if (j === 0) {
|
|
1821
1827
|
const M = JSON.parse(B).map((W) => ({ label: W }));
|
|
1822
1828
|
M.push({
|
|
1823
1829
|
label: "操作"
|
|
1824
|
-
}),
|
|
1830
|
+
}), b.push({
|
|
1825
1831
|
key: "header",
|
|
1826
1832
|
contents: M
|
|
1827
1833
|
});
|
|
1828
1834
|
} else
|
|
1829
|
-
|
|
1835
|
+
b.push({
|
|
1830
1836
|
key: "tableContents",
|
|
1831
1837
|
contents: JSON.parse(B)
|
|
1832
1838
|
});
|
|
1833
|
-
}),
|
|
1839
|
+
}), b.push({
|
|
1834
1840
|
key: "extraButton",
|
|
1835
1841
|
contents: [{ label: "新增" }]
|
|
1836
|
-
}),
|
|
1842
|
+
}), b.push({
|
|
1837
1843
|
key: "rowButton",
|
|
1838
1844
|
contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
|
|
1839
1845
|
}), D.push({
|
|
1840
1846
|
comp: "Table",
|
|
1841
|
-
compData:
|
|
1847
|
+
compData: b,
|
|
1842
1848
|
name: ""
|
|
1843
|
-
}),
|
|
1849
|
+
}), g.push({
|
|
1844
1850
|
key: "tableContents",
|
|
1845
1851
|
contents: [D]
|
|
1846
1852
|
});
|
|
@@ -1849,8 +1855,8 @@ const J = [
|
|
|
1849
1855
|
let D = S;
|
|
1850
1856
|
D.slice(1, D.length - 1).includes("[") || D.slice(1, D.length - 1).includes("{") ? Y(Ke(D.replace(/\s+/g, ""))) && ((T = JSON.parse(Ke(D.replace(/\s+/g, "")))) == null || T.map((E) => {
|
|
1851
1857
|
if (Array.isArray(E == null ? void 0 : E[0])) {
|
|
1852
|
-
const
|
|
1853
|
-
|
|
1858
|
+
const b = [];
|
|
1859
|
+
b.push({ key: "tableContentName", contents: "详情" });
|
|
1854
1860
|
let B = [];
|
|
1855
1861
|
E.forEach((j) => {
|
|
1856
1862
|
j.forEach((M) => {
|
|
@@ -1862,7 +1868,7 @@ const J = [
|
|
|
1862
1868
|
width: j.length
|
|
1863
1869
|
});
|
|
1864
1870
|
});
|
|
1865
|
-
}),
|
|
1871
|
+
}), b.push({
|
|
1866
1872
|
comp: "Form",
|
|
1867
1873
|
compData: [{
|
|
1868
1874
|
key: "formFlex",
|
|
@@ -1872,25 +1878,25 @@ const J = [
|
|
|
1872
1878
|
contents: B
|
|
1873
1879
|
}],
|
|
1874
1880
|
name: ""
|
|
1875
|
-
}),
|
|
1881
|
+
}), g.push({
|
|
1876
1882
|
key: "tableContents",
|
|
1877
|
-
contents: [
|
|
1883
|
+
contents: [b]
|
|
1878
1884
|
});
|
|
1879
1885
|
} else
|
|
1880
|
-
|
|
1886
|
+
g.push({
|
|
1881
1887
|
key: "tableContents",
|
|
1882
1888
|
contents: E == null ? void 0 : E[0]
|
|
1883
1889
|
});
|
|
1884
|
-
})) :
|
|
1890
|
+
})) : g.push({
|
|
1885
1891
|
key: "tableContents",
|
|
1886
1892
|
contents: D.trim().slice(1, D.length - 1)
|
|
1887
1893
|
});
|
|
1888
1894
|
}
|
|
1889
1895
|
}
|
|
1890
|
-
}),
|
|
1896
|
+
}), g.push(v == null ? void 0 : v[0]);
|
|
1891
1897
|
}), r.push({
|
|
1892
1898
|
key: "tableIndex",
|
|
1893
|
-
contents: (N =
|
|
1899
|
+
contents: (N = g == null ? void 0 : g.filter((o) => (o == null ? void 0 : o.key) === "tableIndex")) == null ? void 0 : N.map((o) => {
|
|
1894
1900
|
var i;
|
|
1895
1901
|
return (i = o.contents) == null ? void 0 : i[0];
|
|
1896
1902
|
})
|
|
@@ -1902,31 +1908,31 @@ const J = [
|
|
|
1902
1908
|
contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
|
|
1903
1909
|
}), r.push({
|
|
1904
1910
|
key: "tableIndexColumn",
|
|
1905
|
-
contents: (f = (m =
|
|
1911
|
+
contents: (f = (m = g == null ? void 0 : g.filter((o) => (o == null ? void 0 : o.key) === "tableIndexColumn")) == null ? void 0 : m[0]) == null ? void 0 : f.contents
|
|
1906
1912
|
}), r.push({
|
|
1907
1913
|
key: "header",
|
|
1908
|
-
contents: ze(
|
|
1914
|
+
contents: ze(g == null ? void 0 : g.filter((o) => (o == null ? void 0 : o.key) === "header"))
|
|
1909
1915
|
}), r.push({
|
|
1910
1916
|
key: "tableContents",
|
|
1911
|
-
contents: rn(
|
|
1917
|
+
contents: rn(g == null ? void 0 : g.filter((o) => (o == null ? void 0 : o.key) === "tableContents"), ze(g == null ? void 0 : g.filter((o) => (o == null ? void 0 : o.key) === "header")))
|
|
1912
1918
|
});
|
|
1913
1919
|
} else {
|
|
1914
|
-
const
|
|
1915
|
-
|
|
1920
|
+
const g = (u = s.trim().split(",$")) == null ? void 0 : u[0];
|
|
1921
|
+
g[0] === "[" ? s = g.slice(1, g.length - 1) : s.includes(",$") && (s = (d = s.trim().split(",$")) == null ? void 0 : d[0]);
|
|
1916
1922
|
let k;
|
|
1917
1923
|
if (s.includes("$")) {
|
|
1918
1924
|
s = p(s), l.method = (h = (y = p(s).trim()) == null ? void 0 : y.slice(1, s.length).split("(")) == null ? void 0 : h[0];
|
|
1919
1925
|
let c;
|
|
1920
|
-
Xe(s.slice(1, s.length - 2)).length > 1 ? c = Xe(s.slice(1, s.length - 2)) : c =
|
|
1926
|
+
Xe(s.slice(1, s.length - 2)).length > 1 ? c = Xe(s.slice(1, s.length - 2)) : c = gn(s), l.value = c;
|
|
1921
1927
|
} else
|
|
1922
1928
|
Y("[" + $e(s).replaceAll("'", '"') + "]") && !mn($e(s).replaceAll("'", '"')) ? (s = JSON.parse("[" + $e(s).replaceAll("'", '"') + "]"), a = s) : k = (A = (O = p(s).split("}")) == null ? void 0 : O.filter((c) => c !== "")) == null ? void 0 : A.map((c) => {
|
|
1923
1929
|
let o = c;
|
|
1924
1930
|
return o[0] === "," ? o = o.slice(2, o.length) : o = o.slice(1, o.length), o;
|
|
1925
1931
|
});
|
|
1926
1932
|
(_ = p(k)) == null || _.forEach((c) => {
|
|
1927
|
-
var o, i, $, v, P, x, U, G, T, S, D, E,
|
|
1933
|
+
var o, i, $, v, P, x, U, G, T, S, D, E, b, B, j;
|
|
1928
1934
|
if (c.includes("==")) {
|
|
1929
|
-
const M = (E = c == null ? void 0 : c.split(":")) == null ? void 0 : E[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"').replaceAll("'", '"'), W = (
|
|
1935
|
+
const M = (E = c == null ? void 0 : c.split(":")) == null ? void 0 : E[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"').replaceAll("'", '"'), W = (b = c == null ? void 0 : c.split(":")) == null ? void 0 : b[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"');
|
|
1930
1936
|
if (Y(W.trim()) ? n.push(JSON.parse(W.trim())) : n.push(JSON.parse(W.replaceAll("'", '"').trim())), M[0] !== "[") {
|
|
1931
1937
|
let Q = [];
|
|
1932
1938
|
Y("[" + ie(M) + "]") ? Q.push(JSON.parse("[" + ie(M) + "]")) : Y("[" + ie(M).replaceAll("==", ",") + "]") && Q.push(JSON.parse("[" + ie(M).replaceAll("==", ",") + "]"));
|
|
@@ -1954,7 +1960,7 @@ const J = [
|
|
|
1954
1960
|
}
|
|
1955
1961
|
return [t, n, r, l, a];
|
|
1956
1962
|
}, kn = (e) => {
|
|
1957
|
-
const t = [], n = fn(e == null ? void 0 : e.key), l = hn(e == null ? void 0 : e.key), a =
|
|
1963
|
+
const t = [], n = fn(e == null ? void 0 : e.key), l = hn(e == null ? void 0 : e.key), a = bn(e == null ? void 0 : e.value), s = l == null ? void 0 : l[0], r = [...l == null ? void 0 : l[1], ...a == null ? void 0 : a[4]], u = l == null ? void 0 : l[2], d = a == null ? void 0 : a[0], y = a == null ? void 0 : a[1], h = a == null ? void 0 : a[2], O = a == null ? void 0 : a[3];
|
|
1958
1964
|
return n && t.push({
|
|
1959
1965
|
key: "contentPath",
|
|
1960
1966
|
value: n
|
|
@@ -2152,7 +2158,7 @@ const J = [
|
|
|
2152
2158
|
} catch (t) {
|
|
2153
2159
|
return console.error("解析失败:", t), e;
|
|
2154
2160
|
}
|
|
2155
|
-
},
|
|
2161
|
+
}, gl = (e) => {
|
|
2156
2162
|
var t, n, l, a, s, r;
|
|
2157
2163
|
try {
|
|
2158
2164
|
const u = Ee((n = (t = p(e)) == null ? void 0 : t.replace("(", "(")) == null ? void 0 : n.replace(")", ")")), d = (l = p(u)) == null ? void 0 : l.map((O) => {
|
|
@@ -2163,26 +2169,26 @@ const J = [
|
|
|
2163
2169
|
(a = p(d)) == null || a.forEach((O) => {
|
|
2164
2170
|
var A, _, C, N, m;
|
|
2165
2171
|
J != null && J.find((f) => {
|
|
2166
|
-
var
|
|
2167
|
-
return ((
|
|
2172
|
+
var g, k;
|
|
2173
|
+
return ((g = f == null ? void 0 : f.key) == null ? void 0 : g.toUpperCase()) === ((k = O == null ? void 0 : O.key) == null ? void 0 : k.toUpperCase());
|
|
2168
2174
|
}) ? y.push({
|
|
2169
2175
|
comp: ((A = J == null ? void 0 : J.find((f) => {
|
|
2170
|
-
var
|
|
2171
|
-
return ((
|
|
2176
|
+
var g, k;
|
|
2177
|
+
return ((g = f == null ? void 0 : f.key) == null ? void 0 : g.toUpperCase()) === ((k = O == null ? void 0 : O.key) == null ? void 0 : k.toUpperCase());
|
|
2172
2178
|
})) == null ? void 0 : A.value) ?? "",
|
|
2173
2179
|
name: (_ = O == null ? void 0 : O.value) == null ? void 0 : _.replace(/[’]|[‘]|[']/g, ""),
|
|
2174
2180
|
compData: []
|
|
2175
2181
|
}) : F != null && F.find((f) => {
|
|
2176
|
-
var
|
|
2177
|
-
return ((
|
|
2182
|
+
var g, k;
|
|
2183
|
+
return ((g = f == null ? void 0 : f.key) == null ? void 0 : g.toUpperCase()) === ((k = O == null ? void 0 : O.key) == null ? void 0 : k.toUpperCase());
|
|
2178
2184
|
}) && ((y == null ? void 0 : y.length) === 0 && (C = O.key) != null && C.includes("Menus") && y.push({
|
|
2179
2185
|
comp: "Menu",
|
|
2180
2186
|
name: "",
|
|
2181
2187
|
compData: []
|
|
2182
2188
|
}), (N = y == null ? void 0 : y[(y == null ? void 0 : y.length) - 1]) != null && N.compData && y[(y == null ? void 0 : y.length) - 1].compData.push({
|
|
2183
2189
|
key: (m = F == null ? void 0 : F.find((f) => {
|
|
2184
|
-
var
|
|
2185
|
-
return ((
|
|
2190
|
+
var g, k;
|
|
2191
|
+
return ((g = f == null ? void 0 : f.key) == null ? void 0 : g.toUpperCase()) === ((k = O == null ? void 0 : O.key) == null ? void 0 : k.toUpperCase());
|
|
2186
2192
|
})) == null ? void 0 : m.value,
|
|
2187
2193
|
contents: O == null ? void 0 : O.value
|
|
2188
2194
|
}));
|
|
@@ -2190,12 +2196,12 @@ const J = [
|
|
|
2190
2196
|
let h = (s = p(y)) == null ? void 0 : s.map((O) => {
|
|
2191
2197
|
var A;
|
|
2192
2198
|
return O != null && O.compData && (O.compData = (A = O == null ? void 0 : O.compData) == null ? void 0 : A.map((_) => {
|
|
2193
|
-
var C, N, m, f,
|
|
2199
|
+
var C, N, m, f, g, k, c, o, i, $, v;
|
|
2194
2200
|
if ((_ == null ? void 0 : _.key) === "formFlex")
|
|
2195
2201
|
_.contents = ((N = (C = _.contents) == null ? void 0 : C.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : N.toUpperCase()) !== "Vertical".toUpperCase();
|
|
2196
2202
|
else if ((_ == null ? void 0 : _.key) === "groupContents")
|
|
2197
2203
|
_.contents = (m = p(_.contents)) == null ? void 0 : m.map((P) => Tn(p(P)));
|
|
2198
|
-
else if (((
|
|
2204
|
+
else if (((g = (f = _.contents) == null ? void 0 : f.trim()) != null && g.startsWith("[") || (c = (k = _.contents) == null ? void 0 : k.trim()) != null && c.startsWith("【")) && ((i = (o = _.contents) == null ? void 0 : o.trim()) != null && i.endsWith("]") || (v = ($ = _.contents) == null ? void 0 : $.trim()) != null && v.endsWith("】")))
|
|
2199
2205
|
_.contents = En(p(_.contents));
|
|
2200
2206
|
else {
|
|
2201
2207
|
if (!_.contents) return;
|
|
@@ -2210,7 +2216,7 @@ const J = [
|
|
|
2210
2216
|
var N;
|
|
2211
2217
|
let C = [];
|
|
2212
2218
|
return (N = _.contents) == null || N.forEach((m) => {
|
|
2213
|
-
var f,
|
|
2219
|
+
var f, g, k, c, o, i, $, v, P, x, U, G;
|
|
2214
2220
|
if (J != null && J.find((T) => {
|
|
2215
2221
|
var S, D, E;
|
|
2216
2222
|
return ((S = T == null ? void 0 : T.key) == null ? void 0 : S.toUpperCase()) === ((E = (D = Object.keys(m)) == null ? void 0 : D[0]) == null ? void 0 : E.toUpperCase());
|
|
@@ -2220,7 +2226,7 @@ const J = [
|
|
|
2220
2226
|
var S, D, E;
|
|
2221
2227
|
return ((S = T == null ? void 0 : T.key) == null ? void 0 : S.toUpperCase()) === ((E = (D = Object.keys(m)) == null ? void 0 : D[0]) == null ? void 0 : E.toUpperCase());
|
|
2222
2228
|
})) == null ? void 0 : f.value,
|
|
2223
|
-
name: (k = (
|
|
2229
|
+
name: (k = (g = Object.values(m)) == null ? void 0 : g[0]) == null ? void 0 : k.replace(/[’]|[‘]|[']/g, ""),
|
|
2224
2230
|
compData: []
|
|
2225
2231
|
});
|
|
2226
2232
|
else if (F != null && F.find((T) => {
|
|
@@ -2253,7 +2259,7 @@ const J = [
|
|
|
2253
2259
|
} catch {
|
|
2254
2260
|
return !1;
|
|
2255
2261
|
}
|
|
2256
|
-
}, Kn = (e) =>
|
|
2262
|
+
}, Kn = (e) => gl(e), qn = (e) => !!gl(e), Dn = el(xe), { itemData: zn } = ll(Dn), Nn = Dl(xe), { systemKey: Qn, activeMenuPath: Xn } = ll(Nn), se = L(0), Yn = (e) => e.reduce((n, l) => {
|
|
2257
2263
|
var s, r;
|
|
2258
2264
|
const a = Object.values(n);
|
|
2259
2265
|
return (((s = Object.keys(n)) == null ? void 0 : s.length) === 0 || a[a.length - 1].length >= (l == null ? void 0 : l.width)) && (n[se.value] = [], se.value++), n[se.value - 1].push(l), ((r = Object.keys(n)) == null ? void 0 : r.length) === (l == null ? void 0 : l.width) && (n[se.value] = [], se.value++), n;
|