ss-component-new 1.1.124 → 1.1.125

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 (63) hide show
  1. package/dist/{array-0K26SSg4.cjs → array-DgQ9KHce.cjs} +1 -1
  2. package/dist/{array-BxjTOqMI.js → array-Dx2qsIMP.js} +8 -8
  3. package/dist/{cloneDeep-BY7jbyTA.js → cloneDeep-BvVWmE15.js} +1 -1
  4. package/dist/{cloneDeep-TacB4EZO.cjs → cloneDeep-DRn1QjKu.cjs} +1 -1
  5. package/dist/{index-DZ5z3tU0.cjs → index-0o71PRSe.cjs} +1 -1
  6. package/dist/{index-D01NwDB8.js → index-B-NjHiwT.js} +6 -6
  7. package/dist/{index-BNWaoj6Z.js → index-B3nH6J4f.js} +12 -13
  8. package/dist/{index-B5RsyhWe.js → index-B5xB3M2p.js} +5 -5
  9. package/dist/{index-NiXp6EjT.js → index-BBS2U8yQ.js} +1 -1
  10. package/dist/{index-g1lOxgn5.js → index-BBUta35L.js} +1 -1
  11. package/dist/{index-q4qf3gNt.js → index-BMMSFJK-.js} +274 -271
  12. package/dist/{index-BcFYdS3F.js → index-BNY7DURy.js} +1 -1
  13. package/dist/{index-DlkIx2Ch.cjs → index-BP6Q9QF_.cjs} +1 -1
  14. package/dist/{index-DehKbitZ.cjs → index-BqYdJkDp.cjs} +1 -1
  15. package/dist/{index-BWmd705R.js → index-C5haV158.js} +4 -4
  16. package/dist/{index-C6RYDjmq.cjs → index-C7psxGT6.cjs} +1 -1
  17. package/dist/{index-iJAEvjVl.cjs → index-CNJERVhL.cjs} +1 -1
  18. package/dist/index-CQbgggKn.cjs +1 -0
  19. package/dist/{index-C-aZvFRW.cjs → index-CXBz1VKB.cjs} +1 -1
  20. package/dist/{index-DS-uNvzB.cjs → index-D0JT4tJn.cjs} +1 -1
  21. package/dist/index-DFeqxkj1.js +349 -0
  22. package/dist/index-DGm_tuv2.cjs +1 -0
  23. package/dist/index-DHneZ-e3.cjs +1 -0
  24. package/dist/{index-CxGJFuX5.cjs → index-DIvRbGz3.cjs} +1 -1
  25. package/dist/{index-DJjfdv-n.js → index-DOVX1dzy.js} +5 -5
  26. package/dist/{index-DcJlzFm_.cjs → index-DPZGJ0QQ.cjs} +1 -1
  27. package/dist/{index-xmI6kE3E.js → index-D_NlLGiw.js} +4 -4
  28. package/dist/{index-JeDCqfyX.cjs → index-DbFKGB53.cjs} +1 -1
  29. package/dist/{index-ReulmnrK.js → index-DeqCqRST.js} +7 -7
  30. package/dist/{index-BRbFWayD.cjs → index-Dis8TUVs.cjs} +1 -1
  31. package/dist/{index-B350Jd1Q.cjs → index-DrKgxYts.cjs} +1 -1
  32. package/dist/{index-DwhBlmrq.js → index-LCK5F6vK.js} +6 -6
  33. package/dist/{index-H6qiNlh1.js → index-LFpf4SQB.js} +1 -1
  34. package/dist/{index-CNVW_6cz.js → index-VYVINaK4.js} +1 -1
  35. package/dist/index-WG9ktGw5.js +332 -0
  36. package/dist/{index-BKjdsboN.js → index-aSS11kwZ.js} +8 -8
  37. package/dist/{index-gGDczXNR.cjs → index-dToT1kBj.cjs} +1 -1
  38. package/dist/{index-DlaRK5AT.cjs → index-jv_wgvqT.cjs} +1 -1
  39. package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-Bty5s4zO.js +238 -0
  40. package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-WrF20u86.cjs +1 -0
  41. package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DH217tni.cjs → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-Cj5SZmLV.cjs} +1 -1
  42. package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-Cik8OFj7.js → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DdxV72w9.js} +6 -6
  43. package/dist/{login-6xi181Q5.cjs → login-2wcI_7hO.cjs} +1 -1
  44. package/dist/{login-A-LN2ivr.js → login-xZK7AKwf.js} +2 -2
  45. package/dist/{main-CfDsaDSE.cjs → main-Dn6lSQF5.cjs} +1 -1
  46. package/dist/{main-DGayymHA.js → main-VjEHy8nG.js} +6 -6
  47. package/dist/{menu-Dk3VihkR.js → menu-DHsbCYvT.js} +1 -1
  48. package/dist/{menu-BiId5weS.cjs → menu-gPbP7vUD.cjs} +1 -1
  49. package/dist/{modelComp-ChjHbjpK.cjs → modelComp-BOUPy1BT.cjs} +1 -1
  50. package/dist/{modelComp-BmaHE37I.js → modelComp-BzaA6RdE.js} +1 -1
  51. package/dist/ss-component.cjs +1 -1
  52. package/dist/ss-component.css +1 -1
  53. package/dist/ss-component.js +6 -6
  54. package/dist/ss-component2.cjs +1 -1
  55. package/dist/ss-component2.js +1 -1
  56. package/package.json +1 -1
  57. package/dist/index-BpwVKq24.js +0 -333
  58. package/dist/index-CDx9lK-r.js +0 -327
  59. package/dist/index-DMXwpYH6.cjs +0 -1
  60. package/dist/index-DR-Tl8gC.cjs +0 -1
  61. package/dist/index-De3a9oEY.cjs +0 -1
  62. package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-D7-HhkPl.cjs +0 -1
  63. package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-DlcscNze.js +0 -238
