ss-component-new 1.1.22 → 1.1.23

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.
@@ -1,7 +1,7 @@
1
1
  import { ref as U, onMounted as Ln, watch as pe, createElementBlock as Y, openBlock as K, createElementVNode as L, createBlock as Be, createVNode as ee, Fragment as je, renderList as $e, normalizeStyle as Lt, toDisplayString as Z, createSlots as qn, withCtx as ce, createCommentVNode as en, resolveComponent as Ge, createTextVNode as Ue, unref as tn, resolveDynamicComponent as Et } from "vue";
2
2
  import { g as Jn, a as Mn, d as nn, c as v, _ as Re, s as Ee, E as zn, u as Hn } from "./menu-V9qTN_Cu.js";
3
3
  import { u as Ye } from "./modelComp-5PDCbl8W.js";
4
- import { s as Te, a as In, b as et, E as Ne } from "./index-fopmc0W_.js";
4
+ import { s as Te, a as In, b as et, f as Vn, E as Ne } from "./index-DSOL_SLh.js";
5
5
  const qt = (e, t) => {
6
6
  const n = e.storage || sessionStorage, r = e.key || t.$id;
7
7
  if (e.paths) {
@@ -10,7 +10,7 @@ const qt = (e, t) => {
10
10
  } else
11
11
  n.setItem(r, JSON.stringify(t.$state));
12
12
  };
13
- var Vn = ({ options: e, store: t }) => {
13
+ var Wn = ({ options: e, store: t }) => {
14
14
  var n, r, o, s;
15
15
  if ((n = e.persist) != null && n.enabled) {
16
16
  const a = [{
@@ -28,7 +28,7 @@ var Vn = ({ options: e, store: t }) => {
28
28
  }
29
29
  };
30
30
  const he = Jn() || Mn();
31
- he.use(Vn);
31
+ he.use(Wn);
32
32
  const rn = nn("formToTableComp", {
33
33
  state: () => ({
34
34
  selectArray: [],
@@ -42,7 +42,7 @@ const rn = nn("formToTableComp", {
42
42
  this.selectString = e;
43
43
  }
44
44
  }
45
- }), Wn = nn("unit", {
45
+ }), Kn = nn("unit", {
46
46
  state: () => ({
47
47
  selectIndex: "",
48
48
  selectMenu: "",
@@ -59,7 +59,7 @@ const rn = nn("formToTableComp", {
59
59
  this.selectTitle = e;
60
60
  }
61
61
  }
62
- }), Kn = (e, t) => {
62
+ }), Gn = (e, t) => {
63
63
  const n = t == null ? void 0 : t.split("-");
64
64
  return on(e, n);
65
65
  }, on = (e, t) => {
@@ -78,38 +78,38 @@ const rn = nn("formToTableComp", {
78
78
  } else
79
79
  return o;
80
80
  })), n;
81
- }, Gn = (e, t, n) => {
81
+ }, Xn = (e, t, n) => {
82
82
  if (t === "")
83
83
  return e == null ? void 0 : e.filter((r) => (r == null ? void 0 : r.id) === n);
84
84
  {
85
85
  const r = t.split("-");
86
- return Xn(e, r, n);
86
+ return Zn(e, r, n);
87
87
  }
88
- }, Xn = (e, t, n) => {
88
+ }, Zn = (e, t, n) => {
89
89
  let r = e, o = t;
90
90
  return (o == null ? void 0 : o.length) === 0 ? r = r == null ? void 0 : r.filter((s) => s.id !== n) : r = r == null ? void 0 : r.map((s) => (s.id.toString() === (o == null ? void 0 : o[0]) && (o == null || o.shift(), s = an(s, o, n)), s)), r;
91
91
  }, an = (e, t, n) => {
92
92
  var s, a;
93
93
  let r = e, o = t;
94
94
  return (o == null ? void 0 : o.length) === 0 ? r.children = (s = r.children) == null ? void 0 : s.filter((l) => l.id !== n) : r.children = (a = r.children) == null ? void 0 : a.map((l) => (l.id.toString() === (o == null ? void 0 : o[0]) && (o == null || o.shift(), l = an(l, o, n)), l)), r;
95
- }, Zn = (e, t, n) => {
95
+ }, Qn = (e, t, n) => {
96
96
  if (t === "")
97
97
  return n;
98
98
  {
99
99
  const r = t.split("-");
100
- return Qn(e, r, n);
100
+ return Yn(e, r, n);
101
101
  }
102
- }, Qn = (e, t, n) => {
102
+ }, Yn = (e, t, n) => {
103
103
  let r = e, o = t;
104
104
  return (o == null ? void 0 : o.length) === 0 ? r = n : r = r == null ? void 0 : r.map((s) => (s.id.toString() === (o == null ? void 0 : o[0]) && (o == null || o.shift(), s = ln(s, o, n)), s)), r;
105
105
  }, ln = (e, t, n) => {
106
106
  var s;
107
107
  let r = e, o = t;
108
108
  return (o == null ? void 0 : o.length) === 0 ? r.children = n : r.children = (s = r.children) == null ? void 0 : s.map((a) => (a.id.toString() === (o == null ? void 0 : o[0]) && (o == null || o.shift(), a = ln(a, o, n)), a)), r;
109
- }, Yn = { class: "table-content" }, er = { class: "extra-header" }, tr = ["onClick"], nr = ["onClick"], rr = {
109
+ }, er = { class: "table-content" }, tr = { class: "extra-header" }, nr = ["onClick"], rr = ["onClick"], or = {
110
110
  key: 0,
111
111
  class: "dialog-footer"
112
- }, or = {
112
+ }, sr = {
113
113
  __name: "index",
114
114
  props: {
115
115
  itemData: {
@@ -124,9 +124,9 @@ const rn = nn("formToTableComp", {
124
124
  },
125
125
  emits: ["change", "contentChange"],
126
126
  setup(e, { emit: t }) {
127
- const n = e, r = t, o = U([]), s = U([]), a = U(""), l = U(), p = U(!0), d = U(0), b = U(!1), i = U(""), T = U(!1), w = U([]), g = U(!1), _ = U([]), f = U([]), h = U(), c = U(), R = rn(he), y = U(), m = Wn(he), { selectIndex: E, selectMenu: S, selectTitle: D } = Ee(m), { selectString: N } = Ee(R), O = U(720), G = () => {
127
+ const n = e, r = t, o = U([]), s = U([]), a = U(""), l = U(), p = U(!0), d = U(0), b = U(!1), i = U(""), T = U(!1), w = U([]), g = U(!1), _ = U([]), f = U([]), h = U(), c = U(), R = rn(he), y = U(), m = Kn(he), { selectIndex: E, selectMenu: S, selectTitle: D } = Ee(m), { selectString: F } = Ee(R), O = U(720), G = () => {
128
128
  T.value = !1;
129
- }, F = (A) => {
129
+ }, N = (A) => {
130
130
  var q, $, x, j, V;
131
131
  if (M(A), A != null && A.children && Array.isArray(A == null ? void 0 : A.children)) {
132
132
  const J = D.value;
@@ -153,7 +153,7 @@ const rn = nn("formToTableComp", {
153
153
  var $;
154
154
  if (a.value = "", g.value = !0, p.value = !0, A === "删除") {
155
155
  s.value = ($ = v(s.value)) == null ? void 0 : $.filter((j) => (j == null ? void 0 : j.id) !== (q == null ? void 0 : q.id));
156
- const x = Gn(y.value, S.value, q == null ? void 0 : q.id);
156
+ const x = Xn(y.value, S.value, q == null ? void 0 : q.id);
157
157
  k(x), r("change", {
158
158
  content: x,
159
159
  index: n == null ? void 0 : n.index,
@@ -180,7 +180,7 @@ const rn = nn("formToTableComp", {
180
180
  const I = () => {
181
181
  let A = v(s.value);
182
182
  a.value === "" ? (d.value++, A.push(Object.assign(c.value, { id: d.value }))) : A = A == null ? void 0 : A.map(($) => (($ == null ? void 0 : $.id) === a.value && ($ = Object.assign($, c.value)), $)), s.value = A;
183
- const q = Zn(y.value, S.value, A);
183
+ const q = Qn(y.value, S.value, A);
184
184
  k(q), T.value = !1, r("change", {
185
185
  content: q,
186
186
  index: n == null ? void 0 : n.index,
@@ -197,15 +197,15 @@ const rn = nn("formToTableComp", {
197
197
  c.value = A;
198
198
  };
199
199
  return pe(
200
- () => [n.itemData, N.value, E.value, S.value],
200
+ () => [n.itemData, F.value, E.value, S.value],
201
201
  () => {
202
202
  var ae, le, Ce, xe, Ot, Tt, At, _t, Ct, xt, Dt, Nt, Ft, Pt, Ut, Bt, jt, $t;
203
203
  const A = (ae = v(n.itemData)) == null ? void 0 : ae.filter((P) => (P == null ? void 0 : P.key) === "header"), q = (le = v(n.itemData)) == null ? void 0 : le.find((P) => (P == null ? void 0 : P.key) === "page"), $ = (Ce = v(n.itemData)) == null ? void 0 : Ce.find((P) => (P == null ? void 0 : P.key) === "rowButton"), x = (xe = v(n.itemData)) == null ? void 0 : xe.find((P) => (P == null ? void 0 : P.key) === "extraButton"), j = (Ot = v(n.itemData)) == null ? void 0 : Ot.filter((P) => (P == null ? void 0 : P.key) === "tableContents"), V = (Tt = v(n.itemData)) == null ? void 0 : Tt.filter((P) => (P == null ? void 0 : P.key) === "tableIndex");
204
204
  b.value = (q == null ? void 0 : q.contents) ?? !0;
205
205
  let J = [];
206
- N.value === "" ? J = A == null ? void 0 : A[0] : J = (A == null ? void 0 : A.find((P) => (P == null ? void 0 : P.selectLabel) === "(" + N.value + ")")) ?? (A == null ? void 0 : A.find((P) => !(P != null && P.selectLabel)));
206
+ F.value === "" ? J = A == null ? void 0 : A[0] : J = (A == null ? void 0 : A.find((P) => (P == null ? void 0 : P.selectLabel) === "(" + F.value + ")")) ?? (A == null ? void 0 : A.find((P) => !(P != null && P.selectLabel)));
207
207
  let W = [];
208
- if (N.value === "" ? W = V == null ? void 0 : V[0] : W = (V == null ? void 0 : V.find((P) => (P == null ? void 0 : P.selectLabel) === "(" + N.value + ")")) ?? (V == null ? void 0 : V.find((P) => !(P != null && P.selectLabel))), ((At = J == null ? void 0 : J.contents) == null ? void 0 : At.length) > 0) {
208
+ if (F.value === "" ? W = V == null ? void 0 : V[0] : W = (V == null ? void 0 : V.find((P) => (P == null ? void 0 : P.selectLabel) === "(" + F.value + ")")) ?? (V == null ? void 0 : V.find((P) => !(P != null && P.selectLabel))), ((At = J == null ? void 0 : J.contents) == null ? void 0 : At.length) > 0) {
209
209
  const P = [];
210
210
  W != null && W.contents && ((_t = W == null ? void 0 : W.contents) == null ? void 0 : _t.length) !== 0 && P.push({
211
211
  label: "",
@@ -232,7 +232,7 @@ const rn = nn("formToTableComp", {
232
232
  }));
233
233
  h.value = ye;
234
234
  let me = [];
235
- if (N.value === "" ? me = j == null ? void 0 : j[0] : me = (j == null ? void 0 : j.find((C) => (C == null ? void 0 : C.selectLabel) === "(" + N.value + ")")) ?? (j == null ? void 0 : j.find((C) => !(C != null && C.selectLabel))), ((Nt = me == null ? void 0 : me.contents) == null ? void 0 : Nt.length) !== 0) {
235
+ if (F.value === "" ? me = j == null ? void 0 : j[0] : me = (j == null ? void 0 : j.find((C) => (C == null ? void 0 : C.selectLabel) === "(" + F.value + ")")) ?? (j == null ? void 0 : j.find((C) => !(C != null && C.selectLabel))), ((Nt = me == null ? void 0 : me.contents) == null ? void 0 : Nt.length) !== 0) {
236
236
  let C = v(me == null ? void 0 : me.contents);
237
237
  W != null && W.contents && ((Ft = W == null ? void 0 : W.contents) == null ? void 0 : Ft.length) !== 0 && (C = (Pt = v(C)) == null ? void 0 : Pt.map((ie, it) => {
238
238
  var we, Oe;
@@ -259,15 +259,15 @@ const rn = nn("formToTableComp", {
259
259
  } else
260
260
  o.value = [], s.value = [];
261
261
  if (((Bt = $ == null ? void 0 : $.contents) == null ? void 0 : Bt.length) > 0 ? w.value = $ == null ? void 0 : $.contents : w.value = [], ((jt = x == null ? void 0 : x.contents) == null ? void 0 : jt.length) > 0 ? _.value = x == null ? void 0 : x.contents : _.value = [], d.value = (($t = s == null ? void 0 : s.value) == null ? void 0 : $t.length) ?? 0, E.value !== "") {
262
- const P = Kn(v(s.value), S.value);
262
+ const P = Gn(v(s.value), S.value);
263
263
  y.value = s.value, M(P);
264
264
  }
265
265
  },
266
266
  { deep: !0, immediate: !0 }
267
267
  ), (A, q) => {
268
268
  var $;
269
- return K(), Y("div", Yn, [
270
- L("div", er, [
269
+ return K(), Y("div", er, [
270
+ L("div", tr, [
271
271
  (K(!0), Y(je, null, $e(_.value, (x, j) => (K(), Y("div", {
272
272
  class: "extra-contents",
273
273
  key: j
@@ -276,7 +276,7 @@ const rn = nn("formToTableComp", {
276
276
  class: "extra-content",
277
277
  style: Lt({ background: x == null ? void 0 : x.background }),
278
278
  onClick: (V) => z(x == null ? void 0 : x.label, "")
279
- }, Z(x == null ? void 0 : x.label), 13, tr)
279
+ }, Z(x == null ? void 0 : x.label), 13, nr)
280
280
  ]))), 128))
281
281
  ]),
282
282
  (K(), Be(Te, {
@@ -286,7 +286,8 @@ const rn = nn("formToTableComp", {
286
286
  isShowPagination: b.value,
287
287
  isShowEdit: !1,
288
288
  isShowDelete: !1,
289
- onDbClickRow: F
289
+ onDbClickRow: N,
290
+ extraButton: _.value
290
291
  }, qn({ _: 2 }, [
291
292
  (($ = w.value) == null ? void 0 : $.length) > 0 ? {
292
293
  name: "actions",
@@ -296,12 +297,12 @@ const rn = nn("formToTableComp", {
296
297
  style: Lt({ color: j == null ? void 0 : j.textColor }),
297
298
  class: "extra-button-label",
298
299
  onClick: (J) => z(j == null ? void 0 : j.label, x)
299
- }, Z(j == null ? void 0 : j.label), 13, nr)
300
+ }, Z(j == null ? void 0 : j.label), 13, rr)
300
301
  ]))), 128))
301
302
  ]),
302
303
  key: "0"
303
304
  } : void 0
304
- ]), 1032, ["columns", "tableData", "isShowPagination"])),
305
+ ]), 1032, ["columns", "tableData", "isShowPagination", "extraButton"])),
305
306
  ee(In, {
306
307
  title: i.value,
307
308
  visible: T.value,
@@ -317,7 +318,7 @@ const rn = nn("formToTableComp", {
317
318
  }, null, 8, ["rowContents", "isEdit"])
318
319
  ]),
319
320
  footer: ce(() => [
320
- g.value ? (K(), Y("div", rr, [
321
+ g.value ? (K(), Y("div", or, [
321
322
  L("div", {
322
323
  onClick: q[0] || (q[0] = (x) => T.value = !1),
323
324
  class: "cancel-button"
@@ -333,7 +334,7 @@ const rn = nn("formToTableComp", {
333
334
  ]);
334
335
  };
335
336
  }
336
- }, sr = /* @__PURE__ */ Re(or, [["__scopeId", "data-v-3405e36c"]]), Me = [
337
+ }, ar = /* @__PURE__ */ Re(sr, [["__scopeId", "data-v-a732bb57"]]), Me = [
337
338
  {
338
339
  key: "单选",
339
340
  value: "Select"
@@ -350,7 +351,7 @@ const rn = nn("formToTableComp", {
350
351
  key: "上传",
351
352
  value: "Upload"
352
353
  }
353
- ], ar = (e) => e.match(/\((.*)\)/)[1], lr = { class: "form-content" }, ir = {
354
+ ], lr = { class: "form-content" }, ir = {
354
355
  __name: "index",
355
356
  props: {
356
357
  itemData: {
@@ -391,11 +392,11 @@ const rn = nn("formToTableComp", {
391
392
  const T = v(n.itemData), w = T == null ? void 0 : T.map((f) => {
392
393
  var h;
393
394
  return (f == null ? void 0 : f.key) === "formContent" && ((h = f.contents) == null || h.map((c, R) => {
394
- var y, m, E, S, D, N, O, G, F, M, z, H, I, k;
395
+ var y, m, E, S, D, F, O, G, N, M, z, H, I, k;
395
396
  return c.type = c != null && c.type ? c.type : (E = (m = (y = c == null ? void 0 : c.key.split("$")) == null ? void 0 : y[1]) == null ? void 0 : m.split("(")) != null && E[0] ? (S = Me == null ? void 0 : Me.find((Q) => {
396
397
  var A, q, $;
397
398
  return (Q == null ? void 0 : Q.key) === (($ = (q = (A = c == null ? void 0 : c.key.split("$")) == null ? void 0 : A[1]) == null ? void 0 : q.split("(")) == null ? void 0 : $[0]);
398
- })) == null ? void 0 : S.value : "Input", c.options = c != null && c.options ? c.options : ((N = (D = c == null ? void 0 : c.key.split("$")) == null ? void 0 : D[1]) == null ? void 0 : N.length) > 0 ? (F = (G = ar((O = c == null ? void 0 : c.key.split("$")) == null ? void 0 : O[1])) == null ? void 0 : G.split(",")) == null ? void 0 : F.map((Q) => ({
399
+ })) == null ? void 0 : S.value : "Input", c.options = c != null && c.options ? c.options : ((F = (D = c == null ? void 0 : c.key.split("$")) == null ? void 0 : D[1]) == null ? void 0 : F.length) > 0 ? (N = (G = Vn((O = c == null ? void 0 : c.key.split("$")) == null ? void 0 : O[1])) == null ? void 0 : G.split(",")) == null ? void 0 : N.map((Q) => ({
399
400
  label: Q,
400
401
  value: Q
401
402
  })) : [], c != null && c.key.includes("$") && (c.key = (M = c == null ? void 0 : c.key.split("$")) == null ? void 0 : M[0]), c.value = c != null && c.value ? c.value : Array.isArray((z = Object.values(i)) == null ? void 0 : z[R]) ? (I = (H = Object.values(i)) == null ? void 0 : H[R]) == null ? void 0 : I[0] : (k = Object.values(i)) == null ? void 0 : k[R], c;
@@ -410,48 +411,48 @@ const rn = nn("formToTableComp", {
410
411
  () => n.itemData,
411
412
  () => {
412
413
  var _, f, h, c, R, y, m, E, S, D;
413
- const i = (_ = v(n.itemData)) == null ? void 0 : _.find((N) => (N == null ? void 0 : N.key) === "formContent"), T = (f = v(n.itemData)) == null ? void 0 : f.find((N) => (N == null ? void 0 : N.key) === "formButton"), w = (h = v(n.itemData)) == null ? void 0 : h.find((N) => (N == null ? void 0 : N.key) === "formFlex"), g = (c = v(n.itemData)) == null ? void 0 : c.find((N) => (N == null ? void 0 : N.key) === "formWrap");
414
+ const i = (_ = v(n.itemData)) == null ? void 0 : _.find((F) => (F == null ? void 0 : F.key) === "formContent"), T = (f = v(n.itemData)) == null ? void 0 : f.find((F) => (F == null ? void 0 : F.key) === "formButton"), w = (h = v(n.itemData)) == null ? void 0 : h.find((F) => (F == null ? void 0 : F.key) === "formFlex"), g = (c = v(n.itemData)) == null ? void 0 : c.find((F) => (F == null ? void 0 : F.key) === "formWrap");
414
415
  if ((g == null ? void 0 : g.contents) === "纵向" ? s.value = !1 : s.value = !0, p.value = typeof (w == null ? void 0 : w.contents) != "boolean" ? !(!(w != null && w.contents) === "" || ((R = w == null ? void 0 : w.contents) == null ? void 0 : R.toUpperCase()) === "VERTICAL") : w == null ? void 0 : w.contents, ((y = i == null ? void 0 : i.contents) == null ? void 0 : y.length) > 0) {
415
- const N = [];
416
- (m = i == null ? void 0 : i.contents) == null || m.forEach((F, M) => {
416
+ const F = [];
417
+ (m = i == null ? void 0 : i.contents) == null || m.forEach((N, M) => {
417
418
  var z, H, I, k, Q, A, q, $, x;
418
- if ((F == null ? void 0 : F.label) !== "") {
419
- let j = (F == null ? void 0 : F.key) ?? "", V = (F == null ? void 0 : F.type) ?? "", J = (F == null ? void 0 : F.options) ?? [];
420
- if (F != null && F.key.includes("$") && (j = (z = v(F == null ? void 0 : F.key).split("$")) == null ? void 0 : z[0], ((I = (H = v(F == null ? void 0 : F.key).split("$")) == null ? void 0 : H[1]) == null ? void 0 : I.length) > 0)) {
421
- const [W, ae] = (Q = (k = v(F == null ? void 0 : F.key).split("$")) == null ? void 0 : k[1]) == null ? void 0 : Q.split(/[()]/);
419
+ if ((N == null ? void 0 : N.label) !== "") {
420
+ let j = (N == null ? void 0 : N.key) ?? "", V = (N == null ? void 0 : N.type) ?? "", J = (N == null ? void 0 : N.options) ?? [];
421
+ if (N != null && N.key.includes("$") && (j = (z = v(N == null ? void 0 : N.key).split("$")) == null ? void 0 : z[0], ((I = (H = v(N == null ? void 0 : N.key).split("$")) == null ? void 0 : H[1]) == null ? void 0 : I.length) > 0)) {
422
+ const [W, ae] = (Q = (k = v(N == null ? void 0 : N.key).split("$")) == null ? void 0 : k[1]) == null ? void 0 : Q.split(/[()]/);
422
423
  V = ((A = Me.find((le) => (le == null ? void 0 : le.key) === W)) == null ? void 0 : A.value) ?? "", ((q = ae == null ? void 0 : ae.split(",")) == null ? void 0 : q.length) > 0 && (J = ($ = ae == null ? void 0 : ae.split(",")) == null ? void 0 : $.map((le) => ({
423
424
  label: le,
424
425
  value: le
425
426
  })));
426
427
  }
427
- N.push({
428
+ F.push({
428
429
  label: j ?? "",
429
430
  name: "t" + M,
430
431
  type: V === "" ? "Input" : V,
431
- value: (J == null ? void 0 : J.length) > 0 ? (x = J == null ? void 0 : J[0]) == null ? void 0 : x.value : (F == null ? void 0 : F.value) ?? "",
432
- id: (F == null ? void 0 : F.id) ?? M,
432
+ value: N != null && N.value ? N.value : (J == null ? void 0 : J.length) > 0 ? (x = J == null ? void 0 : J[0]) == null ? void 0 : x.value : (N == null ? void 0 : N.value) ?? "",
433
+ id: (N == null ? void 0 : N.id) ?? M,
433
434
  contents: J ?? [],
434
- width: (F == null ? void 0 : F.width) ?? 1
435
+ width: (N == null ? void 0 : N.width) ?? 1
435
436
  });
436
437
  }
437
438
  });
438
- const O = (E = v(N)) == null ? void 0 : E.map((F) => F.value);
439
+ const O = (E = v(F)) == null ? void 0 : E.map((N) => N.value);
439
440
  let G = "";
440
- O == null || O.forEach((F) => {
441
- F !== "" && F !== void 0 && (G = G === "" ? F : G + "/" + F);
442
- }), l.setSelectArray(O), l.setSelectString(G), o.value = N;
441
+ O == null || O.forEach((N) => {
442
+ N !== "" && N !== void 0 && (G = G === "" ? N : G + "/" + N);
443
+ }), l.setSelectArray(O), l.setSelectString(G), o.value = F;
443
444
  } else
444
445
  o.value = [];
445
446
  if (((S = T == null ? void 0 : T.contents) == null ? void 0 : S.length) > 0) {
446
- const N = [];
447
+ const F = [];
447
448
  (D = T == null ? void 0 : T.contents) == null || D.forEach((O, G) => {
448
- (O == null ? void 0 : O.label) !== "" && N.push({
449
+ (O == null ? void 0 : O.label) !== "" && F.push({
449
450
  label: (O == null ? void 0 : O.label) ?? "",
450
451
  id: (O == null ? void 0 : O.id) ?? G,
451
452
  type: (O == null ? void 0 : O.type) ?? "",
452
453
  background: O == null ? void 0 : O.background
453
454
  });
454
- }), a.value = N;
455
+ }), a.value = F;
455
456
  } else
456
457
  a.value = [];
457
458
  },
@@ -468,7 +469,7 @@ const rn = nn("formToTableComp", {
468
469
  }, null, 8, ["rowContents", "buttonValue", "isRowFlex", "isButtonRow"])
469
470
  ]));
470
471
  }
471
- }, cr = /* @__PURE__ */ Re(ir, [["__scopeId", "data-v-56c22bdb"]]), ur = { class: "table-operate-content" }, fr = { class: "table-operate-item" }, dr = { class: "operate-title" }, pr = { class: "operate-content" }, hr = { class: "operate-title" }, mr = { class: "operate-content" }, yr = { class: "operate-title" }, br = { class: "operate-content" }, gr = { class: "operate-content" }, vr = {
472
+ }, cr = /* @__PURE__ */ Re(ir, [["__scopeId", "data-v-626135b5"]]), ur = { class: "table-operate-content" }, fr = { class: "table-operate-item" }, dr = { class: "operate-title" }, pr = { class: "operate-content" }, hr = { class: "operate-title" }, mr = { class: "operate-content" }, yr = { class: "operate-title" }, br = { class: "operate-content" }, gr = { class: "operate-content" }, vr = {
472
473
  __name: "operate",
473
474
  props: {
474
475
  itemContents: {
@@ -606,12 +607,12 @@ const rn = nn("formToTableComp", {
606
607
  pe(
607
608
  () => n.originalItemContents,
608
609
  () => {
609
- var y, m, E, S, D, N, O, G, F, M, z, H, I;
610
- !n.originalItemContents || n.originalItemContents.length === 0 || (o.value = v(n.originalItemContents), s.value = (m = (y = o.value) == null ? void 0 : y.find((k) => (k == null ? void 0 : k.key) === "header")) == null ? void 0 : m.contents, a.value = (S = (E = o.value) == null ? void 0 : E.find((k) => (k == null ? void 0 : k.key) === "rowButton")) == null ? void 0 : S.contents, l.value = (N = (D = o.value) == null ? void 0 : D.find((k) => (k == null ? void 0 : k.key) === "extraButton")) == null ? void 0 : N.contents, i.value = (G = (O = o.value) == null ? void 0 : O.find((k) => (k == null ? void 0 : k.key) === "page")) != null && G.contents ? [{
610
+ var y, m, E, S, D, F, O, G, N, M, z, H, I;
611
+ !n.originalItemContents || n.originalItemContents.length === 0 || (o.value = v(n.originalItemContents), s.value = (m = (y = o.value) == null ? void 0 : y.find((k) => (k == null ? void 0 : k.key) === "header")) == null ? void 0 : m.contents, a.value = (S = (E = o.value) == null ? void 0 : E.find((k) => (k == null ? void 0 : k.key) === "rowButton")) == null ? void 0 : S.contents, l.value = (F = (D = o.value) == null ? void 0 : D.find((k) => (k == null ? void 0 : k.key) === "extraButton")) == null ? void 0 : F.contents, i.value = (G = (O = o.value) == null ? void 0 : O.find((k) => (k == null ? void 0 : k.key) === "page")) != null && G.contents ? [{
611
612
  name: "isPagination",
612
613
  label: "是否显示分页",
613
614
  type: "Switch",
614
- value: (M = (F = o.value) == null ? void 0 : F.find((k) => (k == null ? void 0 : k.key) === "page")) == null ? void 0 : M.contents
615
+ value: (M = (N = o.value) == null ? void 0 : N.find((k) => (k == null ? void 0 : k.key) === "page")) == null ? void 0 : M.contents
615
616
  }] : [{
616
617
  name: "isPagination",
617
618
  label: "是否显示分页",
@@ -712,19 +713,19 @@ const rn = nn("formToTableComp", {
712
713
  let E = v(o.value);
713
714
  a.value = m.filter((D) => D.id !== y.id);
714
715
  const S = E == null ? void 0 : E.find((D) => D.key === "rowButton");
715
- S != null && S.contents && (E = E == null ? void 0 : E.map((D) => ((D == null ? void 0 : D.key) === "rowButton" && (D.contents = m.filter((N) => N.id !== y.id)), D))), o.value = E;
716
+ S != null && S.contents && (E = E == null ? void 0 : E.map((D) => ((D == null ? void 0 : D.key) === "rowButton" && (D.contents = m.filter((F) => F.id !== y.id)), D))), o.value = E;
716
717
  }, c = (y) => {
717
718
  const m = v(d.value);
718
719
  let E = v(o.value);
719
720
  d.value = m.filter((D) => D.id !== y.id);
720
721
  const S = E == null ? void 0 : E.find((D) => D.key === "extraButton");
721
- S != null && S.contents && (E = E == null ? void 0 : E.map((D) => ((D == null ? void 0 : D.key) === "extraButton" && (D.contents = m.filter((N) => N.id !== y.id)), D))), o.value = E;
722
+ S != null && S.contents && (E = E == null ? void 0 : E.map((D) => ((D == null ? void 0 : D.key) === "extraButton" && (D.contents = m.filter((F) => F.id !== y.id)), D))), o.value = E;
722
723
  }, R = (y) => {
723
724
  const m = v(s.value);
724
725
  let E = v(o.value);
725
726
  s.value = m.filter((D) => D.id !== y.id);
726
727
  const S = E == null ? void 0 : E.find((D) => D.key === "header");
727
- S != null && S.contents && (E = E == null ? void 0 : E.map((D) => ((D == null ? void 0 : D.key) === "header" && (D.contents = m.filter((N) => N.id !== y.id)), D))), o.value = E;
728
+ S != null && S.contents && (E = E == null ? void 0 : E.map((D) => ((D == null ? void 0 : D.key) === "header" && (D.contents = m.filter((F) => F.id !== y.id)), D))), o.value = E;
728
729
  };
729
730
  return pe(
730
731
  () => [o.value, s.value],
@@ -885,7 +886,7 @@ const rn = nn("formToTableComp", {
885
886
  pe(
886
887
  () => n.originalItemContents,
887
888
  () => {
888
- var f, h, c, R, y, m, E, S, D, N;
889
+ var f, h, c, R, y, m, E, S, D, F;
889
890
  !n.originalItemContents || n.originalItemContents.length === 0 || (p.value = v(n.originalItemContents), d.value = (h = (f = p.value) == null ? void 0 : f.find((O) => (O == null ? void 0 : O.key) === "formContent")) == null ? void 0 : h.contents, l.value = (R = (c = p.value) == null ? void 0 : c.find((O) => (O == null ? void 0 : O.key) === "formButton")) == null ? void 0 : R.contents, d.value = (y = d.value) == null ? void 0 : y.map((O, G) => O = {
890
891
  label: (O == null ? void 0 : O.label) ?? "",
891
892
  type: (O == null ? void 0 : O.type) ?? "",
@@ -901,7 +902,7 @@ const rn = nn("formToTableComp", {
901
902
  name: "isRowFlex",
902
903
  label: "是否横向布局",
903
904
  type: "Switch",
904
- value: (N = (D = p.value) == null ? void 0 : D.find((O) => (O == null ? void 0 : O.key) === "formFlex")) == null ? void 0 : N.contents
905
+ value: (F = (D = p.value) == null ? void 0 : D.find((O) => (O == null ? void 0 : O.key) === "formFlex")) == null ? void 0 : F.contents
905
906
  }] : [{
906
907
  name: "isRowFlex",
907
908
  label: "是否横向布局",
@@ -1048,7 +1049,7 @@ const rn = nn("formToTableComp", {
1048
1049
  icon: "Film"
1049
1050
  }
1050
1051
  ]), Dr = {
1051
- Table: sr,
1052
+ Table: ar,
1052
1053
  Form: cr,
1053
1054
  TableOperate: kr,
1054
1055
  FormOperate: Cr
@@ -1382,7 +1383,7 @@ const Nr = { class: "type-select" }, Fr = ["onClick"], Pr = { class: "list-icon"
1382
1383
  if ((w == null ? void 0 : w.key) === "formFlex")
1383
1384
  w.contents = ((_ = (g = w.contents) == null ? void 0 : g.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : _.toUpperCase()) !== "Vertical".toUpperCase();
1384
1385
  else if ((w == null ? void 0 : w.key) === "groupContents")
1385
- w.contents = (f = v(w.contents)) == null ? void 0 : f.map((N) => Wr(v(N)));
1386
+ w.contents = (f = v(w.contents)) == null ? void 0 : f.map((F) => Wr(v(F)));
1386
1387
  else if (((c = (h = w.contents) == null ? void 0 : h.trim()) != null && c.startsWith("[") || (y = (R = w.contents) == null ? void 0 : R.trim()) != null && y.startsWith("【")) && ((E = (m = w.contents) == null ? void 0 : m.trim()) != null && E.endsWith("]") || (D = (S = w.contents) == null ? void 0 : S.trim()) != null && D.endsWith("】")))
1387
1388
  w.contents = Kr(v(w.contents));
1388
1389
  else {
@@ -1398,7 +1399,7 @@ const Nr = { class: "type-select" }, Fr = ["onClick"], Pr = { class: "list-icon"
1398
1399
  var _;
1399
1400
  let g = [];
1400
1401
  return (_ = w.contents) == null || _.forEach((f) => {
1401
- var h, c, R, y, m, E, S, D, N, O, G, F;
1402
+ var h, c, R, y, m, E, S, D, F, O, G, N;
1402
1403
  if (re != null && re.find((M) => {
1403
1404
  var z, H, I;
1404
1405
  return ((z = M == null ? void 0 : M.key) == null ? void 0 : z.toUpperCase()) === ((I = (H = Object.keys(f)) == null ? void 0 : H[0]) == null ? void 0 : I.toUpperCase());
@@ -1424,13 +1425,13 @@ const Nr = { class: "type-select" }, Fr = ["onClick"], Pr = { class: "list-icon"
1424
1425
  contents: (E = Object.values(f)) == null ? void 0 : E[0]
1425
1426
  });
1426
1427
  } else if ((D = (S = Object.keys(f)) == null ? void 0 : S[0]) != null && D.includes("$")) {
1427
- const M = (O = (N = Object.keys(v(f))) == null ? void 0 : N[0]) == null ? void 0 : O.split("$");
1428
+ const M = (O = (F = Object.keys(v(f))) == null ? void 0 : F[0]) == null ? void 0 : O.split("$");
1428
1429
  g[(g == null ? void 0 : g.length) - 1].compData.push({
1429
1430
  key: (G = ne == null ? void 0 : ne.find((z) => {
1430
1431
  var H, I;
1431
1432
  return ((H = z == null ? void 0 : z.key) == null ? void 0 : H.toUpperCase()) === ((I = M == null ? void 0 : M[0]) == null ? void 0 : I.toUpperCase());
1432
1433
  })) == null ? void 0 : G.value,
1433
- contents: (F = Object.values(f)) == null ? void 0 : F[0],
1434
+ contents: (N = Object.values(f)) == null ? void 0 : N[0],
1434
1435
  selectLabel: M == null ? void 0 : M[1]
1435
1436
  });
1436
1437
  }
@@ -2671,8 +2672,8 @@ const gs = async (e) => {
2671
2672
  const R = yt && (d === "stream" || d === "response");
2672
2673
  if (yt && (l || R && _)) {
2673
2674
  const m = {};
2674
- ["status", "statusText", "headers"].forEach((N) => {
2675
- m[N] = c[N];
2675
+ ["status", "statusText", "headers"].forEach((F) => {
2676
+ m[F] = c[F];
2676
2677
  });
2677
2678
  const E = u.toFiniteNumber(c.headers.get("content-length")), [S, D] = l && Vt(
2678
2679
  E,
@@ -3332,7 +3333,7 @@ export {
3332
3333
  $s as a,
3333
3334
  js as b,
3334
3335
  la as c,
3335
- Wn as d,
3336
+ Kn as d,
3336
3337
  Ls as e,
3337
3338
  cn as g,
3338
3339
  Bs as m,