z-ui-pc 1.2.2 → 1.2.4

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.
package/dist/index.js CHANGED
@@ -194,50 +194,50 @@ const Ga = {
194
194
  disabled: { type: Boolean, default: !1 }
195
195
  },
196
196
  setup(t) {
197
- const e = Oe(), o = N(() => e.formItems.find((c) => c.prop === t.prop)), n = (c) => {
198
- e.updateFormData(t.prop, le(c));
197
+ const e = Oe(), o = N(() => e.formItems.find((r) => r.prop === t.prop)), n = (r) => {
198
+ e.updateFormData(t.prop, le(r));
199
199
  }, a = () => o.value?.parseColumnEvent(() => {
200
200
  e.emit(ue.CHANGE);
201
201
  }) ?? {}, u = N({
202
202
  get() {
203
203
  return e.activeGroupColumnsMap.get(o.value?.prop)?.dynamicExpression;
204
204
  },
205
- set(c) {
205
+ set(r) {
206
206
  const l = e.activeGroupColumnsMap.get(o.value?.prop);
207
- l && (l.dynamicExpression = c);
207
+ l && (l.dynamicExpression = r);
208
208
  }
209
209
  }), s = N(() => {
210
- const c = o.value?.attrs ?? {};
210
+ const r = o.value?.attrs ?? {};
211
211
  return t.disabled ? {
212
- ...c,
212
+ ...r,
213
213
  disabled: !0
214
- } : c;
214
+ } : r;
215
215
  });
216
- return (c, l) => o.value ? (f(), _("div", Ga, [
216
+ return (r, l) => o.value ? (f(), _("div", Ga, [
217
217
  (f(), I(Po(o.value.getFormComponent), K(s.value, {
218
218
  "dynamic-expression": u.value,
219
- "onUpdate:dynamicExpression": l[0] || (l[0] = (i) => u.value = i),
220
- "model-value": d(e).formData[c.prop]
219
+ "onUpdate:dynamicExpression": l[0] || (l[0] = (c) => u.value = c),
220
+ "model-value": d(e).formData[r.prop]
221
221
  }, me(a()), {
222
- "onUpdate:modelValue": l[1] || (l[1] = (i) => n(i))
222
+ "onUpdate:modelValue": l[1] || (l[1] = (c) => n(c))
223
223
  }), null, 16, ["dynamic-expression", "model-value"]))
224
224
  ])) : R("", !0);
225
225
  }
226
226
  }), qo = /* @__PURE__ */ Z(Na, [["__scopeId", "data-v-78cd4e80"]]), Jo = () => {
227
227
  const t = () => document.body, e = [];
228
- function o(a, u, s, c) {
229
- let l, i, r, m;
230
- if (typeof a == "string" ? (l = t(), i = a, r = u, m = s) : (l = a, i = u, r = s, m = c), !l)
228
+ function o(a, u, s, r) {
229
+ let l, c, i, m;
230
+ if (typeof a == "string" ? (l = t(), c = a, i = u, m = s) : (l = a, c = u, i = s, m = r), !l)
231
231
  return () => {
232
232
  };
233
- l.addEventListener(i, r, m);
234
- const D = { target: l, event: i, fn: r, options: m };
233
+ l.addEventListener(c, i, m);
234
+ const D = { target: l, event: c, fn: i, options: m };
235
235
  return e.push(D), () => {
236
- l.removeEventListener(i, r, m), e.splice(e.indexOf(D), 1);
236
+ l.removeEventListener(c, i, m), e.splice(e.indexOf(D), 1);
237
237
  };
238
238
  }
239
239
  const n = () => {
240
- e.forEach(({ target: a, event: u, fn: s, options: c }) => a.removeEventListener(u, s, c)), e.length = 0;
240
+ e.forEach(({ target: a, event: u, fn: s, options: r }) => a.removeEventListener(u, s, r)), e.length = 0;
241
241
  };
242
242
  return nt(n), bt() && yt(n), {
243
243
  stop: n,
@@ -253,15 +253,15 @@ const Ga = {
253
253
  };
254
254
  }, xa = () => {
255
255
  const t = Oe(), { keywords: e, searchInputRef: o } = Jt(), n = G([]), a = N(
256
- () => (s) => t.activeGroupSelectedColumns.find((c) => c.prop === s)?.checked || !1
256
+ () => (s) => t.activeGroupSelectedColumns.find((r) => r.prop === s)?.checked || !1
257
257
  ), u = aa(() => {
258
258
  if (!e.value) {
259
259
  n.value = [];
260
260
  return;
261
261
  }
262
262
  n.value = t.columns.filter((s) => {
263
- const c = s.advancedFilterLabel || s.label;
264
- return c && c.toLowerCase().includes(e.value.toLowerCase());
263
+ const r = s.advancedFilterLabel || s.label;
264
+ return r && r.toLowerCase().includes(e.value.toLowerCase());
265
265
  });
266
266
  });
267
267
  return {
@@ -294,8 +294,8 @@ const Ga = {
294
294
  () => {
295
295
  if (L.isFunction(t.options)) {
296
296
  const s = t.options();
297
- en(s) ? (n.value = !0, s.then((c) => {
298
- u(c);
297
+ en(s) ? (n.value = !0, s.then((r) => {
298
+ u(r);
299
299
  })) : u(s);
300
300
  } else
301
301
  u(t.options);
@@ -350,15 +350,15 @@ const Ga = {
350
350
  ve((h) => ({
351
351
  "375bdcec": D.value
352
352
  }));
353
- const o = t, n = e, { parseOptions: a, loadingOptions: u } = it(o), { value: s } = we(o, n), c = N(() => L.omit(o.on, ["blur", "change"])), l = N(() => be(L.omit(o, ["on", "options", "modelValue"]))), i = () => {
353
+ const o = t, n = e, { parseOptions: a, loadingOptions: u } = it(o), { value: s } = we(o, n), r = N(() => L.omit(o.on, ["blur", "change"])), l = N(() => be(L.omit(o, ["on", "options", "modelValue"]))), c = () => {
354
354
  n("change", s.value);
355
355
  };
356
- let r;
356
+ let i;
357
357
  const m = async (h) => {
358
- h ? r = le(s.value) : (await Y(), zo(r, s.value) || i(), r = void 0), o.on.visibleChange?.(h);
358
+ h ? i = le(s.value) : (await Y(), zo(i, s.value) || c(), i = void 0), o.on.visibleChange?.(h);
359
359
  }, D = N(() => o.width || "100%"), p = (h, C) => {
360
360
  const A = Reflect.get(o.on, h);
361
- A && A(C), i(), r = le(o.props.multiple ? C ?? [] : C);
361
+ A && A(C), c(), i = le(o.props.multiple ? C ?? [] : C);
362
362
  };
363
363
  return (h, C) => {
364
364
  const A = B("el-cascader");
@@ -367,7 +367,7 @@ const Ga = {
367
367
  "onUpdate:modelValue": C[0] || (C[0] = (F) => _e(s) ? s.value = F : null),
368
368
  class: "z-cascader",
369
369
  loading: d(u)
370
- }, l.value, { options: d(a) }, me(c.value), {
370
+ }, l.value, { options: d(a) }, me(r.value), {
371
371
  onVisibleChange: m,
372
372
  onClear: C[1] || (C[1] = (F) => p("clear", F)),
373
373
  onRemoveTag: C[2] || (C[2] = (F) => p("removeTag", F))
@@ -452,7 +452,7 @@ const Ga = {
452
452
  }),
453
453
  emits: /* @__PURE__ */ pe(["update:modelValue", "change"], ["update:dynamicExpression"]),
454
454
  setup(t, { emit: e }) {
455
- const o = t, n = Ee(t, "dynamicExpression"), a = e, { value: u } = we(o, a), { pushDynamicExpression: s, updateDynamicExpression: c } = Pa(n), l = N(
455
+ const o = t, n = Ee(t, "dynamicExpression"), a = e, { value: u } = we(o, a), { pushDynamicExpression: s, updateDynamicExpression: r } = Pa(n), l = N(
456
456
  () => be(
457
457
  L.omit(o, [
458
458
  "on",
@@ -464,10 +464,10 @@ const Ga = {
464
464
  "popperClass"
465
465
  ])
466
466
  )
467
- ), i = N(() => {
467
+ ), c = N(() => {
468
468
  if (o.useDefaultTimeToDay)
469
469
  return [new Date(2e3, 1, 1, 0, 0, 0), new Date(2e3, 1, 1, 23, 59, 59)];
470
- }), r = (p, h) => {
470
+ }), i = (p, h) => {
471
471
  if (!p)
472
472
  return p;
473
473
  const C = o.format || "", A = Ce(p).format(C);
@@ -478,10 +478,10 @@ const Ga = {
478
478
  const h = p ?? "";
479
479
  if (Array.isArray(h)) {
480
480
  const [C, A] = h;
481
- a("update:modelValue", [r(C), r(A, !0)]);
481
+ a("update:modelValue", [i(C), i(A, !0)]);
482
482
  } else
483
- a("update:modelValue", r(h, !0));
484
- c();
483
+ a("update:modelValue", i(h, !0));
484
+ r();
485
485
  },
486
486
  /* clear 事件会触发 emit */
487
487
  change: L.debounce(() => {
@@ -504,7 +504,7 @@ const Ga = {
504
504
  return f(), I(C, K(l.value, {
505
505
  "popper-class": `z-base-date-popper ${o.popperClass || ""}`,
506
506
  "model-value": d(u),
507
- "default-time": i.value,
507
+ "default-time": c.value,
508
508
  shortcuts: D.value
509
509
  }, me(m.value)), null, 16, ["popper-class", "model-value", "default-time", "shortcuts"]);
510
510
  };
@@ -573,19 +573,19 @@ const Ga = {
573
573
  }),
574
574
  emits: /* @__PURE__ */ pe(["update:modelValue", "change"], ["update:dynamicExpression"]),
575
575
  setup(t, { emit: e }) {
576
- const o = t, n = Ee(t, "dynamicExpression"), a = e, u = N(() => be(L.omit(o, ["options", "on", "modelValue"]))), { value: s } = we(o, a), { parseOptions: c, loadingOptions: l } = it(o, () => {
577
- o.defaultSelectFirst && !s.value?.length && c.value.length && a("update:modelValue", ["", "", c.value[0]?.value ?? ""]);
578
- }), i = () => {
576
+ const o = t, n = Ee(t, "dynamicExpression"), a = e, u = N(() => be(L.omit(o, ["options", "on", "modelValue"]))), { value: s } = we(o, a), { parseOptions: r, loadingOptions: l } = it(o, () => {
577
+ o.defaultSelectFirst && !s.value?.length && r.value.length && a("update:modelValue", ["", "", r.value[0]?.value ?? ""]);
578
+ }), c = () => {
579
579
  Y().then(() => {
580
580
  a("change", s.value);
581
581
  });
582
- }, r = N({
582
+ }, i = N({
583
583
  get() {
584
584
  return o.modelValue[2];
585
585
  },
586
586
  set(A) {
587
587
  const [F, v] = o.modelValue;
588
- s.value = [F, v, A], F && v && i(), m(n.value, A);
588
+ s.value = [F, v, A], F && v && c(), m(n.value, A);
589
589
  }
590
590
  }), m = (A, F) => {
591
591
  if (A) {
@@ -602,7 +602,7 @@ const Ga = {
602
602
  },
603
603
  set(A) {
604
604
  const F = le(s.value), v = o.whenEmptyDateClearSelect && !A ? "" : s.value?.[2], w = [...A || ["", ""], v];
605
- s.value = w, zo(F, w) || i();
605
+ s.value = w, zo(F, w) || c();
606
606
  }
607
607
  }), p = N(() => {
608
608
  if (!o.disabledSelectByEmptyData)
@@ -641,8 +641,8 @@ const Ga = {
641
641
  ]),
642
642
  x("div", Oa, [
643
643
  g(b, K({
644
- modelValue: r.value,
645
- "onUpdate:modelValue": F[2] || (F[2] = (w) => r.value = w)
644
+ modelValue: i.value,
645
+ "onUpdate:modelValue": F[2] || (F[2] = (w) => i.value = w)
646
646
  }, C.value ?? {}, {
647
647
  style: { width: A.selectWidth },
648
648
  disabled: p.value ?? A.disabled,
@@ -650,7 +650,7 @@ const Ga = {
650
650
  loading: d(l)
651
651
  }), {
652
652
  default: y(() => [
653
- (f(!0), _(H, null, $(d(c), (w) => (f(), I(v, K({
653
+ (f(!0), _(H, null, $(d(r), (w) => (f(), I(v, K({
654
654
  key: w.value
655
655
  }, { ref_for: !0 }, w), null, 16))), 128))
656
656
  ]),
@@ -668,10 +668,10 @@ const Ga = {
668
668
  return (n, a) => {
669
669
  const u = B("el-input"), s = ee("paste-trim");
670
670
  return J((f(), I(u, { class: "base-input" }, Ye({ _: 2 }, [
671
- $(o.value, (c) => ({
672
- name: c,
671
+ $(o.value, (r) => ({
672
+ name: r,
673
673
  fn: y(() => [
674
- ne(n.$slots, c)
674
+ ne(n.$slots, r)
675
675
  ])
676
676
  }))
677
677
  ]), 1024)), [
@@ -722,26 +722,26 @@ const Ga = {
722
722
  () => be(L.omit(o, ["on", "modelValue", "precision", "max", "min"]))
723
723
  );
724
724
  let s = o.modelValue;
725
- const c = (D) => {
725
+ const r = (D) => {
726
726
  let p = D;
727
727
  isNaN(Number(p)) && (p = s), s !== p && (s = p), a.value = s;
728
728
  }, l = () => {
729
729
  let D = "^\\d+$";
730
730
  return o.precision && (D = `^\\d+(\\.)?(\\d{1,${o.precision}})?$`), new RegExp(D);
731
- }, i = () => {
732
- c(parseFloat(s)), o.on?.change?.(s), n("change", s);
733
- }, r = (D) => {
731
+ }, c = () => {
732
+ r(parseFloat(s)), o.on?.change?.(s), n("change", s);
733
+ }, i = (D) => {
734
734
  if (typeof D != "number" && !D) {
735
- c(D);
735
+ r(D);
736
736
  return;
737
737
  }
738
738
  const { min: p, max: h } = o;
739
739
  if (D && !l().test(D)) {
740
- c(s);
740
+ r(s);
741
741
  return;
742
742
  }
743
743
  const C = Number(D), A = typeof p < "u" && C < p, F = typeof h < "u" && C > h;
744
- c(F ? h : A ? p : D), o.on?.input?.(s);
744
+ r(F ? h : A ? p : D), o.on?.input?.(s);
745
745
  }, m = N(() => L.omit(o.on, ["change", "input"]));
746
746
  return (D, p) => {
747
747
  const h = B("el-input"), C = ee("paste-trim");
@@ -750,8 +750,8 @@ const Ga = {
750
750
  modelValue: d(a),
751
751
  "onUpdate:modelValue": p[0] || (p[0] = (A) => _e(a) ? a.value = A : null)
752
752
  }, me(m.value), {
753
- onInput: r,
754
- onChange: i
753
+ onInput: i,
754
+ onChange: c
755
755
  }), {
756
756
  suffix: y(() => [
757
757
  ne(D.$slots, "suffix", {}, void 0, !0)
@@ -804,17 +804,17 @@ const Xe = [], pt = [], eo = () => ({
804
804
  const o = t, n = e, { value: a } = we(o, n), u = () => a.value?.map?.((v) => {
805
805
  const b = parseFloat(String(v));
806
806
  return isNaN(b) ? void 0 : b;
807
- }) ?? [], s = N(() => L.omit(o.on, ["focus", "input", "change"])), c = (v) => {
807
+ }) ?? [], s = N(() => L.omit(o.on, ["focus", "input", "change"])), r = (v) => {
808
808
  if (Reflect.has(o.on, v)) {
809
809
  const b = Reflect.get(o.on, v);
810
810
  L.isFunction(b) && b(a.value);
811
811
  }
812
- }, { startAsyncTask: l, taskComplete: i } = eo();
813
- let r;
812
+ }, { startAsyncTask: l, taskComplete: c } = eo();
813
+ let i;
814
814
  const m = () => {
815
- r && (clearTimeout(r), i()), r = void 0;
815
+ i && (clearTimeout(i), c()), i = void 0;
816
816
  }, D = () => {
817
- m(), c("focus");
817
+ m(), r("focus");
818
818
  }, p = () => {
819
819
  let v = "^\\d+$";
820
820
  return o.precision && (v = `^\\d+(\\.)?(\\d{1,${o.precision}})?$`), new RegExp(v);
@@ -835,8 +835,8 @@ const Xe = [], pt = [], eo = () => ({
835
835
  const T = Number(v), E = typeof w < "u" && T < w, O = typeof k < "u" && T > k;
836
836
  O || E ? (S.splice(b, 1, O ? k : w), C(S)) : h[b] = v;
837
837
  }, F = () => {
838
- l(), r = setTimeout(() => {
839
- c("change"), n("change", u()), i();
838
+ l(), i = setTimeout(() => {
839
+ r("change"), n("change", u()), c();
840
840
  }, 200), C(u());
841
841
  };
842
842
  return nt(() => {
@@ -879,15 +879,15 @@ const Xe = [], pt = [], eo = () => ({
879
879
  },
880
880
  emits: ["update:modelValue"],
881
881
  setup(t, { emit: e }) {
882
- const o = t, n = e, { parseOptions: a, loadingOptions: u } = it(o), { value: s } = we(o, n), c = N(() => be(Re(o, ["on", "options", "modelValue"]))), l = (i) => be(Re(i, ["label", "leaf", "children"]));
883
- return (i, r) => {
882
+ const o = t, n = e, { parseOptions: a, loadingOptions: u } = it(o), { value: s } = we(o, n), r = N(() => be(Re(o, ["on", "options", "modelValue"]))), l = (c) => be(Re(c, ["label", "leaf", "children"]));
883
+ return (c, i) => {
884
884
  const m = B("el-radio"), D = B("el-radio-group"), p = ee("loading");
885
- return J((f(), I(D, K(c.value, {
885
+ return J((f(), I(D, K(r.value, {
886
886
  modelValue: d(s),
887
- "onUpdate:modelValue": r[0] || (r[0] = (h) => _e(s) ? s.value = h : null)
887
+ "onUpdate:modelValue": i[0] || (i[0] = (h) => _e(s) ? s.value = h : null)
888
888
  }), {
889
889
  default: y(() => [
890
- ne(i.$slots, "default", {}, () => [
890
+ ne(c.$slots, "default", {}, () => [
891
891
  (f(!0), _(H, null, $(d(a), (h) => (f(), I(m, K({
892
892
  key: h.value
893
893
  }, { ref_for: !0 }, l(h)), {
@@ -940,9 +940,9 @@ const Xe = [], pt = [], eo = () => ({
940
940
  },
941
941
  emits: ["update:modelValue", "suffixClick", "change"],
942
942
  setup(t, { expose: e, emit: o }) {
943
- const n = t, a = o, { value: u } = we(n, a), s = G(), c = N(() => be(L.omit(n, ["on", "modelValue"]))), l = (r) => {
944
- a("update:modelValue", r), a("change", r);
945
- }, i = () => {
943
+ const n = t, a = o, { value: u } = we(n, a), s = G(), r = N(() => be(L.omit(n, ["on", "modelValue"]))), l = (i) => {
944
+ a("update:modelValue", i), a("change", i);
945
+ }, c = () => {
946
946
  a("update:modelValue", ""), a("change", "");
947
947
  };
948
948
  return e({
@@ -950,12 +950,12 @@ const Xe = [], pt = [], eo = () => ({
950
950
  s.value?.focus();
951
951
  },
952
952
  inputRef: s
953
- }), (r, m) => {
953
+ }), (i, m) => {
954
954
  const D = B("el-icon"), p = B("el-input"), h = ee("paste-trim");
955
955
  return J((f(), I(p, K({
956
956
  ref_key: "inputRef",
957
957
  ref: s
958
- }, c.value, {
958
+ }, r.value, {
959
959
  modelValue: d(u),
960
960
  "onUpdate:modelValue": m[0] || (m[0] = (C) => _e(u) ? u.value = C : null),
961
961
  clearable: !1,
@@ -965,7 +965,7 @@ const Xe = [], pt = [], eo = () => ({
965
965
  x("div", qa, [
966
966
  d(u) ? (f(), I(D, {
967
967
  key: 0,
968
- onClick: i
968
+ onClick: c
969
969
  }, {
970
970
  default: y(() => [
971
971
  g(d(Qo))
@@ -1051,17 +1051,17 @@ const Xe = [], pt = [], eo = () => ({
1051
1051
  },
1052
1052
  emits: ["update:modelValue"],
1053
1053
  setup(t, { emit: e }) {
1054
- ve((r) => ({
1054
+ ve((i) => ({
1055
1055
  "304fd598": l.value
1056
1056
  }));
1057
- const o = t, n = e, { parseOptions: a, loadingOptions: u } = it(o), { value: s } = we(o, n), c = N(() => be(L.omit(o, ["on", "options", "modelValue"]))), l = N(() => o.width || "100%"), i = Et();
1058
- return (r, m) => {
1057
+ const o = t, n = e, { parseOptions: a, loadingOptions: u } = it(o), { value: s } = we(o, n), r = N(() => be(L.omit(o, ["on", "options", "modelValue"]))), l = N(() => o.width || "100%"), c = Et();
1058
+ return (i, m) => {
1059
1059
  const D = B("el-option"), p = B("el-select");
1060
- return f(), I(p, K(c.value, {
1060
+ return f(), I(p, K(r.value, {
1061
1061
  modelValue: d(s),
1062
1062
  "onUpdate:modelValue": m[0] || (m[0] = (h) => _e(s) ? s.value = h : null),
1063
1063
  loading: d(u)
1064
- }, me(r.on)), Ye({
1064
+ }, me(i.on)), Ye({
1065
1065
  default: y(() => [
1066
1066
  (f(!0), _(H, null, $(d(a), (h) => (f(), I(D, K({
1067
1067
  key: h.value
@@ -1074,10 +1074,10 @@ const Xe = [], pt = [], eo = () => ({
1074
1074
  ]),
1075
1075
  _: 2
1076
1076
  }, [
1077
- $(d(i), (h) => ({
1077
+ $(d(c), (h) => ({
1078
1078
  name: h,
1079
1079
  fn: y(() => [
1080
- ne(r.$slots, h, {}, void 0, !0)
1080
+ ne(i.$slots, h, {}, void 0, !0)
1081
1081
  ])
1082
1082
  }))
1083
1083
  ]), 1040, ["modelValue", "loading"]);
@@ -1147,17 +1147,17 @@ const Xe = [], pt = [], eo = () => ({
1147
1147
  setup(t, { emit: e }) {
1148
1148
  const o = t, n = e, { value: a } = we(o, n), { parseOptions: u, loadingOptions: s } = it(o, () => {
1149
1149
  o.defaultSelectFirst && !a.value?.length && u.value.length && n("update:modelValue", ["", u.value[0]?.value ?? ""]);
1150
- }), c = N(() => {
1150
+ }), r = N(() => {
1151
1151
  const C = su(o.selectWidth, o.selectAttrs);
1152
1152
  return Object.assign({}, C);
1153
1153
  }), l = () => {
1154
1154
  n("change", a.value);
1155
- }, i = N(() => u.value.find((A) => A.value === a.value[1])?.placeholder ?? o.placeholder), r = N(
1155
+ }, c = N(() => u.value.find((A) => A.value === a.value[1])?.placeholder ?? o.placeholder), i = N(
1156
1156
  () => u.value.find((C) => C.value === a.value[1])
1157
1157
  ), m = (C) => {
1158
1158
  const [, A] = a.value;
1159
1159
  let F = C;
1160
- r.value?.type === "id" && (F = ru(C)), n("update:modelValue", [F, A || ""]);
1160
+ i.value?.type === "id" && (F = ru(C)), n("update:modelValue", [F, A || ""]);
1161
1161
  }, D = () => {
1162
1162
  const C = a.value[0];
1163
1163
  m(""), (o.changeOnSelect || C) && l();
@@ -1180,9 +1180,9 @@ const Xe = [], pt = [], eo = () => ({
1180
1180
  ]
1181
1181
  }, p.value, {
1182
1182
  "model-value": d(a)[0],
1183
- placeholder: i.value,
1183
+ placeholder: c.value,
1184
1184
  clearable: !1,
1185
- maxlength: r.value?.maxlength ?? p.value.maxlength,
1185
+ maxlength: i.value?.maxlength ?? p.value.maxlength,
1186
1186
  "onUpdate:modelValue": m,
1187
1187
  onChange: l
1188
1188
  }), {
@@ -1209,8 +1209,8 @@ const Xe = [], pt = [], eo = () => ({
1209
1209
  g(b, K({
1210
1210
  modelValue: d(a)[1],
1211
1211
  "onUpdate:modelValue": A[0] || (A[0] = (S) => d(a)[1] = S)
1212
- }, c.value, {
1213
- disabled: c.value.disabled ?? C.disabled,
1212
+ }, r.value, {
1213
+ disabled: r.value.disabled ?? C.disabled,
1214
1214
  loading: d(s),
1215
1215
  onChange: D
1216
1216
  }), {
@@ -1247,9 +1247,9 @@ const Xe = [], pt = [], eo = () => ({
1247
1247
  ve((m) => ({
1248
1248
  "45fbcfb6": d(l)
1249
1249
  }));
1250
- const { keywords: e, advancedFormBuilder: o, searchResult: n, itemIsChecked: a, search: u, searchInputRef: s } = xa(), { nextZIndex: c } = Kt(), l = c(), i = G({}), r = () => {
1251
- e.value && !i.value.height && o.startColumnSearch((m) => {
1252
- i.value = m;
1250
+ const { keywords: e, advancedFormBuilder: o, searchResult: n, itemIsChecked: a, search: u, searchInputRef: s } = xa(), { nextZIndex: r } = Kt(), l = r(), c = G({}), i = () => {
1251
+ e.value && !c.value.height && o.startColumnSearch((m) => {
1252
+ c.value = m;
1253
1253
  }), u();
1254
1254
  };
1255
1255
  return (m, D) => {
@@ -1263,14 +1263,14 @@ const Xe = [], pt = [], eo = () => ({
1263
1263
  "onUpdate:modelValue": D[0] || (D[0] = (b) => _e(e) ? e.value = b : null),
1264
1264
  clearable: "",
1265
1265
  placeholder: "可搜索列名称",
1266
- onInput: r
1266
+ onInput: i
1267
1267
  }, null, 8, ["modelValue"])
1268
1268
  ]),
1269
- d(e) && i.value.height ? (f(), _("div", {
1269
+ d(e) && c.value.height ? (f(), _("div", {
1270
1270
  key: 0,
1271
1271
  class: "search_result",
1272
1272
  style: ot({
1273
- height: `${i.value.height}px`
1273
+ height: `${c.value.height}px`
1274
1274
  })
1275
1275
  }, [
1276
1276
  d(n).length ? (f(), I(F, {
@@ -1334,7 +1334,7 @@ function Au() {
1334
1334
  (function(o, n) {
1335
1335
  t.exports = n();
1336
1336
  })(vu, (function() {
1337
- var o, n, a = 1e3, u = 6e4, s = 36e5, c = 864e5, l = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, i = 31536e6, r = 2628e6, m = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, D = { years: i, months: r, days: c, hours: s, minutes: u, seconds: a, milliseconds: 1, weeks: 6048e5 }, p = function(S) {
1337
+ var o, n, a = 1e3, u = 6e4, s = 36e5, r = 864e5, l = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, c = 31536e6, i = 2628e6, m = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, D = { years: c, months: i, days: r, hours: s, minutes: u, seconds: a, milliseconds: 1, weeks: 6048e5 }, p = function(S) {
1338
1338
  return S instanceof w;
1339
1339
  }, h = function(S, T, E) {
1340
1340
  return new w(S, E, T.$l);
@@ -1375,7 +1375,7 @@ function Au() {
1375
1375
  }), 0);
1376
1376
  }, T.parseFromMilliseconds = function() {
1377
1377
  var E = this.$ms;
1378
- this.$d.years = F(E / i), E %= i, this.$d.months = F(E / r), E %= r, this.$d.days = F(E / c), E %= c, this.$d.hours = F(E / s), E %= s, this.$d.minutes = F(E / u), E %= u, this.$d.seconds = F(E / a), E %= a, this.$d.milliseconds = E;
1378
+ this.$d.years = F(E / c), E %= c, this.$d.months = F(E / i), E %= i, this.$d.days = F(E / r), E %= r, this.$d.hours = F(E / s), E %= s, this.$d.minutes = F(E / u), E %= u, this.$d.seconds = F(E / a), E %= a, this.$d.milliseconds = E;
1379
1379
  }, T.toISOString = function() {
1380
1380
  var E = b(this.$d.years, "Y"), O = b(this.$d.months, "M"), V = +this.$d.days || 0;
1381
1381
  this.$d.weeks && (V += 7 * this.$d.weeks);
@@ -1943,8 +1943,8 @@ const Nu = (t) => {
1943
1943
  }, Ru = (t) => Array.isArray(t), Mu = (t, e) => {
1944
1944
  const o = kt(e, Je), n = new Map(o.columns.map((a) => [a.prop, a]));
1945
1945
  return t.forEach(({ prop: a, checked: u }, s) => {
1946
- const c = n.get(a);
1947
- c && (c.checked = !!u, u && (c.sort = s + 1));
1946
+ const r = n.get(a);
1947
+ r && (r.checked = !!u, u && (r.sort = s + 1));
1948
1948
  }), {
1949
1949
  useGroup: o.groupName,
1950
1950
  groups: [o]
@@ -1959,12 +1959,12 @@ const Nu = (t) => {
1959
1959
  }, dn = (t, e) => {
1960
1960
  if (Ru(t))
1961
1961
  return Mu(t, e);
1962
- const { groups: o = [], useGroup: n = Ct } = t, a = [], u = kt(e, Ct).columns, s = (c) => {
1963
- const { groupName: l, columns: i } = c, r = new Map(i.map((m) => [m.prop, m]));
1962
+ const { groups: o = [], useGroup: n = Ct } = t, a = [], u = kt(e, Ct).columns, s = (r) => {
1963
+ const { groupName: l, columns: c } = r, i = new Map(c.map((m) => [m.prop, m]));
1964
1964
  a.push({
1965
1965
  groupName: l,
1966
1966
  columns: u.map((m) => {
1967
- const { readonly: D } = m, p = r.get(m.prop);
1967
+ const { readonly: D } = m, p = i.get(m.prop);
1968
1968
  return p ? {
1969
1969
  ...p,
1970
1970
  value: oo(p),
@@ -1989,7 +1989,7 @@ const Nu = (t) => {
1989
1989
  };
1990
1990
  }), u = G(a.value?.groupNames?.[0] ?? ""), s = (p) => a.value.formItems[p].every(
1991
1991
  (h) => !!e.activeGroupColumnsMap.get(h.prop)?.checked
1992
- ), c = (p) => {
1992
+ ), r = (p) => {
1993
1993
  const h = a.value.formItems[p], C = h.filter(
1994
1994
  (A) => !!e.activeGroupColumnsMap.get(A.prop)?.checked
1995
1995
  ).length;
@@ -1998,13 +1998,13 @@ const Nu = (t) => {
1998
1998
  a.value.formItems[p].forEach((C) => {
1999
1999
  e.updateActiveGroupColumnChecked(C.prop, h);
2000
2000
  });
2001
- }, i = (p) => !!e.activeGroupColumnsMap.get(p)?.checked, r = (p, h) => `${h ? "#" : ""}${bo}${p}`, m = (p) => {
2001
+ }, c = (p) => !!e.activeGroupColumnsMap.get(p)?.checked, i = (p, h) => `${h ? "#" : ""}${bo}${p}`, m = (p) => {
2002
2002
  p.preventDefault();
2003
2003
  }, D = (p) => {
2004
2004
  u.value = p ? p.replace(`#${bo}`, "") : a.value?.groupNames?.[0] ?? "";
2005
2005
  };
2006
2006
  return e.on(ue.UPDATE_ACTIVE_GROUP, () => {
2007
- n.value?.scrollTo(r(a.value.groupNames[0], !0));
2007
+ n.value?.scrollTo(i(a.value.groupNames[0], !0));
2008
2008
  }), (p, h) => {
2009
2009
  const C = B("el-anchor-link"), A = B("el-checkbox"), F = B("el-col"), v = B("el-row"), b = B("el-form"), w = ee("ellipsis");
2010
2010
  return f(), _("div", Pu, [
@@ -2025,7 +2025,7 @@ const Nu = (t) => {
2025
2025
  (f(!0), _(H, null, $(a.value.groupNames, (k) => (f(), I(C, {
2026
2026
  key: k,
2027
2027
  class: te(["group-item", { "is-active": k === u.value }]),
2028
- href: r(k, !0)
2028
+ href: i(k, !0)
2029
2029
  }, {
2030
2030
  default: y(() => [
2031
2031
  U(j(k), 1)
@@ -2050,14 +2050,14 @@ const Nu = (t) => {
2050
2050
  default: y(() => [
2051
2051
  (f(!0), _(H, null, $(a.value.groupNames, (k) => (f(), _(H, { key: k }, [
2052
2052
  g(F, {
2053
- id: r(k),
2053
+ id: i(k),
2054
2054
  class: "advanced-filter-form__item advanced-filter-form__group-title",
2055
2055
  span: 24
2056
2056
  }, {
2057
2057
  default: y(() => [
2058
2058
  g(A, {
2059
2059
  "model-value": s(k),
2060
- indeterminate: c(k),
2060
+ indeterminate: r(k),
2061
2061
  onChange: (S) => l(k, S)
2062
2062
  }, {
2063
2063
  default: y(() => [
@@ -2076,7 +2076,7 @@ const Nu = (t) => {
2076
2076
  default: y(() => [
2077
2077
  g(A, {
2078
2078
  disabled: S.readonly,
2079
- "model-value": i(S.prop),
2079
+ "model-value": c(S.prop),
2080
2080
  onChange: (T) => d(e).updateActiveGroupColumnChecked(S.prop, T)
2081
2081
  }, {
2082
2082
  default: y(() => [
@@ -2124,7 +2124,7 @@ const Nu = (t) => {
2124
2124
  return u?.advancedFilterLabel || u?.label || "";
2125
2125
  });
2126
2126
  return (a, u) => {
2127
- const s = B("el-icon"), c = ee("ellipsis");
2127
+ const s = B("el-icon"), r = ee("ellipsis");
2128
2128
  return f(), _("div", zu, [
2129
2129
  g(d(Pe), {
2130
2130
  modelValue: o.value,
@@ -2143,11 +2143,11 @@ const Nu = (t) => {
2143
2143
  J((f(), _("span", Hu, [
2144
2144
  U(j(n.value(l.prop)), 1)
2145
2145
  ])), [
2146
- [c]
2146
+ [r]
2147
2147
  ]),
2148
2148
  l.readonly ? R("", !0) : (f(), _("div", Uu, [
2149
2149
  g(s, {
2150
- onClick: (i) => d(e).updateActiveGroupColumnChecked(l.prop, !1)
2150
+ onClick: (c) => d(e).updateActiveGroupColumnChecked(l.prop, !1)
2151
2151
  }, {
2152
2152
  default: y(() => [
2153
2153
  g(d(Yt))
@@ -2188,7 +2188,7 @@ const Nu = (t) => {
2188
2188
  x("div", {
2189
2189
  class: "reset-btn",
2190
2190
  onClick: s[0] || (s[0] = //@ts-ignore
2191
- (...c) => d(e).resetActiveGroupColumnsStatus && d(e).resetActiveGroupColumnsStatus(...c))
2191
+ (...r) => d(e).resetActiveGroupColumnsStatus && d(e).resetActiveGroupColumnsStatus(...r))
2192
2192
  }, "重置")
2193
2193
  ]),
2194
2194
  (f(), I(Qu, {
@@ -2198,11 +2198,12 @@ const Nu = (t) => {
2198
2198
  ], 512));
2199
2199
  }
2200
2200
  }), Ku = /* @__PURE__ */ Z(ju, [["__scopeId", "data-v-d7f8b755"]]);
2201
- function Xu(t) {
2201
+ function Xu(t, e) {
2202
2202
  Xt.success({
2203
2203
  message: t,
2204
2204
  plain: !0,
2205
- grouping: !0
2205
+ grouping: !0,
2206
+ ...e
2206
2207
  });
2207
2208
  }
2208
2209
  function sc(t, e) {
@@ -2245,13 +2246,13 @@ async function pn(t, e, o) {
2245
2246
  if (a === "confirm") {
2246
2247
  if (n)
2247
2248
  return;
2248
- const c = (l) => {
2249
+ const r = (l) => {
2249
2250
  u.confirmButtonLoading = l, u.cancelButtonLoading = l;
2250
2251
  };
2251
2252
  try {
2252
- c(!0), await e(), n = !0, s();
2253
+ r(!0), await e(), n = !0, s();
2253
2254
  } finally {
2254
- c(!1);
2255
+ r(!1);
2255
2256
  }
2256
2257
  } else
2257
2258
  s();
@@ -2282,16 +2283,16 @@ const Ju = { class: "advanced-filter-tab-item__footer" }, es = /* @__PURE__ */ M
2282
2283
  setup(t) {
2283
2284
  const e = Ee(t, "modelValue"), o = G(), n = Oe(), a = N(() => e.value === Je), u = G(e.value), s = async () => {
2284
2285
  await qu(`确定删除${e.value}吗?`) && n.removeGroup(e.value);
2285
- }, c = () => {
2286
+ }, r = () => {
2286
2287
  o.value?.hide(), u.value = e.value;
2287
2288
  }, l = () => {
2288
2289
  if (!u.value)
2289
2290
  return ye("名称不能为空");
2290
2291
  if (n.groups.some((m) => m.groupName !== e.value && m.groupName === u.value))
2291
2292
  return ye("名称不能重复");
2292
- n.updateGroupName(e.value, u.value), c();
2293
- }, i = G(), r = async () => {
2294
- await Y(), i.value?.focus();
2293
+ n.updateGroupName(e.value, u.value), r();
2294
+ }, c = G(), i = async () => {
2295
+ await Y(), c.value?.focus();
2295
2296
  };
2296
2297
  return (m, D) => {
2297
2298
  const p = B("el-icon"), h = B("el-input"), C = B("el-button"), A = B("el-popover");
@@ -2312,7 +2313,7 @@ const Ju = { class: "advanced-filter-tab-item__footer" }, es = /* @__PURE__ */ M
2312
2313
  width: "240px",
2313
2314
  "popper-class": "advanced-filter-tab-item__popover",
2314
2315
  trigger: "click",
2315
- onShow: r
2316
+ onShow: i
2316
2317
  }, {
2317
2318
  reference: y(() => [
2318
2319
  g(p, null, {
@@ -2325,7 +2326,7 @@ const Ju = { class: "advanced-filter-tab-item__footer" }, es = /* @__PURE__ */ M
2325
2326
  default: y(() => [
2326
2327
  g(h, {
2327
2328
  ref_key: "inputRef",
2328
- ref: i,
2329
+ ref: c,
2329
2330
  modelValue: u.value,
2330
2331
  "onUpdate:modelValue": D[0] || (D[0] = (F) => u.value = F),
2331
2332
  placeholder: "请输入分组名称",
@@ -2334,7 +2335,7 @@ const Ju = { class: "advanced-filter-tab-item__footer" }, es = /* @__PURE__ */ M
2334
2335
  onKeyup: Bt(l, ["enter"])
2335
2336
  }, null, 8, ["modelValue"]),
2336
2337
  x("div", Ju, [
2337
- g(C, { onClick: c }, {
2338
+ g(C, { onClick: r }, {
2338
2339
  default: y(() => [...D[2] || (D[2] = [
2339
2340
  U("取消", -1)
2340
2341
  ])]),
@@ -2667,13 +2668,13 @@ class mn {
2667
2668
  groups: e.map(
2668
2669
  ({ groupName: n, columns: a }) => ({
2669
2670
  groupName: n,
2670
- columns: a.map(({ prop: u, sort: s, value: c, checked: l, dynamicExpression: i }) => ({
2671
+ columns: a.map(({ prop: u, sort: s, value: r, checked: l, dynamicExpression: c }) => ({
2671
2672
  prop: u,
2672
2673
  /* 有sort存在则代表是勾选的数据 */
2673
2674
  sort: s,
2674
2675
  /* 如果有动态数据,则不保存原 value/dynamicExpression */
2675
- value: l ? i ? void 0 : c : void 0,
2676
- dynamicExpression: l ? i : void 0
2676
+ value: l ? c ? void 0 : r : void 0,
2677
+ dynamicExpression: l ? c : void 0
2677
2678
  }))
2678
2679
  })
2679
2680
  ),
@@ -2688,7 +2689,7 @@ class mn {
2688
2689
  return this.advancedFilterGroup.useGroup = this.activeGroupName, this.groups.forEach((o) => {
2689
2690
  const n = o.columns, a = e.get(o.groupName)?.columns ?? [];
2690
2691
  if (a.length) {
2691
- const u = new Map(a.map((s, c) => [s.prop, c + 1]));
2692
+ const u = new Map(a.map((s, r) => [s.prop, r + 1]));
2692
2693
  n.forEach((s) => {
2693
2694
  s.sort = u.get(s.prop) ?? void 0;
2694
2695
  });
@@ -2833,12 +2834,12 @@ class cs {
2833
2834
  getFormatData(e) {
2834
2835
  const o = L.cloneDeep(this.formData ?? {});
2835
2836
  return e.reduce((n, a) => {
2836
- const { format: u, prop: s } = a, c = Reflect.get(o, s);
2837
+ const { format: u, prop: s } = a, r = Reflect.get(o, s);
2837
2838
  if (u && typeof u == "function") {
2838
- const l = u(c, o, a);
2839
+ const l = u(r, o, a);
2839
2840
  l && typeof L.isPlainObject(l) && Object.assign(n, l);
2840
2841
  } else
2841
- Reflect.set(n, s, c);
2842
+ Reflect.set(n, s, r);
2842
2843
  return n;
2843
2844
  }, {});
2844
2845
  }
@@ -2940,10 +2941,10 @@ class Dn {
2940
2941
  parseColumns(e) {
2941
2942
  const { initialFormData: o } = this.config;
2942
2943
  return L.isEmpty(o) ? e : e.map((n) => {
2943
- const { defaultValue: a, ...u } = n, s = u.prop, c = Reflect.get(o, s);
2944
+ const { defaultValue: a, ...u } = n, s = u.prop, r = Reflect.get(o, s);
2944
2945
  return {
2945
2946
  ...u,
2946
- defaultValue: Reflect.has(o, s) ? c : a
2947
+ defaultValue: Reflect.has(o, s) ? r : a
2947
2948
  };
2948
2949
  });
2949
2950
  }
@@ -3006,26 +3007,26 @@ class Dn {
3006
3007
  resetFormDataTo(e, o = "auto", n) {
3007
3008
  const a = this.columns.length;
3008
3009
  for (let u = 0; u < a; ++u) {
3009
- const { tag: s, prop: c } = this.columns[u];
3010
- if (s && c) {
3011
- const l = Reflect.get(e, c), i = Reflect.get(this.formData, c);
3012
- if (Reflect.has(e, c)) {
3013
- this.updateFormData(c, l);
3010
+ const { tag: s, prop: r } = this.columns[u];
3011
+ if (s && r) {
3012
+ const l = Reflect.get(e, r), c = Reflect.get(this.formData, r);
3013
+ if (Reflect.has(e, r)) {
3014
+ this.updateFormData(r, l);
3014
3015
  continue;
3015
3016
  }
3016
3017
  if (o === "empty") {
3017
- this.updateFormData(c, void 0);
3018
+ this.updateFormData(r, void 0);
3018
3019
  continue;
3019
3020
  }
3020
- const r = n || (() => {
3021
+ const i = n || (() => {
3021
3022
  });
3022
3023
  if (o === "custom") {
3023
- this.updateFormData(c, r(c, i));
3024
+ this.updateFormData(r, i(r, c));
3024
3025
  continue;
3025
3026
  }
3026
3027
  if (o === "auto") {
3027
3028
  const m = Reflect.get(ps, s);
3028
- m && L.isFunction(m) ? this.updateFormData(c, m(i)) : this.updateFormData(c, r(c, i));
3029
+ m && L.isFunction(m) ? this.updateFormData(r, m(c)) : this.updateFormData(r, i(r, c));
3029
3030
  }
3030
3031
  }
3031
3032
  }
@@ -3161,8 +3162,8 @@ class ms extends Dn {
3161
3162
  for (let a = 0; a < n; ++a) {
3162
3163
  const u = this.activeGroupColumns[a], s = o.get(u.prop);
3163
3164
  if (s) {
3164
- const c = this.formData[u.prop];
3165
- u.value = le(e ? c ?? s.defaultValue : c);
3165
+ const r = this.formData[u.prop];
3166
+ u.value = le(e ? r ?? s.defaultValue : r);
3166
3167
  }
3167
3168
  }
3168
3169
  }
@@ -3222,12 +3223,12 @@ function $e(t, e) {
3222
3223
  let n;
3223
3224
  const a = (s) => {
3224
3225
  o.value = s;
3225
- }, u = (s) => new Promise((c) => {
3226
+ }, u = (s) => new Promise((r) => {
3226
3227
  a(!0);
3227
3228
  const l = s();
3228
3229
  en(l) ? l.finally(() => {
3229
- a(!1), c();
3230
- }) : (a(!1), c());
3230
+ a(!1), r();
3231
+ }) : (a(!1), r());
3231
3232
  });
3232
3233
  return e && ut(() => {
3233
3234
  o.value ? n = pa.service({
@@ -3246,16 +3247,16 @@ const Ds = {
3246
3247
  setup(t) {
3247
3248
  const e = G(!1), { setAdvancedFormBuilder: o, advancedFormBuilder: n } = Ia(), a = () => {
3248
3249
  e.value = !1, n.value?.destroy(), n.value = void 0;
3249
- }, { onTaskAllComplete: u } = eo(), [s, c] = $e(), l = () => {
3250
+ }, { onTaskAllComplete: u } = eo(), [s, r] = $e(), l = () => {
3250
3251
  s.value = !0, u(() => {
3251
- c(async () => {
3252
+ r(async () => {
3252
3253
  await Y(), n.value?.advancedSaveValidate() && (n.value?.updateActiveGroupColumnsValue(!1), await n.value?.saveAdvancedFilterData(), n.value && (t.formBuilder.updateGroupsByAdvancedFilter(
3253
3254
  dn(n.value.columnManagement.getFormatSaveGroups(), t.formBuilder.columns)
3254
3255
  ), await Y()), n.value?.emit(ue.SAVE_CONFIG), t.formBuilder.emit(ue.SAVE_CONFIG), Xu("操作成功"));
3255
3256
  });
3256
3257
  });
3257
- }, [i, r] = $e(), m = (D) => {
3258
- r(async () => {
3258
+ }, [c, i] = $e(), m = (D) => {
3259
+ i(async () => {
3259
3260
  o(
3260
3261
  new ms([], {
3261
3262
  pageId: t.formBuilder.config.pageId
@@ -3266,7 +3267,7 @@ const Ds = {
3266
3267
  });
3267
3268
  };
3268
3269
  return t.formBuilder.on(ue.OPEN_CONFIG_DIALOG, (D) => {
3269
- i.value = !0, e.value = !0, setTimeout(() => {
3270
+ c.value = !0, e.value = !0, setTimeout(() => {
3270
3271
  m(D);
3271
3272
  });
3272
3273
  }), (D, p) => {
@@ -3301,7 +3302,7 @@ const Ds = {
3301
3302
  }, 8, ["loading"])
3302
3303
  ]),
3303
3304
  default: y(() => [
3304
- d(i) ? (f(), _("div", Ds, [
3305
+ d(c) ? (f(), _("div", Ds, [
3305
3306
  x("div", fs, [
3306
3307
  g(h, { class: "is-loading" }, {
3307
3308
  default: y(() => [
@@ -3312,7 +3313,7 @@ const Ds = {
3312
3313
  p[1] || (p[1] = x("div", { class: "text" }, "加载中", -1))
3313
3314
  ])
3314
3315
  ])) : R("", !0),
3315
- d(n) && e.value && !d(i) ? (f(), I(us, {
3316
+ d(n) && e.value && !d(c) ? (f(), I(us, {
3316
3317
  key: 1,
3317
3318
  "advanced-form-builder": d(n)
3318
3319
  }, null, 8, ["advanced-form-builder"])) : R("", !0)
@@ -3327,7 +3328,7 @@ const Ds = {
3327
3328
  F && Reflect.set(n.value, F, C);
3328
3329
  }, u = G(!1), s = () => {
3329
3330
  u.value = !u.value;
3330
- }, c = G(!1), l = G([]), i = 5, r = async () => {
3331
+ }, r = G(!1), l = G([]), c = 5, i = async () => {
3331
3332
  if (on(e.value?.$el))
3332
3333
  return;
3333
3334
  t.hiddenProps.clear();
@@ -3344,7 +3345,7 @@ const Ds = {
3344
3345
  const k = C.get(w);
3345
3346
  if (k) {
3346
3347
  const { top: S } = k.getBoundingClientRect() ?? {};
3347
- v ? Math.abs(S - v) > i ? t.hiddenProps.add(w) : t.hiddenProps.delete(w) : (v = S, t.hiddenProps.delete(w));
3348
+ v ? Math.abs(S - v) > c ? t.hiddenProps.add(w) : t.hiddenProps.delete(w) : (v = S, t.hiddenProps.delete(w));
3348
3349
  } else
3349
3350
  t.hiddenProps.add(w);
3350
3351
  }
@@ -3355,10 +3356,10 @@ const Ds = {
3355
3356
  if (A && F) {
3356
3357
  const v = C.get(A.prop), b = C.get(F.prop);
3357
3358
  if (v && b) {
3358
- const { top: w } = v.getBoundingClientRect() ?? {}, { top: k } = b.getBoundingClientRect() ?? {}, S = Math.abs(w - k) > i;
3359
- c.value = !S;
3359
+ const { top: w } = v.getBoundingClientRect() ?? {}, { top: k } = b.getBoundingClientRect() ?? {}, S = Math.abs(w - k) > c;
3360
+ r.value = !S;
3360
3361
  }
3361
- v && !b && (c.value = !1);
3362
+ v && !b && (r.value = !1);
3362
3363
  }
3363
3364
  };
3364
3365
  let m = !0;
@@ -3369,7 +3370,7 @@ const Ds = {
3369
3370
  sort: C.sort
3370
3371
  })).concat([t.config.hideExpandBtn, u.value]),
3371
3372
  () => {
3372
- !t.config.hideExpandBtn && t.columns && r(), e.value && n.value && t.formInstanceManagement.init(e, n);
3373
+ !t.config.hideExpandBtn && t.columns && i(), e.value && n.value && t.formInstanceManagement.init(e, n);
3373
3374
  },
3374
3375
  { flush: "post", deep: !0 }
3375
3376
  );
@@ -3385,7 +3386,7 @@ const Ds = {
3385
3386
  } else
3386
3387
  t.columnManagement.showAllFormItems();
3387
3388
  o.value = !1, await Y(), t.config.hideExpandBtn ? D() : (p = new ResizeObserver(() => {
3388
- m && requestAnimationFrame(r);
3389
+ m && requestAnimationFrame(i);
3389
3390
  }), e.value && p.observe(e.value.$el));
3390
3391
  };
3391
3392
  return Jn(() => {
@@ -3405,7 +3406,7 @@ const Ds = {
3405
3406
  updateExpand: s,
3406
3407
  isExpand: u,
3407
3408
  baseFormRef: e,
3408
- autoHiddenExpand: c,
3409
+ autoHiddenExpand: r,
3409
3410
  colRefs: l,
3410
3411
  loadingConfigColumns: o
3411
3412
  };
@@ -3417,7 +3418,7 @@ const Ds = {
3417
3418
  },
3418
3419
  emits: ["change"],
3419
3420
  setup(t, { emit: e }) {
3420
- const o = e, { baseFormRef: n, isExpand: a, autoHiddenExpand: u, colRefs: s, loadingConfigColumns: c, collectionRef: l, updateExpand: i } = hs(t.formBuilder), { configManagement: r, config: m } = t.formBuilder, D = (A, F) => F ? Uo(F) ? `${Object.keys(A).reduce((b, w) => (b.push(`${w}:${Reflect.get(A, w)}`), b), []).join(";")} ${F}` : { ...A, ...F } : A, p = N(
3421
+ const o = e, { baseFormRef: n, isExpand: a, autoHiddenExpand: u, colRefs: s, loadingConfigColumns: r, collectionRef: l, updateExpand: c } = hs(t.formBuilder), { configManagement: i, config: m } = t.formBuilder, D = (A, F) => F ? Uo(F) ? `${Object.keys(A).reduce((b, w) => (b.push(`${w}:${Reflect.get(A, w)}`), b), []).join(";")} ${F}` : { ...A, ...F } : A, p = N(
3421
3422
  () => (A) => A.parseColumnEvent((...F) => {
3422
3423
  t.formBuilder.emit(ue.CHANGE), o("change", ...F);
3423
3424
  })
@@ -3440,18 +3441,18 @@ const Ds = {
3440
3441
  ])
3441
3442
  }, [
3442
3443
  J((f(), _("div", Cs, [
3443
- d(c) ? R("", !0) : (f(), I(k, K({
3444
+ d(r) ? R("", !0) : (f(), I(k, K({
3444
3445
  key: 0,
3445
3446
  ref_key: "baseFormRef",
3446
3447
  ref: n,
3447
3448
  class: "base-form__form"
3448
- }, d(r).getFormAttrs, {
3449
+ }, d(i).getFormAttrs, {
3449
3450
  model: A.formBuilder.formData,
3450
3451
  onSubmit: F[0] || (F[0] = de(() => {
3451
3452
  }, ["prevent"]))
3452
3453
  }), {
3453
3454
  default: y(() => [
3454
- g(w, K({ class: "base-form__row" }, d(r).getRowAttrs, {
3455
+ g(w, K({ class: "base-form__row" }, d(i).getRowAttrs, {
3455
3456
  style: D({ marginLeft: "0", marginRight: "0" }, d(m).rowAttrs?.style)
3456
3457
  }), {
3457
3458
  default: y(() => [
@@ -3490,7 +3491,7 @@ const Ds = {
3490
3491
  _: 1
3491
3492
  }, 16, ["model"]))
3492
3493
  ])), [
3493
- [T, d(c)]
3494
+ [T, d(r)]
3494
3495
  ]),
3495
3496
  d(m).hideExpandBtn ? R("", !0) : (f(), _(H, { key: 0 }, [
3496
3497
  d(u) ? R("", !0) : (f(), _("div", {
@@ -3498,7 +3499,7 @@ const Ds = {
3498
3499
  class: te(["expand-btn", { "expand-btn__expand": d(a) }]),
3499
3500
  style: ot({ display: A.formBuilder.getShowColumns.length ? "" : "none" }),
3500
3501
  onClick: F[1] || (F[1] = //@ts-ignore
3501
- (...E) => d(i) && d(i)(...E))
3502
+ (...E) => d(c) && d(c)(...E))
3502
3503
  }, [
3503
3504
  g(S, null, {
3504
3505
  default: y(() => [
@@ -3534,7 +3535,7 @@ const Ds = {
3534
3535
  return st(() => {
3535
3536
  !o.value && t.steps.length && (o.value = t.steps[0].value);
3536
3537
  }), (a, u) => (f(), _("div", bs, [
3537
- (f(!0), _(H, null, $(a.steps, (s, c) => (f(), _("div", {
3538
+ (f(!0), _(H, null, $(a.steps, (s, r) => (f(), _("div", {
3538
3539
  key: s.value,
3539
3540
  class: te(["z-base-step__step-item", { "is-active": s.value === o.value }]),
3540
3541
  onClick: (l) => n("change", s.value)
@@ -3547,7 +3548,7 @@ const Ds = {
3547
3548
  }, null, 8, ["content"]),
3548
3549
  U(" " + j(s.label), 1)
3549
3550
  ]),
3550
- c !== a.steps.length - 1 ? (f(), _("div", Es)) : R("", !0)
3551
+ r !== a.steps.length - 1 ? (f(), _("div", Es)) : R("", !0)
3551
3552
  ], 10, ys))), 128))
3552
3553
  ]));
3553
3554
  }
@@ -3641,19 +3642,19 @@ const Ds = {
3641
3642
  }));
3642
3643
  }), wt(() => {
3643
3644
  u?.disconnect();
3644
- }), (s, c) => {
3645
- const l = B("el-tag"), i = B("el-tooltip");
3646
- return f(), _("div", Vs, [g(i, {
3645
+ }), (s, r) => {
3646
+ const l = B("el-tag"), c = B("el-tooltip");
3647
+ return f(), _("div", Vs, [g(c, {
3647
3648
  disabled: !o.value.length || !a.value,
3648
3649
  effect: "light",
3649
3650
  placement: "top",
3650
3651
  "popper-class": "z-show-to-tags__tooltip"
3651
3652
  }, {
3652
- content: y(() => [x("div", Ps, [(f(!0), _(H, null, $(o.value, (r) => (f(), I(l, {
3653
- key: r,
3653
+ content: y(() => [x("div", Ps, [(f(!0), _(H, null, $(o.value, (i) => (f(), I(l, {
3654
+ key: i,
3654
3655
  type: "primary"
3655
3656
  }, {
3656
- default: y(() => [U(j(r), 1)]),
3657
+ default: y(() => [U(j(i), 1)]),
3657
3658
  _: 2
3658
3659
  }, 1024))), 128))])]),
3659
3660
  default: y(() => [x("div", Rs, [x("div", {
@@ -3681,7 +3682,7 @@ const Ds = {
3681
3682
  const o = e, n = (u) => ["config-columns__btn-item", u === t.groupId ? "config-columns__btn-item--active" : ""], a = (u) => {
3682
3683
  const {
3683
3684
  id: s,
3684
- name: c
3685
+ name: r
3685
3686
  } = u;
3686
3687
  return g(B("el-dropdown-item"), {
3687
3688
  class: n(s),
@@ -3691,7 +3692,7 @@ const Ds = {
3691
3692
  }, {
3692
3693
  default: () => [J(g("div", {
3693
3694
  class: "config-columns__btn-item-name"
3694
- }, [c]), [[ee("ellipsis")]]), g("div", {
3695
+ }, [r]), [[ee("ellipsis")]]), g("div", {
3695
3696
  class: "config-columns__btn-operation"
3696
3697
  }, [g(B("el-icon"), {
3697
3698
  class: "edit-icon",
@@ -3702,17 +3703,17 @@ const Ds = {
3702
3703
  });
3703
3704
  };
3704
3705
  return (u, s) => {
3705
- const c = B("el-dropdown-menu"), l = B("el-dropdown");
3706
+ const r = B("el-dropdown-menu"), l = B("el-dropdown");
3706
3707
  return f(), I(l, {
3707
3708
  "popper-class": "config-columns__btn-popper",
3708
3709
  trigger: "hover",
3709
3710
  placement: "bottom-end"
3710
3711
  }, {
3711
- dropdown: y(() => [g(c, null, {
3712
- default: y(() => [(f(!0), _(H, null, $(u.columnGroups, (i) => (f(), I(a, {
3713
- id: i.id,
3714
- key: i.id,
3715
- name: i.groupName
3712
+ dropdown: y(() => [g(r, null, {
3713
+ default: y(() => [(f(!0), _(H, null, $(u.columnGroups, (c) => (f(), I(a, {
3714
+ id: c.id,
3715
+ key: c.id,
3716
+ name: c.groupName
3716
3717
  }, null, 8, ["id", "name"]))), 128))]),
3717
3718
  _: 1
3718
3719
  })]),
@@ -3806,9 +3807,9 @@ function Ws(t) {
3806
3807
  _render: a,
3807
3808
  renderToOptions: u,
3808
3809
  onClick: s,
3809
- emptyClick: c,
3810
+ emptyClick: r,
3810
3811
  emptyValue: l,
3811
- prop: i
3812
+ prop: c
3812
3813
  } = e;
3813
3814
  if (a) {
3814
3815
  const {
@@ -3822,12 +3823,12 @@ function Ws(t) {
3822
3823
  const v = a(Le, t.data ?? {}, Reflect.get(p, F) ?? {});
3823
3824
  return typeof v != "number" && (!v || v === An) ? Vt : v;
3824
3825
  }
3825
- const r = l ?? Vt;
3826
- if (!i)
3827
- return r;
3828
- const m = Reflect.get(t.data, i);
3826
+ const i = l ?? Vt;
3827
+ if (!c)
3828
+ return i;
3829
+ const m = Reflect.get(t.data, c);
3829
3830
  if (u) {
3830
- const p = u.find((C) => C.value === m), h = p?.label ?? r;
3831
+ const p = u.find((C) => C.value === m), h = p?.label ?? i;
3831
3832
  return p?._color ? g("span", {
3832
3833
  key: m,
3833
3834
  style: {
@@ -3849,9 +3850,9 @@ function Ws(t) {
3849
3850
  }, $s(m) ? m : {
3850
3851
  default: () => [m]
3851
3852
  });
3852
- return c ? p : D ? r : p;
3853
+ return r ? p : D ? i : p;
3853
3854
  }
3854
- return D ? r : m;
3855
+ return D ? i : m;
3855
3856
  }
3856
3857
  function Ys(t) {
3857
3858
  const {
@@ -3867,13 +3868,13 @@ function Ys(t) {
3867
3868
  const Ge = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, js = (t) => {
3868
3869
  const e = {}, o = t.length;
3869
3870
  for (let n = 0; n < o; ++n) {
3870
- const { groupName: a = no, prop: u, label: s, defaultChecked: c, readonly: l, fixed: i } = t[n];
3871
+ const { groupName: a = no, prop: u, label: s, defaultChecked: r, readonly: l, fixed: c } = t[n];
3871
3872
  if (!u || !s)
3872
3873
  continue;
3873
- let r = Reflect.get(e, a);
3874
- r || Reflect.set(e, a, r = []);
3875
- const m = { prop: u, label: s, defaultChecked: c, fixed: Ge(i) };
3876
- l && (m.defaultChecked = !0, m.readonly = !0), r.push(m);
3874
+ let i = Reflect.get(e, a);
3875
+ i || Reflect.set(e, a, i = []);
3876
+ const m = { prop: u, label: s, defaultChecked: r, fixed: Ge(c) };
3877
+ l && (m.defaultChecked = !0, m.readonly = !0), i.push(m);
3877
3878
  }
3878
3879
  return e;
3879
3880
  }, Ks = (t, e) => {
@@ -3894,24 +3895,24 @@ class Bo {
3894
3895
  this.columnMap = o, this.groupName = e.groupName, this.id = e.id, this.active = !!e.active;
3895
3896
  const n = le(this.columnMap);
3896
3897
  let a = 0;
3897
- const u = e.columns.filter((s) => s.prop && this.columnMap.has(s.prop)).map((s, c) => {
3898
+ const u = e.columns.filter((s) => s.prop && this.columnMap.has(s.prop)).map((s, r) => {
3898
3899
  const l = !!s.checked;
3899
- return n.has(s.prop) && n.delete(s.prop), a = Math.max(a, c), {
3900
+ return n.has(s.prop) && n.delete(s.prop), a = Math.max(a, r), {
3900
3901
  checked: l,
3901
3902
  prop: s.prop,
3902
3903
  fixed: Ge(s.fixed),
3903
- index: l ? c : -1,
3904
+ index: l ? r : -1,
3904
3905
  readonly: !!this.columnMap.get(s.prop)?.readonly
3905
3906
  };
3906
3907
  });
3907
3908
  n.size && n.forEach((s) => {
3908
3909
  if (s.prop) {
3909
- const c = !!s.defaultChecked;
3910
+ const r = !!s.defaultChecked;
3910
3911
  u.push({
3911
- checked: c,
3912
+ checked: r,
3912
3913
  prop: s.prop,
3913
3914
  fixed: Ge(s.fixed),
3914
- index: c ? ++a : -1,
3915
+ index: r ? ++a : -1,
3915
3916
  readonly: !!s.readonly
3916
3917
  });
3917
3918
  }
@@ -3984,9 +3985,9 @@ class Js {
3984
3985
  const u = a ? JSON.parse(a) : [];
3985
3986
  if (u.length) {
3986
3987
  let s;
3987
- this.groups = u.reduce((l, i) => {
3988
- const r = new Bo(i, this.columnsMap);
3989
- return e && r.id === e && (s = r), l.push(r), l;
3988
+ this.groups = u.reduce((l, c) => {
3989
+ const i = new Bo(c, this.columnsMap);
3990
+ return e && i.id === e && (s = i), l.push(i), l;
3990
3991
  }, []), !this.groups.find((l) => l.id === Fe) && this.groups.unshift(
3991
3992
  this.getNewGroup(
3992
3993
  o.systemGroupName || Ht,
@@ -4091,15 +4092,15 @@ class Js {
4091
4092
  async build() {
4092
4093
  if (this.groups.length) {
4093
4094
  const e = this.groups.map((o) => {
4094
- const { groupName: n, columns: a, id: u } = o, s = a.filter((i) => !i.fixed), c = a.filter((i) => i.fixed), l = (i) => Me(i, "index").map((r) => ({
4095
- prop: r.prop,
4096
- checked: r.checked,
4097
- fixed: r.fixed ? Ge(r.fixed) : void 0
4095
+ const { groupName: n, columns: a, id: u } = o, s = a.filter((c) => !c.fixed), r = a.filter((c) => c.fixed), l = (c) => Me(c, "index").map((i) => ({
4096
+ prop: i.prop,
4097
+ checked: i.checked,
4098
+ fixed: i.fixed ? Ge(i.fixed) : void 0
4098
4099
  }));
4099
4100
  return {
4100
4101
  groupName: n,
4101
4102
  id: u,
4102
- columns: l(s).concat(l(c)),
4103
+ columns: l(s).concat(l(r)),
4103
4104
  active: this.activeId === u
4104
4105
  };
4105
4106
  });
@@ -4126,7 +4127,7 @@ const yn = Symbol(
4126
4127
  zTableCustomBuilder: d(Mo(yn))
4127
4128
  }), tl = () => {
4128
4129
  const { zTableCustomBuilder: t } = ze(), { keywords: e, searchInputRef: o } = Jt(), n = G([]), a = N(
4129
- () => new Map(t.activeGroupSelectedColumns.map((c) => [c.prop, c]))
4130
+ () => new Map(t.activeGroupSelectedColumns.map((r) => [r.prop, r]))
4130
4131
  );
4131
4132
  return {
4132
4133
  searchInputRef: o,
@@ -4137,8 +4138,8 @@ const yn = Symbol(
4137
4138
  search: () => {
4138
4139
  t.activeGroup && (n.value = t.search(e.value));
4139
4140
  },
4140
- updateColumnChecked: (c, l) => {
4141
- t.activeGroup?.updateColumnChecked(c.prop, l);
4141
+ updateColumnChecked: (r, l) => {
4142
+ t.activeGroup?.updateColumnChecked(r.prop, l);
4142
4143
  }
4143
4144
  };
4144
4145
  }, ol = { class: "custom-column-search__container" }, nl = { class: "search-input" }, al = {
@@ -4148,11 +4149,11 @@ const yn = Symbol(
4148
4149
  name: "CustomColumnsSearch",
4149
4150
  __name: "index",
4150
4151
  setup(t) {
4151
- ve((i) => ({
4152
+ ve((c) => ({
4152
4153
  "34a01dce": d(l)
4153
4154
  }));
4154
- const { keywords: e, checkedColumnsMap: o, search: n, searchResult: a, updateColumnChecked: u, searchInputRef: s } = tl(), { nextZIndex: c } = Kt(), l = c();
4155
- return (i, r) => {
4155
+ const { keywords: e, checkedColumnsMap: o, search: n, searchResult: a, updateColumnChecked: u, searchInputRef: s } = tl(), { nextZIndex: r } = Kt(), l = r();
4156
+ return (c, i) => {
4156
4157
  const m = B("ZEmpty"), D = B("el-checkbox"), p = B("el-col"), h = B("el-row"), C = ee("ellipsis");
4157
4158
  return f(), _("div", ol, [
4158
4159
  x("div", nl, [
@@ -4160,7 +4161,7 @@ const yn = Symbol(
4160
4161
  ref_key: "searchInputRef",
4161
4162
  ref: s,
4162
4163
  modelValue: d(e),
4163
- "onUpdate:modelValue": r[0] || (r[0] = (A) => _e(e) ? e.value = A : null),
4164
+ "onUpdate:modelValue": i[0] || (i[0] = (A) => _e(e) ? e.value = A : null),
4164
4165
  clearable: "",
4165
4166
  placeholder: "可搜索列名称",
4166
4167
  onInput: d(n)
@@ -4223,16 +4224,16 @@ const cl = /* @__PURE__ */ M({
4223
4224
  const {
4224
4225
  groupName: u,
4225
4226
  anchorId: s
4226
- } = Ne(n), c = e.columns.filter((D) => D.prop && Xs(D) === u), l = N(() => new Map(e.activeGroupSelectedColumns.map((D) => [D.prop, D]))), i = N(() => {
4227
- const D = c.filter((p) => l.value.has(p.prop)).length;
4228
- return D > 0 && D < c.length;
4229
- }), r = N({
4227
+ } = Ne(n), r = e.columns.filter((D) => D.prop && Xs(D) === u), l = N(() => new Map(e.activeGroupSelectedColumns.map((D) => [D.prop, D]))), c = N(() => {
4228
+ const D = r.filter((p) => l.value.has(p.prop)).length;
4229
+ return D > 0 && D < r.length;
4230
+ }), i = N({
4230
4231
  get() {
4231
- return c.every((D) => l.value.has(D.prop));
4232
+ return r.every((D) => l.value.has(D.prop));
4232
4233
  },
4233
4234
  set(D) {
4234
- const p = new Map(c.map((h) => [h.prop, h]));
4235
- e.activeGroup && (i.value ? e.activeGroup.columns.forEach((h) => {
4235
+ const p = new Map(r.map((h) => [h.prop, h]));
4236
+ e.activeGroup && (c.value ? e.activeGroup.columns.forEach((h) => {
4236
4237
  p.has(h.prop) && !h.checked && !h.readonly && e.activeGroup?.updateColumnChecked(h.prop, !0);
4237
4238
  }) : e.activeGroup.columns.forEach((h) => {
4238
4239
  p.has(h.prop) && !h.readonly && h.checked !== D && e.activeGroup?.updateColumnChecked(h.prop, D);
@@ -4247,9 +4248,9 @@ const cl = /* @__PURE__ */ M({
4247
4248
  id: s,
4248
4249
  class: "custom-column-group-content__group-item-title"
4249
4250
  }, [g(B("el-checkbox"), {
4250
- indeterminate: i.value,
4251
- modelValue: r.value,
4252
- "onUpdate:modelValue": (D) => r.value = D
4251
+ indeterminate: c.value,
4252
+ modelValue: i.value,
4253
+ "onUpdate:modelValue": (D) => i.value = D
4253
4254
  }, {
4254
4255
  default: () => [J(g("div", {
4255
4256
  class: "select-item__label"
@@ -4257,7 +4258,7 @@ const cl = /* @__PURE__ */ M({
4257
4258
  })]), g(B("el-row"), {
4258
4259
  gutter: 16,
4259
4260
  class: "custom-column-group-content__group-item-columns"
4260
- }, il(a = c.map((D) => g(B("el-col"), {
4261
+ }, il(a = r.map((D) => g(B("el-col"), {
4261
4262
  key: D.prop,
4262
4263
  span: 8
4263
4264
  }, {
@@ -4300,33 +4301,33 @@ const cl = /* @__PURE__ */ M({
4300
4301
  zTableCustomBuilder: e
4301
4302
  } = ze(), o = N({
4302
4303
  get() {
4303
- return Me(e.activeGroupSelectedColumns.filter((i) => !i.fixed), "index");
4304
+ return Me(e.activeGroupSelectedColumns.filter((c) => !c.fixed), "index");
4304
4305
  },
4305
- set(i) {
4306
- e.updateActiveGroupColumnSort(i);
4306
+ set(c) {
4307
+ e.updateActiveGroupColumnSort(c);
4307
4308
  }
4308
4309
  }), n = N({
4309
4310
  get() {
4310
- return Me(e.activeGroupSelectedColumns.filter((i) => i.fixed), "index");
4311
+ return Me(e.activeGroupSelectedColumns.filter((c) => c.fixed), "index");
4311
4312
  },
4312
- set(i) {
4313
- e.updateActiveGroupColumnSort(i);
4313
+ set(c) {
4314
+ e.updateActiveGroupColumnSort(c);
4314
4315
  }
4315
- }), a = N(() => e.activeGroupSelectedColumns.filter((i) => i.fixed).length < _o), u = (i) => e.columns.find((r) => r.prop === i.prop)?.label, s = (i, r) => {
4316
- const m = e.activeGroupSelectedColumns.find((D) => D.prop === i.prop);
4317
- m && (m.fixed = r, m.index = e.activeGroup?.getNextIndex || m.index);
4318
- }, c = (i) => {
4319
- if (e.activeGroup?.updateColumnChecked(i.prop, !1), i.fixed) {
4320
- const r = e.columns.find((m) => m.prop === i.prop);
4321
- r && (i.fixed = r.fixed);
4316
+ }), a = N(() => e.activeGroupSelectedColumns.filter((c) => c.fixed).length < _o), u = (c) => e.columns.find((i) => i.prop === c.prop)?.label, s = (c, i) => {
4317
+ const m = e.activeGroupSelectedColumns.find((D) => D.prop === c.prop);
4318
+ m && (m.fixed = i, m.index = e.activeGroup?.getNextIndex || m.index);
4319
+ }, r = (c) => {
4320
+ if (e.activeGroup?.updateColumnChecked(c.prop, !1), c.fixed) {
4321
+ const i = e.columns.find((m) => m.prop === c.prop);
4322
+ i && (c.fixed = i.fixed);
4322
4323
  }
4323
- }, l = (i) => {
4324
+ }, l = (c) => {
4324
4325
  const {
4325
- column: r,
4326
+ column: i,
4326
4327
  fixed: m,
4327
4328
  className: D,
4328
4329
  isFixed: p
4329
- } = Ne(i), h = a.value || !m;
4330
+ } = Ne(c), h = a.value || !m;
4330
4331
  return g("div", {
4331
4332
  class: `custom-column-group-selected__column-item ${D}`
4332
4333
  }, [g("img", {
@@ -4334,26 +4335,26 @@ const cl = /* @__PURE__ */ M({
4334
4335
  alt: "..."
4335
4336
  }, null), J(g("span", {
4336
4337
  class: "select-item__label"
4337
- }, [u(r)]), [[ee("ellipsis")]]), g("div", {
4338
+ }, [u(i)]), [[ee("ellipsis")]]), g("div", {
4338
4339
  class: "select-item__icon"
4339
4340
  }, [g("img", {
4340
4341
  class: h ? "" : "not-lock",
4341
4342
  src: p ? _n : pl,
4342
4343
  alt: "锁",
4343
- onClick: () => h && s(r, m)
4344
- }, null), r.readonly ? g(B("el-icon"), null, null) : g(B("el-icon"), {
4345
- onClick: () => c(r)
4344
+ onClick: () => h && s(i, m)
4345
+ }, null), i.readonly ? g(B("el-icon"), null, null) : g(B("el-icon"), {
4346
+ onClick: () => r(i)
4346
4347
  }, {
4347
4348
  default: () => [g(Yt, null, null)]
4348
4349
  })])]);
4349
4350
  };
4350
- return (i, r) => (f(), _("div", ml, [x("div", Dl, [U(" 已选 " + j(d(e).activeGroupSelectedColumns.length) + " 个 ", 1), x("div", {
4351
+ return (c, i) => (f(), _("div", ml, [x("div", Dl, [U(" 已选 " + j(d(e).activeGroupSelectedColumns.length) + " 个 ", 1), x("div", {
4351
4352
  class: "reset-btn",
4352
- onClick: r[0] || (r[0] = //@ts-ignore
4353
+ onClick: i[0] || (i[0] = //@ts-ignore
4353
4354
  (...m) => d(e).resetActiveGroupColumnsStatus && d(e).resetActiveGroupColumnsStatus(...m))
4354
4355
  }, "重置")]), x("div", fl, [x("div", gl, [g(d(Pe), {
4355
4356
  modelValue: n.value,
4356
- "onUpdate:modelValue": r[1] || (r[1] = (m) => n.value = m),
4357
+ "onUpdate:modelValue": i[1] || (i[1] = (m) => n.value = m),
4357
4358
  animation: 150,
4358
4359
  draggable: ".custom-column-group-selected__fixed-column-item"
4359
4360
  }, {
@@ -4366,7 +4367,7 @@ const cl = /* @__PURE__ */ M({
4366
4367
  _: 1
4367
4368
  }, 8, ["modelValue"])]), x("div", hl, " 最多可横向锁定" + j(d(_o)) + "列 ", 1), x("div", Cl, [g(d(Pe), {
4368
4369
  modelValue: o.value,
4369
- "onUpdate:modelValue": r[2] || (r[2] = (m) => o.value = m),
4370
+ "onUpdate:modelValue": i[2] || (i[2] = (m) => o.value = m),
4370
4371
  animation: 150,
4371
4372
  "ghost-class": "ghost",
4372
4373
  draggable: ".custom-column-group-selected__un-fixed-column-item"
@@ -4383,26 +4384,26 @@ const cl = /* @__PURE__ */ M({
4383
4384
  }), Al = /* @__PURE__ */ Z(vl, [["__scopeId", "data-v-1c0fabd5"]]), En = (t) => {
4384
4385
  const e = N(() => d(t)), o = G(e.value?.[0]?.anchorId || "");
4385
4386
  let n = !1;
4386
- const a = async (c) => {
4387
- o.value = c;
4388
- const l = document.getElementById(c);
4387
+ const a = async (r) => {
4388
+ o.value = r;
4389
+ const l = document.getElementById(r);
4389
4390
  l && (n = !0, await Y(), l.scrollIntoView({ block: "start", behavior: "smooth" }));
4390
4391
  };
4391
4392
  let u;
4392
4393
  return {
4393
4394
  activeAnchorId: o,
4394
4395
  updateActiveAnchorIdByClick: a,
4395
- handleContentScroll: (c) => {
4396
+ handleContentScroll: (r) => {
4396
4397
  if (n) {
4397
4398
  u && clearTimeout(u), u = setTimeout(() => {
4398
4399
  n = !1;
4399
4400
  }, 100);
4400
4401
  return;
4401
4402
  }
4402
- const l = c.target;
4403
+ const l = r.target;
4403
4404
  if (!l) return;
4404
- const i = l.getBoundingClientRect();
4405
- let r = "", m = Number.POSITIVE_INFINITY;
4405
+ const c = l.getBoundingClientRect();
4406
+ let i = "", m = Number.POSITIVE_INFINITY;
4406
4407
  if (l.scrollTop + l.clientHeight >= l.scrollHeight - 1) {
4407
4408
  const D = e.value.at(-1)?.anchorId;
4408
4409
  D && o.value !== D && (o.value = D);
@@ -4411,9 +4412,9 @@ const cl = /* @__PURE__ */ M({
4411
4412
  e.value.forEach(({ anchorId: D }) => {
4412
4413
  const p = document.getElementById(D);
4413
4414
  if (!p) return;
4414
- const C = p.getBoundingClientRect().top - i.top;
4415
- C >= 0 && C < m && (m = C, r = D);
4416
- }), o.value = r;
4415
+ const C = p.getBoundingClientRect().top - c.top;
4416
+ C >= 0 && C < m && (m = C, i = D);
4417
+ }), o.value = i;
4417
4418
  }
4418
4419
  };
4419
4420
  }, Fl = { class: "custom-column-group-body__container" }, bl = { class: "custom-column-group-body__left" }, yl = { class: "custom-column-group-body__left-bottom" }, _l = { class: "custom-column-group-body__anchor" }, El = ["onClick"], Bl = { class: "custom-column-group-body__right" }, wl = /* @__PURE__ */ M({
@@ -4422,7 +4423,7 @@ const cl = /* @__PURE__ */ M({
4422
4423
  setup(t) {
4423
4424
  const { zTableCustomBuilder: e } = ze(), { activeAnchorId: o, updateActiveAnchorIdByClick: n, handleContentScroll: a } = En(e.anchors);
4424
4425
  return (u, s) => {
4425
- const c = ee("ellipsis");
4426
+ const r = ee("ellipsis");
4426
4427
  return f(), _("div", Fl, [
4427
4428
  x("div", bl, [
4428
4429
  s[1] || (s[1] = x("div", { class: "custom-column__title" }, "自定义列", -1)),
@@ -4436,11 +4437,11 @@ const cl = /* @__PURE__ */ M({
4436
4437
  "is-active": l.anchorId === d(o)
4437
4438
  }
4438
4439
  ]),
4439
- onClick: (i) => d(n)(l.anchorId)
4440
+ onClick: (c) => d(n)(l.anchorId)
4440
4441
  }, [
4441
4442
  U(j(l.anchorName), 1)
4442
4443
  ], 10, El)), [
4443
- [c]
4444
+ [r]
4444
4445
  ])), 128))
4445
4446
  ]),
4446
4447
  x("div", {
@@ -4474,7 +4475,7 @@ const cl = /* @__PURE__ */ M({
4474
4475
  setup(t) {
4475
4476
  const e = Ee(t, "modelValue"), { zTableCustomBuilder: o } = ze(), n = G(e.value), a = G(), u = () => {
4476
4477
  a.value?.hide();
4477
- }, s = G(), c = async () => {
4478
+ }, s = G(), r = async () => {
4478
4479
  await Y(), s.value?.focus();
4479
4480
  }, l = () => {
4480
4481
  if (!n.value)
@@ -4483,7 +4484,7 @@ const cl = /* @__PURE__ */ M({
4483
4484
  return ye("名称不能重复");
4484
4485
  o.updateGroupName(n.value, t.id), u();
4485
4486
  };
4486
- return (i, r) => {
4487
+ return (c, i) => {
4487
4488
  const m = B("el-icon"), D = B("el-input"), p = B("el-button");
4488
4489
  return f(), _(H, null, [
4489
4490
  g(d(ma), {
@@ -4492,7 +4493,7 @@ const cl = /* @__PURE__ */ M({
4492
4493
  width: "240px",
4493
4494
  "popper-class": "z-table-custom-column-group-item__popover",
4494
4495
  trigger: "click",
4495
- onShow: c
4496
+ onShow: r
4496
4497
  }, {
4497
4498
  reference: y(() => [
4498
4499
  g(m, null, {
@@ -4507,7 +4508,7 @@ const cl = /* @__PURE__ */ M({
4507
4508
  ref_key: "inputRef",
4508
4509
  ref: s,
4509
4510
  modelValue: n.value,
4510
- "onUpdate:modelValue": r[0] || (r[0] = (h) => n.value = h),
4511
+ "onUpdate:modelValue": i[0] || (i[0] = (h) => n.value = h),
4511
4512
  placeholder: "请输入分组名称",
4512
4513
  maxlength: "8",
4513
4514
  "show-word-limit": "",
@@ -4515,7 +4516,7 @@ const cl = /* @__PURE__ */ M({
4515
4516
  }, null, 8, ["modelValue"]),
4516
4517
  x("div", Tl, [
4517
4518
  g(p, { onClick: u }, {
4518
- default: y(() => [...r[2] || (r[2] = [
4519
+ default: y(() => [...i[2] || (i[2] = [
4519
4520
  U("取消", -1)
4520
4521
  ])]),
4521
4522
  _: 1
@@ -4524,7 +4525,7 @@ const cl = /* @__PURE__ */ M({
4524
4525
  type: "primary",
4525
4526
  onClick: l
4526
4527
  }, {
4527
- default: y(() => [...r[3] || (r[3] = [
4528
+ default: y(() => [...i[3] || (i[3] = [
4528
4529
  U("确认", -1)
4529
4530
  ])]),
4530
4531
  _: 1
@@ -4535,7 +4536,7 @@ const cl = /* @__PURE__ */ M({
4535
4536
  }, 512),
4536
4537
  g(m, {
4537
4538
  class: "group-item__delete-icon",
4538
- onClick: r[1] || (r[1] = de((h) => d(o).deleteGroup(i.id), ["stop"]))
4539
+ onClick: i[1] || (i[1] = de((h) => d(o).deleteGroup(c.id), ["stop"]))
4539
4540
  }, {
4540
4541
  default: y(() => [
4541
4542
  g(d(rt))
@@ -4645,29 +4646,29 @@ const Io = (t) => {
4645
4646
  at(() => {
4646
4647
  o.value.length ? At.value.set(e, o.value) : At.value.delete(e);
4647
4648
  });
4648
- const { mount: n } = Pl(), a = ga(), u = (l, i) => {
4649
+ const { mount: n } = Pl(), a = ga(), u = (l, c) => {
4649
4650
  if (l) {
4650
- const r = o.value.findIndex((m) => m.id === l);
4651
- if (r > -1)
4652
- if (i)
4653
- o.value[r].cleanup(), o.value.splice(r, 1);
4651
+ const i = o.value.findIndex((m) => m.id === l);
4652
+ if (i > -1)
4653
+ if (c)
4654
+ o.value[i].cleanup(), o.value.splice(i, 1);
4654
4655
  else {
4655
- for (let m = r; m < o.value.length; m++)
4656
+ for (let m = i; m < o.value.length; m++)
4656
4657
  o.value[m].cleanup();
4657
- o.value.splice(r);
4658
+ o.value.splice(i);
4658
4659
  }
4659
4660
  } else
4660
- o.value.forEach((r) => {
4661
- r.cleanup();
4661
+ o.value.forEach((i) => {
4662
+ i.cleanup();
4662
4663
  }), o.value = [];
4663
- }, s = async (l, i, r, m) => {
4664
+ }, s = async (l, c, i, m) => {
4664
4665
  const D = Va(l) ? ta({
4665
4666
  loader: l,
4666
4667
  delay: 0
4667
4668
  // 立即加载
4668
4669
  }) : l;
4669
4670
  await Y();
4670
- const p = r ?? ko(), h = document.createElement("div");
4671
+ const p = i ?? ko(), h = document.createElement("div");
4671
4672
  return new Promise((C, A) => {
4672
4673
  const F = m?.notCloseBeforeRouteChange ? null : _t(
4673
4674
  () => a.fullPath,
@@ -4676,7 +4677,7 @@ const Io = (t) => {
4676
4677
  }
4677
4678
  ), { unmount: v } = n(
4678
4679
  Le(D, {
4679
- ...i,
4680
+ ...c,
4680
4681
  modelValue: !0,
4681
4682
  "onUpdate:modelValue": (b) => {
4682
4683
  b || Y(() => {
@@ -4709,7 +4710,7 @@ const Io = (t) => {
4709
4710
  return {
4710
4711
  openDialog: s,
4711
4712
  closeDialog: u,
4712
- openDialogIgnoreRouteChange: (l, i, r, m) => s(l, i, r, { ...m, notCloseBeforeRouteChange: !0 })
4713
+ openDialogIgnoreRouteChange: (l, c, i, m) => s(l, c, i, { ...m, notCloseBeforeRouteChange: !0 })
4713
4714
  };
4714
4715
  }, Ll = /* @__PURE__ */ M({
4715
4716
  name: "ZTableCustomColumnsDialog",
@@ -4724,9 +4725,9 @@ const Io = (t) => {
4724
4725
  s(async () => {
4725
4726
  await n.value?.init(t.activeId, t.columnConfig);
4726
4727
  });
4727
- const [c, l] = $e(), i = () => {
4728
+ const [r, l] = $e(), c = () => {
4728
4729
  o(tt.CANCEL);
4729
- }, r = () => {
4730
+ }, i = () => {
4730
4731
  l(async () => {
4731
4732
  if (n.value?.validate()) {
4732
4733
  const m = await n.value?.build();
@@ -4751,8 +4752,8 @@ const Io = (t) => {
4751
4752
  }, {
4752
4753
  footer: y(() => [
4753
4754
  g(p, {
4754
- loading: d(u) || d(c),
4755
- onClick: i
4755
+ loading: d(u) || d(r),
4756
+ onClick: c
4756
4757
  }, {
4757
4758
  default: y(() => [...D[1] || (D[1] = [
4758
4759
  U("取消", -1)
@@ -4760,9 +4761,9 @@ const Io = (t) => {
4760
4761
  _: 1
4761
4762
  }, 8, ["loading"]),
4762
4763
  g(p, {
4763
- loading: d(u) || d(c),
4764
+ loading: d(u) || d(r),
4764
4765
  type: "primary",
4765
- onClick: r
4766
+ onClick: i
4766
4767
  }, {
4767
4768
  default: y(() => [...D[2] || (D[2] = [
4768
4769
  U("确定", -1)
@@ -4780,9 +4781,9 @@ const Io = (t) => {
4780
4781
  };
4781
4782
  }
4782
4783
  }), Ol = (t) => {
4783
- const e = G([]), o = async (i) => {
4784
- e.value.forEach((r) => {
4785
- r.id === i ? r.active = !0 : Reflect.deleteProperty(r, "active");
4784
+ const e = G([]), o = async (c) => {
4785
+ e.value.forEach((i) => {
4786
+ i.id === c ? i.active = !0 : Reflect.deleteProperty(i, "active");
4786
4787
  });
4787
4788
  try {
4788
4789
  await ce.saveViewConfig({
@@ -4790,40 +4791,40 @@ const Io = (t) => {
4790
4791
  type: 2,
4791
4792
  config: JSON.stringify(e.value)
4792
4793
  });
4793
- } catch (r) {
4794
- console.log(r);
4794
+ } catch (i) {
4795
+ console.log(i);
4795
4796
  }
4796
4797
  }, n = async () => {
4797
4798
  if (t.columnConfig?.pageId) {
4798
- const i = await ce.loadViewConfig({ pageId: t.columnConfig.pageId, type: 2 });
4799
- if (i?.length) {
4800
- const [{ config: r }] = i;
4801
- e.value = r ? JSON.parse(r) : [];
4799
+ const c = await ce.loadViewConfig({ pageId: t.columnConfig.pageId, type: 2 });
4800
+ if (c?.length) {
4801
+ const [{ config: i }] = c;
4802
+ e.value = i ? JSON.parse(i) : [];
4802
4803
  }
4803
4804
  }
4804
- }, a = (i) => ({
4805
- groupName: i && e.value.find((m) => m.id === i)?.groupName || "",
4805
+ }, a = (c) => ({
4806
+ groupName: c && e.value.find((m) => m.id === c)?.groupName || "",
4806
4807
  groupData: js(t.columns)
4807
- }), u = (i) => Ks(t.columns, i);
4808
+ }), u = (c) => Ks(t.columns, c);
4808
4809
  return {
4809
4810
  initGroupData: n,
4810
4811
  getGroupedColumnInfo: a,
4811
- getCheckedColumnsById: (i) => {
4812
- if (i) {
4813
- const r = e.value.find((m) => m.id === i)?.columns;
4814
- if (r)
4815
- return u(r);
4812
+ getCheckedColumnsById: (c) => {
4813
+ if (c) {
4814
+ const i = e.value.find((m) => m.id === c)?.columns;
4815
+ if (i)
4816
+ return u(i);
4816
4817
  }
4817
- return t.columns.filter((r) => r.prop).map(
4818
- (r) => ({
4819
- prop: r.prop,
4820
- checked: !!(r.readonly || r.defaultChecked),
4821
- fixed: Ge(r.fixed)
4818
+ return t.columns.filter((i) => i.prop).map(
4819
+ (i) => ({
4820
+ prop: i.prop,
4821
+ checked: !!(i.readonly || i.defaultChecked),
4822
+ fixed: Ge(i.fixed)
4822
4823
  })
4823
4824
  );
4824
4825
  },
4825
- saveConfigColumns: async (i, r, m) => {
4826
- const D = new Map(i.map((C, A) => [C.prop, { ...C, index: A }])), p = t.columns.filter((C) => C.prop && C.label), h = L.sortBy(p, (C) => D.get(C.prop)?.index ?? -1).map(
4826
+ saveConfigColumns: async (c, i, m) => {
4827
+ const D = new Map(c.map((C, A) => [C.prop, { ...C, index: A }])), p = t.columns.filter((C) => C.prop && C.label), h = L.sortBy(p, (C) => D.get(C.prop)?.index ?? -1).map(
4827
4828
  (C) => ({
4828
4829
  prop: C.prop,
4829
4830
  checked: D.has(C.prop),
@@ -4831,14 +4832,14 @@ const Io = (t) => {
4831
4832
  })
4832
4833
  );
4833
4834
  if (m) {
4834
- const { id: C, groupName: A } = r, F = e.value.find((v) => v.id === C);
4835
- F ? (F.columns = h, F.groupName = A) : e.value.push({ ...r, columns: h }), await o(C);
4835
+ const { id: C, groupName: A } = i, F = e.value.find((v) => v.id === C);
4836
+ F ? (F.columns = h, F.groupName = A) : e.value.push({ ...i, columns: h }), await o(C);
4836
4837
  }
4837
4838
  return u(h);
4838
4839
  },
4839
- deleteGroupByGroupId: (i) => {
4840
- const r = e.value.findIndex((m) => m.id === i);
4841
- r > -1 && e.value.splice(r, 1), o(i);
4840
+ deleteGroupByGroupId: (c) => {
4841
+ const i = e.value.findIndex((m) => m.id === c);
4842
+ i > -1 && e.value.splice(i, 1), o(c);
4842
4843
  },
4843
4844
  columnGroups: e,
4844
4845
  saveViewConfig: o
@@ -4850,21 +4851,21 @@ const Io = (t) => {
4850
4851
  deleteGroupByGroupId: a,
4851
4852
  columnGroups: u,
4852
4853
  saveViewConfig: s
4853
- } = Ol(t), { openDialog: c } = Bn(), l = G(!0), i = G(t.columnConfig?.groupId ?? Fe), r = G([]), m = (v) => {
4854
+ } = Ol(t), { openDialog: r } = Bn(), l = G(!0), c = G(t.columnConfig?.groupId ?? Fe), i = G([]), m = (v) => {
4854
4855
  const b = new Map(v.map((k, S) => [k.prop, { ...k, index: S }])), w = L.sortBy(
4855
4856
  t.columns.filter((k) => b.get(k.prop)?.checked || !k.prop),
4856
4857
  (k) => b.get(k.prop)?.index ?? -1
4857
4858
  );
4858
- r.value = w.map(
4859
+ i.value = w.map(
4859
4860
  (k) => ({
4860
4861
  ...k,
4861
4862
  fixed: k.prop ? b.get(k.prop)?.fixed : k.fixed
4862
4863
  })
4863
4864
  );
4864
4865
  }, D = (v, b, w) => {
4865
- i.value = v, m(b ?? n(v)), !w && s(v);
4866
+ c.value = v, m(b ?? n(v)), !w && s(v);
4866
4867
  }, p = (v) => {
4867
- c(Ll, {
4868
+ r(Ll, {
4868
4869
  activeId: v,
4869
4870
  columnConfig: {
4870
4871
  // FIXME:目前内部逻辑有些地方可能会涉及到因为prop为空的问题,所以暂时在这屏蔽掉
@@ -4876,7 +4877,7 @@ const Io = (t) => {
4876
4877
  }).catch(() => {
4877
4878
  });
4878
4879
  }, h = () => {
4879
- r.value = t.columns.filter(({ type: v, defaultChecked: b, readonly: w, prop: k }) => w || v && Reflect.has(ft, v) || !k ? !0 : !!b);
4880
+ i.value = t.columns.filter(({ type: v, defaultChecked: b, readonly: w, prop: k }) => w || v && Reflect.has(ft, v) || !k ? !0 : !!b);
4880
4881
  };
4881
4882
  (async () => {
4882
4883
  if (t.columnConfig?.pageId)
@@ -4903,21 +4904,21 @@ const Io = (t) => {
4903
4904
  const A = (v) => {
4904
4905
  p(v);
4905
4906
  }, F = async (v) => {
4906
- await a(v), v === i.value && D(Fe);
4907
+ await a(v), v === c.value && D(Fe);
4907
4908
  };
4908
4909
  return _t(
4909
4910
  () => t.columns,
4910
4911
  () => {
4911
- t.columnConfig?.pageId ? m(n(i.value)) : h();
4912
+ t.columnConfig?.pageId ? m(n(c.value)) : h();
4912
4913
  },
4913
4914
  {
4914
4915
  deep: !0,
4915
4916
  flush: "post"
4916
4917
  }
4917
4918
  ), {
4918
- configColumns: r,
4919
+ configColumns: i,
4919
4920
  loadingConfigColumns: l,
4920
- groupId: i,
4921
+ groupId: c,
4921
4922
  columnGroups: u,
4922
4923
  openConfigColumnDialog: p,
4923
4924
  changeGroupId: D,
@@ -4931,15 +4932,15 @@ const Io = (t) => {
4931
4932
  loadingConfigColumns: a,
4932
4933
  columnGroups: u,
4933
4934
  changeGroupId: s,
4934
- openConfigColumnDialog: c,
4935
+ openConfigColumnDialog: r,
4935
4936
  editGroupByGroupId: l,
4936
- deleteGroupByGroupId: i
4937
- } = zl(t, e), r = G(), m = G(), D = G({
4937
+ deleteGroupByGroupId: c
4938
+ } = zl(t, e), i = G(), m = G(), D = G({
4938
4939
  current: 1,
4939
4940
  size: t.paginationProps?.pageSize || Eo.pageSize,
4940
4941
  total: 0
4941
4942
  }), p = N(() => ({ ...Eo, ...t.paginationProps })), h = G(""), C = () => {
4942
- const V = r.value?.getBoundingClientRect();
4943
+ const V = i.value?.getBoundingClientRect();
4943
4944
  h.value = `${V?.width}px`;
4944
4945
  }, A = new ResizeObserver(() => requestAnimationFrame(C)), F = G([]), v = N(() => {
4945
4946
  const V = L.omit(t, [
@@ -4987,11 +4988,11 @@ const Io = (t) => {
4987
4988
  E.value++;
4988
4989
  };
4989
4990
  return st(() => {
4990
- r.value && A.observe(r.value);
4991
+ i.value && A.observe(i.value);
4991
4992
  }), nt(() => {
4992
4993
  A?.disconnect();
4993
4994
  }), {
4994
- baseTableContainerRef: r,
4995
+ baseTableContainerRef: i,
4995
4996
  baseTableRef: m,
4996
4997
  pagination: D,
4997
4998
  getPaginationProps: p,
@@ -5009,10 +5010,10 @@ const Io = (t) => {
5009
5010
  columnGroups: u,
5010
5011
  changeGroupId: s,
5011
5012
  loadData: T,
5012
- openConfigColumnDialog: c,
5013
+ openConfigColumnDialog: r,
5013
5014
  resetColumnsWidth: O,
5014
5015
  editGroupByGroupId: l,
5015
- deleteGroupByGroupId: i
5016
+ deleteGroupByGroupId: c
5016
5017
  };
5017
5018
  }, wn = [
5018
5019
  "select",
@@ -5053,11 +5054,11 @@ const Io = (t) => {
5053
5054
  return;
5054
5055
  }
5055
5056
  const u = () => Be(n) ? d(n()) : d(n), s = () => {
5056
- t = new ResizeObserver(([i]) => a(i));
5057
+ t = new ResizeObserver(([c]) => a(c));
5057
5058
  const l = u();
5058
5059
  l && t.observe(l);
5059
- }, { stop: c } = ut(() => {
5060
- u() && (s(), c?.());
5060
+ }, { stop: r } = ut(() => {
5061
+ u() && (s(), r?.());
5061
5062
  });
5062
5063
  }, o = () => {
5063
5064
  t?.disconnect();
@@ -5076,11 +5077,11 @@ const Io = (t) => {
5076
5077
  },
5077
5078
  emits: ["find", "hidden"],
5078
5079
  setup(t, { emit: e }) {
5079
- const o = e, n = G(0), a = G(""), u = G(!1), s = G(), { on: c } = Jo(), l = (C) => {
5080
+ const o = e, n = G(0), a = G(""), u = G(!1), s = G(), { on: r } = Jo(), l = (C) => {
5080
5081
  n.value = C, o("find", a.value, C);
5081
- }, i = ua(() => {
5082
+ }, c = ua(() => {
5082
5083
  l(0);
5083
- }, 500), r = () => {
5084
+ }, 500), i = () => {
5084
5085
  const C = n.value > 0 ? n.value - 1 : t.count - 1;
5085
5086
  l(C);
5086
5087
  }, m = () => {
@@ -5092,7 +5093,7 @@ const Io = (t) => {
5092
5093
  u.value = !1, a.value = "", n.value = 0, o("hidden");
5093
5094
  }, h = N(() => t.count ? n.value + 1 : 0);
5094
5095
  return st(() => {
5095
- c("keydown", (C) => {
5096
+ r("keydown", (C) => {
5096
5097
  const A = C.target, F = s.value?.$el?.contains?.(A), { key: v, metaKey: b, ctrlKey: w, shiftKey: k } = C;
5097
5098
  switch (v) {
5098
5099
  // ctrl + shift + f
@@ -5104,7 +5105,7 @@ const Io = (t) => {
5104
5105
  p();
5105
5106
  break;
5106
5107
  case "ArrowUp":
5107
- F && C.preventDefault(), r();
5108
+ F && C.preventDefault(), i();
5108
5109
  break;
5109
5110
  case "ArrowDown":
5110
5111
  F && C.preventDefault(), m();
@@ -5121,7 +5122,7 @@ const Io = (t) => {
5121
5122
  modelValue: a.value,
5122
5123
  "onUpdate:modelValue": A[0] || (A[0] = (v) => a.value = v),
5123
5124
  placeholder: "请输入搜索关键字",
5124
- onInput: d(i),
5125
+ onInput: d(c),
5125
5126
  onKeydown: Bt(m, ["enter"])
5126
5127
  }, {
5127
5128
  append: y(() => [
@@ -5129,7 +5130,7 @@ const Io = (t) => {
5129
5130
  x("div", $l, [
5130
5131
  g(F, {
5131
5132
  class: te(C.count ? "is-active" : "is-disable"),
5132
- onClick: r
5133
+ onClick: i
5133
5134
  }, {
5134
5135
  default: y(() => [
5135
5136
  g(d(ia))
@@ -5161,54 +5162,54 @@ const Io = (t) => {
5161
5162
  }
5162
5163
  }), Sn = /* @__PURE__ */ Z(Wl, [["__scopeId", "data-v-fc1828f9"]]), Tn = (t) => {
5163
5164
  const e = G(0), o = () => {
5164
- const i = [], r = t.value?.$el?.querySelector(".el-table__inner-wrapper");
5165
- if (r) {
5166
- const m = r.querySelectorAll(".el-table__header-wrapper");
5165
+ const c = [], i = t.value?.$el?.querySelector(".el-table__inner-wrapper");
5166
+ if (i) {
5167
+ const m = i.querySelectorAll(".el-table__header-wrapper");
5167
5168
  if (m.length) {
5168
5169
  const p = Array.from(m).filter((h) => {
5169
5170
  const { display: C } = getComputedStyle(h);
5170
5171
  return C !== "none";
5171
5172
  }).pop()?.querySelectorAll(".el-table__cell");
5172
5173
  if (p?.length) {
5173
- const h = Array.from(p), [C] = h, A = h.find((E) => !E.classList.contains("el-table-fixed-column--left")), F = A?.getBoundingClientRect().left ?? 0, v = r.getBoundingClientRect().left;
5174
+ const h = Array.from(p), [C] = h, A = h.find((E) => !E.classList.contains("el-table-fixed-column--left")), F = A?.getBoundingClientRect().left ?? 0, v = i.getBoundingClientRect().left;
5174
5175
  let b = Math.abs(F - v);
5175
5176
  if (C !== A) {
5176
5177
  const E = h.findLastIndex((X) => X.classList.contains("el-table-fixed-column--left")), O = h[E], { left: V, width: z } = O.getBoundingClientRect();
5177
5178
  b = V + z - F;
5178
5179
  }
5179
- const { width: w } = t.value.$el.getBoundingClientRect(), k = r.querySelector(".el-scrollbar__thumb"), S = k ? k.getBoundingClientRect().width : 0, T = S ? S / 2 : 0;
5180
+ const { width: w } = t.value.$el.getBoundingClientRect(), k = i.querySelector(".el-scrollbar__thumb"), S = k ? k.getBoundingClientRect().width : 0, T = S ? S / 2 : 0;
5180
5181
  h.forEach((E) => {
5181
5182
  const { top: O, left: V } = E.getBoundingClientRect();
5182
- i.push({ element: E, rect: { top: O, left: V + b - w / 2 - T } });
5183
+ c.push({ element: E, rect: { top: O, left: V + b - w / 2 - T } });
5183
5184
  });
5184
5185
  }
5185
5186
  }
5186
5187
  }
5187
- return i;
5188
- }, n = (i, r) => i.toLowerCase().includes(r.toLowerCase()), a = [], u = () => {
5189
- a.forEach((i) => i()), e.value = 0, a.length = 0;
5190
- }, s = ({ element: i }) => {
5191
- i.classList.add("el-table__cell__search-result"), a.push(() => {
5192
- i.classList.remove("el-table__cell__search-result");
5188
+ return c;
5189
+ }, n = (c, i) => c.toLowerCase().includes(i.toLowerCase()), a = [], u = () => {
5190
+ a.forEach((c) => c()), e.value = 0, a.length = 0;
5191
+ }, s = ({ element: c }) => {
5192
+ c.classList.add("el-table__cell__search-result"), a.push(() => {
5193
+ c.classList.remove("el-table__cell__search-result");
5193
5194
  });
5194
- }, c = ({ rect: i }) => {
5195
- const { top: r, left: m } = i;
5196
- t.value.scrollTo(m, r);
5195
+ }, r = ({ rect: c }) => {
5196
+ const { top: i, left: m } = c;
5197
+ t.value.scrollTo(m, i);
5197
5198
  };
5198
5199
  return {
5199
5200
  count: e,
5200
- find: (i, r) => {
5201
- if (u(), i) {
5201
+ find: (c, i) => {
5202
+ if (u(), c) {
5202
5203
  const m = o();
5203
5204
  if (m?.length) {
5204
5205
  const D = m.filter(({ element: p }) => {
5205
5206
  const h = p.textContent;
5206
- return h ? n(h, i) : !1;
5207
+ return h ? n(h, c) : !1;
5207
5208
  });
5208
5209
  if (D.length) {
5209
5210
  D.forEach(s);
5210
- const p = D[r];
5211
- p && c(p), e.value = D.length;
5211
+ const p = D[i];
5212
+ p && r(p), e.value = D.length;
5212
5213
  }
5213
5214
  }
5214
5215
  }
@@ -5222,12 +5223,12 @@ const Io = (t) => {
5222
5223
  const o = [], n = (s) => {
5223
5224
  o.includes(s) || o.push(s);
5224
5225
  }, a = new IntersectionObserver(([s]) => {
5225
- let c = "top";
5226
+ let r = "top";
5226
5227
  if (!s.isIntersecting) {
5227
- const l = s.boundingClientRect, i = s.rootBounds, r = i ? i.top : 0, m = i ? i.bottom : window.innerHeight;
5228
- l.bottom <= r ? c = "top" : l.top >= m && (c = "bottom");
5228
+ const l = s.boundingClientRect, c = s.rootBounds, i = c ? c.top : 0, m = c ? c.bottom : window.innerHeight;
5229
+ l.bottom <= i ? r = "top" : l.top >= m && (r = "bottom");
5229
5230
  }
5230
- o.forEach((l) => l(s.isIntersecting, c));
5231
+ o.forEach((l) => l(s.isIntersecting, r));
5231
5232
  }, e);
5232
5233
  return a.observe(t), {
5233
5234
  onWatchVisible: n,
@@ -5317,7 +5318,7 @@ const Io = (t) => {
5317
5318
  }), A(), b?.();
5318
5319
  }
5319
5320
  };
5320
- }, c = (D, p, h, C) => {
5321
+ }, r = (D, p, h, C) => {
5321
5322
  const { update: A, reset: F } = s(D, h);
5322
5323
  p((v, b) => {
5323
5324
  !v && h && b === "top" ? A(C) : F();
@@ -5329,24 +5330,24 @@ const Io = (t) => {
5329
5330
  const { onWatchVisible: h, onStopWatchVisible: C } = Jl(D, { root: p }), { baseTableOperationElement: A, baseTableRef: F } = e;
5330
5331
  if (!A.value)
5331
5332
  return;
5332
- c(A.value, h, p);
5333
+ r(A.value, h, p);
5333
5334
  const v = or(d(F)?.$el), { top: b } = p.getBoundingClientRect(), { height: w } = A.value.getBoundingClientRect();
5334
5335
  v.forEach(
5335
- (k) => c(k, h, p, {
5336
+ (k) => r(k, h, p, {
5336
5337
  top: `${b + w}px`
5337
5338
  })
5338
5339
  ), n.push(C);
5339
- }, i = (D) => {
5340
+ }, c = (D) => {
5340
5341
  e = D ?? e;
5341
5342
  const { baseTableOperationElement: p } = e;
5342
5343
  p.value && l(tr(p.value, "base-table-watch-sticky__operation"));
5343
- }, r = () => {
5344
+ }, i = () => {
5344
5345
  n.forEach((D) => D()), n.length = 0;
5345
5346
  };
5346
- return wt(r), {
5347
- start: i,
5347
+ return wt(i), {
5348
+ start: c,
5348
5349
  reset: async () => {
5349
- r(), await Y(), i();
5350
+ i(), await Y(), c();
5350
5351
  }
5351
5352
  };
5352
5353
  }, nr = {
@@ -5452,12 +5453,12 @@ const Io = (t) => {
5452
5453
  "591cf24b": io.value,
5453
5454
  "4f27adb5": d(D)
5454
5455
  }));
5455
- const n = t, a = Ee(t, "selectList"), u = o, s = Et(), { baseTableEventMap: c } = Ul(u, (P, ...Q) => {
5456
+ const n = t, a = Ee(t, "selectList"), u = o, s = Et(), { baseTableEventMap: r } = Ul(u, (P, ...Q) => {
5456
5457
  P === "selection-change" && (a.value = Q[0]);
5457
5458
  }), {
5458
5459
  baseTableRef: l,
5459
- baseTableContainerRef: i,
5460
- pagination: r,
5460
+ baseTableContainerRef: c,
5461
+ pagination: i,
5461
5462
  getPaginationProps: m,
5462
5463
  paginationWidth: D,
5463
5464
  tableData: p,
@@ -5482,7 +5483,7 @@ const Io = (t) => {
5482
5483
  const fe = () => {
5483
5484
  Ue || (z(), u("paginationChange"));
5484
5485
  }, je = async (P = !0) => {
5485
- Ue = !0, P && Object.assign(r.value, {
5486
+ Ue = !0, P && Object.assign(i.value, {
5486
5487
  current: 1
5487
5488
  }), await Y(), await z(), u("refreshed"), await Y(), Ue = !1;
5488
5489
  }, so = G(), { start: Ln, reset: On } = In({
@@ -5497,7 +5498,7 @@ const Io = (t) => {
5497
5498
  } finally {
5498
5499
  Gt.value = !0;
5499
5500
  }
5500
- }, Hn = () => r.value, ro = N(() => L.omit(r.value, "total")), Un = at(() => {
5501
+ }, Hn = () => i.value, ro = N(() => L.omit(i.value, "total")), Un = at(() => {
5501
5502
  !b.value && Gt.value && (u("loaded"), n.stickyHeader && Y(Ln), Un());
5502
5503
  }), Zn = N(() => (P) => {
5503
5504
  const Q = n.enableDragProps;
@@ -5555,7 +5556,7 @@ const Io = (t) => {
5555
5556
  return f(), _(H, null, [
5556
5557
  x("div", {
5557
5558
  ref_key: "baseTableContainerRef",
5558
- ref: i,
5559
+ ref: c,
5559
5560
  class: te([
5560
5561
  "base-table__container z-table",
5561
5562
  {
@@ -5674,7 +5675,7 @@ const Io = (t) => {
5674
5675
  "header-cell-style": d(Zs),
5675
5676
  data: d(p),
5676
5677
  "show-overflow-tooltip": ""
5677
- }, me(d(c))), {
5678
+ }, me(d(r))), {
5678
5679
  empty: y(() => [
5679
5680
  ne(P.$slots, "empty", {}, () => [
5680
5681
  g(jo)
@@ -5724,11 +5725,11 @@ const Io = (t) => {
5724
5725
  })
5725
5726
  }, [
5726
5727
  g(co, K(d(m), {
5727
- "current-page": d(r).current,
5728
- "onUpdate:currentPage": Q[3] || (Q[3] = (oe) => d(r).current = oe),
5729
- "page-size": d(r).size,
5730
- "onUpdate:pageSize": Q[4] || (Q[4] = (oe) => d(r).size = oe),
5731
- total: d(r).total,
5728
+ "current-page": d(i).current,
5729
+ "onUpdate:currentPage": Q[3] || (Q[3] = (oe) => d(i).current = oe),
5730
+ "page-size": d(i).size,
5731
+ "onUpdate:pageSize": Q[4] || (Q[4] = (oe) => d(i).size = oe),
5732
+ total: d(i).total,
5732
5733
  onChange: fe
5733
5734
  }), null, 16, ["current-page", "page-size", "total"])
5734
5735
  ], 2)
@@ -5768,19 +5769,19 @@ const Io = (t) => {
5768
5769
  const u = t.showColumns;
5769
5770
  if (!u.length)
5770
5771
  return [];
5771
- const s = /* @__PURE__ */ new Map(), c = [], l = u.length;
5772
- for (let i = 0; i < l; ++i) {
5773
- const r = u[i], { parentProp: m } = r.props;
5772
+ const s = /* @__PURE__ */ new Map(), r = [], l = u.length;
5773
+ for (let c = 0; c < l; ++c) {
5774
+ const i = u[c], { parentProp: m } = i.props;
5774
5775
  if (m) {
5775
5776
  let D = s.get(m);
5776
- D || s.set(m, D = []), D.push(r);
5777
+ D || s.set(m, D = []), D.push(i);
5777
5778
  } else
5778
- c.push({ column: r, subColumns: [] });
5779
+ r.push({ column: i, subColumns: [] });
5779
5780
  }
5780
- return s.size && c.forEach((i) => {
5781
- const { column: r } = i, m = s.get(r.props.prop);
5782
- m && (i.subColumns = m);
5783
- }), c;
5781
+ return s.size && r.forEach((c) => {
5782
+ const { column: i } = c, m = s.get(i.props.prop);
5783
+ m && (c.subColumns = m);
5784
+ }), r;
5784
5785
  });
5785
5786
  return {
5786
5787
  elTableRef: e,
@@ -5812,18 +5813,18 @@ const Io = (t) => {
5812
5813
  }), {
5813
5814
  header: y(({
5814
5815
  column: s,
5815
- $index: c
5816
+ $index: r
5816
5817
  }) => [g(e, null, {
5817
5818
  default: y(() => [g(d(Zt), {
5818
5819
  column: o.column.props,
5819
5820
  "header-column": s,
5820
- index: c
5821
+ index: r
5821
5822
  }, null, 8, ["column", "header-column", "index"])]),
5822
5823
  _: 2
5823
5824
  }, 1024)]),
5824
5825
  default: y(({
5825
5826
  row: s,
5826
- $index: c
5827
+ $index: r
5827
5828
  }) => [o.children?.length ? (f(!0), _(H, {
5828
5829
  key: 0
5829
5830
  }, $(o.children, (l) => (f(), I(a, {
@@ -5837,7 +5838,7 @@ const Io = (t) => {
5837
5838
  row: s,
5838
5839
  data: {
5839
5840
  ...s,
5840
- $index: c,
5841
+ $index: r,
5841
5842
  $tableData: o.tableBuilder.data,
5842
5843
  $defaultSort: o.tableBuilder.elTableAttrs.defaultSort,
5843
5844
  $rowKey: o.tableBuilder.elTableAttrs.rowKey
@@ -5866,27 +5867,27 @@ const Io = (t) => {
5866
5867
  } = mr(t.tableBuilder), {
5867
5868
  count: u,
5868
5869
  find: s,
5869
- clear: c
5870
- } = Tn(n), l = () => Object.keys(t.slots).filter((r) => !["empty", "append", "_"].includes(r)), i = ({
5871
- name: r
5872
- }) => (ce.getZTableV2DefaultSlotRenderByName(r) ?? t.slots[r])?.();
5873
- return (r, m) => {
5870
+ clear: r
5871
+ } = Tn(n), l = () => Object.keys(t.slots).filter((i) => !["empty", "append", "_"].includes(i)), c = ({
5872
+ name: i
5873
+ }) => (ce.getZTableV2DefaultSlotRenderByName(i) ?? t.slots[i])?.();
5874
+ return (i, m) => {
5874
5875
  const D = B("el-table");
5875
5876
  return f(), _(H, null, [g(D, K({
5876
5877
  ref: d(e),
5877
5878
  class: ["render-el-table__table", "z-table-v2__table", {
5878
- "el-table__outside-border": r.tableBuilder.config.border,
5879
- "is-empty__table": !r.tableBuilder.data.length
5879
+ "el-table__outside-border": i.tableBuilder.config.border,
5880
+ "is-empty__table": !i.tableBuilder.data.length
5880
5881
  }]
5881
- }, r.tableBuilder.elTableAttrs, {
5882
- data: r.tableBuilder.data
5883
- }, me(r.tableBuilder.getTableRegisterEvents(r.emit)), {
5882
+ }, i.tableBuilder.elTableAttrs, {
5883
+ data: i.tableBuilder.data
5884
+ }, me(i.tableBuilder.getTableRegisterEvents(i.emit)), {
5884
5885
  onSelectionChange: d(o)
5885
5886
  }), Ye({
5886
- empty: y(() => [g(i, {
5887
+ empty: y(() => [g(c, {
5887
5888
  name: "empty"
5888
5889
  })]),
5889
- append: y(() => [g(i, {
5890
+ append: y(() => [g(c, {
5890
5891
  name: "append"
5891
5892
  })]),
5892
5893
  default: y(() => [(f(!0), _(H, null, $(d(a), ({
@@ -5895,19 +5896,19 @@ const Io = (t) => {
5895
5896
  }) => (f(), I(Dr, {
5896
5897
  key: p.prop,
5897
5898
  column: p,
5898
- "table-builder": r.tableBuilder,
5899
+ "table-builder": i.tableBuilder,
5899
5900
  count: d(u),
5900
5901
  children: h
5901
5902
  }, null, 8, ["column", "table-builder", "count", "children"]))), 128))]),
5902
5903
  _: 2
5903
5904
  }, [$(l(), (p) => ({
5904
5905
  name: p,
5905
- fn: y(() => [ne(r.$slots, p, {}, void 0, !0)])
5906
- }))]), 1040, ["class", "data", "onSelectionChange"]), r.tableBuilder.config.enableColumnSearch ? (f(), I(Sn, {
5906
+ fn: y(() => [ne(i.$slots, p, {}, void 0, !0)])
5907
+ }))]), 1040, ["class", "data", "onSelectionChange"]), i.tableBuilder.config.enableColumnSearch ? (f(), I(Sn, {
5907
5908
  key: 0,
5908
5909
  count: d(u),
5909
5910
  onFind: d(s),
5910
- onHidden: d(c)
5911
+ onHidden: d(r)
5911
5912
  }, null, 8, ["count", "onFind", "onHidden"])) : R("", !0)], 64);
5912
5913
  };
5913
5914
  }
@@ -5917,36 +5918,36 @@ const Io = (t) => {
5917
5918
  }, Cr = (t) => {
5918
5919
  const e = (s) => {
5919
5920
  const {
5920
- rowKey: c = "id"
5921
+ rowKey: r = "id"
5921
5922
  } = t.config;
5922
- return typeof c == "function" ? c(s) : Reflect.get(s, c);
5923
- }, o = (s, c) => {
5924
- const l = he(c.width) ?? he(s.width) ?? he(c.minWidth) ?? he(s.minWidth) ?? hr, i = he(c.minWidth) ?? he(s.minWidth), r = he(c.maxWidth) ?? he(s.maxWidth);
5923
+ return typeof r == "function" ? r(s) : Reflect.get(s, r);
5924
+ }, o = (s, r) => {
5925
+ const l = he(r.width) ?? he(s.width) ?? he(r.minWidth) ?? he(s.minWidth) ?? hr, c = he(r.minWidth) ?? he(s.minWidth), i = he(r.maxWidth) ?? he(s.maxWidth);
5925
5926
  let m = l;
5926
- return i && (m = Math.max(m, i)), r && (m = Math.min(m, r)), m;
5927
- }, n = (s, c, l) => {
5928
- const i = he(c.minWidth) ?? he(s.minWidth);
5929
- return i ? Math.max(i, l) : l;
5930
- }, a = (s, c, l) => {
5931
- t.updateSelectList(s), c === "select" ? t.triggerEvent("select", s, l) : t.triggerEvent("select-all", s), t.triggerEvent("selection-change", s);
5927
+ return c && (m = Math.max(m, c)), i && (m = Math.min(m, i)), m;
5928
+ }, n = (s, r, l) => {
5929
+ const c = he(r.minWidth) ?? he(s.minWidth);
5930
+ return c ? Math.max(c, l) : l;
5931
+ }, a = (s, r, l) => {
5932
+ t.updateSelectList(s), r === "select" ? t.triggerEvent("select", s, l) : t.triggerEvent("select-all", s), t.triggerEvent("selection-change", s);
5932
5933
  };
5933
5934
  return {
5934
5935
  columns: N(() => t.showColumns.map((s) => {
5935
5936
  const {
5936
- label: c,
5937
+ label: r,
5937
5938
  prop: l,
5938
- props: i
5939
+ props: c
5939
5940
  } = s, {
5940
- type: r,
5941
+ type: i,
5941
5942
  contentRender: m,
5942
5943
  _render: D,
5943
5944
  headerRender: p,
5944
5945
  renderHeader: h,
5945
5946
  showOverflowTooltip: C
5946
- } = i, A = m || D, F = p || h, v = Re(s.tableV2ColumnAttrs, ["title", "width", "cellRenderer", "headerCellRenderer", "dataKey"]), b = o(i, v), w = n(i, v, b);
5947
- return r === "selection" ? {
5947
+ } = c, A = m || D, F = p || h, v = Re(s.tableV2ColumnAttrs, ["title", "width", "cellRenderer", "headerCellRenderer", "dataKey"]), b = o(c, v), w = n(c, v, b);
5948
+ return i === "selection" ? {
5948
5949
  ...v,
5949
- title: c,
5950
+ title: r,
5950
5951
  dataKey: l,
5951
5952
  width: b,
5952
5953
  minWidth: w,
@@ -5972,9 +5973,9 @@ const Io = (t) => {
5972
5973
  }
5973
5974
  }, null);
5974
5975
  }
5975
- } : r === "index" ? {
5976
+ } : i === "index" ? {
5976
5977
  ...v,
5977
- title: c,
5978
+ title: r,
5978
5979
  dataKey: l,
5979
5980
  width: b,
5980
5981
  minWidth: w,
@@ -5991,7 +5992,7 @@ const Io = (t) => {
5991
5992
  }, null) : void 0
5992
5993
  } : {
5993
5994
  ...v,
5994
- title: c,
5995
+ title: r,
5995
5996
  dataKey: l,
5996
5997
  width: b,
5997
5998
  minWidth: w,
@@ -6032,10 +6033,10 @@ const Io = (t) => {
6032
6033
  () => o.value,
6033
6034
  () => {
6034
6035
  if (o.value) {
6035
- const { width: l, height: i } = o.value.getBoundingClientRect();
6036
+ const { width: l, height: c } = o.value.getBoundingClientRect();
6036
6037
  n.value = {
6037
6038
  width: l,
6038
- height: i
6039
+ height: c
6039
6040
  };
6040
6041
  }
6041
6042
  }
@@ -6074,7 +6075,7 @@ const Io = (t) => {
6074
6075
  fixed: t.tableBuilder.elVirtualTableAttrs.fixed ?? !0,
6075
6076
  scrollbarAlwaysOn: t.tableBuilder.elVirtualTableAttrs.scrollbarAlwaysOn ?? !0
6076
6077
  }));
6077
- return (s, c) => {
6078
+ return (s, r) => {
6078
6079
  const l = B("el-table-v2");
6079
6080
  return f(), _("div", {
6080
6081
  ref_key: "containerRef",
@@ -6131,10 +6132,10 @@ const Zt = (t) => {
6131
6132
  contentRender: a,
6132
6133
  _render: u,
6133
6134
  renderToOptions: s,
6134
- onClick: c,
6135
+ onClick: r,
6135
6136
  emptyClick: l,
6136
- emptyValue: i,
6137
- prop: r
6137
+ emptyValue: c,
6138
+ prop: i
6138
6139
  } = e, m = a || u;
6139
6140
  if (Be(m)) {
6140
6141
  const {
@@ -6148,10 +6149,10 @@ const Zt = (t) => {
6148
6149
  const w = m(Le, n ?? {}, Reflect.get(C, b) ?? {});
6149
6150
  return typeof w != "number" && (!w || w === Ut) ? Go : w;
6150
6151
  }
6151
- const D = i ?? Ut;
6152
- if (!r)
6152
+ const D = c ?? Ut;
6153
+ if (!i)
6153
6154
  return D;
6154
- const p = Reflect.get(n, r);
6155
+ const p = Reflect.get(n, i);
6155
6156
  if (s) {
6156
6157
  const C = s.find((F) => F.value === p), A = C?.label ?? D;
6157
6158
  if (C?._color || C?._status) {
@@ -6164,11 +6165,11 @@ const Zt = (t) => {
6164
6165
  }
6165
6166
  return A;
6166
6167
  }
6167
- const h = tn(p) || p == i;
6168
- if (c) {
6168
+ const h = tn(p) || p == c;
6169
+ if (r) {
6169
6170
  const C = g(ao, {
6170
6171
  key: p,
6171
- onClick: () => c?.(t.data)
6172
+ onClick: () => r?.(t.data)
6172
6173
  }, br(p) ? p : {
6173
6174
  default: () => [p]
6174
6175
  });
@@ -6207,12 +6208,12 @@ const Er = /* @__PURE__ */ M({
6207
6208
  const {
6208
6209
  groupName: a,
6209
6210
  anchorId: u
6210
- } = Ne(o), s = t.zTableV2CustomColumnBuilder.allCustomColumns.filter((m) => m.props.prop && t.zTableV2CustomColumnBuilder.getColumnDefaultClassifyName(m) === a), c = N(() => new Map(t.zTableV2CustomColumnBuilder.activeGroupSelectedColumns.map((m) => [m.prop, m]))), l = N(() => {
6211
- const m = s.filter((D) => c.value.has(D.props.prop)).length;
6211
+ } = Ne(o), s = t.zTableV2CustomColumnBuilder.allCustomColumns.filter((m) => m.props.prop && t.zTableV2CustomColumnBuilder.getColumnDefaultClassifyName(m) === a), r = N(() => new Map(t.zTableV2CustomColumnBuilder.activeGroupSelectedColumns.map((m) => [m.prop, m]))), l = N(() => {
6212
+ const m = s.filter((D) => r.value.has(D.props.prop)).length;
6212
6213
  return m > 0 && m < s.length;
6213
- }), i = N({
6214
+ }), c = N({
6214
6215
  get() {
6215
- return s.every((m) => c.value.has(m.props.prop));
6216
+ return s.every((m) => r.value.has(m.props.prop));
6216
6217
  },
6217
6218
  set(m) {
6218
6219
  const D = new Map(s.map((p) => [p.props.prop, p]));
@@ -6222,7 +6223,7 @@ const Er = /* @__PURE__ */ M({
6222
6223
  D.has(p.prop) && !p.readonly && p.checked !== m && t.zTableV2CustomColumnBuilder.activeGroup?.updateColumnChecked(p.prop, m);
6223
6224
  }));
6224
6225
  }
6225
- }), r = (m, D) => {
6226
+ }), i = (m, D) => {
6226
6227
  t.zTableV2CustomColumnBuilder.activeGroup?.updateColumnChecked(m.props.prop, D);
6227
6228
  };
6228
6229
  return g("div", {
@@ -6232,8 +6233,8 @@ const Er = /* @__PURE__ */ M({
6232
6233
  class: "custom-column-content__group-item-title"
6233
6234
  }, [g(B("el-checkbox"), {
6234
6235
  indeterminate: l.value,
6235
- modelValue: i.value,
6236
- "onUpdate:modelValue": (m) => i.value = m
6236
+ modelValue: c.value,
6237
+ "onUpdate:modelValue": (m) => c.value = m
6237
6238
  }, xo(a) ? a : {
6238
6239
  default: () => [a]
6239
6240
  })]), g(B("el-row"), {
@@ -6245,8 +6246,8 @@ const Er = /* @__PURE__ */ M({
6245
6246
  }, {
6246
6247
  default: () => [g(B("el-checkbox"), {
6247
6248
  disabled: m.props.readonly,
6248
- "model-value": c.value.has(m.props.prop),
6249
- onChange: (D) => r(m, D)
6249
+ "model-value": r.value.has(m.props.prop),
6250
+ onChange: (D) => i(m, D)
6250
6251
  }, {
6251
6252
  default: () => [m.props.label]
6252
6253
  })]
@@ -6291,18 +6292,18 @@ const Er = /* @__PURE__ */ M({
6291
6292
  set(l) {
6292
6293
  t.zTableV2CustomColumnBuilder.updateActiveGroupColumnSort(l);
6293
6294
  }
6294
- }), n = N(() => t.zTableV2CustomColumnBuilder.activeGroupSelectedColumns.filter((l) => l.fixed).length < 5), a = (l) => t.zTableV2CustomColumnBuilder.allColumns.find((i) => i.props.prop === l.prop)?.props?.label, u = (l, i) => {
6295
- const r = t.zTableV2CustomColumnBuilder.activeGroupSelectedColumns.find((m) => m.prop === l.prop);
6296
- r && (r.fixed = n.value ? i : r.fixed, r.fixed ? r.index = -1 : r.index = t.zTableV2CustomColumnBuilder.activeGroup?.getNextIndex || r.index);
6295
+ }), n = N(() => t.zTableV2CustomColumnBuilder.activeGroupSelectedColumns.filter((l) => l.fixed).length < 5), a = (l) => t.zTableV2CustomColumnBuilder.allColumns.find((c) => c.props.prop === l.prop)?.props?.label, u = (l, c) => {
6296
+ const i = t.zTableV2CustomColumnBuilder.activeGroupSelectedColumns.find((m) => m.prop === l.prop);
6297
+ i && (i.fixed = n.value ? c : i.fixed, i.fixed ? i.index = -1 : i.index = t.zTableV2CustomColumnBuilder.activeGroup?.getNextIndex || i.index);
6297
6298
  }, s = (l) => {
6298
6299
  if (t.zTableV2CustomColumnBuilder.activeGroup?.updateColumnChecked(l.prop, !1), l.fixed) {
6299
- const i = t.zTableV2CustomColumnBuilder.allColumns.find((r) => r.props.prop === l.prop);
6300
- i && (l.fixed = i.props.fixed);
6300
+ const c = t.zTableV2CustomColumnBuilder.allColumns.find((i) => i.props.prop === l.prop);
6301
+ c && (l.fixed = c.props.fixed);
6301
6302
  }
6302
- }, c = (l) => {
6303
+ }, r = (l) => {
6303
6304
  const {
6304
- column: i,
6305
- fixed: r,
6305
+ column: c,
6306
+ fixed: i,
6306
6307
  className: m
6307
6308
  } = Ne(l);
6308
6309
  return g("div", {
@@ -6312,49 +6313,49 @@ const Er = /* @__PURE__ */ M({
6312
6313
  alt: "..."
6313
6314
  }, null), J(g("span", {
6314
6315
  class: "select-item__label"
6315
- }, [a(i)]), [[ee("ellipsis")]]), g("div", {
6316
+ }, [a(c)]), [[ee("ellipsis")]]), g("div", {
6316
6317
  class: "select-item__icon"
6317
6318
  }, [g("img", {
6318
6319
  class: n.value ? "" : "not-lock",
6319
6320
  src: _n,
6320
6321
  alt: "锁",
6321
- onClick: () => u(i, r)
6322
- }, null), i.readonly ? null : g(B("el-icon"), {
6323
- onClick: () => s(i)
6322
+ onClick: () => u(c, i)
6323
+ }, null), c.readonly ? null : g(B("el-icon"), {
6324
+ onClick: () => s(c)
6324
6325
  }, {
6325
6326
  default: () => [g(Yt, null, null)]
6326
6327
  })])]);
6327
6328
  };
6328
- return (l, i) => (f(), _("div", wr, [x("div", Sr, [U(" 已选 " + j(l.zTableV2CustomColumnBuilder.activeGroupSelectedColumns.length) + " 个 ", 1), x("div", {
6329
+ return (l, c) => (f(), _("div", wr, [x("div", Sr, [U(" 已选 " + j(l.zTableV2CustomColumnBuilder.activeGroupSelectedColumns.length) + " 个 ", 1), x("div", {
6329
6330
  class: "reset-btn",
6330
- onClick: i[0] || (i[0] = //@ts-ignore
6331
- (...r) => l.zTableV2CustomColumnBuilder.resetActiveGroupColumnsStatus && l.zTableV2CustomColumnBuilder.resetActiveGroupColumnsStatus(...r))
6331
+ onClick: c[0] || (c[0] = //@ts-ignore
6332
+ (...i) => l.zTableV2CustomColumnBuilder.resetActiveGroupColumnsStatus && l.zTableV2CustomColumnBuilder.resetActiveGroupColumnsStatus(...i))
6332
6333
  }, "重置")]), x("div", Tr, [x("div", kr, [g(d(Pe), {
6333
6334
  modelValue: o.value,
6334
- "onUpdate:modelValue": i[1] || (i[1] = (r) => o.value = r),
6335
+ "onUpdate:modelValue": c[1] || (c[1] = (i) => o.value = i),
6335
6336
  animation: 150,
6336
6337
  draggable: ".custom-column-selected__fixed-column-item"
6337
6338
  }, {
6338
- default: y(() => [(f(!0), _(H, null, $(o.value, (r) => (f(), I(c, {
6339
- key: r.prop,
6339
+ default: y(() => [(f(!0), _(H, null, $(o.value, (i) => (f(), I(r, {
6340
+ key: i.prop,
6340
6341
  "class-name": "custom-column-selected__fixed-column-item",
6341
- column: r
6342
+ column: i
6342
6343
  }, null, 8, ["column"]))), 128))]),
6343
6344
  _: 1
6344
- }, 8, ["modelValue"])]), i[3] || (i[3] = x("div", {
6345
+ }, 8, ["modelValue"])]), c[3] || (c[3] = x("div", {
6345
6346
  class: "custom-column-selected__fixed-tips"
6346
6347
  }, "最多可横向锁定5列", -1)), x("div", Ir, [g(d(Pe), {
6347
6348
  modelValue: e.value,
6348
- "onUpdate:modelValue": i[2] || (i[2] = (r) => e.value = r),
6349
+ "onUpdate:modelValue": c[2] || (c[2] = (i) => e.value = i),
6349
6350
  animation: 150,
6350
6351
  "ghost-class": "ghost",
6351
6352
  draggable: ".custom-column-selected__un-fixed-column-item"
6352
6353
  }, {
6353
- default: y(() => [(f(!0), _(H, null, $(e.value, (r) => (f(), I(c, {
6354
- key: r.prop,
6354
+ default: y(() => [(f(!0), _(H, null, $(e.value, (i) => (f(), I(r, {
6355
+ key: i.prop,
6355
6356
  "class-name": "custom-column-selected__un-fixed-column-item",
6356
6357
  fixed: "left",
6357
- column: r
6358
+ column: i
6358
6359
  }, null, 8, ["column"]))), 128))]),
6359
6360
  _: 1
6360
6361
  }, 8, ["modelValue"])])])]));
@@ -6382,7 +6383,7 @@ const Er = /* @__PURE__ */ M({
6382
6383
  "is-active": s.anchorId === d(e)
6383
6384
  }
6384
6385
  ]),
6385
- onClick: (c) => d(o)(s.anchorId)
6386
+ onClick: (r) => d(o)(s.anchorId)
6386
6387
  }, j(s.anchorName), 11, Pr))), 128))
6387
6388
  ]),
6388
6389
  x("div", {
@@ -6417,15 +6418,15 @@ const Er = /* @__PURE__ */ M({
6417
6418
  n.value?.hide();
6418
6419
  }, u = G(), s = async () => {
6419
6420
  await Y(), u.value?.focus();
6420
- }, c = () => {
6421
+ }, r = () => {
6421
6422
  if (!o.value)
6422
6423
  return ye("名称不能为空");
6423
6424
  if (t.zTableV2CustomColumnBuilder.groupNameSome(o.value))
6424
6425
  return ye("名称不能重复");
6425
6426
  t.zTableV2CustomColumnBuilder.updateGroupName(o.value, e.value), a();
6426
6427
  };
6427
- return (l, i) => {
6428
- const r = B("el-icon"), m = B("el-input"), D = B("el-button"), p = B("el-popover");
6428
+ return (l, c) => {
6429
+ const i = B("el-icon"), m = B("el-input"), D = B("el-button"), p = B("el-popover");
6429
6430
  return f(), _(H, null, [
6430
6431
  g(p, {
6431
6432
  ref_key: "popoverRef",
@@ -6436,7 +6437,7 @@ const Er = /* @__PURE__ */ M({
6436
6437
  onShow: s
6437
6438
  }, {
6438
6439
  reference: y(() => [
6439
- g(r, null, {
6440
+ g(i, null, {
6440
6441
  default: y(() => [
6441
6442
  g(d(lt))
6442
6443
  ]),
@@ -6448,24 +6449,24 @@ const Er = /* @__PURE__ */ M({
6448
6449
  ref_key: "inputRef",
6449
6450
  ref: u,
6450
6451
  modelValue: o.value,
6451
- "onUpdate:modelValue": i[0] || (i[0] = (h) => o.value = h),
6452
+ "onUpdate:modelValue": c[0] || (c[0] = (h) => o.value = h),
6452
6453
  placeholder: "请输入分组名称",
6453
6454
  maxlength: "8",
6454
6455
  "show-word-limit": "",
6455
- onKeyup: Bt(c, ["enter"])
6456
+ onKeyup: Bt(r, ["enter"])
6456
6457
  }, null, 8, ["modelValue"]),
6457
6458
  x("div", Hr, [
6458
6459
  g(D, { onClick: a }, {
6459
- default: y(() => [...i[2] || (i[2] = [
6460
+ default: y(() => [...c[2] || (c[2] = [
6460
6461
  U("取消", -1)
6461
6462
  ])]),
6462
6463
  _: 1
6463
6464
  }),
6464
6465
  g(D, {
6465
6466
  type: "primary",
6466
- onClick: c
6467
+ onClick: r
6467
6468
  }, {
6468
- default: y(() => [...i[3] || (i[3] = [
6469
+ default: y(() => [...c[3] || (c[3] = [
6469
6470
  U("确认", -1)
6470
6471
  ])]),
6471
6472
  _: 1
@@ -6474,9 +6475,9 @@ const Er = /* @__PURE__ */ M({
6474
6475
  ]),
6475
6476
  _: 1
6476
6477
  }, 512),
6477
- g(r, {
6478
+ g(i, {
6478
6479
  class: "group-item__delete-icon",
6479
- onClick: i[1] || (i[1] = de((h) => l.zTableV2CustomColumnBuilder.deleteGroup(e.value), ["stop"]))
6480
+ onClick: c[1] || (c[1] = de((h) => l.zTableV2CustomColumnBuilder.deleteGroup(e.value), ["stop"]))
6480
6481
  }, {
6481
6482
  default: y(() => [
6482
6483
  g(d(rt))
@@ -6540,17 +6541,17 @@ const Er = /* @__PURE__ */ M({
6540
6541
  zTableV2CustomColumnBuilder: {}
6541
6542
  },
6542
6543
  setup(t) {
6543
- ve((i) => ({
6544
+ ve((c) => ({
6544
6545
  "418d063a": d(l)
6545
6546
  }));
6546
6547
  const { keywords: e, searchInputRef: o } = Jt(), n = G([]), a = () => {
6547
6548
  n.value = t.zTableV2CustomColumnBuilder.search(e.value);
6548
6549
  }, u = N(
6549
- () => new Map(t.zTableV2CustomColumnBuilder.activeGroupSelectedColumns.map((i) => [i.prop, i]))
6550
- ), s = (i, r) => {
6551
- t.zTableV2CustomColumnBuilder.activeGroup?.updateColumnChecked(i.props.prop, r);
6552
- }, { nextZIndex: c } = Kt(), l = c();
6553
- return (i, r) => {
6550
+ () => new Map(t.zTableV2CustomColumnBuilder.activeGroupSelectedColumns.map((c) => [c.prop, c]))
6551
+ ), s = (c, i) => {
6552
+ t.zTableV2CustomColumnBuilder.activeGroup?.updateColumnChecked(c.props.prop, i);
6553
+ }, { nextZIndex: r } = Kt(), l = r();
6554
+ return (c, i) => {
6554
6555
  const m = B("ZEmpty"), D = B("el-checkbox"), p = B("el-col"), h = B("el-row"), C = ee("ellipsis");
6555
6556
  return f(), _("div", Yr, [
6556
6557
  x("div", jr, [
@@ -6558,7 +6559,7 @@ const Er = /* @__PURE__ */ M({
6558
6559
  ref_key: "searchInputRef",
6559
6560
  ref: o,
6560
6561
  modelValue: d(e),
6561
- "onUpdate:modelValue": r[0] || (r[0] = (A) => _e(e) ? e.value = A : null),
6562
+ "onUpdate:modelValue": i[0] || (i[0] = (A) => _e(e) ? e.value = A : null),
6562
6563
  clearable: "",
6563
6564
  placeholder: "可搜索列名称",
6564
6565
  onInput: a
@@ -6622,13 +6623,13 @@ class Qt {
6622
6623
  const xn = (t) => t.filter(
6623
6624
  (e) => e.prop && e.label && (e.props.type ? !Reflect.has(qe, e.props.type) : !0)
6624
6625
  ), Vn = (t) => xn(t).reduce((e, o, n) => {
6625
- const { defaultChecked: a, prop: u, fixed: s, readonly: c } = o.props;
6626
+ const { defaultChecked: a, prop: u, fixed: s, readonly: r } = o.props;
6626
6627
  return e.push({
6627
- checked: c ? !0 : !!a,
6628
+ checked: r ? !0 : !!a,
6628
6629
  prop: u,
6629
6630
  index: n,
6630
6631
  fixed: s,
6631
- readonly: c
6632
+ readonly: r
6632
6633
  }), e;
6633
6634
  }, []), $t = (t, e) => {
6634
6635
  if (!Array.isArray(e) || !e.length)
@@ -6751,14 +6752,14 @@ class ei {
6751
6752
  groups: []
6752
6753
  };
6753
6754
  return this.groups.length && (e.groups = this.groups.map((o) => {
6754
- const { groupName: n, columns: a } = o, u = a.filter((l) => !l.fixed), s = a.filter((l) => l.fixed), c = (l) => Me(l, "index").map((i) => ({
6755
- prop: i.prop,
6756
- checked: i.checked,
6757
- fixed: i.fixed || void 0
6755
+ const { groupName: n, columns: a } = o, u = a.filter((l) => !l.fixed), s = a.filter((l) => l.fixed), r = (l) => Me(l, "index").map((c) => ({
6756
+ prop: c.prop,
6757
+ checked: c.checked,
6758
+ fixed: c.fixed || void 0
6758
6759
  }));
6759
6760
  return {
6760
6761
  groupName: n,
6761
- columns: c(u).concat(c(s))
6762
+ columns: r(u).concat(r(s))
6762
6763
  };
6763
6764
  })), e;
6764
6765
  }
@@ -6781,10 +6782,10 @@ const ti = { class: "custom-column__container" }, oi = /* @__PURE__ */ M({
6781
6782
  s(() => {
6782
6783
  a.value.init(t.groupName);
6783
6784
  });
6784
- const c = () => {
6785
+ const r = () => {
6785
6786
  n(tt.CANCEL);
6786
- }, [l, i] = $e(), r = () => {
6787
- i(async () => {
6787
+ }, [l, c] = $e(), i = () => {
6788
+ c(async () => {
6788
6789
  if (a.value.validate()) {
6789
6790
  const m = a.value.build();
6790
6791
  await ce.saveViewConfig({
@@ -6809,7 +6810,7 @@ const ti = { class: "custom-column__container" }, oi = /* @__PURE__ */ M({
6809
6810
  footer: y(() => [
6810
6811
  g(p, {
6811
6812
  loading: d(l),
6812
- onClick: c
6813
+ onClick: r
6813
6814
  }, {
6814
6815
  default: y(() => [...D[1] || (D[1] = [
6815
6816
  U("取消", -1)
@@ -6819,7 +6820,7 @@ const ti = { class: "custom-column__container" }, oi = /* @__PURE__ */ M({
6819
6820
  g(p, {
6820
6821
  loading: d(l),
6821
6822
  type: "primary",
6822
- onClick: r
6823
+ onClick: i
6823
6824
  }, {
6824
6825
  default: y(() => [...D[2] || (D[2] = [
6825
6826
  U("确定", -1)
@@ -6866,23 +6867,23 @@ const ti = { class: "custom-column__container" }, oi = /* @__PURE__ */ M({
6866
6867
  });
6867
6868
  };
6868
6869
  return (n, a) => {
6869
- const u = B("el-icon"), s = B("el-dropdown-item"), c = B("el-dropdown-menu"), l = B("el-dropdown"), i = ee("ellipsis");
6870
+ const u = B("el-icon"), s = B("el-dropdown-item"), r = B("el-dropdown-menu"), l = B("el-dropdown"), c = ee("ellipsis");
6870
6871
  return f(), I(l, {
6871
6872
  "popper-class": "z-table-v2-custom-column__popper",
6872
6873
  trigger: "hover",
6873
6874
  placement: "bottom-start"
6874
6875
  }, {
6875
- dropdown: y(() => [g(c, null, {
6876
- default: y(() => [(f(!0), _(H, null, $(n.tableBuilder.tableCustomColumnManager.groups, (r) => (f(), I(s, {
6877
- key: r.groupName,
6876
+ dropdown: y(() => [g(r, null, {
6877
+ default: y(() => [(f(!0), _(H, null, $(n.tableBuilder.tableCustomColumnManager.groups, (i) => (f(), I(s, {
6878
+ key: i.groupName,
6878
6879
  class: te(["z-table-v2-custom-column__item", {
6879
- "is-active": r.groupName === n.tableBuilder.activeGroup
6880
+ "is-active": i.groupName === n.tableBuilder.activeGroup
6880
6881
  }]),
6881
- onClick: de((m) => n.tableBuilder.updateActiveGroup(r.groupName), ["stop"])
6882
+ onClick: de((m) => n.tableBuilder.updateActiveGroup(i.groupName), ["stop"])
6882
6883
  }, {
6883
- default: y(() => [J((f(), _("div", ni, [U(j(r.groupName), 1)])), [[i]]), g(u, {
6884
+ default: y(() => [J((f(), _("div", ni, [U(j(i.groupName), 1)])), [[c]]), g(u, {
6884
6885
  class: "z-table-v2-custom-column__edit-icon",
6885
- onClick: de((m) => o(r.groupName), ["stop"])
6886
+ onClick: de((m) => o(i.groupName), ["stop"])
6886
6887
  }, {
6887
6888
  default: y(() => [g(d(lt))]),
6888
6889
  _: 2
@@ -7134,13 +7135,13 @@ const ti = { class: "custom-column__container" }, oi = /* @__PURE__ */ M({
7134
7135
  !Ve(w) && !Ve(b) && t.triggerEvent("drag-change", { oldIndex: b, newIndex: w }, t.data);
7135
7136
  }, s = (v) => {
7136
7137
  t.updatePagination({ current: v });
7137
- }, c = (v) => {
7138
+ }, r = (v) => {
7138
7139
  t.updatePagination({ size: v });
7139
7140
  }, l = (v) => {
7140
7141
  const { rowKey: b = "id" } = t.config;
7141
7142
  return typeof b == "function" ? b(v) : Reflect.get(v, b);
7142
- }, i = G(), { onResize: r } = uo(), m = G(""), D = G({ left: "0", top: "0", width: "100%", height: "100%" });
7143
- r(
7143
+ }, c = G(), { onResize: i } = uo(), m = G(""), D = G({ left: "0", top: "0", width: "100%", height: "100%" });
7144
+ i(
7144
7145
  () => e.value,
7145
7146
  () => {
7146
7147
  if (e.value) {
@@ -7166,13 +7167,13 @@ const ti = { class: "custom-column__container" }, oi = /* @__PURE__ */ M({
7166
7167
  const { start: C } = In(), A = G(!1);
7167
7168
  t.registerEvent("init", async () => {
7168
7169
  A.value = !0, await Y(), n.value.stickyHeader && !n.value.enableVirtualScroll && C({
7169
- baseTableOperationElement: i,
7170
+ baseTableOperationElement: c,
7170
7171
  baseTableRef: t.rawElTableInstance,
7171
7172
  stickyTriggerSelector: t.config.stickyTriggerSelector
7172
7173
  });
7173
7174
  });
7174
7175
  const F = G("");
7175
- return r(
7176
+ return i(
7176
7177
  () => t.elTableInstance?.$el,
7177
7178
  () => {
7178
7179
  const { left: v } = t.elTableInstance?.$el.getBoundingClientRect() ?? { left: 0 };
@@ -7187,11 +7188,11 @@ const ti = { class: "custom-column__container" }, oi = /* @__PURE__ */ M({
7187
7188
  onDrag: a,
7188
7189
  dragChange: u,
7189
7190
  updateCurrentPage: s,
7190
- updatePageSize: c,
7191
+ updatePageSize: r,
7191
7192
  getRowKey: l,
7192
7193
  paginationWidth: m,
7193
7194
  loadingRect: D,
7194
- zTableV2OperationElement: i,
7195
+ zTableV2OperationElement: c,
7195
7196
  zTableV2BodyRef: p,
7196
7197
  isInitialized: A,
7197
7198
  tableScrollLeft: F
@@ -7221,10 +7222,10 @@ const ti = { class: "custom-column__container" }, oi = /* @__PURE__ */ M({
7221
7222
  zTableV2ContainerRef: a,
7222
7223
  config: u,
7223
7224
  onDrag: s,
7224
- dragChange: c,
7225
+ dragChange: r,
7225
7226
  updateCurrentPage: l,
7226
- updatePageSize: i,
7227
- getPaginationProps: r,
7227
+ updatePageSize: c,
7228
+ getPaginationProps: i,
7228
7229
  paginationWidth: m,
7229
7230
  loadingRect: D,
7230
7231
  zTableV2OperationElement: p,
@@ -7322,7 +7323,7 @@ const ti = { class: "custom-column__container" }, oi = /* @__PURE__ */ M({
7322
7323
  handle: `.${d(Gn)}`,
7323
7324
  animation: v.tableBuilder.config.draggableAttrs?.animation ?? 150,
7324
7325
  onEnded: d(s),
7325
- onChange: d(c),
7326
+ onChange: d(r),
7326
7327
  "onUpdate:modelValue": b[3] || (b[3] = (T) => {
7327
7328
  v.tableBuilder.updateTableData(T);
7328
7329
  })
@@ -7342,12 +7343,12 @@ const ti = { class: "custom-column__container" }, oi = /* @__PURE__ */ M({
7342
7343
  d(u).fixedPagination ? `is-fixed fixed-to-${d(u).fixedPagination === "right" ? "right" : "left"}` : ""
7343
7344
  ])
7344
7345
  }, [
7345
- g(k, K(d(r), {
7346
+ g(k, K(d(i), {
7346
7347
  "current-page": v.tableBuilder.pagination.current,
7347
7348
  "page-size": v.tableBuilder.pagination.size,
7348
7349
  total: v.tableBuilder.pagination.total,
7349
7350
  "onUpdate:currentPage": d(l),
7350
- "onUpdate:pageSize": d(i)
7351
+ "onUpdate:pageSize": d(c)
7351
7352
  }, me(v.tableBuilder.getPaginationEvents(o)), {
7352
7353
  onChange: b[4] || (b[4] = () => !v.tableBuilder.loading && v.tableBuilder.refresh())
7353
7354
  }), null, 16, ["current-page", "page-size", "total", "onUpdate:currentPage", "onUpdate:pageSize"])
@@ -7375,7 +7376,7 @@ const ti = { class: "custom-column__container" }, oi = /* @__PURE__ */ M({
7375
7376
  o("click");
7376
7377
  };
7377
7378
  return (a, u) => {
7378
- const s = B("el-icon"), c = B("el-tooltip"), l = B("el-form-item");
7379
+ const s = B("el-icon"), r = B("el-tooltip"), l = B("el-form-item");
7379
7380
  return f(), I(l, {
7380
7381
  class: "z-tips-form-item__form-item",
7381
7382
  prop: a.prop
@@ -7383,7 +7384,7 @@ const ti = { class: "custom-column__container" }, oi = /* @__PURE__ */ M({
7383
7384
  label: y(() => [
7384
7385
  x("div", Di, [
7385
7386
  U(j(a.label) + " ", 1),
7386
- a.content ? (f(), I(c, {
7387
+ a.content ? (f(), I(r, {
7387
7388
  key: 0,
7388
7389
  content: a.content,
7389
7390
  placement: "top",
@@ -7452,8 +7453,8 @@ const ti = { class: "custom-column__container" }, oi = /* @__PURE__ */ M({
7452
7453
  });
7453
7454
  }, s = (l) => {
7454
7455
  l.style.maxHeight = "", l.style.opacity = "";
7455
- }, c = N(() => !Ve(t.visible));
7456
- return (l, i) => (f(), I(Oo, {
7456
+ }, r = N(() => !Ve(t.visible));
7457
+ return (l, c) => (f(), I(Oo, {
7457
7458
  name: "z-transition-fade-height",
7458
7459
  onBeforeEnter: e,
7459
7460
  onEnter: o,
@@ -7463,7 +7464,7 @@ const ti = { class: "custom-column__container" }, oi = /* @__PURE__ */ M({
7463
7464
  onAfterLeave: s
7464
7465
  }, {
7465
7466
  default: y(() => [
7466
- !c.value || l.visible ? (f(), _("div", Ci, [
7467
+ !r.value || l.visible ? (f(), _("div", Ci, [
7467
7468
  ne(l.$slots, "default", {}, void 0, !0)
7468
7469
  ])) : R("", !0)
7469
7470
  ]),
@@ -7542,12 +7543,12 @@ const ti = { class: "custom-column__container" }, oi = /* @__PURE__ */ M({
7542
7543
  if (document.execCommand)
7543
7544
  document.execCommand("insertText", !1, a);
7544
7545
  else {
7545
- const { selectionStart: u, selectionEnd: s, value: c } = t, l = c.length;
7546
+ const { selectionStart: u, selectionEnd: s, value: r } = t, l = r.length;
7546
7547
  if (l) {
7547
- t.value = c.substring(0, u ?? 0) + a + c.substring(s ?? l);
7548
- const i = (u ?? 0) + a.length;
7548
+ t.value = r.substring(0, u ?? 0) + a + r.substring(s ?? l);
7549
+ const c = (u ?? 0) + a.length;
7549
7550
  Y().then(() => {
7550
- t.setSelectionRange(i, i);
7551
+ t.setSelectionRange(c, c);
7551
7552
  });
7552
7553
  } else
7553
7554
  t.value = a;
@@ -7557,10 +7558,10 @@ const ti = { class: "custom-column__container" }, oi = /* @__PURE__ */ M({
7557
7558
  mounted(t) {
7558
7559
  const e = async (n) => {
7559
7560
  const a = n.target, u = a.selectionStart || -1, s = [];
7560
- let c = !1;
7561
- a.value = a.value.replace(/\s/g, (i, r) => (r < u && s.push(r), c = !0, ""));
7561
+ let r = !1;
7562
+ a.value = a.value.replace(/\s/g, (c, i) => (i < u && s.push(i), r = !0, ""));
7562
7563
  const l = u - s.length;
7563
- c && (Ft(a), await Y()), a.setSelectionRange(l, l);
7564
+ r && (Ft(a), await Y()), a.setSelectionRange(l, l);
7564
7565
  };
7565
7566
  t._inputHandler = e, t.addEventListener("input", e);
7566
7567
  const o = async (n) => {
@@ -7568,14 +7569,14 @@ const ti = { class: "custom-column__container" }, oi = /* @__PURE__ */ M({
7568
7569
  let a = ((Reflect.get(n, "clipboardData") || Reflect.get(window, "clipboardData"))?.getData("text/plain") || "").replace(/\s/g, "");
7569
7570
  if (!a)
7570
7571
  return;
7571
- const u = n.target, { selectionStart: s = 0, selectionEnd: c = 0, value: l } = u;
7572
- let i = u.maxLength;
7573
- i < 0 && (i = Number.MAX_SAFE_INTEGER);
7574
- const r = l.length;
7575
- if (a = a.substring(0, i - (r - ((c ?? 0) - (s ?? 0)))), r < i || s !== c) {
7576
- const m = l.substring(0, s ?? 0) + a + l.substring(c ?? r);
7572
+ const u = n.target, { selectionStart: s = 0, selectionEnd: r = 0, value: l } = u;
7573
+ let c = u.maxLength;
7574
+ c < 0 && (c = Number.MAX_SAFE_INTEGER);
7575
+ const i = l.length;
7576
+ if (a = a.substring(0, c - (i - ((r ?? 0) - (s ?? 0)))), i < c || s !== r) {
7577
+ const m = l.substring(0, s ?? 0) + a + l.substring(r ?? i);
7577
7578
  if (!document.execCommand?.("insertText", !1, a)) {
7578
- if (r) {
7579
+ if (i) {
7579
7580
  u.setRangeText(m);
7580
7581
  const p = (s ?? 0) + a.length;
7581
7582
  await Y(), u.setSelectionRange(p, p);
@@ -7606,10 +7607,10 @@ const ti = { class: "custom-column__container" }, oi = /* @__PURE__ */ M({
7606
7607
  const e = t.querySelector(".el-input__wrapper > input") || t, o = () => {
7607
7608
  const a = e.value, u = wo(a);
7608
7609
  if (a !== u) {
7609
- const s = e.selectionStart, c = e.selectionEnd;
7610
+ const s = e.selectionStart, r = e.selectionEnd;
7610
7611
  e.value = u;
7611
7612
  const l = a.length - u.length;
7612
- s && c && e.setSelectionRange(s - l, c - l), Ft(e);
7613
+ s && r && e.setSelectionRange(s - l, r - l), Ft(e);
7613
7614
  }
7614
7615
  };
7615
7616
  e.addEventListener("input", o), t._handleInput = o;
@@ -7637,7 +7638,7 @@ const ti = { class: "custom-column__container" }, oi = /* @__PURE__ */ M({
7637
7638
  webkitLineClamp: "",
7638
7639
  webkitBoxOrient: ""
7639
7640
  }), n = a.outerHTML;
7640
- const { top: u, bottom: s } = W.value.rect, c = window.innerHeight || document.documentElement.clientHeight, l = Math.max(u, c - s, 56);
7641
+ const { top: u, bottom: s } = W.value.rect, r = window.innerHeight || document.documentElement.clientHeight, l = Math.max(u, r - s, 56);
7641
7642
  W.value.maxHeight = `${l - 28}px`, W.value.placement = u === l ? "top" : "bottom";
7642
7643
  } else
7643
7644
  n = t.outerHTML;
@@ -7655,7 +7656,7 @@ const ti = { class: "custom-column__container" }, oi = /* @__PURE__ */ M({
7655
7656
  }, Ii = (t) => ({
7656
7657
  ...ki,
7657
7658
  ...t ?? {}
7658
- }), Gi = "1.2.2", Ni = {
7659
+ }), Gi = "1.2.4", Ni = {
7659
7660
  version: Gi
7660
7661
  };
7661
7662
  function gc(t, e, o) {
@@ -7821,17 +7822,17 @@ class Mi {
7821
7822
  */
7822
7823
  initCustomColumns(e) {
7823
7824
  const o = new Map(this.tableColumns.map((s) => [s.props.prop, s])), n = this.tableColumns.reduce(
7824
- (s, c, l) => {
7825
+ (s, r, l) => {
7825
7826
  const {
7826
- props: { type: i, prop: r }
7827
- } = c;
7828
- return (i && Reflect.has(qe, i) || !r) && Reflect.set(s, l, c), s;
7827
+ props: { type: c, prop: i }
7828
+ } = r;
7829
+ return (c && Reflect.has(qe, c) || !i) && Reflect.set(s, l, r), s;
7829
7830
  },
7830
7831
  {}
7831
- ), a = e.reduce((s, c) => {
7832
- const { readonly: l, prop: i, checked: r, fixed: m } = c;
7833
- if (r || l) {
7834
- const D = o.get(i);
7832
+ ), a = e.reduce((s, r) => {
7833
+ const { readonly: l, prop: c, checked: i, fixed: m } = r;
7834
+ if (i || l) {
7835
+ const D = o.get(c);
7835
7836
  D && s.push(new Mt({ ...D.props, readonly: l, fixed: m }));
7836
7837
  }
7837
7838
  return s;
@@ -7931,20 +7932,20 @@ class Li {
7931
7932
  const o = Vn(this.tableBuilder.columns);
7932
7933
  let n = !1, a = 0;
7933
7934
  e.forEach((u) => {
7934
- const s = new Map(u.columns.map((l) => [l.prop, l])), c = new Qt({
7935
+ const s = new Map(u.columns.map((l) => [l.prop, l])), r = new Qt({
7935
7936
  groupName: u.groupName,
7936
7937
  columns: o.map((l) => {
7937
- const i = s.get(l.prop);
7938
- return i ? {
7938
+ const c = s.get(l.prop);
7939
+ return c ? {
7939
7940
  ...l,
7940
- index: i.checked ? ++a : void 0
7941
+ index: c.checked ? ++a : void 0
7941
7942
  } : {
7942
7943
  ...l,
7943
7944
  index: l.checked ? ++a : void 0
7944
7945
  };
7945
7946
  })
7946
7947
  });
7947
- c.groupName === this.defaultGroupName && (n = !0), this.groups.push(c), Reflect.get(u, "active") && this.updateActiveGroup(u.groupName);
7948
+ r.groupName === this.defaultGroupName && (n = !0), this.groups.push(r), Reflect.get(u, "active") && this.updateActiveGroup(u.groupName);
7948
7949
  }), !n && this.createGroup(this.defaultGroupName, "top");
7949
7950
  }
7950
7951
  /**
@@ -8048,16 +8049,16 @@ class Oi {
8048
8049
  try {
8049
8050
  const o = this.tableBuilder.config.loadMethod;
8050
8051
  if (Be(o)) {
8051
- const { data: n, total: a, records: u, count: s } = await o(Re(e, "total")) ?? {}, c = n || u || [], l = Number(a || s || 0), i = !l || isNaN(l);
8052
- if (!c.length && e.current > 1 && !i) {
8053
- const r = Math.ceil(l / e.size);
8054
- if (e.current > r)
8052
+ const { data: n, total: a, records: u, count: s } = await o(Re(e, "total")) ?? {}, r = n || u || [], l = Number(a || s || 0), c = !l || isNaN(l);
8053
+ if (!r.length && e.current > 1 && !c) {
8054
+ const i = Math.ceil(l / e.size);
8055
+ if (e.current > i)
8055
8056
  return this.updatePagination({
8056
- current: r
8057
+ current: i
8057
8058
  }), this.loadData(e);
8058
8059
  }
8059
- this.update(c), this.updatePagination({
8060
- total: i ? 0 : l
8060
+ this.update(r), this.updatePagination({
8061
+ total: c ? 0 : l
8061
8062
  }), await Y(), this.tableBuilder.triggerEvent("loaded");
8062
8063
  } else
8063
8064
  this.stopEffect = at(() => {
@@ -8119,9 +8120,9 @@ class zi {
8119
8120
  if (this.emitFnc || (this.emitFnc = e), !Array.isArray(o) || !o?.length)
8120
8121
  return {};
8121
8122
  const a = n || ((s) => s), u = new Set(Object.keys(this.events));
8122
- return o.reduce((s, c) => (u.has(c) && Reflect.set(s, a(c), (...l) => {
8123
- this.events[c].forEach((i) => {
8124
- i.paused || i.callback(...l), e(c, ...l);
8123
+ return o.reduce((s, r) => (u.has(r) && Reflect.set(s, a(r), (...l) => {
8124
+ this.events[r].forEach((c) => {
8125
+ c.paused || c.callback(...l), e(r, ...l);
8125
8126
  });
8126
8127
  }), s), {});
8127
8128
  }
@@ -8181,7 +8182,7 @@ class zi {
8181
8182
  else {
8182
8183
  const a = this.idEventMap.get(e);
8183
8184
  if (a) {
8184
- const u = this.events[a], s = u.findIndex((c) => c.id === e);
8185
+ const u = this.events[a], s = u.findIndex((r) => r.id === e);
8185
8186
  s > -1 && u.splice(s, 1);
8186
8187
  }
8187
8188
  }
@@ -8443,33 +8444,35 @@ class Hi {
8443
8444
  const Ui = (t, e) => {
8444
8445
  if (!Array.isArray(t))
8445
8446
  throw new Error("columns must be an array.");
8446
- const o = G(
8447
+ const { formBuilder: o, ...n } = e || {}, a = G(
8447
8448
  new Hi(
8448
- t.map((u) => {
8449
- const s = {
8449
+ t.map((r) => {
8450
+ const l = {
8450
8451
  defaultChecked: !0,
8451
8452
  // 如果设置了 _render 则不显示 showOverflowTooltip
8452
- showOverflowTooltip: !u._render || !Reflect.has(u, "contentRender")
8453
+ showOverflowTooltip: !r._render || !Reflect.has(r, "contentRender")
8453
8454
  };
8454
- return u.prop ? { ...s, ...u } : u;
8455
+ return r.prop ? { ...l, ...r } : r;
8455
8456
  }),
8456
- e
8457
+ n
8457
8458
  )
8458
- ), n = (u, s) => {
8459
- o.value.registerEvent(u, s);
8460
- }, a = (u) => {
8461
- o.value.refresh(u);
8459
+ ), u = (r, l) => {
8460
+ a.value.registerEvent(r, l);
8461
+ }, s = (r) => {
8462
+ a.value.refresh(r);
8462
8463
  };
8463
- return {
8464
- tableBuilder: d(o),
8465
- registerEvent: n,
8466
- refresh: a
8464
+ return o && o.onChange(() => {
8465
+ s();
8466
+ }), {
8467
+ tableBuilder: d(a),
8468
+ registerEvent: u,
8469
+ refresh: s
8467
8470
  };
8468
8471
  }, bc = (t, e) => Ui(t, { ...e, enableVirtualScroll: !0 }), yc = () => {
8469
- const t = na("listenElementRef"), e = () => t?.value || document.body, o = [], n = (u, s, c) => {
8470
- o.push({ event: u, fn: s, options: c }), e().addEventListener(u, s, c);
8472
+ const t = na("listenElementRef"), e = () => t?.value || document.body, o = [], n = (u, s, r) => {
8473
+ o.push({ event: u, fn: s, options: r }), e().addEventListener(u, s, r);
8471
8474
  }, a = () => {
8472
- o.forEach(({ event: u, fn: s, options: c }) => e().removeEventListener(u, s, c)), o.length = 0;
8475
+ o.forEach(({ event: u, fn: s, options: r }) => e().removeEventListener(u, s, r)), o.length = 0;
8473
8476
  };
8474
8477
  return nt(a), bt() && yt(a), {
8475
8478
  stops: a,