@gx-design-vue/pro-table 0.2.0-beta.120 → 0.2.0-beta.122

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/pro-table.js CHANGED
@@ -1,15 +1,15 @@
1
1
  /*!
2
2
  * Gx Design Pro
3
- * Version: 0.2.0-beta.119
3
+ * Version: 0.2.0-beta.121
4
4
  * Author: gx12358
5
5
  * Copyright (C) 2024 gx12358
6
6
  * License: MIT License
7
7
  * Description: Gx Design Pro Table
8
- * Date Created: 2025-08-17
8
+ * Date Created: 2025-09-28
9
9
  * Homepage:
10
10
  * Contact: gx12358@gmail.com
11
11
  */
12
- import { defineComponent as ne, ref as P, watch as N, cloneVNode as Ve, reactive as be, watchEffect as Ne, computed as S, createVNode as i, Fragment as ke, isVNode as U, mergeProps as M, h as Tt, unref as p, createTextVNode as Ae, renderSlot as ol, onActivated as il, nextTick as ul, getCurrentInstance as sl, toRaw as ve, onUnmounted as rl, onDeactivated as cl, onMounted as dl, toRef as se, isRef as _e, isReactive as fl } from "vue";
12
+ import { defineComponent as ne, ref as P, watch as N, cloneVNode as Ve, reactive as be, watchEffect as Ne, computed as x, createVNode as i, Fragment as ke, isVNode as U, mergeProps as M, h as Tt, unref as p, createTextVNode as Ae, renderSlot as ol, onActivated as il, nextTick as ul, getCurrentInstance as sl, toRaw as ve, onUnmounted as rl, onDeactivated as cl, onMounted as dl, toRef as se, isRef as _e, isReactive as fl } from "vue";
13
13
  import { UpOutlined as hl, DownOutlined as ml, SettingOutlined as $t, VerticalAlignTopOutlined as vl, VerticalAlignMiddleOutlined as gl, VerticalAlignBottomOutlined as pl, InfoCircleOutlined as yl, ColumnHeightOutlined as bl, FullscreenExitOutlined as Cl, FullscreenOutlined as xl, ReloadOutlined as Sl, CopyOutlined as wl } from "@ant-design/icons-vue";
14
14
  import { useProAppContext as Rt } from "@gx-design-vue/pro-app";
15
15
  import { useContext as Tl, getProSolidColor as Ft, useProStyle as He, unit as yt, useProConfigContext as $l } from "@gx-design-vue/pro-provider";
@@ -344,8 +344,8 @@ const Zl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
344
344
  const l = P([]), n = P(e.loading ?? !1), u = P("init"), o = Nl(e.fetch, e.debounceTime || 10);
