@gx-design-vue/pro-table 0.2.0-beta.101 → 0.2.0-beta.103

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,4 +1,4 @@
1
- import { isObject as J, cloneDeep as oe, isArray as se, isBoolean as re, classNames as pe, filterEmpty as Rt, getPrefixCls as it, getRandomNumber as nt, genColumnKey as Ft, isDeepEqualReact as Ge, compareArray as al, isNumber as _e, runFunction as nl, convertValueBoolean as Oe, getSortIndex as ul, isFunction as Ke, handleCurrentPage as il, deepMerge as sl, getSlot as It, arrayRepeat as ol, isString as kt, handleShowIndex as rl, hanndleEmptyField as cl, getTextWidth as dl, getSlotVNode as ke } from "@gx-design-vue/pro-utils";
1
+ import { isObject as Z, cloneDeep as re, isArray as oe, isBoolean as ne, classNames as pe, filterEmpty as Rt, getPrefixCls as it, getRandomNumber as nt, genColumnKey as Ft, isDeepEqualReact as Ge, compareArray as al, isNumber as _e, runFunction as nl, convertValueBoolean as Oe, getSortIndex as ul, isFunction as Ke, handleCurrentPage as il, deepMerge as sl, getSlot as It, arrayRepeat as ol, isString as kt, handleShowIndex as rl, hanndleEmptyField as cl, getTextWidth as dl, getSlotVNode as ke } from "@gx-design-vue/pro-utils";
2
2
  import { reactive as Te, isReactive as fl, watch as _, computed as w, ref as j, toRaw as Be, watchEffect as Le, defineComponent as ve, createVNode as c, Fragment as qe, nextTick as Ot, isVNode as le, mergeProps as Q, h as Pt, cloneVNode as st, unref as C, createTextVNode as ze, renderSlot as hl, onActivated as ml, getCurrentInstance as vl, onUnmounted as gl, onDeactivated as yl, onMounted as bl, toRef as fe } from "vue";
3
3
  import { tableProps as Cl } from "ant-design-vue/es/table/Table";
4
4
  import { omit as Xe, pick as St } from "lodash-es";
@@ -9,88 +9,88 @@ import { useProAppContext as Nt } from "@gx-design-vue/pro-app";
9
9
  import { useContext as Pl, useProStyle as Ue, unit as wt } from "@gx-design-vue/pro-provider";
10
10
  import { useFullscreen as Et, useWindowSize as jl } from "@vueuse/core";
11
11
  import { Grid as ot, Space as we, Button as pt, Input as Tt, TimePicker as Nl, DatePicker as Dt, TreeSelect as El, Spin as ut, Select as Dl, Popover as Ml, Checkbox as Al, Tooltip as me, Tree as Kl, Dropdown as zl, Menu as He, Pagination as Yl, Table as Ll, message as Wl, Empty as Vl } from "ant-design-vue";
12
- import X from "dayjs";
12
+ import U from "dayjs";
13
13
  import { useMemo as Qe, tryOnUnmounted as Hl } from "@gx-design-vue/pro-hooks";
