ss-component-new 1.1.596 → 1.1.598

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.
Files changed (97) hide show
  1. package/dist/{array-mnEYd91h.cjs → array-C1gcNGaP.cjs} +1 -1
  2. package/dist/{array-wJSGLzMi.js → array-CaisX3_y.js} +1 -1
  3. package/dist/{crypto-BRyGpjGR.js → crypto-BLqrsrbD.js} +503 -430
  4. package/dist/{crypto-CRbcEKIz.cjs → crypto-kdpAHFnl.cjs} +11 -11
  5. package/dist/index-2tDhJ_PE.cjs +74 -0
  6. package/dist/{index-CdV-dIPz.js → index-6zxl3bAx.js} +3 -3
  7. package/dist/{index-Bq9zvPYq.js → index-B40Vg6be.js} +6 -6
  8. package/dist/index-BA5Dtdnf.cjs +1 -0
  9. package/dist/{index-DIQgn1lv.js → index-BIT-bLqc.js} +1 -1
  10. package/dist/index-BND1JkQV.cjs +1 -0
  11. package/dist/{index-C1KIIGh8.js → index-BQcbH-Bx.js} +5 -5
  12. package/dist/index-BTFmTXxw.cjs +1 -0
  13. package/dist/{index-Dr_FFxuS.cjs → index-BTR1Mq9-.cjs} +1 -1
  14. package/dist/{index-BhIXAFkM.js → index-BX8Qt4Rx.js} +6 -7
  15. package/dist/index-BkcTV4rw.cjs +1 -0
  16. package/dist/{index-DTKpspvK.cjs → index-BlUO9yjl.cjs} +1 -1
  17. package/dist/{index-Dm8EQvZF.cjs → index-Bn3uMi-8.cjs} +1 -1
  18. package/dist/index-Bp7fX2Un.cjs +1 -0
  19. package/dist/{index-Bb1N38wE.js → index-BzxOgHaM.js} +3 -3
  20. package/dist/{index-CUnz8HhY.cjs → index-C1pvDeK-.cjs} +1 -1
  21. package/dist/index-C2whMdL5.cjs +1 -0
  22. package/dist/{index-_h1qmm7b.js → index-C39wdrEg.js} +13 -13
  23. package/dist/{index-BmX_GIIO.cjs → index-CDtFBTgg.cjs} +1 -1
  24. package/dist/{index-Db0lTu76.js → index-CJT5TxjA.js} +3 -3
  25. package/dist/{index-DHuIlYC1.cjs → index-CLbudYRq.cjs} +1 -1
  26. package/dist/index-CLx_m5eO.cjs +1 -0
  27. package/dist/{index-bALhgSe4.js → index-CZevQ8Dr.js} +22 -23
  28. package/dist/index-CdUSKaxX.cjs +1 -0
  29. package/dist/{index-DSsJ2-ii.cjs → index-D-9AsLgs.cjs} +1 -1
  30. package/dist/{index-BriwvEur.js → index-D-EA3Esr.js} +4 -4
  31. package/dist/{index-BIu-jTfc.js → index-D0SLiYEQ.js} +1 -1
  32. package/dist/{index-Zt6huWXY.js → index-D7dvgWgC.js} +8 -8
  33. package/dist/{index-Bk3SowMg.js → index-D93nyxZ8.js} +4 -4
  34. package/dist/{index-B4LVTE2a.cjs → index-D9qvpCOL.cjs} +174 -174
  35. package/dist/{index-DQm7DvqZ.cjs → index-DAXzplpp.cjs} +1 -1
  36. package/dist/{index-CB4s2Qtu.cjs → index-DHxqKUgB.cjs} +1 -1
  37. package/dist/{index-C7x-mC0R.js → index-DJuUjZvH.js} +83 -84
  38. package/dist/index-DTyUDeyD.js +4369 -0
  39. package/dist/{index-CwYjbsHf.cjs → index-DeXIDjm6.cjs} +1 -1
  40. package/dist/{index-TRcS4V2m.js → index-DiGq9Lsv.js} +5 -5
  41. package/dist/{index-BBnnl-_P.cjs → index-Dnc9hCoC.cjs} +1 -1
  42. package/dist/{index-BurAdhpz.js → index-DyUmQMqi.js} +4 -4
  43. package/dist/index-HXTaOl2k.cjs +1 -0
  44. package/dist/{index-CmXpvujN.js → index-HkaBIp59.js} +1 -1
  45. package/dist/{index-BOb-2bQ6.js → index-RN-gwhe0.js} +2 -2
  46. package/dist/{index-Bkm9CeI0.js → index-V9vs-ScR.js} +1 -1
  47. package/dist/{index-8gbPS8-X.js → index-VF7EMAm-.js} +3 -3
  48. package/dist/{index-4me0w_d_.js → index-Ww4aroev.js} +3 -3
  49. package/dist/{index-BrR-UBrL.js → index-bCB0m90F.js} +5 -5
  50. package/dist/{index-CJ_rdkr8.js → index-hBF27unU.js} +7021 -7051
  51. package/dist/{index-Dsnvzj37.cjs → index-mWOC2B6n.cjs} +1 -1
  52. package/dist/{index-CjrWmm5T.js → index-sLT63BWC.js} +2030 -2020
  53. package/dist/{index-l52VRsV3.cjs → index-v95HBZGa.cjs} +1 -1
  54. package/dist/{index-P7MVl516.cjs → index-vqffUZk8.cjs} +1 -1
  55. package/dist/{index.vue_vue_type_script_setup_true_lang-DdxkZBiO.js → index.vue_vue_type_script_setup_true_lang-CPMJDln6.js} +2 -2
  56. package/dist/{index.vue_vue_type_script_setup_true_lang-CKo9xhlB.cjs → index.vue_vue_type_script_setup_true_lang-T3qSOy6p.cjs} +1 -1
  57. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CfEICeD4.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BNbsh3Kc.js} +1 -1
  58. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DXFzvQ4G.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DPUizNX8.cjs} +1 -1
  59. package/dist/index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-BrSe9KLj.cjs +1 -0
  60. package/dist/{index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-C4KOyCan.js → index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-CNhkr8wC.js} +8 -8
  61. package/dist/{index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang-DNiiRDF0.cjs → index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang-CcbD9_8d.cjs} +10 -10
  62. package/dist/{index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang--Ckdd4kI.js → index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang-DCgz0iSg.js} +2170 -2164
  63. package/dist/{main-CBruCFMa.cjs → main-OEqZN7Ta.cjs} +1 -1
  64. package/dist/{main-BdwwE9kL.js → main-v-I0DDbj.js} +5 -5
  65. package/dist/{menu-DYsWoy6Z.cjs → menu-1olc0mrV.cjs} +9 -9
  66. package/dist/{menu-Qw1eGtzq.js → menu-BxkEScwt.js} +201 -199
  67. package/dist/menuIndex-DGUNtXPA.cjs +1 -0
  68. package/dist/menuIndex-DaxuTIfn.js +60 -0
  69. package/dist/{modelComp-y7HaQuVQ.js → modelComp-Bj7Q1JDt.js} +1 -1
  70. package/dist/{modelComp-8s0tWZDU.cjs → modelComp-C5jCD_od.cjs} +1 -1
  71. package/dist/ss-component.cjs +1 -1
  72. package/dist/ss-component.css +1 -1
  73. package/dist/ss-component.js +9 -9
  74. package/dist/ss-component2.cjs +1 -1
  75. package/dist/ss-component2.js +9 -9
  76. package/dist/{threeModel-WeRc8TWE.js → threeModel-D_RxjZwp.js} +568 -550
  77. package/dist/threeModel-ncwxCK1P.cjs +1 -0
  78. package/package.json +1 -1
  79. package/dist/index-B-P2iW5F.cjs +0 -1
  80. package/dist/index-BFKRXrzQ.cjs +0 -1
  81. package/dist/index-BJi_ECqJ.cjs +0 -1
  82. package/dist/index-BiqWWf_i.cjs +0 -1
  83. package/dist/index-DFdkXYtv.js +0 -4373
  84. package/dist/index-DJc0EPc7.cjs +0 -1
  85. package/dist/index-DUjNOx49.cjs +0 -1
  86. package/dist/index-K05hKXiU.cjs +0 -1
  87. package/dist/index-R71UAxtE.cjs +0 -1
  88. package/dist/index-RFCzxTjm.cjs +0 -87
  89. package/dist/index-n20urAJT.cjs +0 -1
  90. package/dist/index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-CHdcwZZm.cjs +0 -1
  91. package/dist/login-BBvcYktp.cjs +0 -1
  92. package/dist/login-afGmER0u.js +0 -129
  93. package/dist/obj/model.mtl +0 -42
  94. package/dist/obj/model.obj +0 -26110
  95. package/dist/threeModel-DQIGp3UU.cjs +0 -1
  96. package/public/obj/model.mtl +0 -42
  97. package/public/obj/model.obj +0 -26110