345
345
  return N([() => e.fetch, () => e.manual], () => {
346
346
  if (u.value !== "init" && n.value) return;
347
- const c = e.manual ?? !1;
348
- e.fetch && !c && (n.value = !0, o().then((h) => {
347
+ const d = e.manual ?? !1;
348
+ e.fetch && !d && (n.value = !0, o().then((h) => {
349
349
  l.value = jt(h), u.value = "success";
350
350
  }).catch((h) => {
351
351
  console.error(h), u.value = "error";
@@ -355,8 +355,8 @@ const Zl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
355
355
  }, {
356
356
  immediate: !0
357
357
  }), () => {
358
- const c = a.default?.();
359
- return Ve(V(c) ? c[0] : c, {
358
+ const d = a.default?.();
359
+ return Ve(V(d) ? d[0] : d, {
360
360
  options: l.value,
361
361
  notFoundContent: e.notFoundContent?.(n.value)
362
362
  });
@@ -366,10 +366,10 @@ const Zl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
366
366
  function la(e, a) {
367
367
  const l = be({});
368
368
  function n() {
369
- Object.keys(e).forEach((c) => {
370
- u(c, e[c]);
369
+ Object.keys(e).forEach((d) => {
370
+ u(d, e[d]);
371
371
  });
372
- const o = a.find((c) => c.valueType === "dateRange");
372
+ const o = a.find((d) => d.valueType === "dateRange");
373
373
  o && u(o.name || "", e[o.rangeStartName || "start"] ? [
374
374
  e[o.rangeStartName || "start"],
375
375
  e[o.rangeEndName || "end"]
@@ -378,8 +378,8 @@ function la(e, a) {
378
378
  Ne(() => {
379
379
  n();
380
380
  });
381
- function u(o, c) {
382
- l[o] = c;
381
+ function u(o, d) {
382
+ l[o] = d;
383
383
  }
384
384
  return {
385
385
  formState: l,
@@ -490,10 +490,10 @@ function Pe(e, a) {
490
490
  const St = (e, a, l = "string") => {
491
491
  if (V(e)) {
492
492
  const [n, u] = e;
493
- let o, c;
494
- if (Array.isArray(a) ? (o = a[0], c = a[1]) : typeof a == "object" && a.type === "mask" ? (o = a.format, c = a.format) : (o = a, c = a), l === "string") {
495
- const h = n ? me(n, o) : "", x = u ? me(u, c) : "";
496
- return [h, x];
493
+ let o, d;
494
+ if (Array.isArray(a) ? (o = a[0], d = a[1]) : typeof a == "object" && a.type === "mask" ? (o = a.format, d = a.format) : (o = a, d = a), l === "string") {
495
+ const h = n ? me(n, o) : "", C = u ? me(u, d) : "";
496
+ return [h, C];
497
497
  }
498
498
  return [H(n), H(u)];
499
499
  }
@@ -537,23 +537,23 @@ const fa = {
537
537
  const {
538
538
  wrapSSR: n,
539
539
  hashId: u
540
- } = He("ProTableForm", [aa], e.prefixCls), o = Rt(), c = oa(), {
540
+ } = He("ProTableForm", [aa], e.prefixCls), o = Rt(), d = oa(), {
541
541
  manualSearch: h,
542
- searchConfig: x,
543
- searchActions: y
542
+ searchConfig: C,
543
+ searchActions: T
544
544
  } = fe(), {
545
- formState: r,
546
- resetFormState: C,
547
- changeFormState: d
548
- } = la(e.defaultParams || {}, e.searchMap || []), m = P(x.value?.collapsed ?? x.value?.defaultCollapsed), b = S(() => le(y.value?.reset) ? y.value?.reset : h.value), v = S(() => I(x.value?.span)), F = S(() => x.value?.label);
549
- N(() => x.value?.collapsed, (t) => {
545
+ formState: s,
546
+ resetFormState: y,
547
+ changeFormState: c
548
+ } = la(e.defaultParams || {}, e.searchMap || []), m = P(C.value?.collapsed ?? C.value?.defaultCollapsed), b = x(() => le(T.value?.reset) ? T.value?.reset : h.value), v = x(() => I(C.value?.span)), F = x(() => C.value?.label);
549
+ N(() => C.value?.collapsed, (t) => {
550
550
  m.value = t;
551
551
  });
552
552
  function I(t) {
553
553
  let f = 4;
554
554
  for (let R = 0; R < Xe.length; R += 1) {
555
555
  const $ = Xe[R].value;
556
- if (c.value[$]) {
556
+ if (d.value[$]) {
557
557
  f = t?.[$] || (e.modal ? 3 : Xe[R].span);
558
558
  break;
559
559
  }
@@ -569,53 +569,53 @@ const fa = {
569
569
  ...R,
570
570
  marginRight: "2%"
571
571
  }, L = () => {
572
- const t = jt(r), f = e.searchMap.find((T) => T.valueType === "text") || "", R = e.searchMap.find((T) => T.valueType === "dateRange") || "", $ = e.searchMap.find((T) => T.valueType === "treeSelect");
573
- return f && (t[f.name] = r[f.name] || f.initialValue || ""), R && (t[R.rangeStartName || "start"] = t[R.name] ? t[R.name][0] : "", t[R.rangeEndName || "end"] = t[R.name] ? t[R.name][1] : "", delete t[R.name]), $ && ($?.name && V(r[$?.name]) && (t[$.name] = r[$.name].length ? r[$.name].map((T) => T[$.valueKey === "text" ? "label" : "value"]).join() : ""), $?.name && V(t[$?.name]) && (t[$.name] = t[$.name].length ? t[$.name].map((T) => T[$.valueKey === "text" ? "label" : "value"]) : "")), t;
572
+ const t = jt(s), f = e.searchMap.find((w) => w.valueType === "text") || "", R = e.searchMap.find((w) => w.valueType === "dateRange") || "", $ = e.searchMap.find((w) => w.valueType === "treeSelect");
573
+ return f && (t[f.name] = s[f.name] || f.initialValue || ""), R && (t[R.rangeStartName || "start"] = t[R.name] ? t[R.name][0] : "", t[R.rangeEndName || "end"] = t[R.name] ? t[R.name][1] : "", delete t[R.name]), $ && ($?.name && V(s[$?.name]) && (t[$.name] = s[$.name].length ? s[$.name].map((w) => w[$.valueKey === "text" ? "label" : "value"]).join() : ""), $?.name && V(t[$?.name]) && (t[$.name] = t[$.name].length ? t[$.name].map((w) => w[$.valueKey === "text" ? "label" : "value"]) : "")), t;
574
574
  }, W = (t = !1, f) => {
575
575
  (!h.value || t) && e.onSearch?.(L(), t ? f ? "reset" : "submit" : void 0);
576
576
  }, O = (t, f, R) => {
577
- const $ = r[f.name || ""];
577
+ const $ = s[f.name || ""];
578
578
  switch (f.valueType) {
579
579
  case "text":
580
- d(f.name || "", t || "");
580
+ c(f.name || "", t || "");
581
581
  break;
582
582
  case "number":
583
- d(f.name || "", t || void 0);
583
+ c(f.name || "", t || void 0);
584
584
  break;
585
585
  case "numberRange":
586
- De(R?.key) && ($[R.key] = t, d(f.name || "", $ || []));
586
+ De(R?.key) && ($[R.key] = t, c(f.name || "", $ || []));
587
587
  break;
588
588
  case "select":
589
- d(f.name || "", t ?? void 0);
589
+ c(f.name || "", t ?? void 0);
590
590
  break;
591
591
  case "treeSelect":
592
- d(f.name || "", t ?? (f.field?.treeCheckable || f.field?.multiple ? [] : null));
592
+ c(f.name || "", t ?? (f.field?.treeCheckable || f.field?.multiple ? [] : null));
593
593
  break;
594
594
  case "date":
595
- d(f.name || "", t ? me(t, Pe(f.valueFormat, f.showTime)) : null);
595
+ c(f.name || "", t ? me(t, Pe(f.valueFormat, f.showTime)) : null);
596
596
  break;
597
597
  case "dateWeek":
598
- d(f.name || "", t ? me(t, "YYYY-wo") : null);
598
+ c(f.name || "", t ? me(t, "YYYY-wo") : null);
599
599
  break;
600
600
  case "dateMonth":
601
- d(f.name || "", t ? me(t, "YYYY-MM") : null);
601
+ c(f.name || "", t ? me(t, "YYYY-MM") : null);
602
602
  break;
603
603
  case "dateQuarter":
604
- d(f.name || "", t ? me(t, "YYYY-QQ") : null);
604
+ c(f.name || "", t ? me(t, "YYYY-QQ") : null);
605
605
  break;
606
606
  case "dateYear":
607
- d(f.name || "", t ? me(t, "YYYY") : null);
607
+ c(f.name || "", t ? me(t, "YYYY") : null);
608
608
  break;
609
609
  case "dateRange":
610
- d(f.name || "", t && V(t) && t.length === 2 ? St(t, Pe(f.valueFormat, f.showTime)) : null);
610
+ c(f.name || "", t && V(t) && t.length === 2 ? St(t, Pe(f.valueFormat, f.showTime)) : null);
611
611
  break;
612
612
  case "time":
613
- d(f.name || "", t ? me(t, f.valueFormat || "HH:mm:ss") : null);
613
+ c(f.name || "", t ? me(t, f.valueFormat || "HH:mm:ss") : null);
614
614
  break;
615
615
  }
616
616
  f.valueType === "treeSelect" || f.valueType, W();
617
617
  }, j = (t = !0) => {
618
- C(), W(!0, t);
618
+ y(), W(!0, t);
619
619
  };
620
620
  l({
621
621
  getFormState: () => L(),
@@ -633,13 +633,13 @@ const fa = {
633
633
  default: () => [b.value && i(Ct, {
634
634
  onClick: () => j()
635
635
  }, {
636
- default: () => [y.value?.resetText || "重置"]
636
+ default: () => [T.value?.resetText || "重置"]
637
637
  }), h.value && i(Ct, {
638
638
  loading: e.loading,
639
639
  type: "primary",
640
640
  onClick: () => W(!0)
641
641
  }, {
642
- default: () => [y.value?.searchText || "查询"]
642
+ default: () => [T.value?.searchText || "查询"]
643
643
  })]
644
644
  }), oe = ({
645
645
  formItemStyle: t,
@@ -651,7 +651,7 @@ const fa = {
651
651
  }, [i(ge, {
652
652
  size: 16
653
653
  }, {
654
- default: () => [ee(), x.value?.collapseRender !== !1 && R && i(ke, null, [typeof x.value?.collapseRender == "function" ? x.value?.collapseRender(f) : i("span", {
654
+ default: () => [ee(), C.value?.collapseRender !== !1 && R && i(ke, null, [typeof C.value?.collapseRender == "function" ? C.value?.collapseRender(f) : i("span", {
655
655
  class: `${e.prefixCls}-a ${u.value}`,
656
656
  onClick: () => k(!f)
657
657
  }, [f ? "收起" : "展开", f ? i(hl, null, null) : i(ml, null, null)])])]
@@ -673,18 +673,18 @@ const fa = {
673
673
  const pe = (t) => {
674
674
  let f;
675
675
  const R = h.value ? Ke : Ke.Search, $ = je(t.field || {}, "rules");
676
- let T = null;
676
+ let w = null;
677
677
  switch (t.valueType) {
678
678
  case "text":
679
679
  f = i(R, M({
680
680
  style: {
681
681
  width: "100%"
682
682
  },
683
- value: r[t.name],
683
+ value: s[t.name],
684
684
  placeholder: t.placeholder || "请输入",
685
685
  allowClear: t.allowClear ?? !0,
686
- onChange: (s) => O(s.target.value, t),
687
- onSearch: (s) => W()
686
+ onChange: (r) => O(r.target.value, t),
687
+ onSearch: (r) => W()
688
688
  }, $), null);
689
689
  break;
690
690
  case "number":
@@ -692,9 +692,9 @@ const fa = {
692
692
  style: {
693
693
  width: "100%"
694
694
  },
695
- value: r[t.name],
695
+ value: s[t.name],
696
696
  placeholder: t.placeholder || "请输入",
697
- onChange: (s) => O(s, t)
697
+ onChange: (r) => O(r, t)
698
698
  }, $), null);
699
699
  break;
700
700
  case "numberRange":
@@ -703,8 +703,8 @@ const fa = {
703
703
  class: re(u.value, `${e.prefixCls}-search-input-compact`)
704
704
  }, {
705
705
  default: () => [i(Qe, {
706
- value: r[t.name]?.[0],
707
- onChange: (s) => O(s, t, {
706
+ value: s[t.name]?.[0],
707
+ onChange: (r) => O(r, t, {
708
708
  key: 0
709
709
  }),
710
710
  placeholder: V(t.placeholder) && t.placeholder?.[0] || "请输入"
@@ -712,8 +712,8 @@ const fa = {
712
712
  disabled: !0,
713
713
  placeholder: "~"
714
714
  }, null), i(Qe, {
715
- value: r[t.name]?.[1],
716
- onChange: (s) => O(s, t, {
715
+ value: s[t.name]?.[1],
716
+ onChange: (r) => O(r, t, {
717
717
  key: 1
718
718
  }),
719
719
  placeholder: V(t.placeholder) && t.placeholder?.[1] || "请输入"
@@ -721,33 +721,33 @@ const fa = {
721
721
  });
722
722
  break;
723
723
  case "select":
724
- T = i(Yl, M({
724
+ w = i(Yl, M({
725
725
  style: {
726
726
  width: "100%"
727
727
  },
728
- value: t.loading ? void 0 : r[t.name],
728
+ value: t.loading ? void 0 : s[t.name],
729
729
  optionFilterProp: "label",
730
730
  placeholder: t.placeholder || "请选择",
731
731
  showSearch: t.showSearch,
732
732
  allowClear: t.allowClear ?? !0,
733
- getPopupContainer: (s) => s && s.parentNode ? s.parentNode : s,
733
+ getPopupContainer: (r) => r && r.parentNode ? r.parentNode : r,
734
734
  notFoundContent: ie(t.loading),
735
- onChange: (s) => O(s, t),
735
+ onChange: (r) => O(r, t),
736
736
  options: t.loading ? [] : t?.valueEnum || []
737
737
  }, $), null);
738
738
  break;
739
739
  case "treeSelect":
740
- T = i(zl, M({
740
+ w = i(zl, M({
741
741
  style: {
742
742
  width: "100%"
743
743
  },
744
- value: r[t.name],
744
+ value: s[t.name],
745
745
  placeholder: t.placeholder || "请选择",
746
746
  allowClear: t.allowClear ?? !0,
747
747
  treeData: t.loading ? [] : t.valueEnum || [],
748
- getPopupContainer: (s) => s && s.parentNode ? s.parentNode : s,
748
+ getPopupContainer: (r) => r && r.parentNode ? r.parentNode : r,
749
749
  notFoundContent: ie(t.loading),
750
- onChange: (s) => O(s, t)
750
+ onChange: (r) => O(r, t)
751
751
  }, $), null);
752
752
  break;
753
753
  case "date":
@@ -755,14 +755,14 @@ const fa = {
755
755
  style: {
756
756
  width: "100%"
757
757
  },
758
- value: r[t.name] ? H(r[t.name]) : void 0,
759
- getPopupContainer: (s) => s && s.parentNode ? s.parentNode : s,
758
+ value: s[t.name] ? H(s[t.name]) : void 0,
759
+ getPopupContainer: (r) => r && r.parentNode ? r.parentNode : r,
760
760
  placeholder: t.placeholder || "请选择",
761
761
  allowClear: t.allowClear ?? !0,
762
762
  format: Pe(t.valueFormat, t.showTime),
763
763
  showTime: t.showTime,
764
764
  showToday: t.showToday || !0,
765
- onChange: (s) => O(s, t)
765
+ onChange: (r) => O(r, t)
766
766
  }, $), null);
767
767
  break;
768
768
  case "dateWeek":
@@ -770,11 +770,11 @@ const fa = {
770
770
  style: {
771
771
  width: "100%"
772
772
  },
773
- value: r[t.name] ? H(r[t.name], t.valueFormat || "YYYY-wo") : void 0,
774
- getPopupContainer: (s) => s && s.parentNode ? s.parentNode : s,
773
+ value: s[t.name] ? H(s[t.name], t.valueFormat || "YYYY-wo") : void 0,
774
+ getPopupContainer: (r) => r && r.parentNode ? r.parentNode : r,
775
775
  allowClear: t.allowClear ?? !0,
776
776
  placeholder: t.placeholder || "请选择",
777
- onChange: (s) => O(s, t)
777
+ onChange: (r) => O(r, t)
778
778
  }, $), null);
779
779
  break;
780
780
  case "dateMonth":
@@ -782,11 +782,11 @@ const fa = {
782
782
  style: {
783
783
  width: "100%"
784
784
  },
785
- value: r[t.name] ? H(r[t.name], t.valueFormat || "YYYY-MM") : void 0,
786
- getPopupContainer: (s) => s && s.parentNode ? s.parentNode : s,
785
+ value: s[t.name] ? H(s[t.name], t.valueFormat || "YYYY-MM") : void 0,
786
+ getPopupContainer: (r) => r && r.parentNode ? r.parentNode : r,
787
787
  allowClear: t.allowClear ?? !0,
788
788
  placeholder: t.placeholder || "请选择",
789
- onChange: (s) => O(s, t)
789
+ onChange: (r) => O(r, t)
790
790
  }, $), null);
791
791
  break;
792
792
  case "dateQuarter":
@@ -794,11 +794,11 @@ const fa = {
794
794
  style: {
795
795
  width: "100%"
796
796
  },
797
- value: r[t.name] ? H(r[t.name], t.valueFormat || "YYYY-QQ") : void 0,
798
- getPopupContainer: (s) => s && s.parentNode ? s.parentNode : s,
797
+ value: s[t.name] ? H(s[t.name], t.valueFormat || "YYYY-QQ") : void 0,
798
+ getPopupContainer: (r) => r && r.parentNode ? r.parentNode : r,
799
799
  allowClear: t.allowClear ?? !0,
800
800
  placeholder: t.placeholder || "请选择",
801
- onChange: (s) => O(s, t)
801
+ onChange: (r) => O(r, t)
802
802
  }, $), null);
803
803
  break;
804
804
  case "dateYear":
@@ -806,11 +806,11 @@ const fa = {
806
806
  style: {
807
807
  width: "100%"
808
808
  },
809
- value: r[t.name] ? H(r[t.name], t.valueFormat || "YYYY") : void 0,
810
- getPopupContainer: (s) => s && s.parentNode ? s.parentNode : s,
809
+ value: s[t.name] ? H(s[t.name], t.valueFormat || "YYYY") : void 0,
810
+ getPopupContainer: (r) => r && r.parentNode ? r.parentNode : r,
811
811
  allowClear: t.allowClear ?? !0,
812
812
  placeholder: t.placeholder || "请选择",
813
- onChange: (s) => O(s, t)
813
+ onChange: (r) => O(r, t)
814
814
  }, $), null);
815
815
  break;
816
816
  case "dateRange":
@@ -818,12 +818,12 @@ const fa = {
818
818
  style: {
819
819
  width: "100%"
820
820
  },
821
- value: r[t.name] && V(r[t.name]) && r[t.name]?.length === 2 ? St(r[t.name], Pe(t.valueFormat, t.showTime), "dayjs") : void 0,
822
- getPopupContainer: (s) => s && s.parentNode ? s.parentNode : s,
821
+ value: s[t.name] && V(s[t.name]) && s[t.name]?.length === 2 ? St(s[t.name], Pe(t.valueFormat, t.showTime), "dayjs") : void 0,
822
+ getPopupContainer: (r) => r && r.parentNode ? r.parentNode : r,
823
823
  placeholder: t.placeholder || ["开始日期", "结束日期"],
824
824
  format: Pe(t.valueFormat, t.showTime),
825
825
  showTime: t.showTime,
826
- onChange: (s) => O(s, t)
826
+ onChange: (r) => O(r, t)
827
827
  }, $), null);
828
828
  break;
829
829
  case "time":
@@ -831,22 +831,22 @@ const fa = {
831
831
  style: {
832
832
  width: "100%"
833
833
  },
834
- value: r[t.name] ? H(r[t.name], t.valueFormat || "HH:mm:ss") : void 0,
835
- getPopupContainer: (s) => s && s.parentNode ? s.parentNode : s,
834
+ value: s[t.name] ? H(s[t.name], t.valueFormat || "HH:mm:ss") : void 0,
835
+ getPopupContainer: (r) => r && r.parentNode ? r.parentNode : r,
836
836
  placeholder: t.placeholder || "请选择",
837
837
  allowClear: t.allowClear || t.allowClear === !1 ? t.allowClear : !0,
838
838
  use12Hours: t.use12Hours,
839
839
  format: t.valueFormat || "HH:mm:ss",
840
- onChange: (s) => O(s, t)
840
+ onChange: (r) => O(r, t)
841
841
  }, $), null);
842
842
  break;
843
843
  }
844
- return t.valueType && ["select", "treeSelect"].includes(t.valueType) && (f = t.request ? ae(t, T) : T), f;
844
+ return t.valueType && ["select", "treeSelect"].includes(t.valueType) && (f = t.request ? ae(t, w) : w), f;
845
845
  }, he = ({
846
846
  formItemStyle: t = {},
847
847
  item: f
848
848
  }) => {
849
- const R = U(f) ? f.props?.label : f.label, $ = (U(f) ? f.props?.labelWidth : f.labelWidth) || F.value?.width, T = (U(f) ? f.props?.labelAlign : f.labelAlign) || F.value?.align;
849
+ const R = U(f) ? f.props?.label : f.label, $ = (U(f) ? f.props?.labelWidth : f.labelWidth) || F.value?.width, w = (U(f) ? f.props?.labelAlign : f.labelAlign) || F.value?.align;
850
850
  return i("div", {
851
851
  class: `${e.prefixCls}-search-item`,
852
852
  style: {
@@ -854,7 +854,7 @@ const fa = {
854
854
  gap: F.value?.gap ? yt(F.value?.gap) : void 0
855
855
  }
856
856
  }, [R && i("div", {
857
- class: re(`${e.prefixCls}-search-item-label`, F.value?.colon === !1 && `${e.prefixCls}-search-item-label-no-colon`, T && `${e.prefixCls}-search-item-label-${T}`),
857
+ class: re(`${e.prefixCls}-search-item-label`, F.value?.colon === !1 && `${e.prefixCls}-search-item-label-no-colon`, w && `${e.prefixCls}-search-item-label-${w}`),
858
858
  style: {
859
859
  width: $ ? yt($) : void 0
860
860
  }
@@ -870,25 +870,25 @@ const fa = {
870
870
  }))]), R = {
871
871
  width: `${(100 - (v.value - 1) * 2) / v.value}%`
872
872
  };
873
- return f.map(($, T) => {
874
- const s = E(T, v.value, R);
873
+ return f.map(($, w) => {
874
+ const r = E(w, v.value, R);
875
875
  return f.length < v.value || m.value ? i(ke, null, [he({
876
- formItemStyle: s,
876
+ formItemStyle: r,
877
877
  item: $
878
- }), T === f.length - 1 && oe({
878
+ }), w === f.length - 1 && oe({
879
879
  formItemStyle: {
880
880
  flex: 1,
881
881
  justifyContent: "flex-end"
882
882
  },
883
883
  collapsed: m.value,
884
884
  collapseRender: !!m.value
885
- })]) : i(ke, null, [T < v.value - 1 && he({
886
- formItemStyle: s,
885
+ })]) : i(ke, null, [w < v.value - 1 && he({
886
+ formItemStyle: r,
887
887
  item: $
888
- }), T === v.value - 1 && (v.value - 1 === 0 || f.length === v.value) && he({
889
- formItemStyle: s,
888
+ }), w === v.value - 1 && (v.value - 1 === 0 || f.length === v.value) && he({
889
+ formItemStyle: r,
890
890
  item: $
891
- }), T === v.value - 1 && f.length >= v.value && oe({
891
+ }), w === v.value - 1 && f.length >= v.value && oe({
892
892
  formItemStyle: {
893
893
  flex: 1,
894
894
  justifyContent: "flex-end"
@@ -901,7 +901,7 @@ const fa = {
901
901
  return () => {
902
902
  const t = e.cardBordered && `${e.prefixCls}-search-border`;
903
903
  return n(i("div", {
904
- class: re(u.value, `${e.prefixCls}-search`, t, u.value, x.value?.className)
904
+ class: re(u.value, `${e.prefixCls}-search`, t, u.value, C.value?.className)
905
905
  }, [Te()]));
906
906
  };
907
907
  }
@@ -1002,7 +1002,7 @@ const Oe = (e) => {
1002
1002
  }) => {
1003
1003
  const {
1004
1004
  cacheColumns: o,
1005
- settingsAction: c
1005
+ settingsAction: d
1006
1006
  } = fe();
1007
1007
  return a ? i(de, {
1008
1008
  title: e
@@ -1010,16 +1010,16 @@ const Oe = (e) => {
1010
1010
  default: () => [i("span", {
1011
1011
  onClick: (h) => {
1012
1012
  h.stopPropagation(), h.preventDefault();
1013
- const x = p(o)?.find((d) => d.uuid === l)?.key || "", y = c?.columnsMap[x] || {};
1014
- if (typeof y.disable == "boolean" ? y.disable : y.disable?.icon) return;
1015
- const C = {
1016
- ...c?.columnsMap,
1017
- [x]: {
1018
- ...y,
1013
+ const C = p(o)?.find((c) => c.uuid === l)?.key || "", T = d?.columnsMap[C] || {};
1014
+ if (typeof T.disable == "boolean" ? T.disable : T.disable?.icon) return;
1015
+ const y = {
1016
+ ...d?.columnsMap,
1017
+ [C]: {
1018
+ ...T,
1019
1019
  fixed: n
1020
1020
  }
1021
1021
  };
1022
- c?.setColumnsMap(C, "fixed");
1022
+ d?.setColumnsMap(y, "fixed");
1023
1023
  }
1024
1024
  }, [u.default?.()])]
1025
1025
  }) : null;
@@ -1035,7 +1035,7 @@ const Oe = (e) => {
1035
1035
  setup(e) {
1036
1036
  const {
1037
1037
  cacheColumns: a
1038
- } = fe(), l = S(() => p(a)?.find((u) => u.uuid === e.treeKey)?.key || ""), n = S(() => l.value === "action" && e.autoScroll);
1038
+ } = fe(), l = x(() => p(a)?.find((u) => u.uuid === e.treeKey)?.key || ""), n = x(() => l.value === "action" && e.autoScroll);
1039
1039
  return () => {
1040
1040
  const u = i("span", {
1041
1041
  class: [`${e.className}-list-item-option`, e.hashId]
@@ -1084,11 +1084,11 @@ const Oe = (e) => {
1084
1084
  }
1085
1085
  },
1086
1086
  setup(e) {
1087
- const a = P(tt().uuid(15)), l = S(() => e.list && e.list.length > 0), n = P([]), u = P([]), {
1087
+ const a = P(tt().uuid(15)), l = x(() => e.list && e.list.length > 0), n = P([]), u = P([]), {
1088
1088
  cacheColumns: o,
1089
- slots: c,
1089
+ slots: d,
1090
1090
  settingsAction: h
1091
- } = fe(), x = (d, m) => d.map(({
1091
+ } = fe(), C = (c, m) => c.map(({
1092
1092
  key: b,
1093
1093
  children: v,
1094
1094
  uuid: F,
@@ -1108,14 +1108,14 @@ const Oe = (e) => {
1108
1108
  disableCheckbox: typeof k.disable == "boolean" ? k.disable : k.disable?.checkbox,
1109
1109
  isLeaf: !0
1110
1110
  };
1111
- return v && (L.children = x(v, k)), L;
1111
+ return v && (L.children = C(v, k)), L;
1112
1112
  });
1113
1113
  Ne(() => {
1114
- const d = x(e.list || []);
1115
- n.value = d, u.value = d.filter((m) => m.checked).map((m) => m.key), h?.operationType.value === "fixed" && (a.value = tt().uuid(15));
1114
+ const c = C(e.list || []);
1115
+ n.value = c, u.value = c.filter((m) => m.checked).map((m) => m.key), h?.operationType.value === "fixed" && (a.value = tt().uuid(15));
1116
1116
  });
1117
- const y = Oe((d, m, b) => {
1118
- const v = p(o).find((j) => j.uuid === d)?.key || "", F = p(o).find((j) => j.uuid === m)?.key || "", I = {
1117
+ const T = Oe((c, m, b) => {
1118
+ const v = p(o).find((j) => j.uuid === c)?.key || "", F = p(o).find((j) => j.uuid === m)?.key || "", I = {
1119
1119
  ...h?.columnsMap
1120
1120
  }, k = [...h.sortKeyColumns.value], E = k.findIndex((j) => j === v), L = k.findIndex((j) => j === F), W = b > E;
1121
1121
  if (E < 0)
@@ -1127,19 +1127,19 @@ const Oe = (e) => {
1127
1127
  order: D
1128
1128
  };
1129
1129
  }), h?.setColumnsMap(I, "drop"), h?.setSortKeyColumns(k);
1130
- }), r = Oe((d) => {
1131
- const m = d.node.key, b = p(o).find((k) => k.uuid === m)?.key || "", F = {
1130
+ }), s = Oe((c) => {
1131
+ const m = c.node.key, b = p(o).find((k) => k.uuid === m)?.key || "", F = {
1132
1132
  ...h?.columnsMap[b] || {}
1133
1133
  };
1134
- F.show = d.checked;
1134
+ F.show = c.checked;
1135
1135
  const I = {
1136
1136
  ...h?.columnsMap,
1137
1137
  [b]: F
1138
1138
  };
1139
1139
  h?.setColumnsMap(I, "show");
1140
- }), C = (d) => {
1141
- const m = p(o).find((b) => b.uuid === d.key);
1142
- return d.title || ol(c, "headerCell", {
1140
+ }), y = (c) => {
1141
+ const m = p(o).find((b) => b.uuid === c.key);
1142
+ return c.title || ol(d, "headerCell", {
1143
1143
  title: m.title,
1144
1144
  column: m
1145
1145
  }, () => [m.title]);
@@ -1154,21 +1154,21 @@ const Oe = (e) => {
1154
1154
  showLine: !1,
1155
1155
  checkedKeys: u.value,
1156
1156
  height: 280,
1157
- onDrop: (d) => {
1158
- const m = d.node.key, b = d.dragNode.key, {
1157
+ onDrop: (c) => {
1158
+ const m = c.node.key, b = c.dragNode.key, {
1159
1159
  dropPosition: v,
1160
1160
  dropToGap: F
1161
- } = d, I = v === -1 || !F ? v + 1 : v;
1162
- y(b, m, I);
1161
+ } = c, I = v === -1 || !F ? v + 1 : v;
1162
+ T(b, m, I);
1163
1163
  },
1164
- onCheck: (d, m) => r(m),
1164
+ onCheck: (c, m) => s(m),
1165
1165
  treeData: n.value
1166
1166
  }, {
1167
- title: (d) => {
1167
+ title: (c) => {
1168
1168
  const m = {
1169
- ...d,
1169
+ ...c,
1170
1170
  children: void 0,
1171
- title: C(d),
1171
+ title: y(c),
1172
1172
  autoScroll: h?.autoScroll?.value
1173
1173
  };
1174
1174
  return i(ma, M({
@@ -1191,34 +1191,34 @@ const Oe = (e) => {
1191
1191
  const {
1192
1192
  columns: a
1193
1193
  } = fe(), l = P([]), n = P([]), u = P([]), o = P([]);
1194
- N(() => a.value, (x) => {
1195
- l.value = [], n.value = [], u.value = [], x.forEach((y) => {
1196
- if (y.hideInSetting)
1194
+ N(() => a.value, (C) => {
1195
+ l.value = [], n.value = [], u.value = [], C.forEach((T) => {
1196
+ if (T.hideInSetting)
1197
1197
  return;
1198
1198
  const {
1199
- fixed: r,
1200
- show: C,
1201
- uuid: d
1202
- } = y;
1203
- if ((C || C === void 0) && d && o.value.push(d), r === "left") {
1204
- n.value.push(y);
1199
+ fixed: s,
1200
+ show: y,
1201
+ uuid: c
1202
+ } = T;
1203
+ if ((y || y === void 0) && c && o.value.push(c), s === "left") {
1204
+ n.value.push(T);
1205
1205
  return;
1206
1206
  }
1207
- if (r === "right") {
1208
- l.value.push(y);
1207
+ if (s === "right") {
1208
+ l.value.push(T);
1209
1209
  return;
1210
1210
  }
1211
- u.value.push(y);
1211
+ u.value.push(T);
1212
1212
  });
1213
1213
  }, {
1214
1214
  immediate: !0
1215
1215
  });
1216
- const c = S(() => l.value && l.value.length > 0), h = S(() => n.value && n.value.length > 0);
1216
+ const d = x(() => l.value && l.value.length > 0), h = x(() => n.value && n.value.length > 0);
1217
1217
  return () => i("div", {
1218
1218
  class: {
1219
1219
  [`${e.hashId}`]: !0,
1220
1220
  [`${e.className}-list`]: !0,
1221
- [`${e.className}-list-group`]: c.value || h.value
1221
+ [`${e.className}-list-group`]: d.value || h.value
1222
1222
  }
1223
1223
  }, [i(Je, {
1224
1224
  title: "固定在左侧",
@@ -1235,7 +1235,7 @@ const Oe = (e) => {
1235
1235
  draggable: e.draggable,
1236
1236
  checkable: e.checkable,
1237
1237
  title: "不固定",
1238
- showTitle: h.value || c.value,
1238
+ showTitle: h.value || d.value,
1239
1239
  className: e.className
1240
1240
  }, null), i(Je, {
1241
1241
  title: "固定在右侧",
@@ -1270,8 +1270,8 @@ const Oe = (e) => {
1270
1270
  } = He("ColumnSetting", [ha], a), {
1271
1271
  columns: u,
1272
1272
  settingsAction: o
1273
- } = fe(), c = Oe((C = !0) => {
1274
- const d = {}, m = (b) => {
1273
+ } = fe(), d = Oe((y = !0) => {
1274
+ const c = {}, m = (b) => {
1275
1275
  b.forEach(({
1276
1276
  key: v,
1277
1277
  fixed: F,
@@ -1279,33 +1279,33 @@ const Oe = (e) => {
1279
1279
  children: k
1280
1280
  }) => {
1281
1281
  const E = Pt(v, I);
1282
- E && (d[E] = {
1283
- show: C,
1282
+ E && (c[E] = {
1283
+ show: y,
1284
1284
  fixed: F
1285
1285
  }), k && m(k);
1286
1286
  });
1287
1287
  };
1288
- m(u.value), o?.setColumnsMap(d, "show");
1289
- }), h = Oe((C) => {
1290
- C.target.checked ? c() : c(!1);
1291
- }), x = Oe(() => {
1288
+ m(u.value), o?.setColumnsMap(c, "show");
1289
+ }), h = Oe((y) => {
1290
+ y.target.checked ? d() : d(!1);
1291
+ }), C = Oe(() => {
1292
1292
  o?.setColumnsMap(o?.cacheColumnsMap, "fixed");
1293
- }), y = S(() => (
1293
+ }), T = x(() => (
1294
1294
  // @ts-ignore
1295
- Object.values(o?.columnsMap).filter((C) => !C || C.show === !1)
1296
- )), r = S(() => p(y).length > 0 && p(y).length !== u.value.length);
1295
+ Object.values(o?.columnsMap).filter((y) => !y || y.show === !1)
1296
+ )), s = x(() => p(T).length > 0 && p(T).length !== u.value.length);
1297
1297
  return () => l(i(Ll, {
1298
1298
  arrowPointAtCenter: !0,
1299
1299
  title: i("div", {
1300
1300
  class: [`${a}-title`, n.value]
1301
1301
  }, [i(Wl, {
1302
- indeterminate: r.value,
1303
- checked: p(y).length === 0 && p(y).length !== u.value.length,
1304
- onChange: (C) => h(C)
1302
+ indeterminate: s.value,
1303
+ checked: p(T).length === 0 && p(T).length !== u.value.length,
1304
+ onChange: (y) => h(y)
1305
1305
  }, {
1306
1306
  default: () => [Ae("列展示")]
1307
1307
  }), e.checkedReset ? i("a", {
1308
- onClick: x,
1308
+ onClick: C,
1309
1309
  class: [`${a}-action-rest-button`, n.value]
1310
1310
  }, [Ae("重置")]) : null, e?.extra ? i(ge, {
1311
1311
  size: 12,
@@ -1417,19 +1417,19 @@ const Mt = /* @__PURE__ */ ne({
1417
1417
  hashId: l
1418
1418
  } = He("ListToolBar", [pa], e.prefixCls), n = ya(), {
1419
1419
  isMobile: u
1420
- } = fe(), o = S(() => !!(e.titleTip || e.headerTitle || e.actions?.length)), c = S(() => !!(e.settings?.length || e.optionsExtra)), h = S(() => !!(e.titleTip || e.headerTitle)), x = S(() => {
1421
- let d;
1420
+ } = fe(), o = x(() => !!(e.titleTip || e.headerTitle || e.actions?.length)), d = x(() => !!(e.settings?.length || e.optionsExtra)), h = x(() => !!(e.titleTip || e.headerTitle)), C = x(() => {
1421
+ let c;
1422
1422
  return Array.isArray(e.actions) ? e.actions?.length < 1 ? null : i(ge, {
1423
1423
  align: "center"
1424
- }, wt(d = e.actions.map((m, b) => U(m) ? Ve(m, {
1424
+ }, wt(c = e.actions.map((m, b) => U(m) ? Ve(m, {
1425
1425
  key: b,
1426
1426
  ...m?.props
1427
1427
  }) : i("template", {
1428
1428
  key: b
1429
- }, [m]))) ? d : {
1430
- default: () => [d]
1429
+ }, [m]))) ? c : {
1430
+ default: () => [c]
1431
1431
  }) : e.actions;
1432
- }), y = We(() => !o.value && c.value ? i("div", {
1432
+ }), T = We(() => !o.value && d.value ? i("div", {
1433
1433
  class: `${e.prefixCls}-left ${l.value}`
1434
1434
  }, null) : h.value ? i(ge, {
1435
1435
  class: `${e.prefixCls}-left ${l.value}`
@@ -1440,18 +1440,18 @@ const Mt = /* @__PURE__ */ ne({
1440
1440
  title: e.titleTipText
1441
1441
  }, {
1442
1442
  default: () => [le(e.titleTip) && e.titleTip ? i(yl, null, null) : e.titleTip]
1443
- })]), x.value && i("div", {
1443
+ })]), C.value && i("div", {
1444
1444
  class: `${e.prefixCls}-actions ${l.value}`
1445
- }, [x.value])]
1445
+ }, [C.value])]
1446
1446
  }) : i(ge, {
1447
1447
  class: `${e.prefixCls}-left ${l.value}`
1448
1448
  }, {
1449
- default: () => [x.value && i("div", {
1449
+ default: () => [C.value && i("div", {
1450
1450
  class: `${e.prefixCls}-actions`
1451
- }, [x.value])]
1452
- }), [() => o.value, () => c.value, () => h.value, () => e.prefixCls, () => e.headerTitle, () => e.titleTipText, () => e.titleTip]), r = We(() => {
1453
- let d;
1454
- return c.value ? i(ge, {
1451
+ }, [C.value])]
1452
+ }), [() => o.value, () => d.value, () => h.value, () => e.prefixCls, () => e.headerTitle, () => e.titleTipText, () => e.titleTip]), s = We(() => {
1453
+ let c;
1454
+ return d.value ? i(ge, {
1455
1455
  size: 16,
1456
1456
  class: `${e.prefixCls}-right ${l.value}`,
1457
1457
  align: n.value.lg ? "center" : "end",
@@ -1461,30 +1461,30 @@ const Mt = /* @__PURE__ */ ne({
1461
1461
  size: 12,
1462
1462
  align: "center",
1463
1463
  class: `${e.prefixCls}-setting-items`
1464
- }, wt(d = e.settings.map((m, b) => {
1464
+ }, wt(c = e.settings.map((m, b) => {
1465
1465
  const v = ba(m);
1466
1466
  return i("div", {
1467
1467
  key: b,
1468
1468
  class: `${e.prefixCls}-setting-item`
1469
1469
  }, [v]);
1470
- })) ? d : {
1471
- default: () => [d]
1470
+ })) ? c : {
1471
+ default: () => [c]
1472
1472
  }) : null]
1473
1473
  }) : null;
1474
- }, [() => n.value, () => c.value, () => e.prefixCls, () => h.value, () => x.value, () => e.settings]), C = We(() => {
1475
- if (!c.value && !o.value) return null;
1476
- const d = {
1474
+ }, [() => n.value, () => d.value, () => e.prefixCls, () => h.value, () => C.value, () => e.settings]), y = We(() => {
1475
+ if (!d.value && !o.value) return null;
1476
+ const c = {
1477
1477
  [`${l.value}`]: !0,
1478
1478
  [`${e.prefixCls}-container`]: !0,
1479
1479
  [`${e.prefixCls}-container-mobile`]: u.value
1480
1480
  };
1481
1481
  return i("div", {
1482
- class: d
1483
- }, [y.value, r.value]);
1484
- }, [() => u.value, () => o.value, () => c.value, () => y.value, () => e.prefixCls, () => r.value]);
1482
+ class: c
1483
+ }, [T.value, s.value]);
1484
+ }, [() => u.value, () => o.value, () => d.value, () => T.value, () => e.prefixCls, () => s.value]);
1485
1485
  return () => a(i("div", {
1486
1486
  class: `${e.prefixCls} ${l.value}`
1487
- }, [C.value]));
1487
+ }, [y.value]));
1488
1488
  }
1489
1489
  });
1490
1490
  Mt.inheritAttrs = !1;
@@ -1644,7 +1644,7 @@ function Ra(e, a = !0, l) {
1644
1644
  $a() ? il(e, l) : a ? e() : ul(e);
1645
1645
  }
1646
1646
  function Fa(e) {
1647
- const a = S(() => e.draggable), l = S(() => e.neverScroll), n = S(() => e.autoScroll);
1647
+ const a = x(() => e.draggable), l = x(() => e.neverScroll), n = x(() => e.autoScroll);
1648
1648
  return {
1649
1649
  draggable: a,
1650
1650
  neverScroll: l,
@@ -1652,7 +1652,7 @@ function Fa(e) {
1652
1652
  };
1653
1653
  }
1654
1654
  function Ba({ scroll: e, columns: a, breakpoint: l, draggable: n, autoScroll: u, neverScroll: o }) {
1655
- const c = P([]), h = P([]);
1655
+ const d = P([]), h = P([]);
1656
1656
  N([
1657
1657
  () => e.value,
1658
1658
  () => a.value,
@@ -1662,24 +1662,24 @@ function Ba({ scroll: e, columns: a, breakpoint: l, draggable: n, autoScroll: u,
1662
1662
  () => u.value,
1663
1663
  () => o.value
1664
1664
  ], () => {
1665
- const b = r(ve(a.value));
1666
- Ye(b, ve(c.value)) || (c.value = Z(b)), Ye(b, ve(h.value)) || (h.value = Z(b));
1665
+ const b = s(ve(a.value));
1666
+ Ye(b, ve(d.value)) || (d.value = Z(b)), Ye(b, ve(h.value)) || (h.value = Z(b));
1667
1667
  }, {
1668
1668
  deep: !0,
1669
1669
  immediate: !0
1670
1670
  });
1671
- const x = S(() => {
1672
- const b = y(p(c).filter((I) => I.fixed === "left")), v = y(p(c).filter((I) => I.fixed !== "left" && I.fixed !== "right")), F = y(p(c).filter((I) => I.fixed === "right"));
1671
+ const C = x(() => {
1672
+ const b = T(p(d).filter((I) => I.fixed === "left")), v = T(p(d).filter((I) => I.fixed !== "left" && I.fixed !== "right")), F = T(p(d).filter((I) => I.fixed === "right"));
1673
1673
  return [
1674
1674
  ...b,
1675
1675
  ...v,
1676
1676
  ...F
1677
1677
  ];
1678
1678
  });
1679
- function y(b) {
1679
+ function T(b) {
1680
1680
  return b.sort((v, F) => Rl(v, F, "order", 0));
1681
1681
  }
1682
- function r(b) {
1682
+ function s(b) {
1683
1683
  return Z(b).map((v, F) => {
1684
1684
  if (v.dataIndex === "action" || F === b.length - 1 ? v.resizable = !1 : v.resizable = le(v.resizable) ? v.resizable : !!(De(v.width) && p(n)), !v.width || p(o))
1685
1685
  return v;
@@ -1693,18 +1693,18 @@ function Ba({ scroll: e, columns: a, breakpoint: l, draggable: n, autoScroll: u,
1693
1693
  return v;
1694
1694
  });
1695
1695
  }
1696
- function C(b, v) {
1697
- c.value = c.value.map((F) => (F.uuid === v.uuid && (F.width = b), F));
1696
+ function y(b, v) {
1697
+ d.value = d.value.map((F) => (F.uuid === v.uuid && (F.width = b), F));
1698
1698
  }
1699
- function d(b) {
1699
+ function c(b) {
1700
1700
  if (b.length <= 0) {
1701
- c.value = [];
1701
+ d.value = [];
1702
1702
  return;
1703
1703
  }
1704
- Ye(r(b), ve(c.value)) || (c.value = r(b));
1704
+ Ye(s(b), ve(d.value)) || (d.value = s(b));
1705
1705
  }
1706
1706
  function m(b) {
1707
- d(Z(ve(a.value)).map((v) => {
1707
+ c(Z(ve(a.value)).map((v) => {
1708
1708
  const F = v.key ? {
1709
1709
  show: b[v.key]?.show,
1710
1710
  fixed: b[v.key]?.fixed,
@@ -1715,63 +1715,63 @@ function Ba({ scroll: e, columns: a, breakpoint: l, draggable: n, autoScroll: u,
1715
1715
  }
1716
1716
  return {
1717
1717
  breakpoint: l,
1718
- proColumns: x,
1718
+ proColumns: C,
1719
1719
  cacheProColumns: h,
1720
- setColumns: d,
1720
+ setColumns: c,
1721
1721
  changeColumns: m,
1722
- resizeColumnWidth: C
1722
+ resizeColumnWidth: y
1723
1723
  };
1724
1724
  }
1725
1725
  function Pa({ columns: e, columnsState: a, changeColumns: l }) {
1726
- const n = P(void 0), u = be({}), o = be({}), c = be({}), h = P([]);
1726
+ const n = P(void 0), u = be({}), o = be({}), d = be({}), h = P([]);
1727
1727
  N(() => e.value, () => {
1728
- p(e)?.forEach(({ show: C, key: d, fixed: m }, b) => {
1729
- const v = Pt(d, b);
1730
- v && (c[v] = { show: C === void 0 ? !0 : C, fixed: m });
1728
+ p(e)?.forEach(({ show: y, key: c, fixed: m }, b) => {
1729
+ const v = Pt(c, b);
1730
+ v && (d[v] = { show: y === void 0 ? !0 : y, fixed: m });
1731
1731
  });
1732
- const r = p(e).map((C) => C.key);
1733
- y(r);
1732
+ const s = p(e).map((y) => y.key);
1733
+ T(s);
1734
1734
  }, { deep: !0, immediate: !0 }), Ne(() => {
1735
- const r = {
1735
+ const s = {
1736
1736
  ...p(a)?.value,
1737
- ...p(c)
1737
+ ...p(d)
1738
1738
  };
1739
- Object.assign(u, r), Object.assign(o, r);
1739
+ Object.assign(u, s), Object.assign(o, s);
1740
1740
  });
1741
- function x(r, C) {
1742
- n.value = C, Object.assign(u, r), l?.(u, C === "fixed");
1741
+ function C(s, y) {
1742
+ n.value = y, Object.assign(u, s), l?.(u, y === "fixed");
1743
1743
  }
1744
- function y(r) {
1745
- h.value = r;
1744
+ function T(s) {
1745
+ h.value = s;
1746
1746
  }
1747
1747
  return {
1748
1748
  columnsMap: u,
1749
1749
  operationType: n,
1750
- setColumnsMap: x,
1750
+ setColumnsMap: C,
1751
1751
  sortKeyColumns: h,
1752
1752
  cacheColumnsMap: o,
1753
- setSortKeyColumns: y
1753
+ setSortKeyColumns: T
1754
1754
  };
1755
1755
  }
1756
1756
  function Ia(e, a) {
1757
- const l = S(() => a), n = P(), u = P(e);
1757
+ const l = x(() => a), n = P(), u = P(e);
1758
1758
  function o() {
1759
1759
  n.value && clearTimeout(n.value);
1760
1760
  }
1761
- async function c(...h) {
1762
- return l.value === 0 || l.value === void 0 ? u.value(...h) : (o(), new Promise(async (x) => {
1763
- h[0]?.immediate ? x(await u.value(...h)) : n.value = setTimeout(async () => {
1764
- x(await u.value(...h));
1761
+ async function d(...h) {
1762
+ return l.value === 0 || l.value === void 0 ? u.value(...h) : (o(), new Promise(async (C) => {
1763
+ h[0]?.immediate ? C(await u.value(...h)) : n.value = setTimeout(async () => {
1764
+ C(await u.value(...h));
1765
1765
  }, l.value);
1766
1766
  }));
1767
1767
  }
1768
1768
  return Jl(o), {
1769
1769
  cancel: o,
1770
- run: c
1770
+ run: d
1771
1771
  };
1772
1772
  }
1773
1773
  function ka(e) {
1774
- const a = S(() => e.rowKey), l = S(() => e.polling), n = S(() => e.debounceTime), u = S(() => e.dataSource);
1774
+ const a = x(() => e.rowKey), l = x(() => e.polling), n = x(() => e.debounceTime), u = x(() => e.dataSource);
1775
1775
  return {
1776
1776
  rowKey: a,
1777
1777
  polling: l,
@@ -1781,32 +1781,32 @@ function ka(e) {
1781
1781
  dataSource: u
1782
1782
  };
1783
1783
  }
1784
- function Aa({ rowKey: e, polling: a, request: l, postData: n, dataSource: u, waitRequest: o, debounceTime: c }, { search: h, columns: x, loading: y, setLoading: r, setColumns: C, removeRowKeys: d, syncSelectedRows: m, formParamsRef: b, setPagination: v, paginationInfo: F, onBeforeSearchSubmit: I, hasCustomRender: k }, E) {
1785
- const L = P(), W = P(!0), O = P(!1), j = P(!1), D = P([]), ee = P(), oe = S(() => q(h.value) ? h.value?.manualRequest : !1), ie = async (T = {}) => {
1786
- const { pagination: s, filters: K = {}, sorter: G = {}, removeKeys: te = [], isPolling: Ce = !1 } = T;
1787
- if (!l || !Ie(l) || p(o) && y.value || O.value)
1784
+ function Aa({ rowKey: e, polling: a, request: l, postData: n, dataSource: u, waitRequest: o, debounceTime: d }, { search: h, columns: C, loading: T, setLoading: s, setColumns: y, removeRowKeys: c, syncSelectedRows: m, formParamsRef: b, setPagination: v, paginationInfo: F, onBeforeSearchSubmit: I, hasCustomRender: k }, E) {
1785
+ const L = P(), W = P(!0), O = P(!1), j = P(!1), D = P([]), ee = P(), oe = x(() => q(h.value) ? h.value?.manualRequest : !1), ie = async (w = {}) => {
1786
+ const { pagination: r, filters: K = {}, sorter: G = {}, removeKeys: te = [], isPolling: Ce = !1 } = w;
1787
+ if (!l || !Ie(l) || p(o) && T.value || O.value)
1788
1788
  return u.value || [];
1789
- if (O.value = !0, !Ce || p(o) || W.value ? r(!0) : t(!0), p(o)) {
1789
+ if (O.value = !0, !Ce || p(o) || W.value ? s(!0) : t(!0), p(o)) {
1790
1790
  W.value = !1, O.value = !1;
1791
1791
  return;
1792
1792
  }
1793
- s && v(s);
1793
+ r && v(r);
1794
1794
  try {
1795
1795
  let Y = {};
1796
- if (le(s) && !s || le(F))
1796
+ if (le(r) && !r || le(F))
1797
1797
  Y = {};
1798
1798
  else {
1799
1799
  const { current: _ = 1, pageSize: ye = 10, total: J } = p(F) || {};
1800
- Y.pageNum = Pl({ current: _, pageSize: ye, total: J }, te.length), te.length && d(te), Y.pageSize = ye;
1800
+ Y.pageNum = Pl({ current: _, pageSize: ye, total: J }, te.length), te.length && c(te), Y.pageSize = ye;
1801
1801
  }
1802
1802
  const Ee = q(G) ? [G] : G;
1803
1803
  Ee.forEach((_) => {
1804
1804
  const ye = _?.columnKey || _?.field;
1805
- _ && _?.order ? C(p(x).map((J) => (J.dataIndex === ye ? J.sortOrder = _?.order : J.sortOrder = null, J))) : _ && C(p(x).map((J) => (J.dataIndex === ye && (J.sortOrder = null), J)));
1805
+ _ && _?.order ? y(p(C).map((J) => (J.dataIndex === ye ? J.sortOrder = _?.order : J.sortOrder = null, J))) : _ && y(p(C).map((J) => (J.dataIndex === ye && (J.sortOrder = null), J)));
1806
1806
  });
1807
1807
  let $e = {
1808
1808
  ...Y || {},
1809
- ...T.params,
1809
+ ...w.params,
1810
1810
  ...b
1811
1811
  };
1812
1812
  I && Ie(I) && ($e = await I($e, G, K));
@@ -1823,16 +1823,16 @@ function Aa({ rowKey: e, polling: a, request: l, postData: n, dataSource: u, wai
1823
1823
  } catch (Y) {
1824
1824
  D.value === void 0 && R([]), E("requestError", Y);
1825
1825
  } finally {
1826
- W.value = !1, r(!1);
1826
+ W.value = !1, s(!1);
1827
1827
  }
1828
1828
  return [];
1829
- }, ae = Ia(async (T) => {
1829
+ }, ae = Ia(async (w) => {
1830
1830
  ee.value && clearTimeout(ee.value);
1831
- const s = await ie(T), K = Fl(a.value, s);
1831
+ const r = await ie(w), K = Fl(a.value, r);
1832
1832
  return K && !L.value && (ee.value = setTimeout(() => {
1833
- ae.run({ ...T, isPolling: K });
1834
- }, Math.max(K, 2e3))), s;
1835
- }, c.value || 10);
1833
+ ae.run({ ...w, isPolling: K });
1834
+ }, Math.max(K, 2e3))), r;
1835
+ }, d.value || 10);
1836
1836
  rl(() => {
1837
1837
  L.value = !0, clearTimeout(ee.value);
1838
1838
  }), cl(() => {
@@ -1850,22 +1850,22 @@ function Aa({ rowKey: e, polling: a, request: l, postData: n, dataSource: u, wai
1850
1850
  function pe() {
1851
1851
  we(l) ? (!W.value || !a.value) && ae.run({ isPolling: !1 }) : R(u.value || []);
1852
1852
  }
1853
- const he = S(() => {
1853
+ const he = x(() => {
1854
1854
  if (k.value)
1855
1855
  return p(D);
1856
- const T = x.value.filter((s) => s.show || s.show === void 0);
1857
- return !p(D) || !T || T.length === 0 ? [] : p(D);
1858
- }), Te = S(() => p(D).some((T) => V(T.children) && T.children.length > 0));
1859
- function t(T) {
1860
- j.value = T;
1856
+ const w = C.value.filter((r) => r.show || r.show === void 0);
1857
+ return !p(D) || !w || w.length === 0 ? [] : p(D);
1858
+ }), Te = x(() => p(D).some((w) => V(w.children) && w.children.length > 0));
1859
+ function t(w) {
1860
+ j.value = w;
1861
1861
  }
1862
- function f(T, s, K, G) {
1863
- ae.run({ pagination: T, filters: s, sorter: K, extra: G, isPolling: !1 }), E("change", T, s, K, G);
1862
+ function f(w, r, K, G) {
1863
+ ae.run({ pagination: w, filters: r, sorter: K, extra: G, isPolling: !1 }), E("change", w, r, K, G);
1864
1864
  }
1865
- function R(T) {
1866
- const s = Bl(Z(T), p(F.value));
1867
- if (!Ye(s, D.value) && (D.value = s, !l || !Ie(l))) {
1868
- const K = s.length || 0;
1865
+ function R(w) {
1866
+ const r = Bl(Z(w), p(F.value));
1867
+ if (!Ye(r, D.value) && (D.value = r, !l || !Ie(l))) {
1868
+ const K = r.length || 0;
1869
1869
  K !== p(F)?.total && v({
1870
1870
  total: K
1871
1871
  });
@@ -1875,20 +1875,20 @@ function Aa({ rowKey: e, polling: a, request: l, postData: n, dataSource: u, wai
1875
1875
  dataSource: he,
1876
1876
  isTreeDataRef: Te,
1877
1877
  reSetDataList: R,
1878
- changeDataValue: ({ key: T, params: s, value: K, type: G = "update" }) => {
1879
- const te = T ?? e.value, Ce = s?.[te] ?? K;
1878
+ changeDataValue: ({ key: w, params: r, value: K, type: G = "update" }) => {
1879
+ const te = w ?? e.value, Ce = r?.[te] ?? K;
1880
1880
  switch (G) {
1881
1881
  case "update":
1882
- te && Ce && s && (D.value = D.value.map((Y) => Ce === Y[te] ? It(Y, s, {
1882
+ te && Ce && r && (D.value = D.value.map((Y) => Ce === Y[te] ? It(Y, r, {
1883
1883
  omitNil: !1,
1884
1884
  omitEmpty: !1
1885
- }) : Y)), Le(!!s, "params is required");
1885
+ }) : Y)), Le(!!r, "params is required");
1886
1886
  break;
1887
1887
  case "push":
1888
- s && D.value.push(s), Le(!!s, "params is required");
1888
+ r && D.value.push(r), Le(!!r, "params is required");
1889
1889
  break;
1890
1890
  case "unshift":
1891
- s && D.value.unshift(s), Le(!!s, "params is required");
1891
+ r && D.value.unshift(r), Le(!!r, "params is required");
1892
1892
  break;
1893
1893
  case "delete":
1894
1894
  te && (D.value = D.value.filter((Y) => K !== Y[te]));
@@ -1896,8 +1896,8 @@ function Aa({ rowKey: e, polling: a, request: l, postData: n, dataSource: u, wai
1896
1896
  }
1897
1897
  },
1898
1898
  handleTableChange: f,
1899
- reload: async (T) => {
1900
- we(l) ? await ae.run({ ...T, isPolling: !1 }) : E("reload");
1899
+ reload: async (w) => {
1900
+ we(l) ? await ae.run({ ...w, isPolling: !1 }) : E("reload");
1901
1901
  }
1902
1902
  };
1903
1903
  }
@@ -1906,7 +1906,7 @@ function Oa({ emit: e, loading: a }) {
1906
1906
  N(() => a.value, (o) => {
1907
1907
  l.value = le(o) ? o : q(o) ? o?.spinning : l.value;
1908
1908
  });
1909
- const n = S(() => l.value);
1909
+ const n = x(() => l.value);
1910
1910
  function u(o) {
1911
1911
  l.value = o, e("loadingChange", !0);
1912
1912
  }
@@ -1925,14 +1925,14 @@ function Da({
1925
1925
  const o = Ie(a) ? {
1926
1926
  itemRender: ({
1927
1927
  page: h,
1928
- type: x,
1929
- originalElement: y
1928
+ type: C,
1929
+ originalElement: T
1930
1930
  }) => a ? a({
1931
1931
  page: h,
1932
- type: x,
1933
- originalElement: y
1932
+ type: C,
1933
+ originalElement: T
1934
1934
  }) : null
1935
- } : null, c = {
1935
+ } : null, d = {
1936
1936
  current: 1,
1937
1937
  pageSize: 10,
1938
1938
  size: "default",
@@ -1942,9 +1942,9 @@ function Da({
1942
1942
  ...e.value || {},
1943
1943
  ...o || {}
1944
1944
  };
1945
- e.value?.showTotal || (c.showTotal = (h) => `共${h < c.pageSize ? 1 : Math.ceil(h / (c.pageSize || 10))}页 ${h}条记录`), n.value = c, Object.assign(l, {
1946
- pageNum: c.current,
1947
- pageSize: c.pageSize
1945
+ e.value?.showTotal || (d.showTotal = (h) => `共${h < d.pageSize ? 1 : Math.ceil(h / (d.pageSize || 10))}页 ${h}条记录`), n.value = d, Object.assign(l, {
1946
+ pageNum: d.current,
1947
+ pageSize: d.pageSize
1948
1948
  });
1949
1949
  }, {
1950
1950
  deep: 1,
@@ -1952,10 +1952,10 @@ function Da({
1952
1952
  });
1953
1953
  function u(o) {
1954
1954
  if (q(n.value) && q(o)) {
1955
- const c = {};
1955
+ const d = {};
1956
1956
  Object.keys(o).forEach((h) => {
1957
- Object.prototype.hasOwnProperty.call(o, h) && n.value[h] === o[h] || (c[h] = o[h]);
1958
- }), Object.keys(c).length > 0 && (Object.assign(n.value, c), ja(c) && Object.assign(l, c));
1957
+ Object.prototype.hasOwnProperty.call(o, h) && n.value[h] === o[h] || (d[h] = o[h]);
1958
+ }), Object.keys(d).length > 0 && (Object.assign(n.value, d), ja(d) && Object.assign(l, d));
1959
1959
  }
1960
1960
  }
1961
1961
  return {
@@ -1972,20 +1972,20 @@ function ja(e) {
1972
1972
  }
1973
1973
  function Na(e, a) {
1974
1974
  const l = P([]), n = P([]);
1975
- N(() => a.value?.selectedRows, (r) => {
1976
- n.value = Z(r || []);
1975
+ N(() => a.value?.selectedRows, (s) => {
1976
+ n.value = Z(s || []);
1977
1977
  }, {
1978
1978
  deep: !0,
1979
1979
  immediate: !0
1980
- }), N(() => a.value?.selectedRowKeys, (r) => {
1981
- l.value = Il([...r || []]);
1980
+ }), N(() => a.value?.selectedRowKeys, (s) => {
1981
+ l.value = Il([...s || []]);
1982
1982
  }, {
1983
1983
  deep: !0,
1984
1984
  immediate: !0
1985
1985
  });
1986
- const u = (r, C) => {
1987
- const d = a.value?.type || "checkbox";
1988
- e.value && (C ? r?.[e.value] && d === "checkbox" ? (l.value.push(r[e.value]), n.value.push(r)) : (l.value = [r[e.value]], n.value = [r]) : (l.value = l.value.filter((m) => m !== r[e.value]), n.value = n.value.filter((m) => m[e.value] !== r[e.value])));
1986
+ const u = (s, y) => {
1987
+ const c = a.value?.type || "checkbox";
1988
+ e.value && (y ? s?.[e.value] && c === "checkbox" ? (l.value.push(s[e.value]), n.value.push(s)) : (l.value = [s[e.value]], n.value = [s]) : (l.value = l.value.filter((m) => m !== s[e.value]), n.value = n.value.filter((m) => m[e.value] !== s[e.value])));
1989
1989
  }, o = () => {
1990
1990
  a.value && a.value?.onChange?.(l.value, n.value);
1991
1991
  };
@@ -1993,18 +1993,18 @@ function Na(e, a) {
1993
1993
  selectedKeys: l,
1994
1994
  selectedItems: n,
1995
1995
  selectRowKey: u,
1996
- selectAllRowKey: (r, C, d) => {
1997
- e.value && (r ? C.map((m) => (l.value.every((b) => b !== m?.[e.value]) && m?.[e.value] && (l.value.push(m[e.value]), n.value.push(m)), m)) : d.map((m) => (l.value.includes(m?.[e.value]) && (l.value = l.value.filter((b) => b !== m[e.value]), n.value = n.value.filter((b) => b[e.value] !== m[e.value])), m)));
1996
+ selectAllRowKey: (s, y, c) => {
1997
+ e.value && (s ? y.map((m) => (l.value.every((b) => b !== m?.[e.value]) && m?.[e.value] && (l.value.push(m[e.value]), n.value.push(m)), m)) : c.map((m) => (l.value.includes(m?.[e.value]) && (l.value = l.value.filter((b) => b !== m[e.value]), n.value = n.value.filter((b) => b[e.value] !== m[e.value])), m)));
1998
1998
  },
1999
- removeRowKeys: (r) => {
2000
- l.value = l.value.filter((C) => !r.includes(C)), n.value = n.value.filter((C) => !r.includes(C?.[e.value || ""])), o();
1999
+ removeRowKeys: (s) => {
2000
+ l.value = l.value.filter((y) => !s.includes(y)), n.value = n.value.filter((y) => !s.includes(y?.[e.value || ""])), o();
2001
2001
  },
2002
2002
  changeRowKey: o,
2003
- syncSelectedRows: (r) => {
2003
+ syncSelectedRows: (s) => {
2004
2004
  if (e.value && l.value.length !== n.value.length) {
2005
- const C = n.value.map((m) => m[e.value]), d = l.value.filter((m) => !C.includes(m));
2006
- r.forEach((m) => {
2007
- d.includes(m[e.value]) && n.value.push(Z(m));
2005
+ const y = n.value.map((m) => m[e.value]), c = l.value.filter((m) => !y.includes(m));
2006
+ s.forEach((m) => {
2007
+ c.includes(m[e.value]) && n.value.push(Z(m));
2008
2008
  });
2009
2009
  }
2010
2010
  },
@@ -2017,71 +2017,71 @@ function Ea(e) {
2017
2017
  const a = {};
2018
2018
  return e.forEach((l) => {
2019
2019
  let n = l.initialValue;
2020
- const u = ["select", "number"], o = ["date", "time", "dateRange"], c = ["treeSelect", "numberRange"];
2021
- l.valueType ? !n && u.includes(l.valueType) ? n = void 0 : !n && o.includes(l.valueType) ? n = null : !n && c.includes(l.valueType) ? n = [] : n || (n = "") : n || (n = ""), l.name === "dateRange" ? (a[l.rangeStartName || "start"] = n ? n[0] : null, a[l.rangeEndName || "end"] = n ? n[1] : null) : l.name && (a[l.name] = n);
2020
+ const u = ["select", "number"], o = ["date", "time", "dateRange"], d = ["treeSelect", "numberRange"];
2021
+ l.valueType ? !n && u.includes(l.valueType) ? n = void 0 : !n && o.includes(l.valueType) ? n = null : !n && d.includes(l.valueType) ? n = [] : n || (n = "") : n || (n = ""), l.name === "dateRange" ? (a[l.rangeStartName || "start"] = n ? n[0] : null, a[l.rangeEndName || "end"] = n ? n[1] : null) : l.name && (a[l.name] = n);
2022
2022
  }), a;
2023
2023
  }
2024
2024
  function Ma({ searchMap: e, params: a, columns: l, setPagination: n }) {
2025
- const u = be({}), o = be({}), c = P([]);
2026
- function h(r) {
2027
- r.forEach((C) => {
2028
- c.value.some((d) => d.name === C.name) ? c.value = c.value.map((d) => d.name === C.name ? {
2029
- ...d,
2030
- ...C
2031
- } : d) : c.value.push(C);
2025
+ const u = be({}), o = be({}), d = P([]);
2026
+ function h(s) {
2027
+ s.forEach((y) => {
2028
+ d.value.some((c) => c.name === y.name) ? d.value = d.value.map((c) => c.name === y.name ? {
2029
+ ...c,
2030
+ ...y
2031
+ } : c) : d.value.push(y);
2032
2032
  });
2033
2033
  }
2034
- const x = (r) => {
2035
- const C = [];
2036
- if ((r === "all" || r === "searchMap") && (e.value?.forEach((d) => C.push(d)), h(C)), (r === "all" || r === "columns") && l.value?.length && (l.value && l.value.forEach((d) => {
2037
- d.searchConfig && C.push(d.searchConfig);
2038
- }), h(C)), r === "all" || r === "searchMap" || r === "columns") {
2034
+ const C = (s) => {
2035
+ const y = [];
2036
+ if ((s === "all" || s === "searchMap") && (e.value?.forEach((c) => y.push(c)), h(y)), (s === "all" || s === "columns") && l.value?.length && (l.value && l.value.forEach((c) => {
2037
+ c.searchConfig && y.push(c.searchConfig);
2038
+ }), h(y)), s === "all" || s === "searchMap" || s === "columns") {
2039
2039
  n({ current: 1 });
2040
- const d = Ea(C);
2041
- Object.assign(o, { ...d });
2042
- for (const m in d)
2043
- u[m] || (u[m] = d[m]);
2040
+ const c = Ea(y);
2041
+ Object.assign(o, { ...c });
2042
+ for (const m in c)
2043
+ u[m] || (u[m] = c[m]);
2044
2044
  }
2045
- (r === "all" || r === "params") && (n({ current: 1 }), Object.assign(u, a.value));
2045
+ (s === "all" || s === "params") && (n({ current: 1 }), Object.assign(u, a.value));
2046
2046
  };
2047
2047
  dl(() => {
2048
- x("all");
2048
+ C("all");
2049
2049
  }), N(() => a.value, () => {
2050
- x("params");
2050
+ C("params");
2051
2051
  }, { deep: !0 }), N(() => e.value, () => {
2052
- x("searchMap");
2052
+ C("searchMap");
2053
2053
  }, { deep: !0 }), N(() => l.value, () => {
2054
- x("columns");
2054
+ C("columns");
2055
2055
  }, { deep: !0 });
2056
- function y(r) {
2057
- n({ current: 1 }), Object.assign(u, r);
2056
+ function T(s) {
2057
+ n({ current: 1 }), Object.assign(u, s);
2058
2058
  }
2059
- return { formDataRef: c, formParamsRef: u, defaultParamsRef: o, setFormParams: y };
2059
+ return { formDataRef: d, formParamsRef: u, defaultParamsRef: o, setFormParams: T };
2060
2060
  }
2061
2061
  function Ka(e) {
2062
- const a = S(() => e.scroll), l = S(() => e.autoScroll), n = S(() => e.modalScroll), u = S(() => e.neverScroll), o = S(() => e.rowSelection), c = S(() => e.scrollBreakpoint);
2062
+ const a = x(() => e.scroll), l = x(() => e.autoScroll), n = x(() => e.modalScroll), u = x(() => e.neverScroll), o = x(() => e.rowSelection), d = x(() => e.scrollBreakpoint);
2063
2063
  return {
2064
2064
  scroll: a,
2065
2065
  neverScroll: u,
2066
2066
  rowSelection: o,
2067
2067
  autoScroll: l,
2068
2068
  modalScroll: n,
2069
- scrollBreakpoint: c
2069
+ scrollBreakpoint: d
2070
2070
  };
2071
2071
  }
2072
- function za({ scroll: e, columns: a, autoScroll: l, modalScroll: n, neverScroll: u, rowSelection: o, screens: c, innerWidth: h, scrollBreakpoint: x }) {
2073
- const y = S(() => p(x) ? De(p(x)) ? h.value > p(x) : kt(p(x)) ? c.value?.[p(x)] : c.value?.xl : c.value?.xl), r = S(() => {
2074
- let d = 0;
2072
+ function za({ scroll: e, columns: a, autoScroll: l, modalScroll: n, neverScroll: u, rowSelection: o, screens: d, innerWidth: h, scrollBreakpoint: C }) {
2073
+ const T = x(() => p(C) ? De(p(C)) ? h.value > p(C) : kt(p(C)) ? d.value?.[p(C)] : d.value?.xl : d.value?.xl), s = x(() => {
2074
+ let c = 0;
2075
2075
  const m = p(o) ? 60 : 0, b = 150, v = Z(p(a));
2076
2076
  v.forEach((k) => {
2077
- d += Number.parseInt(String(k.width)) || 0;
2077
+ c += Number.parseInt(String(k.width)) || 0;
2078
2078
  });
2079
2079
  const I = v.filter((k) => !Reflect.has(k, "width")).length;
2080
- return I !== 0 && (d += I * b), m && (d += m), d;
2080
+ return I !== 0 && (c += I * b), m && (c += m), c;
2081
2081
  });
2082
- return { proScroll: S(() => p(u) ? {} : p(e) && Object.keys(p(e)).length ? p(e) : p(n) ? {
2083
- y: p(e)?.y || (c.value?.xl ? 400 : 235)
2084
- } : p(l) ? y.value ? {} : le(y.value) ? { x: p(r) } : {} : {}), breakpoint: y };
2082
+ return { proScroll: x(() => p(u) ? {} : p(e) && Object.keys(p(e)).length ? p(e) : p(n) ? {
2083
+ y: p(e)?.y || (d.value?.xl ? 400 : 235)
2084
+ } : p(l) ? T.value ? {} : le(T.value) ? { x: p(s) } : {} : {}), breakpoint: T };
2085
2085
  }
2086
2086
  function Ya({ size: e, emit: a }) {
2087
2087
  const l = P("middle");
@@ -2380,27 +2380,27 @@ const {
2380
2380
  suffixCls: "table",
2381
2381
  isPor: !0
2382
2382
  }), {
2383
- wrapSSR: c,
2383
+ wrapSSR: d,
2384
2384
  hashId: h
2385
2385
  } = He("ProBaseTable", [La], o), {
2386
- token: x
2387
- } = Xa(), y = $l(), r = _a(), {
2388
- width: C
2389
- } = El(), d = P(!1), m = Rt(), b = P(), v = P(), F = P(e.waitRequest);
2386
+ token: C
2387
+ } = Xa(), T = $l(), s = _a(), {
2388
+ width: y
2389
+ } = El(), c = P(!1), m = Rt(), b = P(), v = P(), F = P(e.waitRequest);
2390
2390
  Ne(() => F.value = e.waitRequest);
2391
2391
  const {
2392
2392
  toggle: I,
2393
2393
  isFullscreen: k
2394
- } = At(b), E = S(() => ({
2394
+ } = At(b), E = x(() => ({
2395
2395
  ...e
2396
- })), L = S(() => !r.value.xl), W = S(() => (e.virtualScroll && Le(!e.scroll?.y, "参数scroll的Y值不能为空!"), !!(e.scroll?.y && e.virtualScroll))), O = S(() => e.search === !1 ? !1 : q(e.search) ? e.search : {
2396
+ })), L = x(() => !s.value.xl), W = x(() => (e.virtualScroll && Le(!e.scroll?.y, "参数scroll的Y值不能为空!"), !!(e.scroll?.y && e.virtualScroll))), O = x(() => e.search === !1 ? !1 : q(e.search) ? e.search : {
2397
2397
  type: "auto",
2398
2398
  resetText: "重置",
2399
2399
  searchText: "查询"
2400
- }), j = S(() => O.value === !1 ? {} : O.value), D = S(() => j.value?.manualRequest ?? !1), ee = S(() => j.value?.actions), oe = S(() => {
2401
- const g = (e.columns || []).filter((w) => w.key || w.dataIndex).map((w) => {
2402
- const B = w.key || w.dataIndex;
2403
- return w.key = B, w.dataIndex = B, w.align = w.align || e.align, w.uuid = w.uuid || tt().uuid(15), w;
2400
+ }), j = x(() => O.value === !1 ? {} : O.value), D = x(() => j.value?.manualRequest ?? !1), ee = x(() => j.value?.actions), oe = x(() => {
2401
+ const g = (e.columns || []).filter((S) => S.key || S.dataIndex).map((S) => {
2402
+ const B = S.key || S.dataIndex;
2403
+ return S.key = B, S.dataIndex = B, S.align = S.align || e.align, S.uuid = S.uuid || tt().uuid(15), S;
2404
2404
  });
2405
2405
  return kl(g, {
2406
2406
  align: e.align ?? "left",
@@ -2431,13 +2431,13 @@ const {
2431
2431
  key: "pageItemRender"
2432
2432
  })
2433
2433
  }), $ = Ka(e), {
2434
- proScroll: T,
2435
- breakpoint: s
2434
+ proScroll: w,
2435
+ breakpoint: r
2436
2436
  } = za({
2437
2437
  ...$,
2438
- innerWidth: C,
2438
+ innerWidth: y,
2439
2439
  columns: oe,
2440
- screens: r
2440
+ screens: s
2441
2441
  }), K = Fa(e), {
2442
2442
  proColumns: G,
2443
2443
  cacheProColumns: te,
@@ -2446,8 +2446,8 @@ const {
2446
2446
  resizeColumnWidth: Ee
2447
2447
  } = Ba({
2448
2448
  ...K,
2449
- breakpoint: s,
2450
- scroll: T,
2449
+ breakpoint: r,
2450
+ scroll: w,
2451
2451
  columns: oe
2452
2452
  }), {
2453
2453
  columnsMap: $e,
@@ -2501,66 +2501,66 @@ const {
2501
2501
  columns: G,
2502
2502
  formParamsRef: ot,
2503
2503
  onBeforeSearchSubmit: e.onBeforeSearchSubmit,
2504
- hasCustomRender: S(() => we(e.customRender || l?.customRender))
2505
- }, a), Be = S(() => e.options ? {
2504
+ hasCustomRender: x(() => we(e.customRender || l?.customRender))
2505
+ }, a), Be = x(() => e.options ? {
2506
2506
  ...Qa,
2507
2507
  ...q(e.options) ? e.options : {}
2508
- } : !1), _t = S(() => ({
2508
+ } : !1), _t = x(() => ({
2509
2509
  size: p(he),
2510
- scroll: p(T),
2510
+ scroll: p(w),
2511
2511
  dataSource: p(Fe),
2512
2512
  pagination: p(t),
2513
2513
  virtualScroll: W.value,
2514
2514
  columns: p(G).filter((g) => g.show || g.show === void 0)
2515
- })), ft = S(() => {
2515
+ })), ft = x(() => {
2516
2516
  const g = q(e.loading) ? je(e.loading, "spinning") : {};
2517
2517
  return !g.indicator && m?.indicator?.value && (g.indicator = m?.indicator?.value), {
2518
2518
  spinning: e.showLoading ? we(ae.value) : !1,
2519
2519
  ...g
2520
2520
  };
2521
- }), ht = S(() => {
2521
+ }), ht = x(() => {
2522
2522
  let g;
2523
- const w = p(E).direction === "rtl" ? "bottomLeft" : "right", B = p(t)?.position;
2523
+ const S = p(E).direction === "rtl" ? "bottomLeft" : "right", B = p(t)?.position;
2524
2524
  if (B !== null && Array.isArray(B)) {
2525
2525
  const z = B.find((X) => X.includes("top")), Q = B.find((X) => X.includes("bottom")), A = B.every((X) => `${X}` == "none");
2526
- !z && !Q && !A && (g = w), z && (g = z.toLowerCase().replace("top", "")), Q && (g = Q.toLowerCase().replace("bottom", ""));
2526
+ !z && !Q && !A && (g = S), z && (g = z.toLowerCase().replace("top", "")), Q && (g = Q.toLowerCase().replace("bottom", ""));
2527
2527
  } else
2528
- g = w;
2528
+ g = S;
2529
2529
  return g;
2530
2530
  });
2531
2531
  Ra(() => {
2532
- d.value && e.keepAliveReload ? Re() : d.value = !0;
2532
+ c.value && e.keepAliveReload ? Re() : c.value = !0;
2533
2533
  });
2534
- const mt = async (g, w) => {
2535
- D.value ? ee.value?.reload && w ? (qe(g), await Re()) : qe(g) : (qe({
2534
+ const mt = async (g, S) => {
2535
+ D.value ? ee.value?.reload && S ? (qe(g), await Re()) : qe(g) : (qe({
2536
2536
  ...e.params || {},
2537
2537
  ...g
2538
2538
  }), await Re());
2539
- }, Qt = async (g, w) => {
2540
- w === "reset" ? (a("reset", g), e.request && await mt(g, w)) : e.request ? (a("submit", g), await mt(g, w)) : a("submit", g);
2541
- }, vt = (g, w, B, z) => {
2542
- R(xt(g, ["current", "pageSize"])), dt(g, w, B, z);
2543
- }, Xt = (g, w) => {
2539
+ }, Qt = async (g, S) => {
2540
+ S === "reset" ? (a("reset", g), e.request && await mt(g, S)) : e.request ? (a("submit", g), await mt(g, S)) : a("submit", g);
2541
+ }, vt = (g, S, B, z) => {
2542
+ R(xt(g, ["current", "pageSize"])), dt(g, S, B, z);
2543
+ }, Xt = (g, S) => {
2544
2544
  R({
2545
2545
  current: g,
2546
- pageSize: w
2546
+ pageSize: S
2547
2547
  }), dt({
2548
2548
  current: g,
2549
- pageSize: w,
2549
+ pageSize: S,
2550
2550
  total: t.value && t.value?.total || 0
2551
2551
  }, {}, {});
2552
2552
  }, Ut = (g) => {
2553
2553
  a("expandedRowsChange", g);
2554
- }, Jt = (g, w) => {
2555
- a("expand", g, w);
2556
- }, Zt = (g, w) => Ee(g, w), el = (g, w, B) => {
2554
+ }, Jt = (g, S) => {
2555
+ a("expand", g, S);
2556
+ }, Zt = (g, S) => Ee(g, S), el = (g, S, B) => {
2557
2557
  let z = g;
2558
- if (w) {
2558
+ if (S) {
2559
2559
  const Q = V(g) ? typeof g?.[0]?.children == "string" ? g?.[0]?.children : "" : g ? g.toString() : "", A = B.tooltip === !1 ? {} : B.tooltip, X = B.tooltip === !1 ? 1 : De(A?.hiddenLine) && A?.hiddenLine > 0 ? A?.hiddenLine : 1, Se = B.tooltip === !1 ? 0 : De(A?.width) ? A?.width : 0, al = B.tooltip !== !1 && kt(Q) && Se > 0 ? Dl(Q, {
2560
2560
  cssObject: {
2561
2561
  fontSize: "14px",
2562
2562
  lineHeight: "22px",
2563
- fontFamily: y?.token?.value?.fontFamily || x?.value?.fontFamily,
2563
+ fontFamily: T?.token?.value?.fontFamily || C?.value?.fontFamily,
2564
2564
  ...A?.targetStyle || {}
2565
2565
  }
2566
2566
  }) : 0, nl = document.querySelector(`.${o} .ant-table-tbody`), Me = i("div", {
@@ -2620,17 +2620,17 @@ const {
2620
2620
  });
2621
2621
  if (g) {
2622
2622
  if (Fe.value?.length) {
2623
- const w = Z(p(Fe));
2623
+ const S = Z(p(Fe));
2624
2624
  return g?.({
2625
- dataSource: w,
2626
- currentData: Ha(w, t.value)
2625
+ dataSource: S,
2626
+ currentData: Ha(S, t.value)
2627
2627
  });
2628
2628
  }
2629
2629
  return gt();
2630
2630
  }
2631
2631
  return i(ke, null, null);
2632
2632
  }, ll = (g) => {
2633
- const w = Ol({
2633
+ const S = Ol({
2634
2634
  slots: l,
2635
2635
  props: e,
2636
2636
  keys: ["headerTitle", "titleTip", "toolBarBtn", "settingExtra", "optionsExtra"],
@@ -2643,11 +2643,11 @@ const {
2643
2643
  setting: g ? !1 : Be.value?.setting,
2644
2644
  density: g ? !1 : Be.value?.density
2645
2645
  },
2646
- headerTitle: w.headerTitle,
2647
- titleTip: w.titleTip,
2648
- settingExtra: w.settingExtra,
2649
- optionsExtra: w.optionsExtra,
2650
- toolBarBtn: w.toolBarBtn
2646
+ headerTitle: S.headerTitle,
2647
+ titleTip: S.titleTip,
2648
+ settingExtra: S.settingExtra,
2649
+ optionsExtra: S.optionsExtra,
2650
+ toolBarBtn: S.toolBarBtn
2651
2651
  }, null);
2652
2652
  };
2653
2653
  return ea({
@@ -2688,8 +2688,8 @@ const {
2688
2688
  dataSource: Fe,
2689
2689
  pageState: f,
2690
2690
  pagination: t.value,
2691
- selectedKeys: S(() => it.value),
2692
- selectedItems: S(() => Yt.value),
2691
+ selectedKeys: x(() => it.value),
2692
+ selectedItems: x(() => Yt.value),
2693
2693
  rowsSelection: {
2694
2694
  clear: Wt,
2695
2695
  select: ut,
@@ -2713,14 +2713,14 @@ const {
2713
2713
  })
2714
2714
  }), () => {
2715
2715
  const g = we(e.customRender || l.customRender);
2716
- return c(i("div", {
2716
+ return d(i("div", {
2717
2717
  ref: b,
2718
2718
  class: re([{
2719
2719
  [`${h.value}`]: !0,
2720
2720
  [`${o}`]: !0,
2721
2721
  [`${n.class}`]: n.class,
2722
2722
  [`${o}-beautify-scroll`]: le(e.useDefaultScrollStyle) ? !e.useDefaultScrollStyle : !0,
2723
- [`${o}-no-scroll`]: !Object.keys(p(T) || {}).length,
2723
+ [`${o}-no-scroll`]: !Object.keys(p(w) || {}).length,
2724
2724
  [`${o}-table-tree`]: Gt.value,
2725
2725
  [`${o}-full-screen`]: k.value
2726
2726
  }]),
@@ -2758,15 +2758,15 @@ const {
2758
2758
  style: e.tableProps?.style,
2759
2759
  class: e.tableProps?.class,
2760
2760
  loading: ft.value,
2761
- rowKey: (w) => w[e.rowKey],
2762
- transformCellText: (w) => {
2763
- e.transformCellText && typeof e.transformCellText && e.transformCellText?.(w);
2761
+ rowKey: (S) => S[e.rowKey],
2762
+ transformCellText: (S) => {
2763
+ e.transformCellText && typeof e.transformCellText && e.transformCellText?.(S);
2764
2764
  const {
2765
2765
  column: B
2766
- } = w;
2767
- if (!B) return w.text;
2766
+ } = S;
2767
+ if (!B) return S.text;
2768
2768
  const z = B?.key || B?.dataIndex;
2769
- let Q = !0, A = w.text;
2769
+ let Q = !0, A = S.text;
2770
2770
  if (V(A))
2771
2771
  if (A.length === 0 || A.length === 1 && !U(A[0])) {
2772
2772
  A = A?.[0];
@@ -2785,7 +2785,7 @@ const {
2785
2785
  onChange: vt,
2786
2786
  onExpandedRowsChange: Ut,
2787
2787
  onExpand: Jt,
2788
- onResizeColumn: (w, B) => Zt(w, B)
2788
+ onResizeColumn: (S, B) => Zt(S, B)
2789
2789
  }), {
2790
2790
  ...l,
2791
2791
  emptyText: () => gt()
@@ -2815,42 +2815,49 @@ function dn(e, a) {
2815
2815
  request: a?.request
2816
2816
  });
2817
2817
  a?.state && (_e(a.state) ? N(() => a.state.value, () => {
2818
- x();
2818
+ C();
2819
2819
  }, { deep: !0 }) : fl(a.state) && N(() => a?.state, () => {
2820
- x();
2820
+ C();
2821
2821
  }, { deep: !0 }));
2822
- const u = S(() => e?.value?.actionRef?.()), o = S(() => e?.value?.formRef?.()), c = S(() => ({
2822
+ const u = x(() => e?.value?.actionRef?.()), o = x(() => e?.value?.formRef?.()), d = x(() => ({
2823
2823
  ...u.value?.pageState || {},
2824
2824
  ...o.value?.getFormState?.() || {}
2825
2825
  })), h = P(!!u.value?.loading?.value);
2826
- N(() => u.value?.loading?.value, (y) => {
2827
- h.value = !!y;
2828
- }), N(h, (y) => {
2829
- u.value?.setLoading?.(!!y);
2826
+ N(() => u.value?.loading?.value, (s) => {
2827
+ h.value = !!s;
2828
+ }), N(h, (s) => {
2829
+ u.value?.setLoading?.(!!s);
2830
2830
  });
2831
- function x() {
2831
+ function C() {
2832
2832
  n.value = It(n.value, l(), {
2833
2833
  omitNil: !0,
2834
2834
  omitEmpty: !0
2835
2835
  });
2836
2836
  }
2837
+ function T(s, y) {
2838
+ n.value.searchMap && (n.value.searchMap = n.value.searchMap.map((c) => c.name === s ? {
2839
+ ...c,
2840
+ ...y
2841
+ } : c));
2842
+ }
2837
2843
  return {
2838
2844
  formRef: o,
2839
2845
  actionRef: u,
2840
2846
  tableState: Ml(n),
2841
- requestSearch: c,
2847
+ requestSearch: d,
2842
2848
  loading: h,
2843
- dataSource: S(() => u?.value?.dataSource?.value || []),
2844
- selectedKeys: S(() => u?.value?.selectedKeys?.value || []),
2845
- selectedItems: S(() => u?.value?.selectedItems?.value || []),
2849
+ dataSource: x(() => u?.value?.dataSource?.value || []),
2850
+ selectedKeys: x(() => u?.value?.selectedKeys?.value || []),
2851
+ selectedItems: x(() => u?.value?.selectedItems?.value || []),
2846
2852
  rowsSelection: u?.value?.rowsSelection,
2847
- mutate: (y) => u.value?.reSetDataList?.(y),
2848
- reloadAndReset: (y) => u.value?.reloadAndReset?.(y),
2849
- setPageAndReload: (y, r, C, d) => u.value?.setPageAndReload?.(y, r, C, d),
2850
- setPagination: (y) => u.value?.setPagination?.(y),
2851
- setLoading: (y) => h.value = y,
2852
- setDataValue: (y) => u.value?.setDataValue?.(y),
2853
- reload: (y) => u.value?.reload?.(y)
2853
+ mutate: (s) => u.value?.reSetDataList?.(s),
2854
+ reloadAndReset: (s) => u.value?.reloadAndReset?.(s),
2855
+ setPageAndReload: (s, y, c, m) => u.value?.setPageAndReload?.(s, y, c, m),
2856
+ setPagination: (s) => u.value?.setPagination?.(s),
2857
+ setLoading: (s) => h.value = s,
2858
+ setDataValue: (s) => u.value?.setDataValue?.(s),
2859
+ reload: (s) => u.value?.reload?.(s),
2860
+ updateSearchMap: T
2854
2861
  };
2855
2862
  }
2856
2863
  export {