@@ -1,12 +1,12 @@
1
- import { ref as m, watch as Q, nextTick as oa, resolveComponent as Se, createBlock as re, openBlock as j, withCtx as H, createElementVNode as R, renderSlot as je, onMounted as Ve, createElementBlock as S, createCommentVNode as Ie, Fragment as Me, renderList as Pe, normalizeStyle as We, toDisplayString as L, createVNode as G, unref as sa, createSlots as ra } from "vue";
2
- import { p as Fe } from "./index-g1lOxgn5.js";
3
- import { f as ta } from "./index-B5RsyhWe.js";
4
- import { s as ze, a as ua, b as da } from "./index-BWmd705R.js";
1
+ import { ref as m, watch as Q, nextTick as sa, resolveComponent as Se, createBlock as re, openBlock as j, withCtx as R, createElementVNode as F, renderSlot as je, onMounted as Ve, createElementBlock as S, createCommentVNode as Ie, Fragment as Me, renderList as Pe, normalizeStyle as We, toDisplayString as L, createVNode as G, unref as ra, createSlots as ta } from "vue";
2
+ import { p as Fe } from "./index-BBUta35L.js";
3
+ import { f as ua } from "./index-B5xB3M2p.js";
4
+ import { s as ze, a as ca, b as da } from "./index-C5haV158.js";
5
+ import { c as k } from "./cloneDeep-BvVWmE15.js";
5
6
  import { _ as Ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- import { d as Ge, u as ca, s as se } from "./menu-Dk3VihkR.js";
7
- import { c as _ } from "./cloneDeep-BY7jbyTA.js";
8
- import { g as He, d as fa, c as pa, u as ha } from "./index-BcFYdS3F.js";
9
- const ya = {
7
+ import { d as Ge, u as fa, s as se } from "./menu-DHsbCYvT.js";
8
+ import { g as He, d as pa, c as ha, u as ya } from "./index-BNY7DURy.js";
9
+ const ga = {
10
10
  __name: "index",
11
11
  props: {
12
12
  isVisible: {
@@ -23,7 +23,7 @@ const ya = {
23
23
  }
24
24
  },
25
25
  setup(r) {
26
- const t = r, a = m(null), e = m(!1), l = m(null);
26
+ const t = r, a = m(null), e = m(!1), n = m(null);
27
27
  return Q(
28
28
  () => t == null ? void 0 : t.isVisible,
29
29
  () => {
@@ -31,9 +31,9 @@ const ya = {
31
31
  },
32
32
  { deep: !0, immediate: !0 }
33
33
  ), Q(
34
- () => l.value,
34
+ () => n.value,
35
35
  () => {
36
- oa(() => {
36
+ sa(() => {
37
37
  var s, h;
38
38
  (h = (s = a.value) == null ? void 0 : s.updatePopper) == null || h.call(s);
39
39
  });
@@ -49,16 +49,16 @@ const ya = {
49
49
  ref_key: "popOverRef",
50
50
  ref: a
51
51
  }, {
52
- reference: H(() => [
53
- R("div", null, [
52
+ reference: R(() => [
53
+ F("div", null, [
54
54
  je(s.$slots, "reference", {
55
55
  ref_key: "referenceRef",
56
- ref: l
56
+ ref: n
57
57
  })
58
58
  ])
59
59
  ]),
60
- default: H(() => [
61
- R("div", null, [
60
+ default: R(() => [
61
+ F("div", null, [
62
62
  je(s.$slots, "content")
63
63
  ])
64
64
  ]),
@@ -66,10 +66,62 @@ const ya = {
66
66
  }, 8, ["visible", "title", "width"]);
67
67
  };
68
68
  }
69
- }, ga = { class: "extra-button-content" }, ba = {
69
+ }, J = m(0), ee = (r) => (J.value++, r == null ? void 0 : r.map((a) => Array.isArray(a) ? ee(a) : {
70
+ label: (a == null ? void 0 : a.label) ?? "",
71
+ prop: (a == null ? void 0 : a.label) === "操作" ? "operate" : (a == null ? void 0 : a.prop) ?? "a" + J.value,
72
+ width: (a == null ? void 0 : a.label) === "操作" ? "160" : a != null && a.width ? parseInt(a.width) : "",
73
+ fixed: (a == null ? void 0 : a.fixed) ?? void 0,
74
+ sortable: (a == null ? void 0 : a.sortable) ?? !1,
75
+ align: (a == null ? void 0 : a.align) ?? "center",
76
+ showOverflowTooltip: (a == null ? void 0 : a.showOverflowTooltip) ?? !0,
77
+ isNotDrag: (a == null ? void 0 : a.isNotDrag) ?? !1,
78
+ isEditCol: (a == null ? void 0 : a.isEditCol) ?? !1,
79
+ isOperate: (a == null ? void 0 : a.isOperate) ?? !1,
80
+ id: (a == null ? void 0 : a.id) ?? J.value,
81
+ type: (a == null ? void 0 : a.label) === "操作" ? "operate" : void 0,
82
+ formType: (a == null ? void 0 : a.formType) ?? "",
83
+ isHidden: a == null ? void 0 : a.isHidden,
84
+ options: (a == null ? void 0 : a.options) ?? [],
85
+ children: ee(a.children) ?? void 0
86
+ })), ba = (r) => {
87
+ const t = [];
88
+ function a(e) {
89
+ if (Array.isArray(e))
90
+ for (const n of e)
91
+ !n.children || n.children.length === 0 ? t.push(n) : a(n.children);
92
+ }
93
+ return a(r), t;
94
+ }, Re = (r) => k(r).map((a) => (Array.isArray(a) && (a = a.map((e) => (Array.isArray(e) ? e = ee(e) : (e = {
95
+ label: (e == null ? void 0 : e.label) ?? "",
96
+ prop: (e == null ? void 0 : e.label) === "操作" ? "operate" : (e == null ? void 0 : e.prop) ?? "a" + J.value,
97
+ width: (e == null ? void 0 : e.label) === "操作" ? "160" : e != null && e.width ? parseInt(e.width) : "",
98
+ fixed: (e == null ? void 0 : e.fixed) ?? void 0,
99
+ sortable: (e == null ? void 0 : e.sortable) ?? !1,
100
+ align: (e == null ? void 0 : e.align) ?? "center",
101
+ showOverflowTooltip: (e == null ? void 0 : e.showOverflowTooltip) ?? !0,
102
+ isNotDrag: (e == null ? void 0 : e.isNotDrag) ?? !1,
103
+ isEditCol: (e == null ? void 0 : e.isEditCol) ?? !1,
104
+ isOperate: (e == null ? void 0 : e.isOperate) ?? !1,
105
+ id: (e == null ? void 0 : e.id) ?? J.value,
106
+ type: (e == null ? void 0 : e.label) === "操作" ? "operate" : void 0,
107
+ formType: (e == null ? void 0 : e.formType) ?? "",
108
+ isHidden: e == null ? void 0 : e.isHidden,
109
+ options: (e == null ? void 0 : e.options) ?? [],
110
+ children: ee(e.children)
111
+ }, J.value++), e))), a)), Je = (r) => {
112
+ function t(a, e = []) {
113
+ if (!a || a.length === 0) return [];
114
+ let n = e;
115
+ return a == null || a.forEach((s) => {
116
+ var h;
117
+ s != null && s.children && ((h = s.children) == null ? void 0 : h.length) > 0 ? n = t(s == null ? void 0 : s.children, n) : n.push(s);
118
+ }), n;
119
+ }
120
+ return t(r);
121
+ }, ma = { class: "extra-button-content" }, Ca = {
70
122
  key: 0,
71
123
  class: "extra-header"
72
- }, ma = ["onClick"], Ca = { class: "extra-button-filter" }, ka = {
124
+ }, ka = ["onClick"], Aa = { class: "extra-button-filter" }, _a = { class: "form-content-value" }, Da = {
73
125
  __name: "header",
74
126
  props: {
75
127
  buttons: {
@@ -83,75 +135,77 @@ const ya = {
83
135
  },
84
136
  emits: ["buttonClick"],
85
137
  setup(r, { emit: t }) {
86
- const a = t, e = r, l = m(!1), s = m([]), h = m([{ label: "取消" }, { label: "确认" }]), p = (T) => {
87
- a("buttonClick", T);
88
- }, v = (T) => {
89
- var D;
90
- s.value = (D = T == null ? void 0 : T.filter((y) => (y == null ? void 0 : y.label) !== "" && (y == null ? void 0 : y.label) !== "操作")) == null ? void 0 : D.map((y) => ({
138
+ const a = t, e = r, n = m(!1), s = m([]), h = m([{ label: "取消" }, { label: "确认" }]), p = (O) => {
139
+ a("buttonClick", O);
140
+ }, T = (O) => {
141
+ var D, v;
142
+ s.value = (v = (D = Je(k(O))) == null ? void 0 : D.filter((y) => (y == null ? void 0 : y.label) !== "" && (y == null ? void 0 : y.label) !== "操作")) == null ? void 0 : v.map((y) => ({
91
143
  label: (y == null ? void 0 : y.label) ?? "",
92
144
  value: "",
93
145
  name: (y == null ? void 0 : y.prop) ?? ""
94
146
  }));
95
- }, w = (T) => {
96
- l.value = !1;
147
+ }, w = (O) => {
148
+ n.value = !1;
97
149
  };
98
150
  return Ve(() => {
99
- v(e.columns);
151
+ T(e.columns);
100
152
  }), Q(
101
153
  () => e.columns,
102
154
  () => {
103
- v(e.columns);
155
+ T(e.columns);
104
156
  },
105
157
  { deep: !0, immediate: !0 }
106
- ), (T, D) => {
107
- var O;
108
- const y = Se("el-tooltip");
109
- return j(), S("div", ga, [
110
- e != null && e.buttons && ((O = e == null ? void 0 : e.buttons) == null ? void 0 : O.length) > 0 ? (j(), S("div", ba, [
158
+ ), (O, D) => {
159
+ var y;
160
+ const v = Se("el-tooltip");
161
+ return j(), S("div", ma, [
162
+ e != null && e.buttons && ((y = e == null ? void 0 : e.buttons) == null ? void 0 : y.length) > 0 ? (j(), S("div", Ca, [
111
163
  (j(!0), S(Me, null, Pe(e == null ? void 0 : e.buttons, (C, $) => (j(), S("div", {
112
164
  class: "extra-contents",
113
165
  key: $
114
166
  }, [
115
- R("div", {
167
+ F("div", {
116
168
  class: "extra-content",
117
169
  style: We({ background: (C == null ? void 0 : C.background) ?? "var(--ssComponent-primary-color)", color: "white" }),
118
170
  onClick: (V) => p(C == null ? void 0 : C.label)
119
- }, L(C == null ? void 0 : C.label), 13, ma)
171
+ }, L(C == null ? void 0 : C.label), 13, ka)
120
172
  ]))), 128))
121
173
  ])) : Ie("", !0),
122
- R("div", Ca, [
123
- G(ya, {
174
+ F("div", Aa, [
175
+ G(ga, {
124
176
  title: "筛选数据",
125
177
  width: 500,
126
- isVisible: l.value
178
+ isVisible: n.value
127
179
  }, {
128
- reference: H(() => [
129
- G(y, {
180
+ reference: R(() => [
181
+ G(v, {
130
182
  content: "筛选",
131
183
  placement: "top-start"
132
184
  }, {
133
- default: H(() => [
134
- R("div", {
185
+ default: R(() => [
186
+ F("div", {
135
187
  class: "button-style",
136
- onClick: D[0] || (D[0] = (C) => l.value = !l.value)
188
+ onClick: D[0] || (D[0] = (C) => n.value = !n.value)
137
189
  }, [
138
- G(sa(ta))
190
+ G(ra(ua))
139
191
  ])
140
192
  ]),
141
193
  _: 1
142
194
  })
143
195
  ]),
144
- content: H(() => [
145
- (j(), re(ze, {
146
- rowContents: s.value,
147
- buttonValue: h.value,
148
- isRowFlex: !0,
149
- isEnableWrap: !1,
150
- isButtonRow: !1,
151
- key: h.value,
152
- isStartJustify: !1,
153
- onOnButtonClick: w
154
- }, null, 8, ["rowContents", "buttonValue"]))
196
+ content: R(() => [
197
+ F("div", _a, [
198
+ (j(), re(ze, {
199
+ rowContents: s.value,
200
+ buttonValue: h.value,
201
+ isRowFlex: !0,
202
+ isEnableWrap: !1,
203
+ isButtonRow: !1,
204
+ key: h.value,
205
+ isStartJustify: !1,
206
+ onOnButtonClick: w
207
+ }, null, 8, ["rowContents", "buttonValue"]))
208
+ ])
155
209
  ]),
156
210
  _: 1
157
211
  }, 8, ["isVisible"])
@@ -159,7 +213,7 @@ const ya = {
159
213
  ]);
160
214
  };
161
215
  }
162
- }, Aa = /* @__PURE__ */ Ue(ka, [["__scopeId", "data-v-5ce3f2ea"]]), _a = Ge("formToTableComp", {
216
+ }, wa = /* @__PURE__ */ Ue(Da, [["__scopeId", "data-v-401da734"]]), va = Ge("formToTableComp", {
163
217
  state: () => ({
164
218
  selectArray: [],
165
219
  selectString: ""
@@ -172,7 +226,7 @@ const ya = {
172
226
  this.selectString = r;
173
227
  }
174
228
  }
175
- }), Da = Ge("unit", {
229
+ }), Ta = Ge("unit", {
176
230
  state: () => ({
177
231
  selectIndex: "",
178
232
  selectMenu: "",
@@ -189,116 +243,64 @@ const ya = {
189
243
  this.selectTitle = r;
190
244
  }
191
245
  }
192
- }), Je = (r, t) => {
246
+ }), qe = (r, t) => {
193
247
  let a = r, e = t;
194
- return Array.isArray(a) && (a = a == null ? void 0 : a.map((l, s) => {
195
- if (Array.isArray(l)) {
248
+ return Array.isArray(a) && (a = a == null ? void 0 : a.map((n, s) => {
249
+ if (Array.isArray(n)) {
196
250
  let h = {};
197
- return l = l == null ? void 0 : l.forEach((p, v) => {
251
+ return n = n == null ? void 0 : n.forEach((p, T) => {
198
252
  var w;
199
- (w = e == null ? void 0 : e[v]) != null && w.prop ? h[e[v].prop] = p : Array.isArray(p) && (h.children = Je(p, e));
253
+ (w = e == null ? void 0 : e[T]) != null && w.prop ? h[e[T].prop] = p : Array.isArray(p) && (h.children = qe(p, e));
200
254
  }), Object.assign(h, { id: s });
201
255
  } else
202
- return l;
256
+ return n;
203
257
  })), a;
204
- }, qe = (r, t, a) => {
205
- let e = r, l = t;
258
+ }, Ke = (r, t, a) => {
259
+ let e = r, n = t;
206
260
  return e = e == null ? void 0 : e.map((s, h) => {
207
- var p, v;
208
- return !Array.isArray(s) || !((p = l == null ? void 0 : l[h]) != null && p.label) && !a || (s.unshift(((v = l == null ? void 0 : l[h]) == null ? void 0 : v.label) ?? ""), s.some((w) => Array.isArray(w)) && (s = s == null ? void 0 : s.map((w) => {
209
- var T;
210
- return Array.isArray(w) && (w = qe(w, (T = l == null ? void 0 : l[h]) == null ? void 0 : T.children, a)), w;
261
+ var p, T;
262
+ return !Array.isArray(s) || !((p = n == null ? void 0 : n[h]) != null && p.label) && !a || (s.unshift(((T = n == null ? void 0 : n[h]) == null ? void 0 : T.label) ?? ""), s.some((w) => Array.isArray(w)) && (s = s == null ? void 0 : s.map((w) => {
263
+ var O;
264
+ return Array.isArray(w) && (w = Ke(w, (O = n == null ? void 0 : n[h]) == null ? void 0 : O.children, a)), w;
211
265
  }))), s;
212
266
  }), e;
213
- }, wa = (r, t, a) => {
267
+ }, Oa = (r, t, a) => {
214
268
  if (t === "")
215
269
  return r == null ? void 0 : r.filter((e) => (e == null ? void 0 : e.id) !== a);
216
270
  {
217
271
  const e = t.split("-");
218
- return Ta(r, e, a);
272
+ return xa(r, e, a);
219
273
  }
220
- }, Ta = (r, t, a) => {
221
- let e = r, l = t;
222
- return (l == null ? void 0 : l.length) === 0 ? e = e == null ? void 0 : e.filter((s) => s.id !== a) : e = e == null ? void 0 : e.map((s) => (s.id.toString() === (l == null ? void 0 : l[0]) && (l == null || l.shift(), s = Ke(s, l, a)), s)), e;
223
- }, Ke = (r, t, a) => {
274
+ }, xa = (r, t, a) => {
275
+ let e = r, n = t;
276
+ return (n == null ? void 0 : n.length) === 0 ? e = e == null ? void 0 : e.filter((s) => s.id !== a) : e = e == null ? void 0 : e.map((s) => (s.id.toString() === (n == null ? void 0 : n[0]) && (n == null || n.shift(), s = Qe(s, n, a)), s)), e;
277
+ }, Qe = (r, t, a) => {
224
278
  var s, h;
225
- let e = r, l = t;
226
- return (l == null ? void 0 : l.length) === 0 ? e.children = (s = e.children) == null ? void 0 : s.filter((p) => p.id !== a) : e.children = (h = e.children) == null ? void 0 : h.map((p) => (p.id.toString() === (l == null ? void 0 : l[0]) && (l == null || l.shift(), p = Ke(p, l, a)), p)), e;
227
- }, va = (r, t, a) => {
279
+ let e = r, n = t;
280
+ return (n == null ? void 0 : n.length) === 0 ? e.children = (s = e.children) == null ? void 0 : s.filter((p) => p.id !== a) : e.children = (h = e.children) == null ? void 0 : h.map((p) => (p.id.toString() === (n == null ? void 0 : n[0]) && (n == null || n.shift(), p = Qe(p, n, a)), p)), e;
281
+ }, Ea = (r, t, a) => {
228
282
  if (t === "")
229
283
  return a;
230
284
  {
231
285
  const e = t.split("-");
232
- return Oa(r, e, a);
286
+ return Na(r, e, a);
233
287
  }
234
- }, Oa = (r, t, a) => {
235
- let e = r, l = t;
236
- return (l == null ? void 0 : l.length) === 0 ? e = a : e = e == null ? void 0 : e.map((s) => (s.id.toString() === (l == null ? void 0 : l[0]) && (l == null || l.shift(), s = Qe(s, l, a)), s)), e;
237
- }, Qe = (r, t, a) => {
288
+ }, Na = (r, t, a) => {
289
+ let e = r, n = t;
290
+ return (n == null ? void 0 : n.length) === 0 ? e = a : e = e == null ? void 0 : e.map((s) => (s.id.toString() === (n == null ? void 0 : n[0]) && (n == null || n.shift(), s = Xe(s, n, a)), s)), e;
291
+ }, Xe = (r, t, a) => {
238
292
  var s;
239
- let e = r, l = t;
240
- return (l == null ? void 0 : l.length) === 0 ? e.children = a : e.children = (s = e.children) == null ? void 0 : s.map((h) => (h.id.toString() === (l == null ? void 0 : l[0]) && (l == null || l.shift(), h = Qe(h, l, a)), h)), e;
241
- }, J = m(0), ee = (r) => (J.value++, r == null ? void 0 : r.map((a) => Array.isArray(a) ? ee(a) : {
242
- label: (a == null ? void 0 : a.label) ?? "",
243
- prop: (a == null ? void 0 : a.label) === "操作" ? "operate" : (a == null ? void 0 : a.prop) ?? "a" + J.value,
244
- width: (a == null ? void 0 : a.label) === "操作" ? "160" : a != null && a.width ? parseInt(a.width) : "",
245
- fixed: (a == null ? void 0 : a.fixed) ?? void 0,
246
- sortable: (a == null ? void 0 : a.sortable) ?? !1,
247
- align: (a == null ? void 0 : a.align) ?? "center",
248
- showOverflowTooltip: (a == null ? void 0 : a.showOverflowTooltip) ?? !0,
249
- isNotDrag: (a == null ? void 0 : a.isNotDrag) ?? !1,
250
- isEditCol: (a == null ? void 0 : a.isEditCol) ?? !1,
251
- isOperate: (a == null ? void 0 : a.isOperate) ?? !1,
252
- id: (a == null ? void 0 : a.id) ?? J.value,
253
- type: (a == null ? void 0 : a.label) === "操作" ? "operate" : void 0,
254
- formType: (a == null ? void 0 : a.formType) ?? "",
255
- isHidden: a == null ? void 0 : a.isHidden,
256
- options: (a == null ? void 0 : a.options) ?? [],
257
- children: ee(a.children) ?? void 0
258
- })), xa = (r) => {
259
- const t = [];
260
- function a(e) {
261
- if (Array.isArray(e))
262
- for (const l of e)
263
- !l.children || l.children.length === 0 ? t.push(l) : a(l.children);
264
- }
265
- return a(r), t;
266
- }, Re = (r) => _(r).map((a) => (Array.isArray(a) && (a = a.map((e) => (Array.isArray(e) ? e = ee(e) : (e = {
267
- label: (e == null ? void 0 : e.label) ?? "",
268
- prop: (e == null ? void 0 : e.label) === "操作" ? "operate" : (e == null ? void 0 : e.prop) ?? "a" + J.value,
269
- width: (e == null ? void 0 : e.label) === "操作" ? "160" : e != null && e.width ? parseInt(e.width) : "",
270
- fixed: (e == null ? void 0 : e.fixed) ?? void 0,
271
- sortable: (e == null ? void 0 : e.sortable) ?? !1,
272
- align: (e == null ? void 0 : e.align) ?? "center",
273
- showOverflowTooltip: (e == null ? void 0 : e.showOverflowTooltip) ?? !0,
274
- isNotDrag: (e == null ? void 0 : e.isNotDrag) ?? !1,
275
- isEditCol: (e == null ? void 0 : e.isEditCol) ?? !1,
276
- isOperate: (e == null ? void 0 : e.isOperate) ?? !1,
277
- id: (e == null ? void 0 : e.id) ?? J.value,
278
- type: (e == null ? void 0 : e.label) === "操作" ? "operate" : void 0,
279
- formType: (e == null ? void 0 : e.formType) ?? "",
280
- isHidden: e == null ? void 0 : e.isHidden,
281
- options: (e == null ? void 0 : e.options) ?? [],
282
- children: ee(e.children)
283
- }, J.value++), e))), a)), Ea = (r) => {
284
- function t(a, e = []) {
285
- if (!a || a.length === 0) return [];
286
- let l = e;
287
- return a == null || a.forEach((s) => {
288
- var h;
289
- s != null && s.children && ((h = s.children) == null ? void 0 : h.length) > 0 ? l = t(s == null ? void 0 : s.children, l) : l.push(s);
290
- }), l;
291
- }
292
- return t(r);
293
- }, Na = async (r, t, a = "") => {
294
- var w, T;
293
+ let e = r, n = t;
294
+ return (n == null ? void 0 : n.length) === 0 ? e.children = a : e.children = (s = e.children) == null ? void 0 : s.map((h) => (h.id.toString() === (n == null ? void 0 : n[0]) && (n == null || n.shift(), h = Xe(h, n, a)), h)), e;
295
+ }, Ba = async (r, t, a = "") => {
296
+ var w, O;
295
297
  const e = await He({
296
298
  key: {
297
299
  pageKey: r,
298
300
  systemKey: t,
299
301
  parentTable: a
300
302
  }
301
- }), l = (w = e.data.result) == null ? void 0 : w.map((D) => D.id), s = l == null ? void 0 : l.map((D) => He({
303
+ }), n = (w = e.data.result) == null ? void 0 : w.map((D) => D.id), s = n == null ? void 0 : n.map((D) => He({
302
304
  key: {
303
305
  pageKey: r,
304
306
  systemKey: t,
@@ -307,32 +309,32 @@ const ya = {
307
309
  })), h = await Promise.all(s), p = [];
308
310
  h == null || h.forEach((D) => {
309
311
  var C, $, V, U;
310
- const y = (C = D.data.result) == null ? void 0 : C.map((X) => {
312
+ const v = (C = D.data.result) == null ? void 0 : C.map((X) => {
311
313
  const I = X.value.tableData;
312
314
  return I.unshift({
313
315
  id: X.id
314
316
  }), I;
315
- }), O = (U = (V = ($ = D.data.result) == null ? void 0 : $[0]) == null ? void 0 : V.key) == null ? void 0 : U.tableId;
317
+ }), y = (U = (V = ($ = D.data.result) == null ? void 0 : $[0]) == null ? void 0 : V.key) == null ? void 0 : U.tableId;
316
318
  p.push({
317
- key: O,
318
- contents: y
319
+ key: y,
320
+ contents: v
319
321
  });
320
322
  });
321
- const v = [];
322
- return (T = e.data.result) == null || T.forEach((D) => {
323
+ const T = [];
324
+ return (O = e.data.result) == null || O.forEach((D) => {
323
325
  var C;
324
- const y = D.value.pageData, O = _(y.compData);
325
- O.push({
326
+ const v = D.value.pageData, y = k(v.compData);
327
+ y.push({
326
328
  key: "tableContents",
327
329
  contents: (C = p == null ? void 0 : p.find(($) => ($ == null ? void 0 : $.key) === D.id)) == null ? void 0 : C.contents
328
- }), y.compData = O, y.id = D.id, v.push(y);
329
- }), v;
330
- }, Ua = async (r) => {
331
- await fa({
330
+ }), v.compData = y, v.id = D.id, T.push(v);
331
+ }), T;
332
+ }, Ga = async (r) => {
333
+ await pa({
332
334
  id: r
333
335
  });
334
- }, Ga = async (r, t, a, e, l) => {
335
- await pa({
336
+ }, Ja = async (r, t, a, e, n) => {
337
+ await ha({
336
338
  key: {
337
339
  type: r,
338
340
  pageKey: t,
@@ -340,26 +342,26 @@ const ya = {
340
342
  systemKey: e
341
343
  },
342
344
  value: {
343
- tableData: l
345
+ tableData: n
344
346
  }
345
347
  });
346
- }, Ja = async (r, t, a, e, l, s) => {
347
- await ha({
348
+ }, qa = async (r, t, a, e, n, s) => {
349
+ await ya({
348
350
  key: {
349
351
  type: r,
350
352
  pageKey: t,
351
353
  tableId: a,
352
- systemKey: l
354
+ systemKey: n
353
355
  },
354
356
  value: {
355
357
  tableData: s
356
358
  },
357
359
  id: e
358
360
  });
359
- }, Ba = { class: "table-content" }, $a = ["onClick"], ja = { class: "form-content" }, Fa = {
361
+ }, $a = { class: "table-content" }, ja = ["onClick"], Fa = { class: "form-content" }, Ha = {
360
362
  key: 0,
361
363
  class: "dialog-footer"
362
- }, Ha = {
364
+ }, Ra = {
363
365
  __name: "index",
364
366
  props: {
365
367
  itemData: {
@@ -379,28 +381,28 @@ const ya = {
379
381
  },
380
382
  emits: ["change", "contentChange", "onButtonClick", "contentClick", "pageChange"],
381
383
  setup(r, { emit: t }) {
382
- const a = r, e = t, l = m([]), s = ca(), { activeMenuPath: h } = se(s), p = m([]), v = m("");
384
+ const a = r, e = t, n = m([]), s = fa(), { activeMenuPath: h } = se(s), p = m([]), T = m("");
383
385
  m();
384
- const w = m(!0), T = m(0), D = m(!1), y = m(""), O = m(!1), C = m([]), $ = m(!1), V = m([]), U = m([]), X = m(), I = m(), Xe = _a(Fe), te = m(), Y = Da(Fe), { selectIndex: Ye, selectMenu: F, selectTitle: ae } = se(Y), { selectString: M } = se(Xe), Ze = m(720), Le = () => {
385
- O.value = !1;
386
- }, ea = async (o) => {
387
- var b, f, n, k, B, g, A;
388
- const c = await Na(h.value, sessionStorage.getItem("systemKey"), o.id);
389
- if (c && c.length > 0) {
386
+ const w = m(!0), O = m(0), D = m(!1), v = m(""), y = m(!1), C = m([]), $ = m(!1), V = m([]), U = m([]), X = m(), I = m(), Ye = va(Fe), te = m(), Y = Ta(Fe), { selectIndex: Ze, selectMenu: H, selectTitle: ae } = se(Y), { selectString: M } = se(Ye), Le = m(720), ea = () => {
387
+ y.value = !1;
388
+ }, aa = async (o) => {
389
+ var b, f, l, A, B, g, _;
390
+ const d = await Ba(h.value, sessionStorage.getItem("systemKey"), o.id);
391
+ if (d && d.length > 0) {
390
392
  const q = !Array.isArray(ae.value) && ((b = ae.value) == null ? void 0 : b.key) !== "main" ? [] : ae.value;
391
393
  q.push({
392
- key: F.value === "" ? (f = o == null ? void 0 : o.id) == null ? void 0 : f.toString() : F.value + "-" + ((n = o == null ? void 0 : o.id) == null ? void 0 : n.toString()),
393
- value: o[(k = Object.keys(o)) == null ? void 0 : k.filter((K) => K !== "index" && K !== "id")[0]]
394
- }), Y.setSelectMenu(F.value === "" ? (B = o == null ? void 0 : o.id) == null ? void 0 : B.toString() : F.value + "-" + ((g = o == null ? void 0 : o.id) == null ? void 0 : g.toString())), Y.setSelectTitle(q), Y.setSelectIndex((A = o == null ? void 0 : o.id) == null ? void 0 : A.toString()), e("pageChange", c);
394
+ key: H.value === "" ? (f = o == null ? void 0 : o.id) == null ? void 0 : f.toString() : H.value + "-" + ((l = o == null ? void 0 : o.id) == null ? void 0 : l.toString()),
395
+ value: o[(A = Object.keys(o)) == null ? void 0 : A.filter((K) => K !== "index" && K !== "id")[0]]
396
+ }), Y.setSelectMenu(H.value === "" ? (B = o == null ? void 0 : o.id) == null ? void 0 : B.toString() : H.value + "-" + ((g = o == null ? void 0 : o.id) == null ? void 0 : g.toString())), Y.setSelectTitle(q), Y.setSelectIndex((_ = o == null ? void 0 : o.id) == null ? void 0 : _.toString()), e("pageChange", d);
395
397
  }
396
398
  }, ue = (o) => {
397
399
  var b;
398
- const c = (b = _(a.itemData)) == null ? void 0 : b.map((f) => ((f == null ? void 0 : f.key) === "tableContents" && (f.contents = o), f));
400
+ const d = (b = k(a.itemData)) == null ? void 0 : b.map((f) => ((f == null ? void 0 : f.key) === "tableContents" && (f.contents = o), f));
399
401
  e("contentChange", {
400
- contents: c,
402
+ contents: d,
401
403
  index: a.index
402
404
  });
403
- }, aa = (o) => {
405
+ }, na = (o) => {
404
406
  e("contentClick", o);
405
407
  };
406
408
  Q(
@@ -408,16 +410,16 @@ const ya = {
408
410
  () => {
409
411
  var b, f;
410
412
  if (!a.changedContent) return;
411
- let o = (b = p.value) == null ? void 0 : b.map((n) => {
412
- var k;
413
- return n.id === ((k = a.changedContent) == null ? void 0 : k.id) && (n = {
413
+ let o = (b = p.value) == null ? void 0 : b.map((l) => {
414
+ var A;
415
+ return l.id === ((A = a.changedContent) == null ? void 0 : A.id) && (l = {
414
416
  ...a.changedContent,
415
417
  id: a.changedContent.newId ? a.changedContent.newId : a.changedContent.id
416
- }, delete n.newId), n;
418
+ }, delete l.newId), l;
417
419
  });
418
- const c = (f = a.itemData) == null ? void 0 : f.map((n) => ((n == null ? void 0 : n.key) === "tableContents" && (n.contents = o), n));
420
+ const d = (f = a.itemData) == null ? void 0 : f.map((l) => ((l == null ? void 0 : l.key) === "tableContents" && (l.contents = o), l));
419
421
  p.value = o, e("contentChange", {
420
- contents: c,
422
+ contents: d,
421
423
  index: a.index
422
424
  }), e("change", {
423
425
  content: o,
@@ -428,71 +430,71 @@ const ya = {
428
430
  },
429
431
  { deep: !0, immediate: !0 }
430
432
  );
431
- const le = (o, c) => {
433
+ const ne = (o, d) => {
432
434
  var b;
433
- if (v.value = "", $.value = !0, w.value = !0, e("onButtonClick", o, c), o === "删除") {
434
- p.value = (b = _(p.value)) == null ? void 0 : b.filter((n) => (n == null ? void 0 : n.id) !== (c == null ? void 0 : c.id));
435
- const f = wa(te.value, F.value, c == null ? void 0 : c.id);
435
+ if (T.value = "", $.value = !0, w.value = !0, e("onButtonClick", o, d), o === "删除") {
436
+ p.value = (b = k(p.value)) == null ? void 0 : b.filter((l) => (l == null ? void 0 : l.id) !== (d == null ? void 0 : d.id));
437
+ const f = Oa(te.value, H.value, d == null ? void 0 : d.id);
436
438
  ue(f), e("change", {
437
439
  content: f,
438
- singleContent: c,
440
+ singleContent: d,
439
441
  index: a == null ? void 0 : a.index,
440
442
  type: "delete",
441
443
  buttonName: o
442
444
  });
443
- } else o === "新增" ? (y.value = "新增", ne(""), O.value = !0) : o === "编辑" ? (y.value = "编辑", ne(c), O.value = !0) : o === "查看" && (y.value = "查看", ne(c), $.value = !1, w.value = !1, O.value = !0);
444
- }, ne = (o) => {
445
+ } else o === "新增" ? (v.value = "新增", le(""), y.value = !0) : o === "编辑" ? (v.value = "编辑", le(d), y.value = !0) : o === "查看" && (v.value = "查看", le(d), $.value = !1, w.value = !1, y.value = !0);
446
+ }, le = (o) => {
445
447
  var b, f;
446
- const c = [];
447
- (f = Ea((b = _(l.value)) == null ? void 0 : b.filter((n) => n.label !== "" && (n == null ? void 0 : n.label) !== "操作"))) == null || f.forEach((n, k) => {
448
- c.push({
449
- label: (n == null ? void 0 : n.label) ?? "",
450
- name: (n == null ? void 0 : n.prop) ?? "t" + k,
451
- type: !(n != null && n.formType) || (n == null ? void 0 : n.formType) === "" ? "Input" : n == null ? void 0 : n.formType,
452
- value: (o == null ? void 0 : o[n == null ? void 0 : n.prop]) ?? "",
453
- id: (n == null ? void 0 : n.id) ?? k,
454
- contents: (n == null ? void 0 : n.options) ?? [],
448
+ const d = [];
449
+ (f = Je((b = k(n.value)) == null ? void 0 : b.filter((l) => l.label !== "" && (l == null ? void 0 : l.label) !== "操作"))) == null || f.forEach((l, A) => {
450
+ d.push({
451
+ label: (l == null ? void 0 : l.label) ?? "",
452
+ name: (l == null ? void 0 : l.prop) ?? "t" + A,
453
+ type: !(l != null && l.formType) || (l == null ? void 0 : l.formType) === "" ? "Input" : l == null ? void 0 : l.formType,
454
+ value: (o == null ? void 0 : o[l == null ? void 0 : l.prop]) ?? "",
455
+ id: (l == null ? void 0 : l.id) ?? A,
456
+ contents: (l == null ? void 0 : l.options) ?? [],
455
457
  width: 1,
456
- isHidden: n == null ? void 0 : n.isHidden
458
+ isHidden: l == null ? void 0 : l.isHidden
457
459
  });
458
- }), o === "" || !o || (v.value = o == null ? void 0 : o.id), U.value = c, console.log(111, U.value);
460
+ }), o === "" || !o || (T.value = o == null ? void 0 : o.id), U.value = d, console.log(111, U.value);
459
461
  };
460
462
  Ve(() => {
461
463
  });
462
464
  const la = () => {
463
- let o, c = _(p.value);
464
- v.value === "" ? (T.value++, c.push(Object.assign(I.value, { id: T.value })), o = Object.assign(I.value, { id: T.value })) : c = c == null ? void 0 : c.map((f) => ((f == null ? void 0 : f.id) === v.value && (f = Object.assign(f, I.value), o = f), f)), p.value = c;
465
- const b = va(te.value, F.value, c);
466
- ue(b), O.value = !1, e("change", {
465
+ let o, d = k(p.value);
466
+ T.value === "" ? (O.value++, d.push(Object.assign(I.value, { id: O.value })), o = Object.assign(I.value, { id: O.value })) : d = d == null ? void 0 : d.map((f) => ((f == null ? void 0 : f.id) === T.value && (f = Object.assign(f, I.value), o = f), f)), p.value = d;
467
+ const b = Ea(te.value, H.value, d);
468
+ ue(b), y.value = !1, e("change", {
467
469
  content: b,
468
470
  singleContent: o,
469
471
  index: a == null ? void 0 : a.index,
470
- buttonName: y.value
472
+ buttonName: v.value
471
473
  });
472
- }, na = (o) => {
474
+ }, ia = (o) => {
473
475
  I.value = o;
474
476
  };
475
477
  return Q(
476
- () => [a.itemData, M.value, Ye.value, F.value],
478
+ () => [a.itemData, M.value, Ze.value, H.value],
477
479
  () => {
478
- var q, K, de, ce, fe, pe, he, ye, ge, be, me, Ce, ke, Ae, _e, De, we, Te, ve, Oe, xe, Ee, Ne, Be;
480
+ var q, K, ce, de, fe, pe, he, ye, ge, be, me, Ce, ke, Ae, _e, De, we, ve, Te, Oe, xe, Ee, Ne, Be;
479
481
  console.log(666, a.itemData);
480
- const o = (q = _(a.itemData)) == null ? void 0 : q.filter((u) => (u == null ? void 0 : u.key) === "header"), c = (K = _(a.itemData)) == null ? void 0 : K.filter((u) => (u == null ? void 0 : u.key) === "tableIndexColumn")[0], b = (de = _(a.itemData)) == null ? void 0 : de.find((u) => (u == null ? void 0 : u.key) === "page"), f = (ce = _(a.itemData)) == null ? void 0 : ce.find((u) => (u == null ? void 0 : u.key) === "rowButton"), n = (fe = _(a.itemData)) == null ? void 0 : fe.find((u) => (u == null ? void 0 : u.key) === "extraButton"), k = (pe = _(a.itemData)) == null ? void 0 : pe.filter((u) => (u == null ? void 0 : u.key) === "tableContents"), B = (he = _(a.itemData)) == null ? void 0 : he.filter((u) => (u == null ? void 0 : u.key) === "tableIndex");
482
+ const o = (q = k(a.itemData)) == null ? void 0 : q.filter((u) => (u == null ? void 0 : u.key) === "header"), d = (K = k(a.itemData)) == null ? void 0 : K.filter((u) => (u == null ? void 0 : u.key) === "tableIndexColumn")[0], b = (ce = k(a.itemData)) == null ? void 0 : ce.find((u) => (u == null ? void 0 : u.key) === "page"), f = (de = k(a.itemData)) == null ? void 0 : de.find((u) => (u == null ? void 0 : u.key) === "rowButton"), l = (fe = k(a.itemData)) == null ? void 0 : fe.find((u) => (u == null ? void 0 : u.key) === "extraButton"), A = (pe = k(a.itemData)) == null ? void 0 : pe.filter((u) => (u == null ? void 0 : u.key) === "tableContents"), B = (he = k(a.itemData)) == null ? void 0 : he.filter((u) => (u == null ? void 0 : u.key) === "tableIndex");
481
483
  D.value = (b == null ? void 0 : b.contents) ?? !0;
482
484
  let g = [];
483
485
  M.value === "" ? g = o == null ? void 0 : o[0] : g = (o == null ? void 0 : o.find((u) => (u == null ? void 0 : u.selectLabel) === "(" + M.value + ")")) ?? (o == null ? void 0 : o.find((u) => !(u != null && u.selectLabel)));
484
- let A = [];
485
- if (M.value === "" ? A = B == null ? void 0 : B[0] : A = (B == null ? void 0 : B.find((u) => (u == null ? void 0 : u.selectLabel) === "(" + M.value + ")")) ?? (B == null ? void 0 : B.find((u) => !(u != null && u.selectLabel))), ((ye = g == null ? void 0 : g.contents) == null ? void 0 : ye.length) > 0) {
486
+ let _ = [];
487
+ if (M.value === "" ? _ = B == null ? void 0 : B[0] : _ = (B == null ? void 0 : B.find((u) => (u == null ? void 0 : u.selectLabel) === "(" + M.value + ")")) ?? (B == null ? void 0 : B.find((u) => !(u != null && u.selectLabel))), ((ye = g == null ? void 0 : g.contents) == null ? void 0 : ye.length) > 0) {
486
488
  let u = [];
487
- if (A != null && A.contents && ((ge = A == null ? void 0 : A.contents) == null ? void 0 : ge.length) !== 0 && u.push({
488
- label: (c == null ? void 0 : c.contents) ?? "",
489
+ if (_ != null && _.contents && ((ge = _ == null ? void 0 : _.contents) == null ? void 0 : ge.length) !== 0 && u.push({
490
+ label: (d == null ? void 0 : d.contents) ?? "",
489
491
  prop: "index",
490
492
  sortable: !1
491
- }), g != null && g.contents.some((d) => Array.isArray(d) && (d == null ? void 0 : d.find((i) => i.children))))
492
- F.value === "" ? u = (me = (be = Re(_(g == null ? void 0 : g.contents))) == null ? void 0 : be[0]) == null ? void 0 : me.filter((d) => !Array.isArray(d)) : (F.value.split("-"), u = (Ce = Re(_(g == null ? void 0 : g.contents))) == null ? void 0 : Ce[0]);
493
+ }), g != null && g.contents.some((c) => Array.isArray(c) && (c == null ? void 0 : c.find((i) => i.children))))
494
+ H.value === "" ? u = (me = (be = Re(k(g == null ? void 0 : g.contents))) == null ? void 0 : be[0]) == null ? void 0 : me.filter((c) => !Array.isArray(c)) : (H.value.split("-"), u = (Ce = Re(k(g == null ? void 0 : g.contents))) == null ? void 0 : Ce[0]);
493
495
  else {
494
- const d = g != null && g.contents.some((i) => Array.isArray(i)) ? (ke = g == null ? void 0 : g.contents) == null ? void 0 : ke[0] : g == null ? void 0 : g.contents;
495
- d == null || d.forEach((i, E) => {
496
+ const c = g != null && g.contents.some((i) => Array.isArray(i)) ? (ke = g == null ? void 0 : g.contents) == null ? void 0 : ke[0] : g == null ? void 0 : g.contents;
497
+ c == null || c.forEach((i, E) => {
496
498
  (i == null ? void 0 : i.label) !== "" && u.push({
497
499
  label: (i == null ? void 0 : i.label) ?? "",
498
500
  prop: (i == null ? void 0 : i.label) === "操作" ? "operate" : (i == null ? void 0 : i.prop) ?? "a" + E,
@@ -512,99 +514,100 @@ const ya = {
512
514
  });
513
515
  });
514
516
  }
515
- l.value = u;
516
- let P = (_e = (Ae = xa(_(l.value))) == null ? void 0 : Ae.filter((d) => (d == null ? void 0 : d.type) !== "operate")) == null ? void 0 : _e.map((d, i) => ({
517
- prop: (d == null ? void 0 : d.prop) ?? "a" + i
517
+ n.value = u;
518
+ let P = (_e = (Ae = ba(k(n.value))) == null ? void 0 : Ae.filter((c) => (c == null ? void 0 : c.type) !== "operate")) == null ? void 0 : _e.map((c, i) => ({
519
+ prop: (c == null ? void 0 : c.prop) ?? "a" + i
518
520
  }));
519
521
  X.value = P;
520
522
  let x = [];
521
- M.value === "" ? x = k == null ? void 0 : k[0] : x = (k == null ? void 0 : k.find((d) => (d == null ? void 0 : d.selectLabel) === "(" + M.value + ")")) ?? (k == null ? void 0 : k.find((d) => !(d != null && d.selectLabel)));
522
- let W = Array.isArray((De = x == null ? void 0 : x.contents) == null ? void 0 : De[0]) && ((we = x == null ? void 0 : x.contents) != null && we[0].every((d) => Array.isArray(d))) ? (Te = _(x == null ? void 0 : x.contents)) == null ? void 0 : Te[0] : _(x == null ? void 0 : x.contents);
523
- A != null && A.contents && ((ve = A == null ? void 0 : A.contents) == null ? void 0 : ve.length) !== 0 && (W = (Oe = _(W)) == null ? void 0 : Oe.map((d, i) => {
524
- if (!Array.isArray(d)) {
523
+ M.value === "" ? x = A == null ? void 0 : A[0] : x = (A == null ? void 0 : A.find((c) => (c == null ? void 0 : c.selectLabel) === "(" + M.value + ")")) ?? (A == null ? void 0 : A.find((c) => !(c != null && c.selectLabel)));
524
+ let W = Array.isArray((De = x == null ? void 0 : x.contents) == null ? void 0 : De[0]) && ((we = x == null ? void 0 : x.contents) != null && we[0].every((c) => Array.isArray(c))) ? (ve = k(x == null ? void 0 : x.contents)) == null ? void 0 : ve[0] : k(x == null ? void 0 : x.contents);
525
+ _ != null && _.contents && ((Te = _ == null ? void 0 : _.contents) == null ? void 0 : Te.length) !== 0 && (W = (Oe = k(W)) == null ? void 0 : Oe.map((c, i) => {
526
+ if (!Array.isArray(c)) {
525
527
  let E = {};
526
- for (let z in d)
527
- z !== "id" && z !== "index" && (E[z] = d[z]);
528
- d = Object.values(E);
528
+ for (let z in c)
529
+ z !== "id" && z !== "index" && (E[z] = c[z]);
530
+ c = Object.values(E);
529
531
  }
530
- return d;
532
+ return c;
531
533
  }));
532
- const ia = !!((xe = l.value) != null && xe.find((d) => d.prop === "index"));
533
- W = qe(_(W), A == null ? void 0 : A.contents, ia);
534
+ const oa = !!((xe = n.value) != null && xe.find((c) => c.prop === "index"));
535
+ W = Ke(k(W), _ == null ? void 0 : _.contents, oa);
534
536
  const Z = [];
535
- W == null || W.forEach((d, i) => {
537
+ W == null || W.forEach((c, i) => {
536
538
  var z;
537
539
  let E = {};
538
- Array.isArray(d) ? d == null || d.filter((N) => !N.id).forEach((N, ie) => {
540
+ Array.isArray(c) ? c == null || c.filter((N) => !N.id).forEach((N, ie) => {
539
541
  var $e;
540
- ($e = P == null ? void 0 : P[ie]) != null && $e.prop && !Array.isArray(N) ? E[P[ie].prop] = N : Array.isArray(N) && (N.find((oe) => (oe == null ? void 0 : oe.key) === "tableContentName") ? E[P[ie].prop] = N : E.children = Je(N, P));
541
- }) : E = d, Array.isArray(d) && d.some((N) => N == null ? void 0 : N.id) ? Z.push(Object.assign(E, { id: (z = d == null ? void 0 : d.find((N) => N.id)) == null ? void 0 : z.id })) : E.id ? Z.push(E) : Z.push(Object.assign(E, { id: i }));
542
+ ($e = P == null ? void 0 : P[ie]) != null && $e.prop && !Array.isArray(N) ? E[P[ie].prop] = N : Array.isArray(N) && (N.find((oe) => (oe == null ? void 0 : oe.key) === "tableContentName") ? E[P[ie].prop] = N : E.children = qe(N, P));
543
+ }) : E = c, Array.isArray(c) && c.some((N) => N == null ? void 0 : N.id) ? Z.push(Object.assign(E, { id: (z = c == null ? void 0 : c.find((N) => N.id)) == null ? void 0 : z.id })) : E.id ? Z.push(E) : Z.push(Object.assign(E, { id: i }));
542
544
  }), p.value = Z;
543
545
  } else
544
- l.value = [], p.value = [];
545
- ((Ee = f == null ? void 0 : f.contents) == null ? void 0 : Ee.length) > 0 ? C.value = f == null ? void 0 : f.contents : C.value = [], ((Ne = n == null ? void 0 : n.contents) == null ? void 0 : Ne.length) > 0 ? V.value = n == null ? void 0 : n.contents : V.value = [], T.value = ((Be = p == null ? void 0 : p.value) == null ? void 0 : Be.length) ?? 0;
546
+ n.value = [], p.value = [];
547
+ ((Ee = f == null ? void 0 : f.contents) == null ? void 0 : Ee.length) > 0 ? C.value = f == null ? void 0 : f.contents : C.value = [], ((Ne = l == null ? void 0 : l.contents) == null ? void 0 : Ne.length) > 0 ? V.value = l == null ? void 0 : l.contents : V.value = [], O.value = ((Be = p == null ? void 0 : p.value) == null ? void 0 : Be.length) ?? 0;
546
548
  },
547
549
  { deep: !0, immediate: !0 }
548
- ), (o, c) => {
550
+ ), (o, d) => {
549
551
  var b;
550
- return j(), S("div", Ba, [
551
- (j(), re(ua, {
552
- columns: l.value,
553
- key: l.value,
552
+ return j(), S("div", $a, [
553
+ (j(), re(ca, {
554
+ columns: n.value,
555
+ key: n.value,
554
556
  tableData: p.value,
555
557
  isShowPagination: D.value,
556
558
  isShowEdit: !1,
557
559
  isShowDelete: !1,
558
- onDbClickRow: ea,
560
+ onDbClickRow: aa,
559
561
  extraButton: V.value,
560
- onButtonClick: c[1] || (c[1] = (f) => le(f, "")),
561
- onContentClick: aa
562
- }, ra({
563
- headerButton: H((f) => [
564
- G(Aa, {
562
+ onButtonClick: d[1] || (d[1] = (f) => ne(f, "")),
563
+ onContentClick: na
564
+ }, ta({
565
+ headerButton: R((f) => [
566
+ G(wa, {
565
567
  buttons: f.buttons,
566
- onButtonClick: c[0] || (c[0] = (n) => le(n, ""))
567
- }, null, 8, ["buttons"])
568
+ onButtonClick: d[0] || (d[0] = (l) => ne(l, "")),
569
+ columns: n.value
570
+ }, null, 8, ["buttons", "columns"])
568
571
  ]),
569
572
  _: 2
570
573
  }, [
571
574
  ((b = C.value) == null ? void 0 : b.length) > 0 ? {
572
575
  name: "actions",
573
- fn: H(({ item: f }) => [
574
- (j(!0), S(Me, null, Pe(C.value, (n, k) => (j(), S("div", { key: k }, [
575
- R("div", {
576
- style: We({ color: n == null ? void 0 : n.textColor }),
576
+ fn: R(({ item: f }) => [
577
+ (j(!0), S(Me, null, Pe(C.value, (l, A) => (j(), S("div", { key: A }, [
578
+ F("div", {
579
+ style: We({ color: l == null ? void 0 : l.textColor }),
577
580
  class: "extra-button-label",
578
- onClick: (B) => le(n == null ? void 0 : n.label, f)
579
- }, L(n == null ? void 0 : n.label), 13, $a)
581
+ onClick: (B) => ne(l == null ? void 0 : l.label, f)
582
+ }, L(l == null ? void 0 : l.label), 13, ja)
580
583
  ]))), 128))
581
584
  ]),
582
585
  key: "0"
583
586
  } : void 0
584
587
  ]), 1032, ["columns", "tableData", "isShowPagination", "extraButton"])),
585
588
  G(da, {
586
- title: y.value,
587
- visible: O.value,
588
- width: Ze.value,
589
- onBeforeDestroy: Le
589
+ title: v.value,
590
+ visible: y.value,
591
+ width: Le.value,
592
+ onBeforeDestroy: ea
590
593
  }, {
591
- default: H(() => [
592
- R("div", ja, [
594
+ default: R(() => [
595
+ F("div", Fa, [
593
596
  G(ze, {
594
597
  rowContents: U.value,
595
598
  isEnableWrap: !1,
596
- onChange: na,
599
+ onChange: ia,
597
600
  isEdit: w.value
598
601
  }, null, 8, ["rowContents", "isEdit"])
599
602
  ])
600
603
  ]),
601
- footer: H(() => [
602
- $.value ? (j(), S("div", Fa, [
603
- R("div", {
604
- onClick: c[2] || (c[2] = (f) => O.value = !1),
604
+ footer: R(() => [
605
+ $.value ? (j(), S("div", Ha, [
606
+ F("div", {
607
+ onClick: d[2] || (d[2] = (f) => y.value = !1),
605
608
  class: "cancel-button"
606
609
  }, L("取消")),
607
- R("div", {
610
+ F("div", {
608
611
  class: "ok-button",
609
612
  onClick: la
610
613
  }, L("确认"))
@@ -615,13 +618,13 @@ const ya = {
615
618
  ]);
616
619
  };
617
620
  }
618
- }, qa = /* @__PURE__ */ Ue(Ha, [["__scopeId", "data-v-2dea51dd"]]);
621
+ }, Ka = /* @__PURE__ */ Ue(Ra, [["__scopeId", "data-v-8a9497ec"]]);
619
622
  export {
620
- Da as a,
621
- Ga as b,
622
- Ua as d,
623
- Ja as f,
624
- Na as g,
625
- qa as s,
626
- _a as u
623
+ Ta as a,
624
+ Ja as b,
625
+ Ga as d,
626
+ qa as f,
627
+ Ba as g,
628
+ Ka as s,
629
+ va as u
627
630
  };