@@ -1,4373 +0,0 @@
1
- import { q as oa, I as cl, a as ql, g as $l, r as ua, v as ra, w as ca, x as ta, y as da, z as Ml, A as pa, B as fa, C as va, D as ha } from "./index-CjrWmm5T.js";
2
- import { ref as M, watch as Ve, createElementBlock as ce, openBlock as H, createVNode as z, resolveComponent as Te, Fragment as Se, renderList as Fe, createElementVNode as E, createCommentVNode as Xe, toDisplayString as ye, withCtx as ae, createBlock as Oe, createTextVNode as $e, defineComponent as fl, reactive as Vl, resolveDynamicComponent as Il, unref as Hl, computed as jl, renderSlot as Bl, createSlots as ma, mergeProps as ya, normalizeStyle as ba, withModifiers as Dl } from "vue";
3
- import { bR as Ql, p as Qe, c as a, s as al, E as Ye, u as ga, g as El, d as Fl, bO as ka, bM as _a } from "./menu-Qw1eGtzq.js";
4
- import { e as Ue, s as Je, f as Xl, a as Ca, h as wa, i as Da, b as Ia } from "./index-CdV-dIPz.js";
5
- import { F as Kl, a as Aa, b as Ne, m as ml, s as el, f as pl, e as Ol } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CfEICeD4.js";
6
- import { _ as Re } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
- import { E as tl } from "./index-CmXpvujN.js";
8
- import { u as Yl } from "./modelComp-y7HaQuVQ.js";
9
- import { u as xa } from "./login-afGmER0u.js";
10
- import { s as $a, a as Ea } from "./index-8gbPS8-X.js";
11
- import Ba from "./index-CZtXRS3l.js";
12
- const Ta = (p) => p.match(/\((.*)\)/)[1], Sa = Ql("formComp", {
13
- state: () => ({
14
- objUrl: [],
15
- blobUrls: []
16
- }),
17
- actions: {
18
- setObjUrl(p) {
19
- this.objUrl = p;
20
- },
21
- setBlobUrls(p) {
22
- this.blobUrls = p;
23
- }
24
- }
25
- }), Fa = { class: "form-content" }, Oa = {
26
- __name: "index",
27
- props: {
28
- formRules: Object,
29
- itemData: {
30
- type: Array,
31
- default: () => []
32
- },
33
- childItemData: {
34
- type: Array,
35
- default: () => []
36
- },
37
- index: Number
38
- },
39
- emits: ["change", "contentChange"],
40
- setup(p, { emit: y }) {
41
- const i = p, s = y, f = M([]), S = M(!1), P = M([]), I = oa(Qe), L = Sa(Qe), U = M(!1), T = M(), X = (F) => {
42
- var g, w, V, l, n, r, u, b;
43
- let Q = [];
44
- if ((g = F == null ? void 0 : F.toString()) != null && g.includes(".stl") || (w = F == null ? void 0 : F.toString()) != null && w.includes(".STL") || (V = F == null ? void 0 : F.toString()) != null && V.includes(".obj") || (l = F == null ? void 0 : F.toString()) != null && l.includes(".mtl") || (r = (n = t == null ? void 0 : t.value) == null ? void 0 : n.toString()) != null && r.includes(".urdf")) {
45
- let x, se = [], fe = {};
46
- Array.isArray(F) ? x = F : x = F == null ? void 0 : F.split(","), x == null || x.forEach((ie) => {
47
- ie.includes(".mtl") ? se.push(ie) : fe.blob = fe.blob ? fe.blob + "," + ie : ie;
48
- }), (se == null ? void 0 : se.length) > 0 && (fe.mtlBlobs = se), (b = (u = Object.values(fe)) == null ? void 0 : u[0]) != null && b.includes("http:") && Q.push(fe);
49
- }
50
- (Q == null ? void 0 : Q.length) > 0 && L.setBlobUrls(Q);
51
- }, J = (F) => {
52
- var l, n, r, u;
53
- const Q = (n = (l = a(i.itemData)) == null ? void 0 : l.find((b) => (b == null ? void 0 : b.key) === "formContent")) == null ? void 0 : n.contents, g = a(F.content);
54
- let w = {};
55
- g && ((r = Object.values(g)) == null ? void 0 : r.length) > 0 && ((u = Object.values(g)) == null || u.forEach((b, x) => {
56
- w[Q[x].key] = b;
57
- }));
58
- const V = {
59
- content: w,
60
- index: i == null ? void 0 : i.index,
61
- buttonName: F == null ? void 0 : F.buttonName
62
- };
63
- s("change", V);
64
- }, oe = (F) => {
65
- var l, n, r;
66
- if (!F) return;
67
- const Q = a(i.itemData), g = Q == null ? void 0 : Q.map((u) => {
68
- var b;
69
- return (u == null ? void 0 : u.key) === "formContent" && ((b = u.contents) == null || b.map((x, se) => {
70
- var fe, ie, c, m, A, C, $, j, Y, _, N, k, d, G, te, D, K;
71
- return x.type = x != null && x.type ? x.type : (m = (c = (ie = (fe = x == null ? void 0 : x.key) == null ? void 0 : fe.split("$")) == null ? void 0 : ie[1]) == null ? void 0 : c.split("(")) != null && m[0] ? (C = (A = Kl) == null ? void 0 : A.find((O) => {
72
- var de, ee, W, ve;
73
- return (O == null ? void 0 : O.key) === ((ve = (W = (ee = (de = x == null ? void 0 : x.key) == null ? void 0 : de.split("$")) == null ? void 0 : ee[1]) == null ? void 0 : W.split("(")) == null ? void 0 : ve[0]);
74
- })) == null ? void 0 : C.value : "Input", x.options = x != null && x.options ? x.options : ((Y = (j = ($ = x == null ? void 0 : x.key) == null ? void 0 : $.split("$")) == null ? void 0 : j[1]) == null ? void 0 : Y.length) > 0 ? (d = (k = Ta((N = (_ = x == null ? void 0 : x.key) == null ? void 0 : _.split("$")) == null ? void 0 : N[1])) == null ? void 0 : k.split(",")) == null ? void 0 : d.map((O) => ({
75
- label: O,
76
- value: O
77
- })) : [], (G = x == null ? void 0 : x.key) != null && G.includes("$") && (x.key = (D = (te = x == null ? void 0 : x.key) == null ? void 0 : te.split("$")) == null ? void 0 : D[0]), x.value = (K = Object.values(F)) == null ? void 0 : K[se], x;
78
- })), u;
79
- });
80
- let w = [], V = [];
81
- if ((n = a((l = g == null ? void 0 : g.find((u) => (u == null ? void 0 : u.key) === "formContent")) == null ? void 0 : l.contents)) == null || n.forEach((u) => {
82
- var b;
83
- Array.isArray(u == null ? void 0 : u.value) && ((b = u == null ? void 0 : u.value) != null && b.find((x) => {
84
- var se;
85
- return (se = x == null ? void 0 : x.url) == null ? void 0 : se.includes(".obj");
86
- })) && (V = u == null ? void 0 : u.value);
87
- }), (V == null ? void 0 : V.length) > 0) {
88
- const u = (r = a(V)) == null ? void 0 : r.filter((b) => {
89
- var x;
90
- return (x = b == null ? void 0 : b.url) == null ? void 0 : x.includes(".obj");
91
- });
92
- u == null || u.forEach((b) => {
93
- var se, fe, ie, c;
94
- const x = (se = V == null ? void 0 : V.filter((m) => {
95
- var A;
96
- return (m == null ? void 0 : m.name) === (b == null ? void 0 : b.name) && ((A = m == null ? void 0 : m.url) == null ? void 0 : A.includes(".mtl"));
97
- })) == null ? void 0 : se.map((m) => m == null ? void 0 : m.url);
98
- w.push({
99
- objUrl: b == null ? void 0 : b.url,
100
- mtlUrls: ((fe = V == null ? void 0 : V.filter((m) => {
101
- var A;
102
- return (m == null ? void 0 : m.name) === (b == null ? void 0 : b.name) && ((A = m == null ? void 0 : m.url) == null ? void 0 : A.includes(".mtl"));
103
- })) == null ? void 0 : fe.length) === 1 ? (c = (ie = V == null ? void 0 : V.filter((m) => {
104
- var A;
105
- return (m == null ? void 0 : m.name) === (b == null ? void 0 : b.name) && ((A = m == null ? void 0 : m.url) == null ? void 0 : A.includes(".mtl"));
106
- })) == null ? void 0 : ie[0]) == null ? void 0 : c.url : x
107
- });
108
- }), L.setObjUrl(w);
109
- }
110
- s("contentChange", {
111
- contents: g,
112
- index: i.index
113
- });
114
- };
115
- return Ve(
116
- () => i.itemData,
117
- async () => {
118
- var l, n, r, u, b, x, se, fe, ie, c, m, A, C, $;
119
- const F = (l = i.itemData) == null ? void 0 : l.find((j) => (j == null ? void 0 : j.key) === "formContent"), Q = (n = a(i.itemData)) == null ? void 0 : n.find((j) => (j == null ? void 0 : j.key) === "formButton"), g = (r = a(i.itemData)) == null ? void 0 : r.find((j) => (j == null ? void 0 : j.key) === "formFlex"), w = (u = a(i.itemData)) == null ? void 0 : u.find((j) => (j == null ? void 0 : j.key) === "formWrap"), V = (b = a(i.itemData)) == null ? void 0 : b.find((j) => (j == null ? void 0 : j.key) === "enableWrap");
120
- if ((w == null ? void 0 : w.contents) === "纵向" ? S.value = !1 : S.value = !0, U.value = (V == null ? void 0 : V.contents) === void 0 ? !1 : V == null ? void 0 : V.contents, T.value = typeof (g == null ? void 0 : g.contents) != "boolean" ? !(!(g != null && g.contents) === "" || ((x = g == null ? void 0 : g.contents) == null ? void 0 : x.toUpperCase()) === "VERTICAL") : g == null ? void 0 : g.contents, ((se = F == null ? void 0 : F.contents) == null ? void 0 : se.length) > 0 && Array.isArray(F == null ? void 0 : F.contents)) {
121
- const j = [];
122
- await ((fe = F == null ? void 0 : F.contents) == null ? void 0 : fe.forEach(async (d, G) => {
123
- var te, D, K, O, de, ee, W, ve, pe, Ae, be, xe;
124
- if ((d == null ? void 0 : d.label) !== "") {
125
- let ke = (d == null ? void 0 : d.label) ?? (d == null ? void 0 : d.key) ?? "", ue = (d == null ? void 0 : d.type) ?? "", e = (d == null ? void 0 : d.options) ?? [];
126
- if ((te = d == null ? void 0 : d.key) != null && te.includes("$") && (ke = (D = a(d == null ? void 0 : d.key).split("$")) == null ? void 0 : D[0], ((O = (K = a(d == null ? void 0 : d.key).split("$")) == null ? void 0 : K[1]) == null ? void 0 : O.length) > 0)) {
127
- const [h, v] = (ee = (de = a(d == null ? void 0 : d.key).split("$")) == null ? void 0 : de[1]) == null ? void 0 : ee.split(/[()]/);
128
- ue = ((W = Kl.find((B) => (B == null ? void 0 : B.key) === h)) == null ? void 0 : W.value) ?? "", ((ve = v == null ? void 0 : v.split(",")) == null ? void 0 : ve.length) > 0 && (e = (pe = v == null ? void 0 : v.split(",")) == null ? void 0 : pe.map((B) => ({
129
- label: B,
130
- value: B
131
- })));
132
- }
133
- let o = [];
134
- d != null && d.contents && !Array.isArray(d == null ? void 0 : d.contents) && (o = (be = (Ae = d == null ? void 0 : d.contents) == null ? void 0 : Ae.split(",")) == null ? void 0 : be.map((h) => ({
135
- label: h,
136
- value: h
137
- }))), j.push({
138
- label: ke ?? "",
139
- name: "t" + G,
140
- type: ue === "" ? "Input" : ue,
141
- value: d != null && d.originalContent && (d == null ? void 0 : d.originalContent) !== "" ? d.originalContent : d != null && d.value ? d.value : (e == null ? void 0 : e.length) > 0 ? (xe = e == null ? void 0 : e[0]) == null ? void 0 : xe.value : (d == null ? void 0 : d.value) ?? "",
142
- id: (d == null ? void 0 : d.id) ?? G,
143
- contents: (o == null ? void 0 : o.length) > 0 ? o : e ?? [],
144
- width: (d == null ? void 0 : d.width) ?? 1,
145
- config: d == null ? void 0 : d.config,
146
- optionUrl: (d == null ? void 0 : d.optionUrl) ?? d
147
- });
148
- }
149
- }));
150
- const Y = j == null ? void 0 : j.map((d) => d.value);
151
- let _ = "";
152
- Y == null || Y.forEach((d) => {
153
- d !== "" && d !== void 0 && (_ = _ === "" ? d : _ + "/" + d);
154
- }), I.setSelectArray(Y), I.setSelectString(_), f.value = (ie = a(j)) == null ? void 0 : ie.map((d) => (d != null && d.value && cl(d == null ? void 0 : d.value) && Array.isArray(JSON.parse(d == null ? void 0 : d.value)) && (d.value = JSON.parse(d.value)), d));
155
- let N = [], k = [];
156
- if ((c = a(f.value)) == null || c.forEach((d) => {
157
- var G;
158
- Array.isArray(d == null ? void 0 : d.value) && ((G = d == null ? void 0 : d.value) != null && G.find((te) => {
159
- var D;
160
- return (D = te == null ? void 0 : te.url) == null ? void 0 : D.includes(".obj");
161
- })) && (k = d == null ? void 0 : d.value);
162
- }), (k == null ? void 0 : k.length) > 0) {
163
- const d = (m = a(k)) == null ? void 0 : m.filter((G) => {
164
- var te;
165
- return (te = G == null ? void 0 : G.url) == null ? void 0 : te.includes(".obj");
166
- });
167
- d == null || d.forEach((G) => {
168
- var D, K, O, de;
169
- const te = (D = k == null ? void 0 : k.filter((ee) => {
170
- var W;
171
- return (ee == null ? void 0 : ee.name) === (G == null ? void 0 : G.name) && ((W = ee == null ? void 0 : ee.url) == null ? void 0 : W.includes(".mtl"));
172
- })) == null ? void 0 : D.map((ee) => ee == null ? void 0 : ee.url);
173
- N.push({
174
- objUrl: G == null ? void 0 : G.url,
175
- mtlUrls: ((K = k == null ? void 0 : k.filter((ee) => {
176
- var W;
177
- return (ee == null ? void 0 : ee.name) === (G == null ? void 0 : G.name) && ((W = ee == null ? void 0 : ee.url) == null ? void 0 : W.includes(".mtl"));
178
- })) == null ? void 0 : K.length) === 1 ? (de = (O = k == null ? void 0 : k.filter((ee) => {
179
- var W;
180
- return (ee == null ? void 0 : ee.name) === (G == null ? void 0 : G.name) && ((W = ee == null ? void 0 : ee.url) == null ? void 0 : W.includes(".mtl"));
181
- })) == null ? void 0 : O[0]) == null ? void 0 : de.url : te
182
- });
183
- }), L.setObjUrl(N);
184
- }
185
- (A = a(f.value)) == null || A.forEach((d) => {
186
- var G, te, D, K, O, de, ee, W, ve, pe, Ae, be, xe;
187
- if ((te = (G = d == null ? void 0 : d.value) == null ? void 0 : G.toString()) != null && te.includes(".stl") || (K = (D = d == null ? void 0 : d.value) == null ? void 0 : D.toString()) != null && K.includes(".STL") || (de = (O = d == null ? void 0 : d.value) == null ? void 0 : O.toString()) != null && de.includes(".obj") || (W = (ee = d == null ? void 0 : d.value) == null ? void 0 : ee.toString()) != null && W.includes(".mtl") || (pe = (ve = d == null ? void 0 : d.value) == null ? void 0 : ve.toString()) != null && pe.includes(".urdf")) {
188
- let ke = {}, ue = [], e;
189
- Array.isArray(d == null ? void 0 : d.value) ? e = d == null ? void 0 : d.value : e = (Ae = d == null ? void 0 : d.value) == null ? void 0 : Ae.split(","), e == null || e.forEach((o) => {
190
- o.includes(".mtl") ? ue.push(o) : ke.blob = ke.blob === "undefined" ? o : ke.blob + "," + o;
191
- }), (ue == null ? void 0 : ue.length) > 0 && (ke.mtlBlobs = ue), (xe = (be = Object.values(ke)) == null ? void 0 : be[0]) != null && xe.includes("http:");
192
- }
193
- });
194
- } else
195
- f.value = [];
196
- if (((C = Q == null ? void 0 : Q.contents) == null ? void 0 : C.length) > 0) {
197
- const j = [];
198
- ($ = Q == null ? void 0 : Q.contents) == null || $.forEach((Y, _) => {
199
- (Y == null ? void 0 : Y.label) !== "" && j.push({
200
- label: (Y == null ? void 0 : Y.label) ?? "",
201
- id: (Y == null ? void 0 : Y.id) ?? _,
202
- type: (Y == null ? void 0 : Y.type) ?? "",
203
- background: Y == null ? void 0 : Y.background
204
- });
205
- }), P.value = j;
206
- } else
207
- P.value = [];
208
- },
209
- { deep: !0, immediate: !0 }
210
- ), (F, Q) => (H(), ce("div", Fa, [
211
- z(Ue, {
212
- rowContents: f.value,
213
- formRules: p.formRules,
214
- buttonValue: P.value,
215
- isRowFlex: !1,
216
- isEnableWrap: U.value,
217
- onOnButtonClick: J,
218
- onChange: oe,
219
- isButtonRow: S.value,
220
- onPreview: X
221
- }, null, 8, ["rowContents", "formRules", "buttonValue", "isEnableWrap", "isButtonRow"])
222
- ]));
223
- }
224
- }, Jl = /* @__PURE__ */ Re(Oa, [["__scopeId", "data-v-2aaa6bac"]]), Tl = M(0), Zl = (p) => {
225
- var y;
226
- return !p || (p == null ? void 0 : p.length) === 0 ? [] : (y = a(p)) == null ? void 0 : y.map((s) => (Tl.value++, s = {
227
- label: (s == null ? void 0 : s.label) ?? "",
228
- prop: (s == null ? void 0 : s.label) === "操作" ? "operate" : s == null ? void 0 : s.prop,
229
- width: s != null && s.width ? parseInt(s.width) : "",
230
- fixed: (s == null ? void 0 : s.fixed) ?? void 0,
231
- sortable: (s == null ? void 0 : s.sortable) ?? !1,
232
- align: (s == null ? void 0 : s.align) ?? "center",
233
- showOverflowTooltip: (s == null ? void 0 : s.showOverflowTooltip) ?? !0,
234
- isNotDrag: (s == null ? void 0 : s.isNotDrag) ?? !1,
235
- isEditCol: (s == null ? void 0 : s.isEditCol) ?? !1,
236
- isOperate: (s == null ? void 0 : s.isOperate) ?? !1,
237
- id: (s == null ? void 0 : s.id) ?? Tl.value,
238
- children: Zl(s == null ? void 0 : s.children)
239
- }, s));
240
- }, La = (p) => {
241
- var i;
242
- return (i = a(p)) == null ? void 0 : i.map((s) => (Tl.value++, s = {
243
- label: (s == null ? void 0 : s.label) ?? "",
244
- prop: (s == null ? void 0 : s.label) === "操作" ? "operate" : s == null ? void 0 : s.prop,
245
- width: s != null && s.width ? parseInt(s.width) : "",
246
- fixed: (s == null ? void 0 : s.fixed) ?? void 0,
247
- sortable: (s == null ? void 0 : s.sortable) ?? !1,
248
- align: (s == null ? void 0 : s.align) ?? "center",
249
- showOverflowTooltip: (s == null ? void 0 : s.showOverflowTooltip) ?? !0,
250
- isNotDrag: (s == null ? void 0 : s.isNotDrag) ?? !1,
251
- isEditCol: (s == null ? void 0 : s.isEditCol) ?? !1,
252
- isOperate: (s == null ? void 0 : s.isOperate) ?? !1,
253
- id: (s == null ? void 0 : s.id) ?? Tl.value,
254
- children: Zl(s == null ? void 0 : s.children)
255
- }, s));
256
- }, ea = (p, y) => {
257
- var i;
258
- return p != null && p.find((s) => (s == null ? void 0 : s.id) === y) ? (i = a(p)) == null ? void 0 : i.filter((f) => (f == null ? void 0 : f.id) !== y) : (p = p == null ? void 0 : p.map((s) => (s.children = ea(s == null ? void 0 : s.children, y), s)), p);
259
- }, la = (p, y) => {
260
- var i;
261
- return p != null && p.find((s) => (s == null ? void 0 : s.id) === (y == null ? void 0 : y.id)) ? (i = a(p)) == null ? void 0 : i.map((f) => ((f == null ? void 0 : f.id) === (y == null ? void 0 : y.id) && (f = y), f)) : (p = p == null ? void 0 : p.map((s) => (s.children = la(s == null ? void 0 : s.children, y), s)), p);
262
- }, aa = (p, y) => {
263
- var i;
264
- return p != null && p.find((s) => {
265
- var f;
266
- return (s == null ? void 0 : s.id) === ((f = y == null ? void 0 : y.contents) == null ? void 0 : f.id);
267
- }) ? (i = a(p)) == null ? void 0 : i.map((f) => {
268
- var S;
269
- return (f == null ? void 0 : f.id) === ((S = y == null ? void 0 : y.contents) == null ? void 0 : S.id) && (f = y == null ? void 0 : y.contents), f;
270
- }) : (p = p == null ? void 0 : p.map((s) => (s.children = aa(s == null ? void 0 : s.children, y), s)), p);
271
- }, sa = (p, y) => {
272
- var i;
273
- return p != null && p.find((s) => (s == null ? void 0 : s.id) === (y == null ? void 0 : y.id)) ? (i = a(p)) == null ? void 0 : i.map((f) => ((f == null ? void 0 : f.id) === (y == null ? void 0 : y.id) && (f != null && f.children || (f.children = []), f.children.push(y.contents)), f)) : (p = p == null ? void 0 : p.map((s) => (s.children = sa(s == null ? void 0 : s.children, y), s)), p);
274
- }, we = [
275
- {
276
- key: "label",
277
- label: "标签名",
278
- type: "Input"
279
- },
280
- {
281
- key: "prop",
282
- label: "属性名",
283
- type: "Input"
284
- },
285
- {
286
- key: "width",
287
- label: "宽度",
288
- type: "Input"
289
- },
290
- {
291
- key: "sortable",
292
- label: "是否支持排序",
293
- type: "Switch"
294
- },
295
- {
296
- key: "align",
297
- label: "文本所在位置",
298
- type: "Radio",
299
- options: [
300
- {
301
- label: "left",
302
- value: "左"
303
- },
304
- {
305
- label: "center",
306
- value: "中"
307
- },
308
- {
309
- label: "right",
310
- value: "右"
311
- }
312
- ]
313
- },
314
- {
315
- key: "fixed",
316
- label: "是否固定列",
317
- type: "Switch"
318
- }
319
- ], Ra = [
320
- {
321
- label: "查看",
322
- value: "view"
323
- },
324
- {
325
- label: "修改",
326
- value: "fix"
327
- },
328
- {
329
- label: "删除",
330
- value: "delete"
331
- },
332
- {
333
- label: "三维算例",
334
- value: "modelExample"
335
- }
336
- ], Pa = [
337
- {
338
- label: "新增",
339
- value: "add"
340
- }
341
- ], ul = [
342
- {
343
- key: "label",
344
- label: "按钮名",
345
- type: "Input"
346
- },
347
- {
348
- key: "type",
349
- label: "类型",
350
- type: "Select",
351
- options: Pa
352
- },
353
- {
354
- key: "background",
355
- label: "按钮背景色",
356
- type: "Color"
357
- }
358
- ], rl = [
359
- {
360
- key: "label",
361
- label: "按钮名",
362
- type: "Input"
363
- },
364
- {
365
- key: "type",
366
- label: "类型",
367
- type: "Select",
368
- options: Ra
369
- },
370
- {
371
- key: "textColor",
372
- label: "按钮颜色",
373
- type: "Color"
374
- }
375
- ], Na = { class: "table-header-child" }, Va = { class: "table-header-child-main" }, ja = { class: "table-header-child-content" }, Ua = { class: "table-header-child-content-item" }, Wa = { class: "fix-button" }, za = { key: 0 }, Ma = { class: "form-content" }, Ka = {
376
- __name: "tableNewChild",
377
- props: {
378
- tableChildContents: Array
379
- },
380
- emits: ["fixChange", "deleteChange"],
381
- setup(p, { emit: y }) {
382
- const i = p, s = y, f = M(!1), S = M(""), P = ql(Qe), { tableIndex: I } = al(P);
383
- M(0);
384
- const L = M(""), U = M([]), T = M([]), X = (l) => {
385
- var r;
386
- f.value = !0;
387
- let n = [];
388
- we == null || we.forEach((u) => {
389
- let b = a(I.value) + 1;
390
- P.setTableIndex(b), n.push({
391
- label: u == null ? void 0 : u.label,
392
- name: u == null ? void 0 : u.label,
393
- type: u.type,
394
- value: l[u.key],
395
- id: I.value,
396
- contents: u == null ? void 0 : u.options
397
- });
398
- }), l != null && l.children && ((r = l == null ? void 0 : l.children) == null ? void 0 : r.length) > 0 && n.push({
399
- children: l == null ? void 0 : l.children,
400
- isFormColHidden: !0
401
- }), L.value = l == null ? void 0 : l.id, U.value = n, T.value = n;
402
- }, J = (l) => {
403
- s("fixChange", a(l));
404
- }, oe = (l) => {
405
- s("deleteChange", a(l));
406
- }, F = (l) => {
407
- f.value = !0;
408
- let n = [];
409
- we == null || we.forEach((r) => {
410
- let u = a(I.value) + 1;
411
- P.setTableIndex(u), n.push({
412
- label: r == null ? void 0 : r.label,
413
- name: r == null ? void 0 : r.label,
414
- type: r.type,
415
- value: "",
416
- id: I.value,
417
- contents: r == null ? void 0 : r.options
418
- });
419
- }), S.value = l == null ? void 0 : l.id, U.value = n, T.value = n;
420
- }, Q = (l) => {
421
- let n = a(T.value);
422
- n = n == null ? void 0 : n.map((r) => (r.children || (r.value = l == null ? void 0 : l[r.name]), r)), T.value = n;
423
- }, g = () => {
424
- var n, r;
425
- U.value = T.value;
426
- let l = {};
427
- if (L.value !== "")
428
- l.id = L.value, (n = U.value) == null || n.forEach((u) => {
429
- const b = we == null ? void 0 : we.find((x) => (x == null ? void 0 : x.label) === (u == null ? void 0 : u.label));
430
- b ? l[b.key] = u.value : u != null && u.children && u.children.length > 0 && (l.children = u.children);
431
- }), f.value = !1, s("fixChange", {
432
- contents: a(l),
433
- id: S.value,
434
- type: "fix"
435
- });
436
- else {
437
- let u = a(I.value) + 1;
438
- P.setTableIndex(u), l.id = "id" + I.value, (r = U.value) == null || r.forEach((b) => {
439
- const x = we == null ? void 0 : we.find((se) => (se == null ? void 0 : se.label) === (b == null ? void 0 : b.label));
440
- x ? l[x.key] = b.value : b != null && b.children && b.children.length > 0 && (l.children = b.children);
441
- }), f.value = !1, s("fixChange", {
442
- contents: a(l),
443
- id: S.value,
444
- type: "add"
445
- });
446
- }
447
- L.value = "", U.value = [], T.value = [];
448
- }, w = () => {
449
- f.value = !1, L.value = "", S.value = "", U.value = [], T.value = [];
450
- }, V = (l) => {
451
- tl.confirm("是否确认要删除", "", {
452
- confirmButtonText: "确认",
453
- cancelButtonText: "取消",
454
- type: "warning"
455
- }).then(
456
- () => {
457
- s("deleteChange", l), Ye({
458
- type: "success",
459
- message: "删除成功"
460
- });
461
- }
462
- ).catch(() => {
463
- });
464
- };
465
- return (l, n) => {
466
- const r = Te("svg-icon");
467
- return H(), ce("div", Na, [
468
- (H(!0), ce(Se, null, Fe(i == null ? void 0 : i.tableChildContents, (u, b) => (H(), ce("div", Va, [
469
- E("div", ja, [
470
- E("div", Ua, ye(u.label), 1),
471
- E("div", Wa, [
472
- z(r, {
473
- name: "ChildAdd",
474
- class: "svg-icon-content",
475
- style: { width: "24px", height: "24px" },
476
- onClick: (x) => F(u)
477
- }, null, 8, ["onClick"]),
478
- z(r, {
479
- name: "ChildFix",
480
- class: "svg-icon-content",
481
- style: { width: "24px", height: "24px" },
482
- onClick: (x) => X(u)
483
- }, null, 8, ["onClick"]),
484
- z(r, {
485
- name: "ChildDelete",
486
- class: "svg-icon-content",
487
- style: { width: "24px", height: "24px" },
488
- onClick: (x) => V(u)
489
- }, null, 8, ["onClick"])
490
- ])
491
- ]),
492
- u != null && u.children && u.children.length > 0 ? (H(), ce("div", za, [
493
- z(ia, {
494
- tableChildContents: u == null ? void 0 : u.children,
495
- onDeleteChange: oe,
496
- onFixChange: J
497
- }, null, 8, ["tableChildContents"])
498
- ])) : Xe("", !0)
499
- ]))), 256)),
500
- z(Je, {
501
- visible: f.value,
502
- onBeforeDestroy: w,
503
- width: 840
504
- }, {
505
- default: ae(() => [
506
- E("div", Ma, [
507
- (H(), Oe(Ue, {
508
- rowContents: U.value,
509
- key: U.value,
510
- isEnableWrap: !0,
511
- onChange: Q
512
- }, null, 8, ["rowContents"]))
513
- ])
514
- ]),
515
- footer: ae(() => [
516
- E("div", { class: "dialog-footer" }, [
517
- E("div", {
518
- onClick: w,
519
- class: "cancel-button button"
520
- }, ye("取消")),
521
- E("div", {
522
- class: "ok-button button",
523
- onClick: g
524
- }, ye("确认"))
525
- ])
526
- ]),
527
- _: 1
528
- }, 8, ["visible"])
529
- ]);
530
- };
531
- }
532
- }, Ja = /* @__PURE__ */ Re(Ka, [["__scopeId", "data-v-e0fef72d"]]), Ga = { class: "table-header-child" }, qa = { class: "table-header-child-main" }, Ha = { class: "table-header-child-content" }, Qa = { class: "table-header-child-content-item" }, Xa = { class: "fix-button" }, Ya = { key: 0 }, Za = { class: "form-content" }, es = { class: "dialog-footer" }, ls = {
533
- __name: "tableChildren",
534
- props: {
535
- tableChildContents: Array
536
- },
537
- emits: ["fixChange", "deleteChange"],
538
- setup(p, { emit: y }) {
539
- const i = p, s = y, f = M(!1), S = M(""), P = ql(Qe), { tableIndex: I } = al(P), L = M(""), U = M([]), T = M([]), X = (l) => {
540
- s("fixChange", a(l));
541
- }, J = (l) => {
542
- var r;
543
- f.value = !0;
544
- let n = [];
545
- we == null || we.forEach((u) => {
546
- let b = a(I.value) + 1;
547
- P.setTableIndex(b), n.push({
548
- label: u == null ? void 0 : u.label,
549
- name: u == null ? void 0 : u.label,
550
- type: u.type,
551
- value: l[u.key],
552
- id: I.value,
553
- contents: u == null ? void 0 : u.options
554
- });
555
- }), l != null && l.children && ((r = l == null ? void 0 : l.children) == null ? void 0 : r.length) > 0 && n.push({
556
- children: l == null ? void 0 : l.children,
557
- isFormColHidden: !0
558
- }), L.value = l == null ? void 0 : l.id, U.value = n, T.value = n;
559
- }, oe = (l) => {
560
- f.value = !0;
561
- let n = [];
562
- we == null || we.forEach((r) => {
563
- let u = a(I.value) + 1;
564
- P.setTableIndex(u), n.push({
565
- label: r == null ? void 0 : r.label,
566
- name: r == null ? void 0 : r.label,
567
- type: r.type,
568
- value: "",
569
- id: I.value,
570
- contents: r == null ? void 0 : r.options
571
- });
572
- }), S.value = l == null ? void 0 : l.id, U.value = n, T.value = n;
573
- }, F = (l) => {
574
- let n = a(T.value);
575
- n = n == null ? void 0 : n.map((r) => (r.children || (r.value = l == null ? void 0 : l[r.name]), r)), T.value = n;
576
- }, Q = () => {
577
- var n, r;
578
- U.value = T.value;
579
- let l = {};
580
- if (L.value !== "")
581
- l.id = L.value, (n = U.value) == null || n.forEach((u) => {
582
- const b = we == null ? void 0 : we.find((x) => (x == null ? void 0 : x.label) === (u == null ? void 0 : u.label));
583
- b ? l[b.key] = u.value : u != null && u.children && u.children.length > 0 && (l.children = u.children);
584
- }), f.value = !1, s("fixChange", {
585
- contents: a(l),
586
- id: S.value,
587
- type: "fix"
588
- });
589
- else {
590
- let u = a(I.value) + 1;
591
- P.setTableIndex(u), l.id = "idChild" + I.value, (r = U.value) == null || r.forEach((b) => {
592
- const x = we == null ? void 0 : we.find((se) => (se == null ? void 0 : se.label) === (b == null ? void 0 : b.label));
593
- x ? l[x.key] = b.value : b != null && b.children && b.children.length > 0 && (l.children = b.children);
594
- }), f.value = !1, s("fixChange", {
595
- contents: a(l),
596
- id: S.value,
597
- type: "add"
598
- });
599
- }
600
- L.value = "", U.value = [], T.value = [];
601
- }, g = () => {
602
- f.value = !1, L.value = "", S.value = "", U.value = [], T.value = [];
603
- }, w = (l) => {
604
- tl.confirm("是否确认要删除", "", {
605
- confirmButtonText: "确认",
606
- cancelButtonText: "取消",
607
- type: "warning"
608
- }).then(
609
- () => {
610
- s("deleteChange", l), Ye({
611
- type: "success",
612
- message: "删除成功"
613
- });
614
- }
615
- ).catch(() => {
616
- });
617
- }, V = (l) => {
618
- s("deleteChange", l);
619
- };
620
- return (l, n) => {
621
- const r = Te("svg-icon"), u = Te("el-button");
622
- return H(), ce("div", Ga, [
623
- (H(!0), ce(Se, null, Fe(i == null ? void 0 : i.tableChildContents, (b, x) => (H(), ce("div", qa, [
624
- E("div", Ha, [
625
- E("div", Qa, ye(b.label), 1),
626
- E("div", Xa, [
627
- z(r, {
628
- name: "ChildAdd",
629
- class: "svg-icon-content",
630
- style: { width: "24px", height: "24px" },
631
- onClick: (se) => oe(b)
632
- }, null, 8, ["onClick"]),
633
- z(r, {
634
- name: "ChildFix",
635
- class: "svg-icon-content",
636
- style: { width: "24px", height: "24px" },
637
- onClick: (se) => J(b)
638
- }, null, 8, ["onClick"]),
639
- z(r, {
640
- name: "ChildDelete",
641
- class: "svg-icon-content",
642
- style: { width: "24px", height: "24px" },
643
- onClick: (se) => w(b)
644
- }, null, 8, ["onClick"])
645
- ])
646
- ]),
647
- b != null && b.children && b.children.length > 0 ? (H(), ce("div", Ya, [
648
- z(Ja, {
649
- tableChildContents: b == null ? void 0 : b.children,
650
- onDeleteChange: V,
651
- onFixChange: X
652
- }, null, 8, ["tableChildContents"])
653
- ])) : Xe("", !0)
654
- ]))), 256)),
655
- z(Je, {
656
- visible: f.value,
657
- onBeforeDestroy: g,
658
- width: 840
659
- }, {
660
- default: ae(() => [
661
- E("div", Za, [
662
- (H(), Oe(Ue, {
663
- rowContents: U.value,
664
- key: U.value,
665
- isEnableWrap: !0,
666
- onChange: F
667
- }, null, 8, ["rowContents"]))
668
- ])
669
- ]),
670
- footer: ae(() => [
671
- E("div", es, [
672
- z(u, {
673
- onClick: g,
674
- class: "cancel-button button",
675
- id: "themeBorderButton"
676
- }, {
677
- default: ae(() => n[0] || (n[0] = [
678
- $e(ye("取消"))
679
- ])),
680
- _: 1,
681
- __: [0]
682
- }),
683
- z(u, {
684
- class: "ok-button button",
685
- onClick: Q,
686
- id: "themeButton"
687
- }, {
688
- default: ae(() => n[1] || (n[1] = [
689
- $e(ye("确认"))
690
- ])),
691
- _: 1,
692
- __: [1]
693
- })
694
- ])
695
- ]),
696
- _: 1
697
- }, 8, ["visible"])
698
- ]);
699
- };
700
- }
701
- }, ia = /* @__PURE__ */ Re(ls, [["__scopeId", "data-v-ebd68fa1"]]), as = { class: "table-operate-content" }, ss = { class: "table-operate-item" }, is = { class: "operate-title" }, ns = { class: "operate-content" }, os = { class: "fix-content" }, us = { class: "fix-content-label" }, rs = { class: "fix-button" }, cs = { key: 0 }, ts = { class: "operate-title" }, ds = { class: "operate-content" }, ps = { class: "fix-content" }, fs = { class: "fix-content-label" }, vs = { class: "fix-button" }, hs = { class: "operate-title" }, ms = { class: "operate-content" }, ys = { class: "fix-content" }, bs = { class: "fix-content-label" }, gs = { class: "fix-button" }, ks = { class: "operate-title" }, _s = { class: "operate-content" }, Cs = { class: "fix-content" }, ws = { class: "fix-content-label" }, Ds = { class: "fix-button" }, Is = { class: "operate-content" }, As = { style: { display: "flex", "justify-content": "space-between" } }, xs = { class: "form-content" }, $s = { class: "dialog-footer" }, Es = { class: "form-content" }, Bs = { class: "dialog-footer" }, Ts = { class: "form-content" }, Ss = { class: "dialog-footer" }, Fs = { class: "form-content" }, Os = { class: "dialog-footer" }, Ls = {
702
- __name: "operate",
703
- props: {
704
- itemContents: {
705
- type: Array,
706
- default: () => []
707
- },
708
- originalItemContents: {
709
- type: Array,
710
- default: () => []
711
- }
712
- },
713
- emits: ["change"],
714
- setup(p, { emit: y }) {
715
- const i = p, s = y, f = M([]), S = M(!1), P = M(!1), I = M([]), L = M(!1), U = M([]), T = M(!1), X = M([]), J = M(""), oe = M(""), F = M([]), Q = M([]), g = M([]), w = M([]), V = M(!1), l = M([]), n = M([]), r = M(0), u = M([]), b = M([]), x = M([]), se = () => {
716
- V.value = !0;
717
- let e = [];
718
- ul == null || ul.forEach((o) => {
719
- r.value++, e.push({
720
- label: o == null ? void 0 : o.label,
721
- name: o == null ? void 0 : o.label,
722
- type: o.type,
723
- value: (o == null ? void 0 : o.key) === "background" ? "var(--ssComponent-primary-color)" : "",
724
- id: r.value,
725
- contents: o == null ? void 0 : o.options
726
- });
727
- }), l.value = e, n.value = e;
728
- }, fe = () => {
729
- var o, h, v;
730
- P.value = !0;
731
- let e = [];
732
- (v = (h = (o = Ne) == null ? void 0 : o.find((B) => (B == null ? void 0 : B.key) === "Input")) == null ? void 0 : h.value) == null || v.forEach((B) => {
733
- r.value++, e.push({
734
- label: B == null ? void 0 : B.label,
735
- name: B == null ? void 0 : B.label,
736
- type: B.type,
737
- value: (B == null ? void 0 : B.label) === "类型" ? "Input" : "",
738
- id: r.value,
739
- contents: B == null ? void 0 : B.options
740
- });
741
- }), u.value = e, b.value = e;
742
- }, ie = (e) => {
743
- e || (u.value = b.value);
744
- }, c = async (e) => {
745
- var o, h, v, B, Z, ne, q, re, ge, _e, Ie, me;
746
- if ((e == null ? void 0 : e.类型) !== ((h = (o = b.value) == null ? void 0 : o.find((le) => (le == null ? void 0 : le.label) === "类型")) == null ? void 0 : h.value)) {
747
- let le = [], De = await ((Z = (B = (v = Ne) == null ? void 0 : v.find((he) => (he == null ? void 0 : he.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : B.value) == null ? void 0 : Z.value) ? await ((_e = (ge = (re = Ne) == null ? void 0 : re.find((he) => (he == null ? void 0 : he.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : ge.value) == null ? void 0 : _e.value) : (q = (ne = Ne) == null ? void 0 : ne.find((he) => (he == null ? void 0 : he.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : q.value;
748
- if (De == null || De.forEach((he) => {
749
- r.value++, le.push({
750
- label: he == null ? void 0 : he.label,
751
- name: he == null ? void 0 : he.label,
752
- type: he.type,
753
- value: (e == null ? void 0 : e[he.label]) ?? "",
754
- id: r.value,
755
- contents: he == null ? void 0 : he.options
756
- });
757
- }), e != null && e.菜单选项 && ((Ie = e == null ? void 0 : e.菜单选项) == null ? void 0 : Ie.length) > 0) {
758
- const he = await ml(e == null ? void 0 : e.菜单选项);
759
- le = le == null ? void 0 : le.map((Ee) => ((Ee == null ? void 0 : Ee.name) === "组信息选项" && (Ee.contents = he), Ee));
760
- }
761
- b.value = await el(a(le)), u.value = await el(a(le));
762
- } else {
763
- let le = a(u.value);
764
- if (le = le == null ? void 0 : le.map((De) => (De.value = e == null ? void 0 : e[De.name], De)), e != null && e.菜单选项 && ((me = e == null ? void 0 : e.菜单选项) == null ? void 0 : me.length) > 0) {
765
- const De = await ml(e == null ? void 0 : e.菜单选项);
766
- le = le == null ? void 0 : le.map((he) => ((he == null ? void 0 : he.name) === "组信息选项" && (he.contents = De), he));
767
- }
768
- le = pl(le), b.value = await el(a(le));
769
- }
770
- }, m = async (e) => {
771
- await c(e), u.value = b.value;
772
- }, A = async (e) => {
773
- var v, B, Z, ne, q, re, ge, _e, Ie;
774
- P.value = !0;
775
- let o = [];
776
- const h = await ((Z = (B = (v = Ne) == null ? void 0 : v.find((me) => (me == null ? void 0 : me.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : B.value) == null ? void 0 : Z.value) ? await ((_e = (ge = (re = Ne) == null ? void 0 : re.find((me) => (me == null ? void 0 : me.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : ge.value) == null ? void 0 : _e.value) : (q = (ne = Ne) == null ? void 0 : ne.find((me) => (me == null ? void 0 : me.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : q.value;
777
- if (h == null || h.forEach((me) => {
778
- r.value++, o.push({
779
- label: me == null ? void 0 : me.label,
780
- name: me == null ? void 0 : me.label,
781
- type: me.type,
782
- value: (me == null ? void 0 : me.label) === "类型" && e[me.key] === "" ? "Input" : e[me.key],
783
- id: r.value,
784
- contents: me == null ? void 0 : me.options
785
- });
786
- }), e != null && e.menuSelect && ((Ie = e == null ? void 0 : e.menuSelect) == null ? void 0 : Ie.length) > 0) {
787
- const me = await ml(e == null ? void 0 : e.menuSelect);
788
- o = o == null ? void 0 : o.map((le) => ((le == null ? void 0 : le.name) === "组信息选项" && (le.contents = me), le));
789
- }
790
- J.value = e == null ? void 0 : e.id, u.value = await el(pl(o)), b.value = await el(pl(o));
791
- }, C = (e) => {
792
- tl.confirm("是否确认要删除", "", {
793
- confirmButtonText: "确认",
794
- cancelButtonText: "取消",
795
- type: "warning"
796
- }).then(
797
- () => {
798
- var o, h;
799
- x.value = (o = a(x.value)) == null ? void 0 : o.filter((v) => (v == null ? void 0 : v.id) !== (e == null ? void 0 : e.id)), s("change", (h = a(i.originalItemContents)) == null ? void 0 : h.map((v) => ((v == null ? void 0 : v.key) === "tableToForm" && (v.contents = x.value), v))), Ye({
800
- type: "success",
801
- message: "删除成功"
802
- });
803
- }
804
- ).catch(() => {
805
- });
806
- }, $ = () => {
807
- P.value = !1, u.value = [], J.value = "";
808
- }, j = async () => {
809
- var v, B, Z, ne, q, re, ge, _e, Ie, me;
810
- u.value = b.value;
811
- let e = {};
812
- J.value !== "" ? e.id = J.value : (r.value++, e.id = "id" + r.value);
813
- let o = await ((Z = (B = (v = Ne) == null ? void 0 : v.find((le) => {
814
- var De, he;
815
- return (le == null ? void 0 : le.key) === (((he = (De = u.value) == null ? void 0 : De.find((Ee) => (Ee == null ? void 0 : Ee.label) === "类型")) == null ? void 0 : he.value) ?? "label");
816
- })) == null ? void 0 : B.value) == null ? void 0 : Z.value) ?? ((q = (ne = Ne) == null ? void 0 : ne.find((le) => {
817
- var De, he;
818
- return (le == null ? void 0 : le.key) === (((he = (De = u.value) == null ? void 0 : De.find((Ee) => (Ee == null ? void 0 : Ee.label) === "类型")) == null ? void 0 : he.value) ?? "label");
819
- })) == null ? void 0 : q.value);
820
- if ((re = u.value) == null || re.forEach((le) => {
821
- const De = o == null ? void 0 : o.find((he) => (he == null ? void 0 : he.label) === (le == null ? void 0 : le.label));
822
- De && (e[De.key] = le.value);
823
- }), e.name = e.label, (ge = x.value) != null && ge.find((le) => le.id === e.id))
824
- x.value = (_e = x.value) == null ? void 0 : _e.map((le) => (le.id === e.id && (le = e), le));
825
- else {
826
- let le = a(x.value);
827
- x.value || (x.value = []), le.push(e), x.value = le;
828
- }
829
- x.value = x.value.map(({ id: le, ...De }) => De), P.value = !1, J.value = "";
830
- let h = a(i.originalItemContents);
831
- (Ie = a(i.originalItemContents)) != null && Ie.find((le) => (le == null ? void 0 : le.key) === "tableToForm") ? h = (me = a(i.originalItemContents)) == null ? void 0 : me.map((le) => ((le == null ? void 0 : le.key) === "tableToForm" && (le.contents = x.value), le)) : h.push({
832
- key: "tableToForm",
833
- contents: x.value
834
- }), s("change", h);
835
- }, Y = (e) => {
836
- V.value = !0;
837
- let o = [];
838
- ul == null || ul.forEach((h) => {
839
- r.value++, o.push({
840
- label: h == null ? void 0 : h.label,
841
- name: h == null ? void 0 : h.label,
842
- type: h.type,
843
- value: e[h.key],
844
- id: r.value,
845
- contents: h == null ? void 0 : h.options
846
- });
847
- }), J.value = e == null ? void 0 : e.id, l.value = o, n.value = o;
848
- };
849
- Ve(
850
- () => T.value,
851
- () => {
852
- var o, h;
853
- let e = a(i.originalItemContents);
854
- (o = a(i.originalItemContents)) != null && o.find((v) => (v == null ? void 0 : v.key) === "page") ? e = (h = a(i.originalItemContents)) == null ? void 0 : h.map((v) => ((v == null ? void 0 : v.key) === "page" && (v.contents = T.value), v)) : e.push({
855
- key: "page",
856
- contents: T.value
857
- }), s("change", e);
858
- },
859
- { deep: !0 }
860
- );
861
- const _ = (e) => {
862
- tl.confirm("是否确认要删除", "", {
863
- confirmButtonText: "确认",
864
- cancelButtonText: "取消",
865
- type: "warning"
866
- }).then(
867
- () => {
868
- var o, h;
869
- Q.value = (o = a(Q.value)) == null ? void 0 : o.filter((v) => (v == null ? void 0 : v.id) !== (e == null ? void 0 : e.id)), s("change", (h = a(i.originalItemContents)) == null ? void 0 : h.map((v) => ((v == null ? void 0 : v.key) === "extraButton" && (v.contents = Q.value), v))), Ye({
870
- type: "success",
871
- message: "删除成功"
872
- });
873
- }
874
- ).catch(() => {
875
- });
876
- }, N = () => {
877
- var h, v, B, Z, ne;
878
- l.value = n.value;
879
- let e = {};
880
- if (J.value !== "" ? e.id = J.value : (r.value++, e.id = "id" + r.value), (h = l.value) == null || h.forEach((q) => {
881
- const re = ul == null ? void 0 : ul.find((ge) => (ge == null ? void 0 : ge.label) === (q == null ? void 0 : q.label));
882
- re ? e[re.key] = q.value : q != null && q.children && q.children.length > 0 && (e.children = q.children);
883
- }), (v = Q.value) != null && v.find((q) => q.id === e.id))
884
- Q.value = (B = Q.value) == null ? void 0 : B.map((q) => (q.id === e.id && (q = e), q));
885
- else {
886
- let q = a(Q.value) ?? [];
887
- q.push(e), Q.value = q;
888
- }
889
- V.value = !1, J.value = "";
890
- let o = a(i.originalItemContents);
891
- (Z = a(i.originalItemContents)) != null && Z.find((q) => (q == null ? void 0 : q.key) === "extraButton") ? o = (ne = a(i.originalItemContents)) == null ? void 0 : ne.map((q) => ((q == null ? void 0 : q.key) === "extraButton" && (q.contents = Q.value), q)) : o.push({
892
- key: "extraButton",
893
- contents: Q.value
894
- }), s("change", o);
895
- }, k = (e) => {
896
- let o = a(n.value);
897
- o = o == null ? void 0 : o.map((h) => (h.children || (h.value = e == null ? void 0 : e[h.name]), h)), n.value = o;
898
- }, d = () => {
899
- V.value = !1, l.value = [], J.value = "";
900
- }, G = (e) => {
901
- L.value = !0;
902
- let o = [];
903
- rl == null || rl.forEach((h) => {
904
- r.value++, o.push({
905
- label: h == null ? void 0 : h.label,
906
- name: h == null ? void 0 : h.label,
907
- type: h.type,
908
- value: e[h.key],
909
- id: r.value,
910
- contents: h == null ? void 0 : h.options
911
- });
912
- }), J.value = e == null ? void 0 : e.id, g.value = o, w.value = o;
913
- }, te = (e) => {
914
- tl.confirm("是否确认要删除", "", {
915
- confirmButtonText: "确认",
916
- cancelButtonText: "取消",
917
- type: "warning"
918
- }).then(
919
- () => {
920
- var o, h;
921
- F.value = (o = a(F.value)) == null ? void 0 : o.filter((v) => (v == null ? void 0 : v.id) !== (e == null ? void 0 : e.id)), s("change", (h = a(i.originalItemContents)) == null ? void 0 : h.map((v) => ((v == null ? void 0 : v.key) === "rowButton" && (v.contents = F.value), v))), Ye({
922
- type: "success",
923
- message: "删除成功"
924
- });
925
- }
926
- ).catch(() => {
927
- });
928
- }, D = () => {
929
- S.value = !0;
930
- let e = [];
931
- we == null || we.forEach((o) => {
932
- r.value++, e.push({
933
- label: o == null ? void 0 : o.label,
934
- name: o == null ? void 0 : o.label,
935
- type: o.type,
936
- value: "",
937
- id: r.value,
938
- contents: o == null ? void 0 : o.options
939
- });
940
- }), U.value = e, X.value = e;
941
- }, K = () => {
942
- L.value = !0;
943
- let e = [];
944
- rl == null || rl.forEach((o) => {
945
- r.value++, e.push({
946
- label: o == null ? void 0 : o.label,
947
- name: o == null ? void 0 : o.label,
948
- type: o.type,
949
- value: "",
950
- id: r.value,
951
- contents: o == null ? void 0 : o.options
952
- });
953
- }), g.value = e, w.value = e;
954
- }, O = (e) => {
955
- let o = a(w.value);
956
- o = o == null ? void 0 : o.map((h) => (h.children || (h.value = e == null ? void 0 : e[h.name]), h)), w.value = o;
957
- }, de = () => {
958
- var h, v, B, Z, ne;
959
- g.value = w.value;
960
- let e = {};
961
- if (J.value !== "" ? e.id = J.value : (r.value++, e.id = "id" + r.value), (h = g.value) == null || h.forEach((q) => {
962
- const re = rl == null ? void 0 : rl.find((ge) => (ge == null ? void 0 : ge.label) === (q == null ? void 0 : q.label));
963
- re ? e[re.key] = q.value : q != null && q.children && q.children.length > 0 && (e.children = q.children);
964
- }), (v = F.value) != null && v.find((q) => q.id === e.id))
965
- F.value = (B = F.value) == null ? void 0 : B.map((q) => (q.id === e.id && (q = e), q));
966
- else {
967
- let q = a(F.value);
968
- q.push(e), F.value = q;
969
- }
970
- L.value = !1, J.value = "";
971
- let o = a(i.originalItemContents);
972
- (Z = a(i.originalItemContents)) != null && Z.find((q) => (q == null ? void 0 : q.key) === "rowButton") ? o = (ne = a(i.originalItemContents)) == null ? void 0 : ne.map((q) => ((q == null ? void 0 : q.key) === "rowButton" && (q.contents = F.value), q)) : o.push({
973
- key: "rowButton",
974
- contents: F.value
975
- }), s("change", o);
976
- }, ee = () => {
977
- L.value = !1, J.value = "", w.value = [], g.value = [];
978
- }, W = (e) => {
979
- S.value = !0;
980
- let o = [];
981
- we == null || we.forEach((h) => {
982
- r.value++, o.push({
983
- label: h == null ? void 0 : h.label,
984
- name: h == null ? void 0 : h.label,
985
- type: h.type,
986
- value: "",
987
- id: r.value,
988
- contents: h == null ? void 0 : h.options
989
- });
990
- }), U.value = o, oe.value = e == null ? void 0 : e.id, X.value = o;
991
- }, ve = (e) => {
992
- var o;
993
- I.value = ea(a(I.value), e == null ? void 0 : e.id), s("change", (o = a(i.originalItemContents)) == null ? void 0 : o.map((h) => {
994
- var v;
995
- return (h == null ? void 0 : h.key) === "header" && (h.contents = (v = I.value) != null && v.some((B) => B == null ? void 0 : B.children) ? [I.value] : I.value), h;
996
- }));
997
- }, pe = (e) => {
998
- var h, v, B;
999
- e.type === "fix" ? e.id !== "" ? I.value = aa(I.value, e) : I.value = la(I.value, e == null ? void 0 : e.contents) : I.value = sa(I.value, e), I.value = (h = I.value) != null && h.some((Z) => Z == null ? void 0 : Z.children) ? [I.value] : I.value, J.value = "";
1000
- let o = a(i.originalItemContents);
1001
- (v = a(i.originalItemContents)) != null && v.find((Z) => (Z == null ? void 0 : Z.key) === "header") ? o = (B = a(i.originalItemContents)) == null ? void 0 : B.map((Z) => ((Z == null ? void 0 : Z.key) === "header" && (Z.contents = I.value), Z)) : o.push({
1002
- key: "header",
1003
- contents: I.value
1004
- }), s("change", o);
1005
- }, Ae = (e) => {
1006
- var h;
1007
- S.value = !0;
1008
- let o = [];
1009
- we == null || we.forEach((v) => {
1010
- r.value++, o.push({
1011
- label: v == null ? void 0 : v.label,
1012
- name: v == null ? void 0 : v.label,
1013
- type: v.type,
1014
- value: e[v.key],
1015
- id: r.value,
1016
- contents: v == null ? void 0 : v.options
1017
- });
1018
- }), e != null && e.children && ((h = e == null ? void 0 : e.children) == null ? void 0 : h.length) > 0 && o.push({
1019
- children: e == null ? void 0 : e.children,
1020
- isFormColHidden: !0
1021
- }), J.value = e == null ? void 0 : e.id, oe.value = "", U.value = o, X.value = o;
1022
- }, be = (e) => {
1023
- let o = a(X.value);
1024
- o = o == null ? void 0 : o.map((h) => (h.children || (h.value = e == null ? void 0 : e[h.name]), h)), X.value = o;
1025
- }, xe = () => {
1026
- S.value = !1, J.value = "", oe.value = "", X.value = [];
1027
- }, ke = () => {
1028
- var h, v, B, Z, ne, q;
1029
- U.value = X.value;
1030
- let e = {};
1031
- if (J.value !== "" ? e.id = J.value : (r.value++, e.id = "id" + r.value), (h = U.value) == null || h.forEach((re) => {
1032
- const ge = we == null ? void 0 : we.find((_e) => (_e == null ? void 0 : _e.label) === (re == null ? void 0 : re.label));
1033
- ge ? e[ge.key] = re.value : re != null && re.children && re.children.length > 0 && (e.children = re.children);
1034
- }), (v = I.value) != null && v.find((re) => re.id === e.id))
1035
- I.value = (B = I.value) == null ? void 0 : B.map((re) => (re.id === e.id && (re = e), re));
1036
- else {
1037
- let re = a(I.value) ?? [];
1038
- oe.value === "" ? re.push(e) : re = re == null ? void 0 : re.map((ge) => (ge.id === oe.value && (ge.children || (ge.children = []), ge.children.push(e)), ge)), I.value = re;
1039
- }
1040
- I.value = (Z = I.value) != null && Z.some((re) => re == null ? void 0 : re.children) ? [I.value] : I.value, S.value = !1, J.value = "", oe.value = "";
1041
- let o = a(i.originalItemContents);
1042
- (ne = a(i.originalItemContents)) != null && ne.find((re) => (re == null ? void 0 : re.key) === "header") ? o = (q = a(i.originalItemContents)) == null ? void 0 : q.map((re) => ((re == null ? void 0 : re.key) === "header" && (re.contents = I.value), re)) : o.push({
1043
- key: "header",
1044
- contents: I.value
1045
- }), s("change", o);
1046
- }, ue = (e) => {
1047
- tl.confirm("是否确认要删除", "", {
1048
- confirmButtonText: "确认",
1049
- cancelButtonText: "取消",
1050
- type: "warning"
1051
- }).then(
1052
- () => {
1053
- var o, h;
1054
- I.value = (o = a(I.value)) == null ? void 0 : o.filter((v) => (v == null ? void 0 : v.id) !== (e == null ? void 0 : e.id)), s("change", (h = a(i.originalItemContents)) == null ? void 0 : h.map((v) => {
1055
- var B;
1056
- return (v == null ? void 0 : v.key) === "header" && (v.contents = (B = I.value) != null && B.some((Z) => Z == null ? void 0 : Z.children) ? [I.value] : I.value), v;
1057
- })), Ye({
1058
- type: "success",
1059
- message: "删除成功"
1060
- });
1061
- }
1062
- ).catch(() => {
1063
- });
1064
- };
1065
- return Ve(
1066
- () => i.originalItemContents,
1067
- () => {
1068
- var e, o, h, v, B, Z, ne, q, re, ge, _e, Ie, me, le, De, he, Ee, We, ze;
1069
- if (!(!i.originalItemContents || i.originalItemContents.length === 0))
1070
- if (f.value = a(i.originalItemContents), I.value = (o = (e = f.value) == null ? void 0 : e.find((R) => (R == null ? void 0 : R.key) === "header")) == null ? void 0 : o.contents, F.value = (v = (h = f.value) == null ? void 0 : h.find((R) => (R == null ? void 0 : R.key) === "rowButton")) == null ? void 0 : v.contents, Q.value = (Z = (B = f.value) == null ? void 0 : B.find((R) => (R == null ? void 0 : R.key) === "extraButton")) == null ? void 0 : Z.contents, T.value = (q = (ne = f.value) == null ? void 0 : ne.find((R) => (R == null ? void 0 : R.key) === "page")) != null && q.contents ? !!((ge = (re = f.value) == null ? void 0 : re.find((R) => (R == null ? void 0 : R.key) === "page")) != null && ge.contents) : !1, x.value = (Ie = (_e = f.value) == null ? void 0 : _e.find((R) => (R == null ? void 0 : R.key) === "tableToForm")) == null ? void 0 : Ie.contents, I.value = (me = I.value) == null ? void 0 : me.map((R, Le) => (Array.isArray(R) ? R = La(R) : R = {
1071
- label: (R == null ? void 0 : R.label) ?? "",
1072
- prop: (R == null ? void 0 : R.label) === "操作" ? "operate" : R == null ? void 0 : R.prop,
1073
- width: R != null && R.width ? parseInt(R.width) : "",
1074
- fixed: (R == null ? void 0 : R.fixed) ?? void 0,
1075
- sortable: (R == null ? void 0 : R.sortable) ?? !1,
1076
- align: (R == null ? void 0 : R.align) ?? "center",
1077
- showOverflowTooltip: (R == null ? void 0 : R.showOverflowTooltip) ?? !0,
1078
- isNotDrag: (R == null ? void 0 : R.isNotDrag) ?? !1,
1079
- isEditCol: (R == null ? void 0 : R.isEditCol) ?? !1,
1080
- isOperate: (R == null ? void 0 : R.isOperate) ?? !1,
1081
- id: (R == null ? void 0 : R.id) ?? Le
1082
- }, R)), I.value = (le = I.value) != null && le.every((R) => Array.isArray(R)) ? (De = I.value) == null ? void 0 : De[0] : I.value, F.value = (he = F.value) == null ? void 0 : he.map((R, Le) => R = {
1083
- label: (R == null ? void 0 : R.label) ?? "",
1084
- type: (R == null ? void 0 : R.type) ?? "",
1085
- textColor: (R == null ? void 0 : R.textColor) ?? "#000000",
1086
- id: (R == null ? void 0 : R.id) ?? Le
1087
- }), Q.value = (Ee = Q.value) == null ? void 0 : Ee.map((R, Le) => R = {
1088
- label: (R == null ? void 0 : R.label) ?? "",
1089
- type: (R == null ? void 0 : R.type) ?? "",
1090
- background: (R == null ? void 0 : R.background) ?? "var(--ssComponent-primary-color)",
1091
- id: (R == null ? void 0 : R.id) ?? Le
1092
- }), x.value)
1093
- x.value = (ze = x.value) == null ? void 0 : ze.map((R) => {
1094
- r.value++;
1095
- let Le = R;
1096
- return Le.id = r.value, Le;
1097
- });
1098
- else {
1099
- let R = [];
1100
- const Le = (We = Aa(a(I.value))) == null ? void 0 : We.filter((Be) => (Be == null ? void 0 : Be.prop) !== "operate");
1101
- Le == null || Le.forEach((Be) => {
1102
- r.value++, R.push({
1103
- label: Be == null ? void 0 : Be.label,
1104
- name: Be == null ? void 0 : Be.label,
1105
- type: "Input",
1106
- value: "",
1107
- id: r.value,
1108
- contents: Be == null ? void 0 : Be.options
1109
- });
1110
- }), x.value = R;
1111
- }
1112
- },
1113
- { deep: !0, immediate: !0 }
1114
- ), (e, o) => {
1115
- const h = Te("svg-icon"), v = Te("el-button");
1116
- return H(), ce("div", as, [
1117
- E("div", ss, [
1118
- E("div", is, [
1119
- o[2] || (o[2] = E("div", null, ye("表头"), -1)),
1120
- z(v, {
1121
- class: "icon-content",
1122
- onClick: D,
1123
- id: "themeButton"
1124
- }, {
1125
- icon: ae(() => [
1126
- z(h, {
1127
- name: "Plus",
1128
- class: "icon-size"
1129
- })
1130
- ]),
1131
- default: ae(() => [
1132
- o[1] || (o[1] = $e(" 新增 "))
1133
- ]),
1134
- _: 1,
1135
- __: [1]
1136
- })
1137
- ]),
1138
- E("div", ns, [
1139
- (H(!0), ce(Se, null, Fe(I.value, (B, Z) => (H(), ce("div", { key: Z }, [
1140
- E("div", os, [
1141
- E("div", us, ye(B == null ? void 0 : B.label), 1),
1142
- E("div", rs, [
1143
- z(h, {
1144
- name: "ChildAdd",
1145
- class: "svg-icon-content",
1146
- style: { width: "24px", height: "24px" },
1147
- onClick: (ne) => W(B)
1148
- }, null, 8, ["onClick"]),
1149
- z(h, {
1150
- name: "ChildFix",
1151
- class: "svg-icon-content",
1152
- style: { width: "24px", height: "24px" },
1153
- onClick: (ne) => Ae(B)
1154
- }, null, 8, ["onClick"]),
1155
- z(h, {
1156
- name: "ChildDelete",
1157
- class: "svg-icon-content",
1158
- style: { width: "24px", height: "24px" },
1159
- onClick: (ne) => ue(B)
1160
- }, null, 8, ["onClick"])
1161
- ])
1162
- ]),
1163
- B != null && B.children && B.children.length > 0 ? (H(), ce("div", cs, [
1164
- z(ia, {
1165
- tableChildContents: B == null ? void 0 : B.children,
1166
- onDeleteChange: ve,
1167
- onFixChange: pe
1168
- }, null, 8, ["tableChildContents"])
1169
- ])) : Xe("", !0)
1170
- ]))), 128))
1171
- ]),
1172
- E("div", ts, [
1173
- o[4] || (o[4] = E("div", null, ye("行内按钮"), -1)),
1174
- z(v, {
1175
- class: "icon-content",
1176
- id: "themeButton",
1177
- onClick: K
1178
- }, {
1179
- icon: ae(() => [
1180
- z(h, {
1181
- name: "Plus",
1182
- class: "icon-size"
1183
- })
1184
- ]),
1185
- default: ae(() => [
1186
- o[3] || (o[3] = $e(" 新增 "))
1187
- ]),
1188
- _: 1,
1189
- __: [3]
1190
- })
1191
- ]),
1192
- E("div", ds, [
1193
- (H(!0), ce(Se, null, Fe(F.value, (B, Z) => (H(), ce("div", { key: Z }, [
1194
- E("div", ps, [
1195
- E("div", fs, ye(B == null ? void 0 : B.label), 1),
1196
- E("div", vs, [
1197
- z(h, {
1198
- name: "ChildFix",
1199
- style: { width: "24px", height: "24px" },
1200
- class: "svg-icon-content",
1201
- onClick: (ne) => G(B)
1202
- }, null, 8, ["onClick"]),
1203
- z(h, {
1204
- name: "ChildDelete",
1205
- class: "svg-icon-content",
1206
- style: { width: "24px", height: "24px" },
1207
- onClick: (ne) => te(B)
1208
- }, null, 8, ["onClick"])
1209
- ])
1210
- ])
1211
- ]))), 128))
1212
- ]),
1213
- E("div", hs, [
1214
- o[6] || (o[6] = E("div", null, ye("表外按钮"), -1)),
1215
- z(v, {
1216
- class: "icon-content",
1217
- id: "themeButton",
1218
- onClick: se
1219
- }, {
1220
- icon: ae(() => [
1221
- z(h, {
1222
- name: "Plus",
1223
- class: "icon-size"
1224
- })
1225
- ]),
1226
- default: ae(() => [
1227
- o[5] || (o[5] = $e(" 新增 "))
1228
- ]),
1229
- _: 1,
1230
- __: [5]
1231
- })
1232
- ]),
1233
- E("div", ms, [
1234
- (H(!0), ce(Se, null, Fe(Q.value, (B, Z) => (H(), ce("div", { key: Z }, [
1235
- E("div", ys, [
1236
- E("div", bs, ye(B == null ? void 0 : B.label), 1),
1237
- E("div", gs, [
1238
- z(h, {
1239
- name: "ChildFix",
1240
- style: { width: "24px", height: "24px" },
1241
- class: "svg-icon-content",
1242
- onClick: (ne) => Y(B)
1243
- }, null, 8, ["onClick"]),
1244
- z(h, {
1245
- name: "ChildDelete",
1246
- class: "svg-icon-content",
1247
- style: { width: "24px", height: "24px" },
1248
- onClick: (ne) => _(B)
1249
- }, null, 8, ["onClick"])
1250
- ])
1251
- ])
1252
- ]))), 128))
1253
- ]),
1254
- E("div", ks, [
1255
- o[8] || (o[8] = E("div", null, ye("表格弹框字段设置"), -1)),
1256
- z(v, {
1257
- class: "icon-content",
1258
- id: "themeButton",
1259
- onClick: fe
1260
- }, {
1261
- icon: ae(() => [
1262
- z(h, {
1263
- name: "Plus",
1264
- class: "icon-size"
1265
- })
1266
- ]),
1267
- default: ae(() => [
1268
- o[7] || (o[7] = $e(" 新增 "))
1269
- ]),
1270
- _: 1,
1271
- __: [7]
1272
- })
1273
- ]),
1274
- E("div", _s, [
1275
- (H(!0), ce(Se, null, Fe(x.value, (B, Z) => (H(), ce("div", { key: Z }, [
1276
- E("div", Cs, [
1277
- E("div", ws, ye(B == null ? void 0 : B.label), 1),
1278
- E("div", Ds, [
1279
- z(h, {
1280
- name: "ChildFix",
1281
- style: { width: "24px", height: "24px" },
1282
- class: "svg-icon-content",
1283
- onClick: (ne) => A(B)
1284
- }, null, 8, ["onClick"]),
1285
- z(h, {
1286
- name: "ChildDelete",
1287
- class: "svg-icon-content",
1288
- style: { width: "24px", height: "24px" },
1289
- onClick: (ne) => C(B)
1290
- }, null, 8, ["onClick"])
1291
- ])
1292
- ])
1293
- ]))), 128))
1294
- ]),
1295
- o[10] || (o[10] = E("div", { class: "operate-title" }, [
1296
- E("div", null, ye("分页"))
1297
- ], -1)),
1298
- E("div", Is, [
1299
- E("div", As, [
1300
- o[9] || (o[9] = E("div", { class: "operate-center-content" }, ye("是否分页"), -1)),
1301
- z(Xl, {
1302
- modelValue: T.value,
1303
- "onUpdate:modelValue": o[0] || (o[0] = (B) => T.value = B)
1304
- }, null, 8, ["modelValue"])
1305
- ])
1306
- ])
1307
- ]),
1308
- z(Je, {
1309
- visible: S.value,
1310
- onBeforeDestroy: xe,
1311
- width: 840
1312
- }, {
1313
- default: ae(() => [
1314
- E("div", xs, [
1315
- (H(), Oe(Ue, {
1316
- rowContents: U.value,
1317
- key: U.value,
1318
- isEnableWrap: !0,
1319
- onChange: be
1320
- }, null, 8, ["rowContents"]))
1321
- ])
1322
- ]),
1323
- footer: ae(() => [
1324
- E("div", $s, [
1325
- z(v, {
1326
- onClick: xe,
1327
- class: "cancel-button button",
1328
- id: "themeBorderButton"
1329
- }, {
1330
- default: ae(() => o[11] || (o[11] = [
1331
- $e(ye("取消"))
1332
- ])),
1333
- _: 1,
1334
- __: [11]
1335
- }),
1336
- z(v, {
1337
- class: "ok-button button",
1338
- onClick: ke,
1339
- id: "themeButton"
1340
- }, {
1341
- default: ae(() => o[12] || (o[12] = [
1342
- $e(ye("确认"))
1343
- ])),
1344
- _: 1,
1345
- __: [12]
1346
- })
1347
- ])
1348
- ]),
1349
- _: 1
1350
- }, 8, ["visible"]),
1351
- z(Je, {
1352
- visible: L.value,
1353
- onBeforeDestroy: ee,
1354
- width: 840
1355
- }, {
1356
- default: ae(() => [
1357
- E("div", Es, [
1358
- (H(), Oe(Ue, {
1359
- rowContents: g.value,
1360
- key: g.value,
1361
- isEnableWrap: !0,
1362
- onChange: O
1363
- }, null, 8, ["rowContents"]))
1364
- ])
1365
- ]),
1366
- footer: ae(() => [
1367
- E("div", Bs, [
1368
- z(v, {
1369
- onClick: ee,
1370
- class: "cancel-button button",
1371
- id: "themeBorderButton"
1372
- }, {
1373
- default: ae(() => o[13] || (o[13] = [
1374
- $e(ye("取消"))
1375
- ])),
1376
- _: 1,
1377
- __: [13]
1378
- }),
1379
- z(v, {
1380
- class: "ok-button button",
1381
- onClick: de,
1382
- id: "themeButton"
1383
- }, {
1384
- default: ae(() => o[14] || (o[14] = [
1385
- $e(ye("确认"))
1386
- ])),
1387
- _: 1,
1388
- __: [14]
1389
- })
1390
- ])
1391
- ]),
1392
- _: 1
1393
- }, 8, ["visible"]),
1394
- z(Je, {
1395
- visible: V.value,
1396
- onBeforeDestroy: d,
1397
- width: 840
1398
- }, {
1399
- default: ae(() => [
1400
- E("div", Ts, [
1401
- (H(), Oe(Ue, {
1402
- rowContents: l.value,
1403
- key: l.value,
1404
- isEnableWrap: !0,
1405
- onChange: k
1406
- }, null, 8, ["rowContents"]))
1407
- ])
1408
- ]),
1409
- footer: ae(() => [
1410
- E("div", Ss, [
1411
- z(v, {
1412
- onClick: d,
1413
- class: "cancel-button button",
1414
- id: "themeBorderButton"
1415
- }, {
1416
- default: ae(() => o[15] || (o[15] = [
1417
- $e(ye("取消"))
1418
- ])),
1419
- _: 1,
1420
- __: [15]
1421
- }),
1422
- z(v, {
1423
- class: "ok-button button",
1424
- onClick: N,
1425
- id: "themeButton"
1426
- }, {
1427
- default: ae(() => o[16] || (o[16] = [
1428
- $e(ye("确认"))
1429
- ])),
1430
- _: 1,
1431
- __: [16]
1432
- })
1433
- ])
1434
- ]),
1435
- _: 1
1436
- }, 8, ["visible"]),
1437
- z(Je, {
1438
- visible: P.value,
1439
- onBeforeDestroy: $,
1440
- width: 840
1441
- }, {
1442
- default: ae(() => [
1443
- E("div", Fs, [
1444
- (H(), Oe(Ue, {
1445
- rowContents: u.value,
1446
- key: u.value,
1447
- isEnableWrap: !0,
1448
- onChange: c,
1449
- onChangeVisible: ie,
1450
- onBlurChange: m
1451
- }, null, 8, ["rowContents"]))
1452
- ])
1453
- ]),
1454
- footer: ae(() => [
1455
- E("div", Os, [
1456
- z(v, {
1457
- onClick: $,
1458
- class: "cancel-button button",
1459
- id: "themeBorderButton"
1460
- }, {
1461
- default: ae(() => o[17] || (o[17] = [
1462
- $e(ye("取消"))
1463
- ])),
1464
- _: 1,
1465
- __: [17]
1466
- }),
1467
- z(v, {
1468
- class: "ok-button button",
1469
- onClick: j,
1470
- id: "themeButton"
1471
- }, {
1472
- default: ae(() => o[18] || (o[18] = [
1473
- $e(ye("确认"))
1474
- ])),
1475
- _: 1,
1476
- __: [18]
1477
- })
1478
- ])
1479
- ]),
1480
- _: 1
1481
- }, 8, ["visible"])
1482
- ]);
1483
- };
1484
- }
1485
- }, Rs = /* @__PURE__ */ Re(Ls, [["__scopeId", "data-v-cd274ba4"]]), Ps = { class: "form-operate-content" }, Ns = { class: "form-operate-item" }, Vs = { class: "operate-title" }, js = { class: "operate-content" }, Us = { class: "fix-content" }, Ws = { class: "fix-button" }, zs = { class: "operate-title" }, Ms = { class: "operate-content" }, Ks = { class: "fix-content" }, Js = { class: "fix-button" }, Gs = { style: { display: "flex", "justify-content": "space-between" } }, qs = { class: "form-content" }, Hs = { class: "dialog-footer" }, Qs = { class: "form-content" }, Xs = {
1486
- __name: "operate",
1487
- props: {
1488
- itemContents: {
1489
- type: Array,
1490
- default: () => []
1491
- },
1492
- originalItemContents: {
1493
- type: Array,
1494
- default: () => []
1495
- }
1496
- },
1497
- emits: ["change"],
1498
- setup(p, { emit: y }) {
1499
- const i = p, s = y, f = M(!1), S = M([]), P = M([]), I = M(!1), L = M([]), U = M([]), T = M(""), X = M(!1), J = M(0), oe = M([]), F = M([]), Q = async (c) => {
1500
- var C, $, j, Y, _, N;
1501
- f.value = !0;
1502
- let m = [];
1503
- const A = await ((j = ($ = (C = Ne) == null ? void 0 : C.find((k) => (k == null ? void 0 : k.key) === ((c == null ? void 0 : c.type) === "" ? "Input" : c == null ? void 0 : c.type))) == null ? void 0 : $.value) == null ? void 0 : j.value) ?? ((_ = (Y = Ne) == null ? void 0 : Y.find((k) => (k == null ? void 0 : k.key) === ((c == null ? void 0 : c.type) === "" ? "Input" : c == null ? void 0 : c.type))) == null ? void 0 : _.value);
1504
- if (A == null || A.forEach((k) => {
1505
- J.value++, m.push({
1506
- label: k == null ? void 0 : k.label,
1507
- name: k == null ? void 0 : k.label,
1508
- type: k.type,
1509
- value: (k == null ? void 0 : k.label) === "类型" && c[k.key] === "" ? "Input" : c[k.key],
1510
- id: J.value,
1511
- contents: k == null ? void 0 : k.options
1512
- });
1513
- }), c != null && c.menuSelect && ((N = c == null ? void 0 : c.menuSelect) == null ? void 0 : N.length) > 0) {
1514
- const k = await ml(c == null ? void 0 : c.menuSelect);
1515
- m = m == null ? void 0 : m.map((d) => ((d == null ? void 0 : d.name) === "组信息选项" && (d.contents = k), d));
1516
- }
1517
- T.value = c == null ? void 0 : c.id, S.value = await el(pl(m)), P.value = await el(pl(m));
1518
- }, g = (c) => {
1519
- var A;
1520
- I.value = !0;
1521
- let m = [];
1522
- (A = Ol) == null || A.forEach((C) => {
1523
- J.value++, m.push({
1524
- label: C == null ? void 0 : C.label,
1525
- name: C == null ? void 0 : C.label,
1526
- type: C.type,
1527
- value: (C == null ? void 0 : C.label) === "类型" && c[C.key] === "" ? "normal" : c[C.key],
1528
- id: J.value,
1529
- contents: C == null ? void 0 : C.options
1530
- });
1531
- }), oe.value = m, F.value = m, T.value = c == null ? void 0 : c.id;
1532
- };
1533
- Ve(
1534
- () => X.value,
1535
- () => {
1536
- var m, A;
1537
- let c = a(i.originalItemContents);
1538
- (m = a(i.originalItemContents)) != null && m.find((C) => (C == null ? void 0 : C.key) === "enableWrap") ? c = (A = a(i.originalItemContents)) == null ? void 0 : A.map((C) => ((C == null ? void 0 : C.key) === "enableWrap" && (C.contents = !X.value), C)) : c.push({
1539
- key: "enableWrap",
1540
- contents: !X.value
1541
- }), s("change", c);
1542
- },
1543
- { deep: !0 }
1544
- );
1545
- const w = () => {
1546
- var A, C, $, j, Y;
1547
- oe.value = F.value;
1548
- let c = {};
1549
- if (T.value !== "" ? c.id = T.value : (J.value++, c.id = "id" + J.value), (A = oe.value) == null || A.forEach((_) => {
1550
- var k;
1551
- const N = (k = Ol) == null ? void 0 : k.find((d) => (d == null ? void 0 : d.label) === (_ == null ? void 0 : _.label));
1552
- N && (c[N.key] = _.value);
1553
- }), (C = L.value) != null && C.find((_) => _.id === c.id))
1554
- L.value = ($ = L.value) == null ? void 0 : $.map((_) => (_.id === c.id && (_ = c), _));
1555
- else {
1556
- let _ = a(L.value);
1557
- L.value || (L.value = []), _.push(c), L.value = _;
1558
- }
1559
- I.value = !1, T.value = "";
1560
- let m = a(i.originalItemContents);
1561
- (j = a(i.originalItemContents)) != null && j.find((_) => (_ == null ? void 0 : _.key) === "formButton") ? m = (Y = a(i.originalItemContents)) == null ? void 0 : Y.map((_) => ((_ == null ? void 0 : _.key) === "formButton" && (_.contents = L.value), _)) : m.push({
1562
- key: "formButton",
1563
- contents: L.value
1564
- }), s("change", m);
1565
- }, V = (c) => {
1566
- tl.confirm("是否确认要删除", "", {
1567
- confirmButtonText: "确认",
1568
- cancelButtonText: "取消",
1569
- type: "warning"
1570
- }).then(
1571
- () => {
1572
- var m, A;
1573
- U.value = (m = a(U.value)) == null ? void 0 : m.filter((C) => (C == null ? void 0 : C.id) !== (c == null ? void 0 : c.id)), s("change", (A = a(i.originalItemContents)) == null ? void 0 : A.map((C) => ((C == null ? void 0 : C.key) === "formContent" && (C.contents = U.value), C))), Ye({
1574
- type: "success",
1575
- message: "删除成功"
1576
- });
1577
- }
1578
- ).catch(() => {
1579
- });
1580
- }, l = (c) => {
1581
- tl.confirm("是否确认要删除", "", {
1582
- confirmButtonText: "确认",
1583
- cancelButtonText: "取消",
1584
- type: "warning"
1585
- }).then(
1586
- () => {
1587
- var m, A;
1588
- L.value = (m = a(L.value)) == null ? void 0 : m.filter((C) => (C == null ? void 0 : C.id) !== (c == null ? void 0 : c.id)), s("change", (A = a(i.originalItemContents)) == null ? void 0 : A.map((C) => ((C == null ? void 0 : C.key) === "formButton" && (C.contents = L.value), C))), Ye({
1589
- type: "success",
1590
- message: "删除成功"
1591
- });
1592
- }
1593
- ).catch(() => {
1594
- });
1595
- }, n = () => {
1596
- var m;
1597
- I.value = !0;
1598
- let c = [];
1599
- (m = Ol) == null || m.forEach((A) => {
1600
- J.value++, c.push({
1601
- label: A == null ? void 0 : A.label,
1602
- name: A == null ? void 0 : A.label,
1603
- type: A.type,
1604
- value: (A == null ? void 0 : A.label) === "类型" ? "normal" : "",
1605
- id: J.value,
1606
- contents: A == null ? void 0 : A.options
1607
- });
1608
- }), oe.value = c, F.value = c;
1609
- }, r = () => {
1610
- var m, A, C;
1611
- f.value = !0;
1612
- let c = [];
1613
- (C = (A = (m = Ne) == null ? void 0 : m.find(($) => ($ == null ? void 0 : $.key) === "Input")) == null ? void 0 : A.value) == null || C.forEach(($) => {
1614
- J.value++, c.push({
1615
- label: $ == null ? void 0 : $.label,
1616
- name: $ == null ? void 0 : $.label,
1617
- type: $.type,
1618
- value: ($ == null ? void 0 : $.label) === "类型" ? "Input" : "",
1619
- id: J.value,
1620
- contents: $ == null ? void 0 : $.options
1621
- });
1622
- }), S.value = c, P.value = c;
1623
- }, u = (c) => {
1624
- let m = a(F.value);
1625
- m = m == null ? void 0 : m.map((A) => (A.value = c == null ? void 0 : c[A.name], A)), F.value = m;
1626
- }, b = async (c) => {
1627
- var m, A, C, $, j, Y, _, N, k, d, G, te;
1628
- if ((c == null ? void 0 : c.类型) !== ((A = (m = P.value) == null ? void 0 : m.find((D) => (D == null ? void 0 : D.label) === "类型")) == null ? void 0 : A.value)) {
1629
- let D = [];
1630
- const K = await ((j = ($ = (C = Ne) == null ? void 0 : C.find((O) => (O == null ? void 0 : O.key) === ((c == null ? void 0 : c.类型) === "" ? "Input" : c == null ? void 0 : c.类型))) == null ? void 0 : $.value) == null ? void 0 : j.value) ? await ((d = (k = (N = Ne) == null ? void 0 : N.find((O) => (O == null ? void 0 : O.key) === ((c == null ? void 0 : c.类型) === "" ? "Input" : c == null ? void 0 : c.类型))) == null ? void 0 : k.value) == null ? void 0 : d.value) : (_ = (Y = Ne) == null ? void 0 : Y.find((O) => (O == null ? void 0 : O.key) === ((c == null ? void 0 : c.类型) === "" ? "Input" : c == null ? void 0 : c.类型))) == null ? void 0 : _.value;
1631
- if (K == null || K.forEach((O) => {
1632
- J.value++, D.push({
1633
- label: O == null ? void 0 : O.label,
1634
- name: O == null ? void 0 : O.label,
1635
- type: O.type,
1636
- value: (c == null ? void 0 : c[O.label]) ?? "",
1637
- id: J.value,
1638
- contents: O == null ? void 0 : O.options
1639
- });
1640
- }), c != null && c.菜单选项 && ((G = c == null ? void 0 : c.菜单选项) == null ? void 0 : G.length) > 0) {
1641
- const O = await ml(c == null ? void 0 : c.菜单选项);
1642
- D = D == null ? void 0 : D.map((de) => ((de == null ? void 0 : de.name) === "组信息选项" && (de.contents = O), de));
1643
- }
1644
- P.value = await el(a(D)), S.value = await el(a(D));
1645
- } else {
1646
- let D = a(P.value);
1647
- if (D = D == null ? void 0 : D.map((K) => (K.value = c == null ? void 0 : c[K.name], K)), c != null && c.菜单选项 && ((te = c == null ? void 0 : c.菜单选项) == null ? void 0 : te.length) > 0) {
1648
- const K = await ml(c == null ? void 0 : c.菜单选项);
1649
- D = D == null ? void 0 : D.map((O) => ((O == null ? void 0 : O.name) === "组信息选项" && (O.contents = K), O));
1650
- }
1651
- D = pl(D), P.value = await el(a(D));
1652
- }
1653
- }, x = (c) => {
1654
- c || (S.value = P.value);
1655
- }, se = async (c) => {
1656
- await b(c), S.value = P.value;
1657
- }, fe = async () => {
1658
- var C, $, j, Y, _, N, k, d, G, te;
1659
- S.value = P.value;
1660
- let c = {};
1661
- T.value !== "" ? c.id = T.value : (J.value++, c.id = "id" + J.value);
1662
- let m = await ((j = ($ = (C = Ne) == null ? void 0 : C.find((D) => {
1663
- var K, O;
1664
- return (D == null ? void 0 : D.key) === (((O = (K = S.value) == null ? void 0 : K.find((de) => (de == null ? void 0 : de.label) === "类型")) == null ? void 0 : O.value) ?? "label");
1665
- })) == null ? void 0 : $.value) == null ? void 0 : j.value) ?? ((_ = (Y = Ne) == null ? void 0 : Y.find((D) => {
1666
- var K, O;
1667
- return (D == null ? void 0 : D.key) === (((O = (K = S.value) == null ? void 0 : K.find((de) => (de == null ? void 0 : de.label) === "类型")) == null ? void 0 : O.value) ?? "label");
1668
- })) == null ? void 0 : _.value);
1669
- if ((N = S.value) == null || N.forEach((D) => {
1670
- const K = m == null ? void 0 : m.find((O) => (O == null ? void 0 : O.label) === (D == null ? void 0 : D.label));
1671
- K && (c[K.key] = D.value);
1672
- }), c.width = 1, c.key = c == null ? void 0 : c.label, (k = U.value) != null && k.find((D) => D.id === c.id))
1673
- U.value = (d = U.value) == null ? void 0 : d.map((D) => (D.id === c.id && (D = c), D));
1674
- else {
1675
- let D = a(U.value);
1676
- D.push(c), U.value = D;
1677
- }
1678
- U.value = U.value.map(({ id: D, ...K }) => K), f.value = !1, T.value = "";
1679
- let A = a(i.originalItemContents);
1680
- (G = a(i.originalItemContents)) != null && G.find((D) => (D == null ? void 0 : D.key) === "formContent") ? A = (te = a(i.originalItemContents)) == null ? void 0 : te.map((D) => ((D == null ? void 0 : D.key) === "formContent" && (D.contents = U.value), D)) : A.push({
1681
- key: "formContent",
1682
- contents: U.value
1683
- }), s("change", A);
1684
- }, ie = () => {
1685
- f.value = !1, I.value = !1, T.value = "", P.value = [], F.value = [];
1686
- };
1687
- return Ve(
1688
- () => i.originalItemContents,
1689
- () => {
1690
- var m, A, C, $, j, Y;
1691
- if (!i.originalItemContents || i.originalItemContents.length === 0) return;
1692
- const c = a(i.originalItemContents);
1693
- U.value = ((m = c == null ? void 0 : c.find((_) => (_ == null ? void 0 : _.key) === "formContent")) == null ? void 0 : m.contents) ?? [], L.value = ((A = c == null ? void 0 : c.find((_) => (_ == null ? void 0 : _.key) === "formButton")) == null ? void 0 : A.contents) ?? [], X.value = (C = c == null ? void 0 : c.find((_) => (_ == null ? void 0 : _.key) === "enableWrap")) != null && C.contents ? !(($ = c == null ? void 0 : c.find((_) => (_ == null ? void 0 : _.key) === "enableWrap")) != null && $.contents) : !0, U.value = (j = a(U.value)) == null ? void 0 : j.map((_, N) => {
1694
- var d;
1695
- let k = _;
1696
- return k.id = (_ == null ? void 0 : _.id) ?? N, _ != null && _.label || (_.label = (_ == null ? void 0 : _.key) ?? (_ == null ? void 0 : _.label) ?? ""), _ != null && _.type || (_.type = (_ == null ? void 0 : _.type) ?? ""), _.contents = ((d = _ == null ? void 0 : _.options) == null ? void 0 : d.length) === 0 ? (_ == null ? void 0 : _.contents) ?? "" : _ == null ? void 0 : _.options, k;
1697
- }), U.value = pl(U.value), L.value = (Y = L.value) == null ? void 0 : Y.map((_, N) => _ = {
1698
- label: (_ == null ? void 0 : _.label) ?? "",
1699
- type: (_ == null ? void 0 : _.type) ?? "",
1700
- background: (_ == null ? void 0 : _.background) ?? "var(--ssComponent-primary-color)",
1701
- id: N
1702
- });
1703
- },
1704
- { deep: !0, immediate: !0 }
1705
- ), (c, m) => {
1706
- const A = Te("svg-icon"), C = Te("el-button");
1707
- return H(), ce("div", Ps, [
1708
- E("div", Ns, [
1709
- E("div", Vs, [
1710
- m[2] || (m[2] = E("div", null, ye("表单内容"), -1)),
1711
- z(C, {
1712
- class: "icon-content",
1713
- id: "themeButton",
1714
- onClick: r
1715
- }, {
1716
- icon: ae(() => [
1717
- z(A, {
1718
- name: "Plus",
1719
- class: "icon-size"
1720
- })
1721
- ]),
1722
- default: ae(() => [
1723
- m[1] || (m[1] = E("div", null, ye("新增"), -1))
1724
- ]),
1725
- _: 1,
1726
- __: [1]
1727
- })
1728
- ]),
1729
- E("div", js, [
1730
- (H(!0), ce(Se, null, Fe(U.value, ($, j) => (H(), ce("div", { key: j }, [
1731
- E("div", Us, [
1732
- E("div", null, ye($.label), 1),
1733
- E("div", Ws, [
1734
- z(A, {
1735
- name: "ChildFix",
1736
- class: "svg-icon-content",
1737
- style: { width: "24px", height: "24px" },
1738
- onClick: (Y) => Q($)
1739
- }, null, 8, ["onClick"]),
1740
- z(A, {
1741
- name: "ChildDelete",
1742
- class: "svg-icon-content",
1743
- style: { width: "24px", height: "24px" },
1744
- onClick: (Y) => V($)
1745
- }, null, 8, ["onClick"])
1746
- ])
1747
- ])
1748
- ]))), 128))
1749
- ]),
1750
- E("div", zs, [
1751
- m[4] || (m[4] = E("div", null, ye("表单按钮"), -1)),
1752
- z(C, {
1753
- class: "icon-content",
1754
- id: "themeButton",
1755
- onClick: n
1756
- }, {
1757
- icon: ae(() => [
1758
- z(A, {
1759
- name: "Plus",
1760
- class: "icon-size"
1761
- })
1762
- ]),
1763
- default: ae(() => [
1764
- m[3] || (m[3] = $e(" 新增 "))
1765
- ]),
1766
- _: 1,
1767
- __: [3]
1768
- })
1769
- ]),
1770
- E("div", Ms, [
1771
- (H(!0), ce(Se, null, Fe(L.value, ($, j) => (H(), ce("div", { key: j }, [
1772
- E("div", Ks, [
1773
- E("div", null, ye($.label), 1),
1774
- E("div", Js, [
1775
- z(A, {
1776
- name: "ChildFix",
1777
- class: "svg-icon-content",
1778
- style: { width: "24px", height: "24px" },
1779
- onClick: (Y) => g($)
1780
- }, null, 8, ["onClick"]),
1781
- z(A, {
1782
- name: "ChildDelete",
1783
- class: "svg-icon-content",
1784
- style: { width: "24px", height: "24px" },
1785
- onClick: (Y) => l($)
1786
- }, null, 8, ["onClick"])
1787
- ])
1788
- ])
1789
- ]))), 128))
1790
- ]),
1791
- m[6] || (m[6] = E("div", { class: "operate-title" }, [
1792
- E("div", null, ye("表单布局"))
1793
- ], -1)),
1794
- E("div", Gs, [
1795
- m[5] || (m[5] = E("div", { class: "operate-center-content" }, ye("是否自动撑宽"), -1)),
1796
- z(Xl, {
1797
- modelValue: X.value,
1798
- "onUpdate:modelValue": m[0] || (m[0] = ($) => X.value = $)
1799
- }, null, 8, ["modelValue"])
1800
- ])
1801
- ]),
1802
- z(Je, {
1803
- visible: f.value,
1804
- onBeforeDestroy: ie,
1805
- width: 840
1806
- }, {
1807
- default: ae(() => [
1808
- E("div", qs, [
1809
- (H(), Oe(Ue, {
1810
- rowContents: S.value,
1811
- key: S.value,
1812
- isEnableWrap: !0,
1813
- onChange: b,
1814
- onChangeVisible: x,
1815
- onBlurChange: se
1816
- }, null, 8, ["rowContents"]))
1817
- ])
1818
- ]),
1819
- footer: ae(() => [
1820
- E("div", Hs, [
1821
- z(C, {
1822
- onClick: ie,
1823
- class: "cancel-button button",
1824
- id: "themeBorderButton"
1825
- }, {
1826
- default: ae(() => m[7] || (m[7] = [
1827
- $e(ye("取消"))
1828
- ])),
1829
- _: 1,
1830
- __: [7]
1831
- }),
1832
- z(C, {
1833
- class: "ok-button button",
1834
- onClick: fe,
1835
- id: "themeButton"
1836
- }, {
1837
- default: ae(() => m[8] || (m[8] = [
1838
- $e(ye("确认"))
1839
- ])),
1840
- _: 1,
1841
- __: [8]
1842
- })
1843
- ])
1844
- ]),
1845
- _: 1
1846
- }, 8, ["visible"]),
1847
- z(Je, {
1848
- visible: I.value,
1849
- onBeforeDestroy: ie,
1850
- width: 840
1851
- }, {
1852
- default: ae(() => [
1853
- E("div", Qs, [
1854
- (H(), Oe(Ue, {
1855
- rowContents: oe.value,
1856
- key: oe.value,
1857
- isEnableWrap: !0,
1858
- onChange: u
1859
- }, null, 8, ["rowContents"]))
1860
- ])
1861
- ]),
1862
- footer: ae(() => [
1863
- E("div", { class: "dialog-footer" }, [
1864
- E("div", {
1865
- onClick: ie,
1866
- class: "cancel-button button"
1867
- }, ye("取消")),
1868
- E("div", {
1869
- class: "ok-button button",
1870
- onClick: w
1871
- }, ye("确认"))
1872
- ])
1873
- ]),
1874
- _: 1
1875
- }, 8, ["visible"])
1876
- ]);
1877
- };
1878
- }
1879
- }, Gl = /* @__PURE__ */ Re(Xs, [["__scopeId", "data-v-0bdc7014"]]), Ys = { class: "step-module content" }, Zs = { class: "module-data" }, ei = { class: "step-module layout" }, li = { class: "form-content" }, ai = /* @__PURE__ */ fl({
1880
- __name: "operate",
1881
- props: {
1882
- itemContents: {
1883
- type: Array,
1884
- default: () => []
1885
- },
1886
- originalItemContents: {
1887
- type: Array,
1888
- default: () => []
1889
- }
1890
- },
1891
- emits: ["change"],
1892
- setup(p, { emit: y }) {
1893
- const i = p, s = y, f = M([
1894
- {
1895
- label: "方向:",
1896
- prop: "direction",
1897
- type: "RADIO",
1898
- contents: [
1899
- {
1900
- label: "水平",
1901
- value: "horizontal"
1902
- },
1903
- {
1904
- label: "垂直",
1905
- value: "vertical"
1906
- }
1907
- ],
1908
- value: "horizontal"
1909
- },
1910
- {
1911
- label: "是否居中:",
1912
- prop: "alignCenter",
1913
- type: "RADIO",
1914
- contents: [
1915
- {
1916
- label: "是",
1917
- value: !0
1918
- },
1919
- {
1920
- label: "否",
1921
- value: !1
1922
- }
1923
- ],
1924
- value: !0
1925
- },
1926
- // {
1927
- // label: '是否交互',
1928
- // prop: 'allowTrigger',
1929
- // type: 'RADIO',
1930
- // contents: [
1931
- // {
1932
- // label: '是',
1933
- // value: true,
1934
- // }, {
1935
- // label: '否',
1936
- // value: false,
1937
- // },
1938
- // ],
1939
- // value: 'horizontal'
1940
- // },
1941
- {
1942
- label: "应用简洁风格",
1943
- prop: "simple",
1944
- type: "RADIO",
1945
- contents: [
1946
- {
1947
- label: "是",
1948
- value: !0
1949
- },
1950
- {
1951
- label: "否",
1952
- value: !1
1953
- }
1954
- ],
1955
- value: !1
1956
- }
1957
- ]), S = M([
1958
- {
1959
- label: "",
1960
- prop: "index",
1961
- type: "input",
1962
- value: "",
1963
- isFormColHidden: !0
1964
- },
1965
- {
1966
- label: "标题",
1967
- prop: "title",
1968
- type: "input",
1969
- value: ""
1970
- },
1971
- {
1972
- label: "描述",
1973
- prop: "description",
1974
- type: "input",
1975
- value: ""
1976
- }
1977
- ]), P = M([
1978
- {
1979
- label: "取消",
1980
- background: "#c0c4cc"
1981
- },
1982
- {
1983
- label: "确认",
1984
- background: "#436aaf"
1985
- }
1986
- ]), I = Vl({
1987
- visible: !1,
1988
- width: "40%",
1989
- title: "步骤条"
1990
- }), L = M("create"), U = M({}), T = M([]), X = (g) => {
1991
- var w;
1992
- U.value = g, s("change", (w = F()) == null ? void 0 : w.compData);
1993
- }, J = (g, w) => {
1994
- var V, l;
1995
- switch (g) {
1996
- case "create":
1997
- (V = S.value) == null || V.forEach((n) => {
1998
- n.value = "";
1999
- }), L.value = "create", I.visible = !0;
2000
- break;
2001
- case "update":
2002
- (l = S.value) == null || l.forEach((n) => {
2003
- n.value = w[n == null ? void 0 : n.prop];
2004
- }), L.value = "update", I.visible = !0;
2005
- break;
2006
- case "delete":
2007
- T.value.splice(w, 1), L.value = "delete";
2008
- break;
2009
- }
2010
- }, oe = (g) => {
2011
- var w, V, l;
2012
- if ((g == null ? void 0 : g.buttonName) === "确认") {
2013
- const n = a(g == null ? void 0 : g.content);
2014
- switch (Object.keys(n).forEach((r) => {
2015
- n[r] === "" && delete n[r];
2016
- }), L.value) {
2017
- case "create":
2018
- T.value.push({
2019
- ...n,
2020
- index: ((w = T.value) == null ? void 0 : w.length) + 1
2021
- });
2022
- break;
2023
- case "update":
2024
- T.value = (V = T.value) == null ? void 0 : V.map((r) => r.index === (n == null ? void 0 : n.index) ? {
2025
- ...r,
2026
- title: n == null ? void 0 : n.title,
2027
- description: n == null ? void 0 : n.description
2028
- } : r);
2029
- break;
2030
- }
2031
- s("change", (l = F()) == null ? void 0 : l.compData), I.visible = !1;
2032
- } else
2033
- I.visible = !1;
2034
- }, F = () => ({
2035
- comp: "Step",
2036
- compData: [
2037
- {
2038
- key: "stepList",
2039
- contents: T.value
2040
- },
2041
- {
2042
- key: "stepConfig",
2043
- contents: U.value
2044
- }
2045
- ]
2046
- }), Q = () => {
2047
- I.visible = !1;
2048
- };
2049
- return Ve(() => i == null ? void 0 : i.itemContents, (g) => {
2050
- var w, V;
2051
- g && (U.value = ((w = g == null ? void 0 : g.find((l) => l.key === "stepConfig")) == null ? void 0 : w.contents) ?? {}, T.value = ((V = g == null ? void 0 : g.find((l) => l.key === "stepList")) == null ? void 0 : V.contents) ?? []);
2052
- }, { immediate: !0 }), (g, w) => {
2053
- const V = Te("svg-icon"), l = Te("el-button");
2054
- return H(), ce(Se, null, [
2055
- E("div", null, [
2056
- E("div", Ys, [
2057
- w[2] || (w[2] = E("h4", { class: "module-title" }, "内容", -1)),
2058
- z(l, {
2059
- class: "module-icon",
2060
- id: "themeButton",
2061
- onClick: w[0] || (w[0] = (n) => J("create"))
2062
- }, {
2063
- icon: ae(() => [
2064
- z(V, {
2065
- name: "Plus",
2066
- class: "icon-size"
2067
- })
2068
- ]),
2069
- default: ae(() => [
2070
- w[1] || (w[1] = $e(" 新增 "))
2071
- ]),
2072
- _: 1,
2073
- __: [1]
2074
- })
2075
- ]),
2076
- E("div", Zs, [
2077
- (H(!0), ce(Se, null, Fe(T.value, (n, r) => (H(), ce("div", {
2078
- class: "module-data-item",
2079
- key: r
2080
- }, [
2081
- E("span", null, ye(n == null ? void 0 : n.title), 1),
2082
- E("div", null, [
2083
- z(l, {
2084
- type: "primary",
2085
- size: "small",
2086
- onClick: (u) => J("update", { ...n, index: r + 1 })
2087
- }, {
2088
- default: ae(() => w[3] || (w[3] = [
2089
- $e("修改")
2090
- ])),
2091
- _: 2,
2092
- __: [3]
2093
- }, 1032, ["onClick"]),
2094
- z(l, {
2095
- type: "danger",
2096
- size: "small",
2097
- onClick: (u) => J("delete", r)
2098
- }, {
2099
- default: ae(() => w[4] || (w[4] = [
2100
- $e("删除")
2101
- ])),
2102
- _: 2,
2103
- __: [4]
2104
- }, 1032, ["onClick"])
2105
- ])
2106
- ]))), 128))
2107
- ]),
2108
- E("div", ei, [
2109
- w[5] || (w[5] = E("div", { class: "module-title" }, "布局", -1)),
2110
- z(Ue, {
2111
- rowContents: f.value,
2112
- onChange: X
2113
- }, null, 8, ["rowContents"])
2114
- ])
2115
- ]),
2116
- z(Je, {
2117
- visible: I.visible,
2118
- title: I.title,
2119
- onBeforeDestroy: Q,
2120
- width: I.width
2121
- }, {
2122
- default: ae(() => [
2123
- E("div", li, [
2124
- (H(), Oe(Ue, {
2125
- rowContents: S.value,
2126
- key: S.value,
2127
- isEnableWrap: !1,
2128
- isButtonRow: !1,
2129
- isStartJustify: !1,
2130
- buttonValue: P.value,
2131
- onOnButtonClick: oe
2132
- }, null, 8, ["rowContents", "buttonValue"]))
2133
- ])
2134
- ]),
2135
- _: 1
2136
- }, 8, ["visible", "title", "width"])
2137
- ], 64);
2138
- };
2139
- }
2140
- }), si = /* @__PURE__ */ Re(ai, [["__scopeId", "data-v-7dbd17f2"]]), ii = { class: "step-module content" }, ni = { class: "module-data" }, oi = { class: "step-module layout" }, ui = { class: "form-content" }, ri = /* @__PURE__ */ fl({
2141
- __name: "operate",
2142
- props: {
2143
- itemContents: {
2144
- type: Array,
2145
- default: () => []
2146
- },
2147
- originalItemContents: {
2148
- type: Array,
2149
- default: () => []
2150
- }
2151
- },
2152
- emits: ["change"],
2153
- setup(p, { emit: y }) {
2154
- const i = p, s = y, f = M("create"), S = M({}), P = M([]), I = M([
2155
- {
2156
- label: "方向:",
2157
- prop: "placement",
2158
- type: "radio",
2159
- contents: [
2160
- {
2161
- label: "底部",
2162
- value: "bottom"
2163
- },
2164
- {
2165
- label: "顶部",
2166
- value: "top"
2167
- }
2168
- ],
2169
- value: "bottom"
2170
- },
2171
- {
2172
- label: "节点类型:",
2173
- prop: "type",
2174
- type: "select",
2175
- contents: [
2176
- {
2177
- label: "primary",
2178
- value: "primary"
2179
- },
2180
- {
2181
- label: "success",
2182
- value: "success"
2183
- },
2184
- {
2185
- label: "warning",
2186
- value: "warning"
2187
- },
2188
- {
2189
- label: "danger",
2190
- value: "danger"
2191
- },
2192
- {
2193
- label: "info",
2194
- value: "info"
2195
- }
2196
- ],
2197
- value: "primary"
2198
- },
2199
- {
2200
- label: "颜色:",
2201
- prop: "color",
2202
- type: "color",
2203
- value: ""
2204
- },
2205
- {
2206
- label: "尺寸:",
2207
- prop: "size",
2208
- type: "radio",
2209
- contents: [
2210
- {
2211
- label: "normal",
2212
- value: "normal"
2213
- },
2214
- {
2215
- label: "large",
2216
- value: "large"
2217
- }
2218
- ],
2219
- value: "normal"
2220
- },
2221
- {
2222
- label: "是否空心",
2223
- prop: "isHollow",
2224
- type: "RADIO",
2225
- contents: [
2226
- {
2227
- label: "是",
2228
- value: !0
2229
- },
2230
- {
2231
- label: "否",
2232
- value: !1
2233
- }
2234
- ],
2235
- value: !0
2236
- },
2237
- {
2238
- label: "是否居中",
2239
- prop: "isCenter",
2240
- type: "RADIO",
2241
- contents: [
2242
- {
2243
- label: "是",
2244
- value: !0
2245
- },
2246
- {
2247
- label: "否",
2248
- value: !1
2249
- }
2250
- ],
2251
- value: !0
2252
- }
2253
- ]), L = M([
2254
- {
2255
- label: "",
2256
- prop: "index",
2257
- type: "input",
2258
- value: "",
2259
- isFormColHidden: !0
2260
- },
2261
- {
2262
- label: "内容",
2263
- prop: "content",
2264
- type: "input",
2265
- value: ""
2266
- },
2267
- {
2268
- label: "时间戳",
2269
- prop: "timestamp",
2270
- type: "datetime",
2271
- value: ""
2272
- }
2273
- ]), U = M([
2274
- {
2275
- label: "取消",
2276
- background: "#c0c4cc"
2277
- },
2278
- {
2279
- label: "确认",
2280
- background: "#436aaf"
2281
- }
2282
- ]), T = Vl({
2283
- visible: !1,
2284
- width: "40%",
2285
- title: "时间线"
2286
- }), X = (g) => {
2287
- var w;
2288
- S.value = g, console.log(1212, g), s("change", (w = F()) == null ? void 0 : w.compData);
2289
- }, J = (g, w) => {
2290
- var V, l;
2291
- switch (g) {
2292
- case "create":
2293
- (V = L.value) == null || V.forEach((n) => {
2294
- n.value = "";
2295
- }), f.value = "create", T.visible = !0;
2296
- break;
2297
- case "update":
2298
- (l = L.value) == null || l.forEach((n) => {
2299
- n.value = w[n == null ? void 0 : n.prop];
2300
- }), f.value = "update", T.visible = !0;
2301
- break;
2302
- case "delete":
2303
- P.value.splice(w, 1), f.value = "delete";
2304
- break;
2305
- }
2306
- }, oe = (g) => {
2307
- var w, V, l, n;
2308
- if ((g == null ? void 0 : g.buttonName) === "确认") {
2309
- const r = a(g == null ? void 0 : g.content);
2310
- switch (Object.keys(r).forEach((u) => {
2311
- r[u] === "" && delete r[u];
2312
- }), f.value) {
2313
- case "create":
2314
- console.log(1335, P.value, r), (V = P.value) == null || V.push({
2315
- ...r,
2316
- index: ((w = P.value) == null ? void 0 : w.length) + 1
2317
- });
2318
- break;
2319
- case "update":
2320
- P.value = (l = P.value) == null ? void 0 : l.map((u) => u.index === (r == null ? void 0 : r.index) ? {
2321
- ...u,
2322
- content: r == null ? void 0 : r.content,
2323
- timestamp: r == null ? void 0 : r.timestamp
2324
- } : u);
2325
- break;
2326
- }
2327
- s("change", (n = F()) == null ? void 0 : n.compData), T.visible = !1;
2328
- } else
2329
- T.visible = !1;
2330
- }, F = () => ({
2331
- comp: "TimeLine",
2332
- compData: [
2333
- {
2334
- key: "timeLineList",
2335
- contents: P.value
2336
- },
2337
- {
2338
- key: "timeLineConfig",
2339
- contents: S.value
2340
- }
2341
- ]
2342
- }), Q = () => {
2343
- T.visible = !1;
2344
- };
2345
- return Ve(() => i == null ? void 0 : i.itemContents, (g) => {
2346
- var w, V;
2347
- g && (S.value = ((w = g == null ? void 0 : g.find((l) => l.key === "timeLineConfig")) == null ? void 0 : w.contents) ?? {}, P.value = ((V = g == null ? void 0 : g.find((l) => l.key === "timeLineList")) == null ? void 0 : V.contents) ?? []);
2348
- }, { immediate: !0 }), (g, w) => {
2349
- const V = Te("svg-icon"), l = Te("el-button");
2350
- return H(), ce(Se, null, [
2351
- E("div", null, [
2352
- E("div", ii, [
2353
- w[2] || (w[2] = E("h4", { class: "module-title" }, "内容", -1)),
2354
- z(l, {
2355
- class: "module-icon",
2356
- id: "themeButton",
2357
- onClick: w[0] || (w[0] = (n) => J("create"))
2358
- }, {
2359
- icon: ae(() => [
2360
- z(V, {
2361
- name: "Plus",
2362
- class: "icon-size"
2363
- })
2364
- ]),
2365
- default: ae(() => [
2366
- w[1] || (w[1] = $e(" 新增 "))
2367
- ]),
2368
- _: 1,
2369
- __: [1]
2370
- })
2371
- ]),
2372
- E("div", ni, [
2373
- (H(!0), ce(Se, null, Fe(P.value, (n, r) => (H(), ce("div", {
2374
- class: "module-data-item",
2375
- key: r
2376
- }, [
2377
- E("span", null, ye(n == null ? void 0 : n.content), 1),
2378
- E("div", null, [
2379
- z(l, {
2380
- type: "primary",
2381
- size: "small",
2382
- onClick: (u) => J("update", { ...n, index: r + 1 })
2383
- }, {
2384
- default: ae(() => w[3] || (w[3] = [
2385
- $e("修改")
2386
- ])),
2387
- _: 2,
2388
- __: [3]
2389
- }, 1032, ["onClick"]),
2390
- z(l, {
2391
- type: "danger",
2392
- size: "small",
2393
- onClick: (u) => J("delete", r)
2394
- }, {
2395
- default: ae(() => w[4] || (w[4] = [
2396
- $e("删除")
2397
- ])),
2398
- _: 2,
2399
- __: [4]
2400
- }, 1032, ["onClick"])
2401
- ])
2402
- ]))), 128))
2403
- ]),
2404
- E("div", oi, [
2405
- w[5] || (w[5] = E("div", { class: "module-title" }, "布局", -1)),
2406
- z(Ue, {
2407
- rowContents: I.value,
2408
- onChange: X
2409
- }, null, 8, ["rowContents"])
2410
- ])
2411
- ]),
2412
- z(Je, {
2413
- visible: T.visible,
2414
- title: T.title,
2415
- onBeforeDestroy: Q,
2416
- width: T.width
2417
- }, {
2418
- default: ae(() => [
2419
- E("div", ui, [
2420
- (H(), Oe(Ue, {
2421
- rowContents: L.value,
2422
- key: L.value,
2423
- isEnableWrap: !1,
2424
- isButtonRow: !1,
2425
- isStartJustify: !1,
2426
- buttonValue: U.value,
2427
- onOnButtonClick: oe
2428
- }, null, 8, ["rowContents", "buttonValue"]))
2429
- ])
2430
- ]),
2431
- _: 1
2432
- }, 8, ["visible", "title", "width"])
2433
- ], 64);
2434
- };
2435
- }
2436
- }), ci = /* @__PURE__ */ Re(ri, [["__scopeId", "data-v-f6b5d4fc"]]), ti = {};
2437
- function di(p, y) {
2438
- return H(), ce("div");
2439
- }
2440
- const pi = /* @__PURE__ */ Re(ti, [["render", di]]), fi = { class: "extra-content" }, vi = { key: 0 }, hi = { key: 1 }, mi = { class: "dialog-footer" }, yi = {
2441
- __name: "index",
2442
- props: {
2443
- itemData: {
2444
- type: Array,
2445
- default: () => []
2446
- },
2447
- childItemData: {
2448
- type: Array,
2449
- default: () => []
2450
- },
2451
- index: Number,
2452
- changedContent: {
2453
- type: Object,
2454
- default: () => {
2455
- }
2456
- }
2457
- },
2458
- emits: ["change"],
2459
- setup(p, { emit: y }) {
2460
- const i = p, s = M(0), f = M(), S = M(), P = y, I = M(!1), L = M({}), U = M({}), T = M();
2461
- Ve(
2462
- () => [i.itemData],
2463
- () => {
2464
- var n;
2465
- const l = a(i.itemData);
2466
- f.value = (n = a(l)) == null ? void 0 : n.map((r) => {
2467
- var u;
2468
- if (r.key === "extra") {
2469
- let b = [];
2470
- (u = r.value) == null || u.forEach((x) => {
2471
- var se;
2472
- b.push((se = Object.values(x)) == null ? void 0 : se[0]);
2473
- }), r.value = b;
2474
- }
2475
- return r;
2476
- });
2477
- },
2478
- { deep: !0, immediate: !0 }
2479
- );
2480
- const X = (l, n, r, u) => {
2481
- var x;
2482
- let b = {};
2483
- ((x = l == null ? void 0 : l[0]) == null ? void 0 : x.contents) === "详情" && (I.value = !0, b[n] = l, S.value = l == null ? void 0 : l.filter((se) => (se == null ? void 0 : se.key) !== "tableContentName"), L.value = b, U.value = r, T.value = u.id);
2484
- }, J = (l) => {
2485
- var se, fe, ie, c;
2486
- const n = (fe = (se = Object.values(a(L.value))) == null ? void 0 : se[0]) == null ? void 0 : fe.filter((m) => (m == null ? void 0 : m.key) === "tableContentName"), r = (c = (ie = Object.values(a(L.value))) == null ? void 0 : ie[0]) == null ? void 0 : c.filter((m) => (m == null ? void 0 : m.key) !== "tableContentName"), u = r == null ? void 0 : r.map((m, A) => {
2487
- var C;
2488
- return A === l.index && (m == null ? void 0 : m.comp) === "Table" && (m.compData = (C = m.compData) == null ? void 0 : C.map(($) => {
2489
- var j, Y;
2490
- return ($ == null ? void 0 : $.key) === "tableContents" && ($.contents = (Y = (j = l.content) == null ? void 0 : j.map((_) => {
2491
- let N = {};
2492
- for (let k in _)
2493
- k !== "id" && (N[k] = _[k]);
2494
- return N;
2495
- })) == null ? void 0 : Y.map((_) => Object.values(_))), $;
2496
- })), m;
2497
- });
2498
- u.unshift(n == null ? void 0 : n[0]);
2499
- let b = a(L.value), x = {};
2500
- for (let m in b)
2501
- x[m] = u;
2502
- L.value = x;
2503
- }, oe = () => {
2504
- I.value = !1, L.value = {}, U.value = {}, T.value = void 0, s.value++;
2505
- }, F = (l) => {
2506
- var se, fe, ie, c;
2507
- const n = (fe = (se = Object.values(a(L.value))) == null ? void 0 : se[0]) == null ? void 0 : fe.filter((m) => (m == null ? void 0 : m.key) === "tableContentName"), r = (c = (ie = Object.values(a(L.value))) == null ? void 0 : ie[0]) == null ? void 0 : c.filter((m) => (m == null ? void 0 : m.key) !== "tableContentName"), u = r == null ? void 0 : r.map((m, A) => (A === l.index && (m.compData = l.contents), m));
2508
- u.unshift(n == null ? void 0 : n[0]);
2509
- let b = a(L.value), x = {};
2510
- for (let m in b)
2511
- x[m] = u;
2512
- L.value = x;
2513
- }, Q = () => {
2514
- var n, r;
2515
- let l = {};
2516
- for (let u in U.value)
2517
- u === ((n = Object.keys(L.value)) == null ? void 0 : n[0]) ? l[u] = (r = Object.values(L.value)) == null ? void 0 : r[0] : l[u] = U.value[u];
2518
- P("change", {
2519
- buttonName: "编辑",
2520
- index: T.value,
2521
- singleContent: l
2522
- }, "methodData"), I.value = !1, L.value = {}, U.value = {}, T.value = void 0;
2523
- }, g = () => {
2524
- I.value = !1, L.value = {}, U.value = {}, T.value = void 0;
2525
- }, w = (l) => {
2526
- P("change", l, "methodData");
2527
- }, V = (l) => Ul(l);
2528
- return (l, n) => {
2529
- const r = Te("el-button");
2530
- return H(), ce("div", fi, [
2531
- (H(!0), ce(Se, null, Fe(f.value, (u, b) => (H(), ce("div", { key: s.value }, [
2532
- (u == null ? void 0 : u.key) === "extra" ? (H(), ce("div", vi)) : (H(), ce("div", hi, [
2533
- (H(), Oe(Il(V(u.comp)), {
2534
- itemData: u == null ? void 0 : u.compData,
2535
- childItemData: u == null ? void 0 : u.itemChildData,
2536
- key: b,
2537
- index: (u == null ? void 0 : u.id) ?? b,
2538
- onContentClick: X,
2539
- onChange: w
2540
- }, null, 40, ["itemData", "childItemData", "index"]))
2541
- ]))
2542
- ]))), 128)),
2543
- z(Je, {
2544
- visible: I.value,
2545
- onBeforeDestroy: g
2546
- }, {
2547
- default: ae(() => [
2548
- (H(!0), ce(Se, null, Fe(S.value, (u, b) => (H(), ce("div", {
2549
- key: b,
2550
- class: "extra-dialog"
2551
- }, [
2552
- (H(), Oe(Il(V(u.comp)), {
2553
- itemData: u == null ? void 0 : u.compData,
2554
- onChange: J,
2555
- childItemData: u == null ? void 0 : u.itemChildData,
2556
- key: b,
2557
- onContentChange: F,
2558
- index: (u == null ? void 0 : u.id) ?? b,
2559
- class: "extra-component"
2560
- }, null, 40, ["itemData", "childItemData", "index"]))
2561
- ]))), 128))
2562
- ]),
2563
- footer: ae(() => [
2564
- E("div", mi, [
2565
- z(r, {
2566
- class: "cancel-button footer-button",
2567
- onClick: oe,
2568
- id: "themeBorderButton"
2569
- }, {
2570
- default: ae(() => n[0] || (n[0] = [
2571
- $e(ye("取消"))
2572
- ])),
2573
- _: 1,
2574
- __: [0]
2575
- }),
2576
- z(r, {
2577
- class: "confirm-button footer-button",
2578
- onClick: Q,
2579
- id: "themeButton"
2580
- }, {
2581
- default: ae(() => n[1] || (n[1] = [
2582
- $e(ye("确认"))
2583
- ])),
2584
- _: 1,
2585
- __: [1]
2586
- })
2587
- ])
2588
- ]),
2589
- _: 1
2590
- }, 8, ["visible"])
2591
- ]);
2592
- };
2593
- }
2594
- }, bi = /* @__PURE__ */ Re(yi, [["__scopeId", "data-v-2d9c5ab2"]]), Ll = (p) => {
2595
- var I, L, U, T, X, J, oe, F, Q, g, w, V, l, n, r, u, b, x, se, fe, ie, c, m, A;
2596
- const y = Pl(p) ? (I = ll(a(p))) == null ? void 0 : I[0] : "[]", i = Pl(p) ? "[" + ((L = ll(a(p))) == null ? void 0 : L[2]) + "]" : "[" + p + "]";
2597
- let s = [], f = [], S = "";
2598
- const P = (T = (U = i == null ? void 0 : i.trim()) == null ? void 0 : U.slice(1, (i == null ? void 0 : i.trim().length) - 1)) == null ? void 0 : T.replaceAll("'", '"');
2599
- if (cl(P) ? s = JSON.parse(P) : cl((oe = (J = (X = P == null ? void 0 : P.split("}")) == null ? void 0 : X[0]) == null ? void 0 : J.replace(":", "")) == null ? void 0 : oe.replaceAll("\\", "\\\\")) && (s = JSON.parse((g = (Q = (F = P == null ? void 0 : P.split("}")) == null ? void 0 : F[0]) == null ? void 0 : Q.replace(":", "")) == null ? void 0 : g.replaceAll("\\", "\\\\"))), s = s != null && s.every((C) => Array.isArray(C) && C.every(($) => Array.isArray($))) ? s == null ? void 0 : s[0] : s, !(y != null && y.includes("(")))
2600
- !y.includes("{") && cl(y == null ? void 0 : y.replaceAll("'", '"')) ? f = JSON.parse(y == null ? void 0 : y.replaceAll("'", '"')) : cl((V = (w = y == null ? void 0 : y.split("{")) == null ? void 0 : w[1]) == null ? void 0 : V.replaceAll("'", '"')) && (f = JSON.parse((n = (l = y == null ? void 0 : y.split("{")) == null ? void 0 : l[1]) == null ? void 0 : n.replaceAll("'", '"')));
2601
- else {
2602
- let C = [];
2603
- if (((u = (r = y == null ? void 0 : y.slice(1, (y == null ? void 0 : y.length) - 1)) == null ? void 0 : r.split(",")) == null ? void 0 : u.length) > 1)
2604
- (x = (b = y == null ? void 0 : y.slice(1, (y == null ? void 0 : y.length) - 1)) == null ? void 0 : b.split(",")) == null || x.forEach(($) => {
2605
- var j, Y, _, N, k, d, G, te, D, K, O, de, ee, W, ve, pe, Ae, be, xe, ke, ue, e, o, h;
2606
- if (!($ != null && $.includes("(")))
2607
- C.push($ == null ? void 0 : $.replaceAll("'", ""));
2608
- else if ($ != null && $.includes("[")) {
2609
- let v;
2610
- v = (W = (ee = (de = (O = $ == null ? void 0 : $.split("[")) == null ? void 0 : O[((K = $ == null ? void 0 : $.split("[")) == null ? void 0 : K.length) - 1]) == null ? void 0 : de.split("]")) == null ? void 0 : ee[0]) == null ? void 0 : W.replaceAll("'", ""), v = (v == null ? void 0 : v[0]) === ":" ? '""' + v : v, $ != null && $.includes("#") && (v = ((pe = (ve = $ == null ? void 0 : $.split("#")) == null ? void 0 : ve[0]) == null ? void 0 : pe.replaceAll("'", "")) + "#" + v), v.includes(":") ? v = v + "[" + ((ke = (xe = (be = $ == null ? void 0 : $.split("(")) == null ? void 0 : be[((Ae = $ == null ? void 0 : $.split("(")) == null ? void 0 : Ae.length) - 1]) == null ? void 0 : xe.split(")")) == null ? void 0 : ke[0].replaceAll(":", "/").replaceAll("'", "")) + "]" : v = v + "[" + ((h = (o = (e = $ == null ? void 0 : $.split("(")) == null ? void 0 : e[((ue = $ == null ? void 0 : $.split("(")) == null ? void 0 : ue.length) - 1]) == null ? void 0 : o.split(")")) == null ? void 0 : h[0].replaceAll(":", "/").replaceAll("'", "")) + "]()", C.push(v == null ? void 0 : v.replaceAll('"', "'"));
2611
- } else {
2612
- let v = (k = (N = (_ = (Y = $ == null ? void 0 : $.split(":")) == null ? void 0 : Y[((j = $ == null ? void 0 : $.split(":")) == null ? void 0 : j.length) - 1]) == null ? void 0 : _.split(")")) == null ? void 0 : N[0]) == null ? void 0 : k.replaceAll("'", "");
2613
- v = v + "[" + ((D = (te = (G = $ == null ? void 0 : $.split("(")) == null ? void 0 : G[((d = $ == null ? void 0 : $.split("(")) == null ? void 0 : d.length) - 1]) == null ? void 0 : te.split(")")) == null ? void 0 : D[0].replaceAll(":", "/").replaceAll("'", "")) + "]", C.push(v);
2614
- }
2615
- }), f = C;
2616
- else {
2617
- const $ = ((c = (ie = (fe = (se = y == null ? void 0 : y.slice(1, y == null ? void 0 : y.length)) == null ? void 0 : se.split("(")) == null ? void 0 : fe[1]) == null ? void 0 : ie.split(")")) == null ? void 0 : c[0]).replaceAll("{", "").replaceAll("}", "").replaceAll(":", "/").replaceAll("'", "");
2618
- S = S + $ + "[" + ((A = (m = y == null ? void 0 : y.slice(1, (y == null ? void 0 : y.length) - 1)) == null ? void 0 : m.split("[")) == null ? void 0 : A[1]);
2619
- }
2620
- }
2621
- return {
2622
- tableColumns: f,
2623
- tableContents: s != null && s.every((C) => Array.isArray(C)) ? s : [s],
2624
- tablePath: S
2625
- };
2626
- };
2627
- let Ce = "$R";
2628
- const gi = (p) => /^'[^']+':\{.*\}$/.exec(a(p)), ki = (p) => /^'([^']+)':.*$/.exec(a(p)), ll = (p) => {
2629
- let y = p;
2630
- const i = [];
2631
- let s = "";
2632
- for (const f of y)
2633
- f.includes("{") || s.includes("{") || f.includes("[") || s.includes("[") || f.includes("【") || s.includes("【") || f.includes("(") || s.includes("(") || f.includes("(") || s.includes("(") || f.includes("/*") || s.includes("/*") ? (s += f.trim(), a(s).split("{").length - 1 === a(s).split("}").length - 1 && a(s).split("【").length - 1 === a(s).split("】").length - 1 && a(s).split("[").length - 1 === a(s).split("]").length - 1 && a(s).split("(").length - 1 === a(s).split(")").length - 1 && a(s).split("(").length - 1 === a(s).split(")").length - 1 && a(s).split("/*").length - 1 === a(s).split("*/").length - 1 && s[s.length - 1] !== "," && (i.push(s.replace(/\/\*[\s\S]*?\*\//g, "")), s = "")) : i.push(f.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
2634
- return i;
2635
- }, Rl = (p, y) => {
2636
- let i = p;
2637
- const s = [];
2638
- let f = "", S = 0;
2639
- for (const P of i)
2640
- S++, P.includes("{") || f.includes("{") || P.includes("[") || f.includes("[") || P.includes("【") || f.includes("【") || P.includes("(") || f.includes("(") || P.includes("(") || f.includes("(") || P.includes("/*") || f.includes("/*") ? (f += P.trim(), a(f).split("{").length - 1 === a(f).split("}").length - 1 && a(f).split("【").length - 1 === a(f).split("】").length - 1 && a(f).split("[").length - 1 === a(f).split("]").length - 1 && a(f).split("(").length - 1 === a(f).split(")").length - 1 && a(f).split("(").length - 1 === a(f).split(")").length - 1 && a(f).split("/*").length - 1 === a(f).split("*/").length - 1 && f[f.length - 1] !== "," && f[f.length - 1] === y ? (s.push(f.replace(/\/\*[\s\S]*?\*\//g, "")), f = "") : S === (p == null ? void 0 : p.length) && s.push(f.replace(/\/\*[\s\S]*?\*\//g, ""))) : (f += P.trim(), (f == null ? void 0 : f[(f == null ? void 0 : f.length) - 1]) === y && (s.push(f.replace(/\/\*[\s\S]*?\*\//g, "")), f = ""));
2641
- return s;
2642
- }, Pl = (p) => /^\[.*?\]:\[.*?\]$/.exec(a(p)), _i = (p) => {
2643
- var y, i, s, f, S, P, I, L, U, T, X, J, oe, F, Q, g, w, V, l, n, r, u, b, x, se, fe, ie, c, m, A, C, $, j, Y, _, N, k, d, G, te, D, K;
2644
- if (ki(p)) {
2645
- let O = {}, de = (s = (i = (y = p == null ? void 0 : p.replace(":", Ce)) == null ? void 0 : y.split(Ce)) == null ? void 0 : i[0]) == null ? void 0 : s.replaceAll("'", ""), ee = "", W = (S = (f = p == null ? void 0 : p.replace(":", Ce)) == null ? void 0 : f.split(Ce)) == null ? void 0 : S[1];
2646
- return W.includes("{") || W.includes("(") ? (W.includes("{") ? ee = ee + ((U = (L = (I = (P = W == null ? void 0 : W.split("{")) == null ? void 0 : P[1]) == null ? void 0 : I.split("}")) == null ? void 0 : L[0]) == null ? void 0 : U.replace(":", "/").replaceAll("'", "")) + "[" : ee = ee + ((oe = (J = (X = (T = W == null ? void 0 : W.split("(")) == null ? void 0 : T[1]) == null ? void 0 : X.split(")")) == null ? void 0 : J[0]) == null ? void 0 : oe.replace(":", "/").replaceAll("'", "")) + "[", ee = ee + ((g = (Q = (F = W == null ? void 0 : W.split("[")) == null ? void 0 : F[1]) == null ? void 0 : Q.split("]")) == null ? void 0 : g[0]) + "]") : ee = (l = (V = (w = p == null ? void 0 : p.replace(":", Ce)) == null ? void 0 : w.split(Ce)) == null ? void 0 : V[1]) == null ? void 0 : l.replaceAll("'", ""), O[de] = ee, {
2647
- groupName: "",
2648
- formContents: [[O]]
2649
- };
2650
- } else {
2651
- let O = {}, de = "", ee = "";
2652
- if (p.includes("#")) {
2653
- de = (r = (n = p == null ? void 0 : p.split("#")) == null ? void 0 : n[0]) == null ? void 0 : r.replaceAll("'", "");
2654
- let W = (b = (u = p == null ? void 0 : p.split("#")) == null ? void 0 : u[1]) == null ? void 0 : b.replaceAll("'", "");
2655
- W != null && W.includes("{") ? ee = ee + ((ie = (fe = (se = (x = W == null ? void 0 : W.split("{")) == null ? void 0 : x[1]) == null ? void 0 : se.split("}")) == null ? void 0 : fe[0]) == null ? void 0 : ie.replaceAll(":", "/").replaceAll("'", "")) + "[" : ee = ee + ((C = (A = (m = (c = W == null ? void 0 : W.split("(")) == null ? void 0 : c[1]) == null ? void 0 : m.split(")")) == null ? void 0 : A[0]) == null ? void 0 : C.replaceAll(":", "/").replaceAll("'", "")) + "[", ee = ee + ((Y = (j = ($ = W == null ? void 0 : W.split("[")) == null ? void 0 : $[1]) == null ? void 0 : j.split("]")) == null ? void 0 : Y[0]) + "]";
2656
- } else {
2657
- let W = (k = (N = (_ = p == null ? void 0 : p.split("]")) == null ? void 0 : _[0]) == null ? void 0 : N.split("[")) == null ? void 0 : k[1];
2658
- (d = W == null ? void 0 : W.split(":")) == null || d.forEach((ve, pe) => {
2659
- var Ae;
2660
- ((Ae = W == null ? void 0 : W.split(":")) == null ? void 0 : Ae.length) - 1 === pe && (de = ve == null ? void 0 : ve.replaceAll("'", ""));
2661
- }), ee = ((K = (D = (te = (G = p == null ? void 0 : p.split("]")) == null ? void 0 : G[1]) == null ? void 0 : te.replace(":", Ce).split(Ce)) == null ? void 0 : D[1]) == null ? void 0 : K.replaceAll("'", "")) ?? "";
2662
- }
2663
- return O[de] = ee, {
2664
- groupName: "",
2665
- formContents: [[O]]
2666
- };
2667
- }
2668
- }, Ci = (p) => (p == null ? void 0 : p[0]) === "[" && (p == null ? void 0 : p[p.length - 1]) === "]" && !(p != null && p.includes("{")), wi = (p, y) => {
2669
- let i = p.length;
2670
- for (; i--; )
2671
- if (p[i] === ")")
2672
- return p.substring(0, i) + y + p.substring(i + 1);
2673
- return p;
2674
- }, Di = (p) => {
2675
- var S, P, I, L, U;
2676
- let y = p.slice(1, p.length - 1), i;
2677
- (y == null ? void 0 : y[0]) === "[" ? i = (P = (S = ll(a(y))) == null ? void 0 : S.filter((T) => T !== ",")) == null ? void 0 : P.map((T) => T == null ? void 0 : T.slice(1, T.length - 1)) : (y = "[" + a(y) + "]", i = (L = (I = ll(a(y))) == null ? void 0 : I.filter((T) => T !== ",")) == null ? void 0 : L.map((T) => T == null ? void 0 : T.slice(1, T.length - 1))), i = (U = a(i)) == null ? void 0 : U.map((T) => {
2678
- var X, J;
2679
- return T = (J = (X = T.replace(")", Ce)) == null ? void 0 : X.split(Ce)) == null ? void 0 : J[1], T;
2680
- });
2681
- let s = [], f = [];
2682
- return i == null || i.forEach((T) => {
2683
- var oe, F, Q, g, w, V, l, n, r, u, b, x, se, fe, ie, c, m, A, C, $, j, Y, _, N, k, d, G, te, D, K, O, de;
2684
- let X = (F = (oe = a(T)) == null ? void 0 : oe.slice(1, a(T).length - 1)) == null ? void 0 : F.replace(":", Ce).split(Ce);
2685
- if (((g = (Q = a(X)) == null ? void 0 : Q[0]) == null ? void 0 : g.replaceAll("'", "")) === "输入") {
2686
- if (!((V = (w = a(X)) == null ? void 0 : w[1]) != null && V.includes("[")) && !((n = (l = a(X)) == null ? void 0 : l[1]) != null && n.includes("("))) {
2687
- cl((r = a(X)) == null ? void 0 : r[1].replaceAll("'", '"')) && f.push(JSON.parse((u = a(X)) == null ? void 0 : u[1].replaceAll("'", '"')));
2688
- return;
2689
- }
2690
- if (((x = (b = a(X)) == null ? void 0 : b[1]) == null ? void 0 : x[0]) === "[") {
2691
- let ee = (c = (se = a(X)) == null ? void 0 : se[1]) == null ? void 0 : c.slice(1, ((ie = (fe = a(X)) == null ? void 0 : fe[1]) == null ? void 0 : ie.length) - 1);
2692
- (A = (m = ll(ee)) == null ? void 0 : m.filter((W) => W !== ",")) == null || A.forEach((W) => {
2693
- var xe, ke, ue, e, o, h, v, B, Z, ne, q, re, ge, _e, Ie, me, le, De, he, Ee, We, ze;
2694
- let ve = {}, pe = (ue = (ke = a(W)) == null ? void 0 : ke.slice(1, ((xe = a(W)) == null ? void 0 : xe.length) - 1)) == null ? void 0 : ue.replace(":", Ce).split(Ce), Ae = (e = pe == null ? void 0 : pe[0]) == null ? void 0 : e.replaceAll("'", ""), be;
2695
- (o = pe == null ? void 0 : pe[1]) != null && o.includes("(") ? (be = (_e = (ge = (re = (q = (ne = (Z = (B = (v = a(pe)) == null ? void 0 : v[1]) == null ? void 0 : B.replaceAll("{", "")) == null ? void 0 : Z.replaceAll("}", "")) == null ? void 0 : ne.split("(")) == null ? void 0 : q[1]) == null ? void 0 : re.split(")")) == null ? void 0 : ge[0]) == null ? void 0 : _e.replaceAll(":", "/").replaceAll("'", ""), (me = (Ie = a(pe)) == null ? void 0 : Ie[1]) != null && me.includes("[") && (be = a(be) + "[" + ((ze = (We = (Ee = (he = (De = (le = a(pe)) == null ? void 0 : le[1]) == null ? void 0 : De.split("[")) == null ? void 0 : he[1]) == null ? void 0 : Ee.split("]")) == null ? void 0 : We[0]) == null ? void 0 : ze.replaceAll("'", "")) + "]")) : be = (h = pe == null ? void 0 : pe[1]) == null ? void 0 : h.replaceAll("'", ""), ve[Ae] = be, f.push(ve);
2696
- });
2697
- }
2698
- } else {
2699
- if (!(($ = (C = a(X)) == null ? void 0 : C[1]) != null && $.includes("[")) && !((Y = (j = a(X)) == null ? void 0 : j[1]) != null && Y.includes("("))) {
2700
- cl((_ = a(X)) == null ? void 0 : _[1].replaceAll("'", '"')) && s.push(JSON.parse((N = a(X)) == null ? void 0 : N[1].replaceAll("'", '"')));
2701
- return;
2702
- }
2703
- if (((d = (k = a(X)) == null ? void 0 : k[1]) == null ? void 0 : d[0]) === "[") {
2704
- let ee = (K = (G = a(X)) == null ? void 0 : G[1]) == null ? void 0 : K.slice(1, ((D = (te = a(X)) == null ? void 0 : te[1]) == null ? void 0 : D.length) - 1);
2705
- (de = (O = ll(ee)) == null ? void 0 : O.filter((W) => W !== ",")) == null || de.forEach((W) => {
2706
- var xe, ke, ue, e, o, h, v, B, Z, ne, q, re, ge, _e, Ie, me, le, De, he, Ee, We, ze, R, Le, Be, sl, il, je, dl, Me, Ze, He, Ge;
2707
- let ve = {}, pe = (ue = (ke = a(W)) == null ? void 0 : ke.slice(1, ((xe = a(W)) == null ? void 0 : xe.length) - 1)) == null ? void 0 : ue.replace(":", Ce).split(Ce), Ae = (e = pe == null ? void 0 : pe[0]) == null ? void 0 : e.replaceAll("'", ""), be;
2708
- if (!((o = pe == null ? void 0 : pe[1]) != null && o.includes("(")))
2709
- be = (h = pe == null ? void 0 : pe[1]) == null ? void 0 : h.replaceAll("'", "");
2710
- else if (be = (re = (q = (ne = (Z = (B = (v = a(pe)) == null ? void 0 : v[1]) == null ? void 0 : B.replaceAll("{", "")) == null ? void 0 : Z.replaceAll("}", "")) == null ? void 0 : ne.replace("(", Ce)) == null ? void 0 : q.split(Ce)) == null ? void 0 : re[1], be = (_e = (ge = wi(a(be), Ce)) == null ? void 0 : ge.split(Ce)) == null ? void 0 : _e[0], !(be != null && be.includes("(")))
2711
- be = (Ie = a(be)) == null ? void 0 : Ie.replaceAll(":", "/").replaceAll("'", ""), (le = (me = a(pe)) == null ? void 0 : me[1]) != null && le.includes("[") && (be = a(be) + "[" + ((R = (ze = (We = (Ee = (he = (De = a(pe)) == null ? void 0 : De[1]) == null ? void 0 : he.split("[")) == null ? void 0 : Ee[1]) == null ? void 0 : We.split("]")) == null ? void 0 : ze[0]) == null ? void 0 : R.replaceAll("'", "")) + "]");
2712
- else {
2713
- let Pe = "";
2714
- (Le = Rl(be, ":")) == null || Le.forEach((Ke) => {
2715
- var yl, bl, gl, kl, _l, Cl, Al, nl, vl, hl, qe, wl, ol, Wl, zl;
2716
- if (!(Ke != null && Ke.includes("(")))
2717
- Pe = Pe === "" ? Pe + ((yl = Ke == null ? void 0 : Ke.replaceAll(":", "")) == null ? void 0 : yl.replaceAll("'", "")) : Pe + "/" + ((bl = Ke == null ? void 0 : Ke.replaceAll(":", "")) == null ? void 0 : bl.replaceAll("'", ""));
2718
- else {
2719
- let xl = (hl = (vl = (nl = (Al = (Cl = (_l = (kl = (gl = a(Ke)) == null ? void 0 : gl.replaceAll("{", "")) == null ? void 0 : kl.replaceAll("}", "")) == null ? void 0 : _l.replace("(", Ce)) == null ? void 0 : Cl.split(Ce)) == null ? void 0 : Al[1]) == null ? void 0 : nl.split(")")) == null ? void 0 : vl[0]) == null ? void 0 : hl.replaceAll(":", "/").replaceAll("'", "");
2720
- xl = xl + "[" + ((zl = (Wl = (ol = (wl = (qe = a(Ke)) == null ? void 0 : qe.split("[")) == null ? void 0 : wl[1]) == null ? void 0 : ol.split("]")) == null ? void 0 : Wl[0]) == null ? void 0 : zl.replaceAll("'", "")) + "]", Pe = Pe === "" ? Pe + "[" + xl + "]" : Pe + "/[" + xl + "]";
2721
- }
2722
- }), be = Pe + "[" + ((Ge = (He = (Ze = (Me = (sl = (Be = a(pe)) == null ? void 0 : Be[1]) == null ? void 0 : sl.split("[")) == null ? void 0 : Me[((dl = (je = (il = a(pe)) == null ? void 0 : il[1]) == null ? void 0 : je.split("[")) == null ? void 0 : dl.length) - 1]) == null ? void 0 : Ze.split("]")) == null ? void 0 : He[0]) == null ? void 0 : Ge.replaceAll("'", "")) + "]";
2723
- }
2724
- ve[Ae] = be, s.push(ve);
2725
- });
2726
- }
2727
- }
2728
- }), {
2729
- output: s,
2730
- input: f
2731
- };
2732
- }, na = (p) => {
2733
- var s, f, S, P, I, L, U, T, X, J, oe, F, Q, g, w, V, l, n, r, u, b, x, se, fe, ie, c, m, A, C, $, j, Y, _, N, k, d, G, te, D, K, O, de, ee, W, ve, pe, Ae, be, xe, ke;
2734
- let y = "";
2735
- p = p.replace(/:([^=]*)==/g, ":");
2736
- let i = p;
2737
- if (gi(a(p)) !== null && (y = (f = (s = a(p).replace(":", Ce).split(Ce)) == null ? void 0 : s[0]) == null ? void 0 : f.replaceAll("'", ""), i = (S = a(p).replace(":", Ce).split(Ce)) == null ? void 0 : S[1]), Pl(a(i).slice(1, ((P = a(i)) == null ? void 0 : P.length) - 1)) || Ci(a(i).slice(1, ((I = a(i)) == null ? void 0 : I.length) - 1)))
2738
- if (((U = a(i).slice(1, ((L = a(i)) == null ? void 0 : L.length) - 1)) == null ? void 0 : U[1]) !== "[") {
2739
- const ue = Ll(a(i).slice(1, ((T = a(i)) == null ? void 0 : T.length) - 1));
2740
- return {
2741
- groupName: y,
2742
- tableColumn: ue == null ? void 0 : ue.tableColumns,
2743
- tableContents: ue == null ? void 0 : ue.tableContents,
2744
- tableColumnPath: ue == null ? void 0 : ue.tablePath
2745
- };
2746
- } else if (a(i).slice(1, ((X = a(i)) == null ? void 0 : X.length) - 1).includes("{")) {
2747
- let ue = a(i).slice(1, ((J = a(i)) == null ? void 0 : J.length) - 1), e = ue.indexOf("{"), o = ue.slice(e, (ue == null ? void 0 : ue.length) - e);
2748
- return (F = (oe = ll(o)) == null ? void 0 : oe.filter((v) => v == null ? void 0 : v.includes("{"))) == null ? void 0 : F.map((v, B) => {
2749
- var ne;
2750
- let Z = Ll(a(v).slice(1, ((ne = a(v)) == null ? void 0 : ne.length) - 1));
2751
- return {
2752
- groupName: B === 0 ? y : "",
2753
- tableColumn: Z == null ? void 0 : Z.tableColumns,
2754
- tableContents: Z == null ? void 0 : Z.tableContents,
2755
- tableColumnPath: Z == null ? void 0 : Z.tablePath
2756
- };
2757
- });
2758
- } else {
2759
- const ue = Ll(a(i).slice(1, ((Q = a(i)) == null ? void 0 : Q.length) - 1));
2760
- return {
2761
- groupName: y,
2762
- tableColumn: ue == null ? void 0 : ue.tableColumns,
2763
- tableContents: ue == null ? void 0 : ue.tableContents,
2764
- tableColumnPath: ue == null ? void 0 : ue.tablePath
2765
- };
2766
- }
2767
- else {
2768
- let ue = [];
2769
- if (cl((g = i.slice(1, (i == null ? void 0 : i.length) - 1)) == null ? void 0 : g.replaceAll("'", '"')))
2770
- ue = JSON.parse((w = i.slice(1, (i == null ? void 0 : i.length) - 1)) == null ? void 0 : w.replaceAll("'", '"'));
2771
- else if (i.includes("(")) {
2772
- if ((i == null ? void 0 : i[0]) !== "{") {
2773
- let e = (A = (m = (c = (ie = a(i)) == null ? void 0 : ie.split("]")) == null ? void 0 : c[0]) == null ? void 0 : m.split("[")) == null ? void 0 : A[1], o = "", v = ((N = (_ = (Y = (j = ($ = (C = a(i)) == null ? void 0 : C.split(")")) == null ? void 0 : $[0]) == null ? void 0 : j.split("(")) == null ? void 0 : Y[1]) == null ? void 0 : _.replaceAll("[", "")) == null ? void 0 : N.replaceAll("]", "")).replaceAll("'", "").replaceAll(":", "/");
2774
- (k = v == null ? void 0 : v.split("/")) == null || k.forEach((Z, ne) => {
2775
- var q;
2776
- ne !== ((q = v == null ? void 0 : v.split("/")) == null ? void 0 : q.length) - 1 && (o = o === "" ? o + Z : o + "/" + Z);
2777
- });
2778
- let B;
2779
- return ((D = (te = (G = (d = a(i)) == null ? void 0 : d.replace(",", Ce)) == null ? void 0 : G.split(Ce)) == null ? void 0 : te[1]) == null ? void 0 : D[0]) === "[" && (B = Di((de = (O = (K = a(i)) == null ? void 0 : K.replace(",", Ce)) == null ? void 0 : O.split(Ce)) == null ? void 0 : de[1])), {
2780
- groupName: "",
2781
- extraButton: (W = e == null ? void 0 : e.split(":")) == null ? void 0 : W[((ee = e == null ? void 0 : e.split(":")) == null ? void 0 : ee.length) - 1].replaceAll("'", ""),
2782
- extraPath: o,
2783
- extraData: B
2784
- };
2785
- } else if (i = i.slice(1, (i == null ? void 0 : i.length) - 1), (i == null ? void 0 : i[0]) !== "[") {
2786
- let e = "{" + i + "}", o = (pe = (ve = ll(e)) == null ? void 0 : ve.filter((v) => v !== ",")) == null ? void 0 : pe.map((v) => _i(a(v).slice(1, a(v).length - 1))), h = [];
2787
- return (Ae = a(o)) == null || Ae.forEach((v) => {
2788
- var B;
2789
- (B = v == null ? void 0 : v.formContents) == null || B.forEach((Z) => {
2790
- Z == null || Z.forEach((ne) => {
2791
- h.push(ne);
2792
- });
2793
- });
2794
- }), {
2795
- groupName: (be = o == null ? void 0 : o[0]) == null ? void 0 : be.groupName,
2796
- // formExtra?.groupName,
2797
- formContents: h
2798
- // formExtra?.formContents
2799
- };
2800
- } else if ((i == null ? void 0 : i[0]) === "[" && (i == null ? void 0 : i[1]) === "[") {
2801
- i = i.slice(1, (i == null ? void 0 : i.length) - 1);
2802
- let e = [];
2803
- return (ke = (xe = ll(i)) == null ? void 0 : xe.filter((o) => o !== ",")) == null || ke.forEach((o) => {
2804
- var h;
2805
- Array.isArray(Nl(o)) || e.push((h = Nl(o)) == null ? void 0 : h.formContents);
2806
- }), {
2807
- groupName: y,
2808
- formContents: e
2809
- };
2810
- }
2811
- } else if (i = "[[" + i + "]]", cl((V = i.slice(1, (i == null ? void 0 : i.length) - 1)) == null ? void 0 : V.replaceAll("'", '"')))
2812
- ue = JSON.parse((l = i.slice(1, (i == null ? void 0 : i.length) - 1)) == null ? void 0 : l.replaceAll("'", '"'));
2813
- else if (i = i.slice(2, i.length - 2), ((u = (r = (n = i == null ? void 0 : i.replace(":", Ce)) == null ? void 0 : n.split(Ce)) == null ? void 0 : r[1]) == null ? void 0 : u[0]) !== "{") {
2814
- i = ((x = (b = i == null ? void 0 : i.replace(":", Ce)) == null ? void 0 : b.split(Ce)) == null ? void 0 : x[0]) + ":{[" + ((fe = (se = i == null ? void 0 : i.replace(":", Ce)) == null ? void 0 : se.split(Ce)) == null ? void 0 : fe[1]) + "]}";
2815
- const e = na(i);
2816
- return e != null && e.tableColumn ? {
2817
- groupName: e == null ? void 0 : e.groupName,
2818
- tableColumn: e == null ? void 0 : e.tableColumn,
2819
- tableContents: e == null ? void 0 : e.tableContents
2820
- } : {
2821
- groupName: e == null ? void 0 : e.groupName,
2822
- formContents: e == null ? void 0 : e.formContents
2823
- };
2824
- }
2825
- return {
2826
- groupName: y,
2827
- formContents: ue
2828
- };
2829
- }
2830
- }, Nl = (p) => na(a(p).slice(1, a(p).length - 1)), qn = (p) => {
2831
- var i;
2832
- let y = [];
2833
- if (!((p == null ? void 0 : p[0]) === "[" && (p == null ? void 0 : p[1]) === "[")) {
2834
- let s = (i = ll(p)) == null ? void 0 : i.filter((f) => f !== ",");
2835
- s == null || s.forEach((f) => {
2836
- y.push(Nl(f));
2837
- });
2838
- }
2839
- return y;
2840
- }, Ii = { class: "method-content" }, Ai = {
2841
- __name: "index",
2842
- props: {
2843
- itemData: {
2844
- type: Array,
2845
- default: () => []
2846
- },
2847
- childItemData: {
2848
- type: Array,
2849
- default: () => []
2850
- },
2851
- index: Number,
2852
- changedContent: {
2853
- type: Object,
2854
- default: () => {
2855
- }
2856
- }
2857
- },
2858
- setup(p) {
2859
- const y = M([]), i = p, s = Yl(Qe), f = M(!1), S = ga(Qe), P = xa(Qe), { itemData: I, isEdit: L } = al(s), { activeMenuPath: U, platform: T } = al(S), { loginUserInfo: X } = al(P), J = M(!1), oe = (l, n) => {
2860
- const r = n;
2861
- return l == null ? void 0 : l.map((u) => {
2862
- var b;
2863
- return u = (b = u == null ? void 0 : u.map((x, se) => {
2864
- var fe;
2865
- return {
2866
- key: (fe = r[se]) == null ? void 0 : fe.label,
2867
- value: x
2868
- };
2869
- })) == null ? void 0 : b.filter((x) => x.key !== "操作"), u;
2870
- });
2871
- };
2872
- Ve(
2873
- () => I.value,
2874
- async () => {
2875
- L.value === "view" && !J.value && await V(a(i.itemData)), J.value = !1;
2876
- },
2877
- { deep: !0 }
2878
- );
2879
- const F = async (l, n) => {
2880
- var r;
2881
- if (Ml(l == null ? void 0 : l.name, n)) {
2882
- let u = Ml(l == null ? void 0 : l.name, n);
2883
- l == null || l.id, l.compData = await Promise.all(
2884
- (r = a(l.compData)) == null ? void 0 : r.map(async (b) => ((b == null ? void 0 : b.key) === "tableContents" && (b.extra = await pa(a(b.contents)), b.contents = fa(a(u))), b))
2885
- );
2886
- } else
2887
- l = va(l, n);
2888
- return l;
2889
- }, Q = (l, n) => {
2890
- var u, b, x, se, fe, ie, c, m;
2891
- let r = (u = a(n)) == null ? void 0 : u.filter((A) => (A == null ? void 0 : A.comp) !== "methodButton");
2892
- if (l != null && l.includes("[")) {
2893
- let A = (ie = (fe = (se = (x = (b = a(l)) == null ? void 0 : b.split("[")) == null ? void 0 : x[1]) == null ? void 0 : se.split("]")) == null ? void 0 : fe[0]) == null ? void 0 : ie.split(":"), C = "";
2894
- if (A != null && A[0]) {
2895
- let $ = (c = r == null ? void 0 : r.find((j) => (j == null ? void 0 : j.name) === (A == null ? void 0 : A[0]))) == null ? void 0 : c.compData;
2896
- $ == null || $.forEach((j) => {
2897
- var Y;
2898
- (j == null ? void 0 : j.key) === "formContent" && ((Y = j == null ? void 0 : j.contents) == null || Y.forEach((_) => {
2899
- (_ == null ? void 0 : _.key) === (A == null ? void 0 : A[1]) && (C = _ == null ? void 0 : _.value);
2900
- }));
2901
- });
2902
- }
2903
- return C;
2904
- } else if (l != null && l.includes("/")) {
2905
- let A = {};
2906
- return (m = a(r)) == null || m.forEach((C, $) => {
2907
- var j, Y, _, N, k, d, G, te, D, K, O, de, ee, W, ve, pe, Ae, be, xe;
2908
- if ((C == null ? void 0 : C.comp) === "Table") {
2909
- let ke = Array.isArray((_ = (Y = (j = C == null ? void 0 : C.compData) == null ? void 0 : j.find((h) => (h == null ? void 0 : h.key) === "header")) == null ? void 0 : Y.contents) == null ? void 0 : _[0]) ? (G = (d = (k = (N = C == null ? void 0 : C.compData) == null ? void 0 : N.find((h) => (h == null ? void 0 : h.key) === "header")) == null ? void 0 : k.contents) == null ? void 0 : d[0]) == null ? void 0 : G.some((h) => h == null ? void 0 : h.children) : [], ue = (K = (D = (te = C == null ? void 0 : C.compData) == null ? void 0 : te.find((h) => (h == null ? void 0 : h.key) === "tableContents")) == null ? void 0 : D.contents) == null ? void 0 : K.map((h) => h.slice(1)), e = (ve = (W = (ee = (de = (O = C == null ? void 0 : C.compData) == null ? void 0 : O.find((h) => (h == null ? void 0 : h.key) === "header")) == null ? void 0 : de.contents) == null ? void 0 : ee[0]) == null ? void 0 : W[0]) == null ? void 0 : ve.label, o = (Ae = (pe = C == null ? void 0 : C.compData) == null ? void 0 : pe.find((h) => (h == null ? void 0 : h.key) === "header")) == null ? void 0 : Ae.contents;
2910
- if (ke)
2911
- (ke == null ? void 0 : ke.length) === 0 ? A[C.name] = oe(ue, o) : A[e] = oe(ue, o);
2912
- else {
2913
- const h = [];
2914
- o = o.slice(1, o.length - 1), o == null || o.forEach((v, B) => {
2915
- ue == null || ue.forEach((Z) => {
2916
- h.push({
2917
- key: v.label + Z[0],
2918
- value: Z[B + 1]
2919
- });
2920
- });
2921
- }), A["form" + $] = h;
2922
- }
2923
- } else {
2924
- const ke = (xe = (be = C.compData) == null ? void 0 : be.find((e) => (e == null ? void 0 : e.key) === "formContent")) == null ? void 0 : xe.contents;
2925
- A.form = {};
2926
- const ue = [];
2927
- ke == null || ke.forEach((e) => {
2928
- e.key !== "" && (e = {
2929
- key: (e == null ? void 0 : e.key) ?? (e == null ? void 0 : e.label),
2930
- value: e == null ? void 0 : e.value
2931
- }, ue.push(e));
2932
- }), A.form = ue;
2933
- }
2934
- }), A;
2935
- } else
2936
- return l;
2937
- }, g = async (l, n, r) => {
2938
- var x, se, fe, ie, c, m;
2939
- let u = await $l(n, sessionStorage.getItem("systemKey"), "", n), b = u == null ? void 0 : u.find((A) => (A == null ? void 0 : A.name) === (r == null ? void 0 : r[0]));
2940
- if (b) {
2941
- if (!(r != null && r[1]) && (b == null ? void 0 : b.comp) === "Table") {
2942
- let A = {};
2943
- for (let C in a(l))
2944
- a(l)[C] !== "loginUser" ? A[C] = a(l)[C] : A[C] = (x = X.value) == null ? void 0 : x.account;
2945
- await ka({
2946
- key: {
2947
- type: "data",
2948
- pageKey: n,
2949
- tableId: b == null ? void 0 : b.id,
2950
- systemKey: sessionStorage.getItem("systemKey")
2951
- },
2952
- value: {
2953
- tableData: A
2954
- }
2955
- });
2956
- } else if (!(r != null && r[1]) && (b == null ? void 0 : b.comp) === "Form") {
2957
- let A = a(b);
2958
- A.compData = (fe = (se = a(A)) == null ? void 0 : se.compData) == null ? void 0 : fe.map((j) => {
2959
- var Y, _;
2960
- return (j == null ? void 0 : j.key) === "formContent" && (j.contents = (_ = (Y = a(j)) == null ? void 0 : Y.contents) == null ? void 0 : _.map((N) => {
2961
- var k;
2962
- return N.value = (k = a(l)) == null ? void 0 : k[N == null ? void 0 : N.key], N;
2963
- })), j;
2964
- });
2965
- const C = await El({
2966
- key: {
2967
- type: "structure",
2968
- pageKey: n,
2969
- systemKey: sessionStorage.getItem("systemKey")
2970
- }
2971
- });
2972
- let $ = "";
2973
- ((ie = C == null ? void 0 : C.data) == null ? void 0 : ie.type) === "success" && ((m = (c = C == null ? void 0 : C.data) == null ? void 0 : c.result) == null || m.forEach((j) => {
2974
- var Y, _;
2975
- ((_ = (Y = j == null ? void 0 : j.value) == null ? void 0 : Y.pageData) == null ? void 0 : _.name) === (r == null ? void 0 : r[0]) && ($ = j.id);
2976
- }), await _a({
2977
- id: $,
2978
- value: {
2979
- pageData: A
2980
- }
2981
- }));
2982
- }
2983
- }
2984
- }, w = async (l) => {
2985
- var r, u, b, x, se, fe, ie, c, m, A, C, $, j, Y, _, N, k, d;
2986
- let n = {};
2987
- if (T.value !== "browser") {
2988
- const G = [];
2989
- n.form = {}, (r = a(l.content)) == null || r.forEach((D, K) => {
2990
- var O, de, ee, W, ve, pe, Ae, be, xe, ke, ue, e, o, h;
2991
- if ((D == null ? void 0 : D.comp) === "Table") {
2992
- (de = (O = D == null ? void 0 : D.compData) == null ? void 0 : O.find((ne) => (ne == null ? void 0 : ne.key) === "header")) == null || de.contents;
2993
- let v = (ve = (W = (ee = D == null ? void 0 : D.compData) == null ? void 0 : ee.find((ne) => (ne == null ? void 0 : ne.key) === "tableContents")) == null ? void 0 : W.contents) == null ? void 0 : ve.map((ne) => ne.slice(1));
2994
- (ke = (xe = (be = (Ae = (pe = D == null ? void 0 : D.compData) == null ? void 0 : pe.find((ne) => (ne == null ? void 0 : ne.key) === "header")) == null ? void 0 : Ae.contents) == null ? void 0 : be[0]) == null ? void 0 : xe[0]) == null || ke.label;
2995
- let B = (e = (ue = D == null ? void 0 : D.compData) == null ? void 0 : ue.find((ne) => (ne == null ? void 0 : ne.key) === "header")) == null ? void 0 : e.contents, Z = [];
2996
- v == null || v.forEach((ne) => {
2997
- let q = [];
2998
- ne == null || ne.forEach((re, ge) => {
2999
- var Ie;
3000
- let _e = {};
3001
- ((Ie = B[ge]) == null ? void 0 : Ie.label) !== "操作" && (_e[B[ge].label] = re, q.push(_e));
3002
- }), Z.push(q);
3003
- }), n[D.name] = Z;
3004
- } else {
3005
- const v = (h = (o = D.compData) == null ? void 0 : o.find((B) => (B == null ? void 0 : B.key) === "formContent")) == null ? void 0 : h.contents;
3006
- v == null || v.forEach((B) => {
3007
- B.key !== "" && (B = {
3008
- key: (B == null ? void 0 : B.key) ?? (B == null ? void 0 : B.label),
3009
- value: B == null ? void 0 : B.value
3010
- }, G.push(B));
3011
- });
3012
- }
3013
- }), n.form = ra(G);
3014
- let te = n.form;
3015
- for (let D in n)
3016
- D !== "form" && (te[D] = ca(n[D]));
3017
- if (l.api) {
3018
- try {
3019
- f.value = !0;
3020
- const D = await Fl.post(
3021
- l.api,
3022
- te,
3023
- {
3024
- headers: {
3025
- "Content-Type": "application/json"
3026
- }
3027
- }
3028
- );
3029
- if (((u = D == null ? void 0 : D.data) == null ? void 0 : u.code) === 200 || ((b = D == null ? void 0 : D.data) == null ? void 0 : b.statusCode) === 200) {
3030
- let K = await ((x = D == null ? void 0 : D.data) == null ? void 0 : x.data);
3031
- const O = (se = a(I.value)) == null ? void 0 : se.filter((ve) => (ve == null ? void 0 : ve.comp) !== "methodButton"), de = await Promise.all(
3032
- O.map((ve) => F(ve, K))
3033
- );
3034
- await Promise.all(de);
3035
- const ee = (fe = a(I.value)) == null ? void 0 : fe.filter((ve) => (ve == null ? void 0 : ve.comp) === "methodButton");
3036
- let W = [...de, ...ee];
3037
- await ta(W), f.value = !1;
3038
- } else
3039
- Ye.error("方法调用失败:" + ((ie = D == null ? void 0 : D.data) == null ? void 0 : ie.errors)), f.value = !1;
3040
- } catch {
3041
- Ye.error("方法调用失败"), f.value = !1;
3042
- }
3043
- s.setFreshContent(!0);
3044
- }
3045
- } else if (l.api) {
3046
- let G = await $l(U.value, sessionStorage.getItem("systemKey"), ""), te = {};
3047
- (m = (c = l == null ? void 0 : l.extraValues) == null ? void 0 : c.input) == null || m.forEach((W) => {
3048
- var ve;
3049
- te[Object.keys(W)[0]] = Q((ve = Object.values(W)) == null ? void 0 : ve[0], G);
3050
- });
3051
- let D = !1;
3052
- (C = (A = l == null ? void 0 : l.extraValues) == null ? void 0 : A.output) == null || C.forEach((W) => {
3053
- var ve, pe;
3054
- (pe = (ve = Object.values(W)) == null ? void 0 : ve[0]) != null && pe.includes(".doc") && (D = !0);
3055
- });
3056
- let K;
3057
- D ? K = await Fl.post(l.api, te, {
3058
- responseType: "blob",
3059
- // 必须设置
3060
- headers: {
3061
- "Content-Type": "application/json"
3062
- }
3063
- }) : K = await Fl.post(l.api, te, {
3064
- headers: {
3065
- "Content-Type": "application/json"
3066
- }
3067
- });
3068
- let O = (_ = (Y = (j = ($ = a(l)) == null ? void 0 : $.extraValues) == null ? void 0 : j.output) == null ? void 0 : Y.map((W) => {
3069
- var ve, pe, Ae, be, xe, ke, ue, e, o, h, v, B, Z, ne, q, re;
3070
- if (!((pe = (ve = Object.values(W)) == null ? void 0 : ve[0]) != null && pe.includes(".doc"))) {
3071
- let ge = (h = (o = (e = (be = a((Ae = Object.values(W)) == null ? void 0 : Ae[0])) == null ? void 0 : be.split("[")) == null ? void 0 : e[((ue = (ke = a((xe = Object.values(W)) == null ? void 0 : xe[0])) == null ? void 0 : ke.split("[")) == null ? void 0 : ue.length) - 1]) == null ? void 0 : o.split("]")) == null ? void 0 : h[0];
3072
- ge == null || ge.split(":");
3073
- let _e = (Z = (B = a((v = Object.values(W)) == null ? void 0 : v[0])) == null ? void 0 : B.split(ge)) == null ? void 0 : Z[0];
3074
- if (_e = (q = a(_e)) == null ? void 0 : q.slice(0, ((ne = a(_e)) == null ? void 0 : ne.length) - 1), _e != null && _e.includes("[")) {
3075
- let Ie = "";
3076
- return (re = Rl(_e, "/")) == null || re.forEach((me) => {
3077
- var le, De, he, Ee, We, ze, R;
3078
- if (!(me != null && me.includes("[")))
3079
- Ie = Ie === "" ? Ie + me.replaceAll("/", "") : Ie + "/" + me.replaceAll("/", "");
3080
- else {
3081
- let Le = a(me).slice(1, ((le = a(me)) == null ? void 0 : le.length) - 1), Be = (ze = (We = (Ee = (he = (De = a(Le)) == null ? void 0 : De.split("[")) == null ? void 0 : he[1]) == null ? void 0 : Ee.split("]")) == null ? void 0 : We[0]) == null ? void 0 : ze.split(":"), sl = "", il = (R = G == null ? void 0 : G.find((je) => (je == null ? void 0 : je.name) === (Be == null ? void 0 : Be[0]))) == null ? void 0 : R.compData;
3082
- il == null || il.forEach((je) => {
3083
- var dl;
3084
- (je == null ? void 0 : je.key) === "formContent" && ((dl = je == null ? void 0 : je.contents) == null || dl.forEach((Me) => {
3085
- (Me == null ? void 0 : Me.key) === (Be == null ? void 0 : Be[1]) && (sl = Me == null ? void 0 : Me.value);
3086
- }));
3087
- }), Ie = Ie === "" ? Ie + sl.replaceAll("/", "") : Ie + "/" + sl.replaceAll("/", "");
3088
- }
3089
- }), _e = Ie, _e;
3090
- }
3091
- }
3092
- })) == null ? void 0 : _.filter((W) => W);
3093
- O = [...new Set(a(O))];
3094
- let de = O == null ? void 0 : O.map(async (W) => await da(W));
3095
- await Promise.all(de);
3096
- let ee = (d = (k = (N = a(l)) == null ? void 0 : N.extraValues) == null ? void 0 : k.output) == null ? void 0 : d.map(async (W) => {
3097
- var o, h, v, B, Z, ne, q, re, ge, _e, Ie, me, le, De, he, Ee, We, ze, R, Le, Be, sl, il, je, dl;
3098
- if ((h = (o = Object.values(W)) == null ? void 0 : o[0]) != null && h.includes(".doc")) {
3099
- var ve = new Blob([K.data], {
3100
- type: "application/octet-stream;charset=UTF-8"
3101
- }), pe = K.headers["content-disposition"], Ae = new RegExp("filename=([^;]+\\.[^\\.;]+);*"), be = Ae.exec(pe), xe = ((Z = (B = (v = l == null ? void 0 : l.extraContent) == null ? void 0 : v[0]) == null ? void 0 : B.split(".")) == null ? void 0 : Z[0]) + "." + ((ne = be == null ? void 0 : be[1].split(".")) == null ? void 0 : ne[1]), ke = document.createElement("a"), ue = window.URL.createObjectURL(ve), e = /^["](.*)["]$/g;
3102
- ke.style.display = "none", ke.href = ue, ke.download = decodeURI(xe.replace(e, "$1")), document.body.appendChild(ke), ke.click(), document.body.removeChild(ke), window.URL.revokeObjectURL(ue);
3103
- } else {
3104
- let Me = (De = (le = (me = (re = a((q = Object.values(W)) == null ? void 0 : q[0])) == null ? void 0 : re.split("[")) == null ? void 0 : me[((Ie = (_e = a((ge = Object.values(W)) == null ? void 0 : ge[0])) == null ? void 0 : _e.split("[")) == null ? void 0 : Ie.length) - 1]) == null ? void 0 : le.split("]")) == null ? void 0 : De[0], Ze = Me == null ? void 0 : Me.split(":"), He = (We = (Ee = a((he = Object.values(W)) == null ? void 0 : he[0])) == null ? void 0 : Ee.split(Me)) == null ? void 0 : We[0];
3105
- if (He = (R = a(He)) == null ? void 0 : R.slice(0, ((ze = a(He)) == null ? void 0 : ze.length) - 1), He != null && He.includes("[")) {
3106
- let Ge = "";
3107
- (Le = Rl(He, "/")) == null || Le.forEach((Pe) => {
3108
- var Ke, yl, bl, gl, kl, _l, Cl;
3109
- if (!(Pe != null && Pe.includes("[")))
3110
- Ge = Ge === "" ? Ge + Pe.replaceAll("/", "") : Ge + "/" + Pe.replaceAll("/", "");
3111
- else {
3112
- let Al = a(Pe).slice(1, ((Ke = a(Pe)) == null ? void 0 : Ke.length) - 1), nl = (_l = (kl = (gl = (bl = (yl = a(Al)) == null ? void 0 : yl.split("[")) == null ? void 0 : bl[1]) == null ? void 0 : gl.split("]")) == null ? void 0 : kl[0]) == null ? void 0 : _l.split(":"), vl = "", hl = (Cl = G == null ? void 0 : G.find((qe) => (qe == null ? void 0 : qe.name) === (nl == null ? void 0 : nl[0]))) == null ? void 0 : Cl.compData;
3113
- hl == null || hl.forEach((qe) => {
3114
- var wl;
3115
- (qe == null ? void 0 : qe.key) === "formContent" && ((wl = qe == null ? void 0 : qe.contents) == null || wl.forEach((ol) => {
3116
- (ol == null ? void 0 : ol.key) === (nl == null ? void 0 : nl[1]) && (vl = ol == null ? void 0 : ol.value);
3117
- }));
3118
- }), Ge = Ge === "" ? Ge + vl.replaceAll("/", "") : Ge + "/" + vl.replaceAll("/", "");
3119
- }
3120
- }), He = Ge;
3121
- }
3122
- if (((Be = K == null ? void 0 : K.data) == null ? void 0 : Be.statusCode) === 200 && (il = (sl = K == null ? void 0 : K.data) == null ? void 0 : sl.data) != null && il[Ze == null ? void 0 : Ze[0]])
3123
- return await g((dl = (je = K == null ? void 0 : K.data) == null ? void 0 : je.data) == null ? void 0 : dl[Ze == null ? void 0 : Ze[0]], He, Ze);
3124
- }
3125
- });
3126
- await Promise.all(ee);
3127
- }
3128
- J.value = !0;
3129
- }, V = async (l) => {
3130
- var x, se, fe;
3131
- const n = a(l);
3132
- let r;
3133
- l != null && l[0].path && (r = await (n == null ? void 0 : n.map(async (ie, c) => {
3134
- var j, Y, _, N, k, d, G, te, D, K;
3135
- const A = (await El({
3136
- key: {
3137
- systemKey: sessionStorage.getItem("systemKey"),
3138
- type: "data",
3139
- pageKey: (j = l == null ? void 0 : l[0]) == null ? void 0 : j.path
3140
- }
3141
- })).data.result;
3142
- let C = "";
3143
- const $ = await $l(U.value, sessionStorage.getItem("systemKey"), "");
3144
- return A == null || A.forEach((O) => {
3145
- var de, ee, W, ve, pe;
3146
- ((ee = (de = O == null ? void 0 : O.value) == null ? void 0 : de.tableData) == null ? void 0 : ee.算法名称) === ((W = n == null ? void 0 : n[c]) == null ? void 0 : W.method) && (C = (pe = (ve = O == null ? void 0 : O.value) == null ? void 0 : ve.tableData) == null ? void 0 : pe.算法体);
3147
- }), {
3148
- buttonName: ((Y = n == null ? void 0 : n[c]) == null ? void 0 : Y.method) ?? ((k = (N = (_ = A == null ? void 0 : A[0]) == null ? void 0 : _.value) == null ? void 0 : N.tableData) == null ? void 0 : k.算法名称),
3149
- api: C === "" ? (te = (G = (d = A == null ? void 0 : A[0]) == null ? void 0 : d.value) == null ? void 0 : G.tableData) == null ? void 0 : te.算法体 : C,
3150
- content: $ == null ? void 0 : $.filter((O) => O.comp !== "methodButton"),
3151
- extraContent: (D = a(ie.value)) == null ? void 0 : D.slice(1),
3152
- methodName: (ie == null ? void 0 : ie.path) ?? "",
3153
- extraValues: (K = n == null ? void 0 : n[c]) == null ? void 0 : K.data
3154
- };
3155
- })));
3156
- const u = n == null ? void 0 : n.map(async (ie) => {
3157
- var j, Y, _, N, k, d;
3158
- const m = (j = (await El({
3159
- key: {
3160
- systemKey: sessionStorage.getItem("systemKey"),
3161
- parentTable: "",
3162
- type: "method",
3163
- methodName: ie.method
3164
- }
3165
- })).data.result) == null ? void 0 : j[0], A = await El({
3166
- key: {
3167
- systemKey: sessionStorage.getItem("systemKey"),
3168
- type: "methodData",
3169
- tableId: m == null ? void 0 : m.id
3170
- }
3171
- }), C = await $l(U.value, sessionStorage.getItem("systemKey"), ""), $ = (Y = A.data.result) == null ? void 0 : Y[0];
3172
- return {
3173
- buttonName: (_ = m == null ? void 0 : m.key) == null ? void 0 : _.methodKey,
3174
- api: (k = (N = $ == null ? void 0 : $.value) == null ? void 0 : N.tableData) == null ? void 0 : k[0],
3175
- content: C == null ? void 0 : C.filter((G) => G.comp !== "methodButton"),
3176
- extraContent: (d = a(ie.value)) == null ? void 0 : d.slice(1),
3177
- methodName: (ie == null ? void 0 : ie.method) ?? ""
3178
- };
3179
- }), b = (x = l == null ? void 0 : l[0]) != null && x.path && ((se = l == null ? void 0 : l[0]) == null ? void 0 : se.path) !== "" ? await Promise.all(r) : await Promise.all(u);
3180
- y.value = b == null ? void 0 : b.filter((ie) => ie == null ? void 0 : ie.extraContent), (fe = y.value) == null || fe.forEach((ie) => {
3181
- var c;
3182
- ie.api === "" && ((c = ie.content) == null || c.forEach((m) => {
3183
- var A;
3184
- m.comp == "Table" && s.setExtraContents(ua(m.compData, (A = ie.extraContent) == null ? void 0 : A[0]));
3185
- }));
3186
- });
3187
- };
3188
- return Ve(
3189
- () => i.itemData,
3190
- async () => {
3191
- L.value == "view" && !J.value && await V(a(i.itemData)), J.value = !1;
3192
- },
3193
- { immediate: !0, deep: !0 }
3194
- ), (l, n) => (H(), ce("div", Ii, [
3195
- (H(!0), ce(Se, null, Fe(y.value, (r) => (H(), ce("div", null, [
3196
- r.api !== "" ? (H(), Oe(Hl(Ca), {
3197
- key: 0,
3198
- class: "calculator-content",
3199
- modelValue: r.buttonName,
3200
- onClickTrigger: (u) => w(r),
3201
- loading: f.value
3202
- }, null, 8, ["modelValue", "onClickTrigger", "loading"])) : Xe("", !0)
3203
- ]))), 256))
3204
- ]));
3205
- }
3206
- }, xi = /* @__PURE__ */ Re(Ai, [["__scopeId", "data-v-6366c934"]]), $i = {};
3207
- function Ei(p, y) {
3208
- return " 567 ";
3209
- }
3210
- const Bi = /* @__PURE__ */ Re($i, [["render", Ei]]), Ti = { class: "module content" }, Si = { class: "module data" }, Fi = { class: "module layout" }, Oi = { class: "form-content" }, Li = /* @__PURE__ */ fl({
3211
- __name: "operate",
3212
- props: {
3213
- itemContents: {
3214
- type: Array,
3215
- default: () => []
3216
- },
3217
- originalItemContents: {
3218
- type: Array,
3219
- default: () => []
3220
- }
3221
- },
3222
- emits: ["change"],
3223
- setup(p, { emit: y }) {
3224
- const i = p, s = y, f = Vl({
3225
- visible: !1,
3226
- width: "40%",
3227
- title: "签名配置"
3228
- }), S = M("create"), P = M([
3229
- {
3230
- label: "取消",
3231
- background: "#c0c4cc"
3232
- },
3233
- {
3234
- label: "确认",
3235
- background: "#436aaf"
3236
- }
3237
- ]), I = M([
3238
- {
3239
- label: "宽度(%):",
3240
- prop: "signPadWidth",
3241
- type: "number",
3242
- value: "30"
3243
- },
3244
- {
3245
- label: "弹窗名称:",
3246
- prop: "dialogTitle",
3247
- type: "input",
3248
- value: ""
3249
- },
3250
- {
3251
- label: "弹窗宽度(%):",
3252
- prop: "dialogWidth",
3253
- type: "number",
3254
- value: "30"
3255
- },
3256
- {
3257
- label: "弹窗显示:",
3258
- prop: "dialogShow",
3259
- type: "radio",
3260
- contents: [
3261
- {
3262
- label: "显示",
3263
- value: !0
3264
- },
3265
- {
3266
- label: "隐藏",
3267
- value: !1
3268
- }
3269
- ],
3270
- value: !1,
3271
- isFormColHidden: !0
3272
- },
3273
- {
3274
- label: "路径:",
3275
- prop: "url",
3276
- type: "input",
3277
- value: "",
3278
- isFormColHidden: !0
3279
- }
3280
- ]), L = jl(() => [
3281
- {
3282
- label: "",
3283
- prop: "index",
3284
- type: "input",
3285
- value: "",
3286
- isFormColHidden: !0
3287
- },
3288
- {
3289
- label: "类型:",
3290
- prop: "label",
3291
- type: "select",
3292
- contents: [
3293
- {
3294
- label: "电子签名",
3295
- value: "电子签名"
3296
- },
3297
- {
3298
- label: "签字版",
3299
- value: "签字版"
3300
- },
3301
- {
3302
- label: "上传签名",
3303
- value: "上传签名"
3304
- }
3305
- ],
3306
- value: ""
3307
- },
3308
- {
3309
- label: "图标",
3310
- prop: "icon",
3311
- type: "inputPopover",
3312
- value: ""
3313
- }
3314
- // {
3315
- // label: '是否禁用',
3316
- // prop: 'disabled',
3317
- // type: 'radio',
3318
- // contents: [
3319
- // {
3320
- // label: '是',
3321
- // value: true,
3322
- // },
3323
- // {
3324
- // label: '否',
3325
- // value: false,
3326
- // }
3327
- // ],
3328
- // value: false
3329
- // },
3330
- ]), U = M({}), T = M([]), X = () => ({
3331
- comp: "Signature",
3332
- compData: [
3333
- {
3334
- key: "signTypeList",
3335
- contents: T.value
3336
- },
3337
- {
3338
- key: "signConfig",
3339
- contents: U.value
3340
- }
3341
- ]
3342
- }), J = (g) => {
3343
- var w;
3344
- U.value = a(g), s("change", (w = X()) == null ? void 0 : w.compData);
3345
- }, oe = (g) => {
3346
- var w, V;
3347
- if ((g == null ? void 0 : g.buttonName) === "确认") {
3348
- const l = a(g == null ? void 0 : g.content);
3349
- switch (S.value) {
3350
- case "create":
3351
- T.value.push({
3352
- ...l,
3353
- index: ((w = T.value) == null ? void 0 : w.length) + 1
3354
- });
3355
- break;
3356
- }
3357
- s("change", (V = X()) == null ? void 0 : V.compData), f.visible = !1;
3358
- } else
3359
- f.visible = !1;
3360
- }, F = (g, w) => {
3361
- var V, l;
3362
- switch (g) {
3363
- case "create":
3364
- (V = L.value) == null || V.forEach((n) => {
3365
- n.value = "";
3366
- }), S.value = "create", f.visible = !0;
3367
- break;
3368
- case "update":
3369
- (l = L.value) == null || l.forEach((n) => {
3370
- n.value = w[n == null ? void 0 : n.prop];
3371
- }), S.value = "update", f.visible = !0;
3372
- break;
3373
- case "delete":
3374
- T.value.splice(w, 1), S.value = "delete";
3375
- break;
3376
- }
3377
- }, Q = () => {
3378
- f.visible = !1;
3379
- };
3380
- return Ve(() => i == null ? void 0 : i.itemContents, (g) => {
3381
- var w, V;
3382
- g && (U.value = ((w = g == null ? void 0 : g.find((l) => l.key === "signConfig")) == null ? void 0 : w.contents) ?? {}, T.value = ((V = g == null ? void 0 : g.find((l) => l.key === "signTypeList")) == null ? void 0 : V.contents) ?? []);
3383
- }, { immediate: !0 }), (g, w) => {
3384
- const V = Te("svg-icon"), l = Te("el-button");
3385
- return H(), ce(Se, null, [
3386
- E("div", null, [
3387
- E("div", Ti, [
3388
- w[2] || (w[2] = E("h4", { class: "module-title" }, "签名类型", -1)),
3389
- z(l, {
3390
- class: "module-icon",
3391
- id: "themeButton",
3392
- onClick: w[0] || (w[0] = (n) => F("create"))
3393
- }, {
3394
- icon: ae(() => [
3395
- z(V, {
3396
- name: "Plus",
3397
- class: "icon-size"
3398
- })
3399
- ]),
3400
- default: ae(() => [
3401
- w[1] || (w[1] = $e(" 新增 "))
3402
- ]),
3403
- _: 1,
3404
- __: [1]
3405
- })
3406
- ]),
3407
- E("div", Si, [
3408
- (H(!0), ce(Se, null, Fe(T.value, (n, r) => (H(), ce("div", {
3409
- class: "module-data-item",
3410
- key: r
3411
- }, [
3412
- E("span", null, ye(n == null ? void 0 : n.label), 1),
3413
- E("div", null, [
3414
- z(l, {
3415
- type: "primary",
3416
- size: "small",
3417
- onClick: (u) => F("update", { ...n, index: r + 1 })
3418
- }, {
3419
- default: ae(() => w[3] || (w[3] = [
3420
- $e("修改")
3421
- ])),
3422
- _: 2,
3423
- __: [3]
3424
- }, 1032, ["onClick"]),
3425
- z(l, {
3426
- type: "danger",
3427
- size: "small",
3428
- onClick: (u) => F("delete", r)
3429
- }, {
3430
- default: ae(() => w[4] || (w[4] = [
3431
- $e("删除")
3432
- ])),
3433
- _: 2,
3434
- __: [4]
3435
- }, 1032, ["onClick"])
3436
- ])
3437
- ]))), 128))
3438
- ]),
3439
- E("div", Fi, [
3440
- z(Ue, {
3441
- rowContents: I.value,
3442
- onChange: J
3443
- }, null, 8, ["rowContents"])
3444
- ])
3445
- ]),
3446
- z(Je, {
3447
- visible: f.visible,
3448
- title: f.title,
3449
- onBeforeDestroy: Q,
3450
- width: f.width
3451
- }, {
3452
- default: ae(() => [
3453
- E("div", Oi, [
3454
- (H(), Oe(Ue, {
3455
- rowContents: L.value,
3456
- key: L.value,
3457
- isEnableWrap: !1,
3458
- isButtonRow: !1,
3459
- isStartJustify: !1,
3460
- buttonValue: P.value,
3461
- onOnButtonClick: oe
3462
- }, null, 8, ["rowContents", "buttonValue"]))
3463
- ])
3464
- ]),
3465
- _: 1
3466
- }, 8, ["visible", "title", "width"])
3467
- ], 64);
3468
- };
3469
- }
3470
- }), Ri = /* @__PURE__ */ Re(Li, [["__scopeId", "data-v-487e0536"]]), Pi = /* @__PURE__ */ fl({
3471
- __name: "index",
3472
- props: {
3473
- stepConfig: {
3474
- type: Object,
3475
- default: {}
3476
- },
3477
- stepList: {
3478
- type: Array,
3479
- default: () => []
3480
- }
3481
- },
3482
- emits: ["clickStep", "clickTrigger", "changeTrigger"],
3483
- setup(p, { emit: y }) {
3484
- const i = p, s = y, f = M(1), S = jl(() => {
3485
- var X, J;
3486
- return (X = i == null ? void 0 : i.stepConfig) != null && X.allowTrigger ? f.value : (J = i == null ? void 0 : i.stepConfig) == null ? void 0 : J.active;
3487
- }), P = (X, J) => {
3488
- f.value = J, s("clickStep", X, J);
3489
- }, I = (X) => wa(X), L = () => {
3490
- var J;
3491
- const X = (J = i == null ? void 0 : i.stepList) == null ? void 0 : J.find((oe, F) => F + 1 === S.value);
3492
- return console.log("findStep", X), X ? X == null ? void 0 : X.children : [];
3493
- }, U = (X) => {
3494
- s("clickTrigger", X);
3495
- }, T = (X) => {
3496
- s("changeTrigger", X);
3497
- };
3498
- return (X, J) => {
3499
- var Q, g, w, V, l;
3500
- const oe = Te("el-step"), F = Te("el-steps");
3501
- return H(), ce(Se, null, [
3502
- z(F, {
3503
- direction: (Q = p.stepConfig) == null ? void 0 : Q.direction,
3504
- active: S.value,
3505
- "finish-status": "success",
3506
- simple: (g = p.stepConfig) == null ? void 0 : g.simple,
3507
- "align-center": ((w = p.stepConfig) == null ? void 0 : w.alignCenter) ?? !0
3508
- }, {
3509
- default: ae(() => [
3510
- (H(!0), ce(Se, null, Fe(p.stepList, (n, r) => (H(), Oe(oe, {
3511
- key: r,
3512
- class: "step-item",
3513
- onClick: (u) => P(n, r + 1)
3514
- }, {
3515
- title: ae(() => [
3516
- Bl(X.$slots, "title", {
3517
- title: n == null ? void 0 : n.title
3518
- }, void 0, !0)
3519
- ]),
3520
- description: ae(() => [
3521
- Bl(X.$slots, "description", {
3522
- description: n == null ? void 0 : n.description
3523
- }, void 0, !0)
3524
- ]),
3525
- _: 2
3526
- }, 1032, ["onClick"]))), 128))
3527
- ]),
3528
- _: 3
3529
- }, 8, ["direction", "active", "simple", "align-center"]),
3530
- (V = p.stepConfig) != null && V.allowTrigger && ((l = p.stepConfig) != null && l.active) ? (H(!0), ce(Se, { key: 0 }, Fe(L(), (n, r) => (H(), ce("div", {
3531
- key: r,
3532
- class: "step-cont-wrap"
3533
- }, [
3534
- (H(), Oe(Il(I(n == null ? void 0 : n.type)), {
3535
- modelValue: n.value,
3536
- "onUpdate:modelValue": (u) => n.value = u,
3537
- onClickTrigger: U,
3538
- onChangeTrigger: T,
3539
- content: n == null ? void 0 : n.content
3540
- }, ma({ _: 2 }, [
3541
- Fe(X.$slots, (u, b) => ({
3542
- name: b,
3543
- fn: ae((x) => [
3544
- Bl(X.$slots, b, ya({ ref_for: !0 }, x || {}), void 0, !0)
3545
- ])
3546
- }))
3547
- ]), 1064, ["modelValue", "onUpdate:modelValue", "content"]))
3548
- ]))), 128)) : Xe("", !0)
3549
- ], 64);
3550
- };
3551
- }
3552
- }), Ni = /* @__PURE__ */ Re(Pi, [["__scopeId", "data-v-d7c99969"]]), Vi = /* @__PURE__ */ fl({
3553
- __name: "index",
3554
- props: {
3555
- itemData: {
3556
- type: Array,
3557
- default: () => []
3558
- },
3559
- childItemData: {
3560
- type: Array,
3561
- default: () => []
3562
- }
3563
- },
3564
- emits: ["clickStep"],
3565
- setup(p, { emit: y }) {
3566
- const i = p, s = y, f = M({}), S = M([]), P = (I, L) => {
3567
- s("clickStep", I, L);
3568
- };
3569
- return Ve(() => i == null ? void 0 : i.itemData, (I) => {
3570
- var L, U;
3571
- S.value = (L = I == null ? void 0 : I.find((T) => (T == null ? void 0 : T.key) === "stepList")) == null ? void 0 : L.contents, f.value = (U = I == null ? void 0 : I.find((T) => (T == null ? void 0 : T.key) === "stepConfig")) == null ? void 0 : U.contents;
3572
- }, {
3573
- immediate: !0
3574
- }), (I, L) => {
3575
- const U = Te("svg-icon");
3576
- return H(), Oe(Ni, {
3577
- stepConfig: f.value,
3578
- stepList: S.value,
3579
- onClickStep: P
3580
- }, {
3581
- icon: ae(() => [
3582
- z(U, { name: "import" })
3583
- ]),
3584
- title: ae(({ title: T }) => [
3585
- $e(ye(T), 1)
3586
- ]),
3587
- description: ae(({ description: T }) => [
3588
- $e(ye(T), 1)
3589
- ]),
3590
- _: 1
3591
- }, 8, ["stepConfig", "stepList"]);
3592
- };
3593
- }
3594
- }), ji = /* @__PURE__ */ fl({
3595
- __name: "index",
3596
- props: {
3597
- activities: {
3598
- type: Array,
3599
- default: () => []
3600
- },
3601
- timeLineConfig: {
3602
- type: Object,
3603
- default: () => {
3604
- }
3605
- }
3606
- },
3607
- setup(p) {
3608
- return (y, i) => {
3609
- const s = Te("el-timeline-item"), f = Te("el-timeline");
3610
- return H(), Oe(f, null, {
3611
- default: ae(() => [
3612
- (H(!0), ce(Se, null, Fe(p.activities, (S, P) => (H(), Oe(s, {
3613
- key: P,
3614
- timestamp: S.timestamp,
3615
- placement: p.timeLineConfig.placement,
3616
- center: p.timeLineConfig.isCenter,
3617
- "hide-timestamp": !0,
3618
- type: p.timeLineConfig.type,
3619
- color: p.timeLineConfig.color,
3620
- size: p.timeLineConfig.size,
3621
- icon: p.timeLineConfig.icon,
3622
- hollow: p.timeLineConfig.isHollow
3623
- }, {
3624
- default: ae(() => [
3625
- Bl(y.$slots, "content", {
3626
- content: S == null ? void 0 : S.content,
3627
- timestamp: S == null ? void 0 : S.timestamp
3628
- }, void 0, !0)
3629
- ]),
3630
- _: 2
3631
- }, 1032, ["timestamp", "placement", "center", "type", "color", "size", "icon", "hollow"]))), 128))
3632
- ]),
3633
- _: 3
3634
- });
3635
- };
3636
- }
3637
- }), Ui = /* @__PURE__ */ Re(ji, [["__scopeId", "data-v-4172a886"]]), Wi = { class: "line-content" }, zi = { class: "line-time" }, Mi = /* @__PURE__ */ fl({
3638
- __name: "index",
3639
- props: {
3640
- itemData: {
3641
- type: Array,
3642
- default: () => []
3643
- }
3644
- },
3645
- setup(p) {
3646
- const y = p, i = M({}), s = M([]);
3647
- return Ve(() => y == null ? void 0 : y.itemData, (f) => {
3648
- var S, P;
3649
- s.value = (S = f == null ? void 0 : f.find((I) => (I == null ? void 0 : I.key) === "timeLineList")) == null ? void 0 : S.contents, i.value = (P = f == null ? void 0 : f.find((I) => (I == null ? void 0 : I.key) === "timeLineConfig")) == null ? void 0 : P.contents;
3650
- }, {
3651
- immediate: !0
3652
- }), (f, S) => (H(), Oe(Ui, {
3653
- activities: s.value,
3654
- timeLineConfig: i.value
3655
- }, {
3656
- content: ae(({ content: P, timestamp: I }) => [
3657
- E("span", Wi, ye(P), 1),
3658
- E("span", zi, ye(I), 1)
3659
- ]),
3660
- _: 1
3661
- }, 8, ["activities", "timeLineConfig"]));
3662
- }
3663
- }), Ki = /* @__PURE__ */ Re(Mi, [["__scopeId", "data-v-b4d9deed"]]), Ji = { class: "tabs-content" }, Gi = {
3664
- __name: "index",
3665
- props: {
3666
- itemData: {
3667
- type: Array,
3668
- default: () => []
3669
- },
3670
- childItemData: {
3671
- type: Array,
3672
- default: () => []
3673
- },
3674
- index: Number
3675
- },
3676
- setup(p) {
3677
- const y = p, i = M([]);
3678
- return Ve(
3679
- () => y == null ? void 0 : y.itemData,
3680
- (s) => {
3681
- const f = s.find((S) => (S == null ? void 0 : S.key) == "stepList");
3682
- f && (i.value = f.contents.map((S) => ({
3683
- value: S.value || S.title,
3684
- label: S.label || S.title,
3685
- children: S.children || []
3686
- // 关键:传递子内容
3687
- })));
3688
- },
3689
- { immediate: !0, deep: !0 }
3690
- ), (s, f) => (H(), ce("div", Ji, [
3691
- z(Da, { tabsContents: i.value }, null, 8, ["tabsContents"])
3692
- ]));
3693
- }
3694
- }, qi = /* @__PURE__ */ Re(Gi, [["__scopeId", "data-v-d3bb10b7"]]), Sl = Ql("tabComp", {
3695
- state: () => ({
3696
- itemData: [],
3697
- originalData: [],
3698
- extraContents: [],
3699
- nodeDev: "",
3700
- isEdit: "view",
3701
- isRefreshCurStructure: !1,
3702
- isSubmitCurStructure: !1,
3703
- curStructureCompIds: []
3704
- }),
3705
- actions: {
3706
- setItemData(p) {
3707
- this.itemData = p;
3708
- },
3709
- setCurStructureCompIds(p) {
3710
- this.curStructureCompIds = p;
3711
- },
3712
- setRefreshCurStructure(p) {
3713
- this.isRefreshCurStructure = p;
3714
- },
3715
- setOriginalData(p) {
3716
- this.originalData = p;
3717
- },
3718
- setExtraContents(p) {
3719
- this.extraContents = p;
3720
- },
3721
- setNodeDev(p) {
3722
- this.nodeDev = p;
3723
- },
3724
- setIsEdit(p) {
3725
- this.isEdit = p;
3726
- }
3727
- }
3728
- }), Hi = { class: "type-select" }, Qi = ["onClick"], Xi = { class: "list-icon" }, Yi = {
3729
- __name: "modelSelect",
3730
- setup(p) {
3731
- const y = Sl(Qe), { itemData: i } = al(y), s = (f) => {
3732
- const S = a(i.value);
3733
- S.push({
3734
- comp: f.comp,
3735
- name: f.name,
3736
- compData: []
3737
- }), y.setItemData(S);
3738
- };
3739
- return (f, S) => {
3740
- const P = Te("svg-icon");
3741
- return H(), ce("div", Hi, [
3742
- (H(!0), ce(Se, null, Fe(Hl(Ln), (I, L) => (H(), ce("div", {
3743
- class: "type-list",
3744
- key: L
3745
- }, [
3746
- E("div", {
3747
- class: "list-content",
3748
- onClick: (U) => s(I)
3749
- }, [
3750
- E("div", Xi, [
3751
- z(P, {
3752
- name: I.icon
3753
- }, null, 8, ["name"])
3754
- ]),
3755
- E("div", null, ye(I.name), 1)
3756
- ], 8, Qi)
3757
- ]))), 128))
3758
- ]);
3759
- };
3760
- }
3761
- }, Zi = /* @__PURE__ */ Re(Yi, [["__scopeId", "data-v-91799bf8"]]), en = { class: "fill-content" }, ln = { class: "operate-content" }, an = { class: "collapse-title-content" }, sn = { class: "collapse-title-item" }, nn = { key: 1 }, on = ["onClick"], un = { class: "icon-content" }, rn = {
3762
- key: 0,
3763
- class: "edit-content"
3764
- }, cn = ["onClick"], tn = { class: "comp-child" }, dn = {
3765
- __name: "modelFill",
3766
- setup(p) {
3767
- const y = Sl(Qe), { itemData: i, originalData: s } = al(y), f = M([]);
3768
- M([]);
3769
- const S = M([]), P = M([]), I = (oe) => {
3770
- var Q;
3771
- let F = (Q = a(P.value)) == null ? void 0 : Q.map((g, w) => (oe === w && (g.content = !0), g));
3772
- P.value = F;
3773
- }, L = (oe) => {
3774
- var Q;
3775
- let F = (Q = a(P.value)) == null ? void 0 : Q.map((g, w) => (oe === w && (g.content = !1), g));
3776
- P.value = F, f.value = a(i.value);
3777
- }, U = (oe, F) => {
3778
- var V;
3779
- let Q = (V = a(P.value)) == null ? void 0 : V.map((l, n) => (oe === n && (l.content = !1), l));
3780
- P.value = Q;
3781
- const g = a(i.value), w = g == null ? void 0 : g.filter((l, n) => (n === oe && (l.name = F), l));
3782
- y.setOriginalData(w), y.setItemData(w);
3783
- };
3784
- Ve(
3785
- () => i.value,
3786
- () => {
3787
- var oe, F, Q;
3788
- !i.value || ((oe = i.value) == null ? void 0 : oe.length) === 0 ? f.value = [] : f.value = (F = a(i.value)) == null ? void 0 : F.filter((g) => (g == null ? void 0 : g.comp) !== "methodButton"), S.value = f.value, P.value = (Q = a(S.value)) == null ? void 0 : Q.map((g, w) => ({
3789
- id: w,
3790
- content: !1
3791
- }));
3792
- },
3793
- { deep: !0, immediate: !0 }
3794
- );
3795
- const T = (oe) => Ul(oe), X = (oe, F, Q) => {
3796
- var w, V;
3797
- if (!oe) return;
3798
- let g = a(i.value);
3799
- g = (w = g == null ? void 0 : g.map((l, n) => (n === Q && (l.compData = oe), l))) == null ? void 0 : w.filter((l) => (l == null ? void 0 : l.comp) !== "methodButton"), P.value = (V = a(g)) == null ? void 0 : V.map((l, n) => ({
3800
- id: n,
3801
- content: !1
3802
- })), y.setOriginalData(g), y.setItemData(g);
3803
- }, J = (oe) => {
3804
- tl.confirm("是否确认要删除", "", {
3805
- confirmButtonText: "确认",
3806
- cancelButtonText: "取消",
3807
- type: "warning"
3808
- }).then(() => {
3809
- const F = a(i.value), Q = F == null ? void 0 : F.filter((g, w) => w !== oe);
3810
- y.setOriginalData(Q), y.setItemData(Q), Ye({
3811
- type: "success",
3812
- message: "删除成功"
3813
- });
3814
- }).catch(() => {
3815
- });
3816
- };
3817
- return (oe, F) => {
3818
- const Q = Te("svg-icon");
3819
- return H(), ce("div", en, [
3820
- F[1] || (F[1] = E("div", { class: "fill-operate" }, ye("操作栏"), -1)),
3821
- E("div", ln, [
3822
- z(Ba, {
3823
- class: "collapse-content",
3824
- collapseContents: f.value
3825
- }, {
3826
- title: ae(({ item: g, index: w }) => {
3827
- var V, l, n, r, u, b, x, se, fe, ie;
3828
- return [
3829
- E("div", an, [
3830
- E("div", sn, [
3831
- (l = (V = P.value) == null ? void 0 : V.find((c) => c.id === w)) != null && l.content ? Xe("", !0) : (H(), ce("div", {
3832
- key: 0,
3833
- class: "collapse-title",
3834
- style: ba({ marginRight: g.name && g.name !== "" ? "8px" : "0px" })
3835
- }, ye(g.name), 5)),
3836
- (r = (n = P.value) == null ? void 0 : n.find((c) => c.id === w)) != null && r.content ? (H(), ce("div", nn, [
3837
- z(Ia, {
3838
- modelValue: g.name,
3839
- "onUpdate:modelValue": (c) => g.name = c,
3840
- onClick: F[0] || (F[0] = Dl(() => {
3841
- }, ["stop"]))
3842
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
3843
- ])) : Xe("", !0),
3844
- (b = (u = P.value) == null ? void 0 : u.find((c) => c.id === w)) != null && b.content ? Xe("", !0) : (H(), ce("div", {
3845
- key: 2,
3846
- onClick: Dl((c) => I(w), ["stop"]),
3847
- class: "icon-content"
3848
- }, [
3849
- z(Q, {
3850
- name: "Edit",
3851
- style: { width: "16px", height: "16px" }
3852
- })
3853
- ], 8, on))
3854
- ]),
3855
- E("div", un, [
3856
- (se = (x = P.value) == null ? void 0 : x.find((c) => c.id === w)) != null && se.content ? (H(), ce("div", rn, [
3857
- z(Q, {
3858
- name: "Cancel",
3859
- style: { width: "16px", height: "16px" },
3860
- class: "icon-content",
3861
- onClick: Dl((c) => L(w), ["stop"])
3862
- }, null, 8, ["onClick"]),
3863
- z(Q, {
3864
- name: "Save",
3865
- onClick: Dl((c) => U(w, g.name), ["stop"]),
3866
- style: { width: "16px", height: "16px", fill: "var(--ssComponent-primary-color)" },
3867
- class: "icon-content"
3868
- }, null, 8, ["onClick"])
3869
- ])) : Xe("", !0),
3870
- (ie = (fe = P.value) == null ? void 0 : fe.find((c) => c.id === w)) != null && ie.content ? Xe("", !0) : (H(), ce("div", {
3871
- key: 1,
3872
- onClick: Dl((c) => J(w), ["stop"]),
3873
- class: "icon-content"
3874
- }, [
3875
- z(Q, {
3876
- name: "Delete",
3877
- style: { width: "16px", height: "16px" }
3878
- })
3879
- ], 8, cn))
3880
- ])
3881
- ])
3882
- ];
3883
- }),
3884
- content: ae(({ item: g, index: w }) => {
3885
- var V, l;
3886
- return [
3887
- E("div", tn, [
3888
- (H(), Oe(Il(T(g.comp + "Operate")), {
3889
- itemContents: g == null ? void 0 : g.compData,
3890
- originalItemContents: (l = (V = S.value) == null ? void 0 : V.find((n, r) => r === w)) == null ? void 0 : l.compData,
3891
- onChange: (n) => X(n, g, w)
3892
- }, null, 40, ["itemContents", "originalItemContents", "onChange"]))
3893
- ])
3894
- ];
3895
- }),
3896
- _: 1
3897
- }, 8, ["collapseContents"])
3898
- ])
3899
- ]);
3900
- };
3901
- }
3902
- }, pn = /* @__PURE__ */ Re(dn, [["__scopeId", "data-v-78d7fc46"]]), fn = {
3903
- key: 0,
3904
- class: "show-content"
3905
- }, vn = { style: { display: "flex" } }, hn = {
3906
- __name: "modelShow",
3907
- setup(p) {
3908
- const y = Sl(Qe), { itemData: i } = al(y), s = M([]);
3909
- Ve(
3910
- () => i.value,
3911
- () => {
3912
- var S;
3913
- !i.value || ((S = i.value) == null ? void 0 : S.length) === 0 ? s.value = [] : s.value = a(i.value);
3914
- },
3915
- { deep: !0, immediate: !0 }
3916
- );
3917
- const f = (S) => Ul(S);
3918
- return (S, P) => {
3919
- var I;
3920
- return ((I = s.value) == null ? void 0 : I.length) > 0 ? (H(), ce("div", fn, [
3921
- (H(!0), ce(Se, null, Fe(s.value, (L, U) => (H(), ce("div", {
3922
- class: "item-content",
3923
- key: U
3924
- }, [
3925
- E("div", vn, ye(L.name), 1),
3926
- (H(), Oe(Il(f(L.comp)), {
3927
- itemData: L == null ? void 0 : L.compData,
3928
- childItemData: L == null ? void 0 : L.itemChildData,
3929
- key: U
3930
- }, null, 8, ["itemData", "childItemData"]))
3931
- ]))), 128))
3932
- ])) : Xe("", !0);
3933
- };
3934
- }
3935
- }, mn = /* @__PURE__ */ Re(hn, [["__scopeId", "data-v-3f3e863e"]]), yn = { class: "tabs-header" }, bn = { class: "tabs-list" }, gn = { class: "tab-name" }, kn = { class: "tab-actions" }, _n = ["onClick"], Cn = ["onClick"], wn = ["onClick"], Dn = { class: "model-operate" }, In = {
3936
- class: "model-select",
3937
- style: { display: "unset" }
3938
- }, An = { class: "existing-components" }, xn = { class: "component-list" }, $n = ["onClick"], En = { class: "component-info" }, Bn = { class: "component-type" }, Tn = { class: "component-name" }, Sn = { class: "model-fill" }, Fn = {
3939
- __name: "operate",
3940
- props: {
3941
- itemContents: {
3942
- type: Array,
3943
- default: () => []
3944
- }
3945
- },
3946
- emits: ["change"],
3947
- setup(p, { emit: y }) {
3948
- const i = p, s = y, f = M([]), S = M(!1), P = M(""), I = M({ title: "" }), L = M(-1), U = M(!1), T = M(-1), X = M(/* @__PURE__ */ new Map()), J = M(null), oe = Sl(Qe), { itemData: F } = al(oe), Q = () => {
3949
- P.value = "新增标签页", I.value.title = "", L.value = -1, S.value = !0;
3950
- }, g = (N) => {
3951
- P.value = "修改标签页", I.value.title = f.value[N].title, L.value = N, S.value = !0;
3952
- }, w = (N) => {
3953
- const k = n(N);
3954
- X.value.delete(k), f.value.splice(N, 1), _();
3955
- }, V = () => {
3956
- if (I.value.title.trim()) {
3957
- if (L.value === -1) {
3958
- const N = {
3959
- title: I.value.title,
3960
- value: I.value.title,
3961
- label: I.value.title,
3962
- children: [],
3963
- id: l()
3964
- };
3965
- f.value.push(N);
3966
- } else
3967
- f.value[L.value].title = I.value.title, f.value[L.value].value = I.value.title, f.value[L.value].label = I.value.title;
3968
- S.value = !1, _();
3969
- }
3970
- }, l = () => `tab_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`, n = (N) => {
3971
- const k = f.value[N];
3972
- return k.id || (k.id = l()), k.id;
3973
- }, r = (N) => {
3974
- var G;
3975
- T.value = N;
3976
- const k = n(N);
3977
- J.value = a(F.value);
3978
- let d = X.value.get(k);
3979
- !d && ((G = f.value[N].children) == null ? void 0 : G.length) > 0 && (d = se(f.value[N].children)), d ? oe.setItemData(a(d)) : oe.setItemData([]), U.value = !0;
3980
- }, u = jl(() => {
3981
- const N = Yl(Qe), k = al(N).itemData.value;
3982
- return console.log("可用组件数据", k), !k || !Array.isArray(k) ? [] : k.filter((d) => {
3983
- var G;
3984
- if (d.comp === "Tabs" && T.value >= 0) {
3985
- const te = n(T.value);
3986
- if ((G = d.compData) == null ? void 0 : G.some(
3987
- (K) => {
3988
- var O;
3989
- return K.key === "stepList" && ((O = K.contents) == null ? void 0 : O.some((de) => de.id === te));
3990
- }
3991
- )) return !1;
3992
- }
3993
- return !0;
3994
- });
3995
- }), b = (N) => ({
3996
- Table: "表格",
3997
- Form: "表单",
3998
- Tabs: "标签页",
3999
- Chart: "图表",
4000
- Card: "卡片"
4001
- })[N] || N, x = (N) => {
4002
- var k;
4003
- try {
4004
- const d = a(N);
4005
- d.id = Date.now() + Math.random(), d.comp === "Tabs" && ((k = d.compData) == null || k.forEach((te) => {
4006
- te.key === "stepList" && te.contents && te.contents.forEach((D) => {
4007
- D.id = l();
4008
- });
4009
- }));
4010
- const G = a(F.value);
4011
- G.push(d), oe.setItemData(G);
4012
- } catch (d) {
4013
- console.error("添加组件失败:", d);
4014
- }
4015
- }, se = (N) => N.map((k) => {
4016
- var d;
4017
- switch (k.type) {
4018
- case "form":
4019
- return {
4020
- comp: "Form",
4021
- name: k.value || "表单",
4022
- compData: fe(k.content)
4023
- };
4024
- case "table":
4025
- return {
4026
- comp: "Table",
4027
- name: k.value || "表格",
4028
- compData: ie(k.content)
4029
- };
4030
- default:
4031
- return {
4032
- comp: "Unknown",
4033
- name: k.value || "",
4034
- compData: ((d = k.content) == null ? void 0 : d.originalData) || []
4035
- };
4036
- }
4037
- }), fe = (N) => {
4038
- if (!N) return [];
4039
- const k = [];
4040
- return N.rowContents && k.push({
4041
- key: "formContent",
4042
- contents: N.rowContents
4043
- }), N.buttonValue && k.push({
4044
- key: "formButton",
4045
- contents: N.buttonValue
4046
- }), typeof N.isEnableWrap < "u" && k.push({
4047
- key: "enableWrap",
4048
- contents: N.isEnableWrap
4049
- }), k;
4050
- }, ie = (N) => [], c = () => {
4051
- if (T.value >= 0 && T.value < f.value.length) {
4052
- const N = n(T.value);
4053
- X.value.set(N, a(F.value)), f.value[T.value].children = C(F.value), console.log("保存后的数据", C(F.value));
4054
- }
4055
- U.value = !1, T.value = -1, J.value = null, _();
4056
- }, m = () => {
4057
- J.value && oe.setItemData(a(J.value)), U.value = !1, T.value = -1, J.value = null;
4058
- }, A = () => {
4059
- U.value && m();
4060
- }, C = (N) => {
4061
- if (!Array.isArray(N))
4062
- throw new Error("sourceData must be an array");
4063
- return N.map((k, d) => {
4064
- if (!k || typeof k != "object")
4065
- return k;
4066
- const { comp: G, name: te, compData: D } = k;
4067
- switch (G) {
4068
- case "Form":
4069
- return {
4070
- type: "form",
4071
- content: $(D || []),
4072
- value: "表单"
4073
- };
4074
- case "Table":
4075
- return {
4076
- type: "table",
4077
- content: j(D || []),
4078
- value: "表格"
4079
- };
4080
- default:
4081
- return {
4082
- type: "xxx",
4083
- content: Y(D || []),
4084
- value: ""
4085
- };
4086
- }
4087
- });
4088
- }, $ = (N) => {
4089
- const k = {
4090
- formRules: {},
4091
- rowContents: [],
4092
- buttonValue: [],
4093
- rowValues: [],
4094
- isEnableWrap: !0,
4095
- isRowFlex: !0,
4096
- isButtonRow: !0,
4097
- isEdit: !0,
4098
- isStartJustify: !0
4099
- }, d = {
4100
- formContent: "rowContents",
4101
- enableWrap: "isEnableWrap",
4102
- formButton: "buttonValue"
4103
- };
4104
- return N.forEach((G, te) => {
4105
- if (!G || typeof G != "object") {
4106
- console.warn(`Invalid config at index ${te}:`, G);
4107
- return;
4108
- }
4109
- const { key: D, contents: K } = G, O = d[D];
4110
- if (!O) {
4111
- console.warn(`Unknown Form config key: ${D}`);
4112
- return;
4113
- }
4114
- D === "enableWrap" ? k[O] = !!K : k[O] = Array.isArray(K) ? K : [];
4115
- }), k;
4116
- }, j = (N) => {
4117
- const k = {
4118
- columns: [],
4119
- tableData: [],
4120
- extraButton: [],
4121
- rowButton: [],
4122
- currentPage: 0,
4123
- total: 0,
4124
- pageSize: 0,
4125
- isShowPagination: !0,
4126
- isShowEdit: !0,
4127
- isMoveColumn: !0,
4128
- isShowDelete: !0
4129
- }, d = {
4130
- header: "columns",
4131
- tableContents: "tableData"
4132
- };
4133
- return N.forEach((G, te) => {
4134
- if (!G || typeof G != "object") {
4135
- console.warn(`Invalid config at index ${te}:`, G);
4136
- return;
4137
- }
4138
- const { key: D, contents: K } = G, O = d[D];
4139
- if (!O) {
4140
- console.warn(`Unknown Table config key: ${D}`);
4141
- return;
4142
- }
4143
- k[O] = Array.isArray(K) ? K : [];
4144
- }), k;
4145
- }, Y = (N) => (console.log("Default conversion logic - to be implemented"), {
4146
- originalData: N,
4147
- processed: !1,
4148
- componentType: "unknown"
4149
- }), _ = () => {
4150
- const N = [
4151
- {
4152
- key: "stepList",
4153
- contents: f.value
4154
- }
4155
- ];
4156
- s("change", N);
4157
- };
4158
- return Ve(
4159
- () => i.itemContents,
4160
- (N) => {
4161
- if (N && N.length > 0) {
4162
- const k = N.find((d) => d.key === "stepList");
4163
- k && k.contents && (f.value = k.contents.map((d) => ({
4164
- title: d.title || "",
4165
- value: d.value || d.title || "",
4166
- label: d.label || d.title || "",
4167
- children: d.children || [],
4168
- id: d.id || l()
4169
- })));
4170
- }
4171
- },
4172
- { immediate: !0, deep: !0 }
4173
- ), (N, k) => {
4174
- const d = Te("svg-icon"), G = Te("el-input"), te = Te("el-form-item"), D = Te("el-form");
4175
- return H(), ce("div", null, [
4176
- E("div", yn, [
4177
- k[6] || (k[6] = E("h4", null, "标签页管理", -1)),
4178
- E("button", { onClick: Q }, [
4179
- z(d, {
4180
- name: "Plus",
4181
- style: { width: "14px", height: "14px", "margin-right": "4px" }
4182
- }),
4183
- k[5] || (k[5] = $e(" 新增标签页 "))
4184
- ])
4185
- ]),
4186
- E("div", bn, [
4187
- (H(!0), ce(Se, null, Fe(f.value, (K, O) => (H(), ce("div", {
4188
- class: "tab-item",
4189
- key: O
4190
- }, [
4191
- E("span", gn, ye(K.title), 1),
4192
- E("div", kn, [
4193
- E("button", {
4194
- onClick: (de) => g(O)
4195
- }, "修改标题", 8, _n),
4196
- E("button", {
4197
- onClick: (de) => r(O)
4198
- }, "布局调整", 8, Cn),
4199
- E("button", {
4200
- onClick: (de) => w(O)
4201
- }, "删除", 8, wn)
4202
- ])
4203
- ]))), 128))
4204
- ]),
4205
- z(Je, {
4206
- modelValue: S.value,
4207
- "onUpdate:modelValue": k[2] || (k[2] = (K) => S.value = K),
4208
- title: P.value,
4209
- onBeforeDestroy: k[3] || (k[3] = (K) => S.value = !1)
4210
- }, {
4211
- footer: ae(() => [
4212
- E("button", {
4213
- onClick: k[1] || (k[1] = (K) => S.value = !1)
4214
- }, "取消"),
4215
- E("button", {
4216
- type: "primary",
4217
- onClick: V
4218
- }, "确定")
4219
- ]),
4220
- default: ae(() => [
4221
- z(D, {
4222
- model: I.value,
4223
- "label-width": "80px"
4224
- }, {
4225
- default: ae(() => [
4226
- z(te, {
4227
- label: "标签名称",
4228
- required: ""
4229
- }, {
4230
- default: ae(() => [
4231
- z(G, {
4232
- modelValue: I.value.title,
4233
- "onUpdate:modelValue": k[0] || (k[0] = (K) => I.value.title = K),
4234
- placeholder: "请输入标签页名称"
4235
- }, null, 8, ["modelValue"])
4236
- ]),
4237
- _: 1
4238
- })
4239
- ]),
4240
- _: 1
4241
- }, 8, ["model"])
4242
- ]),
4243
- _: 1
4244
- }, 8, ["modelValue", "title"]),
4245
- z(Je, {
4246
- modelValue: U.value,
4247
- "onUpdate:modelValue": k[4] || (k[4] = (K) => U.value = K),
4248
- title: "布局调整",
4249
- fullScreen: "",
4250
- onBeforeDestroy: A
4251
- }, {
4252
- footer: ae(() => [
4253
- E("button", { onClick: m }, "取消"),
4254
- E("button", { onClick: c }, "确定")
4255
- ]),
4256
- default: ae(() => [
4257
- E("div", Dn, [
4258
- E("div", In, [
4259
- z(Zi),
4260
- E("div", An, [
4261
- k[8] || (k[8] = E("h5", null, "添加已有组件", -1)),
4262
- E("div", xn, [
4263
- (H(!0), ce(Se, null, Fe(u.value, (K) => (H(), ce("div", {
4264
- key: K.id,
4265
- class: "component-item",
4266
- onClick: (O) => x(K)
4267
- }, [
4268
- E("div", En, [
4269
- E("span", Bn, ye(b(K.comp)), 1),
4270
- E("span", Tn, ye(K.name), 1)
4271
- ]),
4272
- k[7] || (k[7] = E("button", { class: "add-btn" }, "添加", -1))
4273
- ], 8, $n))), 128))
4274
- ])
4275
- ])
4276
- ]),
4277
- (H(), ce("div", {
4278
- class: "model-show",
4279
- key: N.innerWidth
4280
- }, [
4281
- z(mn)
4282
- ])),
4283
- E("div", Sn, [
4284
- z(pn)
4285
- ])
4286
- ])
4287
- ]),
4288
- _: 1
4289
- }, 8, ["modelValue"])
4290
- ]);
4291
- };
4292
- }
4293
- }, On = /* @__PURE__ */ Re(Fn, [["__scopeId", "data-v-151936e8"]]), Ln = M([
4294
- {
4295
- name: "表格",
4296
- type: "table",
4297
- comp: "Table",
4298
- icon: "Table"
4299
- },
4300
- {
4301
- name: "表单",
4302
- type: "form",
4303
- comp: "Form",
4304
- icon: "Form"
4305
- },
4306
- {
4307
- name: "折叠",
4308
- type: "fold",
4309
- comp: "Fold",
4310
- icon: "Fold"
4311
- },
4312
- {
4313
- name: "头像",
4314
- type: "avatar",
4315
- comp: "AvatarUpload",
4316
- icon: "Avatar"
4317
- },
4318
- {
4319
- name: "签名",
4320
- type: "signature",
4321
- comp: "Signature",
4322
- icon: "Signature"
4323
- },
4324
- {
4325
- name: "步骤条",
4326
- type: "step",
4327
- comp: "Step",
4328
- icon: "Step"
4329
- },
4330
- {
4331
- name: "时间线",
4332
- type: "timeLine",
4333
- comp: "TimeLine",
4334
- icon: "TimeLine"
4335
- },
4336
- {
4337
- name: "标签页",
4338
- type: "tabs",
4339
- comp: "Tabs",
4340
- icon: "Tabs"
4341
- }
4342
- ]), Rn = {
4343
- TABLE: ha,
4344
- FORM: Jl,
4345
- TABLEOPERATE: Rs,
4346
- FORMOPERATE: Gl,
4347
- FOLD: pi,
4348
- CALCULATOR: bi,
4349
- METHODBUTTON: xi,
4350
- AVATARUPLOAD: Ea,
4351
- SIGNATURE: $a,
4352
- FORMTOP: Jl,
4353
- STEP: Vi,
4354
- STEPOPERATE: si,
4355
- TIMELINE: Ki,
4356
- TIMELINEOPERATE: ci,
4357
- FORMTOPOPERATE: Gl,
4358
- SIGNATUREOPERATE: Ri,
4359
- AVATARUPLOADOPERATE: Bi,
4360
- TABS: qi,
4361
- TABSOPERATE: On
4362
- // 添加其他组件...
4363
- };
4364
- function Ul(p) {
4365
- return Rn[p == null ? void 0 : p.toUpperCase()] || null;
4366
- }
4367
- export {
4368
- qn as a,
4369
- Nl as b,
4370
- Ul as g,
4371
- Ln as s,
4372
- Sa as u
4373
- };