14
- function Ja(e, a) {
15
- var x, S, f, b;
14
+ function Za(e, a) {
15
+ var x, S, h, b;
16
16
  function l() {
17
- return a != null && a.state && J(a == null ? void 0 : a.state) ? oe(Be(a == null ? void 0 : a.state)) : {};
17
+ return a != null && a.state && Z(a == null ? void 0 : a.state) ? re(Be(a == null ? void 0 : a.state)) : {};
18
18
  }
19
- const s = Te({
19
+ const u = Te({
20
20
  params: ((x = a == null ? void 0 : a.state) == null ? void 0 : x.params) || {},
21
21
  // @ts-ignore
22
- request: async (...u) => {
22
+ request: a != null && a.request ? async (...i) => {
23
23
  var n;
24
- return a != null && a.request ? await ((n = a == null ? void 0 : a.request) == null ? void 0 : n.call(a, ...u)) : void 0;
25
- }
24
+ return await ((n = a == null ? void 0 : a.request) == null ? void 0 : n.call(a, ...i));
25
+ } : void 0
26
26
  });
27
27
  a != null && a.state && (fl(a.state) ? _(() => a == null ? void 0 : a.state, () => {
28
- Object.assign(s, l());
29
- }, { deep: !0, immediate: !0 }) : Object.assign(s, l()));
28
+ Object.assign(u, l());
29
+ }, { deep: !0, immediate: !0 }) : Object.assign(u, l()));
30
30
  const o = w(() => {
31
- var u, n;
32
- return (n = (u = e == null ? void 0 : e.value) == null ? void 0 : u.actionRef) == null ? void 0 : n.call(u);
33
- }), i = w(() => {
34
- var u, n;
35
- return (n = (u = e == null ? void 0 : e.value) == null ? void 0 : u.formRef) == null ? void 0 : n.call(u);
31
+ var i, n;
32
+ return (n = (i = e == null ? void 0 : e.value) == null ? void 0 : i.actionRef) == null ? void 0 : n.call(i);
33
+ }), s = w(() => {
34
+ var i, n;
35
+ return (n = (i = e == null ? void 0 : e.value) == null ? void 0 : i.formRef) == null ? void 0 : n.call(i);
36
36
  }), d = w(() => {
37
- var u, n, r;
37
+ var i, n, r;
38
38
  return {
39
- ...((u = o.value) == null ? void 0 : u.pageState) || {},
40
- ...((r = (n = i.value) == null ? void 0 : n.getFormState) == null ? void 0 : r.call(n)) || {}
39
+ ...((i = o.value) == null ? void 0 : i.pageState) || {},
40
+ ...((r = (n = s.value) == null ? void 0 : n.getFormState) == null ? void 0 : r.call(n)) || {}
41
41
  };
42
- }), v = j(!!((f = (S = o.value) == null ? void 0 : S.loading) != null && f.value));
42
+ }), v = j(!!((h = (S = o.value) == null ? void 0 : S.loading) != null && h.value));
43
43
  return _(() => {
44
- var u, n;
45
- return (n = (u = o.value) == null ? void 0 : u.loading) == null ? void 0 : n.value;
46
- }, (u) => {
47
- v.value = !!u;
48
- }), _(v, (u) => {
44
+ var i, n;
45
+ return (n = (i = o.value) == null ? void 0 : i.loading) == null ? void 0 : n.value;
46
+ }, (i) => {
47
+ v.value = !!i;
48
+ }), _(v, (i) => {
49
49
  var n, r;
50
- (r = (n = o.value) == null ? void 0 : n.setLoading) == null || r.call(n, !!u);
50
+ (r = (n = o.value) == null ? void 0 : n.setLoading) == null || r.call(n, !!i);
51
51
  }), {
52
- formRef: i,
52
+ formRef: s,
53
53
  actionRef: o,
54
- tableState: s,
54
+ tableState: u,
55
55
  requestParams: d,
56
56
  loading: v,
57
57
  dataSource: w(() => {
58
- var u, n;
59
- return ((n = (u = o == null ? void 0 : o.value) == null ? void 0 : u.dataSource) == null ? void 0 : n.value) || [];
58
+ var i, n;
59
+ return ((n = (i = o == null ? void 0 : o.value) == null ? void 0 : i.dataSource) == null ? void 0 : n.value) || [];
60
60
  }),
61
61
  selectedKeys: w(() => {
62
- var u, n;
63
- return ((n = (u = o == null ? void 0 : o.value) == null ? void 0 : u.selectedKeys) == null ? void 0 : n.value) || [];
62
+ var i, n;
63
+ return ((n = (i = o == null ? void 0 : o.value) == null ? void 0 : i.selectedKeys) == null ? void 0 : n.value) || [];
64
64
  }),
65
65
  selectedItems: w(() => {
66
- var u, n;
67
- return ((n = (u = o == null ? void 0 : o.value) == null ? void 0 : u.selectedItems) == null ? void 0 : n.value) || [];
66
+ var i, n;
67
+ return ((n = (i = o == null ? void 0 : o.value) == null ? void 0 : i.selectedItems) == null ? void 0 : n.value) || [];
68
68
  }),
69
69
  rowsSelection: (b = o == null ? void 0 : o.value) == null ? void 0 : b.rowsSelection,
70
- mutate: (u) => {
70
+ mutate: (i) => {
71
71
  var n, r;
72
- return (r = (n = o.value) == null ? void 0 : n.reSetDataList) == null ? void 0 : r.call(n, u);
72
+ return (r = (n = o.value) == null ? void 0 : n.reSetDataList) == null ? void 0 : r.call(n, i);
73
73
  },
74
- reloadAndReset: (u) => {
74
+ reloadAndReset: (i) => {
75
75
  var n, r;
76
- return (r = (n = o.value) == null ? void 0 : n.reloadAndReset) == null ? void 0 : r.call(n, u);
76
+ return (r = (n = o.value) == null ? void 0 : n.reloadAndReset) == null ? void 0 : r.call(n, i);
77
77
  },
78
- setPageAndReload: (u, n, r, y) => {
79
- var p, I;
80
- return (I = (p = o.value) == null ? void 0 : p.setPageAndReload) == null ? void 0 : I.call(p, u, n, r, y);
78
+ setPageAndReload: (i, n, r, y) => {
79
+ var p, k;
80
+ return (k = (p = o.value) == null ? void 0 : p.setPageAndReload) == null ? void 0 : k.call(p, i, n, r, y);
81
81
  },
82
- setPagination: (u) => {
82
+ setPagination: (i) => {
83
83
  var n, r;
84
- return (r = (n = o.value) == null ? void 0 : n.setPagination) == null ? void 0 : r.call(n, u);
84
+ return (r = (n = o.value) == null ? void 0 : n.setPagination) == null ? void 0 : r.call(n, i);
85
85
  },
86
- setLoading: (u) => v.value = u,
87
- setDataValue: (u) => {
86
+ setLoading: (i) => v.value = i,
87
+ setDataValue: (i) => {
88
88
  var n, r;
89
- return (r = (n = o.value) == null ? void 0 : n.setDataValue) == null ? void 0 : r.call(n, u);
89
+ return (r = (n = o.value) == null ? void 0 : n.setDataValue) == null ? void 0 : r.call(n, i);
90
90
  },
91
- reload: (u) => {
91
+ reload: (i) => {
92
92
  var n, r;
93
- return (r = (n = o.value) == null ? void 0 : n.reload) == null ? void 0 : r.call(n, u);
93
+ return (r = (n = o.value) == null ? void 0 : n.reload) == null ? void 0 : r.call(n, i);
94
94
  }
95
95
  };
96
96
  }
@@ -183,6 +183,10 @@ const Gl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
183
183
  default: () => {
184
184
  }
185
185
  },
186
+ useDefaultScrollStyle: {
187
+ type: Boolean,
188
+ default: () => !1
189
+ },
186
190
  emptyText: {
187
191
  type: [Function, Object, Boolean, Array],
188
192
  default: () => {
@@ -390,20 +394,20 @@ const Gl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
390
394
  onColumnsStateChange: Function
391
395
  }, { provideContext: Ql, useInjectContext: ge } = Pl("pro-table");
392
396
  function Se(e, a) {
393
- return typeof a == "function" ? a(X(e)) : X(e).format(a);
397
+ return typeof a == "function" ? a(U(e)) : U(e).format(a);
394
398
  }
395
399
  function Ae(e, a) {
396
400
  return a ? "YYYY-MM-DD HH:mm:ss" : e ?? "YYYY-MM-DD";
397
401
  }
398
402
  const $t = (e, a, l = "string") => {
399
- if (se(e)) {
400
- const [s, o] = e;
401
- let i, d;
402
- if (Array.isArray(a) ? (i = a[0], d = a[1]) : typeof a == "object" && a.type === "mask" ? (i = a.format, d = a.format) : (i = a, d = a), l === "string") {
403
- const v = s ? Se(s, i) : "", x = o ? Se(o, d) : "";
403
+ if (oe(e)) {
404
+ const [u, o] = e;
405
+ let s, d;
406
+ if (Array.isArray(a) ? (s = a[0], d = a[1]) : typeof a == "object" && a.type === "mask" ? (s = a.format, d = a.format) : (s = a, d = a), l === "string") {
407
+ const v = u ? Se(u, s) : "", x = o ? Se(o, d) : "";
404
408
  return [v, x];
405
409
  }
406
- return [X(s), X(o)];
410
+ return [U(u), U(o)];
407
411
  }
408
412
  }, _l = (e) => ({
409
413
  [`${e.componentCls}-search`]: {
@@ -474,25 +478,25 @@ const $t = (e, a, l = "string") => {
474
478
  });
475
479
  function ql(e, a) {
476
480
  const l = Te({});
477
- function s() {
481
+ function u() {
478
482
  Object.keys(e).forEach((d) => {
479
483
  o(d, e[d]);
480
484
  });
481
- const i = a.find((d) => d.valueType === "dateRange");
482
- i && o(i.name || "", e[i.rangeStartName || "start"] ? [
483
- e[i.rangeStartName || "start"],
484
- e[i.rangeEndName || "end"]
485
+ const s = a.find((d) => d.valueType === "dateRange");
486
+ s && o(s.name || "", e[s.rangeStartName || "start"] ? [
487
+ e[s.rangeStartName || "start"],
488
+ e[s.rangeEndName || "end"]
485
489
  ] : []);
486
490
  }
487
491
  Le(() => {
488
- s();
492
+ u();
489
493
  });
490
- function o(i, d) {
491
- l[i] = d;
494
+ function o(s, d) {
495
+ l[s] = d;
492
496
  }
493
497
  return {
494
498
  formState: l,
495
- resetFormState: s,
499
+ resetFormState: u,
496
500
  changeFormState: o
497
501
  };
498
502
  }
@@ -522,7 +526,14 @@ const {
522
526
  }, {
523
527
  value: "xs",
524
528
  span: 1
525
- }], At = /* @__PURE__ */ ve({
529
+ }];
530
+ function la(e) {
531
+ let a = e.reduce((l, u) => u.order !== void 0 ? Math.max(l, u.order) : l, 0);
532
+ return e.forEach((l) => {
533
+ l.order === void 0 && (a += 1, l.order = a);
534
+ }), e.sort((l, u) => l.order - u.order), e;
535
+ }
536
+ const At = /* @__PURE__ */ ve({
526
537
  name: "ProTableForm",
527
538
  props: {
528
539
  modal: he.modalScroll,
@@ -541,22 +552,22 @@ const {
541
552
  expose: l
542
553
  }) {
543
554
  const {
544
- wrapSSR: s,
555
+ wrapSSR: u,
545
556
  hashId: o
546
- } = Ue("ProTableForm", [_l], e.prefixCls), i = Nt(), d = Xl(), {
557
+ } = Ue("ProTableForm", [_l], e.prefixCls), s = Nt(), d = Xl(), {
547
558
  manualSearch: v,
548
559
  searchConfig: x,
549
560
  searchActions: S
550
561
  } = ge(), {
551
- formState: f,
562
+ formState: h,
552
563
  resetFormState: b,
553
- changeFormState: u
564
+ changeFormState: i
554
565
  } = ql(e.defaultParams || {}, e.searchMap || []), n = j(!1), r = w(() => {
555
566
  var t, g;
556
- return re((t = S.value) == null ? void 0 : t.reset) ? (g = S.value) == null ? void 0 : g.reset : v.value;
567
+ return ne((t = S.value) == null ? void 0 : t.reset) ? (g = S.value) == null ? void 0 : g.reset : v.value;
557
568
  }), y = w(() => {
558
569
  var t;
559
- return I((t = x.value) == null ? void 0 : t.span);
570
+ return k((t = x.value) == null ? void 0 : t.span);
560
571
  }), p = w(() => {
561
572
  var t;
562
573
  return (t = x.value) == null ? void 0 : t.label;
@@ -567,12 +578,12 @@ const {
567
578
  }, (t) => {
568
579
  n.value = n.value || !!t;
569
580
  });
570
- function I(t) {
581
+ function k(t) {
571
582
  let g = 4;
572
583
  for (let R = 0; R < Ze.length; R += 1) {
573
- const T = Ze[R].value;
574
- if (d.value[T]) {
575
- g = (t == null ? void 0 : t[T]) || (e.modal ? 3 : Ze[R].span);
584
+ const $ = Ze[R].value;
585
+ if (d.value[$]) {
586
+ g = (t == null ? void 0 : t[$]) || (e.modal ? 3 : Ze[R].span);
576
587
  break;
577
588
  }
578
589
  }
@@ -587,67 +598,67 @@ const {
587
598
  ...R,
588
599
  marginRight: "2%"
589
600
  }, G = () => {
590
- const t = oe(f), g = e.searchMap.find((k) => k.valueType === "text") || "", R = e.searchMap.find((k) => k.valueType === "dateRange") || "", T = e.searchMap.find((k) => k.valueType === "treeSelect");
591
- return g && (t[g.name] = f[g.name] || g.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]), T && (T != null && T.name && se(f[T == null ? void 0 : T.name]) && (t[T.name] = f[T.name].length ? f[T.name].map((k) => k[T.valueKey === "text" ? "label" : "value"]).join() : ""), T != null && T.name && se(t[T == null ? void 0 : T.name]) && (t[T.name] = t[T.name].length ? t[T.name].map((k) => k[T.valueKey === "text" ? "label" : "value"]) : "")), t;
601
+ const t = re(h), g = e.searchMap.find((P) => P.valueType === "text") || "", R = e.searchMap.find((P) => P.valueType === "dateRange") || "", $ = e.searchMap.find((P) => P.valueType === "treeSelect");
602
+ return g && (t[g.name] = h[g.name] || g.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]), $ && ($ != null && $.name && oe(h[$ == null ? void 0 : $.name]) && (t[$.name] = h[$.name].length ? h[$.name].map((P) => P[$.valueKey === "text" ? "label" : "value"]).join() : ""), $ != null && $.name && oe(t[$ == null ? void 0 : $.name]) && (t[$.name] = t[$.name].length ? t[$.name].map((P) => P[$.valueKey === "text" ? "label" : "value"]) : "")), t;
592
603
  }, W = (t = !1, g) => {
593
604
  Ot(() => {
594
605
  var R;
595
606
  (v.value || t) && ((R = e.onSearch) == null || R.call(e, G(), t ? g ? "reset" : "submit" : void 0));
596
607
  });
597
608
  }, Y = (t, g) => {
598
- var R, T;
609
+ var R, $;
599
610
  switch (g.valueType) {
600
611
  case "text":
601
- u(g.name || "", t || "");
612
+ i(g.name || "", t || "");
602
613
  break;
603
614
  case "select":
604
- u(g.name || "", t ?? void 0);
615
+ i(g.name || "", t ?? void 0);
605
616
  break;
606
617
  case "treeSelect":
607
- u(g.name || "", t ?? ((R = g.field) != null && R.treeCheckable || (T = g.field) != null && T.multiple ? [] : null));
618
+ i(g.name || "", t ?? ((R = g.field) != null && R.treeCheckable || ($ = g.field) != null && $.multiple ? [] : null));
608
619
  break;
609
620
  case "date":
610
- u(g.name || "", t ? Se(t, Ae(g.valueFormat, g.showTime)) : null);
621
+ i(g.name || "", t ? Se(t, Ae(g.valueFormat, g.showTime)) : null);
611
622
  break;
612
623
  case "dateWeek":
613
- u(g.name || "", t ? Se(t, "YYYY-wo") : null);
624
+ i(g.name || "", t ? Se(t, "YYYY-wo") : null);
614
625
  break;
615
626
  case "dateMonth":
616
- u(g.name || "", t ? Se(t, "YYYY-MM") : null);
627
+ i(g.name || "", t ? Se(t, "YYYY-MM") : null);
617
628
  break;
618
629
  case "dateQuarter":
619
- u(g.name || "", t ? Se(t, "YYYY-QQ") : null);
630
+ i(g.name || "", t ? Se(t, "YYYY-QQ") : null);
620
631
  break;
621
632
  case "dateYear":
622
- u(g.name || "", t ? Se(t, "YYYY") : null);
633
+ i(g.name || "", t ? Se(t, "YYYY") : null);
623
634
  break;
624
635
  case "dateRange":
625
- u(g.name || "", t && se(t) && t.length === 2 ? $t(t, Ae(g.valueFormat, g.showTime)) : null);
636
+ i(g.name || "", t && oe(t) && t.length === 2 ? $t(t, Ae(g.valueFormat, g.showTime)) : null);
626
637
  break;
627
638
  case "time":
628
- u(g.name || "", t ? Se(t, g.valueFormat || "HH:mm:ss") : null);
639
+ i(g.name || "", t ? Se(t, g.valueFormat || "HH:mm:ss") : null);
629
640
  break;
630
641
  }
631
642
  g.valueType === "treeSelect" || g.valueType, W();
632
- }, ne = (t = !0) => {
643
+ }, ue = (t = !0) => {
633
644
  b(), W(!0, t);
634
645
  };
635
646
  l({
636
647
  getFormState: () => G(),
637
- resetForm: ne
648
+ resetForm: ue
638
649
  });
639
650
  const A = () => {
640
651
  var g;
641
- const t = (g = i == null ? void 0 : i.emptyText) == null ? void 0 : g.value;
652
+ const t = (g = s == null ? void 0 : s.emptyText) == null ? void 0 : g.value;
642
653
  if (t) {
643
- const R = le(t), T = R ? Pt(t) : Rt(t || []);
654
+ const R = le(t), $ = R ? Pt(t) : Rt(t || []);
644
655
  return c("div", {
645
656
  class: pe(`${e.prefixCls}-search-empty-text`, o.value)
646
- }, [R ? T : se(T) ? T.map((k) => st(k)) : void 0]);
657
+ }, [R ? $ : oe($) ? $.map((P) => st(P)) : void 0]);
647
658
  }
648
659
  }, K = () => (v.value || r.value) && c(we, null, {
649
660
  default: () => [r.value && c(pt, {
650
- onClick: () => ne()
661
+ onClick: () => ue()
651
662
  }, {
652
663
  default: () => {
653
664
  var t;
@@ -674,14 +685,14 @@ const {
674
685
  size: 16
675
686
  }, {
676
687
  default: () => {
677
- var T, k;
688
+ var $, P;
678
689
  return [K(), R && c("span", {
679
690
  class: `${e.prefixCls}-a ${o.value}`,
680
691
  onClick: () => F(!g)
681
- }, [g ? "收起" : "展开", (T = x.value) != null && T.collapseRender ? (k = x.value) == null ? void 0 : k.collapseRender(g) : g ? c(Sl, null, null) : c(wl, null, null)])];
692
+ }, [g ? "收起" : "展开", ($ = x.value) != null && $.collapseRender ? (P = x.value) == null ? void 0 : P.collapseRender(g) : g ? c(Sl, null, null) : c(wl, null, null)])];
682
693
  }
683
694
  })]), Re = (t) => {
684
- var T, k, ee, P;
695
+ var $, P, q, I;
685
696
  let g;
686
697
  const R = v.value ? Tt : Tt.Search;
687
698
  switch (t.valueType) {
@@ -690,11 +701,11 @@ const {
690
701
  style: {
691
702
  width: "100%"
692
703
  },
693
- value: f[t.name],
704
+ value: h[t.name],
694
705
  placeholder: t.placeholder || "请输入",
695
706
  allowClear: t.allowClear || t.allowClear === !1 ? t.allowClear : !0,
696
- onChange: (h) => Y(h.target.value, t),
697
- onSearch: (h) => W()
707
+ onChange: (f) => Y(f.target.value, t),
708
+ onSearch: (f) => W()
698
709
  }, t.field || {}), null);
699
710
  break;
700
711
  case "select":
@@ -702,20 +713,20 @@ const {
702
713
  style: {
703
714
  width: "100%"
704
715
  },
705
- value: t.loading ? void 0 : f[t.name],
716
+ value: t.loading ? void 0 : h[t.name],
706
717
  optionFilterProp: "label",
707
718
  placeholder: t.placeholder || "请选择",
708
719
  showSearch: t.showSearch,
709
720
  allowClear: t.allowClear ?? !0,
710
- getPopupContainer: (h) => h && h.parentNode ? h.parentNode : h,
721
+ getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
711
722
  notFoundContent: t.loading === void 0 ? void 0 : t.loading ? c(ut, {
712
723
  size: "small",
713
- indicator: (T = i == null ? void 0 : i.indicator) == null ? void 0 : T.value
724
+ indicator: ($ = s == null ? void 0 : s.indicator) == null ? void 0 : $.value
714
725
  }, null) : A(),
715
- onChange: (h) => Y(h, t),
716
- options: t.loading ? [] : (k = t == null ? void 0 : t.valueEnum) == null ? void 0 : k.map((h) => ({
717
- label: h.text,
718
- value: h.value
726
+ onChange: (f) => Y(f, t),
727
+ options: t.loading ? [] : (P = t == null ? void 0 : t.valueEnum) == null ? void 0 : P.map((f) => ({
728
+ label: f.text,
729
+ value: f.value
719
730
  }))
720
731
  }, t.field || {}), null);
721
732
  break;
@@ -724,16 +735,16 @@ const {
724
735
  style: {
725
736
  width: "100%"
726
737
  },
727
- value: f[t.name],
738
+ value: h[t.name],
728
739
  placeholder: t.placeholder || "请选择",
729
740
  allowClear: t.allowClear ?? !0,
730
741
  treeData: t.loading ? [] : t.valueEnum,
731
- getPopupContainer: (h) => h && h.parentNode ? h.parentNode : h,
742
+ getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
732
743
  notFoundContent: t.loading === void 0 ? void 0 : t.loading ? c(ut, {
733
744
  size: "small",
734
- indicator: (ee = i == null ? void 0 : i.indicator) == null ? void 0 : ee.value
745
+ indicator: (q = s == null ? void 0 : s.indicator) == null ? void 0 : q.value
735
746
  }, null) : A(),
736
- onChange: (h) => Y(h, t)
747
+ onChange: (f) => Y(f, t)
737
748
  }, t.field || {}), null);
738
749
  break;
739
750
  case "date":
@@ -741,14 +752,14 @@ const {
741
752
  style: {
742
753
  width: "100%"
743
754
  },
744
- value: f[t.name] ? X(f[t.name]) : void 0,
745
- getPopupContainer: (h) => h && h.parentNode ? h.parentNode : h,
755
+ value: h[t.name] ? U(h[t.name]) : void 0,
756
+ getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
746
757
  placeholder: t.placeholder || "请选择",
747
758
  allowClear: t.allowClear ?? !0,
748
759
  format: Ae(t.valueFormat, t.showTime),
749
760
  showTime: t.showTime,
750
761
  showToday: t.showToday || !0,
751
- onChange: (h) => Y(h, t)
762
+ onChange: (f) => Y(f, t)
752
763
  }, t.field || {}), null);
753
764
  break;
754
765
  case "dateWeek":
@@ -756,11 +767,11 @@ const {
756
767
  style: {
757
768
  width: "100%"
758
769
  },
759
- value: f[t.name] ? X(f[t.name], t.valueFormat || "YYYY-wo") : void 0,
760
- getPopupContainer: (h) => h && h.parentNode ? h.parentNode : h,
770
+ value: h[t.name] ? U(h[t.name], t.valueFormat || "YYYY-wo") : void 0,
771
+ getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
761
772
  allowClear: t.allowClear ?? !0,
762
773
  placeholder: t.placeholder || "请选择",
763
- onChange: (h) => Y(h, t)
774
+ onChange: (f) => Y(f, t)
764
775
  }, t.field || {}), null);
765
776
  break;
766
777
  case "dateMonth":
@@ -768,11 +779,11 @@ const {
768
779
  style: {
769
780
  width: "100%"
770
781
  },
771
- value: f[t.name] ? X(f[t.name], t.valueFormat || "YYYY-MM") : void 0,
772
- getPopupContainer: (h) => h && h.parentNode ? h.parentNode : h,
782
+ value: h[t.name] ? U(h[t.name], t.valueFormat || "YYYY-MM") : void 0,
783
+ getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
773
784
  allowClear: t.allowClear ?? !0,
774
785
  placeholder: t.placeholder || "请选择",
775
- onChange: (h) => Y(h, t)
786
+ onChange: (f) => Y(f, t)
776
787
  }, t.field || {}), null);
777
788
  break;
778
789
  case "dateQuarter":
@@ -780,11 +791,11 @@ const {
780
791
  style: {
781
792
  width: "100%"
782
793
  },
783
- value: f[t.name] ? X(f[t.name], t.valueFormat || "YYYY-QQ") : void 0,
784
- getPopupContainer: (h) => h && h.parentNode ? h.parentNode : h,
794
+ value: h[t.name] ? U(h[t.name], t.valueFormat || "YYYY-QQ") : void 0,
795
+ getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
785
796
  allowClear: t.allowClear ?? !0,
786
797
  placeholder: t.placeholder || "请选择",
787
- onChange: (h) => Y(h, t)
798
+ onChange: (f) => Y(f, t)
788
799
  }, t.field || {}), null);
789
800
  break;
790
801
  case "dateYear":
@@ -792,11 +803,11 @@ const {
792
803
  style: {
793
804
  width: "100%"
794
805
  },
795
- value: f[t.name] ? X(f[t.name], t.valueFormat || "YYYY") : void 0,
796
- getPopupContainer: (h) => h && h.parentNode ? h.parentNode : h,
806
+ value: h[t.name] ? U(h[t.name], t.valueFormat || "YYYY") : void 0,
807
+ getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
797
808
  allowClear: t.allowClear ?? !0,
798
809
  placeholder: t.placeholder || "请选择",
799
- onChange: (h) => Y(h, t)
810
+ onChange: (f) => Y(f, t)
800
811
  }, t.field || {}), null);
801
812
  break;
802
813
  case "dateRange":
@@ -804,12 +815,12 @@ const {
804
815
  style: {
805
816
  width: "100%"
806
817
  },
807
- value: f[t.name] && se(f[t.name]) && ((P = f[t.name]) == null ? void 0 : P.length) === 2 ? $t(f[t.name], Ae(t.valueFormat, t.showTime), "dayjs") : void 0,
808
- getPopupContainer: (h) => h && h.parentNode ? h.parentNode : h,
818
+ value: h[t.name] && oe(h[t.name]) && ((I = h[t.name]) == null ? void 0 : I.length) === 2 ? $t(h[t.name], Ae(t.valueFormat, t.showTime), "dayjs") : void 0,
819
+ getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
809
820
  placeholder: t.placeholder || ["开始日期", "结束日期"],
810
821
  format: Ae(t.valueFormat, t.showTime),
811
822
  showTime: t.showTime,
812
- onChange: (h) => Y(h, t)
823
+ onChange: (f) => Y(f, t)
813
824
  }, t.field || {}), null);
814
825
  break;
815
826
  case "time":
@@ -817,74 +828,82 @@ const {
817
828
  style: {
818
829
  width: "100%"
819
830
  },
820
- value: f[t.name] ? X(f[t.name], t.valueFormat || "HH:mm:ss") : void 0,
821
- getPopupContainer: (h) => h && h.parentNode ? h.parentNode : h,
831
+ value: h[t.name] ? U(h[t.name], t.valueFormat || "HH:mm:ss") : void 0,
832
+ getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
822
833
  placeholder: t.placeholder || "请选择",
823
834
  allowClear: t.allowClear || t.allowClear === !1 ? t.allowClear : !0,
824
835
  use12Hours: t.use12Hours,
825
836
  format: t.valueFormat || "HH:mm:ss",
826
- onChange: (h) => Y(h, t)
837
+ onChange: (f) => Y(f, t)
827
838
  }, t.field || {}), null);
828
839
  break;
829
840
  }
830
841
  return g;
