ss-component-new 1.1.509 → 1.1.511

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