ss-component-new 1.1.261 → 1.1.263

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