831
- }, Z = ({
842
+ }, ee = ({
832
843
  formItemStyle: t = {},
833
844
  item: g
834
845
  }) => {
835
- var ee, P, h, L, V, q, de, U;
836
- const R = le(g) ? (ee = g.props) == null ? void 0 : ee.label : g.label, T = (le(g) ? (P = g.props) == null ? void 0 : P.labelWidth : g.labelWidth) || ((h = p.value) == null ? void 0 : h.width), k = (le(g) ? (L = g.props) == null ? void 0 : L.labelAlign : g.labelAlign) || ((V = p.value) == null ? void 0 : V.align);
846
+ var q, I, f, L, V, X, de, J;
847
+ const R = le(g) ? (q = g.props) == null ? void 0 : q.label : g.label, $ = (le(g) ? (I = g.props) == null ? void 0 : I.labelWidth : g.labelWidth) || ((f = p.value) == null ? void 0 : f.width), P = (le(g) ? (L = g.props) == null ? void 0 : L.labelAlign : g.labelAlign) || ((V = p.value) == null ? void 0 : V.align);
837
848
  return c("div", {
838
849
  class: `${e.prefixCls}-search-item`,
839
850
  style: {
840
851
  ...t,
841
- gap: (q = p.value) != null && q.gap ? wt((de = p.value) == null ? void 0 : de.gap) : void 0
852
+ gap: (X = p.value) != null && X.gap ? wt((de = p.value) == null ? void 0 : de.gap) : void 0
842
853
  }
843
854
  }, [R && c("div", {
844
- class: pe(`${e.prefixCls}-search-item-label`, ((U = p.value) == null ? void 0 : U.colon) === !1 && `${e.prefixCls}-search-item-label-no-colon`, k && `${e.prefixCls}-search-item-label-${k}`),
855
+ class: pe(`${e.prefixCls}-search-item-label`, ((J = p.value) == null ? void 0 : J.colon) === !1 && `${e.prefixCls}-search-item-label-no-colon`, P && `${e.prefixCls}-search-item-label-${P}`),
845
856
  style: {
846
- width: T ? wt(T) : void 0
857
+ width: $ ? wt($) : void 0
847
858
  }
848
859
  }, [R]), c("div", {
849
860
  class: pe(`${e.prefixCls}-search-item-children`)
850
861
  }, [le(g) ? g : Re(g)])]);
851
862
  }, Fe = () => {
852
- var R;
853
- const t = [...e.searchMap, ...((R = a.default) == null ? void 0 : R.call(a)) || []], g = {
863
+ var $, P;
864
+ let t = (($ = a.default) == null ? void 0 : $.call(a)) || [];
865
+ t.length === 1 && t[0].type === "template" && (t = ((P = t[0]) == null ? void 0 : P.children) || []);
866
+ const g = la([...e.searchMap, ...t.map((q) => {
867
+ var I;
868
+ return {
869
+ ...q,
870
+ order: ((I = q.props) == null ? void 0 : I.order) || void 0
871
+ };
872
+ })]), R = {
854
873
  width: `${(100 - (y.value - 1) * 2) / y.value}%`
855
874
  };
856
- return t.map((T, k) => {
857
- const ee = M(k, y.value, g);
858
- return t.length < y.value || n.value ? c(qe, null, [Z({
859
- formItemStyle: ee,
860
- item: T
861
- }), k === t.length - 1 && ce({
875
+ return g.map((q, I) => {
876
+ const f = M(I, y.value, R);
877
+ return g.length < y.value || n.value ? c(qe, null, [ee({
878
+ formItemStyle: f,
879
+ item: q
880
+ }), I === g.length - 1 && ce({
862
881
  formItemStyle: {
863
882
  flex: 1,
864
883
  justifyContent: "flex-end"
865
884
  },
866
885
  advanced: n.value,
867
886
  showAdvanced: n.value
868
- })]) : c(qe, null, [k < y.value - 1 && Z({
869
- formItemStyle: ee,
870
- item: T
871
- }), k === y.value - 1 && (y.value - 1 === 0 || t.length === y.value) && Z({
872
- formItemStyle: ee,
873
- item: T
874
- }), k === y.value - 1 && t.length >= y.value && ce({
887
+ })]) : c(qe, null, [I < y.value - 1 && ee({
888
+ formItemStyle: f,
889
+ item: q
890
+ }), I === y.value - 1 && (y.value - 1 === 0 || g.length === y.value) && ee({
891
+ formItemStyle: f,
892
+ item: q
893
+ }), I === y.value - 1 && g.length >= y.value && ce({
875
894
  formItemStyle: {
876
895
  flex: 1,
877
896
  justifyContent: "flex-end"
878
897
  },
879
898
  advanced: !1,
880
- showAdvanced: t.length !== y.value
899
+ showAdvanced: g.length !== y.value
881
900
  })]);
882
901
  });
883
902
  };
884
903
  return () => {
885
904
  var g;
886
905
  const t = e.cardBordered && `${e.prefixCls}-search-border`;
887
- return s(c("div", {
906
+ return u(c("div", {
888
907
  class: pe(o.value, `${e.prefixCls}-search`, t, o.value, (g = x.value) == null ? void 0 : g.className)
889
908
  }, [Fe()]));
890
909
  };
@@ -894,10 +913,10 @@ At.inheritAttrs = !1;
894
913
  const Ye = (e) => {
895
914
  const a = j(null);
896
915
  return a.value = e, (...l) => {
897
- var s;
898
- return (s = a.value) == null ? void 0 : s.call(a, ...l);
916
+ var u;
917
+ return (u = a.value) == null ? void 0 : u.call(a, ...l);
899
918
  };
900
- }, la = (e) => ({
919
+ }, aa = (e) => ({
901
920
  [`${e.componentCls}`]: {
902
921
  width: "auto",
903
922
  "&-title": {
@@ -983,12 +1002,12 @@ const Ye = (e) => {
983
1002
  title: e,
984
1003
  show: a,
985
1004
  treeKey: l,
986
- fixed: s
1005
+ fixed: u
987
1006
  }, {
988
1007
  slots: o
989
1008
  }) => {
990
1009
  const {
991
- cacheColumns: i,
1010
+ cacheColumns: s,
992
1011
  settingsAction: d
993
1012
  } = ge();
994
1013
  return a ? c(me, {
@@ -1000,21 +1019,21 @@ const Ye = (e) => {
1000
1019
  onClick: (x) => {
1001
1020
  var n, r, y;
1002
1021
  x.stopPropagation(), x.preventDefault();
1003
- const S = ((r = (n = C(i)) == null ? void 0 : n.find((p) => p.uuid === l)) == null ? void 0 : r.key) || "", f = (d == null ? void 0 : d.columnsMap[S]) || {};
1004
- if (typeof f.disable == "boolean" ? f.disable : (y = f.disable) == null ? void 0 : y.icon) return;
1005
- const u = {
1022
+ const S = ((r = (n = C(s)) == null ? void 0 : n.find((p) => p.uuid === l)) == null ? void 0 : r.key) || "", h = (d == null ? void 0 : d.columnsMap[S]) || {};
1023
+ if (typeof h.disable == "boolean" ? h.disable : (y = h.disable) == null ? void 0 : y.icon) return;
1024
+ const i = {
1006
1025
  ...d == null ? void 0 : d.columnsMap,
1007
1026
  [S]: {
1008
- ...f,
1009
- fixed: s
1027
+ ...h,
1028
+ fixed: u
1010
1029
  }
1011
1030
  };
1012
- d == null || d.setColumnsMap(u, "fixed");
1031
+ d == null || d.setColumnsMap(i, "fixed");
1013
1032
  }
1014
1033
  }, [(v = o.default) == null ? void 0 : v.call(o)])];
1015
1034
  }
1016
1035
  }) : null;
1017
- }, aa = /* @__PURE__ */ ve({
1036
+ }, na = /* @__PURE__ */ ve({
1018
1037
  props: {
1019
1038
  treeKey: String,
1020
1039
  hashId: String,
@@ -1027,9 +1046,9 @@ const Ye = (e) => {
1027
1046
  const {
1028
1047
  cacheColumns: a
1029
1048
  } = ge(), l = w(() => {
1030
- var o, i;
1031
- return ((i = (o = C(a)) == null ? void 0 : o.find((d) => d.uuid === e.treeKey)) == null ? void 0 : i.key) || "";
1032
- }), s = w(() => l.value === "action" && e.autoScroll);
1049
+ var o, s;
1050
+ return ((s = (o = C(a)) == null ? void 0 : o.find((d) => d.uuid === e.treeKey)) == null ? void 0 : s.key) || "";
1051
+ }), u = w(() => l.value === "action" && e.autoScroll);
1033
1052
  return () => {
1034
1053
  const o = c("span", {
1035
1054
  class: [`${e.className}-list-item-option`, e.hashId]
@@ -1037,14 +1056,14 @@ const Ye = (e) => {
1037
1056
  treeKey: e.treeKey || "",
1038
1057
  fixed: "left",
1039
1058
  title: "固定在列首",
1040
- show: e.fixed !== "left" && !s.value
1059
+ show: e.fixed !== "left" && !u.value
1041
1060
  }, {
1042
1061
  default: () => [c(pl, null, null)]
1043
1062
  }), c(et, {
1044
1063
  treeKey: e.treeKey || "",
1045
1064
  fixed: void 0,
1046
1065
  title: "不固定",
1047
- show: !!e.fixed && !s.value
1066
+ show: !!e.fixed && !u.value
1048
1067
  }, {
1049
1068
  default: () => [c(Tl, null, null)]
1050
1069
  }), c(et, {
@@ -1078,15 +1097,15 @@ const Ye = (e) => {
1078
1097
  }
1079
1098
  },
1080
1099
  setup(e) {
1081
- const a = j(nt().uuid(15)), l = w(() => e.list && e.list.length > 0), s = j([]), o = j([]), {
1082
- cacheColumns: i,
1100
+ const a = j(nt().uuid(15)), l = w(() => e.list && e.list.length > 0), u = j([]), o = j([]), {
1101
+ cacheColumns: s,
1083
1102
  slots: d,
1084
1103
  settingsAction: v
1085
- } = ge(), x = (u, n) => u.map(({
1104
+ } = ge(), x = (i, n) => i.map(({
1086
1105
  key: r,
1087
1106
  children: y,
1088
1107
  uuid: p,
1089
- ...I
1108
+ ...k
1090
1109
  }) => {
1091
1110
  var W;
1092
1111
  const F = (v == null ? void 0 : v.columnsMap[r || "null"]) || {
@@ -1096,7 +1115,7 @@ const Ye = (e) => {
1096
1115
  F.show !== !1 && (n == null ? void 0 : n.show) !== !1 && !y && (M = !0);
1097
1116
  const G = {
1098
1117
  key: p || "",
1099
- ...Xe(I, ["dataIndex"]),
1118
+ ...Xe(k, ["dataIndex"]),
1100
1119
  checked: M,
1101
1120
  selectable: !1,
1102
1121
  disabled: F.disable === !0,
@@ -1106,48 +1125,48 @@ const Ye = (e) => {
1106
1125
  return y && (G.children = x(y, F)), G;
1107
1126
  });
1108
1127
  Le(() => {
1109
- const u = x(e.list || []);
1110
- s.value = u, o.value = u.filter((n) => n.checked).map((n) => n.key), (v == null ? void 0 : v.operationType.value) === "fixed" && (a.value = nt().uuid(15));
1128
+ const i = x(e.list || []);
1129
+ u.value = i, o.value = i.filter((n) => n.checked).map((n) => n.key), (v == null ? void 0 : v.operationType.value) === "fixed" && (a.value = nt().uuid(15));
1111
1130
  });
1112
- const S = Ye((u, n, r) => {
1113
- var ne, A;
1114
- const y = ((ne = C(i).find((K) => K.uuid === u)) == null ? void 0 : ne.key) || "", p = ((A = C(i).find((K) => K.uuid === n)) == null ? void 0 : A.key) || "", I = {
1131
+ const S = Ye((i, n, r) => {
1132
+ var ue, A;
1133
+ const y = ((ue = C(s).find((K) => K.uuid === i)) == null ? void 0 : ue.key) || "", p = ((A = C(s).find((K) => K.uuid === n)) == null ? void 0 : A.key) || "", k = {
1115
1134
  ...v == null ? void 0 : v.columnsMap
1116
1135
  }, F = [...v.sortKeyColumns.value], M = F.findIndex((K) => K === y), G = F.findIndex((K) => K === p), W = r > M;
1117
1136
  if (M < 0)
1118
1137
  return;
1119
1138
  const Y = F[M];
1120
1139
  F.splice(M, 1), r === 0 ? F.unshift(Y) : F.splice(W ? G : G + 1, 0, Y), F.forEach((K, ce) => {
1121
- I[K] = {
1122
- ...I[K] || {},
1140
+ k[K] = {
1141
+ ...k[K] || {},
1123
1142
  order: ce
1124
1143
  };
1125
- }), v == null || v.setColumnsMap(I, "drop"), v == null || v.setSortKeyColumns(F);
1126
- }), f = Ye((u) => {
1144
+ }), v == null || v.setColumnsMap(k, "drop"), v == null || v.setSortKeyColumns(F);
1145
+ }), h = Ye((i) => {
1127
1146
  var F;
1128
- const n = u.node.key, r = ((F = C(i).find((M) => M.uuid === n)) == null ? void 0 : F.key) || "", p = {
1147
+ const n = i.node.key, r = ((F = C(s).find((M) => M.uuid === n)) == null ? void 0 : F.key) || "", p = {
1129
1148
  ...(v == null ? void 0 : v.columnsMap[r]) || {}
1130
1149
  };
1131
- p.show = u.checked;
1132
- const I = {
1150
+ p.show = i.checked;
1151
+ const k = {
1133
1152
  ...v == null ? void 0 : v.columnsMap,
1134
1153
  [r]: p
1135
1154
  };
1136
- v == null || v.setColumnsMap(I, "show");
1137
- }), b = (u) => {
1138
- const n = C(i).find((r) => r.uuid === u.key);
1139
- return u.title || hl(d, "headerCell", {
1155
+ v == null || v.setColumnsMap(k, "show");
1156
+ }), b = (i) => {
1157
+ const n = C(s).find((r) => r.uuid === i.key);
1158
+ return i.title || hl(d, "headerCell", {
1140
1159
  title: n.title,
1141
1160
  column: n
1142
1161
  }, () => [n.title]);
1143
1162
  };
1144
1163
  return () => {
1145
- var u, n;
1164
+ var i, n;
1146
1165
  return l.value ? c(qe, null, [e.showTitle && c("span", {
1147
1166
  class: [`${e.className}-list-title`, e.hashId]
1148
1167
  }, [e.title]), c(Kl, {
1149
1168
  key: a.value,
1150
- draggable: e.draggable && !!((u = s.value) != null && u.length) && ((n = s.value) == null ? void 0 : n.length) > 1,
1169
+ draggable: e.draggable && !!((i = u.value) != null && i.length) && ((n = u.value) == null ? void 0 : n.length) > 1,
1151
1170
  checkable: e.checkable,
1152
1171
  blockNode: !0,
1153
1172
  showLine: !1,
@@ -1155,13 +1174,13 @@ const Ye = (e) => {
1155
1174
  height: 280,
1156
1175
  onDrop: (r) => {
1157
1176
  const y = r.node.key, p = r.dragNode.key, {
1158
- dropPosition: I,
1177
+ dropPosition: k,
1159
1178
  dropToGap: F
1160
- } = r, M = I === -1 || !F ? I + 1 : I;
1179
+ } = r, M = k === -1 || !F ? k + 1 : k;
1161
1180
  S(p, y, M);
1162
1181
  },
1163
- onCheck: (r, y) => f(y),
1164
- treeData: s.value
1182
+ onCheck: (r, y) => h(y),
1183
+ treeData: u.value
1165
1184
  }, {
1166
1185
  title: (r) => {
1167
1186
  var p;
@@ -1171,7 +1190,7 @@ const Ye = (e) => {
1171
1190
  title: b(r),
1172
1191
  autoScroll: (p = v == null ? void 0 : v.autoScroll) == null ? void 0 : p.value
1173
1192
  };
1174
- return c(aa, Q({
1193
+ return c(na, Q({
1175
1194
  hashId: e.hashId,
1176
1195
  className: e.className
1177
1196
  }, y, {
@@ -1181,7 +1200,7 @@ const Ye = (e) => {
1181
1200
  })]) : null;
1182
1201
  };
1183
1202
  }
1184
- }), na = /* @__PURE__ */ ve({
1203
+ }), ua = /* @__PURE__ */ ve({
1185
1204
  props: {
1186
1205
  hashId: String,
1187
1206
  className: String,
@@ -1191,21 +1210,21 @@ const Ye = (e) => {
1191
1210
  setup(e) {
1192
1211
  const {
1193
1212
  columns: a
1194
- } = ge(), l = j([]), s = j([]), o = j([]), i = j([]);
1213
+ } = ge(), l = j([]), u = j([]), o = j([]), s = j([]);
1195
1214
  _(() => a.value, (x) => {
1196
- l.value = [], s.value = [], o.value = [], x.forEach((S) => {
1215
+ l.value = [], u.value = [], o.value = [], x.forEach((S) => {
1197
1216
  if (S.hideInSetting)
1198
1217
  return;
1199
1218
  const {
1200
- fixed: f,
1219
+ fixed: h,
1201
1220
  show: b,
1202
- uuid: u
1221
+ uuid: i
1203
1222
  } = S;
1204
- if ((b || b === void 0) && u && i.value.push(u), f === "left") {
1205
- s.value.push(S);
1223
+ if ((b || b === void 0) && i && s.value.push(i), h === "left") {
1224
+ u.value.push(S);
1206
1225
  return;
1207
1226
  }
1208
- if (f === "right") {
1227
+ if (h === "right") {
1209
1228
  l.value.push(S);
1210
1229
  return;
1211
1230
  }
@@ -1214,7 +1233,7 @@ const Ye = (e) => {
1214
1233
  }, {
1215
1234
  immediate: !0
1216
1235
  });
1217
- const d = w(() => l.value && l.value.length > 0), v = w(() => s.value && s.value.length > 0);
1236
+ const d = w(() => l.value && l.value.length > 0), v = w(() => u.value && u.value.length > 0);
1218
1237
  return () => c("div", {
1219
1238
  class: {
1220
1239
  [`${e.hashId}`]: !0,
@@ -1223,15 +1242,15 @@ const Ye = (e) => {
1223
1242
  }
1224
1243
  }, [c(tt, {
1225
1244
  title: "固定在左侧",
1226
- list: s.value,
1227
- keys: i.value,
1245
+ list: u.value,
1246
+ keys: s.value,
1228
1247
  hashId: e.hashId,
1229
1248
  draggable: e.draggable,
1230
1249
  checkable: e.checkable,
1231
1250
  className: e.className
1232
1251
  }, null), c(tt, {
1233
1252
  list: o.value,
1234
- keys: i.value,
1253
+ keys: s.value,
1235
1254
  hashId: e.hashId,
1236
1255
  draggable: e.draggable,
1237
1256
  checkable: e.checkable,
@@ -1241,14 +1260,14 @@ const Ye = (e) => {
1241
1260
  }, null), c(tt, {
1242
1261
  title: "固定在右侧",
1243
1262
  list: l.value,
1244
- keys: i.value,
1263
+ keys: s.value,
1245
1264
  hashId: e.hashId,
1246
1265
  draggable: e.draggable,
1247
1266
  checkable: e.checkable,
1248
1267
  className: e.className
1249
1268
  }, null)]);
1250
1269
  }
1251
- }), ua = /* @__PURE__ */ ve({
1270
+ }), ia = /* @__PURE__ */ ve({
1252
1271
  props: {
1253
1272
  draggable: {
1254
1273
  type: Boolean,
@@ -1267,58 +1286,58 @@ const Ye = (e) => {
1267
1286
  isPor: !0
1268
1287
  }), {
1269
1288
  wrapSSR: l,
1270
- hashId: s
1271
- } = Ue("ColumnSetting", [la], a), {
1289
+ hashId: u
1290
+ } = Ue("ColumnSetting", [aa], a), {
1272
1291
  columns: o,
1273
- settingsAction: i
1292
+ settingsAction: s
1274
1293
  } = ge(), d = Ye((b = !0) => {
1275
- const u = {}, n = (r) => {
1294
+ const i = {}, n = (r) => {
1276
1295
  r.forEach(({
1277
1296
  key: y,
1278
1297
  fixed: p,
1279
- index: I,
1298
+ index: k,
1280
1299
  children: F
1281
1300
  }) => {
1282
- const M = Ft(y, I);
1283
- M && (u[M] = {
1301
+ const M = Ft(y, k);
1302
+ M && (i[M] = {
1284
1303
  show: b,
1285
1304
  fixed: p
1286
1305
  }), F && n(F);
1287
1306
  });
1288
1307
  };
1289
- n(o.value), i == null || i.setColumnsMap(u, "show");
1308
+ n(o.value), s == null || s.setColumnsMap(i, "show");
1290
1309
  }), v = Ye((b) => {
1291
1310
  b.target.checked ? d() : d(!1);
1292
1311
  }), x = Ye(() => {
1293
- i == null || i.setColumnsMap(i == null ? void 0 : i.cacheColumnsMap, "fixed");
1312
+ s == null || s.setColumnsMap(s == null ? void 0 : s.cacheColumnsMap, "fixed");
1294
1313
  }), S = w(() => (
1295
1314
  // @ts-ignore
1296
- Object.values(i == null ? void 0 : i.columnsMap).filter((b) => !b || b.show === !1)
1297
- )), f = w(() => C(S).length > 0 && C(S).length !== o.value.length);
1315
+ Object.values(s == null ? void 0 : s.columnsMap).filter((b) => !b || b.show === !1)
1316
+ )), h = w(() => C(S).length > 0 && C(S).length !== o.value.length);
1298
1317
  return () => l(c(Ml, {
1299
1318
  arrowPointAtCenter: !0,
1300
1319
  title: c("div", {
1301
- class: [`${a}-title`, s.value]
1320
+ class: [`${a}-title`, u.value]
1302
1321
  }, [c(Al, {
1303
- indeterminate: f.value,
1322
+ indeterminate: h.value,
1304
1323
  checked: C(S).length === 0 && C(S).length !== o.value.length,
1305
1324
  onChange: (b) => v(b)
1306
1325
  }, {
1307
1326
  default: () => [ze("列展示")]
1308
1327
  }), e.checkedReset ? c("a", {
1309
1328
  onClick: x,
1310
- class: [`${a}-action-rest-button`, s.value]
1329
+ class: [`${a}-action-rest-button`, u.value]
1311
1330
  }, [ze("重置")]) : null, e != null && e.extra ? c(we, {
1312
1331
  size: 12,
1313
1332
  align: "center"
1314
1333
  }, {
1315
1334
  default: () => [e.extra]
1316
1335
  }) : null]),
1317
- overlayClassName: `${a}-overlay ${s.value}`,
1336
+ overlayClassName: `${a}-overlay ${u.value}`,
1318
1337
  trigger: "click",
1319
1338
  placement: "bottomRight",
1320
- content: c(na, {
1321
- hashId: s.value,
1339
+ content: c(ua, {
1340
+ hashId: u.value,
1322
1341
  checkable: e.checkable ?? !0,
1323
1342
  draggable: e.draggable ?? !0,
1324
1343
  className: a
@@ -1331,7 +1350,7 @@ const Ye = (e) => {
1331
1350
  })]
1332
1351
  }));
1333
1352
  }
1334
- }), ia = (e) => ({
1353
+ }), sa = (e) => ({
1335
1354
  [`${e.componentCls}`]: {
1336
1355
  lineHeight: 1,
1337
1356
  "&-container": {
@@ -1377,25 +1396,25 @@ function Bt(e) {
1377
1396
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !le(e);
1378
1397
  }
1379
1398
  const {
1380
- useBreakpoint: sa
1399
+ useBreakpoint: oa
1381
1400
  } = ot;
1382
- function oa(e) {
1401
+ function ra(e) {
1383
1402
  if (le(e))
1384
1403
  return e;
1385
1404
  if (e) {
1386
1405
  const a = e, {
1387
1406
  icon: l,
1388
- tooltip: s,
1407
+ tooltip: u,
1389
1408
  onClick: o,
1390
- key: i
1409
+ key: s
1391
1410
  } = a;
1392
- return l && s ? c(me, {
1393
- title: s
1411
+ return l && u ? c(me, {
1412
+ title: u
1394
1413
  }, {
1395
1414
  default: () => [c("span", {
1396
- key: i,
1415
+ key: s,
1397
1416
  onClick: () => {
1398
- o && o(i);
1417
+ o && o(s);
1399
1418
  }
1400
1419
  }, [l])]
1401
1420
  }) : l;
@@ -1416,28 +1435,28 @@ const Kt = /* @__PURE__ */ ve({
1416
1435
  const {
1417
1436
  wrapSSR: a,
1418
1437
  hashId: l
1419
- } = Ue("ListToolBar", [ia], e.prefixCls), s = sa(), {
1438
+ } = Ue("ListToolBar", [sa], e.prefixCls), u = oa(), {
1420
1439
  isMobile: o
1421
- } = ge(), i = w(() => {
1422
- var u;
1423
- return !!(e.titleTip || e.headerTitle || (u = e.actions) != null && u.length);
1440
+ } = ge(), s = w(() => {
1441
+ var i;
1442
+ return !!(e.titleTip || e.headerTitle || (i = e.actions) != null && i.length);
1424
1443
  }), d = w(() => {
1425
- var u;
1426
- return !!((u = e.settings) != null && u.length || e.optionsExtra);
1444
+ var i;
1445
+ return !!((i = e.settings) != null && i.length || e.optionsExtra);
1427
1446
  }), v = w(() => !!(e.titleTip || e.headerTitle)), x = w(() => {
1428
1447
  var n;
1429
- let u;
1448
+ let i;
1430
1449
  return Array.isArray(e.actions) ? ((n = e.actions) == null ? void 0 : n.length) < 1 ? null : c(we, {
1431
1450
  align: "center"
1432
- }, Bt(u = e.actions.map((r, y) => le(r) ? st(r, {
1451
+ }, Bt(i = e.actions.map((r, y) => le(r) ? st(r, {
1433
1452
  key: y,
1434
1453
  ...r == null ? void 0 : r.props
1435
1454
  }) : c("template", {
1436
1455
  key: y
1437
- }, [r]))) ? u : {
1438
- default: () => [u]
1456
+ }, [r]))) ? i : {
1457
+ default: () => [i]
1439
1458
  }) : e.actions;
1440
- }), S = Qe(() => !i.value && d.value ? c("div", {
1459
+ }), S = Qe(() => !s.value && d.value ? c("div", {
1441
1460
  class: `${e.prefixCls}-left ${l.value}`
1442
1461
  }, null) : v.value ? c(we, {
1443
1462
  class: `${e.prefixCls}-left ${l.value}`
@@ -1447,7 +1466,7 @@ const Kt = /* @__PURE__ */ ve({
1447
1466
  }, [e.headerTitle, e.titleTip && c(me, {
1448
1467
  title: e.titleTipText
1449
1468
  }, {
1450
- default: () => [re(e.titleTip) && e.titleTip ? c(Bl, null, null) : e.titleTip]
1469
+ default: () => [ne(e.titleTip) && e.titleTip ? c(Bl, null, null) : e.titleTip]
1451
1470
  })]), x.value && c("div", {
1452
1471
  class: `${e.prefixCls}-actions ${l.value}`
1453
1472
  }, [x.value])]
@@ -1457,13 +1476,13 @@ const Kt = /* @__PURE__ */ ve({
1457
1476
  default: () => [x.value && c("div", {
1458
1477
  class: `${e.prefixCls}-actions`
1459
1478
  }, [x.value])]
1460
- }), [() => i.value, () => d.value, () => v.value, () => e.prefixCls, () => e.headerTitle, () => e.titleTipText, () => e.titleTip]), f = Qe(() => {
1461
- let u;
1479
+ }), [() => s.value, () => d.value, () => v.value, () => e.prefixCls, () => e.headerTitle, () => e.titleTipText, () => e.titleTip]), h = Qe(() => {
1480
+ let i;
1462
1481
  return d.value ? c(we, {
1463
1482
  size: 16,
1464
1483
  class: `${e.prefixCls}-right ${l.value}`,
1465
- align: s.value.lg ? "center" : "end",
1466
- direction: s.value.lg ? "horizontal" : "vertical"
1484
+ align: u.value.lg ? "center" : "end",
1485
+ direction: u.value.lg ? "horizontal" : "vertical"
1467
1486
  }, {
1468
1487
  default: () => {
1469
1488
  var n;
@@ -1471,35 +1490,35 @@ const Kt = /* @__PURE__ */ ve({
1471
1490
  size: 12,
1472
1491
  align: "center",
1473
1492
  class: `${e.prefixCls}-setting-items`
1474
- }, Bt(u = e.settings.map((r, y) => {
1475
- const p = oa(r);
1493
+ }, Bt(i = e.settings.map((r, y) => {
1494
+ const p = ra(r);
1476
1495
  return c("div", {
1477
1496
  key: y,
1478
1497
  class: `${e.prefixCls}-setting-item`
1479
1498
  }, [p]);
1480
- })) ? u : {
1481
- default: () => [u]
1499
+ })) ? i : {
1500
+ default: () => [i]
1482
1501
  }) : null];
1483
1502
  }
1484
1503
  }) : null;
1485
- }, [() => s.value, () => d.value, () => e.prefixCls, () => v.value, () => x.value, () => e.settings]), b = Qe(() => {
1486
- if (!d.value && !i.value) return null;
1487
- const u = {
1504
+ }, [() => u.value, () => d.value, () => e.prefixCls, () => v.value, () => x.value, () => e.settings]), b = Qe(() => {
1505
+ if (!d.value && !s.value) return null;
1506
+ const i = {
1488
1507
  [`${l.value}`]: !0,
1489
1508
  [`${e.prefixCls}-container`]: !0,
1490
1509
  [`${e.prefixCls}-container-mobile`]: o.value
1491
1510
  };
1492
1511
  return c("div", {
1493
- class: u
1494
- }, [S.value, f.value]);
1495
- }, [() => o.value, () => i.value, () => d.value, () => S.value, () => e.prefixCls, () => f.value]);
1512
+ class: i
1513
+ }, [S.value, h.value]);
1514
+ }, [() => o.value, () => s.value, () => d.value, () => S.value, () => e.prefixCls, () => h.value]);
1496
1515
  return () => a(c("div", {
1497
1516
  class: `${e.prefixCls} ${l.value}`
1498
1517
  }, [b.value]));
1499
1518
  }
1500
1519
  });
1501
1520
  Kt.inheritAttrs = !1;
1502
- const ra = () => {
1521
+ const ca = () => {
1503
1522
  const {
1504
1523
  action: e,
1505
1524
  tableSize: a
@@ -1510,8 +1529,8 @@ const ra = () => {
1510
1529
  onClick: ({
1511
1530
  key: l
1512
1531
  }) => {
1513
- var s;
1514
- (s = e.setTableSize) == null || s.call(e, l);
1532
+ var u;
1533
+ (u = e.setTableSize) == null || u.call(e, l);
1515
1534
  },
1516
1535
  style: {
1517
1536
  width: 80
@@ -1555,7 +1574,7 @@ const ra = () => {
1555
1574
  });
1556
1575
  }
1557
1576
  });
1558
- function ca() {
1577
+ function da() {
1559
1578
  return {
1560
1579
  reload: {
1561
1580
  text: "刷新",
@@ -1563,7 +1582,7 @@ function ca() {
1563
1582
  },
1564
1583
  density: {
1565
1584
  text: "表格密度",
1566
- icon: c(ra, null, null)
1585
+ icon: c(ca, null, null)
1567
1586
  },
1568
1587
  setting: {
1569
1588
  text: "列设置",
@@ -1575,15 +1594,15 @@ function ca() {
1575
1594
  }
1576
1595
  };
1577
1596
  }
1578
- function da(e, a) {
1597
+ function fa(e, a) {
1579
1598
  return Object.keys(e).filter((l) => l).map((l) => {
1580
- const s = e[l];
1581
- if (!s)
1599
+ const u = e[l];
1600
+ if (!u)
1582
1601
  return null;
1583
- let o = s === !0 ? a[l] : () => s == null ? void 0 : s();
1602
+ let o = u === !0 ? a[l] : () => u == null ? void 0 : u();
1584
1603
  if (typeof o != "function" && (o = () => {
1585
1604
  }), l === "setting")
1586
- return c(ua, Q(e[l], {
1605
+ return c(ia, Q(e[l], {
1587
1606
  key: l
1588
1607
  }), null);
1589
1608
  if (l === "fullScreen")
@@ -1591,18 +1610,18 @@ function da(e, a) {
1591
1610
  key: l,
1592
1611
  onClick: o
1593
1612
  }, [c(zt, null, null)]);
1594
- const i = ca()[l];
1595
- return i ? c("span", {
1613
+ const s = da()[l];
1614
+ return s ? c("span", {
1596
1615
  key: l,
1597
1616
  onClick: o
1598
1617
  }, [c(me, {
1599
- title: i.text
1618
+ title: s.text
1600
1619
  }, {
1601
- default: () => [i.icon]
1620
+ default: () => [s.icon]
1602
1621
  })]) : null;
1603
1622
  }).filter((l) => l);
1604
1623
  }
1605
- const fa = {
1624
+ const ha = {
1606
1625
  options: [Boolean, Object, Array],
1607
1626
  titleTip: [Function, Boolean, Object, String],
1608
1627
  settingExtra: [Function, Boolean, Object, Array],
@@ -1610,8 +1629,8 @@ const fa = {
1610
1629
  titleTipText: [String],
1611
1630
  toolBarBtn: [Function, Boolean, Object, Array],
1612
1631
  headerTitle: [Function, Boolean, Object, Array, String]
1613
- }, ha = /* @__PURE__ */ ve({
1614
- props: fa,
1632
+ }, ma = /* @__PURE__ */ ve({
1633
+ props: ha,
1615
1634
  inheritAttrs: !1,
1616
1635
  setup(e) {
1617
1636
  const a = it({
@@ -1619,7 +1638,7 @@ const fa = {
1619
1638
  isPor: !0
1620
1639
  }), {
1621
1640
  action: l
1622
- } = ge(), s = Qe(() => {
1641
+ } = ge(), u = Qe(() => {
1623
1642
  var d;
1624
1643
  const o = {
1625
1644
  reload: () => l == null ? void 0 : l.reload(),
@@ -1628,11 +1647,11 @@ const fa = {
1628
1647
  fullScreen: () => l == null ? void 0 : l.toggle()
1629
1648
  };
1630
1649
  if (e.options === !1 || ((d = Object.keys(e.options)) == null ? void 0 : d.length) === 0) return [];
1631
- const i = {
1650
+ const s = {
1632
1651
  ...o,
1633
1652
  ...e.options
1634
1653
  };
1635
- return i.setting !== !1 && e.settingExtra && (i.setting = {}, i.setting.extra = e.settingExtra), da(i, {
1654
+ return s.setting !== !1 && e.settingExtra && (s.setting = {}, s.setting.extra = e.settingExtra), fa(s, {
1636
1655
  ...o
1637
1656
  });
1638
1657
  }, [() => l, () => e.options]);
@@ -1643,79 +1662,79 @@ const fa = {
1643
1662
  optionsExtra: e.optionsExtra,
1644
1663
  headerTitle: e.headerTitle,
1645
1664
  actions: o,
1646
- settings: C(s),
1665
+ settings: C(u),
1647
1666
  titleTip: e.titleTip,
1648
1667
  titleTipText: e.titleTipText
1649
1668
  }, null);
1650
1669
  };
1651
1670
  }
1652
1671
  });
1653
- function ma(e) {
1672
+ function va(e) {
1654
1673
  return vl();
1655
1674
  }
1656
- function va(e, a = !0, l) {
1657
- ma() ? ml(e, l) : a ? e() : Ot(e);
1675
+ function ga(e, a = !0, l) {
1676
+ va() ? ml(e, l) : a ? e() : Ot(e);
1658
1677
  }
1659
- function ga({ columns: e, columnsState: a, changeColumns: l }) {
1660
- const s = j(void 0), o = Te({}), i = Te({}), d = Te({}), v = j([]);
1678
+ function ya({ columns: e, columnsState: a, changeColumns: l }) {
1679
+ const u = j(void 0), o = Te({}), s = Te({}), d = Te({}), v = j([]);
1661
1680
  _(() => e.value, () => {
1662
1681
  var b;
1663
- (b = C(e)) == null || b.forEach(({ show: u, key: n, fixed: r }, y) => {
1682
+ (b = C(e)) == null || b.forEach(({ show: i, key: n, fixed: r }, y) => {
1664
1683
  const p = Ft(n, y);
1665
- p && (d[p] = { show: u === void 0 ? !0 : u, fixed: r });
1684
+ p && (d[p] = { show: i === void 0 ? !0 : i, fixed: r });
1666
1685
  });
1667
- const f = C(e).map((u) => u.key);
1668
- S(f);
1686
+ const h = C(e).map((i) => i.key);
1687
+ S(h);
1669
1688
  }, { deep: !0, immediate: !0 }), Le(() => {
1670
1689
  var b;
1671
- const f = {
1690
+ const h = {
1672
1691
  ...(b = C(a)) == null ? void 0 : b.value,
1673
1692
  ...C(d)
1674
1693
  };
1675
- Object.assign(o, f), Object.assign(i, f);
1694
+ Object.assign(o, h), Object.assign(s, h);
1676
1695
  });
1677
- function x(f, b) {
1678
- s.value = b, Object.assign(o, f), l == null || l(o, b === "fixed");
1696
+ function x(h, b) {
1697
+ u.value = b, Object.assign(o, h), l == null || l(o, b === "fixed");
1679
1698
  }
1680
- function S(f) {
1681
- v.value = f;
1699
+ function S(h) {
1700
+ v.value = h;
1682
1701
  }
1683
1702
  return {
1684
1703
  columnsMap: o,
1685
- operationType: s,
1704
+ operationType: u,
1686
1705
  setColumnsMap: x,
1687
1706
  sortKeyColumns: v,
1688
- cacheColumnsMap: i,
1707
+ cacheColumnsMap: s,
1689
1708
  setSortKeyColumns: S
1690
1709
  };
1691
1710
  }
1692
- function ya(e) {
1693
- const a = w(() => e.draggabled), l = w(() => e.neverScroll), s = w(() => e.autoScroll);
1711
+ function ba(e) {
1712
+ const a = w(() => e.draggabled), l = w(() => e.neverScroll), u = w(() => e.autoScroll);
1694
1713
  return {
1695
1714
  draggabled: a,
1696
1715
  neverScroll: l,
1697
- autoScroll: s
1716
+ autoScroll: u
1698
1717
  };
1699
1718
  }
1700
- function ba({ scroll: e, columns: a, breakpoint: l, draggabled: s, autoScroll: o, neverScroll: i }) {
1719
+ function Ca({ scroll: e, columns: a, breakpoint: l, draggabled: u, autoScroll: o, neverScroll: s }) {
1701
1720
  const d = j([]), v = j([]);
1702
1721
  _([
1703
1722
  () => e.value,
1704
1723
  () => a.value,
1705
1724
  () => l.value,
1706
- () => s.value,
1725
+ () => u.value,
1707
1726
  () => l.value,
1708
1727
  () => o.value,
1709
- () => i.value
1728
+ () => s.value
1710
1729
  ], () => {
1711
- const r = f(Be(a.value));
1712
- Ge(r, Be(d.value)) || (d.value = oe(r)), Ge(r, Be(v.value)) || (v.value = oe(r));
1730
+ const r = h(Be(a.value));
1731
+ Ge(r, Be(d.value)) || (d.value = re(r)), Ge(r, Be(v.value)) || (v.value = re(r));
1713
1732
  }, {
1714
1733
  deep: !0,
1715
1734
  immediate: !0
1716
1735
  });
1717
1736
  const x = w(() => {
1718
- const r = S(C(d).filter((I) => I.fixed === "left")), y = S(C(d).filter((I) => I.fixed !== "left" && I.fixed !== "right")), p = S(C(d).filter((I) => I.fixed === "right"));
1737
+ const r = S(C(d).filter((k) => k.fixed === "left")), y = S(C(d).filter((k) => k.fixed !== "left" && k.fixed !== "right")), p = S(C(d).filter((k) => k.fixed === "right"));
1719
1738
  return [
1720
1739
  ...r,
1721
1740
  ...y,
@@ -1725,13 +1744,13 @@ function ba({ scroll: e, columns: a, breakpoint: l, draggabled: s, autoScroll: o
1725
1744
  function S(r) {
1726
1745
  return r.sort((y, p) => al(y, p, "order", 0));
1727
1746
  }
1728
- function f(r) {
1729
- return oe(r).map((y, p) => {
1730
- var I;
1731
- if (y.dataIndex === "action" || p === r.length - 1 ? y.resizable = !1 : y.resizable = re(y.resizable) ? y.resizable : !!(_e(y.width) && C(s)), !y.width || C(i))
1747
+ function h(r) {
1748
+ return re(r).map((y, p) => {
1749
+ var k;
1750
+ if (y.dataIndex === "action" || p === r.length - 1 ? y.resizable = !1 : y.resizable = ne(y.resizable) ? y.resizable : !!(_e(y.width) && C(u)), !y.width || C(s))
1732
1751
  return y;
1733
1752
  if (y.dataIndex === "action" && C(o))
1734
- if ((I = C(e)) != null && I.x || !C(l))
1753
+ if ((k = C(e)) != null && k.x || !C(l))
1735
1754
  y.width = y.width || 100, y.fixed = "right";
1736
1755
  else {
1737
1756
  const F = C(a).find((M) => M.dataIndex === y.dataIndex);
@@ -1743,18 +1762,18 @@ function ba({ scroll: e, columns: a, breakpoint: l, draggabled: s, autoScroll: o
1743
1762
  function b(r, y) {
1744
1763
  d.value = d.value.map((p) => (p.uuid === y.uuid && (p.width = r), p));
1745
1764
  }
1746
- function u(r) {
1765
+ function i(r) {
1747
1766
  if (r.length <= 0) {
1748
1767
  d.value = [];
1749
1768
  return;
1750
1769
  }
1751
- Ge(f(r), Be(d.value)) || (d.value = f(r));
1770
+ Ge(h(r), Be(d.value)) || (d.value = h(r));
1752
1771
  }
1753
1772
  function n(r) {
1754
- u(oe(Be(a.value)).map((y) => {
1755
- var I, F, M;
1773
+ i(re(Be(a.value)).map((y) => {
1774
+ var k, F, M;
1756
1775
  const p = y.key ? {
1757
- show: (I = r[y.key]) == null ? void 0 : I.show,
1776
+ show: (k = r[y.key]) == null ? void 0 : k.show,
1758
1777
  fixed: (F = r[y.key]) == null ? void 0 : F.fixed,
1759
1778
  order: (M = r[y.key]) == null ? void 0 : M.order
1760
1779
  } : {};
@@ -1765,103 +1784,103 @@ function ba({ scroll: e, columns: a, breakpoint: l, draggabled: s, autoScroll: o
1765
1784
  breakpoint: l,
1766
1785
  proColumns: x,
1767
1786
  cacheProColumns: v,
1768
- setColumns: u,
1787
+ setColumns: i,
1769
1788
  changeColumns: n,
1770
1789
  resizeColumnWidth: b
1771
1790
  };
1772
1791
  }
1773
- function Ca(e, a) {
1774
- const l = w(() => a || 0), s = j(), o = j(e);
1775
- function i() {
1776
- s.value && clearTimeout(s.value);
1792
+ function xa(e, a) {
1793
+ const l = w(() => a || 0), u = j(), o = j(e);
1794
+ function s() {
1795
+ u.value && clearTimeout(u.value);
1777
1796
  }
1778
1797
  async function d(...v) {
1779
- return l.value === 0 || l.value === void 0 ? o.value(...v) : (i(), new Promise(async (x) => {
1798
+ return l.value === 0 || l.value === void 0 ? o.value(...v) : (s(), new Promise(async (x) => {
1780
1799
  var S;
1781
- (S = v[0]) != null && S.immediate ? x(await o.value(...v)) : s.value = setTimeout(async () => {
1800
+ (S = v[0]) != null && S.immediate ? x(await o.value(...v)) : u.value = setTimeout(async () => {
1782
1801
  x(await o.value(...v));
1783
1802
  }, l.value);
1784
1803
  }));
1785
1804
  }
1786
- return Hl(i), {
1787
- cancel: i,
1805
+ return Hl(s), {
1806
+ cancel: s,
1788
1807
  run: d
1789
1808
  };
1790
1809
  }
1791
- function xa(e) {
1792
- const a = w(() => e.rowKey), l = w(() => e.polling), s = w(() => e.debounceTime), o = w(() => e.dataSource);
1810
+ function Sa(e) {
1811
+ const a = w(() => e.rowKey), l = w(() => e.polling), u = w(() => e.debounceTime), o = w(() => e.dataSource);
1793
1812
  return {
1794
1813
  rowKey: a,
1795
1814
  polling: l,
1796
1815
  request: e.request,
1797
1816
  postData: e.postData,
1798
- debounceTime: s,
1817
+ debounceTime: u,
1799
1818
  dataSource: o
1800
1819
  };
1801
1820
  }
1802
- function Sa({ rowKey: e, polling: a, request: l, postData: s, dataSource: o, waitRequest: i, debounceTime: d }, { search: v, columns: x, loading: S, setLoading: f, setColumns: b, removeRowKeys: u, syncSelectedRows: n, formParamsRef: r, setPagination: y, paginationInfo: p, onBeforeSearchSubmit: I, hasCustomRender: F }, M) {
1803
- const G = j(), W = j(!0), Y = j(!1), ne = j(!1), A = j([]), K = j(), ce = w(() => {
1804
- var P;
1805
- return J(v.value) ? ((P = v.value) == null ? void 0 : P.type) === "button" : !!v.value;
1806
- }), Re = async (P = {}) => {
1807
- var U;
1808
- const { pagination: h, filters: L = {}, sorter: V = {}, removeKeys: q = [], isPolling: de = !1 } = P;
1809
- if (!l || !Ke(l) || C(i) && S.value || Y.value)
1821
+ function wa({ rowKey: e, polling: a, request: l, postData: u, dataSource: o, waitRequest: s, debounceTime: d }, { search: v, columns: x, loading: S, setLoading: h, setColumns: b, removeRowKeys: i, syncSelectedRows: n, formParamsRef: r, setPagination: y, paginationInfo: p, onBeforeSearchSubmit: k, hasCustomRender: F }, M) {
1822
+ const G = j(), W = j(!0), Y = j(!1), ue = j(!1), A = j([]), K = j(), ce = w(() => {
1823
+ var I;
1824
+ return Z(v.value) ? ((I = v.value) == null ? void 0 : I.type) === "button" : !!v.value;
1825
+ }), Re = async (I = {}) => {
1826
+ var J;
1827
+ const { pagination: f, filters: L = {}, sorter: V = {}, removeKeys: X = [], isPolling: de = !1 } = I;
1828
+ if (!l || !Ke(l) || C(s) && S.value || Y.value)
1810
1829
  return o.value || [];
1811
- if (Y.value = !0, !de || C(i) || W.value ? f(!0) : R(!0), C(i)) {
1830
+ if (Y.value = !0, !de || C(s) || W.value ? h(!0) : R(!0), C(s)) {
1812
1831
  W.value = !1, Y.value = !1;
1813
1832
  return;
1814
1833
  }
1815
- h && y(h);
1834
+ f && y(f);
1816
1835
  try {
1817
1836
  let ye = {};
1818
- if (re(h) && !h || re(p))
1837
+ if (ne(f) && !f || ne(p))
1819
1838
  ye = {};
1820
1839
  else {
1821
1840
  const { current: z = 1, pageSize: Ce = 10, total: te } = C(p) || {};
1822
- ye.pageNum = il({ current: z, pageSize: Ce, total: te }, q.length), q.length && u(q), ye.pageSize = Ce;
1841
+ ye.pageNum = il({ current: z, pageSize: Ce, total: te }, X.length), X.length && i(X), ye.pageSize = Ce;
1823
1842
  }
1824
- const We = J(V) ? [V] : V;
1843
+ const We = Z(V) ? [V] : V;
1825
1844
  We.forEach((z) => {
1826
1845
  const Ce = (z == null ? void 0 : z.columnKey) || (z == null ? void 0 : z.field);
1827
1846
  z && (z != null && z.order) ? b(C(x).map((te) => (te.dataIndex === Ce ? te.sortOrder = z == null ? void 0 : z.order : te.sortOrder = null, te))) : z && b(C(x).map((te) => (te.dataIndex === Ce && (te.sortOrder = null), te)));
1828
1847
  });
1829
1848
  let Pe = {
1830
1849
  ...ye || {},
1831
- ...P.params,
1850
+ ...I.params,
1832
1851
  ...r
1833
1852
  };
1834
- I && Ke(I) && (Pe = await I(Pe, V, L));
1853
+ k && Ke(k) && (Pe = await k(Pe, V, L));
1835
1854
  let ae = [];
1836
1855
  const be = await (l == null ? void 0 : l(Pe, We, L));
1837
1856
  if (Y.value = !1, be && (be != null && be.success)) {
1838
- ae = be.data || [], s && Ke(s) && (ae = await (s == null ? void 0 : s(ae))), n(ae);
1857
+ ae = be.data || [], u && Ke(u) && (ae = await (u == null ? void 0 : u(ae))), n(ae);
1839
1858
  const z = be.total || (ae == null ? void 0 : ae.length) || 0;
1840
- return z !== ((U = C(p)) == null ? void 0 : U.total) && y({
1859
+ return z !== ((J = C(p)) == null ? void 0 : J.total) && y({
1841
1860
  total: z || 0
1842
- }), k(ae), ae;
1861
+ }), P(ae), ae;
1843
1862
  } else
1844
1863
  return [];
1845
1864
  } catch (ye) {
1846
- A.value === void 0 && k([]), M("requestError", ye);
1865
+ A.value === void 0 && P([]), M("requestError", ye);
1847
1866
  } finally {
1848
- W.value = !1, f(!1);
1867
+ W.value = !1, h(!1);
1849
1868
  }
1850
1869
  return [];
1851
- }, Z = Ca(async (P) => {
1870
+ }, ee = xa(async (I) => {
1852
1871
  K.value && clearTimeout(K.value);
1853
- const h = await Re(P), L = nl(a.value, h);
1872
+ const f = await Re(I), L = nl(a.value, f);
1854
1873
  return L && !G.value && (K.value = setTimeout(() => {
1855
- Z.run({ ...P, isPolling: L });
1856
- }, Math.max(L, 2e3))), h;
1874
+ ee.run({ ...I, isPolling: L });
1875
+ }, Math.max(L, 2e3))), f;
1857
1876
  }, d.value || 10);
1858
1877
  gl(() => {
1859
1878
  G.value = !0, clearTimeout(K.value);
1860
1879
  }), yl(() => {
1861
1880
  G.value = !0, clearTimeout(K.value);
1862
1881
  }), _(() => a.value, () => {
1863
- a.value ? Z.run({ isPolling: !0 }) : clearTimeout(K.value);
1864
- }, { immediate: !0 }), _([() => i.value, () => o.value], () => {
1882
+ a.value ? ee.run({ isPolling: !0 }) : clearTimeout(K.value);
1883
+ }, { immediate: !0 }), _([() => s.value, () => o.value], () => {
1865
1884
  Fe();
1866
1885
  }, { deep: !0, immediate: !0 }), _([() => r], () => {
1867
1886
  ce.value || Fe();
@@ -1870,25 +1889,25 @@ function Sa({ rowKey: e, polling: a, request: l, postData: s, dataSource: o, wai
1870
1889
  immediate: !0
1871
1890
  });
1872
1891
  function Fe() {
1873
- Oe(l) ? (!W.value || !a.value) && Z.run({ isPolling: !1 }) : k(o.value || []);
1892
+ Oe(l) ? (!W.value || !a.value) && ee.run({ isPolling: !1 }) : (console.log(o.value), P(o.value || []));
1874
1893
  }
1875
1894
  const t = w(() => {
1876
1895
  if (F.value)
1877
1896
  return C(A);
1878
- const P = x.value.filter((h) => h.show || h.show === void 0);
1879
- return !C(A) || !P || P.length === 0 ? [] : C(A);
1880
- }), g = w(() => C(A).some((P) => se(P.children) && P.children.length > 0));
1881
- function R(P) {
1882
- ne.value = P;
1897
+ const I = x.value.filter((f) => f.show || f.show === void 0);
1898
+ return !C(A) || !I || I.length === 0 ? [] : C(A);
1899
+ }), g = w(() => C(A).some((I) => oe(I.children) && I.children.length > 0));
1900
+ function R(I) {
1901
+ ue.value = I;
1883
1902
  }
1884
- function T(P, h, L, V) {
1885
- Z.run({ pagination: P, filters: h, sorter: L, extra: V, isPolling: !1 }), M("change", P, h, L, V);
1903
+ function $(I, f, L, V) {
1904
+ ee.run({ pagination: I, filters: f, sorter: L, extra: V, isPolling: !1 }), M("change", I, f, L, V);
1886
1905
  }
1887
- function k(P) {
1906
+ function P(I) {
1888
1907
  var L;
1889
- const h = ul(oe(P), C(p.value));
1890
- if (!Ge(h, A.value) && (A.value = h, !l || !Ke(l))) {
1891
- const V = h.length || 0;
1908
+ const f = ul(re(I), C(p.value));
1909
+ if (!Ge(f, A.value) && (A.value = f, !l || !Ke(l))) {
1910
+ const V = f.length || 0;
1892
1911
  V !== ((L = C(p)) == null ? void 0 : L.total) && y({
1893
1912
  total: V
1894
1913
  });
@@ -1897,66 +1916,66 @@ function Sa({ rowKey: e, polling: a, request: l, postData: s, dataSource: o, wai
1897
1916
  return {
1898
1917
  dataSource: t,
1899
1918
  isTreeDataRef: g,
1900
- reSetDataList: k,
1901
- changeDataValue: ({ key: P, params: h, value: L, type: V = "update" }) => {
1902
- const q = P ?? e.value, de = h[q] ?? L;
1919
+ reSetDataList: P,
1920
+ changeDataValue: ({ key: I, params: f, value: L, type: V = "update" }) => {
1921
+ const X = I ?? e.value, de = f[X] ?? L;
1903
1922
  switch (V) {
1904
1923
  case "update":
1905
- q && de && (A.value = A.value.map((U) => de === U[q] ? sl(U, h, {
1924
+ X && de && (A.value = A.value.map((J) => de === J[X] ? sl(J, f, {
1906
1925
  omitNil: !1,
1907
1926
  omitEmpty: !1
1908
- }) : U));
1927
+ }) : J));
1909
1928
  break;
1910
1929
  case "push":
1911
- A.value.push(h);
1930
+ A.value.push(f);
1912
1931
  break;
1913
1932
  case "unshift":
1914
- A.value.unshift(h);
1933
+ A.value.unshift(f);
1915
1934
  break;
1916
1935
  case "delete":
1917
- q && (A.value = A.value.filter((U) => L !== U[q]));
1936
+ X && (A.value = A.value.filter((J) => L !== J[X]));
1918
1937
  break;
1919
1938
  }
1920
1939
  },
1921
- handleTableChange: T,
1922
- reload: async (P) => {
1923
- Oe(l) ? await Z.run({ ...P, isPolling: !1 }) : M("reload");
1940
+ handleTableChange: $,
1941
+ reload: async (I) => {
1942
+ Oe(l) ? await ee.run({ ...I, isPolling: !1 }) : M("reload");
1924
1943
  }
1925
1944
  };
1926
1945
  }
1927
- function wa({ emit: e, loading: a }) {
1928
- var i;
1929
- const l = j(re(a.value) ? a.value : J(a.value) ? (i = a.value) == null ? void 0 : i.spinning : !1);
1946
+ function pa({ emit: e, loading: a }) {
1947
+ var s;
1948
+ const l = j(ne(a.value) ? a.value : Z(a.value) ? (s = a.value) == null ? void 0 : s.spinning : !1);
1930
1949
  _(() => a.value, (d) => {
1931
- l.value = re(d) ? d : J(d) ? d == null ? void 0 : d.spinning : l.value;
1950
+ l.value = ne(d) ? d : Z(d) ? d == null ? void 0 : d.spinning : l.value;
1932
1951
  });
1933
- const s = w(() => l.value);
1952
+ const u = w(() => l.value);
1934
1953
  function o(d) {
1935
1954
  l.value = d, e("loadingChange", !0);
1936
1955
  }
1937
- return { loadingComputed: s, loading: l, setLoading: o };
1956
+ return { loadingComputed: u, loading: l, setLoading: o };
1938
1957
  }
1939
- function pa({
1958
+ function Ta({
1940
1959
  slots: e,
1941
1960
  props: a,
1942
1961
  pagination: l
1943
1962
  }) {
1944
- const s = Te({}), o = j();
1963
+ const u = Te({}), o = j();
1945
1964
  _(() => l.value, () => {
1946
1965
  var S;
1947
- if (re(l.value) && !l.value) {
1966
+ if (ne(l.value) && !l.value) {
1948
1967
  o.value = !1;
1949
1968
  return;
1950
1969
  }
1951
1970
  const d = It(e, C(a), "pageItemRender"), v = Ke(d) ? {
1952
1971
  itemRender: ({
1953
- page: f,
1972
+ page: h,
1954
1973
  type: b,
1955
- originalElement: u
1974
+ originalElement: i
1956
1975
  }) => d ? d({
1957
- page: f,
1976
+ page: h,
1958
1977
  type: b,
1959
- originalElement: u
1978
+ originalElement: i
1960
1979
  }) : null
1961
1980
  } : null, x = {
1962
1981
  current: 1,
@@ -1968,7 +1987,7 @@ function pa({
1968
1987
  ...l.value || {},
1969
1988
  ...v || {}
1970
1989
  };
1971
- (S = l.value) != null && S.showTotal || (x.showTotal = (f) => `共${f < x.pageSize ? 1 : Math.ceil(f / (x.pageSize || 10))}页 ${f}条记录`), o.value = x, Object.assign(s, {
1990
+ (S = l.value) != null && S.showTotal || (x.showTotal = (h) => `共${h < x.pageSize ? 1 : Math.ceil(h / (x.pageSize || 10))}页 ${h}条记录`), o.value = x, Object.assign(u, {
1972
1991
  pageNum: x.current,
1973
1992
  pageSize: x.pageSize
1974
1993
  });
@@ -1976,99 +1995,99 @@ function pa({
1976
1995
  deep: 1,
1977
1996
  immediate: !0
1978
1997
  });
1979
- function i(d) {
1980
- if (J(o.value) && J(d)) {
1998
+ function s(d) {
1999
+ if (Z(o.value) && Z(d)) {
1981
2000
  const v = {};
1982
2001
  Object.keys(d).forEach((x) => {
1983
2002
  Object.prototype.hasOwnProperty.call(d, x) && o.value[x] === d[x] || (v[x] = d[x]);
1984
- }), Object.keys(v).length > 0 && (Object.assign(o.value, v), Ta(v) && Object.assign(s, v));
2003
+ }), Object.keys(v).length > 0 && (Object.assign(o.value, v), $a(v) && Object.assign(u, v));
1985
2004
  }
1986
2005
  }
1987
2006
  return {
1988
2007
  paginationInfo: o,
1989
- requestPagination: s,
1990
- setPagination: i
2008
+ requestPagination: u,
2009
+ setPagination: s
1991
2010
  };
1992
2011
  }
1993
- function Ta(e) {
2012
+ function $a(e) {
1994
2013
  if (typeof e != "object" || e === null)
1995
2014
  return !1;
1996
2015
  const a = Object.keys(e);
1997
2016
  return a.length === 2 && a.includes("pageNum") && a.includes("pageSize");
1998
2017
  }
1999
- function $a(e, a) {
2000
- const l = j([]), s = j([]);
2018
+ function Ba(e, a) {
2019
+ const l = j([]), u = j([]);
2001
2020
  _(() => {
2002
- var f;
2003
- return (f = a.value) == null ? void 0 : f.selectedRowKeys;
2004
- }, (f) => {
2005
- l.value = ol([...f || []]);
2021
+ var h;
2022
+ return (h = a.value) == null ? void 0 : h.selectedRowKeys;
2023
+ }, (h) => {
2024
+ l.value = ol([...h || []]);
2006
2025
  }, {
2007
2026
  deep: !0,
2008
2027
  immediate: !0
2009
2028
  });
2010
- const o = (f, b) => {
2011
- e.value && (b ? f != null && f[e.value] && (l.value.push(f[e.value]), s.value.push(f)) : (l.value = l.value.filter((u) => u !== f[e.value]), s.value = s.value.filter((u) => u[e.value] !== f[e.value])));
2012
- }, i = () => {
2013
- var f, b;
2014
- a.value && ((b = (f = a.value) == null ? void 0 : f.onChange) == null || b.call(f, l.value, s.value));
2029
+ const o = (h, b) => {
2030
+ e.value && (b ? h != null && h[e.value] && (l.value.push(h[e.value]), u.value.push(h)) : (l.value = l.value.filter((i) => i !== h[e.value]), u.value = u.value.filter((i) => i[e.value] !== h[e.value])));
2031
+ }, s = () => {
2032
+ var h, b;
2033
+ a.value && ((b = (h = a.value) == null ? void 0 : h.onChange) == null || b.call(h, l.value, u.value));
2015
2034
  };
2016
2035
  return {
2017
2036
  selectedKeys: l,
2018
- selectedItems: s,
2037
+ selectedItems: u,
2019
2038
  selectRowKey: o,
2020
- selectAllRowKey: (f, b, u) => {
2021
- e.value && (f ? b.map((n) => (l.value.every((r) => r !== (n == null ? void 0 : n[e.value])) && n != null && n[e.value] && (l.value.push(n[e.value]), s.value.push(n)), n)) : u.map((n) => (l.value.includes(n == null ? void 0 : n[e.value]) && (l.value = l.value.filter((r) => r !== n[e.value]), s.value = s.value.filter((r) => r[e.value] !== n[e.value])), n)));
2039
+ selectAllRowKey: (h, b, i) => {
2040
+ e.value && (h ? b.map((n) => (l.value.every((r) => r !== (n == null ? void 0 : n[e.value])) && n != null && n[e.value] && (l.value.push(n[e.value]), u.value.push(n)), n)) : i.map((n) => (l.value.includes(n == null ? void 0 : n[e.value]) && (l.value = l.value.filter((r) => r !== n[e.value]), u.value = u.value.filter((r) => r[e.value] !== n[e.value])), n)));
2022
2041
  },
2023
- removeRowKeys: (f) => {
2024
- l.value = l.value.filter((b) => !f.includes(b)), s.value = s.value.filter((b) => !f.includes(b == null ? void 0 : b[e.value || ""])), i();
2042
+ removeRowKeys: (h) => {
2043
+ l.value = l.value.filter((b) => !h.includes(b)), u.value = u.value.filter((b) => !h.includes(b == null ? void 0 : b[e.value || ""])), s();
2025
2044
  },
2026
- changeRowKey: i,
2027
- syncSelectedRows: (f) => {
2028
- if (e.value && l.value.length !== s.value.length) {
2029
- const b = s.value.map((n) => n[e.value]), u = l.value.filter((n) => !b.includes(n));
2030
- f.forEach((n) => {
2031
- u.includes(n[e.value]) && s.value.push(oe(n));
2045
+ changeRowKey: s,
2046
+ syncSelectedRows: (h) => {
2047
+ if (e.value && l.value.length !== u.value.length) {
2048
+ const b = u.value.map((n) => n[e.value]), i = l.value.filter((n) => !b.includes(n));
2049
+ h.forEach((n) => {
2050
+ i.includes(n[e.value]) && u.value.push(re(n));
2032
2051
  });
2033
2052
  }
2034
2053
  },
2035
2054
  clearAllRowKeys: () => {
2036
- l.value = [], s.value = [], i();
2055
+ l.value = [], u.value = [], s();
2037
2056
  }
2038
2057
  };
2039
2058
  }
2040
- function Ba(e) {
2059
+ function Ra(e) {
2041
2060
  const a = {};
2042
2061
  return e.forEach((l) => {
2043
- let s = l.initialValue;
2044
- const o = ["select"], i = ["date", "time", "dateRange"];
2045
- !s && o.includes(l.valueType) ? s = void 0 : !s && i.includes(l.valueType) ? s = null : s || (s = ""), l.name === "dateRange" ? (a[l.rangeStartName || "start"] = s ? s[0] : null, a[l.rangeEndName || "end"] = s ? s[1] : null) : l.name && (a[l.name] = s);
2062
+ let u = l.initialValue;
2063
+ const o = ["select"], s = ["date", "time", "dateRange"];
2064
+ !u && o.includes(l.valueType) ? u = void 0 : !u && s.includes(l.valueType) ? u = null : u || (u = ""), l.name === "dateRange" ? (a[l.rangeStartName || "start"] = u ? u[0] : null, a[l.rangeEndName || "end"] = u ? u[1] : null) : l.name && (a[l.name] = u);
2046
2065
  }), a;
2047
2066
  }
2048
- function Ra({ searchMap: e, params: a, columns: l, setPagination: s }) {
2049
- const o = Te({}), i = Te({}), d = j([]), v = (S) => {
2050
- var b, u;
2051
- const f = [];
2052
- if ((S === "all" || S === "searchMap") && ((b = e.value) == null || b.forEach((n) => f.push(n)), f.forEach((n) => {
2067
+ function Fa({ searchMap: e, params: a, columns: l, setPagination: u }) {
2068
+ const o = Te({}), s = Te({}), d = j([]), v = (S) => {
2069
+ var b, i;
2070
+ const h = [];
2071
+ if ((S === "all" || S === "searchMap") && ((b = e.value) == null || b.forEach((n) => h.push(n)), h.forEach((n) => {
2053
2072
  d.value.some((r) => r.name === n.name) ? d.value = d.value.map((r) => r.name === n.name ? {
2054
2073
  ...r,
2055
2074
  ...n
2056
2075
  } : r) : d.value.push(n);
2057
- })), (S === "all" || S === "columns") && ((u = l.value) != null && u.length) && (l.value && l.value.forEach((n) => {
2058
- n.searchConfig && f.push(n.searchConfig);
2059
- }), f.forEach((n) => {
2076
+ })), (S === "all" || S === "columns") && ((i = l.value) != null && i.length) && (l.value && l.value.forEach((n) => {
2077
+ n.searchConfig && h.push(n.searchConfig);
2078
+ }), h.forEach((n) => {
2060
2079
  d.value.some((r) => r.name === n.name) ? d.value = d.value.map((r) => r.name === n.name ? {
2061
2080
  ...r,
2062
2081
  ...n
2063
2082
  } : r) : d.value.push(n);
2064
2083
  })), S === "all" || S === "searchMap" || S === "columns") {
2065
- s({ current: 1 });
2066
- const n = Ba(f);
2067
- Object.assign(i, { ...n });
2084
+ u({ current: 1 });
2085
+ const n = Ra(h);
2086
+ Object.assign(s, { ...n });
2068
2087
  for (const r in n)
2069
2088
  o[r] || (o[r] = n[r]);
2070
2089
  }
2071
- (S === "all" || S === "params") && (s({ current: 1 }), Object.assign(o, a.value));
2090
+ (S === "all" || S === "params") && (u({ current: 1 }), Object.assign(o, a.value));
2072
2091
  };
2073
2092
  bl(() => {
2074
2093
  v("all");
@@ -2080,50 +2099,50 @@ function Ra({ searchMap: e, params: a, columns: l, setPagination: s }) {
2080
2099
  v("columns");
2081
2100
  }, { deep: !0 });
2082
2101
  function x(S) {
2083
- s({ current: 1 }), Object.assign(o, S);
2102
+ u({ current: 1 }), Object.assign(o, S);
2084
2103
  }
2085
- return { formDataRef: d, formParamsRef: o, defaultParamsRef: i, setFormParams: x };
2104
+ return { formDataRef: d, formParamsRef: o, defaultParamsRef: s, setFormParams: x };
2086
2105
  }
2087
- function Fa(e) {
2088
- const a = w(() => e.scroll), l = w(() => e.autoScroll), s = w(() => e.modalScroll), o = w(() => e.neverScroll), i = w(() => e.rowSelection), d = w(() => e.scrollBreakpoint);
2106
+ function Ia(e) {
2107
+ const a = w(() => e.scroll), l = w(() => e.autoScroll), u = w(() => e.modalScroll), o = w(() => e.neverScroll), s = w(() => e.rowSelection), d = w(() => e.scrollBreakpoint);
2089
2108
  return {
2090
2109
  scroll: a,
2091
2110
  neverScroll: o,
2092
- rowSelection: i,
2111
+ rowSelection: s,
2093
2112
  autoScroll: l,
2094
- modalScroll: s,
2113
+ modalScroll: u,
2095
2114
  scrollBreakpoint: d
2096
2115
  };
2097
2116
  }
2098
- function Ia({ scroll: e, columns: a, autoScroll: l, modalScroll: s, neverScroll: o, rowSelection: i, screens: d, innerWidth: v, scrollBreakpoint: x }) {
2117
+ function ka({ scroll: e, columns: a, autoScroll: l, modalScroll: u, neverScroll: o, rowSelection: s, screens: d, innerWidth: v, scrollBreakpoint: x }) {
2099
2118
  const S = w(() => {
2100
- var u, n, r;
2101
- return C(x) ? _e(C(x)) ? v.value > C(x) : kt(C(x)) ? (u = d.value) == null ? void 0 : u[C(x)] : (n = d.value) == null ? void 0 : n.xl : (r = d.value) == null ? void 0 : r.xl;
2102
- }), f = w(() => {
2103
- let u = 0;
2104
- const n = C(i) ? 60 : 0, r = 150, y = oe(C(a));
2119
+ var i, n, r;
2120
+ return C(x) ? _e(C(x)) ? v.value > C(x) : kt(C(x)) ? (i = d.value) == null ? void 0 : i[C(x)] : (n = d.value) == null ? void 0 : n.xl : (r = d.value) == null ? void 0 : r.xl;
2121
+ }), h = w(() => {
2122
+ let i = 0;
2123
+ const n = C(s) ? 60 : 0, r = 150, y = re(C(a));
2105
2124
  y.forEach((F) => {
2106
- u += Number.parseInt(String(F.width)) || 0;
2125
+ i += Number.parseInt(String(F.width)) || 0;
2107
2126
  });
2108
- const I = y.filter((F) => !Reflect.has(F, "width")).length;
2109
- return I !== 0 && (u += I * r), n && (u += n), u;
2127
+ const k = y.filter((F) => !Reflect.has(F, "width")).length;
2128
+ return k !== 0 && (i += k * r), n && (i += n), i;
2110
2129
  });
2111
2130
  return { proScroll: w(() => {
2112
- var u, n;
2113
- return C(o) ? {} : C(e) && Object.keys(C(e)).length ? C(e) : C(s) ? {
2114
- y: ((u = C(e)) == null ? void 0 : u.y) || ((n = d.value) != null && n.xl ? 400 : 235)
2115
- } : C(l) ? S.value ? {} : re(S.value) ? { x: C(f) } : {} : {};
2131
+ var i, n;
2132
+ return C(o) ? {} : C(e) && Object.keys(C(e)).length ? C(e) : C(u) ? {
2133
+ y: ((i = C(e)) == null ? void 0 : i.y) || ((n = d.value) != null && n.xl ? 400 : 235)
2134
+ } : C(l) ? S.value ? {} : ne(S.value) ? { x: C(h) } : {} : {};
2116
2135
  }), breakpoint: S };
2117
2136
  }
2118
- function ka({ size: e, emit: a }) {
2137
+ function Oa({ size: e, emit: a }) {
2119
2138
  const l = j("middle");
2120
2139
  Le(() => {
2121
2140
  l.value = e.value;
2122
2141
  });
2123
- function s(o) {
2142
+ function u(o) {
2124
2143
  l.value = o, a("sizeChange", o);
2125
2144
  }
2126
- return { sizeRef: l, setTableSize: s };
2145
+ return { sizeRef: l, setTableSize: u };
2127
2146
  }
2128
2147
  const lt = {
2129
2148
  "&::-webkit-scrollbar": {
@@ -2138,7 +2157,7 @@ const lt = {
2138
2157
  backgroundColor: "transparent",
2139
2158
  borderRadius: 2
2140
2159
  }
2141
- }, Oa = (e) => {
2160
+ }, Pa = (e) => {
2142
2161
  const a = `${e.antCls}-table`;
2143
2162
  return {
2144
2163
  [e.componentCls]: {
@@ -2329,64 +2348,66 @@ const lt = {
2329
2348
  color: e.colorWhite
2330
2349
  }
2331
2350
  },
2332
- [`${e.antCls}-table-content`]: lt,
2333
- [`${e.antCls}-table-body`]: lt,
2334
- [`${e.antCls}-table-empty`]: {
2335
- [`${e.antCls}-table-content`]: lt
2351
+ [`&${e.componentCls}-beautify-scroll`]: {
2352
+ [`${e.antCls}-table-content`]: lt,
2353
+ [`${e.antCls}-table-body`]: lt,
2354
+ [`${e.antCls}-table-empty`]: {
2355
+ [`${e.antCls}-table-content`]: lt
2356
+ }
2336
2357
  }
2337
2358
  }
2338
2359
  };
2339
2360
  };
2340
- function Pa(e) {
2361
+ function ja(e) {
2341
2362
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !le(e);
2342
2363
  }
2343
- function ja(e, a, l, s) {
2364
+ function Na(e, a, l, u) {
2344
2365
  if (!a) return e;
2345
2366
  let o = e;
2346
- if (J(a)) {
2347
- const i = a.node === "a" ? "span" : a.node;
2348
- return c(i, Q((a == null ? void 0 : a.attr) || {}, {
2367
+ if (Z(a)) {
2368
+ const s = a.node === "a" ? "span" : a.node;
2369
+ return c(s, Q((a == null ? void 0 : a.attr) || {}, {
2349
2370
  class: [a.class, a.node === "a" ? `${l}-a` : ""],
2350
2371
  onClick: a.click
2351
- }), Pa(e) ? e : {
2372
+ }), ja(e) ? e : {
2352
2373
  default: () => [e]
2353
2374
  });
2354
2375
  }
2355
2376
  switch (a) {
2356
2377
  case "link":
2357
2378
  o = c("span", {
2358
- class: [`${l}-a`, s]
2379
+ class: [`${l}-a`, u]
2359
2380
  }, [e]);
2360
2381
  break;
2361
2382
  case "time":
2362
- o = X(e).format("HH:mm:ss");
2383
+ o = U(e).format("HH:mm:ss");
2363
2384
  break;
2364
2385
  case "dateMonth":
2365
- o = `${X(e).month() + 1}月`;
2386
+ o = `${U(e).month() + 1}月`;
2366
2387
  break;
2367
2388
  case "date":
2368
- o = X(e).format("YYYY-MM-DD");
2389
+ o = U(e).format("YYYY-MM-DD");
2369
2390
  break;
2370
2391
  case "dateTime":
2371
- o = X(e).format("YYYY-MM-DD HH:mm:ss");
2392
+ o = U(e).format("YYYY-MM-DD HH:mm:ss");
2372
2393
  break;
2373
2394
  }
2374
2395
  return o;
2375
2396
  }
2376
- function Na(e, a) {
2377
- const l = a && a.current || 1, s = a && a.pageSize || 10;
2378
- return e.filter((o, i) => i < l * s && i >= s * (l - 1));
2397
+ function Ea(e, a) {
2398
+ const l = a && a.current || 1, u = a && a.pageSize || 10;
2399
+ return e.filter((o, s) => s < l * u && s >= u * (l - 1));
2379
2400
  }
2380
- function Ea(e) {
2401
+ function Da(e) {
2381
2402
  const a = document.createElement("textarea");
2382
2403
  a.style.position = "absolute", a.style.opacity = "0", a.value = e, document.body.appendChild(a), a.select(), document.execCommand("copy"), document.body.removeChild(a);
2383
2404
  }
2384
- function Da(e) {
2405
+ function Ma(e) {
2385
2406
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !le(e);
2386
2407
  }
2387
2408
  const {
2388
- useBreakpoint: Ma
2389
- } = ot, Aa = {
2409
+ useBreakpoint: Aa
2410
+ } = ot, Ka = {
2390
2411
  reload: !0,
2391
2412
  density: !0,
2392
2413
  setting: !0,
@@ -2400,42 +2421,42 @@ const {
2400
2421
  setup(e, {
2401
2422
  emit: a,
2402
2423
  slots: l,
2403
- attrs: s,
2424
+ attrs: u,
2404
2425
  expose: o
2405
2426
  }) {
2406
- const i = it({
2427
+ const s = it({
2407
2428
  suffixCls: "table",
2408
2429
  isPor: !0
2409
2430
  }), {
2410
2431
  wrapSSR: d,
2411
2432
  hashId: v
2412
- } = Ue("ProBaseTable", [Oa], i), x = Ma(), {
2433
+ } = Ue("ProBaseTable", [Pa], s), x = Aa(), {
2413
2434
  width: S
2414
- } = jl(), f = j(!1), b = Nt(), u = j(), n = j(), r = j(e.waitRequest);
2435
+ } = jl(), h = j(!1), b = Nt(), i = j(), n = j(), r = j(e.waitRequest);
2415
2436
  Le(() => r.value = e.waitRequest);
2416
2437
  const {
2417
2438
  toggle: y,
2418
2439
  isFullscreen: p
2419
- } = Et(u), I = w(() => ({
2440
+ } = Et(i), k = w(() => ({
2420
2441
  ...e
2421
2442
  })), F = w(() => !x.value.xl), M = w(() => {
2422
- var m, $;
2423
- return e.virtualScroll && xl(!((m = e.scroll) != null && m.y), "参数scroll的Y值不能为空!"), !!(($ = e.scroll) != null && $.y && e.virtualScroll);
2424
- }), G = w(() => e.search === !1 ? !1 : J(e.search) ? e.search : {
2443
+ var m, T;
2444
+ return e.virtualScroll && xl(!((m = e.scroll) != null && m.y), "参数scroll的Y值不能为空!"), !!((T = e.scroll) != null && T.y && e.virtualScroll);
2445
+ }), G = w(() => e.search === !1 ? !1 : Z(e.search) ? e.search : {
2425
2446
  type: "auto",
2426
2447
  resetText: "重置",
2427
2448
  searchText: "查询"
2428
2449
  }), W = w(() => G.value === !1 ? {} : G.value), Y = w(() => {
2429
2450
  var m;
2430
2451
  return ((m = W.value) == null ? void 0 : m.type) === "button";
2431
- }), ne = w(() => {
2452
+ }), ue = w(() => {
2432
2453
  var m;
2433
2454
  return (m = W.value) == null ? void 0 : m.actions;
2434
2455
  }), A = w(() => {
2435
- const m = (e.columns || []).filter(($) => $.key || $.dataIndex).map(($) => ({
2436
- ...$,
2437
- key: $.key || $.dataIndex,
2438
- align: $.align || e.align,
2456
+ const m = (e.columns || []).filter((T) => T.key || T.dataIndex).map((T) => ({
2457
+ ...T,
2458
+ key: T.key || T.dataIndex,
2459
+ align: T.align || e.align,
2439
2460
  uuid: nt().uuid(15)
2440
2461
  }));
2441
2462
  return rl(m, {
@@ -2446,59 +2467,59 @@ const {
2446
2467
  loadingComputed: K,
2447
2468
  loading: ce,
2448
2469
  setLoading: Re
2449
- } = wa({
2470
+ } = pa({
2450
2471
  emit: a,
2451
2472
  loading: fe(e, "loading")
2452
2473
  }), {
2453
- sizeRef: Z,
2474
+ sizeRef: ee,
2454
2475
  setTableSize: Fe
2455
- } = ka({
2476
+ } = Oa({
2456
2477
  emit: a,
2457
2478
  size: fe(e, "size")
2458
2479
  }), {
2459
2480
  paginationInfo: t,
2460
2481
  requestPagination: g,
2461
2482
  setPagination: R
2462
- } = pa({
2483
+ } = Ta({
2463
2484
  slots: l,
2464
- props: I,
2485
+ props: k,
2465
2486
  pagination: fe(e, "pagination")
2466
- }), T = Fa(e), {
2467
- proScroll: k,
2468
- breakpoint: ee
2469
- } = Ia({
2470
- ...T,
2487
+ }), $ = Ia(e), {
2488
+ proScroll: P,
2489
+ breakpoint: q
2490
+ } = ka({
2491
+ ...$,
2471
2492
  innerWidth: S,
2472
2493
  columns: A,
2473
2494
  screens: x
2474
- }), P = ya(e), {
2475
- proColumns: h,
2495
+ }), I = ba(e), {
2496
+ proColumns: f,
2476
2497
  cacheProColumns: L,
2477
2498
  setColumns: V,
2478
- changeColumns: q,
2499
+ changeColumns: X,
2479
2500
  resizeColumnWidth: de
2480
- } = ba({
2481
- ...P,
2482
- breakpoint: ee,
2483
- scroll: k,
2501
+ } = Ca({
2502
+ ...I,
2503
+ breakpoint: q,
2504
+ scroll: P,
2484
2505
  columns: A
2485
2506
  }), {
2486
- columnsMap: U,
2507
+ columnsMap: J,
2487
2508
  operationType: ye,
2488
2509
  setColumnsMap: We,
2489
2510
  sortKeyColumns: Pe,
2490
2511
  cacheColumnsMap: ae,
2491
2512
  setSortKeyColumns: be
2492
- } = ga({
2513
+ } = ya({
2493
2514
  columns: L,
2494
2515
  columnsState: fe(e, "columnsState"),
2495
- changeColumns: q
2516
+ changeColumns: X
2496
2517
  }), {
2497
2518
  formDataRef: z,
2498
2519
  formParamsRef: Ce,
2499
2520
  defaultParamsRef: te,
2500
2521
  setFormParams: Je
2501
- } = Ra({
2522
+ } = Fa({
2502
2523
  searchMap: fe(e, "searchMap"),
2503
2524
  params: fe(e, "params"),
2504
2525
  columns: A,
@@ -2512,14 +2533,14 @@ const {
2512
2533
  syncSelectedRows: ft,
2513
2534
  removeRowKeys: ht,
2514
2535
  clearAllRowKeys: Wt
2515
- } = $a(fe(e, "rowKey"), fe(e, "rowSelection")), Vt = xa(e), {
2536
+ } = Ba(fe(e, "rowKey"), fe(e, "rowSelection")), Vt = Sa(e), {
2516
2537
  reload: je,
2517
2538
  reSetDataList: Ht,
2518
2539
  changeDataValue: Gt,
2519
2540
  isTreeDataRef: Qt,
2520
2541
  dataSource: Ne,
2521
2542
  handleTableChange: mt
2522
- } = Sa({
2543
+ } = wa({
2523
2544
  ...Vt,
2524
2545
  waitRequest: r
2525
2546
  }, {
@@ -2531,102 +2552,102 @@ const {
2531
2552
  setLoading: Re,
2532
2553
  setColumns: V,
2533
2554
  search: G,
2534
- columns: h,
2555
+ columns: f,
2535
2556
  formParamsRef: Ce,
2536
2557
  onBeforeSearchSubmit: e.onBeforeSearchSubmit,
2537
2558
  hasCustomRender: w(() => Oe(e.customRender || (l == null ? void 0 : l.customRender)))
2538
2559
  }, a), Ee = w(() => e.options ? {
2539
- ...Aa,
2540
- ...J(e.options) ? e.options : {}
2560
+ ...Ka,
2561
+ ...Z(e.options) ? e.options : {}
2541
2562
  } : !1), _t = w(() => ({
2542
- size: C(Z),
2543
- scroll: C(k),
2563
+ size: C(ee),
2564
+ scroll: C(P),
2544
2565
  dataSource: C(Ne),
2545
2566
  pagination: C(t),
2546
2567
  virtualScroll: M.value,
2547
- columns: C(h).filter((m) => m.show || m.show === void 0)
2568
+ columns: C(f).filter((m) => m.show || m.show === void 0)
2548
2569
  })), vt = w(() => {
2549
- var $, B;
2550
- const m = J(e.loading) ? Xe(e.loading, "spinning") : {};
2551
- return !m.indicator && (($ = b == null ? void 0 : b.indicator) != null && $.value) && (m.indicator = (B = b == null ? void 0 : b.indicator) == null ? void 0 : B.value), {
2570
+ var T, B;
2571
+ const m = Z(e.loading) ? Xe(e.loading, "spinning") : {};
2572
+ return !m.indicator && ((T = b == null ? void 0 : b.indicator) != null && T.value) && (m.indicator = (B = b == null ? void 0 : b.indicator) == null ? void 0 : B.value), {
2552
2573
  spinning: e.showLoading ? Oe(ce.value) : !1,
2553
2574
  ...m
2554
2575
  };
2555
2576
  }), gt = w(() => {
2556
2577
  var N;
2557
2578
  let m;
2558
- const $ = C(I).direction === "rtl" ? "bottomLeft" : "right", B = (N = C(t)) == null ? void 0 : N.position;
2579
+ const T = C(k).direction === "rtl" ? "bottomLeft" : "right", B = (N = C(t)) == null ? void 0 : N.position;
2559
2580
  if (B !== null && Array.isArray(B)) {
2560
- const O = B.find((D) => D.includes("top")), H = B.find((D) => D.includes("bottom")), ue = B.every((D) => `${D}` == "none");
2561
- !O && !H && !ue && (m = $), O && (m = O.toLowerCase().replace("top", "")), H && (m = H.toLowerCase().replace("bottom", ""));
2581
+ const O = B.find((D) => D.includes("top")), H = B.find((D) => D.includes("bottom")), ie = B.every((D) => `${D}` == "none");
2582
+ !O && !H && !ie && (m = T), O && (m = O.toLowerCase().replace("top", "")), H && (m = H.toLowerCase().replace("bottom", ""));
2562
2583
  } else
2563
- m = $;
2584
+ m = T;
2564
2585
  return m;
2565
2586
  });
2566
- va(() => {
2567
- f.value && e.keepAliveReload ? je() : f.value = !0;
2587
+ ga(() => {
2588
+ h.value && e.keepAliveReload ? je() : h.value = !0;
2568
2589
  });
2569
- const yt = async (m, $) => {
2590
+ const yt = async (m, T) => {
2570
2591
  var B;
2571
- Y.value ? (B = ne.value) != null && B.reload && $ ? (Je(m), await je()) : Je(m) : (Je({
2592
+ Y.value ? (B = ue.value) != null && B.reload && T ? (Je(m), await je()) : Je(m) : (Je({
2572
2593
  ...e.params || {},
2573
2594
  ...m
2574
2595
  }), await je());
2575
- }, qt = async (m, $) => {
2576
- $ === "reset" ? (a("reset", m), e.request && await yt(m, $)) : e.request ? (a("submit", m), await yt(m, $)) : a("submit", m);
2577
- }, bt = (m, $, B, N) => {
2578
- R(St(m, ["current", "pageSize"])), mt(m, $, B, N);
2579
- }, Xt = (m, $) => {
2596
+ }, qt = async (m, T) => {
2597
+ T === "reset" ? (a("reset", m), e.request && await yt(m, T)) : e.request ? (a("submit", m), await yt(m, T)) : a("submit", m);
2598
+ }, bt = (m, T, B, N) => {
2599
+ R(St(m, ["current", "pageSize"])), mt(m, T, B, N);
2600
+ }, Xt = (m, T) => {
2580
2601
  var B;
2581
2602
  R({
2582
2603
  current: m,
2583
- pageSize: $
2604
+ pageSize: T
2584
2605
  }), mt({
2585
2606
  current: m,
2586
- pageSize: $,
2607
+ pageSize: T,
2587
2608
  total: t.value && ((B = t.value) == null ? void 0 : B.total) || 0
2588
2609
  }, {}, {});
2589
2610
  }, Ut = (m) => {
2590
2611
  a("expandedRowsChange", m);
2591
- }, Jt = (m, $) => {
2592
- a("expand", m, $);
2593
- }, Zt = (m, $) => de(m, $), el = (m, $, B) => {
2594
- var O, H, ue;
2612
+ }, Jt = (m, T) => {
2613
+ a("expand", m, T);
2614
+ }, Zt = (m, T) => de(m, T), el = (m, T, B) => {
2615
+ var O, H, ie;
2595
2616
  let N = m;
2596
- if ($) {
2597
- const D = se(m) ? typeof ((O = m == null ? void 0 : m[0]) == null ? void 0 : O.children) == "string" ? (H = m == null ? void 0 : m[0]) == null ? void 0 : H.children : "" : m.toString(), E = B.tooltip === !1 ? {} : B.tooltip, xe = B.tooltip === !1 ? 1 : _e(E == null ? void 0 : E.hiddenLine) && (E == null ? void 0 : E.hiddenLine) > 0 ? E == null ? void 0 : E.hiddenLine : 1, ie = B.tooltip === !1 ? 0 : _e(E == null ? void 0 : E.width) ? E == null ? void 0 : E.width : 0, Ie = B.tooltip !== !1 && kt(D) && ie > 0 ? dl(D, {
2617
+ if (T) {
2618
+ const D = oe(m) ? typeof ((O = m == null ? void 0 : m[0]) == null ? void 0 : O.children) == "string" ? (H = m == null ? void 0 : m[0]) == null ? void 0 : H.children : "" : m.toString(), E = B.tooltip === !1 ? {} : B.tooltip, xe = B.tooltip === !1 ? 1 : _e(E == null ? void 0 : E.hiddenLine) && (E == null ? void 0 : E.hiddenLine) > 0 ? E == null ? void 0 : E.hiddenLine : 1, se = B.tooltip === !1 ? 0 : _e(E == null ? void 0 : E.width) ? E == null ? void 0 : E.width : 0, Ie = B.tooltip !== !1 && kt(D) && se > 0 ? dl(D, {
2598
2619
  cssObject: E == null ? void 0 : E.targetStyle
2599
- }) : 0, Ve = document.querySelector(`.${i} .ant-table-tbody`), $e = c("div", {
2600
- class: `${i}-ellipsis-text`
2601
- }, [m]), De = () => B.tooltip === !1 || J(B.tooltip) && Ie < ie && ie > 0 ? $e : c(me, Q({
2620
+ }) : 0, Ve = document.querySelector(`.${s} .ant-table-tbody`), $e = c("div", {
2621
+ class: `${s}-ellipsis-text`
2622
+ }, [m]), De = () => B.tooltip === !1 || Z(B.tooltip) && Ie < se && se > 0 ? $e : c(me, Q({
2602
2623
  title: m,
2603
2624
  getPopupContainer: (Me) => {
2604
2625
  var xt;
2605
2626
  return Ve ?? ((xt = Me == null ? void 0 : Me.parentNode) == null ? void 0 : xt.parentNode);
2606
2627
  }
2607
- }, J(B.tooltip) ? B.tooltip : {}, {
2628
+ }, Z(B.tooltip) ? B.tooltip : {}, {
2608
2629
  destroyTooltipOnHide: !0
2609
- }), Da($e) ? $e : {
2630
+ }), Ma($e) ? $e : {
2610
2631
  default: () => [$e]
2611
2632
  });
2612
2633
  if (N = c("div", {
2613
- class: `${i}-ellipsis ${(E == null ? void 0 : E.class) ?? ""}`,
2634
+ class: `${s}-ellipsis ${(E == null ? void 0 : E.class) ?? ""}`,
2614
2635
  style: {
2615
2636
  "-webkit-line-clamp": xe
2616
2637
  }
2617
2638
  }, [De()]), B.copyable) {
2618
- const Me = typeof B.copyText == "function" ? (ue = B.copyText) == null ? void 0 : ue.call(B, B) : B.copyText || D;
2639
+ const Me = typeof B.copyText == "function" ? (ie = B.copyText) == null ? void 0 : ie.call(B, B) : B.copyText || D;
2619
2640
  N = c("div", {
2620
- class: `${i}-copyable`
2641
+ class: `${s}-copyable`
2621
2642
  }, [c("div", {
2622
- class: `${i}-ellipsis ${(E == null ? void 0 : E.class) ?? ""}`,
2643
+ class: `${s}-ellipsis ${(E == null ? void 0 : E.class) ?? ""}`,
2623
2644
  style: {
2624
2645
  "-webkit-line-clamp": xe
2625
2646
  }
2626
2647
  }, [De()]), c(Ol, {
2627
- class: `${i}-copyable-icon`,
2648
+ class: `${s}-copyable-icon`,
2628
2649
  onClick: () => {
2629
- Ea(Me), Wl.success("复制成功");
2650
+ Da(Me), Wl.success("复制成功");
2630
2651
  }
2631
2652
  }, null)]);
2632
2653
  }
@@ -2634,26 +2655,26 @@ const {
2634
2655
  return N;
2635
2656
  };
2636
2657
  function Ct() {
2637
- var B, N, O, H, ue;
2658
+ var B, N, O, H, ie;
2638
2659
  const m = ke(l, e, "emptyText");
2639
2660
  if (m !== !1 && ((B = b == null ? void 0 : b.emptyText) == null ? void 0 : B.value) !== !1) {
2640
- const D = ((N = e.emptyTextProps) == null ? void 0 : N.extraProps) || {}, E = m || ((O = b == null ? void 0 : b.emptyText) == null ? void 0 : O.value), xe = le(E), ie = xe ? Pt(E, D) : Rt(E || []);
2661
+ const D = ((N = e.emptyTextProps) == null ? void 0 : N.extraProps) || {}, E = m || ((O = b == null ? void 0 : b.emptyText) == null ? void 0 : O.value), xe = le(E), se = xe ? Pt(E, D) : Rt(E || []);
2641
2662
  return c("div", {
2642
- class: pe(`${i}-empty-text`, v.value, (H = e.emptyTextProps) == null ? void 0 : H.class),
2643
- style: (ue = e.emptyTextProps) == null ? void 0 : ue.style
2644
- }, [xe ? ie : se(ie) ? ie.map((Ie) => st(Ie, D)) : c(Vl, null, null)]);
2663
+ class: pe(`${s}-empty-text`, v.value, (H = e.emptyTextProps) == null ? void 0 : H.class),
2664
+ style: (ie = e.emptyTextProps) == null ? void 0 : ie.style
2665
+ }, [xe ? se : oe(se) ? se.map((Ie) => st(Ie, D)) : c(Vl, null, null)]);
2645
2666
  }
2646
2667
  return null;
2647
2668
  }
2648
2669
  const tl = () => {
2649
- var $;
2670
+ var T;
2650
2671
  const m = It(l, e, "customRender");
2651
2672
  if (m) {
2652
- if (($ = Ne.value) != null && $.length) {
2653
- const B = oe(C(Ne));
2673
+ if ((T = Ne.value) != null && T.length) {
2674
+ const B = re(C(Ne));
2654
2675
  return m == null ? void 0 : m({
2655
2676
  dataSource: B,
2656
- currentData: Na(B, t.value)
2677
+ currentData: Ea(B, t.value)
2657
2678
  });
2658
2679
  }
2659
2680
  return Ct();
@@ -2661,12 +2682,12 @@ const {
2661
2682
  return c(qe, null, null);
2662
2683
  }, ll = (m) => {
2663
2684
  var O, H;
2664
- const $ = ke(l, e, "headerTitle"), B = ke(l, e, "titleTip"), N = ke(l, e, "toolBarBtn");
2665
- return c(ha, {
2666
- headerTitle: $,
2685
+ const T = ke(l, e, "headerTitle"), B = ke(l, e, "titleTip"), N = ke(l, e, "toolBarBtn");
2686
+ return c(ma, {
2687
+ headerTitle: T,
2667
2688
  titleTip: B,
2668
2689
  titleTipText: e.titleTipText,
2669
- options: re(Ee.value) ? Ee.value : {
2690
+ options: ne(Ee.value) ? Ee.value : {
2670
2691
  ...Ee.value,
2671
2692
  setting: m ? !1 : (O = Ee.value) == null ? void 0 : O.setting,
2672
2693
  density: m ? !1 : (H = Ee.value) == null ? void 0 : H.density
@@ -2677,13 +2698,13 @@ const {
2677
2698
  }, null);
2678
2699
  };
2679
2700
  return Ql({
2680
- tableSize: Z,
2681
- columns: h,
2701
+ tableSize: ee,
2702
+ columns: f,
2682
2703
  cacheColumns: A,
2683
2704
  isMobile: F,
2684
2705
  searchConfig: W,
2685
2706
  manualSearch: Y,
2686
- searchActions: ne,
2707
+ searchActions: ue,
2687
2708
  action: {
2688
2709
  setTableSize: Fe,
2689
2710
  reload: (m) => je(m),
@@ -2691,7 +2712,7 @@ const {
2691
2712
  },
2692
2713
  settingsAction: {
2693
2714
  autoScroll: fe(e, "autoScroll"),
2694
- columnsMap: U,
2715
+ columnsMap: J,
2695
2716
  operationType: ye,
2696
2717
  setColumnsMap: We,
2697
2718
  sortKeyColumns: Pe,
@@ -2699,7 +2720,7 @@ const {
2699
2720
  setSortKeyColumns: be
2700
2721
  },
2701
2722
  setPagination: R,
2702
- changeColumns: q,
2723
+ changeColumns: X,
2703
2724
  slots: l
2704
2725
  }), o({
2705
2726
  formRef: () => ({
@@ -2709,8 +2730,8 @@ const {
2709
2730
  return ((m = n.value) == null ? void 0 : m.getFormState()) || {};
2710
2731
  },
2711
2732
  restFormState: (m) => {
2712
- var $;
2713
- r.value = !0, m && (m == null || m()), ($ = n.value) == null || $.resetForm(!1), r.value = !1;
2733
+ var T;
2734
+ r.value = !0, m && (m == null || m()), (T = n.value) == null || T.resetForm(!1), r.value = !1;
2714
2735
  }
2715
2736
  }),
2716
2737
  actionRef: () => ({
@@ -2730,11 +2751,11 @@ const {
2730
2751
  reload: je,
2731
2752
  getLoadingStatus: () => C(K),
2732
2753
  reloadAndReset: async (m) => {
2733
- var $, B, N;
2754
+ var T, B, N;
2734
2755
  r.value = !0, R({
2735
2756
  current: 1,
2736
2757
  pageSize: (g == null ? void 0 : g.pageSize) || 10
2737
- }), m != null && m.callBack && (m != null && m.wait ? await (($ = m == null ? void 0 : m.callBack) == null ? void 0 : $.call(m)) : (B = m == null ? void 0 : m.callBack) == null || B.call(m)), (N = n.value) == null || N.resetForm(!1), r.value = !1;
2758
+ }), m != null && m.callBack && (m != null && m.wait ? await ((T = m == null ? void 0 : m.callBack) == null ? void 0 : T.call(m)) : (B = m == null ? void 0 : m.callBack) == null || B.call(m)), (N = n.value) == null || N.resetForm(!1), r.value = !1;
2738
2759
  },
2739
2760
  reSetDataList: Ht,
2740
2761
  setPageAndReload: bt,
@@ -2743,27 +2764,28 @@ const {
2743
2764
  setLoading: Re
2744
2765
  })
2745
2766
  }), () => {
2746
- var $, B;
2767
+ var T, B;
2747
2768
  const m = Oe(e.customRender || l.customRender);
2748
2769
  return d(c("div", {
2749
- ref: u,
2770
+ ref: i,
2750
2771
  class: pe([{
2751
2772
  [`${v.value}`]: !0,
2752
- [`${i}`]: !0,
2753
- [`${s.class}`]: s.class,
2754
- [`${i}-no-scroll`]: !Object.keys(C(k) || {}).length,
2755
- [`${i}-table-tree`]: Qt.value,
2756
- [`${i}-full-screen`]: p.value
2773
+ [`${s}`]: !0,
2774
+ [`${u.class}`]: u.class,
2775
+ [`${s}-beautify-scroll`]: ne(e.useDefaultScrollStyle) ? !e.useDefaultScrollStyle : !0,
2776
+ [`${s}-no-scroll`]: !Object.keys(C(P) || {}).length,
2777
+ [`${s}-table-tree`]: Qt.value,
2778
+ [`${s}-full-screen`]: p.value
2757
2779
  }]),
2758
- style: s.style
2780
+ style: u.style
2759
2781
  }, [c("div", {
2760
- class: [`${i}-content`, v.value]
2782
+ class: [`${s}-content`, v.value]
2761
2783
  }, [(z.value.length > 0 || Oe(l.search)) && e.search !== !1 && c(At, {
2762
2784
  ref: n,
2763
2785
  modal: e.modalScroll,
2764
2786
  cardBordered: e.cardBordered,
2765
2787
  searchMap: z.value,
2766
- prefixCls: i,
2788
+ prefixCls: s,
2767
2789
  loading: !!C(K),
2768
2790
  onSearch: qt,
2769
2791
  defaultParams: te
@@ -2773,45 +2795,45 @@ const {
2773
2795
  return (N = l.search) == null ? void 0 : N.call(l);
2774
2796
  } : null
2775
2797
  }), c("div", {
2776
- class: pe(v.value, `${i}-card`, e.cardBordered && `${i}-card-border`)
2798
+ class: pe(v.value, `${s}-card`, e.cardBordered && `${s}-card-border`)
2777
2799
  }, [ll(m), m ? c(ut, vt.value, {
2778
2800
  default: () => {
2779
2801
  var N, O, H;
2780
2802
  return [c("div", {
2781
- class: `${i}-wrapper ${v.value}`
2803
+ class: `${s}-wrapper ${v.value}`
2782
2804
  }, [c("div", {
2783
- class: pe(`${i}-list`, v.value, (N = e.tableProps) == null ? void 0 : N.class),
2805
+ class: pe(`${s}-list`, v.value, (N = e.tableProps) == null ? void 0 : N.class),
2784
2806
  style: (O = e.tableProps) == null ? void 0 : O.style
2785
2807
  }, [tl()]), e.pagination !== !1 && ((H = Ne.value) == null ? void 0 : H.length) > 0 && c(Yl, Q({
2786
2808
  class: {
2787
- [`${i}-pagination ${v.value}`]: !0,
2788
- [`${i}-pagination-${gt.value} ${v.value}`]: !!gt.value
2809
+ [`${s}-pagination ${v.value}`]: !0,
2810
+ [`${s}-pagination-${gt.value} ${v.value}`]: !!gt.value
2789
2811
  }
2790
2812
  }, Be(C(t)), {
2791
2813
  onChange: Xt
2792
2814
  }), null)])];
2793
2815
  }
2794
2816
  }) : c(Ll, Q(St(e, Object.keys(Mt)), _t.value, {
2795
- style: ($ = e.tableProps) == null ? void 0 : $.style,
2817
+ style: (T = e.tableProps) == null ? void 0 : T.style,
2796
2818
  class: (B = e.tableProps) == null ? void 0 : B.class,
2797
2819
  loading: vt.value,
2798
2820
  rowKey: (N) => N[e.rowKey],
2799
2821
  transformCellText: (N) => {
2800
- var E, xe, ie, Ie, Ve;
2822
+ var E, xe, se, Ie, Ve;
2801
2823
  e.transformCellText && typeof e.transformCellText && ((E = e.transformCellText) == null || E.call(e, N));
2802
2824
  const {
2803
2825
  column: O
2804
2826
  } = N;
2805
2827
  if (!O) return N.text;
2806
2828
  const H = (O == null ? void 0 : O.key) || (O == null ? void 0 : O.dataIndex);
2807
- let ue = !0, D = N.text;
2808
- if (se(D))
2829
+ let ie = !0, D = N.text;
2830
+ if (oe(D))
2809
2831
  if (D.length === 0 || D.length === 1 && !le(D[0])) {
2810
2832
  D = D == null ? void 0 : D[0];
2811
2833
  const $e = cl(D, (O == null ? void 0 : O.columnEmptyText) || (e == null ? void 0 : e.columnEmptyText) || "");
2812
- ue = $e.success, D = ja($e.value, (O == null ? void 0 : O.valueType) || ((ie = (xe = e.columns) == null ? void 0 : xe.find((De) => (De.key || De.dataIndex) === H)) == null ? void 0 : ie.valueType), i, v.value);
2834
+ ie = $e.success, D = Na($e.value, (O == null ? void 0 : O.valueType) || ((se = (xe = e.columns) == null ? void 0 : xe.find((De) => (De.key || De.dataIndex) === H)) == null ? void 0 : se.valueType), s, v.value);
2813
2835
  } else ((Ie = D[0]) == null ? void 0 : Ie.type) === "template" && (D = (Ve = D[0]) == null ? void 0 : Ve.children);
2814
- return O != null && O.ellipsis ? el(D, ue, O) : D;
2836
+ return O != null && O.ellipsis ? el(D, ie, O) : D;
2815
2837
  },
2816
2838
  rowSelection: e.rowSelection ? {
2817
2839
  ...Xe(e.rowSelection, ["onSelect", "onSelectAll", "onChange", "selectedRowKeys"]),
@@ -2836,5 +2858,5 @@ export {
2836
2858
  at as GProTable,
2837
2859
  at as default,
2838
2860
  he as proTableProps,
2839
- Ja as useTable
2861
+ Za as useTable
2840
2862
  };