ss-component-new 1.1.259 → 1.1.261

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 (89) hide show
  1. package/dist/{array-BAR5vwN7.js → array-BKq3BIQz.js} +2 -2
  2. package/dist/{array-8L1AOBQp.cjs → array-CGcjUVKX.cjs} +1 -1
  3. package/dist/{cloneDeep-vy5d0U00.cjs → cloneDeep-B7uQBoFQ.cjs} +1 -1
  4. package/dist/{cloneDeep-DZzy1Il4.js → cloneDeep-C2Kxf4cz.js} +1 -1
  5. package/dist/{index-C-9bL2-I.cjs → index-1FDUIkCX.cjs} +1 -1
  6. package/dist/{index-DKiauCvh.js → index-B-UH_ubV.js} +8 -8
  7. package/dist/{index-TCyNl2MK.js → index-B2U6bRXC.js} +1 -1
  8. package/dist/{index-DVDdSL2R.js → index-B5JYLkwE.js} +984 -941
  9. package/dist/{index-B4Ev6tVX.cjs → index-BDeQhlHq.cjs} +1 -1
  10. package/dist/{index-7ptGWZXL.cjs → index-BEMqiaE4.cjs} +1 -1
  11. package/dist/{index-C4heMZb-.js → index-BEUHy5vT.js} +5 -5
  12. package/dist/{index-CG19P4G2.cjs → index-BKkSFReI.cjs} +1 -1
  13. package/dist/{index-C8YTwQ2U.cjs → index-BNRMWt2X.cjs} +1 -1
  14. package/dist/{index-DHZhHL1L.js → index-BPDeDTcT.js} +8 -8
  15. package/dist/{index-rAGiNKLH.cjs → index-BPc4Eac7.cjs} +1 -1
  16. package/dist/{index-D5VxsSYo.cjs → index-BSHYuItV.cjs} +1 -1
  17. package/dist/index-BSvAtDik.js +32149 -0
  18. package/dist/{index-B0eP9Dy6.cjs → index-BTE2McnW.cjs} +1 -1
  19. package/dist/{index-CP5-LufC.js → index-BXTWkSfY.js} +3 -3
  20. package/dist/{index-CPKoBUqk.cjs → index-BePWixJ7.cjs} +1 -1
  21. package/dist/{index-DlDk8iSi.js → index-BpRK84YO.js} +9 -9
  22. package/dist/{index-Bi7W_wF3.cjs → index-BqjnsqxM.cjs} +1 -1
  23. package/dist/{index-B_CuXQ8H.js → index-BuzU8y87.js} +3 -3
  24. package/dist/index-BxNkT68g.js +271 -0
  25. package/dist/{index-ChOzMlwd.cjs → index-C4WiBNX7.cjs} +1 -1
  26. package/dist/{index-CvyNoFpY.cjs → index-C99sTbLR.cjs} +1 -1
  27. package/dist/{index-D2NWcpdI.cjs → index-CPLQkq0l.cjs} +1 -1
  28. package/dist/{index-DBROy8Np.js → index-CRA36cu_.js} +4 -4
  29. package/dist/{index-BPVoFxu1.js → index-CUS5J9_e.js} +3 -3
  30. package/dist/{index-DfzZvWqB.cjs → index-CU_Jx-5J.cjs} +1 -1
  31. package/dist/{index-Cn8hBlVR.js → index-CV8NL82B.js} +1 -1
  32. package/dist/index-CW3K0wJl.cjs +1 -0
  33. package/dist/index-CaEGsvtY.cjs +1 -0
  34. package/dist/{index-dEcwBSrA.cjs → index-CbAVZYKT.cjs} +1 -1
  35. package/dist/{index-CO8isUR8.js → index-CcWrPjiF.js} +1 -1
  36. package/dist/{index-CEU_-vVQ.cjs → index-CdbyfD9T.cjs} +1 -1
  37. package/dist/{index-DchO-l9M.cjs → index-ChDUVY4O.cjs} +1 -1
  38. package/dist/{index-3YXTNfHi.cjs → index-ChrvsNKe.cjs} +1 -1
  39. package/dist/{index-DZK00p0U.cjs → index-Clc0UQZs.cjs} +1 -1
  40. package/dist/index-CrY9cebv.cjs +1 -0
  41. package/dist/{index-VEeZQyiv.js → index-CtNApXqx.js} +1 -1
  42. package/dist/{index-C0KdYFnu.cjs → index-D5iqPx4_.cjs} +1 -1
  43. package/dist/{index-BZW3cHEf.js → index-DBUg3cD4.js} +5 -5
  44. package/dist/{index-C67E6B-n.cjs → index-DJXxlOVw.cjs} +1 -1
  45. package/dist/{index-CcbQH9dl.js → index-DJt9epxc.js} +3 -3
  46. package/dist/{index-BMz8jBkf.js → index-DMxFp_J8.js} +7 -7
  47. package/dist/{index-D2ZusKzk.js → index-DSHdwrIv.js} +4 -4
  48. package/dist/{index-Ci50GJSS.js → index-DiqIaffC.js} +6 -6
  49. package/dist/index-DqW6UiIO.cjs +3839 -0
  50. package/dist/{index-C2rXdvLP.js → index-Dqq6ANsR.js} +1 -1
  51. package/dist/{index-DSOsbQ8m.js → index-DrgtDDgh.js} +1 -1
  52. package/dist/index-Dz-F31F9.js +3475 -0
  53. package/dist/{index-MAuxykeu.js → index-JlAZlJSa.js} +6 -6
  54. package/dist/index-LztiiC8W.js +683 -0
  55. package/dist/{index-vS7rFC3d.js → index-P8qnw1yi.js} +5 -5
  56. package/dist/{index-D9qxwyPB.cjs → index-SuPnthkA.cjs} +1 -1
  57. package/dist/{index-CaZgwKKu.cjs → index-XGNOqMia.cjs} +1 -1
  58. package/dist/{index-_lrJ_Z3S.js → index-i7I_BwC_.js} +4 -4
  59. package/dist/{index-0Rbq0r0Y.js → index-k1B4X854.js} +4 -4
  60. package/dist/index-kzgPDfJF.cjs +9 -0
  61. package/dist/{index.vue_vue_type_script_setup_true_lang-t_FbjOts.cjs → index.vue_vue_type_script_setup_true_lang-CsELnqsB.cjs} +1 -1
  62. package/dist/{index.vue_vue_type_script_setup_true_lang-CvTBmGDC.js → index.vue_vue_type_script_setup_true_lang-GU5YecI_.js} +1 -1
  63. package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-BPrVtCUd.cjs → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-CiQLJOHK.cjs} +1 -1
  64. package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-qsAIigHk.js → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-HXVPBHSR.js} +6 -6
  65. package/dist/{index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-CdoqwUjR.js → index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-BP1ltJdK.js} +12 -12
  66. package/dist/{index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-BQgHk7jY.cjs → index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-Dhxd_sQH.cjs} +1 -1
  67. package/dist/{login-B2FvC181.cjs → login-MRZ_aZ2l.cjs} +1 -1
  68. package/dist/{login-CN3w9WCz.js → login-f0ZOWhgZ.js} +2 -2
  69. package/dist/{main-BDgkyynt.js → main-CD7tAcIb.js} +7 -7
  70. package/dist/{main-DRa5LCF9.cjs → main-CpGTA5Qv.cjs} +1 -1
  71. package/dist/{menu-DjHQN1B-.cjs → menu-PjSpUL7w.cjs} +1 -1
  72. package/dist/{menu-B10MAns7.js → menu-uQv0bEzE.js} +1 -1
  73. package/dist/{modelComp-KS7VRV8A.js → modelComp-BavIqTd8.js} +1 -1
  74. package/dist/{modelComp-DqpOIkHs.cjs → modelComp-qapurFEA.cjs} +1 -1
  75. package/dist/ss-component.cjs +1 -1
  76. package/dist/ss-component.css +1 -1
  77. package/dist/ss-component.js +7 -7
  78. package/dist/ss-component3.cjs +1 -1
  79. package/dist/ss-component3.js +1 -1
  80. package/package.json +2 -1
  81. package/dist/index-B69DGyLH.js +0 -264
  82. package/dist/index-B8XOc8ur.js +0 -673
  83. package/dist/index-BG7PNsqD.js +0 -22139
  84. package/dist/index-C-lzYeWw.cjs +0 -3832
  85. package/dist/index-CS8aeX_B.cjs +0 -1
  86. package/dist/index-CkaXBiAY.cjs +0 -1
  87. package/dist/index-DjZKWUq4.cjs +0 -1
  88. package/dist/index-DzzEJh49.cjs +0 -9
  89. package/dist/index-_eZMZ6DS.js +0 -3459
@@ -0,0 +1,3475 @@
1
+ import { u as bl, g as Cl, m as gl, s as kl } from "./index-BSvAtDik.js";
2
+ import { ref as B, watch as Ce, createElementBlock as W, openBlock as A, createBlock as pe, resolveComponent as fe, createVNode as N, Fragment as ve, renderList as he, createElementVNode as i, createCommentVNode as Oe, toDisplayString as q, withCtx as ee, defineComponent as ze, reactive as el, createTextVNode as Ue, resolveDynamicComponent as Je, computed as tl, renderSlot as He, createSlots as _l, mergeProps as wl, unref as xl, normalizeStyle as Il, withModifiers as Ke } from "vue";
3
+ import { p as Pe } from "./index-DrgtDDgh.js";
4
+ import { F as sl, a as xe, s as Ie, g as Dl, b as cl, c as be, f as qe, m as Ye, d as Ge, e as Ze, h as $l, i as Tl, _ as El } from "./index-B5JYLkwE.js";
5
+ import { e as ll, s as Me, E as Ne, g as il, f as Bl } from "./menu-uQv0bEzE.js";
6
+ import { _ as ye } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
+ import { c as h } from "./cloneDeep-C2Kxf4cz.js";
8
+ import { E as je } from "./index-BXTWkSfY.js";
9
+ import { u as Fl } from "./modelComp-BavIqTd8.js";
10
+ import { s as Al, a as Ol } from "./index-i7I_BwC_.js";
11
+ import Ll from "./index-CZtXRS3l.js";
12
+ const Sl = (y) => y.match(/\((.*)\)/)[1], Vl = ll("formComp", {
13
+ state: () => ({
14
+ objUrl: ""
15
+ }),
16
+ actions: {
17
+ setObjUrl(y) {
18
+ this.objUrl = y;
19
+ }
20
+ }
21
+ }), Rl = { class: "form-content" }, Nl = {
22
+ __name: "index",
23
+ props: {
24
+ formRules: Object,
25
+ itemData: {
26
+ type: Array,
27
+ default: () => []
28
+ },
29
+ childItemData: {
30
+ type: Array,
31
+ default: () => []
32
+ },
33
+ index: Number
34
+ },
35
+ emits: ["change", "contentChange"],
36
+ setup(y, { emit: F }) {
37
+ const d = y, a = F, p = B([]), C = B(!1), V = B([]), v = bl(Pe), $ = Vl(Pe), k = B(!1), _ = B(), z = (L) => {
38
+ var w, e, l, n;
39
+ const E = (e = (w = h(d.itemData)) == null ? void 0 : w.find((u) => (u == null ? void 0 : u.key) === "formContent")) == null ? void 0 : e.contents, O = h(L.content);
40
+ let t = {};
41
+ O && ((l = Object.values(O)) == null ? void 0 : l.length) > 0 && ((n = Object.values(O)) == null || n.forEach((u, j) => {
42
+ t[E[j].key] = u;
43
+ }));
44
+ const c = {
45
+ content: t,
46
+ index: d == null ? void 0 : d.index,
47
+ buttonName: L == null ? void 0 : L.buttonName
48
+ };
49
+ a("change", c);
50
+ }, R = (L) => {
51
+ var t, c;
52
+ if (!L) return;
53
+ if (((t = Object.values(h(L))) == null ? void 0 : t.length) > 0) {
54
+ const w = (c = Object.values(h(L))) == null ? void 0 : c.map((l) => l);
55
+ let e = "";
56
+ w == null || w.forEach((l) => {
57
+ l !== "" && l !== void 0 && (e = e === "" ? l : e + "/" + l);
58
+ }), v.setSelectArray(w), v.setSelectString(e);
59
+ }
60
+ const E = h(d.itemData), O = E == null ? void 0 : E.map((w) => {
61
+ var e;
62
+ return (w == null ? void 0 : w.key) === "formContent" && ((e = w.contents) == null || e.map((l, n) => {
63
+ var u, j, S, M, re, te, s, x, T, b, G, ne, D, g, oe, X, ce, ge, ke, P;
64
+ return l.type = l != null && l.type ? l.type : (M = (S = (j = (u = l == null ? void 0 : l.key) == null ? void 0 : u.split("$")) == null ? void 0 : j[1]) == null ? void 0 : S.split("(")) != null && M[0] ? (te = (re = sl) == null ? void 0 : re.find((ae) => {
65
+ var Q, ue, _e, de;
66
+ return (ae == null ? void 0 : ae.key) === ((de = (_e = (ue = (Q = l == null ? void 0 : l.key) == null ? void 0 : Q.split("$")) == null ? void 0 : ue[1]) == null ? void 0 : _e.split("(")) == null ? void 0 : de[0]);
67
+ })) == null ? void 0 : te.value : "Input", l.options = l != null && l.options ? l.options : ((T = (x = (s = l == null ? void 0 : l.key) == null ? void 0 : s.split("$")) == null ? void 0 : x[1]) == null ? void 0 : T.length) > 0 ? (D = (ne = Sl((G = (b = l == null ? void 0 : l.key) == null ? void 0 : b.split("$")) == null ? void 0 : G[1])) == null ? void 0 : ne.split(",")) == null ? void 0 : D.map((ae) => ({
68
+ label: ae,
69
+ value: ae
70
+ })) : [], (g = l == null ? void 0 : l.key) != null && g.includes("$") && (l.key = (X = (oe = l == null ? void 0 : l.key) == null ? void 0 : oe.split("$")) == null ? void 0 : X[0]), l.value = Array.isArray((ce = Object.values(L)) == null ? void 0 : ce[n]) ? (ke = (ge = Object.values(L)) == null ? void 0 : ge[n]) == null ? void 0 : ke[0] : (P = Object.values(L)) == null ? void 0 : P[n], l;
71
+ })), w;
72
+ });
73
+ a("contentChange", {
74
+ contents: O,
75
+ index: d.index
76
+ });
77
+ };
78
+ return Ce(
79
+ () => d.itemData,
80
+ async () => {
81
+ var w, e, l, n, u, j, S, M, re, te, s, x;
82
+ const L = (w = h(d.itemData)) == null ? void 0 : w.find((T) => (T == null ? void 0 : T.key) === "formContent"), E = (e = h(d.itemData)) == null ? void 0 : e.find((T) => (T == null ? void 0 : T.key) === "formButton"), O = (l = h(d.itemData)) == null ? void 0 : l.find((T) => (T == null ? void 0 : T.key) === "formFlex"), t = (n = h(d.itemData)) == null ? void 0 : n.find((T) => (T == null ? void 0 : T.key) === "formWrap"), c = (u = h(d.itemData)) == null ? void 0 : u.find((T) => (T == null ? void 0 : T.key) === "enableWrap");
83
+ if ((t == null ? void 0 : t.contents) === "纵向" ? C.value = !1 : C.value = !0, k.value = (c == null ? void 0 : c.contents) === void 0 ? !1 : c == null ? void 0 : c.contents, _.value = typeof (O == null ? void 0 : O.contents) != "boolean" ? !(!(O != null && O.contents) === "" || ((j = O == null ? void 0 : O.contents) == null ? void 0 : j.toUpperCase()) === "VERTICAL") : O == null ? void 0 : O.contents, ((S = L == null ? void 0 : L.contents) == null ? void 0 : S.length) > 0 && Array.isArray(L == null ? void 0 : L.contents)) {
84
+ const T = [];
85
+ await ((M = L == null ? void 0 : L.contents) == null ? void 0 : M.forEach(async (D, g) => {
86
+ var oe, X, ce, ge, ke, P, ae, Q, ue, _e, de, Ee;
87
+ if ((D == null ? void 0 : D.label) !== "") {
88
+ let se = (D == null ? void 0 : D.label) ?? (D == null ? void 0 : D.key) ?? "", We = (D == null ? void 0 : D.type) ?? "", Be = (D == null ? void 0 : D.options) ?? [];
89
+ if ((oe = D == null ? void 0 : D.key) != null && oe.includes("$") && (se = (X = h(D == null ? void 0 : D.key).split("$")) == null ? void 0 : X[0], ((ge = (ce = h(D == null ? void 0 : D.key).split("$")) == null ? void 0 : ce[1]) == null ? void 0 : ge.length) > 0)) {
90
+ const [o, r] = (P = (ke = h(D == null ? void 0 : D.key).split("$")) == null ? void 0 : ke[1]) == null ? void 0 : P.split(/[()]/);
91
+ We = ((ae = sl.find((m) => (m == null ? void 0 : m.key) === o)) == null ? void 0 : ae.value) ?? "", ((Q = r == null ? void 0 : r.split(",")) == null ? void 0 : Q.length) > 0 && (Be = (ue = r == null ? void 0 : r.split(",")) == null ? void 0 : ue.map((m) => ({
92
+ label: m,
93
+ value: m
94
+ })));
95
+ }
96
+ let Se = [];
97
+ D != null && D.contents && !Array.isArray(D == null ? void 0 : D.contents) && ((de = (_e = D == null ? void 0 : D.contents) == null ? void 0 : _e.split(",")) == null || de.map((o) => ({
98
+ label: o,
99
+ value: o
100
+ }))), T.push({
101
+ label: se ?? "",
102
+ name: "t" + g,
103
+ type: We === "" ? "Input" : We,
104
+ value: D != null && D.originalContent && (D == null ? void 0 : D.originalContent) !== "" ? D.originalContent : D != null && D.value ? D.value : (Be == null ? void 0 : Be.length) > 0 ? (Ee = Be == null ? void 0 : Be[0]) == null ? void 0 : Ee.value : (D == null ? void 0 : D.value) ?? "",
105
+ id: (D == null ? void 0 : D.id) ?? g,
106
+ contents: (Se == null ? void 0 : Se.length) > 0 ? Se : Be ?? [],
107
+ width: (D == null ? void 0 : D.width) ?? 1,
108
+ config: D == null ? void 0 : D.config,
109
+ optionUrl: D
110
+ });
111
+ }
112
+ }));
113
+ const b = (re = h(T)) == null ? void 0 : re.map((D) => D.value);
114
+ let G = "";
115
+ b == null || b.forEach((D) => {
116
+ D !== "" && D !== void 0 && (G = G === "" ? D : G + "/" + D);
117
+ }), v.setSelectArray(b), v.setSelectString(G), p.value = T;
118
+ let ne = "";
119
+ (te = h(p.value)) == null || te.forEach((D) => {
120
+ var g;
121
+ (g = D == null ? void 0 : D.value) != null && g.includes(".obj") && (ne = D == null ? void 0 : D.value);
122
+ }), ne !== "" && $.setObjUrl(ne);
123
+ } else
124
+ p.value = [];
125
+ if (((s = E == null ? void 0 : E.contents) == null ? void 0 : s.length) > 0) {
126
+ const T = [];
127
+ (x = E == null ? void 0 : E.contents) == null || x.forEach((b, G) => {
128
+ (b == null ? void 0 : b.label) !== "" && T.push({
129
+ label: (b == null ? void 0 : b.label) ?? "",
130
+ id: (b == null ? void 0 : b.id) ?? G,
131
+ type: (b == null ? void 0 : b.type) ?? "",
132
+ background: b == null ? void 0 : b.background
133
+ });
134
+ }), V.value = T;
135
+ } else
136
+ V.value = [];
137
+ },
138
+ { deep: !0, immediate: !0 }
139
+ ), (L, E) => (A(), W("div", Rl, [
140
+ (A(), pe(xe, {
141
+ rowContents: p.value,
142
+ formRules: y.formRules,
143
+ buttonValue: V.value,
144
+ isRowFlex: _.value,
145
+ isEnableWrap: k.value,
146
+ onOnButtonClick: z,
147
+ onChange: R,
148
+ isButtonRow: C.value,
149
+ key: d.itemData
150
+ }, null, 8, ["rowContents", "formRules", "buttonValue", "isRowFlex", "isEnableWrap", "isButtonRow"]))
151
+ ]));
152
+ }
153
+ }, ul = /* @__PURE__ */ ye(Nl, [["__scopeId", "data-v-c4dd1502"]]), Qe = B(0), dl = (y) => {
154
+ var F;
155
+ return !y || (y == null ? void 0 : y.length) === 0 ? [] : (F = h(y)) == null ? void 0 : F.map((a) => (Qe.value++, a = {
156
+ label: (a == null ? void 0 : a.label) ?? "",
157
+ prop: (a == null ? void 0 : a.label) === "操作" ? "operate" : a == null ? void 0 : a.prop,
158
+ width: a != null && a.width ? parseInt(a.width) : "",
159
+ fixed: (a == null ? void 0 : a.fixed) ?? void 0,
160
+ sortable: (a == null ? void 0 : a.sortable) ?? !1,
161
+ align: (a == null ? void 0 : a.align) ?? "center",
162
+ showOverflowTooltip: (a == null ? void 0 : a.showOverflowTooltip) ?? !0,
163
+ isNotDrag: (a == null ? void 0 : a.isNotDrag) ?? !1,
164
+ isEditCol: (a == null ? void 0 : a.isEditCol) ?? !1,
165
+ isOperate: (a == null ? void 0 : a.isOperate) ?? !1,
166
+ id: (a == null ? void 0 : a.id) ?? Qe.value,
167
+ children: dl(a == null ? void 0 : a.children)
168
+ }, a));
169
+ }, jl = (y) => {
170
+ var d;
171
+ return (d = h(y)) == null ? void 0 : d.map((a) => (Qe.value++, a = {
172
+ label: (a == null ? void 0 : a.label) ?? "",
173
+ prop: (a == null ? void 0 : a.label) === "操作" ? "operate" : a == null ? void 0 : a.prop,
174
+ width: a != null && a.width ? parseInt(a.width) : "",
175
+ fixed: (a == null ? void 0 : a.fixed) ?? void 0,
176
+ sortable: (a == null ? void 0 : a.sortable) ?? !1,
177
+ align: (a == null ? void 0 : a.align) ?? "center",
178
+ showOverflowTooltip: (a == null ? void 0 : a.showOverflowTooltip) ?? !0,
179
+ isNotDrag: (a == null ? void 0 : a.isNotDrag) ?? !1,
180
+ isEditCol: (a == null ? void 0 : a.isEditCol) ?? !1,
181
+ isOperate: (a == null ? void 0 : a.isOperate) ?? !1,
182
+ id: (a == null ? void 0 : a.id) ?? Qe.value,
183
+ children: dl(a == null ? void 0 : a.children)
184
+ }, a));
185
+ }, vl = (y, F) => {
186
+ var d;
187
+ return y != null && y.find((a) => (a == null ? void 0 : a.id) === F) ? (d = h(y)) == null ? void 0 : d.filter((p) => (p == null ? void 0 : p.id) !== F) : (y = y == null ? void 0 : y.map((a) => (a.children = vl(a == null ? void 0 : a.children, F), a)), y);
188
+ }, pl = (y, F) => {
189
+ var d;
190
+ return y != null && y.find((a) => (a == null ? void 0 : a.id) === (F == null ? void 0 : F.id)) ? (d = h(y)) == null ? void 0 : d.map((p) => ((p == null ? void 0 : p.id) === (F == null ? void 0 : F.id) && (p = F), p)) : (y = y == null ? void 0 : y.map((a) => (a.children = pl(a == null ? void 0 : a.children, F), a)), y);
191
+ }, fl = (y, F) => {
192
+ var d;
193
+ return y != null && y.find((a) => {
194
+ var p;
195
+ return (a == null ? void 0 : a.id) === ((p = F == null ? void 0 : F.contents) == null ? void 0 : p.id);
196
+ }) ? (d = h(y)) == null ? void 0 : d.map((p) => {
197
+ var C;
198
+ return (p == null ? void 0 : p.id) === ((C = F == null ? void 0 : F.contents) == null ? void 0 : C.id) && (p = F == null ? void 0 : F.contents), p;
199
+ }) : (y = y == null ? void 0 : y.map((a) => (a.children = fl(a == null ? void 0 : a.children, F), a)), y);
200
+ }, hl = (y, F) => {
201
+ var d;
202
+ return y != null && y.find((a) => (a == null ? void 0 : a.id) === (F == null ? void 0 : F.id)) ? (d = h(y)) == null ? void 0 : d.map((p) => ((p == null ? void 0 : p.id) === (F == null ? void 0 : F.id) && (p != null && p.children || (p.children = []), p.children.push(F.contents)), p)) : (y = y == null ? void 0 : y.map((a) => (a.children = hl(a == null ? void 0 : a.children, F), a)), y);
203
+ }, le = [
204
+ {
205
+ key: "label",
206
+ label: "标签名",
207
+ type: "Input"
208
+ },
209
+ {
210
+ key: "prop",
211
+ label: "属性名",
212
+ type: "Input"
213
+ },
214
+ {
215
+ key: "width",
216
+ label: "宽度",
217
+ type: "Input"
218
+ },
219
+ {
220
+ key: "sortable",
221
+ label: "是否支持排序",
222
+ type: "Switch"
223
+ },
224
+ {
225
+ key: "align",
226
+ label: "文本所在位置",
227
+ type: "Radio",
228
+ options: [
229
+ {
230
+ label: "left",
231
+ value: "左"
232
+ },
233
+ {
234
+ label: "center",
235
+ value: "中"
236
+ },
237
+ {
238
+ label: "right",
239
+ value: "右"
240
+ }
241
+ ]
242
+ },
243
+ {
244
+ key: "fixed",
245
+ label: "是否固定列",
246
+ type: "Switch"
247
+ }
248
+ ], Ul = [
249
+ {
250
+ label: "view",
251
+ value: "查看"
252
+ },
253
+ {
254
+ label: "fix",
255
+ value: "修改"
256
+ },
257
+ {
258
+ label: "delete",
259
+ value: "删除"
260
+ }
261
+ ], Pl = [
262
+ {
263
+ label: "add",
264
+ value: "新增"
265
+ }
266
+ ], Ve = [
267
+ {
268
+ key: "label",
269
+ label: "按钮名",
270
+ type: "Input"
271
+ },
272
+ {
273
+ key: "type",
274
+ label: "类型",
275
+ type: "Select",
276
+ options: Pl
277
+ },
278
+ {
279
+ key: "background",
280
+ label: "按钮背景色",
281
+ type: "Color"
282
+ }
283
+ ], Re = [
284
+ {
285
+ key: "label",
286
+ label: "按钮名",
287
+ type: "Input"
288
+ },
289
+ {
290
+ key: "type",
291
+ label: "类型",
292
+ type: "Select",
293
+ options: Ul
294
+ },
295
+ {
296
+ key: "textColor",
297
+ label: "按钮颜色",
298
+ type: "Color"
299
+ }
300
+ ], ml = ll("modelTableComp", {
301
+ state: () => ({
302
+ tableIndex: 0
303
+ }),
304
+ actions: {
305
+ setTableIndex(y) {
306
+ this.tableIndex = y;
307
+ }
308
+ }
309
+ }), Wl = { class: "table-header-child" }, zl = { class: "table-header-child-main" }, Ml = { class: "table-header-child-content" }, Kl = { class: "table-header-child-content-item" }, Gl = { class: "fix-button" }, Jl = { key: 0 }, ql = { class: "form-content" }, Hl = {
310
+ __name: "tableNewChild",
311
+ props: {
312
+ tableChildContents: Array
313
+ },
314
+ emits: ["fixChange", "deleteChange"],
315
+ setup(y, { emit: F }) {
316
+ const d = y, a = F, p = B(!1), C = B(""), V = ml(Pe), { tableIndex: v } = Me(V);
317
+ B(0);
318
+ const $ = B(""), k = B([]), _ = B([]), z = (e) => {
319
+ var n;
320
+ p.value = !0;
321
+ let l = [];
322
+ le == null || le.forEach((u) => {
323
+ let j = h(v.value) + 1;
324
+ V.setTableIndex(j), l.push({
325
+ label: u == null ? void 0 : u.label,
326
+ name: u == null ? void 0 : u.label,
327
+ type: u.type,
328
+ value: e[u.key],
329
+ id: v.value,
330
+ contents: u == null ? void 0 : u.options
331
+ });
332
+ }), e != null && e.children && ((n = e == null ? void 0 : e.children) == null ? void 0 : n.length) > 0 && l.push({
333
+ children: e == null ? void 0 : e.children,
334
+ isFormColHidden: !0
335
+ }), $.value = e == null ? void 0 : e.id, k.value = l, _.value = l;
336
+ }, R = (e) => {
337
+ a("fixChange", h(e));
338
+ }, L = (e) => {
339
+ a("deleteChange", h(e));
340
+ }, E = (e) => {
341
+ p.value = !0;
342
+ let l = [];
343
+ le == null || le.forEach((n) => {
344
+ let u = h(v.value) + 1;
345
+ V.setTableIndex(u), l.push({
346
+ label: n == null ? void 0 : n.label,
347
+ name: n == null ? void 0 : n.label,
348
+ type: n.type,
349
+ value: "",
350
+ id: v.value,
351
+ contents: n == null ? void 0 : n.options
352
+ });
353
+ }), C.value = e == null ? void 0 : e.id, k.value = l, _.value = l;
354
+ }, O = (e) => {
355
+ let l = h(_.value);
356
+ l = l == null ? void 0 : l.map((n) => (n.children || (n.value = e == null ? void 0 : e[n.name]), n)), _.value = l;
357
+ }, t = () => {
358
+ var l, n;
359
+ k.value = _.value;
360
+ let e = {};
361
+ if ($.value !== "")
362
+ e.id = $.value, (l = k.value) == null || l.forEach((u) => {
363
+ const j = le == null ? void 0 : le.find((S) => (S == null ? void 0 : S.label) === (u == null ? void 0 : u.label));
364
+ j ? e[j.key] = u.value : u != null && u.children && u.children.length > 0 && (e.children = u.children);
365
+ }), p.value = !1, a("fixChange", {
366
+ contents: h(e),
367
+ id: C.value,
368
+ type: "fix"
369
+ });
370
+ else {
371
+ let u = h(v.value) + 1;
372
+ V.setTableIndex(u), e.id = "id" + v.value, (n = k.value) == null || n.forEach((j) => {
373
+ const S = le == null ? void 0 : le.find((M) => (M == null ? void 0 : M.label) === (j == null ? void 0 : j.label));
374
+ S ? e[S.key] = j.value : j != null && j.children && j.children.length > 0 && (e.children = j.children);
375
+ }), p.value = !1, a("fixChange", {
376
+ contents: h(e),
377
+ id: C.value,
378
+ type: "add"
379
+ });
380
+ }
381
+ $.value = "", k.value = [], _.value = [];
382
+ }, c = () => {
383
+ p.value = !1, $.value = "", C.value = "", k.value = [], _.value = [];
384
+ }, w = (e) => {
385
+ je.confirm("是否确认要删除", "", {
386
+ confirmButtonText: "确认",
387
+ cancelButtonText: "取消",
388
+ type: "warning"
389
+ }).then(
390
+ () => {
391
+ a("deleteChange", e), Ne({
392
+ type: "success",
393
+ message: "删除成功"
394
+ });
395
+ }
396
+ ).catch(() => {
397
+ });
398
+ };
399
+ return (e, l) => {
400
+ const n = fe("svg-icon");
401
+ return A(), W("div", Wl, [
402
+ (A(!0), W(ve, null, he(d == null ? void 0 : d.tableChildContents, (u, j) => (A(), W("div", zl, [
403
+ i("div", Ml, [
404
+ i("div", Kl, q(u.label), 1),
405
+ i("div", Gl, [
406
+ N(n, {
407
+ name: "ChildAdd",
408
+ class: "svg-icon-content",
409
+ style: { width: "24px", height: "24px" },
410
+ onClick: (S) => E(u)
411
+ }, null, 8, ["onClick"]),
412
+ N(n, {
413
+ name: "ChildFix",
414
+ class: "svg-icon-content",
415
+ style: { width: "24px", height: "24px" },
416
+ onClick: (S) => z(u)
417
+ }, null, 8, ["onClick"]),
418
+ N(n, {
419
+ name: "ChildDelete",
420
+ class: "svg-icon-content",
421
+ style: { width: "24px", height: "24px" },
422
+ onClick: (S) => w(u)
423
+ }, null, 8, ["onClick"])
424
+ ])
425
+ ]),
426
+ u != null && u.children && u.children.length > 0 ? (A(), W("div", Jl, [
427
+ N(yl, {
428
+ tableChildContents: u == null ? void 0 : u.children,
429
+ onDeleteChange: L,
430
+ onFixChange: R
431
+ }, null, 8, ["tableChildContents"])
432
+ ])) : Oe("", !0)
433
+ ]))), 256)),
434
+ N(Ie, {
435
+ visible: p.value,
436
+ onBeforeDestroy: c,
437
+ width: 840
438
+ }, {
439
+ default: ee(() => [
440
+ i("div", ql, [
441
+ (A(), pe(xe, {
442
+ rowContents: k.value,
443
+ key: k.value,
444
+ isEnableWrap: !0,
445
+ onChange: O
446
+ }, null, 8, ["rowContents"]))
447
+ ])
448
+ ]),
449
+ footer: ee(() => [
450
+ i("div", { class: "dialog-footer" }, [
451
+ i("div", {
452
+ onClick: c,
453
+ class: "cancel-button button"
454
+ }, q("取消")),
455
+ i("div", {
456
+ class: "ok-button button",
457
+ onClick: t
458
+ }, q("确认"))
459
+ ])
460
+ ]),
461
+ _: 1
462
+ }, 8, ["visible"])
463
+ ]);
464
+ };
465
+ }
466
+ }, Ql = /* @__PURE__ */ ye(Hl, [["__scopeId", "data-v-e0fef72d"]]), Xl = { class: "table-header-child" }, Yl = { class: "table-header-child-main" }, Zl = { class: "table-header-child-content" }, ea = { class: "table-header-child-content-item" }, la = { class: "fix-button" }, aa = { key: 0 }, na = { class: "form-content" }, oa = {
467
+ __name: "tableChildren",
468
+ props: {
469
+ tableChildContents: Array
470
+ },
471
+ emits: ["fixChange", "deleteChange"],
472
+ setup(y, { emit: F }) {
473
+ const d = y, a = F, p = B(!1), C = B(""), V = ml(Pe), { tableIndex: v } = Me(V), $ = B(""), k = B([]), _ = B([]), z = (e) => {
474
+ a("fixChange", h(e));
475
+ }, R = (e) => {
476
+ var n;
477
+ p.value = !0;
478
+ let l = [];
479
+ le == null || le.forEach((u) => {
480
+ let j = h(v.value) + 1;
481
+ V.setTableIndex(j), l.push({
482
+ label: u == null ? void 0 : u.label,
483
+ name: u == null ? void 0 : u.label,
484
+ type: u.type,
485
+ value: e[u.key],
486
+ id: v.value,
487
+ contents: u == null ? void 0 : u.options
488
+ });
489
+ }), e != null && e.children && ((n = e == null ? void 0 : e.children) == null ? void 0 : n.length) > 0 && l.push({
490
+ children: e == null ? void 0 : e.children,
491
+ isFormColHidden: !0
492
+ }), $.value = e == null ? void 0 : e.id, k.value = l, _.value = l;
493
+ }, L = (e) => {
494
+ p.value = !0;
495
+ let l = [];
496
+ le == null || le.forEach((n) => {
497
+ let u = h(v.value) + 1;
498
+ V.setTableIndex(u), l.push({
499
+ label: n == null ? void 0 : n.label,
500
+ name: n == null ? void 0 : n.label,
501
+ type: n.type,
502
+ value: "",
503
+ id: v.value,
504
+ contents: n == null ? void 0 : n.options
505
+ });
506
+ }), C.value = e == null ? void 0 : e.id, k.value = l, _.value = l;
507
+ }, E = (e) => {
508
+ let l = h(_.value);
509
+ l = l == null ? void 0 : l.map((n) => (n.children || (n.value = e == null ? void 0 : e[n.name]), n)), _.value = l;
510
+ }, O = () => {
511
+ var l, n;
512
+ k.value = _.value;
513
+ let e = {};
514
+ if ($.value !== "")
515
+ e.id = $.value, (l = k.value) == null || l.forEach((u) => {
516
+ const j = le == null ? void 0 : le.find((S) => (S == null ? void 0 : S.label) === (u == null ? void 0 : u.label));
517
+ j ? e[j.key] = u.value : u != null && u.children && u.children.length > 0 && (e.children = u.children);
518
+ }), p.value = !1, a("fixChange", {
519
+ contents: h(e),
520
+ id: C.value,
521
+ type: "fix"
522
+ });
523
+ else {
524
+ let u = h(v.value) + 1;
525
+ V.setTableIndex(u), e.id = "idChild" + v.value, (n = k.value) == null || n.forEach((j) => {
526
+ const S = le == null ? void 0 : le.find((M) => (M == null ? void 0 : M.label) === (j == null ? void 0 : j.label));
527
+ S ? e[S.key] = j.value : j != null && j.children && j.children.length > 0 && (e.children = j.children);
528
+ }), p.value = !1, a("fixChange", {
529
+ contents: h(e),
530
+ id: C.value,
531
+ type: "add"
532
+ });
533
+ }
534
+ $.value = "", k.value = [], _.value = [];
535
+ }, t = () => {
536
+ p.value = !1, $.value = "", C.value = "", k.value = [], _.value = [];
537
+ }, c = (e) => {
538
+ je.confirm("是否确认要删除", "", {
539
+ confirmButtonText: "确认",
540
+ cancelButtonText: "取消",
541
+ type: "warning"
542
+ }).then(
543
+ () => {
544
+ a("deleteChange", e), Ne({
545
+ type: "success",
546
+ message: "删除成功"
547
+ });
548
+ }
549
+ ).catch(() => {
550
+ });
551
+ }, w = (e) => {
552
+ a("deleteChange", e);
553
+ };
554
+ return (e, l) => {
555
+ const n = fe("svg-icon");
556
+ return A(), W("div", Xl, [
557
+ (A(!0), W(ve, null, he(d == null ? void 0 : d.tableChildContents, (u, j) => (A(), W("div", Yl, [
558
+ i("div", Zl, [
559
+ i("div", ea, q(u.label), 1),
560
+ i("div", la, [
561
+ N(n, {
562
+ name: "ChildAdd",
563
+ class: "svg-icon-content",
564
+ style: { width: "24px", height: "24px" },
565
+ onClick: (S) => L(u)
566
+ }, null, 8, ["onClick"]),
567
+ N(n, {
568
+ name: "ChildFix",
569
+ class: "svg-icon-content",
570
+ style: { width: "24px", height: "24px" },
571
+ onClick: (S) => R(u)
572
+ }, null, 8, ["onClick"]),
573
+ N(n, {
574
+ name: "ChildDelete",
575
+ class: "svg-icon-content",
576
+ style: { width: "24px", height: "24px" },
577
+ onClick: (S) => c(u)
578
+ }, null, 8, ["onClick"])
579
+ ])
580
+ ]),
581
+ u != null && u.children && u.children.length > 0 ? (A(), W("div", aa, [
582
+ N(Ql, {
583
+ tableChildContents: u == null ? void 0 : u.children,
584
+ onDeleteChange: w,
585
+ onFixChange: z
586
+ }, null, 8, ["tableChildContents"])
587
+ ])) : Oe("", !0)
588
+ ]))), 256)),
589
+ N(Ie, {
590
+ visible: p.value,
591
+ onBeforeDestroy: t,
592
+ width: 840
593
+ }, {
594
+ default: ee(() => [
595
+ i("div", na, [
596
+ (A(), pe(xe, {
597
+ rowContents: k.value,
598
+ key: k.value,
599
+ isEnableWrap: !0,
600
+ onChange: E
601
+ }, null, 8, ["rowContents"]))
602
+ ])
603
+ ]),
604
+ footer: ee(() => [
605
+ i("div", { class: "dialog-footer" }, [
606
+ i("div", {
607
+ onClick: t,
608
+ class: "cancel-button button"
609
+ }, q("取消")),
610
+ i("div", {
611
+ class: "ok-button button",
612
+ onClick: O
613
+ }, q("确认"))
614
+ ])
615
+ ]),
616
+ _: 1
617
+ }, 8, ["visible"])
618
+ ]);
619
+ };
620
+ }
621
+ }, yl = /* @__PURE__ */ ye(oa, [["__scopeId", "data-v-cc311a5f"]]), sa = { class: "table-operate-content" }, ia = { class: "table-operate-item" }, ua = { class: "operate-title" }, ra = { class: "operate-content" }, ta = { class: "fix-content" }, ca = { class: "fix-content-label" }, da = { class: "fix-button" }, va = { key: 0 }, pa = { class: "operate-title" }, fa = { class: "operate-content" }, ha = { class: "fix-content" }, ma = { class: "fix-content-label" }, ya = { class: "fix-button" }, ba = { class: "operate-title" }, Ca = { class: "operate-content" }, ga = { class: "fix-content" }, ka = { class: "fix-content-label" }, _a = { class: "fix-button" }, wa = { class: "operate-title" }, xa = { class: "operate-content" }, Ia = { class: "fix-content" }, Da = { class: "fix-content-label" }, $a = { class: "fix-button" }, Ta = { class: "operate-content" }, Ea = { style: { display: "flex", "justify-content": "space-between" } }, Ba = { class: "form-content" }, Fa = { class: "form-content" }, Aa = { class: "form-content" }, Oa = { class: "form-content" }, La = {
622
+ __name: "operate",
623
+ props: {
624
+ itemContents: {
625
+ type: Array,
626
+ default: () => []
627
+ },
628
+ originalItemContents: {
629
+ type: Array,
630
+ default: () => []
631
+ }
632
+ },
633
+ emits: ["change"],
634
+ setup(y, { emit: F }) {
635
+ const d = y, a = F, p = B([]), C = B(!1), V = B(!1), v = B([]), $ = B(!1), k = B([]), _ = B(!1), z = B([]), R = B(""), L = B(""), E = B([]), O = B([]), t = B([]), c = B([]), w = B(!1), e = B([]), l = B([]), n = B(0), u = B([]), j = B([]), S = B([]), M = () => {
636
+ w.value = !0;
637
+ let o = [];
638
+ Ve == null || Ve.forEach((r) => {
639
+ n.value++, o.push({
640
+ label: r == null ? void 0 : r.label,
641
+ name: r == null ? void 0 : r.label,
642
+ type: r.type,
643
+ value: (r == null ? void 0 : r.key) === "background" ? "var(--ssComponent-primary-color)" : "",
644
+ id: n.value,
645
+ contents: r == null ? void 0 : r.options
646
+ });
647
+ }), e.value = o, l.value = o;
648
+ }, re = () => {
649
+ var r, m, f;
650
+ V.value = !0;
651
+ let o = [];
652
+ (f = (m = (r = be) == null ? void 0 : r.find((J) => (J == null ? void 0 : J.key) === "Input")) == null ? void 0 : m.value) == null || f.forEach((J) => {
653
+ n.value++, o.push({
654
+ label: J == null ? void 0 : J.label,
655
+ name: J == null ? void 0 : J.label,
656
+ type: J.type,
657
+ value: (J == null ? void 0 : J.label) === "类型" ? "Input" : "",
658
+ id: n.value,
659
+ contents: J == null ? void 0 : J.options
660
+ });
661
+ }), u.value = o, j.value = o;
662
+ }, te = async (o) => {
663
+ var r, m, f, J, Y, me, U, H, ie, we;
664
+ if ((o == null ? void 0 : o.类型) !== ((m = (r = j.value) == null ? void 0 : r.find((Z) => (Z == null ? void 0 : Z.label) === "类型")) == null ? void 0 : m.value)) {
665
+ let Z = [], De = await ((Y = (J = (f = be) == null ? void 0 : f.find((K) => (K == null ? void 0 : K.key) === ((o == null ? void 0 : o.类型) === "" ? "Input" : o == null ? void 0 : o.类型))) == null ? void 0 : J.value) == null ? void 0 : Y.value) ? await ((we = (ie = (H = be) == null ? void 0 : H.find((K) => (K == null ? void 0 : K.key) === ((o == null ? void 0 : o.类型) === "" ? "Input" : o == null ? void 0 : o.类型))) == null ? void 0 : ie.value) == null ? void 0 : we.value) : (U = (me = be) == null ? void 0 : me.find((K) => (K == null ? void 0 : K.key) === ((o == null ? void 0 : o.类型) === "" ? "Input" : o == null ? void 0 : o.类型))) == null ? void 0 : U.value;
666
+ De == null || De.forEach((K) => {
667
+ n.value++, Z.push({
668
+ label: K == null ? void 0 : K.label,
669
+ name: K == null ? void 0 : K.label,
670
+ type: K.type,
671
+ value: (o == null ? void 0 : o[K.label]) ?? "",
672
+ id: n.value,
673
+ contents: K == null ? void 0 : K.options
674
+ });
675
+ }), j.value = Z, u.value = Z;
676
+ } else {
677
+ let Z = h(u.value);
678
+ Z = Z == null ? void 0 : Z.map((De) => (De.value = o == null ? void 0 : o[De.name], De)), j.value = Z;
679
+ }
680
+ }, s = async (o) => {
681
+ var f, J, Y, me, U, H, ie, we;
682
+ V.value = !0;
683
+ let r = [];
684
+ const m = await ((Y = (J = (f = be) == null ? void 0 : f.find((Z) => (Z == null ? void 0 : Z.key) === ((o == null ? void 0 : o.type) === "" ? "Input" : o == null ? void 0 : o.type))) == null ? void 0 : J.value) == null ? void 0 : Y.value) ? await ((we = (ie = (H = be) == null ? void 0 : H.find((Z) => (Z == null ? void 0 : Z.key) === ((o == null ? void 0 : o.type) === "" ? "Input" : o == null ? void 0 : o.type))) == null ? void 0 : ie.value) == null ? void 0 : we.value) : (U = (me = be) == null ? void 0 : me.find((Z) => (Z == null ? void 0 : Z.key) === ((o == null ? void 0 : o.type) === "" ? "Input" : o == null ? void 0 : o.type))) == null ? void 0 : U.value;
685
+ m == null || m.forEach((Z) => {
686
+ n.value++, r.push({
687
+ label: Z == null ? void 0 : Z.label,
688
+ name: Z == null ? void 0 : Z.label,
689
+ type: Z.type,
690
+ value: (Z == null ? void 0 : Z.label) === "类型" && o[Z.key] === "" ? "Input" : o[Z.key],
691
+ id: n.value,
692
+ contents: Z == null ? void 0 : Z.options
693
+ });
694
+ }), R.value = o == null ? void 0 : o.id, u.value = r, j.value = r;
695
+ }, x = (o) => {
696
+ je.confirm("是否确认要删除", "", {
697
+ confirmButtonText: "确认",
698
+ cancelButtonText: "取消",
699
+ type: "warning"
700
+ }).then(
701
+ () => {
702
+ var r, m;
703
+ S.value = (r = h(S.value)) == null ? void 0 : r.filter((f) => (f == null ? void 0 : f.id) !== (o == null ? void 0 : o.id)), a("change", (m = h(d.originalItemContents)) == null ? void 0 : m.map((f) => ((f == null ? void 0 : f.key) === "tableToForm" && (f.contents = S.value), f))), Ne({
704
+ type: "success",
705
+ message: "删除成功"
706
+ });
707
+ }
708
+ ).catch(() => {
709
+ });
710
+ }, T = () => {
711
+ V.value = !1, u.value = [], R.value = "";
712
+ }, b = async () => {
713
+ var f, J, Y, me, U, H, ie, we, Z, De;
714
+ u.value = j.value;
715
+ let o = {};
716
+ R.value !== "" ? o.id = R.value : (n.value++, o.id = "id" + n.value);
717
+ let r = await ((Y = (J = (f = be) == null ? void 0 : f.find((K) => {
718
+ var $e, Fe;
719
+ return (K == null ? void 0 : K.key) === (((Fe = ($e = u.value) == null ? void 0 : $e.find((Le) => (Le == null ? void 0 : Le.label) === "类型")) == null ? void 0 : Fe.value) ?? "label");
720
+ })) == null ? void 0 : J.value) == null ? void 0 : Y.value) ?? ((U = (me = be) == null ? void 0 : me.find((K) => {
721
+ var $e, Fe;
722
+ return (K == null ? void 0 : K.key) === (((Fe = ($e = u.value) == null ? void 0 : $e.find((Le) => (Le == null ? void 0 : Le.label) === "类型")) == null ? void 0 : Fe.value) ?? "label");
723
+ })) == null ? void 0 : U.value);
724
+ if ((H = u.value) == null || H.forEach((K) => {
725
+ const $e = r == null ? void 0 : r.find((Fe) => (Fe == null ? void 0 : Fe.label) === (K == null ? void 0 : K.label));
726
+ $e && (o[$e.key] = K.value);
727
+ }), o.name = o.label, (ie = S.value) != null && ie.find((K) => K.id === o.id))
728
+ S.value = (we = S.value) == null ? void 0 : we.map((K) => (K.id === o.id && (K = o), K));
729
+ else {
730
+ let K = h(S.value);
731
+ S.value || (S.value = []), K.push(o), S.value = K;
732
+ }
733
+ S.value = S.value.map(({ id: K, ...$e }) => $e), V.value = !1, R.value = "";
734
+ let m = h(d.originalItemContents);
735
+ (Z = h(d.originalItemContents)) != null && Z.find((K) => (K == null ? void 0 : K.key) === "tableToForm") ? m = (De = h(d.originalItemContents)) == null ? void 0 : De.map((K) => ((K == null ? void 0 : K.key) === "tableToForm" && (K.contents = S.value), K)) : m.push({
736
+ key: "tableToForm",
737
+ contents: S.value
738
+ }), a("change", m);
739
+ }, G = (o) => {
740
+ w.value = !0;
741
+ let r = [];
742
+ Ve == null || Ve.forEach((m) => {
743
+ n.value++, r.push({
744
+ label: m == null ? void 0 : m.label,
745
+ name: m == null ? void 0 : m.label,
746
+ type: m.type,
747
+ value: o[m.key],
748
+ id: n.value,
749
+ contents: m == null ? void 0 : m.options
750
+ });
751
+ }), R.value = o == null ? void 0 : o.id, e.value = r, l.value = r;
752
+ };
753
+ Ce(
754
+ () => _.value,
755
+ () => {
756
+ var r, m;
757
+ let o = h(d.originalItemContents);
758
+ (r = h(d.originalItemContents)) != null && r.find((f) => (f == null ? void 0 : f.key) === "page") ? o = (m = h(d.originalItemContents)) == null ? void 0 : m.map((f) => ((f == null ? void 0 : f.key) === "page" && (f.contents = _.value), f)) : o.push({
759
+ key: "page",
760
+ contents: _.value
761
+ }), a("change", o);
762
+ },
763
+ { deep: !0 }
764
+ );
765
+ const ne = (o) => {
766
+ je.confirm("是否确认要删除", "", {
767
+ confirmButtonText: "确认",
768
+ cancelButtonText: "取消",
769
+ type: "warning"
770
+ }).then(
771
+ () => {
772
+ var r, m;
773
+ O.value = (r = h(O.value)) == null ? void 0 : r.filter((f) => (f == null ? void 0 : f.id) !== (o == null ? void 0 : o.id)), a("change", (m = h(d.originalItemContents)) == null ? void 0 : m.map((f) => ((f == null ? void 0 : f.key) === "extraButton" && (f.contents = O.value), f))), Ne({
774
+ type: "success",
775
+ message: "删除成功"
776
+ });
777
+ }
778
+ ).catch(() => {
779
+ });
780
+ }, D = () => {
781
+ var m, f, J, Y, me;
782
+ e.value = l.value;
783
+ let o = {};
784
+ if (R.value !== "" ? o.id = R.value : (n.value++, o.id = "id" + n.value), (m = e.value) == null || m.forEach((U) => {
785
+ const H = Ve == null ? void 0 : Ve.find((ie) => (ie == null ? void 0 : ie.label) === (U == null ? void 0 : U.label));
786
+ H ? o[H.key] = U.value : U != null && U.children && U.children.length > 0 && (o.children = U.children);
787
+ }), (f = O.value) != null && f.find((U) => U.id === o.id))
788
+ O.value = (J = O.value) == null ? void 0 : J.map((U) => (U.id === o.id && (U = o), U));
789
+ else {
790
+ let U = h(O.value);
791
+ U.push(o), O.value = U;
792
+ }
793
+ w.value = !1, R.value = "";
794
+ let r = h(d.originalItemContents);
795
+ (Y = h(d.originalItemContents)) != null && Y.find((U) => (U == null ? void 0 : U.key) === "extraButton") ? r = (me = h(d.originalItemContents)) == null ? void 0 : me.map((U) => ((U == null ? void 0 : U.key) === "extraButton" && (U.contents = O.value), U)) : r.push({
796
+ key: "extraButton",
797
+ contents: O.value
798
+ }), a("change", r);
799
+ }, g = (o) => {
800
+ let r = h(l.value);
801
+ r = r == null ? void 0 : r.map((m) => (m.children || (m.value = o == null ? void 0 : o[m.name]), m)), l.value = r;
802
+ }, oe = () => {
803
+ w.value = !1, e.value = [], R.value = "";
804
+ }, X = (o) => {
805
+ $.value = !0;
806
+ let r = [];
807
+ Re == null || Re.forEach((m) => {
808
+ n.value++, r.push({
809
+ label: m == null ? void 0 : m.label,
810
+ name: m == null ? void 0 : m.label,
811
+ type: m.type,
812
+ value: o[m.key],
813
+ id: n.value,
814
+ contents: m == null ? void 0 : m.options
815
+ });
816
+ }), R.value = o == null ? void 0 : o.id, t.value = r, c.value = r;
817
+ }, ce = (o) => {
818
+ je.confirm("是否确认要删除", "", {
819
+ confirmButtonText: "确认",
820
+ cancelButtonText: "取消",
821
+ type: "warning"
822
+ }).then(
823
+ () => {
824
+ var r, m;
825
+ E.value = (r = h(E.value)) == null ? void 0 : r.filter((f) => (f == null ? void 0 : f.id) !== (o == null ? void 0 : o.id)), a("change", (m = h(d.originalItemContents)) == null ? void 0 : m.map((f) => ((f == null ? void 0 : f.key) === "rowButton" && (f.contents = E.value), f))), Ne({
826
+ type: "success",
827
+ message: "删除成功"
828
+ });
829
+ }
830
+ ).catch(() => {
831
+ });
832
+ }, ge = () => {
833
+ C.value = !0;
834
+ let o = [];
835
+ le == null || le.forEach((r) => {
836
+ n.value++, o.push({
837
+ label: r == null ? void 0 : r.label,
838
+ name: r == null ? void 0 : r.label,
839
+ type: r.type,
840
+ value: "",
841
+ id: n.value,
842
+ contents: r == null ? void 0 : r.options
843
+ });
844
+ }), k.value = o, z.value = o;
845
+ }, ke = () => {
846
+ $.value = !0;
847
+ let o = [];
848
+ Re == null || Re.forEach((r) => {
849
+ n.value++, o.push({
850
+ label: r == null ? void 0 : r.label,
851
+ name: r == null ? void 0 : r.label,
852
+ type: r.type,
853
+ value: "",
854
+ id: n.value,
855
+ contents: r == null ? void 0 : r.options
856
+ });
857
+ }), t.value = o, c.value = o;
858
+ }, P = (o) => {
859
+ let r = h(c.value);
860
+ r = r == null ? void 0 : r.map((m) => (m.children || (m.value = o == null ? void 0 : o[m.name]), m)), c.value = r;
861
+ }, ae = () => {
862
+ var m, f, J, Y, me;
863
+ t.value = c.value;
864
+ let o = {};
865
+ if (R.value !== "" ? o.id = R.value : (n.value++, o.id = "id" + n.value), (m = t.value) == null || m.forEach((U) => {
866
+ const H = Re == null ? void 0 : Re.find((ie) => (ie == null ? void 0 : ie.label) === (U == null ? void 0 : U.label));
867
+ H ? o[H.key] = U.value : U != null && U.children && U.children.length > 0 && (o.children = U.children);
868
+ }), (f = E.value) != null && f.find((U) => U.id === o.id))
869
+ E.value = (J = E.value) == null ? void 0 : J.map((U) => (U.id === o.id && (U = o), U));
870
+ else {
871
+ let U = h(E.value);
872
+ U.push(o), E.value = U;
873
+ }
874
+ $.value = !1, R.value = "";
875
+ let r = h(d.originalItemContents);
876
+ (Y = h(d.originalItemContents)) != null && Y.find((U) => (U == null ? void 0 : U.key) === "rowButton") ? r = (me = h(d.originalItemContents)) == null ? void 0 : me.map((U) => ((U == null ? void 0 : U.key) === "rowButton" && (U.contents = E.value), U)) : r.push({
877
+ key: "rowButton",
878
+ contents: E.value
879
+ }), a("change", r);
880
+ }, Q = () => {
881
+ $.value = !1, R.value = "", c.value = [], t.value = [];
882
+ }, ue = (o) => {
883
+ C.value = !0;
884
+ let r = [];
885
+ le == null || le.forEach((m) => {
886
+ n.value++, r.push({
887
+ label: m == null ? void 0 : m.label,
888
+ name: m == null ? void 0 : m.label,
889
+ type: m.type,
890
+ value: "",
891
+ id: n.value,
892
+ contents: m == null ? void 0 : m.options
893
+ });
894
+ }), k.value = r, L.value = o == null ? void 0 : o.id, z.value = r;
895
+ }, _e = (o) => {
896
+ var r;
897
+ v.value = vl(h(v.value), o == null ? void 0 : o.id), a("change", (r = h(d.originalItemContents)) == null ? void 0 : r.map((m) => {
898
+ var f;
899
+ return (m == null ? void 0 : m.key) === "header" && (m.contents = (f = v.value) != null && f.some((J) => J == null ? void 0 : J.children) ? [v.value] : v.value), m;
900
+ }));
901
+ }, de = (o) => {
902
+ var m, f, J;
903
+ o.type === "fix" ? o.id !== "" ? v.value = fl(v.value, o) : v.value = pl(v.value, o == null ? void 0 : o.contents) : v.value = hl(v.value, o), v.value = (m = v.value) != null && m.some((Y) => Y == null ? void 0 : Y.children) ? [v.value] : v.value, R.value = "";
904
+ let r = h(d.originalItemContents);
905
+ (f = h(d.originalItemContents)) != null && f.find((Y) => (Y == null ? void 0 : Y.key) === "header") ? r = (J = h(d.originalItemContents)) == null ? void 0 : J.map((Y) => ((Y == null ? void 0 : Y.key) === "header" && (Y.contents = v.value), Y)) : r.push({
906
+ key: "header",
907
+ contents: v.value
908
+ }), a("change", r);
909
+ }, Ee = (o) => {
910
+ var m;
911
+ C.value = !0;
912
+ let r = [];
913
+ le == null || le.forEach((f) => {
914
+ n.value++, r.push({
915
+ label: f == null ? void 0 : f.label,
916
+ name: f == null ? void 0 : f.label,
917
+ type: f.type,
918
+ value: o[f.key],
919
+ id: n.value,
920
+ contents: f == null ? void 0 : f.options
921
+ });
922
+ }), o != null && o.children && ((m = o == null ? void 0 : o.children) == null ? void 0 : m.length) > 0 && r.push({
923
+ children: o == null ? void 0 : o.children,
924
+ isFormColHidden: !0
925
+ }), R.value = o == null ? void 0 : o.id, L.value = "", k.value = r, z.value = r;
926
+ }, se = (o) => {
927
+ let r = h(z.value);
928
+ r = r == null ? void 0 : r.map((m) => (m.children || (m.value = o == null ? void 0 : o[m.name]), m)), z.value = r;
929
+ }, We = () => {
930
+ C.value = !1, R.value = "", L.value = "", z.value = [];
931
+ }, Be = () => {
932
+ var m, f, J, Y, me, U;
933
+ k.value = z.value;
934
+ let o = {};
935
+ if (R.value !== "" ? o.id = R.value : (n.value++, o.id = "id" + n.value), (m = k.value) == null || m.forEach((H) => {
936
+ const ie = le == null ? void 0 : le.find((we) => (we == null ? void 0 : we.label) === (H == null ? void 0 : H.label));
937
+ ie ? o[ie.key] = H.value : H != null && H.children && H.children.length > 0 && (o.children = H.children);
938
+ }), (f = v.value) != null && f.find((H) => H.id === o.id))
939
+ v.value = (J = v.value) == null ? void 0 : J.map((H) => (H.id === o.id && (H = o), H));
940
+ else {
941
+ let H = h(v.value) ?? [];
942
+ L.value === "" ? H.push(o) : H = H == null ? void 0 : H.map((ie) => (ie.id === L.value && (ie.children || (ie.children = []), ie.children.push(o)), ie)), v.value = H;
943
+ }
944
+ v.value = (Y = v.value) != null && Y.some((H) => H == null ? void 0 : H.children) ? [v.value] : v.value, C.value = !1, R.value = "", L.value = "";
945
+ let r = h(d.originalItemContents);
946
+ (me = h(d.originalItemContents)) != null && me.find((H) => (H == null ? void 0 : H.key) === "header") ? r = (U = h(d.originalItemContents)) == null ? void 0 : U.map((H) => ((H == null ? void 0 : H.key) === "header" && (H.contents = v.value), H)) : r.push({
947
+ key: "header",
948
+ contents: v.value
949
+ }), a("change", r);
950
+ }, Se = (o) => {
951
+ je.confirm("是否确认要删除", "", {
952
+ confirmButtonText: "确认",
953
+ cancelButtonText: "取消",
954
+ type: "warning"
955
+ }).then(
956
+ () => {
957
+ var r, m;
958
+ v.value = (r = h(v.value)) == null ? void 0 : r.filter((f) => (f == null ? void 0 : f.id) !== (o == null ? void 0 : o.id)), a("change", (m = h(d.originalItemContents)) == null ? void 0 : m.map((f) => {
959
+ var J;
960
+ return (f == null ? void 0 : f.key) === "header" && (f.contents = (J = v.value) != null && J.some((Y) => Y == null ? void 0 : Y.children) ? [v.value] : v.value), f;
961
+ })), Ne({
962
+ type: "success",
963
+ message: "删除成功"
964
+ });
965
+ }
966
+ ).catch(() => {
967
+ });
968
+ };
969
+ return Ce(
970
+ () => d.originalItemContents,
971
+ () => {
972
+ var o, r, m, f, J, Y, me, U, H, ie, we, Z, De, K, $e, Fe, Le, nl, ol;
973
+ if (!(!d.originalItemContents || d.originalItemContents.length === 0))
974
+ if (p.value = h(d.originalItemContents), v.value = (r = (o = p.value) == null ? void 0 : o.find((I) => (I == null ? void 0 : I.key) === "header")) == null ? void 0 : r.contents, E.value = (f = (m = p.value) == null ? void 0 : m.find((I) => (I == null ? void 0 : I.key) === "rowButton")) == null ? void 0 : f.contents, O.value = (Y = (J = p.value) == null ? void 0 : J.find((I) => (I == null ? void 0 : I.key) === "extraButton")) == null ? void 0 : Y.contents, _.value = (U = (me = p.value) == null ? void 0 : me.find((I) => (I == null ? void 0 : I.key) === "page")) != null && U.contents ? !!((ie = (H = p.value) == null ? void 0 : H.find((I) => (I == null ? void 0 : I.key) === "page")) != null && ie.contents) : !1, S.value = (Z = (we = p.value) == null ? void 0 : we.find((I) => (I == null ? void 0 : I.key) === "tableToForm")) == null ? void 0 : Z.contents, v.value = (De = v.value) == null ? void 0 : De.map((I, Ae) => (Array.isArray(I) ? I = jl(I) : I = {
975
+ label: (I == null ? void 0 : I.label) ?? "",
976
+ prop: (I == null ? void 0 : I.label) === "操作" ? "operate" : I == null ? void 0 : I.prop,
977
+ width: I != null && I.width ? parseInt(I.width) : "",
978
+ fixed: (I == null ? void 0 : I.fixed) ?? void 0,
979
+ sortable: (I == null ? void 0 : I.sortable) ?? !1,
980
+ align: (I == null ? void 0 : I.align) ?? "center",
981
+ showOverflowTooltip: (I == null ? void 0 : I.showOverflowTooltip) ?? !0,
982
+ isNotDrag: (I == null ? void 0 : I.isNotDrag) ?? !1,
983
+ isEditCol: (I == null ? void 0 : I.isEditCol) ?? !1,
984
+ isOperate: (I == null ? void 0 : I.isOperate) ?? !1,
985
+ id: (I == null ? void 0 : I.id) ?? Ae
986
+ }, I)), v.value = (K = v.value) != null && K.every((I) => Array.isArray(I)) ? ($e = v.value) == null ? void 0 : $e[0] : v.value, E.value = (Fe = E.value) == null ? void 0 : Fe.map((I, Ae) => I = {
987
+ label: (I == null ? void 0 : I.label) ?? "",
988
+ type: (I == null ? void 0 : I.type) ?? "",
989
+ textColor: (I == null ? void 0 : I.textColor) ?? "#000000",
990
+ id: (I == null ? void 0 : I.id) ?? Ae
991
+ }), O.value = (Le = O.value) == null ? void 0 : Le.map((I, Ae) => I = {
992
+ label: (I == null ? void 0 : I.label) ?? "",
993
+ type: (I == null ? void 0 : I.type) ?? "",
994
+ background: (I == null ? void 0 : I.background) ?? "var(--ssComponent-primary-color)",
995
+ id: (I == null ? void 0 : I.id) ?? Ae
996
+ }), S.value)
997
+ S.value = (ol = S.value) == null ? void 0 : ol.map((I) => {
998
+ n.value++;
999
+ let Ae = I;
1000
+ return Ae.id = n.value, Ae;
1001
+ });
1002
+ else {
1003
+ let I = [];
1004
+ const Ae = (nl = Dl(h(v.value))) == null ? void 0 : nl.filter((Te) => (Te == null ? void 0 : Te.prop) !== "operate");
1005
+ Ae == null || Ae.forEach((Te) => {
1006
+ n.value++, I.push({
1007
+ label: Te == null ? void 0 : Te.label,
1008
+ name: Te == null ? void 0 : Te.label,
1009
+ type: "Input",
1010
+ value: "",
1011
+ id: n.value,
1012
+ contents: Te == null ? void 0 : Te.options
1013
+ });
1014
+ }), S.value = I;
1015
+ }
1016
+ },
1017
+ { deep: !0, immediate: !0 }
1018
+ ), (o, r) => {
1019
+ const m = fe("svg-icon");
1020
+ return A(), W("div", sa, [
1021
+ i("div", ia, [
1022
+ i("div", ua, [
1023
+ r[2] || (r[2] = i("div", null, q("表头"), -1)),
1024
+ i("div", {
1025
+ class: "icon-content",
1026
+ onClick: ge
1027
+ }, [
1028
+ N(m, {
1029
+ name: "Plus",
1030
+ class: "icon-size"
1031
+ }),
1032
+ r[1] || (r[1] = i("div", null, q("新增"), -1))
1033
+ ])
1034
+ ]),
1035
+ i("div", ra, [
1036
+ (A(!0), W(ve, null, he(v.value, (f, J) => (A(), W("div", { key: J }, [
1037
+ i("div", ta, [
1038
+ i("div", ca, q(f == null ? void 0 : f.label), 1),
1039
+ i("div", da, [
1040
+ N(m, {
1041
+ name: "ChildAdd",
1042
+ class: "svg-icon-content",
1043
+ style: { width: "24px", height: "24px" },
1044
+ onClick: (Y) => ue(f)
1045
+ }, null, 8, ["onClick"]),
1046
+ N(m, {
1047
+ name: "ChildFix",
1048
+ class: "svg-icon-content",
1049
+ style: { width: "24px", height: "24px" },
1050
+ onClick: (Y) => Ee(f)
1051
+ }, null, 8, ["onClick"]),
1052
+ N(m, {
1053
+ name: "ChildDelete",
1054
+ class: "svg-icon-content",
1055
+ style: { width: "24px", height: "24px" },
1056
+ onClick: (Y) => Se(f)
1057
+ }, null, 8, ["onClick"])
1058
+ ])
1059
+ ]),
1060
+ f != null && f.children && f.children.length > 0 ? (A(), W("div", va, [
1061
+ N(yl, {
1062
+ tableChildContents: f == null ? void 0 : f.children,
1063
+ onDeleteChange: _e,
1064
+ onFixChange: de
1065
+ }, null, 8, ["tableChildContents"])
1066
+ ])) : Oe("", !0)
1067
+ ]))), 128))
1068
+ ]),
1069
+ i("div", pa, [
1070
+ r[4] || (r[4] = i("div", null, q("行内按钮"), -1)),
1071
+ i("div", {
1072
+ class: "icon-content",
1073
+ onClick: ke
1074
+ }, [
1075
+ N(m, {
1076
+ name: "Plus",
1077
+ class: "icon-size"
1078
+ }),
1079
+ r[3] || (r[3] = i("div", null, q("新增"), -1))
1080
+ ])
1081
+ ]),
1082
+ i("div", fa, [
1083
+ (A(!0), W(ve, null, he(E.value, (f, J) => (A(), W("div", { key: J }, [
1084
+ i("div", ha, [
1085
+ i("div", ma, q(f == null ? void 0 : f.label), 1),
1086
+ i("div", ya, [
1087
+ N(m, {
1088
+ name: "ChildFix",
1089
+ style: { width: "24px", height: "24px" },
1090
+ class: "svg-icon-content",
1091
+ onClick: (Y) => X(f)
1092
+ }, null, 8, ["onClick"]),
1093
+ N(m, {
1094
+ name: "ChildDelete",
1095
+ class: "svg-icon-content",
1096
+ style: { width: "24px", height: "24px" },
1097
+ onClick: (Y) => ce(f)
1098
+ }, null, 8, ["onClick"])
1099
+ ])
1100
+ ])
1101
+ ]))), 128))
1102
+ ]),
1103
+ i("div", ba, [
1104
+ r[6] || (r[6] = i("div", null, q("表外按钮"), -1)),
1105
+ i("div", {
1106
+ class: "icon-content",
1107
+ onClick: M
1108
+ }, [
1109
+ N(m, {
1110
+ name: "Plus",
1111
+ class: "icon-size"
1112
+ }),
1113
+ r[5] || (r[5] = i("div", null, q("新增"), -1))
1114
+ ])
1115
+ ]),
1116
+ i("div", Ca, [
1117
+ (A(!0), W(ve, null, he(O.value, (f, J) => (A(), W("div", { key: J }, [
1118
+ i("div", ga, [
1119
+ i("div", ka, q(f == null ? void 0 : f.label), 1),
1120
+ i("div", _a, [
1121
+ N(m, {
1122
+ name: "ChildFix",
1123
+ style: { width: "24px", height: "24px" },
1124
+ class: "svg-icon-content",
1125
+ onClick: (Y) => G(f)
1126
+ }, null, 8, ["onClick"]),
1127
+ N(m, {
1128
+ name: "ChildDelete",
1129
+ class: "svg-icon-content",
1130
+ style: { width: "24px", height: "24px" },
1131
+ onClick: (Y) => ne(f)
1132
+ }, null, 8, ["onClick"])
1133
+ ])
1134
+ ])
1135
+ ]))), 128))
1136
+ ]),
1137
+ i("div", wa, [
1138
+ r[8] || (r[8] = i("div", null, q("表格弹框字段设置"), -1)),
1139
+ i("div", {
1140
+ class: "icon-content",
1141
+ onClick: re
1142
+ }, [
1143
+ N(m, {
1144
+ name: "Plus",
1145
+ class: "icon-size"
1146
+ }),
1147
+ r[7] || (r[7] = i("div", null, q("新增"), -1))
1148
+ ])
1149
+ ]),
1150
+ i("div", xa, [
1151
+ (A(!0), W(ve, null, he(S.value, (f, J) => (A(), W("div", { key: J }, [
1152
+ i("div", Ia, [
1153
+ i("div", Da, q(f == null ? void 0 : f.label), 1),
1154
+ i("div", $a, [
1155
+ N(m, {
1156
+ name: "ChildFix",
1157
+ style: { width: "24px", height: "24px" },
1158
+ class: "svg-icon-content",
1159
+ onClick: (Y) => s(f)
1160
+ }, null, 8, ["onClick"]),
1161
+ N(m, {
1162
+ name: "ChildDelete",
1163
+ class: "svg-icon-content",
1164
+ style: { width: "24px", height: "24px" },
1165
+ onClick: (Y) => x(f)
1166
+ }, null, 8, ["onClick"])
1167
+ ])
1168
+ ])
1169
+ ]))), 128))
1170
+ ]),
1171
+ r[10] || (r[10] = i("div", { class: "operate-title" }, [
1172
+ i("div", null, q("分页"))
1173
+ ], -1)),
1174
+ i("div", Ta, [
1175
+ i("div", Ea, [
1176
+ r[9] || (r[9] = i("div", { class: "operate-center-content" }, q("是否分页"), -1)),
1177
+ N(cl, {
1178
+ modelValue: _.value,
1179
+ "onUpdate:modelValue": r[0] || (r[0] = (f) => _.value = f)
1180
+ }, null, 8, ["modelValue"])
1181
+ ])
1182
+ ])
1183
+ ]),
1184
+ N(Ie, {
1185
+ visible: C.value,
1186
+ onBeforeDestroy: We,
1187
+ width: 840
1188
+ }, {
1189
+ default: ee(() => [
1190
+ i("div", Ba, [
1191
+ (A(), pe(xe, {
1192
+ rowContents: k.value,
1193
+ key: k.value,
1194
+ isEnableWrap: !0,
1195
+ onChange: se
1196
+ }, null, 8, ["rowContents"]))
1197
+ ])
1198
+ ]),
1199
+ footer: ee(() => [
1200
+ i("div", { class: "dialog-footer" }, [
1201
+ i("div", {
1202
+ onClick: We,
1203
+ class: "cancel-button button"
1204
+ }, q("取消")),
1205
+ i("div", {
1206
+ class: "ok-button button",
1207
+ onClick: Be
1208
+ }, q("确认"))
1209
+ ])
1210
+ ]),
1211
+ _: 1
1212
+ }, 8, ["visible"]),
1213
+ N(Ie, {
1214
+ visible: $.value,
1215
+ onBeforeDestroy: Q,
1216
+ width: 840
1217
+ }, {
1218
+ default: ee(() => [
1219
+ i("div", Fa, [
1220
+ (A(), pe(xe, {
1221
+ rowContents: t.value,
1222
+ key: t.value,
1223
+ isEnableWrap: !0,
1224
+ onChange: P
1225
+ }, null, 8, ["rowContents"]))
1226
+ ])
1227
+ ]),
1228
+ footer: ee(() => [
1229
+ i("div", { class: "dialog-footer" }, [
1230
+ i("div", {
1231
+ onClick: Q,
1232
+ class: "cancel-button button"
1233
+ }, q("取消")),
1234
+ i("div", {
1235
+ class: "ok-button button",
1236
+ onClick: ae
1237
+ }, q("确认"))
1238
+ ])
1239
+ ]),
1240
+ _: 1
1241
+ }, 8, ["visible"]),
1242
+ N(Ie, {
1243
+ visible: w.value,
1244
+ onBeforeDestroy: oe,
1245
+ width: 840
1246
+ }, {
1247
+ default: ee(() => [
1248
+ i("div", Aa, [
1249
+ (A(), pe(xe, {
1250
+ rowContents: e.value,
1251
+ key: e.value,
1252
+ isEnableWrap: !0,
1253
+ onChange: g
1254
+ }, null, 8, ["rowContents"]))
1255
+ ])
1256
+ ]),
1257
+ footer: ee(() => [
1258
+ i("div", { class: "dialog-footer" }, [
1259
+ i("div", {
1260
+ onClick: oe,
1261
+ class: "cancel-button button"
1262
+ }, q("取消")),
1263
+ i("div", {
1264
+ class: "ok-button button",
1265
+ onClick: D
1266
+ }, q("确认"))
1267
+ ])
1268
+ ]),
1269
+ _: 1
1270
+ }, 8, ["visible"]),
1271
+ N(Ie, {
1272
+ visible: V.value,
1273
+ onBeforeDestroy: T,
1274
+ width: 840
1275
+ }, {
1276
+ default: ee(() => [
1277
+ i("div", Oa, [
1278
+ (A(), pe(xe, {
1279
+ rowContents: u.value,
1280
+ key: u.value,
1281
+ isEnableWrap: !0,
1282
+ onChange: te
1283
+ }, null, 8, ["rowContents"]))
1284
+ ])
1285
+ ]),
1286
+ footer: ee(() => [
1287
+ i("div", { class: "dialog-footer" }, [
1288
+ i("div", {
1289
+ onClick: T,
1290
+ class: "cancel-button button"
1291
+ }, q("取消")),
1292
+ i("div", {
1293
+ class: "ok-button button",
1294
+ onClick: b
1295
+ }, q("确认"))
1296
+ ])
1297
+ ]),
1298
+ _: 1
1299
+ }, 8, ["visible"])
1300
+ ]);
1301
+ };
1302
+ }
1303
+ }, Sa = /* @__PURE__ */ ye(La, [["__scopeId", "data-v-14ead5ff"]]), Va = { class: "form-operate-content" }, Ra = { class: "form-operate-item" }, Na = { class: "operate-title" }, ja = { class: "operate-content" }, Ua = { class: "fix-content" }, Pa = { class: "fix-button" }, Wa = { class: "operate-title" }, za = { class: "operate-content" }, Ma = { class: "fix-content" }, Ka = { class: "fix-button" }, Ga = { style: { display: "flex", "justify-content": "space-between" } }, Ja = { class: "form-content" }, qa = { class: "form-content" }, Ha = {
1304
+ __name: "operate",
1305
+ props: {
1306
+ itemContents: {
1307
+ type: Array,
1308
+ default: () => []
1309
+ },
1310
+ originalItemContents: {
1311
+ type: Array,
1312
+ default: () => []
1313
+ }
1314
+ },
1315
+ emits: ["change"],
1316
+ setup(y, { emit: F }) {
1317
+ const d = y, a = F, p = B(!1), C = B([]), V = B([]), v = B(!1), $ = B([]), k = B([]), _ = B(""), z = B(!1), R = B(0), L = B([]), E = B([]), O = async (s) => {
1318
+ var b, G, ne, D, g, oe;
1319
+ p.value = !0;
1320
+ let x = [];
1321
+ const T = await ((ne = (G = (b = be) == null ? void 0 : b.find((X) => (X == null ? void 0 : X.key) === ((s == null ? void 0 : s.type) === "" ? "Input" : s == null ? void 0 : s.type))) == null ? void 0 : G.value) == null ? void 0 : ne.value) ?? ((g = (D = be) == null ? void 0 : D.find((X) => (X == null ? void 0 : X.key) === ((s == null ? void 0 : s.type) === "" ? "Input" : s == null ? void 0 : s.type))) == null ? void 0 : g.value);
1322
+ if (T == null || T.forEach((X) => {
1323
+ R.value++, x.push({
1324
+ label: X == null ? void 0 : X.label,
1325
+ name: X == null ? void 0 : X.label,
1326
+ type: X.type,
1327
+ value: (X == null ? void 0 : X.label) === "类型" && s[X.key] === "" ? "Input" : s[X.key],
1328
+ id: R.value,
1329
+ contents: X == null ? void 0 : X.options
1330
+ });
1331
+ }), s != null && s.menuSelect && ((oe = s == null ? void 0 : s.menuSelect) == null ? void 0 : oe.length) > 0) {
1332
+ const X = await Ye(s == null ? void 0 : s.menuSelect);
1333
+ x = x == null ? void 0 : x.map((ce) => ((ce == null ? void 0 : ce.name) === "组信息选项" && (ce.contents = X), ce));
1334
+ }
1335
+ _.value = s == null ? void 0 : s.id, C.value = await Ge(qe(x)), V.value = await Ge(qe(x));
1336
+ }, t = (s) => {
1337
+ var T;
1338
+ v.value = !0;
1339
+ let x = [];
1340
+ (T = Ze) == null || T.forEach((b) => {
1341
+ R.value++, x.push({
1342
+ label: b == null ? void 0 : b.label,
1343
+ name: b == null ? void 0 : b.label,
1344
+ type: b.type,
1345
+ value: (b == null ? void 0 : b.label) === "类型" && s[b.key] === "" ? "normal" : s[b.key],
1346
+ id: R.value,
1347
+ contents: b == null ? void 0 : b.options
1348
+ });
1349
+ }), L.value = x, E.value = x, _.value = s == null ? void 0 : s.id;
1350
+ };
1351
+ Ce(
1352
+ () => z.value,
1353
+ () => {
1354
+ var x, T;
1355
+ let s = h(d.originalItemContents);
1356
+ (x = h(d.originalItemContents)) != null && x.find((b) => (b == null ? void 0 : b.key) === "enableWrap") ? s = (T = h(d.originalItemContents)) == null ? void 0 : T.map((b) => ((b == null ? void 0 : b.key) === "enableWrap" && (b.contents = !z.value), b)) : s.push({
1357
+ key: "enableWrap",
1358
+ contents: !z.value
1359
+ }), a("change", s);
1360
+ },
1361
+ { deep: !0 }
1362
+ );
1363
+ const c = () => {
1364
+ var T, b, G, ne, D;
1365
+ L.value = E.value;
1366
+ let s = {};
1367
+ if (_.value !== "" ? s.id = _.value : (R.value++, s.id = "id" + R.value), (T = L.value) == null || T.forEach((g) => {
1368
+ var X;
1369
+ const oe = (X = Ze) == null ? void 0 : X.find((ce) => (ce == null ? void 0 : ce.label) === (g == null ? void 0 : g.label));
1370
+ oe && (s[oe.key] = g.value);
1371
+ }), (b = $.value) != null && b.find((g) => g.id === s.id))
1372
+ $.value = (G = $.value) == null ? void 0 : G.map((g) => (g.id === s.id && (g = s), g));
1373
+ else {
1374
+ let g = h($.value);
1375
+ $.value || ($.value = []), g.push(s), $.value = g;
1376
+ }
1377
+ v.value = !1, _.value = "";
1378
+ let x = h(d.originalItemContents);
1379
+ (ne = h(d.originalItemContents)) != null && ne.find((g) => (g == null ? void 0 : g.key) === "formButton") ? x = (D = h(d.originalItemContents)) == null ? void 0 : D.map((g) => ((g == null ? void 0 : g.key) === "formButton" && (g.contents = $.value), g)) : x.push({
1380
+ key: "formButton",
1381
+ contents: $.value
1382
+ }), a("change", x);
1383
+ }, w = (s) => {
1384
+ je.confirm("是否确认要删除", "", {
1385
+ confirmButtonText: "确认",
1386
+ cancelButtonText: "取消",
1387
+ type: "warning"
1388
+ }).then(
1389
+ () => {
1390
+ var x, T;
1391
+ k.value = (x = h(k.value)) == null ? void 0 : x.filter((b) => (b == null ? void 0 : b.id) !== (s == null ? void 0 : s.id)), a("change", (T = h(d.originalItemContents)) == null ? void 0 : T.map((b) => ((b == null ? void 0 : b.key) === "formContent" && (b.contents = k.value), b))), Ne({
1392
+ type: "success",
1393
+ message: "删除成功"
1394
+ });
1395
+ }
1396
+ ).catch(() => {
1397
+ });
1398
+ }, e = (s) => {
1399
+ je.confirm("是否确认要删除", "", {
1400
+ confirmButtonText: "确认",
1401
+ cancelButtonText: "取消",
1402
+ type: "warning"
1403
+ }).then(
1404
+ () => {
1405
+ var x, T;
1406
+ $.value = (x = h($.value)) == null ? void 0 : x.filter((b) => (b == null ? void 0 : b.id) !== (s == null ? void 0 : s.id)), a("change", (T = h(d.originalItemContents)) == null ? void 0 : T.map((b) => ((b == null ? void 0 : b.key) === "formButton" && (b.contents = $.value), b))), Ne({
1407
+ type: "success",
1408
+ message: "删除成功"
1409
+ });
1410
+ }
1411
+ ).catch(() => {
1412
+ });
1413
+ }, l = () => {
1414
+ var x;
1415
+ v.value = !0;
1416
+ let s = [];
1417
+ (x = Ze) == null || x.forEach((T) => {
1418
+ R.value++, s.push({
1419
+ label: T == null ? void 0 : T.label,
1420
+ name: T == null ? void 0 : T.label,
1421
+ type: T.type,
1422
+ value: (T == null ? void 0 : T.label) === "类型" ? "normal" : "",
1423
+ id: R.value,
1424
+ contents: T == null ? void 0 : T.options
1425
+ });
1426
+ }), L.value = s, E.value = s;
1427
+ }, n = () => {
1428
+ var x, T, b;
1429
+ p.value = !0;
1430
+ let s = [];
1431
+ (b = (T = (x = be) == null ? void 0 : x.find((G) => (G == null ? void 0 : G.key) === "Input")) == null ? void 0 : T.value) == null || b.forEach((G) => {
1432
+ R.value++, s.push({
1433
+ label: G == null ? void 0 : G.label,
1434
+ name: G == null ? void 0 : G.label,
1435
+ type: G.type,
1436
+ value: (G == null ? void 0 : G.label) === "类型" ? "Input" : "",
1437
+ id: R.value,
1438
+ contents: G == null ? void 0 : G.options
1439
+ });
1440
+ }), C.value = s, V.value = s;
1441
+ }, u = (s) => {
1442
+ let x = h(E.value);
1443
+ x = x == null ? void 0 : x.map((T) => (T.value = s == null ? void 0 : s[T.name], T)), E.value = x;
1444
+ }, j = async (s) => {
1445
+ var x, T, b, G, ne, D, g, oe, X, ce, ge, ke;
1446
+ if ((s == null ? void 0 : s.类型) !== ((T = (x = V.value) == null ? void 0 : x.find((P) => (P == null ? void 0 : P.label) === "类型")) == null ? void 0 : T.value)) {
1447
+ let P = [];
1448
+ const ae = await ((ne = (G = (b = be) == null ? void 0 : b.find((Q) => (Q == null ? void 0 : Q.key) === ((s == null ? void 0 : s.类型) === "" ? "Input" : s == null ? void 0 : s.类型))) == null ? void 0 : G.value) == null ? void 0 : ne.value) ? await ((ce = (X = (oe = be) == null ? void 0 : oe.find((Q) => (Q == null ? void 0 : Q.key) === ((s == null ? void 0 : s.类型) === "" ? "Input" : s == null ? void 0 : s.类型))) == null ? void 0 : X.value) == null ? void 0 : ce.value) : (g = (D = be) == null ? void 0 : D.find((Q) => (Q == null ? void 0 : Q.key) === ((s == null ? void 0 : s.类型) === "" ? "Input" : s == null ? void 0 : s.类型))) == null ? void 0 : g.value;
1449
+ if (ae == null || ae.forEach((Q) => {
1450
+ R.value++, P.push({
1451
+ label: Q == null ? void 0 : Q.label,
1452
+ name: Q == null ? void 0 : Q.label,
1453
+ type: Q.type,
1454
+ value: (s == null ? void 0 : s[Q.label]) ?? "",
1455
+ id: R.value,
1456
+ contents: Q == null ? void 0 : Q.options
1457
+ });
1458
+ }), s != null && s.菜单选项 && ((ge = s == null ? void 0 : s.菜单选项) == null ? void 0 : ge.length) > 0) {
1459
+ const Q = await Ye(s == null ? void 0 : s.菜单选项);
1460
+ P = P == null ? void 0 : P.map((ue) => ((ue == null ? void 0 : ue.name) === "组信息选项" && (ue.contents = Q), ue));
1461
+ }
1462
+ V.value = await Ge(h(P)), C.value = await Ge(h(P));
1463
+ } else {
1464
+ let P = h(V.value);
1465
+ if (P = P == null ? void 0 : P.map((ae) => (ae.value = s == null ? void 0 : s[ae.name], ae)), s != null && s.菜单选项 && ((ke = s == null ? void 0 : s.菜单选项) == null ? void 0 : ke.length) > 0) {
1466
+ const ae = await Ye(s == null ? void 0 : s.菜单选项);
1467
+ P = P == null ? void 0 : P.map((Q) => ((Q == null ? void 0 : Q.name) === "组信息选项" && (Q.contents = ae), Q));
1468
+ }
1469
+ P = qe(P), V.value = await Ge(h(P));
1470
+ }
1471
+ }, S = (s) => {
1472
+ s || (C.value = V.value);
1473
+ }, M = async (s) => {
1474
+ }, re = async () => {
1475
+ var b, G, ne, D, g, oe, X, ce, ge, ke;
1476
+ C.value = V.value;
1477
+ let s = {};
1478
+ _.value !== "" ? s.id = _.value : (R.value++, s.id = "id" + R.value);
1479
+ let x = await ((ne = (G = (b = be) == null ? void 0 : b.find((P) => {
1480
+ var ae, Q;
1481
+ return (P == null ? void 0 : P.key) === (((Q = (ae = C.value) == null ? void 0 : ae.find((ue) => (ue == null ? void 0 : ue.label) === "类型")) == null ? void 0 : Q.value) ?? "label");
1482
+ })) == null ? void 0 : G.value) == null ? void 0 : ne.value) ?? ((g = (D = be) == null ? void 0 : D.find((P) => {
1483
+ var ae, Q;
1484
+ return (P == null ? void 0 : P.key) === (((Q = (ae = C.value) == null ? void 0 : ae.find((ue) => (ue == null ? void 0 : ue.label) === "类型")) == null ? void 0 : Q.value) ?? "label");
1485
+ })) == null ? void 0 : g.value);
1486
+ if ((oe = C.value) == null || oe.forEach((P) => {
1487
+ const ae = x == null ? void 0 : x.find((Q) => (Q == null ? void 0 : Q.label) === (P == null ? void 0 : P.label));
1488
+ ae && (s[ae.key] = P.value);
1489
+ }), s.width = 1, s.key = s == null ? void 0 : s.label, (X = k.value) != null && X.find((P) => P.id === s.id))
1490
+ k.value = (ce = k.value) == null ? void 0 : ce.map((P) => (P.id === s.id && (P = s), P));
1491
+ else {
1492
+ let P = h(k.value);
1493
+ P.push(s), k.value = P;
1494
+ }
1495
+ k.value = k.value.map(({ id: P, ...ae }) => ae), p.value = !1, _.value = "";
1496
+ let T = h(d.originalItemContents);
1497
+ (ge = h(d.originalItemContents)) != null && ge.find((P) => (P == null ? void 0 : P.key) === "formContent") ? T = (ke = h(d.originalItemContents)) == null ? void 0 : ke.map((P) => ((P == null ? void 0 : P.key) === "formContent" && (P.contents = k.value), P)) : T.push({
1498
+ key: "formContent",
1499
+ contents: k.value
1500
+ }), a("change", T);
1501
+ }, te = () => {
1502
+ p.value = !1, v.value = !1, _.value = "", V.value = [], E.value = [];
1503
+ };
1504
+ return Ce(
1505
+ () => d.originalItemContents,
1506
+ () => {
1507
+ var x, T, b, G, ne, D;
1508
+ if (!d.originalItemContents || d.originalItemContents.length === 0) return;
1509
+ const s = h(d.originalItemContents);
1510
+ k.value = ((x = s == null ? void 0 : s.find((g) => (g == null ? void 0 : g.key) === "formContent")) == null ? void 0 : x.contents) ?? [], $.value = ((T = s == null ? void 0 : s.find((g) => (g == null ? void 0 : g.key) === "formButton")) == null ? void 0 : T.contents) ?? [], z.value = (b = s == null ? void 0 : s.find((g) => (g == null ? void 0 : g.key) === "enableWrap")) != null && b.contents ? !((G = s == null ? void 0 : s.find((g) => (g == null ? void 0 : g.key) === "enableWrap")) != null && G.contents) : !0, k.value = (ne = h(k.value)) == null ? void 0 : ne.map((g, oe) => {
1511
+ let X = g;
1512
+ return X.id = (g == null ? void 0 : g.id) ?? oe, g != null && g.label || (g.label = (g == null ? void 0 : g.key) ?? (g == null ? void 0 : g.label) ?? ""), g != null && g.type || (g.type = (g == null ? void 0 : g.type) ?? ""), g.contents = (g == null ? void 0 : g.options) ?? "", X;
1513
+ }), k.value = qe(k.value), $.value = (D = $.value) == null ? void 0 : D.map((g, oe) => g = {
1514
+ label: (g == null ? void 0 : g.label) ?? "",
1515
+ type: (g == null ? void 0 : g.type) ?? "",
1516
+ background: (g == null ? void 0 : g.background) ?? "var(--ssComponent-primary-color)",
1517
+ id: oe
1518
+ });
1519
+ },
1520
+ { deep: !0, immediate: !0 }
1521
+ ), (s, x) => {
1522
+ const T = fe("svg-icon");
1523
+ return A(), W("div", Va, [
1524
+ i("div", Ra, [
1525
+ i("div", Na, [
1526
+ x[2] || (x[2] = i("div", null, q("表单内容"), -1)),
1527
+ i("div", {
1528
+ class: "icon-content",
1529
+ onClick: n
1530
+ }, [
1531
+ N(T, {
1532
+ name: "Plus",
1533
+ class: "icon-size"
1534
+ }),
1535
+ x[1] || (x[1] = i("div", null, q("新增"), -1))
1536
+ ])
1537
+ ]),
1538
+ i("div", ja, [
1539
+ (A(!0), W(ve, null, he(k.value, (b, G) => (A(), W("div", { key: G }, [
1540
+ i("div", Ua, [
1541
+ i("div", null, q(b.label), 1),
1542
+ i("div", Pa, [
1543
+ N(T, {
1544
+ name: "ChildFix",
1545
+ class: "svg-icon-content",
1546
+ style: { width: "24px", height: "24px" },
1547
+ onClick: (ne) => O(b)
1548
+ }, null, 8, ["onClick"]),
1549
+ N(T, {
1550
+ name: "ChildDelete",
1551
+ class: "svg-icon-content",
1552
+ style: { width: "24px", height: "24px" },
1553
+ onClick: (ne) => w(b)
1554
+ }, null, 8, ["onClick"])
1555
+ ])
1556
+ ])
1557
+ ]))), 128))
1558
+ ]),
1559
+ i("div", Wa, [
1560
+ x[4] || (x[4] = i("div", null, q("表单按钮"), -1)),
1561
+ i("div", {
1562
+ class: "icon-content",
1563
+ onClick: l
1564
+ }, [
1565
+ N(T, {
1566
+ name: "Plus",
1567
+ class: "icon-size"
1568
+ }),
1569
+ x[3] || (x[3] = i("div", null, q("新增"), -1))
1570
+ ])
1571
+ ]),
1572
+ i("div", za, [
1573
+ (A(!0), W(ve, null, he($.value, (b, G) => (A(), W("div", { key: G }, [
1574
+ i("div", Ma, [
1575
+ i("div", null, q(b.label), 1),
1576
+ i("div", Ka, [
1577
+ N(T, {
1578
+ name: "ChildFix",
1579
+ class: "svg-icon-content",
1580
+ style: { width: "24px", height: "24px" },
1581
+ onClick: (ne) => t(b)
1582
+ }, null, 8, ["onClick"]),
1583
+ N(T, {
1584
+ name: "ChildDelete",
1585
+ class: "svg-icon-content",
1586
+ style: { width: "24px", height: "24px" },
1587
+ onClick: (ne) => e(b)
1588
+ }, null, 8, ["onClick"])
1589
+ ])
1590
+ ])
1591
+ ]))), 128))
1592
+ ]),
1593
+ x[6] || (x[6] = i("div", { class: "operate-title" }, [
1594
+ i("div", null, q("表单布局"))
1595
+ ], -1)),
1596
+ i("div", Ga, [
1597
+ x[5] || (x[5] = i("div", { class: "operate-center-content" }, q("是否自动撑宽"), -1)),
1598
+ N(cl, {
1599
+ modelValue: z.value,
1600
+ "onUpdate:modelValue": x[0] || (x[0] = (b) => z.value = b)
1601
+ }, null, 8, ["modelValue"])
1602
+ ])
1603
+ ]),
1604
+ N(Ie, {
1605
+ visible: p.value,
1606
+ onBeforeDestroy: te,
1607
+ width: 840
1608
+ }, {
1609
+ default: ee(() => [
1610
+ i("div", Ja, [
1611
+ (A(), pe(xe, {
1612
+ rowContents: C.value,
1613
+ key: C.value,
1614
+ isEnableWrap: !0,
1615
+ onChange: j,
1616
+ onChangeVisible: S,
1617
+ onBlurChange: M
1618
+ }, null, 8, ["rowContents"]))
1619
+ ])
1620
+ ]),
1621
+ footer: ee(() => [
1622
+ i("div", { class: "dialog-footer" }, [
1623
+ i("div", {
1624
+ onClick: te,
1625
+ class: "cancel-button button"
1626
+ }, q("取消")),
1627
+ i("div", {
1628
+ class: "ok-button button",
1629
+ onClick: re
1630
+ }, q("确认"))
1631
+ ])
1632
+ ]),
1633
+ _: 1
1634
+ }, 8, ["visible"]),
1635
+ N(Ie, {
1636
+ visible: v.value,
1637
+ onBeforeDestroy: te,
1638
+ width: 840
1639
+ }, {
1640
+ default: ee(() => [
1641
+ i("div", qa, [
1642
+ (A(), pe(xe, {
1643
+ rowContents: L.value,
1644
+ key: L.value,
1645
+ isEnableWrap: !0,
1646
+ onChange: u
1647
+ }, null, 8, ["rowContents"]))
1648
+ ])
1649
+ ]),
1650
+ footer: ee(() => [
1651
+ i("div", { class: "dialog-footer" }, [
1652
+ i("div", {
1653
+ onClick: te,
1654
+ class: "cancel-button button"
1655
+ }, q("取消")),
1656
+ i("div", {
1657
+ class: "ok-button button",
1658
+ onClick: c
1659
+ }, q("确认"))
1660
+ ])
1661
+ ]),
1662
+ _: 1
1663
+ }, 8, ["visible"])
1664
+ ]);
1665
+ };
1666
+ }
1667
+ }, rl = /* @__PURE__ */ ye(Ha, [["__scopeId", "data-v-36936e3f"]]), Qa = { class: "step-module content" }, Xa = { class: "module-data" }, Ya = { class: "step-module layout" }, Za = { class: "form-content" }, en = /* @__PURE__ */ ze({
1668
+ __name: "operate",
1669
+ props: {
1670
+ itemContents: {
1671
+ type: Array,
1672
+ default: () => []
1673
+ },
1674
+ originalItemContents: {
1675
+ type: Array,
1676
+ default: () => []
1677
+ }
1678
+ },
1679
+ emits: ["change"],
1680
+ setup(y, { emit: F }) {
1681
+ const d = y, a = F, p = B([
1682
+ {
1683
+ label: "方向:",
1684
+ prop: "direction",
1685
+ type: "RADIO",
1686
+ contents: [
1687
+ {
1688
+ label: "水平",
1689
+ value: "horizontal"
1690
+ },
1691
+ {
1692
+ label: "垂直",
1693
+ value: "vertical"
1694
+ }
1695
+ ],
1696
+ value: "horizontal"
1697
+ },
1698
+ {
1699
+ label: "是否居中:",
1700
+ prop: "alignCenter",
1701
+ type: "RADIO",
1702
+ contents: [
1703
+ {
1704
+ label: "是",
1705
+ value: !0
1706
+ },
1707
+ {
1708
+ label: "否",
1709
+ value: !1
1710
+ }
1711
+ ],
1712
+ value: !0
1713
+ },
1714
+ // {
1715
+ // label: '是否交互',
1716
+ // prop: 'allowTrigger',
1717
+ // type: 'RADIO',
1718
+ // contents: [
1719
+ // {
1720
+ // label: '是',
1721
+ // value: true,
1722
+ // }, {
1723
+ // label: '否',
1724
+ // value: false,
1725
+ // },
1726
+ // ],
1727
+ // value: 'horizontal'
1728
+ // },
1729
+ {
1730
+ label: "应用简洁风格",
1731
+ prop: "simple",
1732
+ type: "RADIO",
1733
+ contents: [
1734
+ {
1735
+ label: "是",
1736
+ value: !0
1737
+ },
1738
+ {
1739
+ label: "否",
1740
+ value: !1
1741
+ }
1742
+ ],
1743
+ value: !1
1744
+ }
1745
+ ]), C = B([
1746
+ {
1747
+ label: "",
1748
+ prop: "index",
1749
+ type: "input",
1750
+ value: "",
1751
+ isFormColHidden: !0
1752
+ },
1753
+ {
1754
+ label: "标题",
1755
+ prop: "title",
1756
+ type: "input",
1757
+ value: ""
1758
+ },
1759
+ {
1760
+ label: "描述",
1761
+ prop: "description",
1762
+ type: "input",
1763
+ value: ""
1764
+ }
1765
+ ]), V = B([
1766
+ {
1767
+ label: "取消",
1768
+ background: "#c0c4cc"
1769
+ },
1770
+ {
1771
+ label: "确认",
1772
+ background: "#436aaf"
1773
+ }
1774
+ ]), v = el({
1775
+ visible: !1,
1776
+ width: "40%",
1777
+ title: "步骤条"
1778
+ }), $ = B("create"), k = B({}), _ = B([]), z = (t) => {
1779
+ var c;
1780
+ k.value = t, a("change", (c = E()) == null ? void 0 : c.compData);
1781
+ }, R = (t, c) => {
1782
+ var w, e;
1783
+ switch (t) {
1784
+ case "create":
1785
+ (w = C.value) == null || w.forEach((l) => {
1786
+ l.value = "";
1787
+ }), $.value = "create", v.visible = !0;
1788
+ break;
1789
+ case "update":
1790
+ (e = C.value) == null || e.forEach((l) => {
1791
+ l.value = c[l == null ? void 0 : l.prop];
1792
+ }), $.value = "update", v.visible = !0;
1793
+ break;
1794
+ case "delete":
1795
+ _.value.splice(c, 1), $.value = "delete";
1796
+ break;
1797
+ }
1798
+ }, L = (t) => {
1799
+ var c, w, e;
1800
+ if ((t == null ? void 0 : t.buttonName) === "确认") {
1801
+ const l = h(t == null ? void 0 : t.content);
1802
+ switch (Object.keys(l).forEach((n) => {
1803
+ l[n] === "" && delete l[n];
1804
+ }), $.value) {
1805
+ case "create":
1806
+ _.value.push({
1807
+ ...l,
1808
+ index: ((c = _.value) == null ? void 0 : c.length) + 1
1809
+ });
1810
+ break;
1811
+ case "update":
1812
+ _.value = (w = _.value) == null ? void 0 : w.map((n) => n.index === (l == null ? void 0 : l.index) ? {
1813
+ ...n,
1814
+ title: l == null ? void 0 : l.title,
1815
+ description: l == null ? void 0 : l.description
1816
+ } : n);
1817
+ break;
1818
+ }
1819
+ a("change", (e = E()) == null ? void 0 : e.compData), v.visible = !1;
1820
+ } else
1821
+ v.visible = !1;
1822
+ }, E = () => ({
1823
+ comp: "Step",
1824
+ compData: [
1825
+ {
1826
+ key: "stepList",
1827
+ contents: _.value
1828
+ },
1829
+ {
1830
+ key: "stepConfig",
1831
+ contents: k.value
1832
+ }
1833
+ ]
1834
+ }), O = () => {
1835
+ v.visible = !1;
1836
+ };
1837
+ return Ce(() => d == null ? void 0 : d.itemContents, (t) => {
1838
+ var c, w;
1839
+ t && (k.value = ((c = t == null ? void 0 : t.find((e) => e.key === "stepConfig")) == null ? void 0 : c.contents) ?? {}, _.value = ((w = t == null ? void 0 : t.find((e) => e.key === "stepList")) == null ? void 0 : w.contents) ?? []);
1840
+ }, { immediate: !0 }), (t, c) => {
1841
+ const w = fe("svg-icon"), e = fe("el-button");
1842
+ return A(), W(ve, null, [
1843
+ i("div", null, [
1844
+ i("div", Qa, [
1845
+ c[2] || (c[2] = i("h4", { class: "module-title" }, "内容", -1)),
1846
+ i("div", {
1847
+ class: "module-icon",
1848
+ onClick: c[0] || (c[0] = (l) => R("create"))
1849
+ }, [
1850
+ N(w, {
1851
+ name: "Plus",
1852
+ class: "icon-size"
1853
+ }),
1854
+ c[1] || (c[1] = i("div", null, "新增", -1))
1855
+ ])
1856
+ ]),
1857
+ i("div", Xa, [
1858
+ (A(!0), W(ve, null, he(_.value, (l, n) => (A(), W("div", {
1859
+ class: "module-data-item",
1860
+ key: n
1861
+ }, [
1862
+ i("span", null, q(l == null ? void 0 : l.title), 1),
1863
+ i("div", null, [
1864
+ N(e, {
1865
+ type: "primary",
1866
+ size: "small",
1867
+ onClick: (u) => R("update", { ...l, index: n + 1 })
1868
+ }, {
1869
+ default: ee(() => c[3] || (c[3] = [
1870
+ Ue("修改")
1871
+ ])),
1872
+ _: 2,
1873
+ __: [3]
1874
+ }, 1032, ["onClick"]),
1875
+ N(e, {
1876
+ type: "danger",
1877
+ size: "small",
1878
+ onClick: (u) => R("delete", n)
1879
+ }, {
1880
+ default: ee(() => c[4] || (c[4] = [
1881
+ Ue("删除")
1882
+ ])),
1883
+ _: 2,
1884
+ __: [4]
1885
+ }, 1032, ["onClick"])
1886
+ ])
1887
+ ]))), 128))
1888
+ ]),
1889
+ i("div", Ya, [
1890
+ c[5] || (c[5] = i("div", { class: "module-title" }, "布局", -1)),
1891
+ N(xe, {
1892
+ rowContents: p.value,
1893
+ onChange: z
1894
+ }, null, 8, ["rowContents"])
1895
+ ])
1896
+ ]),
1897
+ N(Ie, {
1898
+ visible: v.visible,
1899
+ title: v.title,
1900
+ onBeforeDestroy: O,
1901
+ width: v.width
1902
+ }, {
1903
+ default: ee(() => [
1904
+ i("div", Za, [
1905
+ (A(), pe(xe, {
1906
+ rowContents: C.value,
1907
+ key: C.value,
1908
+ isEnableWrap: !1,
1909
+ isButtonRow: !1,
1910
+ isStartJustify: !1,
1911
+ buttonValue: V.value,
1912
+ onOnButtonClick: L
1913
+ }, null, 8, ["rowContents", "buttonValue"]))
1914
+ ])
1915
+ ]),
1916
+ _: 1
1917
+ }, 8, ["visible", "title", "width"])
1918
+ ], 64);
1919
+ };
1920
+ }
1921
+ }), ln = /* @__PURE__ */ ye(en, [["__scopeId", "data-v-47438605"]]), an = { class: "step-module content" }, nn = { class: "module-data" }, on = { class: "step-module layout" }, sn = { class: "form-content" }, un = /* @__PURE__ */ ze({
1922
+ __name: "operate",
1923
+ props: {
1924
+ itemContents: {
1925
+ type: Array,
1926
+ default: () => []
1927
+ },
1928
+ originalItemContents: {
1929
+ type: Array,
1930
+ default: () => []
1931
+ }
1932
+ },
1933
+ emits: ["change"],
1934
+ setup(y, { emit: F }) {
1935
+ const d = y, a = F, p = B("create"), C = B({}), V = B([]), v = B([
1936
+ {
1937
+ label: "方向:",
1938
+ prop: "placement",
1939
+ type: "radio",
1940
+ contents: [
1941
+ {
1942
+ label: "底部",
1943
+ value: "bottom"
1944
+ },
1945
+ {
1946
+ label: "顶部",
1947
+ value: "top"
1948
+ }
1949
+ ],
1950
+ value: "bottom"
1951
+ },
1952
+ {
1953
+ label: "节点类型:",
1954
+ prop: "type",
1955
+ type: "select",
1956
+ contents: [
1957
+ {
1958
+ label: "primary",
1959
+ value: "primary"
1960
+ },
1961
+ {
1962
+ label: "success",
1963
+ value: "success"
1964
+ },
1965
+ {
1966
+ label: "warning",
1967
+ value: "warning"
1968
+ },
1969
+ {
1970
+ label: "danger",
1971
+ value: "danger"
1972
+ },
1973
+ {
1974
+ label: "info",
1975
+ value: "info"
1976
+ }
1977
+ ],
1978
+ value: "primary"
1979
+ },
1980
+ {
1981
+ label: "颜色:",
1982
+ prop: "color",
1983
+ type: "color",
1984
+ value: ""
1985
+ },
1986
+ {
1987
+ label: "尺寸:",
1988
+ prop: "size",
1989
+ type: "radio",
1990
+ contents: [
1991
+ {
1992
+ label: "normal",
1993
+ value: "normal"
1994
+ },
1995
+ {
1996
+ label: "large",
1997
+ value: "large"
1998
+ }
1999
+ ],
2000
+ value: "normal"
2001
+ },
2002
+ {
2003
+ label: "是否空心",
2004
+ prop: "isHollow",
2005
+ type: "RADIO",
2006
+ contents: [
2007
+ {
2008
+ label: "是",
2009
+ value: !0
2010
+ },
2011
+ {
2012
+ label: "否",
2013
+ value: !1
2014
+ }
2015
+ ],
2016
+ value: !0
2017
+ },
2018
+ {
2019
+ label: "是否居中",
2020
+ prop: "isCenter",
2021
+ type: "RADIO",
2022
+ contents: [
2023
+ {
2024
+ label: "是",
2025
+ value: !0
2026
+ },
2027
+ {
2028
+ label: "否",
2029
+ value: !1
2030
+ }
2031
+ ],
2032
+ value: !0
2033
+ }
2034
+ ]), $ = B([
2035
+ {
2036
+ label: "",
2037
+ prop: "index",
2038
+ type: "input",
2039
+ value: "",
2040
+ isFormColHidden: !0
2041
+ },
2042
+ {
2043
+ label: "内容",
2044
+ prop: "content",
2045
+ type: "input",
2046
+ value: ""
2047
+ },
2048
+ {
2049
+ label: "时间戳",
2050
+ prop: "timestamp",
2051
+ type: "datetime",
2052
+ value: ""
2053
+ }
2054
+ ]), k = B([
2055
+ {
2056
+ label: "取消",
2057
+ background: "#c0c4cc"
2058
+ },
2059
+ {
2060
+ label: "确认",
2061
+ background: "#436aaf"
2062
+ }
2063
+ ]), _ = el({
2064
+ visible: !1,
2065
+ width: "40%",
2066
+ title: "时间线"
2067
+ }), z = (t) => {
2068
+ var c;
2069
+ C.value = t, console.log(1212, t), a("change", (c = E()) == null ? void 0 : c.compData);
2070
+ }, R = (t, c) => {
2071
+ var w, e;
2072
+ switch (t) {
2073
+ case "create":
2074
+ (w = $.value) == null || w.forEach((l) => {
2075
+ l.value = "";
2076
+ }), p.value = "create", _.visible = !0;
2077
+ break;
2078
+ case "update":
2079
+ (e = $.value) == null || e.forEach((l) => {
2080
+ l.value = c[l == null ? void 0 : l.prop];
2081
+ }), p.value = "update", _.visible = !0;
2082
+ break;
2083
+ case "delete":
2084
+ V.value.splice(c, 1), p.value = "delete";
2085
+ break;
2086
+ }
2087
+ }, L = (t) => {
2088
+ var c, w, e, l;
2089
+ if ((t == null ? void 0 : t.buttonName) === "确认") {
2090
+ const n = h(t == null ? void 0 : t.content);
2091
+ switch (Object.keys(n).forEach((u) => {
2092
+ n[u] === "" && delete n[u];
2093
+ }), p.value) {
2094
+ case "create":
2095
+ console.log(1335, V.value, n), (w = V.value) == null || w.push({
2096
+ ...n,
2097
+ index: ((c = V.value) == null ? void 0 : c.length) + 1
2098
+ });
2099
+ break;
2100
+ case "update":
2101
+ V.value = (e = V.value) == null ? void 0 : e.map((u) => u.index === (n == null ? void 0 : n.index) ? {
2102
+ ...u,
2103
+ content: n == null ? void 0 : n.content,
2104
+ timestamp: n == null ? void 0 : n.timestamp
2105
+ } : u);
2106
+ break;
2107
+ }
2108
+ a("change", (l = E()) == null ? void 0 : l.compData), _.visible = !1;
2109
+ } else
2110
+ _.visible = !1;
2111
+ }, E = () => ({
2112
+ comp: "TimeLine",
2113
+ compData: [
2114
+ {
2115
+ key: "timeLineList",
2116
+ contents: V.value
2117
+ },
2118
+ {
2119
+ key: "timeLineConfig",
2120
+ contents: C.value
2121
+ }
2122
+ ]
2123
+ }), O = () => {
2124
+ _.visible = !1;
2125
+ };
2126
+ return Ce(() => d == null ? void 0 : d.itemContents, (t) => {
2127
+ var c, w;
2128
+ t && (C.value = ((c = t == null ? void 0 : t.find((e) => e.key === "timeLineConfig")) == null ? void 0 : c.contents) ?? {}, V.value = ((w = t == null ? void 0 : t.find((e) => e.key === "timeLineList")) == null ? void 0 : w.contents) ?? []);
2129
+ }, { immediate: !0 }), (t, c) => {
2130
+ const w = fe("svg-icon"), e = fe("el-button");
2131
+ return A(), W(ve, null, [
2132
+ i("div", null, [
2133
+ i("div", an, [
2134
+ c[2] || (c[2] = i("h4", { class: "module-title" }, "内容", -1)),
2135
+ i("div", {
2136
+ class: "module-icon",
2137
+ onClick: c[0] || (c[0] = (l) => R("create"))
2138
+ }, [
2139
+ N(w, {
2140
+ name: "Plus",
2141
+ class: "icon-size"
2142
+ }),
2143
+ c[1] || (c[1] = i("div", null, "新增", -1))
2144
+ ])
2145
+ ]),
2146
+ i("div", nn, [
2147
+ (A(!0), W(ve, null, he(V.value, (l, n) => (A(), W("div", {
2148
+ class: "module-data-item",
2149
+ key: n
2150
+ }, [
2151
+ i("span", null, q(l == null ? void 0 : l.content), 1),
2152
+ i("div", null, [
2153
+ N(e, {
2154
+ type: "primary",
2155
+ size: "small",
2156
+ onClick: (u) => R("update", { ...l, index: n + 1 })
2157
+ }, {
2158
+ default: ee(() => c[3] || (c[3] = [
2159
+ Ue("修改")
2160
+ ])),
2161
+ _: 2,
2162
+ __: [3]
2163
+ }, 1032, ["onClick"]),
2164
+ N(e, {
2165
+ type: "danger",
2166
+ size: "small",
2167
+ onClick: (u) => R("delete", n)
2168
+ }, {
2169
+ default: ee(() => c[4] || (c[4] = [
2170
+ Ue("删除")
2171
+ ])),
2172
+ _: 2,
2173
+ __: [4]
2174
+ }, 1032, ["onClick"])
2175
+ ])
2176
+ ]))), 128))
2177
+ ]),
2178
+ i("div", on, [
2179
+ c[5] || (c[5] = i("div", { class: "module-title" }, "布局", -1)),
2180
+ N(xe, {
2181
+ rowContents: v.value,
2182
+ onChange: z
2183
+ }, null, 8, ["rowContents"])
2184
+ ])
2185
+ ]),
2186
+ N(Ie, {
2187
+ visible: _.visible,
2188
+ title: _.title,
2189
+ onBeforeDestroy: O,
2190
+ width: _.width
2191
+ }, {
2192
+ default: ee(() => [
2193
+ i("div", sn, [
2194
+ (A(), pe(xe, {
2195
+ rowContents: $.value,
2196
+ key: $.value,
2197
+ isEnableWrap: !1,
2198
+ isButtonRow: !1,
2199
+ isStartJustify: !1,
2200
+ buttonValue: k.value,
2201
+ onOnButtonClick: L
2202
+ }, null, 8, ["rowContents", "buttonValue"]))
2203
+ ])
2204
+ ]),
2205
+ _: 1
2206
+ }, 8, ["visible", "title", "width"])
2207
+ ], 64);
2208
+ };
2209
+ }
2210
+ }), rn = /* @__PURE__ */ ye(un, [["__scopeId", "data-v-40aea043"]]), tn = {};
2211
+ function cn(y, F) {
2212
+ return A(), W("div");
2213
+ }
2214
+ const dn = /* @__PURE__ */ ye(tn, [["render", cn]]), vn = { class: "extra-content" }, pn = { key: 0 }, fn = { key: 1 }, hn = {
2215
+ __name: "index",
2216
+ props: {
2217
+ itemData: {
2218
+ type: Array,
2219
+ default: () => []
2220
+ },
2221
+ childItemData: {
2222
+ type: Array,
2223
+ default: () => []
2224
+ },
2225
+ index: Number,
2226
+ changedContent: {
2227
+ type: Object,
2228
+ default: () => {
2229
+ }
2230
+ }
2231
+ },
2232
+ emits: ["change"],
2233
+ setup(y, { emit: F }) {
2234
+ const d = y, a = B(0), p = B(), C = B(), V = F, v = B(!1), $ = B({}), k = B({}), _ = B();
2235
+ Ce(
2236
+ () => [d.itemData],
2237
+ () => {
2238
+ var l;
2239
+ const e = h(d.itemData);
2240
+ p.value = (l = h(e)) == null ? void 0 : l.map((n) => {
2241
+ var u;
2242
+ if (n.key === "extra") {
2243
+ let j = [];
2244
+ (u = n.value) == null || u.forEach((S) => {
2245
+ var M;
2246
+ j.push((M = Object.values(S)) == null ? void 0 : M[0]);
2247
+ }), n.value = j;
2248
+ }
2249
+ return n;
2250
+ });
2251
+ },
2252
+ { deep: !0, immediate: !0 }
2253
+ );
2254
+ const z = (e, l, n, u) => {
2255
+ var S;
2256
+ let j = {};
2257
+ ((S = e == null ? void 0 : e[0]) == null ? void 0 : S.contents) === "详情" && (v.value = !0, j[l] = e, C.value = e == null ? void 0 : e.filter((M) => (M == null ? void 0 : M.key) !== "tableContentName"), $.value = j, k.value = n, _.value = u.id);
2258
+ }, R = (e) => {
2259
+ var M, re, te, s;
2260
+ const l = (re = (M = Object.values(h($.value))) == null ? void 0 : M[0]) == null ? void 0 : re.filter((x) => (x == null ? void 0 : x.key) === "tableContentName"), n = (s = (te = Object.values(h($.value))) == null ? void 0 : te[0]) == null ? void 0 : s.filter((x) => (x == null ? void 0 : x.key) !== "tableContentName"), u = n == null ? void 0 : n.map((x, T) => {
2261
+ var b;
2262
+ return T === e.index && (x == null ? void 0 : x.comp) === "Table" && (x.compData = (b = x.compData) == null ? void 0 : b.map((G) => {
2263
+ var ne, D;
2264
+ return (G == null ? void 0 : G.key) === "tableContents" && (G.contents = (D = (ne = e.content) == null ? void 0 : ne.map((g) => {
2265
+ let oe = {};
2266
+ for (let X in g)
2267
+ X !== "id" && (oe[X] = g[X]);
2268
+ return oe;
2269
+ })) == null ? void 0 : D.map((g) => Object.values(g))), G;
2270
+ })), x;
2271
+ });
2272
+ u.unshift(l == null ? void 0 : l[0]);
2273
+ let j = h($.value), S = {};
2274
+ for (let x in j)
2275
+ S[x] = u;
2276
+ $.value = S;
2277
+ }, L = () => {
2278
+ v.value = !1, $.value = {}, k.value = {}, _.value = void 0, a.value++;
2279
+ }, E = (e) => {
2280
+ var M, re, te, s;
2281
+ const l = (re = (M = Object.values(h($.value))) == null ? void 0 : M[0]) == null ? void 0 : re.filter((x) => (x == null ? void 0 : x.key) === "tableContentName"), n = (s = (te = Object.values(h($.value))) == null ? void 0 : te[0]) == null ? void 0 : s.filter((x) => (x == null ? void 0 : x.key) !== "tableContentName"), u = n == null ? void 0 : n.map((x, T) => (T === e.index && (x.compData = e.contents), x));
2282
+ u.unshift(l == null ? void 0 : l[0]);
2283
+ let j = h($.value), S = {};
2284
+ for (let x in j)
2285
+ S[x] = u;
2286
+ $.value = S;
2287
+ }, O = () => {
2288
+ var l, n;
2289
+ let e = {};
2290
+ for (let u in k.value)
2291
+ u === ((l = Object.keys($.value)) == null ? void 0 : l[0]) ? e[u] = (n = Object.values($.value)) == null ? void 0 : n[0] : e[u] = k.value[u];
2292
+ V("change", {
2293
+ buttonName: "编辑",
2294
+ index: _.value,
2295
+ singleContent: e
2296
+ }, "methodData"), v.value = !1, $.value = {}, k.value = {}, _.value = void 0;
2297
+ }, t = () => {
2298
+ v.value = !1, $.value = {}, k.value = {}, _.value = void 0;
2299
+ }, c = (e) => {
2300
+ V("change", e, "methodData");
2301
+ }, w = (e) => al(e);
2302
+ return (e, l) => (A(), W("div", vn, [
2303
+ (A(!0), W(ve, null, he(p.value, (n, u) => (A(), W("div", { key: a.value }, [
2304
+ (n == null ? void 0 : n.key) === "extra" ? (A(), W("div", pn)) : (A(), W("div", fn, [
2305
+ (A(), pe(Je(w(n.comp)), {
2306
+ itemData: n == null ? void 0 : n.compData,
2307
+ childItemData: n == null ? void 0 : n.itemChildData,
2308
+ key: u,
2309
+ index: (n == null ? void 0 : n.id) ?? u,
2310
+ onContentClick: z,
2311
+ onChange: c
2312
+ }, null, 40, ["itemData", "childItemData", "index"]))
2313
+ ]))
2314
+ ]))), 128)),
2315
+ N(Ie, {
2316
+ visible: v.value,
2317
+ onBeforeDestroy: t
2318
+ }, {
2319
+ default: ee(() => [
2320
+ (A(!0), W(ve, null, he(C.value, (n, u) => (A(), W("div", {
2321
+ key: u,
2322
+ class: "extra-dialog"
2323
+ }, [
2324
+ (A(), pe(Je(w(n.comp)), {
2325
+ itemData: n == null ? void 0 : n.compData,
2326
+ onChange: R,
2327
+ childItemData: n == null ? void 0 : n.itemChildData,
2328
+ key: u,
2329
+ onContentChange: E,
2330
+ index: (n == null ? void 0 : n.id) ?? u,
2331
+ class: "extra-component"
2332
+ }, null, 40, ["itemData", "childItemData", "index"]))
2333
+ ]))), 128))
2334
+ ]),
2335
+ footer: ee(() => [
2336
+ i("div", { class: "dialog-footer" }, [
2337
+ i("div", {
2338
+ class: "cancel-button footer-button",
2339
+ onClick: L
2340
+ }, q("取消")),
2341
+ i("div", {
2342
+ class: "confirm-button footer-button",
2343
+ onClick: O
2344
+ }, q("确认"))
2345
+ ])
2346
+ ]),
2347
+ _: 1
2348
+ }, 8, ["visible"])
2349
+ ]));
2350
+ }
2351
+ }, mn = /* @__PURE__ */ ye(hn, [["__scopeId", "data-v-b0b2f71f"]]), yn = { class: "method-content" }, bn = ["onClick"], Cn = {
2352
+ __name: "index",
2353
+ props: {
2354
+ itemData: {
2355
+ type: Array,
2356
+ default: () => []
2357
+ },
2358
+ childItemData: {
2359
+ type: Array,
2360
+ default: () => []
2361
+ },
2362
+ index: Number,
2363
+ changedContent: {
2364
+ type: Object,
2365
+ default: () => {
2366
+ }
2367
+ }
2368
+ },
2369
+ setup(y) {
2370
+ const F = B([]), d = y, a = Fl(Pe), { itemData: p, isEdit: C } = Me(a), V = (k, _) => {
2371
+ var R;
2372
+ const z = (R = _ == null ? void 0 : _[0]) == null ? void 0 : R.children;
2373
+ return k == null ? void 0 : k.map((L) => {
2374
+ var E;
2375
+ return L = (E = L == null ? void 0 : L.map((O, t) => {
2376
+ var c;
2377
+ return {
2378
+ key: (c = z[t]) == null ? void 0 : c.label,
2379
+ value: O
2380
+ };
2381
+ })) == null ? void 0 : E.filter((O) => O.key), L;
2382
+ });
2383
+ };
2384
+ Ce(
2385
+ () => p.value,
2386
+ async () => {
2387
+ C.value == "view" && await $(h(d.itemData));
2388
+ },
2389
+ { deep: !0 }
2390
+ );
2391
+ const v = async (k) => {
2392
+ var e, l, n, u, j, S;
2393
+ let _ = {};
2394
+ if ((e = h(k.content)) == null || e.forEach((M, re) => {
2395
+ var te, s, x, T, b, G, ne, D, g, oe, X, ce, ge, ke, P, ae, Q;
2396
+ if ((M == null ? void 0 : M.comp) === "Table") {
2397
+ let ue = (T = (x = (s = (te = M == null ? void 0 : M.compData) == null ? void 0 : te.find((se) => (se == null ? void 0 : se.key) === "header")) == null ? void 0 : s.contents) == null ? void 0 : x[0]) == null ? void 0 : T.some((se) => se == null ? void 0 : se.children), _e = (ne = (G = (b = M == null ? void 0 : M.compData) == null ? void 0 : b.find((se) => (se == null ? void 0 : se.key) === "tableContents")) == null ? void 0 : G.contents) == null ? void 0 : ne.map((se) => se.slice(1)), de = (ce = (X = (oe = (g = (D = M == null ? void 0 : M.compData) == null ? void 0 : D.find((se) => (se == null ? void 0 : se.key) === "header")) == null ? void 0 : g.contents) == null ? void 0 : oe[0]) == null ? void 0 : X[0]) == null ? void 0 : ce.label, Ee = (P = (ke = (ge = M == null ? void 0 : M.compData) == null ? void 0 : ge.find((se) => (se == null ? void 0 : se.key) === "header")) == null ? void 0 : ke.contents) == null ? void 0 : P[0];
2398
+ if (ue)
2399
+ _[de] = V(_e, Ee);
2400
+ else {
2401
+ const se = [];
2402
+ Ee = Ee.slice(1, Ee.length - 1), Ee == null || Ee.forEach((We, Be) => {
2403
+ _e == null || _e.forEach((Se) => {
2404
+ se.push({
2405
+ key: We.label + Se[0],
2406
+ value: Se[Be + 1]
2407
+ });
2408
+ });
2409
+ }), _["form" + re] = se;
2410
+ }
2411
+ } else {
2412
+ const ue = (Q = (ae = M.compData) == null ? void 0 : ae.find((de) => (de == null ? void 0 : de.key) === "formContent")) == null ? void 0 : Q.contents;
2413
+ _.form = {};
2414
+ const _e = [];
2415
+ ue == null || ue.forEach((de) => {
2416
+ de.key !== "" && (de = {
2417
+ key: (de == null ? void 0 : de.key) ?? (de == null ? void 0 : de.label),
2418
+ value: de == null ? void 0 : de.value
2419
+ }, _e.push(de));
2420
+ }), _.form = _e;
2421
+ }
2422
+ }), k.api) {
2423
+ const M = await Bl.post(k.api, {
2424
+ data: _,
2425
+ templateFileName: (l = k == null ? void 0 : k.extraContent) == null ? void 0 : l[0]
2426
+ }, {
2427
+ responseType: "blob",
2428
+ // 必须设置
2429
+ headers: {
2430
+ "Content-Type": "application/json"
2431
+ }
2432
+ });
2433
+ var z = new Blob([M.data], {
2434
+ type: "application/octet-stream;charset=UTF-8"
2435
+ }), R = M.headers["content-disposition"], L = new RegExp("filename=([^;]+\\.[^\\.;]+);*"), E = L.exec(R), O = ((j = (u = (n = k == null ? void 0 : k.extraContent) == null ? void 0 : n[0]) == null ? void 0 : u.split(".")) == null ? void 0 : j[0]) + "." + ((S = E[1].split(".")) == null ? void 0 : S[1]), t = document.createElement("a"), c = window.URL.createObjectURL(z), w = /^["](.*)["]$/g;
2436
+ t.style.display = "none", t.href = c, t.download = decodeURI(O.replace(w, "$1")), document.body.appendChild(t), t.click(), document.body.removeChild(t), window.URL.revokeObjectURL(c);
2437
+ }
2438
+ }, $ = async (k) => {
2439
+ var L;
2440
+ const _ = h(k), z = _ == null ? void 0 : _.map(async (E) => {
2441
+ var l, n, u, j, S, M, re;
2442
+ const t = (l = (await il({
2443
+ key: {
2444
+ systemKey: sessionStorage.getItem("systemKey"),
2445
+ parentTable: "",
2446
+ type: "method",
2447
+ methodName: E.method
2448
+ }
2449
+ })).data.result) == null ? void 0 : l[0], c = await il({
2450
+ key: {
2451
+ systemKey: sessionStorage.getItem("systemKey"),
2452
+ type: "methodData",
2453
+ tableId: t == null ? void 0 : t.id
2454
+ }
2455
+ }), w = await Cl((n = E == null ? void 0 : E.value) == null ? void 0 : n[0], sessionStorage.getItem("systemKey"), ""), e = (u = c.data.result) == null ? void 0 : u[0];
2456
+ return {
2457
+ buttonName: (j = t == null ? void 0 : t.key) == null ? void 0 : j.methodKey,
2458
+ api: (M = (S = e == null ? void 0 : e.value) == null ? void 0 : S.tableData) == null ? void 0 : M[0],
2459
+ content: w == null ? void 0 : w.filter((te) => te.comp !== "methodButton"),
2460
+ extraContent: (re = h(E.value)) == null ? void 0 : re.slice(1)
2461
+ };
2462
+ }), R = await Promise.all(z);
2463
+ F.value = R == null ? void 0 : R.filter((E) => E == null ? void 0 : E.extraContent), (L = F.value) == null || L.forEach((E) => {
2464
+ var O;
2465
+ E.api === "" && ((O = E.content) == null || O.forEach((t) => {
2466
+ var c;
2467
+ t.comp == "Table" && a.setExtraContents(gl(t.compData, (c = E.extraContent) == null ? void 0 : c[0]));
2468
+ }));
2469
+ });
2470
+ };
2471
+ return Ce(
2472
+ () => d.itemData,
2473
+ async () => {
2474
+ C.value == "view" && await $(h(d.itemData));
2475
+ },
2476
+ { immediate: !0, deep: !0 }
2477
+ ), (k, _) => (A(), W("div", yn, [
2478
+ (A(!0), W(ve, null, he(F.value, (z) => (A(), W("div", null, [
2479
+ z.api !== "" ? (A(), W("div", {
2480
+ key: 0,
2481
+ onClick: (R) => v(z),
2482
+ class: "method-buttons"
2483
+ }, q(z.buttonName), 9, bn)) : Oe("", !0)
2484
+ ]))), 256))
2485
+ ]));
2486
+ }
2487
+ }, gn = /* @__PURE__ */ ye(Cn, [["__scopeId", "data-v-0c52611a"]]), kn = {};
2488
+ function _n(y, F) {
2489
+ return " 567 ";
2490
+ }
2491
+ const wn = /* @__PURE__ */ ye(kn, [["render", _n]]), xn = { class: "module content" }, In = { class: "module data" }, Dn = { class: "module layout" }, $n = { class: "form-content" }, Tn = /* @__PURE__ */ ze({
2492
+ __name: "operate",
2493
+ props: {
2494
+ itemContents: {
2495
+ type: Array,
2496
+ default: () => []
2497
+ },
2498
+ originalItemContents: {
2499
+ type: Array,
2500
+ default: () => []
2501
+ }
2502
+ },
2503
+ emits: ["change"],
2504
+ setup(y, { emit: F }) {
2505
+ const d = y, a = F, p = el({
2506
+ visible: !1,
2507
+ width: "40%",
2508
+ title: "签名配置"
2509
+ }), C = B("create"), V = B([
2510
+ {
2511
+ label: "取消",
2512
+ background: "#c0c4cc"
2513
+ },
2514
+ {
2515
+ label: "确认",
2516
+ background: "#436aaf"
2517
+ }
2518
+ ]), v = B([
2519
+ {
2520
+ label: "宽度(%):",
2521
+ prop: "signPadWidth",
2522
+ type: "number",
2523
+ value: "30"
2524
+ },
2525
+ {
2526
+ label: "弹窗名称:",
2527
+ prop: "dialogTitle",
2528
+ type: "input",
2529
+ value: ""
2530
+ },
2531
+ {
2532
+ label: "弹窗宽度(%):",
2533
+ prop: "dialogWidth",
2534
+ type: "number",
2535
+ value: "30"
2536
+ },
2537
+ {
2538
+ label: "弹窗显示:",
2539
+ prop: "dialogShow",
2540
+ type: "radio",
2541
+ contents: [
2542
+ {
2543
+ label: "显示",
2544
+ value: !0
2545
+ },
2546
+ {
2547
+ label: "隐藏",
2548
+ value: !1
2549
+ }
2550
+ ],
2551
+ value: !1,
2552
+ isFormColHidden: !0
2553
+ },
2554
+ {
2555
+ label: "路径:",
2556
+ prop: "url",
2557
+ type: "input",
2558
+ value: "",
2559
+ isFormColHidden: !0
2560
+ }
2561
+ ]), $ = tl(() => [
2562
+ {
2563
+ label: "",
2564
+ prop: "index",
2565
+ type: "input",
2566
+ value: "",
2567
+ isFormColHidden: !0
2568
+ },
2569
+ {
2570
+ label: "类型:",
2571
+ prop: "label",
2572
+ type: "select",
2573
+ contents: [
2574
+ {
2575
+ label: "电子签名",
2576
+ value: "电子签名"
2577
+ },
2578
+ {
2579
+ label: "签字版",
2580
+ value: "签字版"
2581
+ },
2582
+ {
2583
+ label: "上传签名",
2584
+ value: "上传签名"
2585
+ }
2586
+ ],
2587
+ value: ""
2588
+ },
2589
+ {
2590
+ label: "图标",
2591
+ prop: "icon",
2592
+ type: "inputPopover",
2593
+ value: ""
2594
+ }
2595
+ // {
2596
+ // label: '是否禁用',
2597
+ // prop: 'disabled',
2598
+ // type: 'radio',
2599
+ // contents: [
2600
+ // {
2601
+ // label: '是',
2602
+ // value: true,
2603
+ // },
2604
+ // {
2605
+ // label: '否',
2606
+ // value: false,
2607
+ // }
2608
+ // ],
2609
+ // value: false
2610
+ // },
2611
+ ]), k = B({}), _ = B([]), z = () => ({
2612
+ comp: "Signature",
2613
+ compData: [
2614
+ {
2615
+ key: "signTypeList",
2616
+ contents: _.value
2617
+ },
2618
+ {
2619
+ key: "signConfig",
2620
+ contents: k.value
2621
+ }
2622
+ ]
2623
+ }), R = (t) => {
2624
+ var c;
2625
+ k.value = h(t), a("change", (c = z()) == null ? void 0 : c.compData);
2626
+ }, L = (t) => {
2627
+ var c, w;
2628
+ if ((t == null ? void 0 : t.buttonName) === "确认") {
2629
+ const e = h(t == null ? void 0 : t.content);
2630
+ switch (C.value) {
2631
+ case "create":
2632
+ _.value.push({
2633
+ ...e,
2634
+ index: ((c = _.value) == null ? void 0 : c.length) + 1
2635
+ });
2636
+ break;
2637
+ }
2638
+ a("change", (w = z()) == null ? void 0 : w.compData), p.visible = !1;
2639
+ } else
2640
+ p.visible = !1;
2641
+ }, E = (t, c) => {
2642
+ var w, e;
2643
+ switch (t) {
2644
+ case "create":
2645
+ (w = $.value) == null || w.forEach((l) => {
2646
+ l.value = "";
2647
+ }), C.value = "create", p.visible = !0;
2648
+ break;
2649
+ case "update":
2650
+ (e = $.value) == null || e.forEach((l) => {
2651
+ l.value = c[l == null ? void 0 : l.prop];
2652
+ }), console.log(345, c), C.value = "update", p.visible = !0;
2653
+ break;
2654
+ case "delete":
2655
+ _.value.splice(c, 1), C.value = "delete";
2656
+ break;
2657
+ }
2658
+ }, O = () => {
2659
+ p.visible = !1;
2660
+ };
2661
+ return Ce(() => d == null ? void 0 : d.itemContents, (t) => {
2662
+ var c, w;
2663
+ t && (k.value = ((c = t == null ? void 0 : t.find((e) => e.key === "signConfig")) == null ? void 0 : c.contents) ?? {}, _.value = ((w = t == null ? void 0 : t.find((e) => e.key === "signTypeList")) == null ? void 0 : w.contents) ?? []);
2664
+ }, { immediate: !0 }), (t, c) => {
2665
+ const w = fe("svg-icon"), e = fe("el-button");
2666
+ return A(), W(ve, null, [
2667
+ i("div", null, [
2668
+ i("div", xn, [
2669
+ c[2] || (c[2] = i("h4", { class: "module-title" }, "签名类型", -1)),
2670
+ i("div", {
2671
+ class: "module-icon",
2672
+ onClick: c[0] || (c[0] = (l) => E("create"))
2673
+ }, [
2674
+ i("div", null, [
2675
+ N(w, {
2676
+ name: "Plus",
2677
+ class: "icon-size"
2678
+ }),
2679
+ c[1] || (c[1] = i("span", null, "新增", -1))
2680
+ ])
2681
+ ])
2682
+ ]),
2683
+ i("div", In, [
2684
+ (A(!0), W(ve, null, he(_.value, (l, n) => (A(), W("div", {
2685
+ class: "module-data-item",
2686
+ key: n
2687
+ }, [
2688
+ i("span", null, q(l == null ? void 0 : l.label), 1),
2689
+ i("div", null, [
2690
+ N(e, {
2691
+ type: "primary",
2692
+ size: "small",
2693
+ onClick: (u) => E("update", { ...l, index: n + 1 })
2694
+ }, {
2695
+ default: ee(() => c[3] || (c[3] = [
2696
+ Ue("修改")
2697
+ ])),
2698
+ _: 2,
2699
+ __: [3]
2700
+ }, 1032, ["onClick"]),
2701
+ N(e, {
2702
+ type: "danger",
2703
+ size: "small",
2704
+ onClick: (u) => E("delete", n)
2705
+ }, {
2706
+ default: ee(() => c[4] || (c[4] = [
2707
+ Ue("删除")
2708
+ ])),
2709
+ _: 2,
2710
+ __: [4]
2711
+ }, 1032, ["onClick"])
2712
+ ])
2713
+ ]))), 128))
2714
+ ]),
2715
+ i("div", Dn, [
2716
+ N(xe, {
2717
+ rowContents: v.value,
2718
+ onChange: R
2719
+ }, null, 8, ["rowContents"])
2720
+ ])
2721
+ ]),
2722
+ N(Ie, {
2723
+ visible: p.visible,
2724
+ title: p.title,
2725
+ onBeforeDestroy: O,
2726
+ width: p.width
2727
+ }, {
2728
+ default: ee(() => [
2729
+ i("div", $n, [
2730
+ (A(), pe(xe, {
2731
+ rowContents: $.value,
2732
+ key: $.value,
2733
+ isEnableWrap: !1,
2734
+ isButtonRow: !1,
2735
+ isStartJustify: !1,
2736
+ buttonValue: V.value,
2737
+ onOnButtonClick: L
2738
+ }, null, 8, ["rowContents", "buttonValue"]))
2739
+ ])
2740
+ ]),
2741
+ _: 1
2742
+ }, 8, ["visible", "title", "width"])
2743
+ ], 64);
2744
+ };
2745
+ }
2746
+ }), En = /* @__PURE__ */ ye(Tn, [["__scopeId", "data-v-a90b5f7d"]]), Bn = /* @__PURE__ */ ze({
2747
+ __name: "index",
2748
+ props: {
2749
+ stepConfig: {
2750
+ type: Object,
2751
+ default: {}
2752
+ },
2753
+ stepList: {
2754
+ type: Array,
2755
+ default: () => []
2756
+ }
2757
+ },
2758
+ emits: ["clickStep", "clickTrigger", "changeTrigger"],
2759
+ setup(y, { emit: F }) {
2760
+ const d = y, a = F, p = B(1), C = tl(() => {
2761
+ var z, R;
2762
+ return (z = d == null ? void 0 : d.stepConfig) != null && z.allowTrigger ? p.value : (R = d == null ? void 0 : d.stepConfig) == null ? void 0 : R.active;
2763
+ }), V = (z, R) => {
2764
+ p.value = R, a("clickStep", z, R);
2765
+ }, v = (z) => $l(z), $ = () => {
2766
+ var R;
2767
+ const z = (R = d == null ? void 0 : d.stepList) == null ? void 0 : R.find((L, E) => E + 1 === C.value);
2768
+ return console.log("findStep", z), z ? z == null ? void 0 : z.children : [];
2769
+ }, k = (z) => {
2770
+ a("clickTrigger", z);
2771
+ }, _ = (z) => {
2772
+ a("changeTrigger", z);
2773
+ };
2774
+ return (z, R) => {
2775
+ var O, t, c, w, e;
2776
+ const L = fe("el-step"), E = fe("el-steps");
2777
+ return A(), W(ve, null, [
2778
+ N(E, {
2779
+ direction: (O = y.stepConfig) == null ? void 0 : O.direction,
2780
+ active: C.value,
2781
+ "finish-status": "success",
2782
+ simple: (t = y.stepConfig) == null ? void 0 : t.simple,
2783
+ "align-center": ((c = y.stepConfig) == null ? void 0 : c.alignCenter) ?? !0
2784
+ }, {
2785
+ default: ee(() => [
2786
+ (A(!0), W(ve, null, he(y.stepList, (l, n) => (A(), pe(L, {
2787
+ key: n,
2788
+ class: "step-item",
2789
+ onClick: (u) => V(l, n + 1)
2790
+ }, {
2791
+ title: ee(() => [
2792
+ He(z.$slots, "title", {
2793
+ title: l == null ? void 0 : l.title
2794
+ }, void 0, !0)
2795
+ ]),
2796
+ description: ee(() => [
2797
+ He(z.$slots, "description", {
2798
+ description: l == null ? void 0 : l.description
2799
+ }, void 0, !0)
2800
+ ]),
2801
+ _: 2
2802
+ }, 1032, ["onClick"]))), 128))
2803
+ ]),
2804
+ _: 3
2805
+ }, 8, ["direction", "active", "simple", "align-center"]),
2806
+ (w = y.stepConfig) != null && w.allowTrigger && ((e = y.stepConfig) != null && e.active) ? (A(!0), W(ve, { key: 0 }, he($(), (l, n) => (A(), W("div", {
2807
+ key: n,
2808
+ class: "step-cont-wrap"
2809
+ }, [
2810
+ (A(), pe(Je(v(l == null ? void 0 : l.type)), {
2811
+ modelValue: l.value,
2812
+ "onUpdate:modelValue": (u) => l.value = u,
2813
+ onClickTrigger: k,
2814
+ onChangeTrigger: _,
2815
+ content: l == null ? void 0 : l.content
2816
+ }, _l({ _: 2 }, [
2817
+ he(z.$slots, (u, j) => ({
2818
+ name: j,
2819
+ fn: ee((S) => [
2820
+ He(z.$slots, j, wl({ ref_for: !0 }, S || {}), void 0, !0)
2821
+ ])
2822
+ }))
2823
+ ]), 1064, ["modelValue", "onUpdate:modelValue", "content"]))
2824
+ ]))), 128)) : Oe("", !0)
2825
+ ], 64);
2826
+ };
2827
+ }
2828
+ }), Fn = /* @__PURE__ */ ye(Bn, [["__scopeId", "data-v-d7c99969"]]), An = /* @__PURE__ */ ze({
2829
+ __name: "index",
2830
+ props: {
2831
+ itemData: {
2832
+ type: Array,
2833
+ default: () => []
2834
+ },
2835
+ childItemData: {
2836
+ type: Array,
2837
+ default: () => []
2838
+ }
2839
+ },
2840
+ emits: ["clickStep"],
2841
+ setup(y, { emit: F }) {
2842
+ const d = y, a = F, p = B({}), C = B([]), V = (v, $) => {
2843
+ a("clickStep", v, $);
2844
+ };
2845
+ return Ce(() => d == null ? void 0 : d.itemData, (v) => {
2846
+ var $, k;
2847
+ C.value = ($ = v == null ? void 0 : v.find((_) => (_ == null ? void 0 : _.key) === "stepList")) == null ? void 0 : $.contents, p.value = (k = v == null ? void 0 : v.find((_) => (_ == null ? void 0 : _.key) === "stepConfig")) == null ? void 0 : k.contents;
2848
+ }, {
2849
+ immediate: !0
2850
+ }), (v, $) => {
2851
+ const k = fe("svg-icon");
2852
+ return A(), pe(Fn, {
2853
+ stepConfig: p.value,
2854
+ stepList: C.value,
2855
+ onClickStep: V
2856
+ }, {
2857
+ icon: ee(() => [
2858
+ N(k, { name: "import" })
2859
+ ]),
2860
+ title: ee(({ title: _ }) => [
2861
+ Ue(q(_), 1)
2862
+ ]),
2863
+ description: ee(({ description: _ }) => [
2864
+ Ue(q(_), 1)
2865
+ ]),
2866
+ _: 1
2867
+ }, 8, ["stepConfig", "stepList"]);
2868
+ };
2869
+ }
2870
+ }), On = /* @__PURE__ */ ze({
2871
+ __name: "index",
2872
+ props: {
2873
+ activities: {
2874
+ type: Array,
2875
+ default: () => []
2876
+ },
2877
+ timeLineConfig: {
2878
+ type: Object,
2879
+ default: () => {
2880
+ }
2881
+ }
2882
+ },
2883
+ setup(y) {
2884
+ return (F, d) => {
2885
+ const a = fe("el-timeline-item"), p = fe("el-timeline");
2886
+ return A(), pe(p, null, {
2887
+ default: ee(() => [
2888
+ (A(!0), W(ve, null, he(y.activities, (C, V) => (A(), pe(a, {
2889
+ key: V,
2890
+ timestamp: C.timestamp,
2891
+ placement: y.timeLineConfig.placement,
2892
+ center: y.timeLineConfig.isCenter,
2893
+ "hide-timestamp": !0,
2894
+ type: y.timeLineConfig.type,
2895
+ color: y.timeLineConfig.color,
2896
+ size: y.timeLineConfig.size,
2897
+ icon: y.timeLineConfig.icon,
2898
+ hollow: y.timeLineConfig.isHollow
2899
+ }, {
2900
+ default: ee(() => [
2901
+ He(F.$slots, "content", {
2902
+ content: C == null ? void 0 : C.content,
2903
+ timestamp: C == null ? void 0 : C.timestamp
2904
+ }, void 0, !0)
2905
+ ]),
2906
+ _: 2
2907
+ }, 1032, ["timestamp", "placement", "center", "type", "color", "size", "icon", "hollow"]))), 128))
2908
+ ]),
2909
+ _: 3
2910
+ });
2911
+ };
2912
+ }
2913
+ }), Ln = /* @__PURE__ */ ye(On, [["__scopeId", "data-v-4172a886"]]), Sn = { class: "line-content" }, Vn = { class: "line-time" }, Rn = /* @__PURE__ */ ze({
2914
+ __name: "index",
2915
+ props: {
2916
+ itemData: {
2917
+ type: Array,
2918
+ default: () => []
2919
+ }
2920
+ },
2921
+ setup(y) {
2922
+ const F = y, d = B({}), a = B([]);
2923
+ return Ce(() => F == null ? void 0 : F.itemData, (p) => {
2924
+ var C, V;
2925
+ a.value = (C = p == null ? void 0 : p.find((v) => (v == null ? void 0 : v.key) === "timeLineList")) == null ? void 0 : C.contents, d.value = (V = p == null ? void 0 : p.find((v) => (v == null ? void 0 : v.key) === "timeLineConfig")) == null ? void 0 : V.contents;
2926
+ }, {
2927
+ immediate: !0
2928
+ }), (p, C) => (A(), pe(Ln, {
2929
+ activities: a.value,
2930
+ timeLineConfig: d.value
2931
+ }, {
2932
+ content: ee(({ content: V, timestamp: v }) => [
2933
+ i("span", Sn, q(V), 1),
2934
+ i("span", Vn, q(v), 1)
2935
+ ]),
2936
+ _: 1
2937
+ }, 8, ["activities", "timeLineConfig"]));
2938
+ }
2939
+ }), Nn = /* @__PURE__ */ ye(Rn, [["__scopeId", "data-v-b4d9deed"]]), jn = { class: "tabs-content" }, Un = {
2940
+ __name: "index",
2941
+ props: {
2942
+ itemData: {
2943
+ type: Array,
2944
+ default: () => []
2945
+ },
2946
+ childItemData: {
2947
+ type: Array,
2948
+ default: () => []
2949
+ },
2950
+ index: Number
2951
+ },
2952
+ setup(y) {
2953
+ const F = y, d = B([]);
2954
+ return Ce(
2955
+ () => F == null ? void 0 : F.itemData,
2956
+ (a) => {
2957
+ const p = a.find((C) => (C == null ? void 0 : C.key) == "stepList");
2958
+ p && (d.value = p.contents.map((C) => ({
2959
+ value: C.value || C.title,
2960
+ label: C.label || C.title,
2961
+ children: C.children || []
2962
+ // 关键:传递子内容
2963
+ })));
2964
+ },
2965
+ { immediate: !0, deep: !0 }
2966
+ ), (a, p) => (A(), W("div", jn, [
2967
+ N(Tl, { tabsContents: d.value }, null, 8, ["tabsContents"])
2968
+ ]));
2969
+ }
2970
+ }, Pn = /* @__PURE__ */ ye(Un, [["__scopeId", "data-v-d3bb10b7"]]), Xe = ll("tabComp", {
2971
+ state: () => ({
2972
+ itemData: [],
2973
+ originalData: [],
2974
+ extraContents: [],
2975
+ nodeDev: "",
2976
+ isEdit: "view",
2977
+ isRefreshCurStructure: !1,
2978
+ curStructureCompIds: [],
2979
+ isSubmitCurStructure: !1
2980
+ }),
2981
+ actions: {
2982
+ setItemData(y) {
2983
+ this.itemData = y;
2984
+ },
2985
+ setCurStructureCompIds(y) {
2986
+ this.curStructureCompIds = y;
2987
+ },
2988
+ setRefreshCurStructure(y) {
2989
+ this.isRefreshCurStructure = y;
2990
+ },
2991
+ setOriginalData(y) {
2992
+ this.originalData = y;
2993
+ },
2994
+ setExtraContents(y) {
2995
+ this.extraContents = y;
2996
+ },
2997
+ setNodeDev(y) {
2998
+ this.nodeDev = y;
2999
+ },
3000
+ setIsEdit(y) {
3001
+ this.isEdit = y;
3002
+ }
3003
+ }
3004
+ }), Wn = { class: "type-select" }, zn = ["onClick"], Mn = { class: "list-icon" }, Kn = {
3005
+ __name: "modelSelect",
3006
+ setup(y) {
3007
+ const F = Xe(Pe), { itemData: d } = Me(F), a = (p) => {
3008
+ const C = h(d.value);
3009
+ C.push({
3010
+ comp: p.comp,
3011
+ name: p.name,
3012
+ compData: []
3013
+ }), F.setItemData(C);
3014
+ };
3015
+ return (p, C) => {
3016
+ const V = fe("svg-icon");
3017
+ return A(), W("div", Wn, [
3018
+ (A(!0), W(ve, null, he(xl(_o), (v, $) => (A(), W("div", {
3019
+ class: "type-list",
3020
+ key: $
3021
+ }, [
3022
+ i("div", {
3023
+ class: "list-content",
3024
+ onClick: (k) => a(v)
3025
+ }, [
3026
+ i("div", Mn, [
3027
+ N(V, {
3028
+ name: v.icon
3029
+ }, null, 8, ["name"])
3030
+ ]),
3031
+ i("div", null, q(v.name), 1)
3032
+ ], 8, zn)
3033
+ ]))), 128))
3034
+ ]);
3035
+ };
3036
+ }
3037
+ }, Gn = /* @__PURE__ */ ye(Kn, [["__scopeId", "data-v-f76b331e"]]), Jn = { class: "fill-content" }, qn = { class: "operate-content" }, Hn = { class: "collapse-title-content" }, Qn = { class: "collapse-title-item" }, Xn = { key: 1 }, Yn = ["onClick"], Zn = { class: "icon-content" }, eo = {
3038
+ key: 0,
3039
+ class: "edit-content"
3040
+ }, lo = ["onClick"], ao = { class: "comp-child" }, no = {
3041
+ __name: "modelFill",
3042
+ setup(y) {
3043
+ const F = Xe(Pe), { itemData: d, originalData: a } = Me(F), p = B([]);
3044
+ B([]);
3045
+ const C = B([]), V = B([]), v = (L) => {
3046
+ var O;
3047
+ let E = (O = h(V.value)) == null ? void 0 : O.map((t, c) => (L === c && (t.content = !0), t));
3048
+ V.value = E;
3049
+ }, $ = (L) => {
3050
+ var O;
3051
+ let E = (O = h(V.value)) == null ? void 0 : O.map((t, c) => (L === c && (t.content = !1), t));
3052
+ V.value = E, p.value = h(d.value);
3053
+ }, k = (L, E) => {
3054
+ var w;
3055
+ let O = (w = h(V.value)) == null ? void 0 : w.map((e, l) => (L === l && (e.content = !1), e));
3056
+ V.value = O;
3057
+ const t = h(d.value), c = t == null ? void 0 : t.filter((e, l) => (l === L && (e.name = E), e));
3058
+ F.setOriginalData(c), F.setItemData(c);
3059
+ };
3060
+ Ce(
3061
+ () => d.value,
3062
+ () => {
3063
+ var L, E, O;
3064
+ !d.value || ((L = d.value) == null ? void 0 : L.length) === 0 ? p.value = [] : p.value = (E = h(d.value)) == null ? void 0 : E.filter((t) => (t == null ? void 0 : t.comp) !== "methodButton"), C.value = p.value, V.value = (O = h(C.value)) == null ? void 0 : O.map((t, c) => ({
3065
+ id: c,
3066
+ content: !1
3067
+ }));
3068
+ },
3069
+ { deep: !0, immediate: !0 }
3070
+ );
3071
+ const _ = (L) => al(L), z = (L, E, O) => {
3072
+ var c, w;
3073
+ if (!L) return;
3074
+ let t = h(d.value);
3075
+ t = (c = t == null ? void 0 : t.map((e, l) => (l === O && (e.compData = L), e))) == null ? void 0 : c.filter((e) => (e == null ? void 0 : e.comp) !== "methodButton"), V.value = (w = h(t)) == null ? void 0 : w.map((e, l) => ({
3076
+ id: l,
3077
+ content: !1
3078
+ })), F.setOriginalData(t), F.setItemData(t);
3079
+ }, R = (L) => {
3080
+ je.confirm("是否确认要删除", "", {
3081
+ confirmButtonText: "确认",
3082
+ cancelButtonText: "取消",
3083
+ type: "warning"
3084
+ }).then(() => {
3085
+ const E = h(d.value), O = E == null ? void 0 : E.filter((t, c) => c !== L);
3086
+ F.setOriginalData(O), F.setItemData(O), Ne({
3087
+ type: "success",
3088
+ message: "删除成功"
3089
+ });
3090
+ }).catch(() => {
3091
+ });
3092
+ };
3093
+ return (L, E) => {
3094
+ const O = fe("svg-icon");
3095
+ return A(), W("div", Jn, [
3096
+ E[1] || (E[1] = i("div", { class: "fill-operate" }, q("操作栏"), -1)),
3097
+ i("div", qn, [
3098
+ N(Ll, {
3099
+ class: "collapse-content",
3100
+ collapseContents: p.value
3101
+ }, {
3102
+ title: ee(({ item: t, index: c }) => {
3103
+ var w, e, l, n, u, j, S, M, re, te;
3104
+ return [
3105
+ i("div", Hn, [
3106
+ i("div", Qn, [
3107
+ (e = (w = V.value) == null ? void 0 : w.find((s) => s.id === c)) != null && e.content ? Oe("", !0) : (A(), W("div", {
3108
+ key: 0,
3109
+ class: "collapse-title",
3110
+ style: Il({ marginRight: t.name && t.name !== "" ? "8px" : "0px" })
3111
+ }, q(t.name), 5)),
3112
+ (n = (l = V.value) == null ? void 0 : l.find((s) => s.id === c)) != null && n.content ? (A(), W("div", Xn, [
3113
+ N(El, {
3114
+ modelValue: t.name,
3115
+ "onUpdate:modelValue": (s) => t.name = s,
3116
+ onClick: E[0] || (E[0] = Ke(() => {
3117
+ }, ["stop"]))
3118
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
3119
+ ])) : Oe("", !0),
3120
+ (j = (u = V.value) == null ? void 0 : u.find((s) => s.id === c)) != null && j.content ? Oe("", !0) : (A(), W("div", {
3121
+ key: 2,
3122
+ onClick: Ke((s) => v(c), ["stop"]),
3123
+ class: "icon-content"
3124
+ }, [
3125
+ N(O, {
3126
+ name: "Edit",
3127
+ style: { width: "16px", height: "16px" }
3128
+ })
3129
+ ], 8, Yn))
3130
+ ]),
3131
+ i("div", Zn, [
3132
+ (M = (S = V.value) == null ? void 0 : S.find((s) => s.id === c)) != null && M.content ? (A(), W("div", eo, [
3133
+ N(O, {
3134
+ name: "Cancel",
3135
+ style: { width: "16px", height: "16px" },
3136
+ class: "icon-content",
3137
+ onClick: Ke((s) => $(c), ["stop"])
3138
+ }, null, 8, ["onClick"]),
3139
+ N(O, {
3140
+ name: "Save",
3141
+ onClick: Ke((s) => k(c, t.name), ["stop"]),
3142
+ style: { width: "16px", height: "16px", fill: "var(--ssComponent-primary-color)" },
3143
+ class: "icon-content"
3144
+ }, null, 8, ["onClick"])
3145
+ ])) : Oe("", !0),
3146
+ (te = (re = V.value) == null ? void 0 : re.find((s) => s.id === c)) != null && te.content ? Oe("", !0) : (A(), W("div", {
3147
+ key: 1,
3148
+ onClick: Ke((s) => R(c), ["stop"]),
3149
+ class: "icon-content"
3150
+ }, [
3151
+ N(O, {
3152
+ name: "Delete",
3153
+ style: { width: "16px", height: "16px" }
3154
+ })
3155
+ ], 8, lo))
3156
+ ])
3157
+ ])
3158
+ ];
3159
+ }),
3160
+ content: ee(({ item: t, index: c }) => {
3161
+ var w, e;
3162
+ return [
3163
+ i("div", ao, [
3164
+ (A(), pe(Je(_(t.comp + "Operate")), {
3165
+ itemContents: t == null ? void 0 : t.compData,
3166
+ originalItemContents: (e = (w = C.value) == null ? void 0 : w.find((l, n) => n === c)) == null ? void 0 : e.compData,
3167
+ onChange: (l) => z(l, t, c)
3168
+ }, null, 40, ["itemContents", "originalItemContents", "onChange"]))
3169
+ ])
3170
+ ];
3171
+ }),
3172
+ _: 1
3173
+ }, 8, ["collapseContents"])
3174
+ ])
3175
+ ]);
3176
+ };
3177
+ }
3178
+ }, oo = /* @__PURE__ */ ye(no, [["__scopeId", "data-v-9de1f7b9"]]), so = {
3179
+ key: 0,
3180
+ class: "show-content"
3181
+ }, io = { style: { display: "flex" } }, uo = {
3182
+ __name: "modelShow",
3183
+ setup(y) {
3184
+ const F = Xe(Pe), { itemData: d } = Me(F), a = B([]);
3185
+ Ce(
3186
+ () => d.value,
3187
+ () => {
3188
+ var C;
3189
+ !d.value || ((C = d.value) == null ? void 0 : C.length) === 0 ? a.value = [] : a.value = h(d.value);
3190
+ },
3191
+ { deep: !0, immediate: !0 }
3192
+ );
3193
+ const p = (C) => al(C);
3194
+ return (C, V) => {
3195
+ var v;
3196
+ return ((v = a.value) == null ? void 0 : v.length) > 0 ? (A(), W("div", so, [
3197
+ (A(!0), W(ve, null, he(a.value, ($, k) => (A(), W("div", {
3198
+ class: "item-content",
3199
+ key: k
3200
+ }, [
3201
+ i("div", io, q($.name), 1),
3202
+ (A(), pe(Je(p($.comp)), {
3203
+ itemData: $ == null ? void 0 : $.compData,
3204
+ childItemData: $ == null ? void 0 : $.itemChildData,
3205
+ key: k
3206
+ }, null, 8, ["itemData", "childItemData"]))
3207
+ ]))), 128))
3208
+ ])) : Oe("", !0);
3209
+ };
3210
+ }
3211
+ }, ro = /* @__PURE__ */ ye(uo, [["__scopeId", "data-v-b0c7a58a"]]), to = { class: "tabs-header" }, co = { class: "tabs-list" }, vo = { class: "tab-name" }, po = { class: "tab-actions" }, fo = ["onClick"], ho = ["onClick"], mo = ["onClick"], yo = { class: "model-operate" }, bo = { class: "model-select" }, Co = { class: "model-fill" }, go = {
3212
+ __name: "operate",
3213
+ props: {
3214
+ itemContents: {
3215
+ type: Array,
3216
+ default: () => []
3217
+ }
3218
+ },
3219
+ emits: ["change"],
3220
+ setup(y, { emit: F }) {
3221
+ const d = y, a = F, p = B([]), C = B(!1), V = B(""), v = B({ title: "" }), $ = B(-1), k = B(!1), _ = B(-1), z = () => {
3222
+ V.value = "新增标签页", v.value.title = "", $.value = -1, C.value = !0;
3223
+ }, R = (w) => {
3224
+ V.value = "修改标签页", v.value.title = p.value[w].title, $.value = w, C.value = !0;
3225
+ }, L = (w) => {
3226
+ p.value.splice(w, 1), c();
3227
+ }, E = () => {
3228
+ v.value.title.trim() && ($.value === -1 ? p.value.push({
3229
+ title: v.value.title,
3230
+ value: v.value.title,
3231
+ label: v.value.title,
3232
+ children: []
3233
+ }) : (p.value[$.value].title = v.value.title, p.value[$.value].value = v.value.title, p.value[$.value].label = v.value.title), C.value = !1, c());
3234
+ }, O = (w) => {
3235
+ _.value = w, k.value = !0;
3236
+ }, t = () => {
3237
+ const w = Xe(Pe), { itemData: e } = Me(w);
3238
+ console.log(e.value, 12222), _.value >= 0 && _.value < p.value.length && (p.value[_.value].children = [
3239
+ {
3240
+ type: "Form",
3241
+ content: {
3242
+ rowContents: [
3243
+ {
3244
+ label: "宽度(%):",
3245
+ prop: "signPadWidth",
3246
+ type: "number",
3247
+ value: "30"
3248
+ },
3249
+ {
3250
+ label: "弹窗名称:",
3251
+ prop: "dialogTitle",
3252
+ type: "input",
3253
+ value: ""
3254
+ },
3255
+ {
3256
+ label: "弹窗宽度(%):",
3257
+ prop: "dialogWidth",
3258
+ type: "number",
3259
+ value: "30"
3260
+ }
3261
+ ],
3262
+ isEnableWrap: !1,
3263
+ isButtonRow: !1
3264
+ },
3265
+ value: ""
3266
+ }
3267
+ ]), k.value = !1, c();
3268
+ }, c = () => {
3269
+ const w = [
3270
+ {
3271
+ key: "stepList",
3272
+ contents: p.value
3273
+ }
3274
+ ];
3275
+ a("change", w);
3276
+ };
3277
+ return Ce(
3278
+ () => d.itemContents,
3279
+ (w) => {
3280
+ if (w && w.length > 0) {
3281
+ const e = w.find((l) => l.key === "stepList");
3282
+ e && e.contents && (p.value = e.contents.map((l) => ({
3283
+ title: l.title || "",
3284
+ value: l.value || l.title || "",
3285
+ label: l.label || l.title || "",
3286
+ children: l.children || []
3287
+ })));
3288
+ }
3289
+ },
3290
+ { immediate: !0, deep: !0 }
3291
+ ), (w, e) => {
3292
+ const l = fe("svg-icon"), n = fe("el-input"), u = fe("el-form-item"), j = fe("el-form");
3293
+ return A(), W("div", null, [
3294
+ i("div", to, [
3295
+ e[8] || (e[8] = i("h4", null, "标签页管理", -1)),
3296
+ i("button", { onClick: z }, [
3297
+ N(l, {
3298
+ name: "Plus",
3299
+ style: { width: "14px", height: "14px", "margin-right": "4px" }
3300
+ }),
3301
+ e[7] || (e[7] = Ue(" 新增标签页 "))
3302
+ ])
3303
+ ]),
3304
+ i("div", co, [
3305
+ (A(!0), W(ve, null, he(p.value, (S, M) => (A(), W("div", {
3306
+ class: "tab-item",
3307
+ key: M
3308
+ }, [
3309
+ i("span", vo, q(S.title), 1),
3310
+ i("div", po, [
3311
+ i("button", {
3312
+ onClick: (re) => R(M)
3313
+ }, "修改标题", 8, fo),
3314
+ i("button", {
3315
+ onClick: (re) => O(M)
3316
+ }, "布局调整", 8, ho),
3317
+ i("button", {
3318
+ onClick: (re) => L(M)
3319
+ }, "删除", 8, mo)
3320
+ ])
3321
+ ]))), 128))
3322
+ ]),
3323
+ N(Ie, {
3324
+ modelValue: C.value,
3325
+ "onUpdate:modelValue": e[2] || (e[2] = (S) => C.value = S),
3326
+ title: V.value,
3327
+ onBeforeDestroy: e[3] || (e[3] = (S) => C.value = !1)
3328
+ }, {
3329
+ footer: ee(() => [
3330
+ i("button", {
3331
+ onClick: e[1] || (e[1] = (S) => C.value = !1)
3332
+ }, "取消"),
3333
+ i("button", {
3334
+ type: "primary",
3335
+ onClick: E
3336
+ }, "确定")
3337
+ ]),
3338
+ default: ee(() => [
3339
+ N(j, {
3340
+ model: v.value,
3341
+ "label-width": "80px"
3342
+ }, {
3343
+ default: ee(() => [
3344
+ N(u, {
3345
+ label: "标签名称",
3346
+ required: ""
3347
+ }, {
3348
+ default: ee(() => [
3349
+ N(n, {
3350
+ modelValue: v.value.title,
3351
+ "onUpdate:modelValue": e[0] || (e[0] = (S) => v.value.title = S),
3352
+ placeholder: "请输入标签页名称"
3353
+ }, null, 8, ["modelValue"])
3354
+ ]),
3355
+ _: 1
3356
+ })
3357
+ ]),
3358
+ _: 1
3359
+ }, 8, ["model"])
3360
+ ]),
3361
+ _: 1
3362
+ }, 8, ["modelValue", "title"]),
3363
+ N(Ie, {
3364
+ modelValue: k.value,
3365
+ "onUpdate:modelValue": e[5] || (e[5] = (S) => k.value = S),
3366
+ title: "布局调整",
3367
+ fullScreen: "",
3368
+ onBeforeDestroy: e[6] || (e[6] = (S) => k.value = !1)
3369
+ }, {
3370
+ footer: ee(() => [
3371
+ i("button", {
3372
+ onClick: e[4] || (e[4] = (S) => k.value = !1)
3373
+ }, "取消"),
3374
+ i("button", { onClick: t }, "确定")
3375
+ ]),
3376
+ default: ee(() => [
3377
+ i("div", yo, [
3378
+ i("div", bo, [
3379
+ N(Gn)
3380
+ ]),
3381
+ (A(), W("div", {
3382
+ class: "model-show",
3383
+ key: w.innerWidth
3384
+ }, [
3385
+ N(ro)
3386
+ ])),
3387
+ i("div", Co, [
3388
+ N(oo)
3389
+ ])
3390
+ ])
3391
+ ]),
3392
+ _: 1
3393
+ }, 8, ["modelValue"])
3394
+ ]);
3395
+ };
3396
+ }
3397
+ }, ko = /* @__PURE__ */ ye(go, [["__scopeId", "data-v-3b82a779"]]), _o = B([
3398
+ {
3399
+ name: "表格",
3400
+ type: "table",
3401
+ comp: "Table",
3402
+ icon: "Table"
3403
+ },
3404
+ {
3405
+ name: "表单",
3406
+ type: "form",
3407
+ comp: "Form",
3408
+ icon: "Form"
3409
+ },
3410
+ {
3411
+ name: "折叠",
3412
+ type: "fold",
3413
+ comp: "Fold",
3414
+ icon: "Fold"
3415
+ },
3416
+ {
3417
+ name: "头像",
3418
+ type: "avatar",
3419
+ comp: "AvatarUpload",
3420
+ icon: "Avatar"
3421
+ },
3422
+ {
3423
+ name: "签名",
3424
+ type: "signature",
3425
+ comp: "Signature",
3426
+ icon: "Signature"
3427
+ },
3428
+ {
3429
+ name: "步骤条",
3430
+ type: "step",
3431
+ comp: "Step",
3432
+ icon: "Step"
3433
+ },
3434
+ {
3435
+ name: "时间线",
3436
+ type: "timeLine",
3437
+ comp: "TimeLine",
3438
+ icon: "TimeLine"
3439
+ },
3440
+ {
3441
+ name: "标签页",
3442
+ type: "tabs",
3443
+ comp: "Tabs",
3444
+ icon: "Tabs"
3445
+ }
3446
+ ]), wo = {
3447
+ TABLE: kl,
3448
+ FORM: ul,
3449
+ TABLEOPERATE: Sa,
3450
+ FORMOPERATE: rl,
3451
+ FOLD: dn,
3452
+ CALCULATOR: mn,
3453
+ METHODBUTTON: gn,
3454
+ AVATARUPLOAD: Ol,
3455
+ SIGNATURE: Al,
3456
+ FORMTOP: ul,
3457
+ STEP: An,
3458
+ STEPOPERATE: ln,
3459
+ TIMELINE: Nn,
3460
+ TIMELINEOPERATE: rn,
3461
+ FORMTOPOPERATE: rl,
3462
+ SIGNATUREOPERATE: En,
3463
+ AVATARUPLOADOPERATE: wn,
3464
+ TABS: Pn,
3465
+ TABSOPERATE: ko
3466
+ // 添加其他组件...
3467
+ };
3468
+ function al(y) {
3469
+ return wo[y == null ? void 0 : y.toUpperCase()] || null;
3470
+ }
3471
+ export {
3472
+ al as g,
3473
+ _o as s,
3474
+ Vl as u
3475
+ };