@gx-design-vue/pro-table 0.2.0-beta.153 → 0.2.0-beta.155

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,31 +1,31 @@
1
1
  /*!
2
2
  * Gx Design Pro
3
- * Version: 0.2.0-beta.152
3
+ * Version: 0.2.0-beta.154
4
4
  * Author: gx12358
5
5
  * Copyright (C) 2024 gx12358
6
6
  * License: MIT License
7
7
  * Description: Gx Design Pro Table
8
- * Date Created: 2026-01-02
8
+ * Date Created: 2026-01-04
9
9
  * Homepage:
10
10
  * Contact: gx12358@gmail.com
11
11
  */
12
- import { defineComponent as ge, ref as w, watch as M, cloneVNode as tt, reactive as lt, toRaw as he, computed as x, createVNode as d, Fragment as Pe, isVNode as ae, mergeProps as G, h as pt, onBeforeUnmount as Xt, onMounted as at, nextTick as nt, watchEffect as bt, unref as F, onActivated as yt, getCurrentInstance as _t, onUnmounted as Ct, onDeactivated as St, onUpdated as Gt, toRef as K, Teleport as Qt, isRef as _e } from "vue";
12
+ import { defineComponent as ge, ref as w, watch as M, cloneVNode as lt, reactive as at, toRaw as he, computed as x, createVNode as d, Fragment as Pe, isVNode as ae, mergeProps as G, h as bt, onBeforeUnmount as Xt, onMounted as nt, nextTick as ot, watchEffect as yt, unref as F, onActivated as Ct, getCurrentInstance as _t, onUnmounted as St, onDeactivated as xt, onUpdated as Gt, toRef as K, Teleport as Qt, isRef as _e } from "vue";
13
13
  import { UpOutlined as Ut, DownOutlined as Jt, InfoCircleOutlined as Zt, FullscreenExitOutlined as el, FullscreenOutlined as tl, ReloadOutlined as ll, CopyOutlined as al } from "@ant-design/icons-vue";
14
- import { useProAppContext as xt } from "@gx-design-vue/pro-app";
15
- import { useBreakpoint as ot, useMemo as nl, tryOnUnmounted as ol, onMountedOrActivated as il } from "@gx-design-vue/pro-hooks";
16
- import { useProStyle as wt, unit as Se, useProConfigContext as sl } from "@gx-design-vue/pro-provider";
17
- import { isArray as Z, cloneDeep as te, isObject as oe, isBoolean as De, classNames as B, isNumber as we, filterEmpty as Tt, keysOf as Rt, isFunction as Ne, isDeepEqualReact as qe, compareArray as rl, runFunction as ul, getSortIndex as cl, handleCurrentPage as dl, getRandomNumber as $t, deepMerge as xe, forInObject as fl, arrayRepeat as vl, isString as Ft, getPrefixCls as ml, handleShowIndex as hl, getSlot as ft, convertValueBoolean as Ge, getSlotsProps as gl, handleEmptyField as pl, getTextWidth as bl, getSlotVNode as yl, useDeepMerge as Cl } from "@gx-design-vue/pro-utils";
18
- import { useDebounceFn as Sl, useEventListener as vt, isClient as xl, useElementBounding as wl, useFullscreen as Pt, useElementSize as We, useScroll as Tl, useResizeObserver as Rl, useWindowSize as $l } from "@vueuse/core";
19
- import { DatePicker as It, Input as Ye, TimePicker as Fl, TreeSelect as Pl, Select as Il, InputNumber as Qe, Button as mt, Spin as At, Tooltip as Ie, Empty as Bt, theme as Al, Pagination as Bl, Table as zl, message as Nl } from "ant-design-vue";
20
- import { omit as Ee, cloneDeep as zt, pick as El } from "lodash-es";
21
- import { tableProps as Dl } from "ant-design-vue/es/table/Table";
14
+ import { useProAppContext as wt } from "@gx-design-vue/pro-app";
15
+ import { useBreakpoint as it, useMemo as nl, tryOnUnmounted as ol, onMountedOrActivated as il } from "@gx-design-vue/pro-hooks";
16
+ import { useProStyle as Tt, unit as Se, useProConfigContext as sl } from "@gx-design-vue/pro-provider";
17
+ import { isArray as Q, cloneDeep as te, isObject as oe, isBoolean as Oe, classNames as B, isNumber as we, filterEmpty as Rt, keysOf as $t, isFunction as Ne, isDeepEqualReact as qe, compareArray as rl, runFunction as ul, getSortIndex as cl, handleCurrentPage as dl, getRandomNumber as Ft, deepMerge as xe, forInObject as fl, arrayRepeat as vl, isString as Pt, getPrefixCls as ml, handleShowIndex as hl, getSlot as vt, convertValueBoolean as Ge, getSlotsProps as gl, handleEmptyField as pl, getTextWidth as bl, getSlotVNode as yl, useDeepMerge as Cl } from "@gx-design-vue/pro-utils";
18
+ import { useDebounceFn as Sl, useEventListener as mt, isClient as xl, useElementBounding as wl, useFullscreen as It, useElementSize as We, useScroll as Tl, useResizeObserver as Rl, useWindowSize as $l } from "@vueuse/core";
19
+ import { DatePicker as At, Input as Ye, TimePicker as Fl, TreeSelect as Pl, Select as Il, InputNumber as Qe, Button as ht, Spin as Bt, Tooltip as Ae, Empty as zt, theme as Al, Pagination as Bl, Table as zl, message as El } from "ant-design-vue";
20
+ import { omit as Ie, cloneDeep as Et, pick as Nl } from "lodash-es";
21
+ import { tableProps as Ol } from "ant-design-vue/es/table/Table";
22
22
  import "ant-design-vue/es/_util/props-util";
23
- import { warning as Ol } from "ant-design-vue/es/vc-util/warning";
23
+ import { warning as Dl } from "ant-design-vue/es/vc-util/warning";
24
24
  import ee from "dayjs";
25
25
  import { useContext as Nt } from "@gx-design-vue/context";
26
- import { TinyColor as ht } from "@ctrl/tinycolor";
27
- const jl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered", "loading", "onExpand", "onExpandedRowsChange", "onResizeColumn", "expandedRowKeys", "customHeaderRow", "customRow", "defaultExpandedRowKeys", "expandedRowRender", "expandIcon", "footer", "title", "rowClassName", "rowExpandable", "transformCellText", "onChange"], Et = {
28
- ...Ee(Dl(), jl),
26
+ import { TinyColor as gt } from "@ctrl/tinycolor";
27
+ const jl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered", "loading", "onExpand", "onExpandedRowsChange", "onResizeColumn", "expandedRowKeys", "customHeaderRow", "customRow", "defaultExpandedRowKeys", "expandedRowRender", "expandIcon", "footer", "title", "rowClassName", "rowExpandable", "transformCellText", "onChange"], et = {
28
+ ...Ie(Ol(), jl),
29
29
  direction: {
30
30
  type: String,
31
31
  default: "ltr"
@@ -49,7 +49,7 @@ const jl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
49
49
  default: void 0
50
50
  }
51
51
  }, { provideContext: Hl, useInjectContext: Ke } = Nt("pro-table"), me = {
52
- ...Et,
52
+ ...et,
53
53
  id: {
54
54
  type: String,
55
55
  default: ""
@@ -348,49 +348,49 @@ const jl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
348
348
  }
349
349
  },
350
350
  setup(e, {
351
- slots: n
351
+ slots: a
352
352
  }) {
353
- const l = w([]), a = w(e.loading ?? !1), o = w("init"), r = Sl(e.fetch, e.debounceTime || 10);
353
+ const l = w([]), n = w(e.loading ?? !1), o = w("init"), r = Sl(e.fetch, e.debounceTime || 10);
354
354
  return M([() => e.fetch, () => e.manual], () => {
355
- if (o.value !== "init" && a.value) return;
355
+ if (o.value !== "init" && n.value) return;
356
356
  const s = e.manual ?? !1;
357
- e.fetch && !s && (a.value = !0, r().then((g) => {
358
- l.value = zt(g), o.value = "success";
357
+ e.fetch && !s && (n.value = !0, r().then((g) => {
358
+ l.value = Et(g), o.value = "success";
359
359
  }).catch((g) => {
360
360
  console.error(g), o.value = "error";
361
361
  }).finally(() => {
362
- a.value = !1;
362
+ n.value = !1;
363
363
  }));
364
364
  }, {
365
365
  immediate: !0
366
366
  }), () => {
367
- const s = n.default?.();
368
- return tt(Z(s) ? s[0] : s, {
367
+ const s = a.default?.();
368
+ return lt(Q(s) ? s[0] : s, {
369
369
  options: l.value,
370
- notFoundContent: e.notFoundContent?.(a.value)
370
+ notFoundContent: e.notFoundContent?.(n.value)
371
371
  });
372
372
  };
373
373
  }
374
374
  });
375
- function Wl(e, n) {
376
- const l = lt({});
377
- function a() {
375
+ function Wl(e, a) {
376
+ const l = at({});
377
+ function n() {
378
378
  Object.assign(l, te(he(e)));
379
- const r = n.find((s) => s.valueType === "dateRange");
379
+ const r = a.find((s) => s.valueType === "dateRange");
380
380
  r && o(r.name || "", e[r.rangeStartName || "start"] ? [
381
381
  e[r.rangeStartName || "start"],
382
382
  e[r.rangeEndName || "end"]
383
383
  ] : []);
384
384
  }
385
385
  M(() => e, () => {
386
- a();
386
+ n();
387
387
  }, { deep: !0, immediate: !0 });
388
388
  function o(r, s) {
389
389
  l[r] = s;
390
390
  }
391
391
  return {
392
392
  formState: l,
393
- resetFormState: a,
393
+ resetFormState: n,
394
394
  changeFormState: o
395
395
  };
396
396
  }
@@ -509,21 +509,21 @@ const Yl = (e) => ({
509
509
  { value: "sm", span: 2 },
510
510
  { value: "xs", span: 1 }
511
511
  ];
512
- function ve(e, n) {
513
- return typeof n == "function" ? n(ee(e)) : ee(e).format(n);
512
+ function ve(e, a) {
513
+ return typeof a == "function" ? a(ee(e)) : ee(e).format(a);
514
514
  }
515
- function Be(e, n) {
516
- return n ? "YYYY-MM-DD HH:mm:ss" : e ?? "YYYY-MM-DD";
515
+ function ze(e, a) {
516
+ return a ? "YYYY-MM-DD HH:mm:ss" : e ?? "YYYY-MM-DD";
517
517
  }
518
- const gt = (e, n, l = "string") => {
519
- if (Z(e)) {
520
- const [a, o] = e;
518
+ const pt = (e, a, l = "string") => {
519
+ if (Q(e)) {
520
+ const [n, o] = e;
521
521
  let r, s;
522
- if (Array.isArray(n) ? (r = n[0], s = n[1]) : typeof n == "object" && n.type === "mask" ? (r = n.format, s = n.format) : (r = n, s = n), l === "string") {
523
- const g = a ? ve(a, r) : "", f = o ? ve(o, s) : "";
522
+ if (Array.isArray(a) ? (r = a[0], s = a[1]) : typeof a == "object" && a.type === "mask" ? (r = a.format, s = a.format) : (r = a, s = a), l === "string") {
523
+ const g = n ? ve(n, r) : "", f = o ? ve(o, s) : "";
524
524
  return [g, f];
525
525
  }
526
- return [ee(a), ee(o)];
526
+ return [ee(n), ee(o)];
527
527
  }
528
528
  };
529
529
  function Ml(e) {
@@ -535,12 +535,12 @@ const {
535
535
  YearPicker: kl,
536
536
  WeekPicker: Vl,
537
537
  QuarterPicker: Xl
538
- } = It;
538
+ } = At;
539
539
  function _l(e) {
540
- let n = e.reduce((l, a) => a.order !== void 0 ? Math.max(l, a.order) : l, 0);
540
+ let a = e.reduce((l, n) => n.order !== void 0 ? Math.max(l, n.order) : l, 0);
541
541
  return e.forEach((l) => {
542
- l.order === void 0 && (n += 1, l.order = n);
543
- }), e.sort((l, a) => l.order - a.order), e;
542
+ l.order === void 0 && (a += 1, l.order = a);
543
+ }), e.sort((l, n) => l.order - n.order), e;
544
544
  }
545
545
  const Gl = {
546
546
  modalScroll: me.modalScroll,
@@ -561,13 +561,13 @@ const Gl = {
561
561
  inheritAttrs: !1,
562
562
  props: Gl,
563
563
  setup(e, {
564
- slots: n,
564
+ slots: a,
565
565
  expose: l
566
566
  }) {
567
567
  const {
568
- wrapSSR: a,
568
+ wrapSSR: n,
569
569
  hashId: o
570
- } = wt("ProTableForm", [Yl], e.prefixCls), r = xt(), s = ot(), {
570
+ } = Tt("ProTableForm", [Yl], e.prefixCls), r = wt(), s = it(), {
571
571
  formAutoRequest: g,
572
572
  formConfig: f,
573
573
  formActions: R,
@@ -581,11 +581,11 @@ const Gl = {
581
581
  } = Wl(e.defaultFormSearch, e.formCols), j = w(Se(f.value?.gap || 16)), Y = x(() => {
582
582
  if (f.value?.breakpoint && oe(f.value.breakpoint) && Object.keys(f.value.breakpoint).length)
583
583
  return f.value?.breakpoint;
584
- }), A = w(f.value?.collapsed ?? f.value?.defaultCollapsed), O = x(() => De(R.value?.reset) ? R.value?.reset : !g.value), P = x(() => Y.value ? Q(Y.value, v.value) : N(f.value?.span, s.value)), q = x(() => f.value?.label);
584
+ }), A = w(f.value?.collapsed ?? f.value?.defaultCollapsed), D = x(() => Oe(R.value?.reset) ? R.value?.reset : !g.value), P = x(() => Y.value ? U(Y.value, v.value) : E(f.value?.span, s.value)), q = x(() => f.value?.label);
585
585
  M(() => f.value?.collapsed, (t) => {
586
586
  A.value = t;
587
587
  });
588
- function Q(t, i) {
588
+ function U(t, i) {
589
589
  let y = 4;
590
590
  const m = Object.keys(t).map((C) => Number(C)).filter((C) => !Number.isNaN(C)).sort((C, c) => c - C);
591
591
  for (let C = 0; C < m.length; C += 1) {
@@ -597,7 +597,7 @@ const Gl = {
597
597
  }
598
598
  return y;
599
599
  }
600
- function N(t, i) {
600
+ function E(t, i) {
601
601
  let y = 4;
602
602
  for (let m = 0; m < Ue.length; m += 1) {
603
603
  const C = Ue[m].value;
@@ -610,15 +610,15 @@ const Gl = {
610
610
  }
611
611
  const k = (t) => {
612
612
  A.value = t;
613
- }, E = (t, i, y) => (t + 1) % i === 0 ? {
613
+ }, N = (t, i, y) => (t + 1) % i === 0 ? {
614
614
  ...y,
615
615
  marginRight: Se(0)
616
616
  } : {
617
617
  ...y,
618
618
  marginRight: j.value
619
619
  }, z = () => {
620
- const t = zt(u), i = e.formCols.find((C) => C.valueType === "text") || "", y = e.formCols.find((C) => C.valueType === "dateRange") || "", m = e.formCols.find((C) => C.valueType === "treeSelect");
621
- return i && (t[i.name] = u[i.name] || i.initialValue || ""), y && (t[y.rangeStartName || "start"] = t[y.name] ? t[y.name][0] : "", t[y.rangeEndName || "end"] = t[y.name] ? t[y.name][1] : "", delete t[y.name]), m && (m?.name && Z(u[m?.name]) && (t[m.name] = u[m.name].length ? u[m.name].map((C) => C[m.valueKey === "text" ? "label" : "value"]).join() : ""), m?.name && Z(t[m?.name]) && (t[m.name] = t[m.name].length ? t[m.name].map((C) => C[m.valueKey === "text" ? "label" : "value"]) : "")), t;
620
+ const t = Et(u), i = e.formCols.find((C) => C.valueType === "text") || "", y = e.formCols.find((C) => C.valueType === "dateRange") || "", m = e.formCols.find((C) => C.valueType === "treeSelect");
621
+ return i && (t[i.name] = u[i.name] || i.initialValue || ""), y && (t[y.rangeStartName || "start"] = t[y.name] ? t[y.name][0] : "", t[y.rangeEndName || "end"] = t[y.name] ? t[y.name][1] : "", delete t[y.name]), m && (m?.name && Q(u[m?.name]) && (t[m.name] = u[m.name].length ? u[m.name].map((C) => C[m.valueKey === "text" ? "label" : "value"]).join() : ""), m?.name && Q(t[m?.name]) && (t[m.name] = t[m.name].length ? t[m.name].map((C) => C[m.valueKey === "text" ? "label" : "value"]) : "")), t;
622
622
  }, H = (t = !1, i) => {
623
623
  (g.value || t) && e.onSearch?.(z(), t ? i ? "reset" : "submit" : void 0);
624
624
  }, L = (t, i, y) => {
@@ -640,7 +640,7 @@ const Gl = {
640
640
  p(i.name || "", t ?? (i.field?.treeCheckable || i.field?.multiple ? [] : null));
641
641
  break;
642
642
  case "date":
643
- p(i.name || "", t ? ve(t, Be(i.valueFormat, i.showTime)) : null);
643
+ p(i.name || "", t ? ve(t, ze(i.valueFormat, i.showTime)) : null);
644
644
  break;
645
645
  case "dateWeek":
646
646
  p(i.name || "", t ? ve(t, "YYYY-wo") : null);
@@ -655,37 +655,37 @@ const Gl = {
655
655
  p(i.name || "", t ? ve(t, "YYYY") : null);
656
656
  break;
657
657
  case "dateRange":
658
- p(i.name || "", t && Z(t) && t.length === 2 ? gt(t, Be(i.valueFormat, i.showTime)) : null);
658
+ p(i.name || "", t && Q(t) && t.length === 2 ? pt(t, ze(i.valueFormat, i.showTime)) : null);
659
659
  break;
660
660
  case "time":
661
661
  p(i.name || "", t ? ve(t, i.valueFormat || "HH:mm:ss") : null);
662
662
  break;
663
663
  }
664
664
  i.valueType === "treeSelect" || i.valueType, H();
665
- }, U = (t = !0) => {
665
+ }, J = (t = !0) => {
666
666
  S(), H(!0, t);
667
667
  };
668
668
  l({
669
669
  getFormSearch: () => z(),
670
- resetForm: U
670
+ resetForm: J
671
671
  });
672
672
  const V = () => {
673
673
  const t = r?.emptyText?.value;
674
674
  if (t) {
675
- const i = ae(t), y = i ? pt(t) : Tt(t || []);
675
+ const i = ae(t), y = i ? bt(t) : Rt(t || []);
676
676
  return d("div", {
677
677
  class: B(`${e.prefixCls}-search-empty-text`, o.value)
678
- }, [i ? y : Z(y) ? y.map((m) => tt(m)) : void 0]);
678
+ }, [i ? y : Q(y) ? y.map((m) => lt(m)) : void 0]);
679
679
  }
680
- }, ie = () => (!g.value || O.value) && d("div", {
680
+ }, ie = () => (!g.value || D.value) && d("div", {
681
681
  class: B(`${e.prefixCls}-search-buttons ${o.value}`, h.value?.searchButtons),
682
682
  style: T.value?.searchButtons
683
- }, [O.value && d(mt, {
683
+ }, [D.value && d(ht, {
684
684
  key: "reset",
685
- onClick: () => U()
685
+ onClick: () => J()
686
686
  }, {
687
687
  default: () => [R.value?.resetText || "重置"]
688
- }), !g.value && d(mt, {
688
+ }), !g.value && d(ht, {
689
689
  key: "submit",
690
690
  loading: e.loading,
691
691
  type: "primary",
@@ -710,7 +710,7 @@ const Gl = {
710
710
  onClick: () => k(!i)
711
711
  }, [i ? "收起" : "展开", i ? d(Ut, null, null) : d(Jt, null, null)])])])]);
712
712
  function pe(t) {
713
- return t === void 0 ? void 0 : t ? d(At, {
713
+ return t === void 0 ? void 0 : t ? d(Bt, {
714
714
  size: "small",
715
715
  indicator: r?.indicator?.value
716
716
  }, null) : V();
@@ -725,7 +725,7 @@ const Gl = {
725
725
  }
726
726
  const Te = (t) => {
727
727
  let i;
728
- const y = g.value ? Ye.Search : Ye, m = Ee(t.field || {}, "rules");
728
+ const y = g.value ? Ye.Search : Ye, m = Ie(t.field || {}, "rules");
729
729
  let C = null;
730
730
  switch (t.valueType) {
731
731
  case "text":
@@ -760,7 +760,7 @@ const Gl = {
760
760
  onChange: (c) => L(c, t, {
761
761
  key: 0
762
762
  }),
763
- placeholder: Z(t.placeholder) && t.placeholder?.[0] || "请输入"
763
+ placeholder: Q(t.placeholder) && t.placeholder?.[0] || "请输入"
764
764
  }, null), d(Ye, {
765
765
  disabled: !0,
766
766
  placeholder: "~"
@@ -769,7 +769,7 @@ const Gl = {
769
769
  onChange: (c) => L(c, t, {
770
770
  key: 1
771
771
  }),
772
- placeholder: Z(t.placeholder) && t.placeholder?.[1] || "请输入"
772
+ placeholder: Q(t.placeholder) && t.placeholder?.[1] || "请输入"
773
773
  }, null)]
774
774
  });
775
775
  break;
@@ -804,7 +804,7 @@ const Gl = {
804
804
  }, m), null);
805
805
  break;
806
806
  case "date":
807
- i = d(It, G({
807
+ i = d(At, G({
808
808
  style: {
809
809
  width: "100%"
810
810
  },
@@ -812,7 +812,7 @@ const Gl = {
812
812
  getPopupContainer: (c) => c && c.parentNode ? c.parentNode : c,
813
813
  placeholder: t.placeholder || "请选择",
814
814
  allowClear: t.allowClear ?? !0,
815
- format: Be(t.valueFormat, t.showTime),
815
+ format: ze(t.valueFormat, t.showTime),
816
816
  showTime: t.showTime,
817
817
  showToday: t.showToday || !0,
818
818
  onChange: (c) => L(c, t)
@@ -871,10 +871,10 @@ const Gl = {
871
871
  style: {
872
872
  width: "100%"
873
873
  },
874
- value: u[t.name] && Z(u[t.name]) && u[t.name]?.length === 2 ? gt(u[t.name], Be(t.valueFormat, t.showTime), "dayjs") : void 0,
874
+ value: u[t.name] && Q(u[t.name]) && u[t.name]?.length === 2 ? pt(u[t.name], ze(t.valueFormat, t.showTime), "dayjs") : void 0,
875
875
  getPopupContainer: (c) => c && c.parentNode ? c.parentNode : c,
876
876
  placeholder: t.placeholder || ["开始日期", "结束日期"],
877
- format: Be(t.valueFormat, t.showTime),
877
+ format: ze(t.valueFormat, t.showTime),
878
878
  showTime: t.showTime,
879
879
  onChange: (c) => L(c, t)
880
880
  }, m), null);
@@ -916,7 +916,7 @@ const Gl = {
916
916
  class: B(`${e.prefixCls}-search-item-children`)
917
917
  }, [ae(i) ? i : Te(i)])]);
918
918
  }, re = () => {
919
- let t = n.default?.() || [];
919
+ let t = a.default?.() || [];
920
920
  t.length === 1 && t[0].type === "template" && (t = t[0]?.children || []);
921
921
  const i = _l([...e.formCols, ...t.map((m) => ({
922
922
  ...m,
@@ -925,7 +925,7 @@ const Gl = {
925
925
  width: `calc((100% - (${P.value - 1} * ${j.value})) / ${P.value})`
926
926
  };
927
927
  return i.map((m, C) => {
928
- const c = E(C, P.value, y);
928
+ const c = N(C, P.value, y);
929
929
  return i.length < P.value || A.value ? d(Pe, null, [ye({
930
930
  formItemStyle: c,
931
931
  item: m
@@ -954,7 +954,7 @@ const Gl = {
954
954
  };
955
955
  return () => {
956
956
  const t = e.cardBordered && `${e.prefixCls}-search-border`;
957
- return a(d("div", {
957
+ return n(d("div", {
958
958
  class: B(h.value?.search, o.value, `${e.prefixCls}-search`, t, o.value, f.value?.className),
959
959
  style: T.value?.search
960
960
  }, [re()]));
@@ -1035,7 +1035,7 @@ const Gl = {
1035
1035
  }
1036
1036
  }
1037
1037
  }
1038
- }), { useInjectContext: Dt, provideContext: Jl } = Nt("scrollbar"), Fe = 4, Zl = {
1038
+ }), { useInjectContext: Ot, provideContext: Jl } = Nt("scrollbar"), Fe = 4, Zl = {
1039
1039
  vertical: {
1040
1040
  offset: "offsetHeight",
1041
1041
  scroll: "scrollTop",
@@ -1056,8 +1056,8 @@ const Gl = {
1056
1056
  client: "clientX",
1057
1057
  direction: "left"
1058
1058
  }
1059
- }, ea = ({ move: e, size: n, bar: l }) => ({
1060
- [l.size]: n,
1059
+ }, ea = ({ move: e, size: a, bar: l }) => ({
1060
+ [l.size]: a,
1061
1061
  transform: `translate${l.axis}(${e}%)`
1062
1062
  }), ta = {
1063
1063
  vertical: Boolean,
@@ -1072,16 +1072,16 @@ const Gl = {
1072
1072
  type: [Object],
1073
1073
  default: () => ({})
1074
1074
  }
1075
- }, et = /* @__PURE__ */ ge({
1075
+ }, tt = /* @__PURE__ */ ge({
1076
1076
  props: ta,
1077
1077
  setup(e) {
1078
1078
  const {
1079
- tableHeaderHeight: n,
1079
+ tableHeaderHeight: a,
1080
1080
  hashId: l,
1081
- wrapElement: a,
1081
+ wrapElement: n,
1082
1082
  scrollbarElement: o,
1083
1083
  className: r
1084
- } = Dt(), s = w(), g = w(), f = w({}), R = w(!1);
1084
+ } = Ot(), s = w(), g = w(), f = w({}), R = w(!1);
1085
1085
  let v = !1, T = !1, h = 0, u = 0, S = xl ? document.onselectstart : null;
1086
1086
  const p = x(() => Zl[e.vertical ? "vertical" : "horizontal"]), j = x(() => ea({
1087
1087
  size: e.size,
@@ -1091,45 +1091,45 @@ const Gl = {
1091
1091
  // offsetRatioX = original width of thumb / current width of thumb / ratioX
1092
1092
  // offsetRatioY = original height of thumb / current height of thumb / ratioY
1093
1093
  // instance height = wrap height - GAP
1094
- s.value[p.value.offset] ** 2 / a.value[p.value.scrollSize] / e.ratio / g.value[p.value.offset]
1094
+ s.value[p.value.offset] ** 2 / n.value[p.value.scrollSize] / e.ratio / g.value[p.value.offset]
1095
1095
  )), A = (z) => {
1096
1096
  if (z.stopPropagation(), z.ctrlKey || [1, 2].includes(z.button)) return;
1097
1097
  window.getSelection()?.removeAllRanges(), P(z);
1098
1098
  const H = z.currentTarget;
1099
1099
  H && (f.value[p.value.axis] = H[p.value.offset] - (z[p.value.client] - H.getBoundingClientRect()[p.value.direction]));
1100
- }, O = (z) => {
1101
- if (!g.value || !s.value || !a.value) return;
1102
- const H = Math.abs(z.target.getBoundingClientRect()[p.value.direction] - z[p.value.client]), L = g.value[p.value.offset] / 2, U = (H - L) * 100 * Y.value / s.value[p.value.offset];
1103
- a.value[p.value.scroll] = U * a.value[p.value.scrollSize] / 100;
1100
+ }, D = (z) => {
1101
+ if (!g.value || !s.value || !n.value) return;
1102
+ const H = Math.abs(z.target.getBoundingClientRect()[p.value.direction] - z[p.value.client]), L = g.value[p.value.offset] / 2, J = (H - L) * 100 * Y.value / s.value[p.value.offset];
1103
+ n.value[p.value.scroll] = J * n.value[p.value.scrollSize] / 100;
1104
1104
  };
1105
1105
  function P(z) {
1106
- a.value && (z.stopImmediatePropagation(), v = !0, h = a.value.scrollHeight, u = a.value.scrollWidth, document.addEventListener("mousemove", q), document.addEventListener("mouseup", Q), S = document.onselectstart, document.onselectstart = () => !1);
1106
+ n.value && (z.stopImmediatePropagation(), v = !0, h = n.value.scrollHeight, u = n.value.scrollWidth, document.addEventListener("mousemove", q), document.addEventListener("mouseup", U), S = document.onselectstart, document.onselectstart = () => !1);
1107
1107
  }
1108
1108
  function q(z) {
1109
- if (!a.value || !s.value || !g.value || v === !1) return;
1109
+ if (!n.value || !s.value || !g.value || v === !1) return;
1110
1110
  const H = f.value[p.value.axis];
1111
1111
  if (!H) return;
1112
- const L = (s.value.getBoundingClientRect()[p.value.direction] - z[p.value.client]) * -1, U = g.value[p.value.offset] - H, V = (L - U) * 100 * Y.value / s.value[p.value.offset];
1113
- p.value.scroll === "scrollLeft" ? a.value[p.value.scroll] = V * u / 100 : a.value[p.value.scroll] = V * h / 100;
1112
+ const L = (s.value.getBoundingClientRect()[p.value.direction] - z[p.value.client]) * -1, J = g.value[p.value.offset] - H, V = (L - J) * 100 * Y.value / s.value[p.value.offset];
1113
+ p.value.scroll === "scrollLeft" ? n.value[p.value.scroll] = V * u / 100 : n.value[p.value.scroll] = V * h / 100;
1114
1114
  }
1115
- function Q() {
1116
- v = !1, f.value[p.value.axis] = 0, document.removeEventListener("mousemove", q), document.removeEventListener("mouseup", Q), E(), T && (R.value = !1);
1115
+ function U() {
1116
+ v = !1, f.value[p.value.axis] = 0, document.removeEventListener("mousemove", q), document.removeEventListener("mouseup", U), N(), T && (R.value = !1);
1117
1117
  }
1118
- const N = () => {
1118
+ const E = () => {
1119
1119
  T = !1, R.value = !!e.size;
1120
1120
  }, k = () => {
1121
1121
  T = !0, R.value = v;
1122
1122
  };
1123
1123
  Xt(() => {
1124
- E(), document.removeEventListener("mouseup", Q);
1124
+ N(), document.removeEventListener("mouseup", U);
1125
1125
  });
1126
- function E() {
1126
+ function N() {
1127
1127
  document.onselectstart !== S && (document.onselectstart = S);
1128
1128
  }
1129
- return vt(o, "mousemove", N), vt(o, "mouseleave", k), () => {
1129
+ return mt(o, "mousemove", E), mt(o, "mouseleave", k), () => {
1130
1130
  const z = p.value.key === "vertical" ? {
1131
- height: `calc(100% - ${Se(n.value + 1)})`,
1132
- top: Se(n.value + 1)
1131
+ height: `calc(100% - ${Se(a.value + 1)})`,
1132
+ top: Se(a.value + 1)
1133
1133
  } : {};
1134
1134
  return d("div", {
1135
1135
  ref: s,
@@ -1138,7 +1138,7 @@ const Gl = {
1138
1138
  ...z
1139
1139
  },
1140
1140
  class: [`${r}-bar`, "is-" + p.value.key, l.value],
1141
- onMousedown: O
1141
+ onMousedown: D
1142
1142
  }, [d("div", {
1143
1143
  ref: g,
1144
1144
  class: `${r}-thumb ${l.value}`,
@@ -1148,7 +1148,7 @@ const Gl = {
1148
1148
  };
1149
1149
  }
1150
1150
  });
1151
- et.inheritAttrs = !1;
1151
+ tt.inheritAttrs = !1;
1152
1152
  const la = {
1153
1153
  always: {
1154
1154
  type: Boolean,
@@ -1169,35 +1169,35 @@ const la = {
1169
1169
  inheritAttrs: !1,
1170
1170
  props: la,
1171
1171
  setup(e, {
1172
- expose: n
1172
+ expose: a
1173
1173
  }) {
1174
1174
  const {
1175
1175
  tableScrollState: l
1176
- } = Ke(), a = Dt(), o = w(0), r = w(0), s = w(""), g = w(""), f = w(1), R = w(1), v = (h) => {
1176
+ } = Ke(), n = Ot(), o = w(0), r = w(0), s = w(""), g = w(""), f = w(1), R = w(1), v = (h) => {
1177
1177
  if (h) {
1178
1178
  const u = h.offsetHeight - Fe, S = h.offsetWidth - Fe;
1179
1179
  r.value = h.scrollTop * 100 / u * f.value, o.value = h.scrollLeft * 100 / S * R.value;
1180
1180
  }
1181
1181
  }, T = () => {
1182
- const h = a?.wrapElement;
1182
+ const h = n?.wrapElement;
1183
1183
  if (!h?.value) return;
1184
1184
  const u = h.value.offsetHeight - Fe, S = h.value.offsetWidth - Fe, p = u ** 2 / h.value.scrollHeight, j = S ** 2 / h.value.scrollWidth, Y = Math.max(p, e.minSize), A = Math.max(j, e.minSize);
1185
1185
  f.value = p / (u - p) / (Y / (u - Y)), R.value = j / (S - j) / (A / (S - A)), g.value = Y + Fe < u ? `${Y}px` : "", s.value = A + Fe < S ? `${A}px` : "";
1186
1186
  };
1187
- return at(() => {
1188
- nt(() => {
1187
+ return nt(() => {
1188
+ ot(() => {
1189
1189
  T();
1190
1190
  });
1191
- }), n({
1191
+ }), a({
1192
1192
  update: T,
1193
1193
  handleScroll: v
1194
- }), () => d(Pe, null, [d(et, {
1194
+ }), () => d(Pe, null, [d(tt, {
1195
1195
  move: o.value,
1196
1196
  barStyle: e.barStyle.x,
1197
1197
  ratio: R.value,
1198
1198
  size: s.value,
1199
1199
  always: e.always
1200
- }, null), !!l.value.y && d(et, {
1200
+ }, null), !!l.value.y && d(tt, {
1201
1201
  move: r.value,
1202
1202
  barStyle: e.barStyle.y,
1203
1203
  ratio: f.value,
@@ -1211,14 +1211,14 @@ function na(e) {
1211
1211
  if (ae(e))
1212
1212
  return e;
1213
1213
  if (e) {
1214
- const n = e, {
1214
+ const a = e, {
1215
1215
  icon: l,
1216
- tooltip: a,
1216
+ tooltip: n,
1217
1217
  onClick: o,
1218
1218
  key: r
1219
- } = n;
1220
- return l && a ? d(Ie, {
1221
- title: a,
1219
+ } = a;
1220
+ return l && n ? d(Ae, {
1221
+ title: n,
1222
1222
  key: r
1223
1223
  }, {
1224
1224
  default: () => [d("span", {
@@ -1231,7 +1231,7 @@ function na(e) {
1231
1231
  }
1232
1232
  return null;
1233
1233
  }
1234
- const Ot = /* @__PURE__ */ ge({
1234
+ const Dt = /* @__PURE__ */ ge({
1235
1235
  props: {
1236
1236
  actions: [Array],
1237
1237
  settings: [Array],
@@ -1242,9 +1242,9 @@ const Ot = /* @__PURE__ */ ge({
1242
1242
  actionsPlacement: String
1243
1243
  },
1244
1244
  setup(e) {
1245
- const n = w(), {
1245
+ const a = w(), {
1246
1246
  height: l
1247
- } = wl(n), a = ot(), {
1247
+ } = wl(a), n = it(), {
1248
1248
  isMobile: o,
1249
1249
  tableListToolsHeight: r,
1250
1250
  classNames: s,
@@ -1252,7 +1252,7 @@ const Ot = /* @__PURE__ */ ge({
1252
1252
  hashId: f,
1253
1253
  prefixCls: R
1254
1254
  } = Ke(), v = `${R}-list-toolbar`;
1255
- bt(() => {
1255
+ yt(() => {
1256
1256
  r.value = l.value || 0;
1257
1257
  });
1258
1258
  const T = x(() => !!(e.headerTitleTip || e.headerTitle)), h = x(() => {
@@ -1261,32 +1261,32 @@ const Ot = /* @__PURE__ */ ge({
1261
1261
  left: null,
1262
1262
  right: null
1263
1263
  };
1264
- const A = e.actions.filter((P) => ae(P)).filter((P) => (P?.props?.placement || e.actionsPlacement) === "left"), O = e.actions.filter((P) => ae(P)).filter((P) => (P?.props?.placement || e.actionsPlacement) === "right");
1264
+ const A = e.actions.filter((P) => ae(P)).filter((P) => (P?.props?.placement || e.actionsPlacement) === "left"), D = e.actions.filter((P) => ae(P)).filter((P) => (P?.props?.placement || e.actionsPlacement) === "right");
1265
1265
  return {
1266
1266
  left: A.length ? d("div", {
1267
1267
  class: B(`${v}-actions`, f.value)
1268
1268
  }, [A]) : null,
1269
- right: O.length ? d("div", {
1269
+ right: D.length ? d("div", {
1270
1270
  class: B(`${v}-actions`, f.value)
1271
- }, [O]) : null
1271
+ }, [D]) : null
1272
1272
  };
1273
1273
  }), u = x(() => !!(e.headerTitleTip || e.headerTitle || h.value.left)), S = x(() => !!(e.settings?.length || h.value.right)), p = () => {
1274
1274
  if (!u.value && S.value)
1275
1275
  return d("div", {
1276
1276
  class: B(`${v}-left`, f.value)
1277
1277
  }, null);
1278
- const A = h.value.left, O = B(`${v}-left ${f.value}`, s.value?.toolbarLeft), P = g.value?.toolbarLeft;
1278
+ const A = h.value.left, D = B(`${v}-left ${f.value}`, s.value?.toolbarLeft), P = g.value?.toolbarLeft;
1279
1279
  return T.value ? d("div", {
1280
- class: O,
1280
+ class: D,
1281
1281
  style: P
1282
1282
  }, [d("div", {
1283
1283
  class: B(`${v}-title`, f.value)
1284
- }, [e.headerTitle, e.headerTitleTip && d(Ie, {
1284
+ }, [e.headerTitle, e.headerTitleTip && d(Ae, {
1285
1285
  title: e.titleTipText
1286
1286
  }, {
1287
- default: () => [De(e.headerTitleTip) && e.headerTitleTip ? d(Zt, null, null) : e.headerTitleTip]
1287
+ default: () => [Oe(e.headerTitleTip) && e.headerTitleTip ? d(Zt, null, null) : e.headerTitleTip]
1288
1288
  })]), A]) : d("div", {
1289
- class: O,
1289
+ class: D,
1290
1290
  style: P
1291
1291
  }, [A]);
1292
1292
  }, j = () => {
@@ -1295,14 +1295,14 @@ const Ot = /* @__PURE__ */ ge({
1295
1295
  return d("div", {
1296
1296
  class: B(`${v}-right ${f.value}`, s.value?.toolbarRight),
1297
1297
  style: {
1298
- alignItems: a.value.lg ? "center" : "flex-end",
1299
- flexDirection: a.value.lg ? "row" : "column",
1298
+ alignItems: n.value.lg ? "center" : "flex-end",
1299
+ flexDirection: n.value.lg ? "row" : "column",
1300
1300
  ...g.value?.toolbarRight || {}
1301
1301
  }
1302
1302
  }, [A, e.settings?.length ? d("div", {
1303
1303
  class: B(`${v}-setting-items`, f.value)
1304
- }, [e.settings.map((O, P) => {
1305
- const q = na(O);
1304
+ }, [e.settings.map((D, P) => {
1305
+ const q = na(D);
1306
1306
  return d("div", {
1307
1307
  key: P,
1308
1308
  class: B(`${v}-setting-item`, f.value)
@@ -1312,7 +1312,7 @@ const Ot = /* @__PURE__ */ ge({
1312
1312
  class: B(f.value, `${v}-container`, o.value && `${v}-container-mobile`)
1313
1313
  }, [p(), j()]);
1314
1314
  return () => d("div", {
1315
- ref: n,
1315
+ ref: a,
1316
1316
  class: B(`${v} ${f.value}`, e.listToolAfter && `${v}-with-after`, s.value?.toolbar),
1317
1317
  style: g.value?.toolbar
1318
1318
  }, [Y(), e.listToolAfter && d("div", {
@@ -1321,17 +1321,17 @@ const Ot = /* @__PURE__ */ ge({
1321
1321
  }, [e.listToolAfter])]);
1322
1322
  }
1323
1323
  });
1324
- Ot.inheritAttrs = !1;
1324
+ Dt.inheritAttrs = !1;
1325
1325
  const oa = /* @__PURE__ */ ge({
1326
1326
  setup() {
1327
1327
  const {
1328
1328
  isFullscreen: e
1329
- } = Pt();
1330
- return () => e.value ? d(Ie, {
1329
+ } = It();
1330
+ return () => e.value ? d(Ae, {
1331
1331
  title: "退出全屏"
1332
1332
  }, {
1333
1333
  default: () => [d(el, null, null)]
1334
- }) : d(Ie, {
1334
+ }) : d(Ae, {
1335
1335
  title: "全屏"
1336
1336
  }, {
1337
1337
  default: () => [d(tl, null, null)]
@@ -1350,21 +1350,21 @@ function ia() {
1350
1350
  }
1351
1351
  };
1352
1352
  }
1353
- function sa(e, n) {
1354
- return Rt(e).filter((l) => l).map((l) => {
1355
- const a = e[l];
1356
- if (!a)
1353
+ function sa(e, a) {
1354
+ return $t(e).filter((l) => l).map((l) => {
1355
+ const n = e[l];
1356
+ if (!n)
1357
1357
  return null;
1358
- const o = a ? n[l] : () => () => {
1358
+ const o = n ? a[l] : () => () => {
1359
1359
  }, r = ia()[l];
1360
- return r ? typeof a == "boolean" || !Ne(a) ? d("span", {
1360
+ return r ? typeof n == "boolean" || !Ne(n) ? d("span", {
1361
1361
  key: l,
1362
1362
  onClick: o
1363
- }, [d(Ie, {
1363
+ }, [d(Ae, {
1364
1364
  title: r.text
1365
1365
  }, {
1366
1366
  default: () => [r.icon]
1367
- })]) : a?.(o) : null;
1367
+ })]) : n?.(o) : null;
1368
1368
  }).filter((l) => l);
1369
1369
  }
1370
1370
  const ra = {
@@ -1380,15 +1380,15 @@ const ra = {
1380
1380
  inheritAttrs: !1,
1381
1381
  setup(e) {
1382
1382
  const {
1383
- action: n
1383
+ action: a
1384
1384
  } = Ke(), l = nl(() => e.options === !1 ? [] : sa(oe(e.options) ? e.options : {}, {
1385
- reload: () => n.reload(),
1386
- fullScreen: () => n.toggle()
1385
+ reload: () => a.reload(),
1386
+ fullScreen: () => a.toggle()
1387
1387
  }), [() => e.options]);
1388
1388
  return () => {
1389
- const a = e.actionsRender || [];
1390
- return d(Ot, {
1391
- actions: a,
1389
+ const n = e.actionsRender || [];
1390
+ return d(Dt, {
1391
+ actions: n,
1392
1392
  actionsPlacement: e.actionsPlacement,
1393
1393
  settings: F(l),
1394
1394
  headerTitle: e.headerTitle,
@@ -1402,21 +1402,21 @@ const ra = {
1402
1402
  function ca(e) {
1403
1403
  return _t();
1404
1404
  }
1405
- function da(e, n = !0, l) {
1406
- ca() ? yt(e, l) : n ? e() : nt(e);
1405
+ function da(e, a = !0, l) {
1406
+ ca() ? Ct(e, l) : a ? e() : ot(e);
1407
1407
  }
1408
- function fa({ scroll: e, columns: n, breakpoint: l, draggable: a, autoScroll: o, neverScroll: r }) {
1408
+ function fa({ scroll: e, columns: a, breakpoint: l, draggable: n, autoScroll: o, neverScroll: r }) {
1409
1409
  const s = w([]);
1410
1410
  M([
1411
1411
  () => e.value,
1412
- () => n.value,
1413
- () => l.value,
1414
1412
  () => a.value,
1415
1413
  () => l.value,
1414
+ () => n.value,
1415
+ () => l.value,
1416
1416
  () => o.value,
1417
1417
  () => r.value
1418
1418
  ], () => {
1419
- const h = R(he(n.value));
1419
+ const h = R(he(a.value));
1420
1420
  qe(h, he(s.value)) || (s.value = te(h));
1421
1421
  }, {
1422
1422
  deep: !0,
@@ -1428,13 +1428,13 @@ function fa({ scroll: e, columns: n, breakpoint: l, draggable: a, autoScroll: o,
1428
1428
  }
1429
1429
  function R(h) {
1430
1430
  return te(h).map((u, S) => {
1431
- if (u.dataIndex === "action" || S === h.length - 1 ? u.resizable = !1 : u.resizable = De(u.resizable) ? u.resizable : !!(we(u.width) && F(a)), !u.width || F(r))
1431
+ if (u.dataIndex === "action" || S === h.length - 1 ? u.resizable = !1 : u.resizable = Oe(u.resizable) ? u.resizable : !!(we(u.width) && F(n)), !u.width || F(r))
1432
1432
  return u;
1433
1433
  if (u.dataIndex === "action" && F(o))
1434
1434
  if (F(e)?.x || !F(l))
1435
1435
  u.width = u.width || 100, u.fixed = "right";
1436
1436
  else {
1437
- const p = F(n).find((j) => j.dataIndex === u.dataIndex);
1437
+ const p = F(a).find((j) => j.dataIndex === u.dataIndex);
1438
1438
  u.width = p?.width || "", u.fixed = p?.fixed;
1439
1439
  }
1440
1440
  return u;
@@ -1457,14 +1457,14 @@ function fa({ scroll: e, columns: n, breakpoint: l, draggable: a, autoScroll: o,
1457
1457
  resizeColumnWidth: v
1458
1458
  };
1459
1459
  }
1460
- function va(e, n) {
1461
- const l = x(() => n), a = w(), o = w(e);
1460
+ function va(e, a) {
1461
+ const l = x(() => a), n = w(), o = w(e);
1462
1462
  function r() {
1463
- a.value && (clearTimeout(a.value), a.value = null);
1463
+ n.value && (clearTimeout(n.value), n.value = null);
1464
1464
  }
1465
1465
  async function s(...g) {
1466
1466
  return l.value === 0 || l.value === void 0 ? o.value(...g) : (r(), new Promise(async (f) => {
1467
- g[0]?.immediate ? f(await o.value(...g)) : a.value = setTimeout(async () => {
1467
+ g[0]?.immediate ? f(await o.value(...g)) : n.value = setTimeout(async () => {
1468
1468
  f(await o.value(...g));
1469
1469
  }, l.value);
1470
1470
  }));
@@ -1475,30 +1475,30 @@ function va(e, n) {
1475
1475
  };
1476
1476
  }
1477
1477
  function ma(e) {
1478
- const n = x(() => e.rowKey), l = x(() => e.polling), a = x(() => e.debounceTime), o = x(() => e.dataSource), r = x(() => e.autoRequest);
1478
+ const a = x(() => e.rowKey), l = x(() => e.polling), n = x(() => e.debounceTime), o = x(() => e.dataSource), r = x(() => e.autoRequest);
1479
1479
  return {
1480
- rowKey: n,
1480
+ rowKey: a,
1481
1481
  polling: l,
1482
1482
  request: e.request,
1483
1483
  postData: e.postData,
1484
- debounceTime: a,
1484
+ debounceTime: n,
1485
1485
  dataSource: o,
1486
1486
  autoRequest: r
1487
1487
  };
1488
1488
  }
1489
- function ha({ rowKey: e, autoRequest: n, polling: l, request: a, postData: o, dataSource: r, waitRequest: s, debounceTime: g }, { params: f, columns: R, setLoading: v, setColumns: T, removeRowKeys: h, syncSelectedRows: u, defaultFormSearch: S, setPagination: p, pageInfo: j, paginationInfo: Y, onRequestError: A, onBeforeSearchSubmit: O, hasCustomRender: P }, q) {
1490
- const Q = w(""), N = w(!1), k = w(!1), E = w([]), z = w(), H = w(null), L = (i = !1) => {
1491
- (N.value || i) && v(!1), Te(!1);
1492
- }, U = async (i = {}) => {
1489
+ function ha({ rowKey: e, autoRequest: a, polling: l, request: n, postData: o, dataSource: r, waitRequest: s, debounceTime: g }, { params: f, columns: R, setLoading: v, setColumns: T, removeRowKeys: h, syncSelectedRows: u, defaultFormSearch: S, setPagination: p, pageInfo: j, paginationInfo: Y, onRequestError: A, onBeforeSearchSubmit: D, hasCustomRender: P }, q) {
1490
+ const U = w(""), E = w(!1), k = w(!1), N = w([]), z = w(), H = w(null), L = (i = !1) => {
1491
+ (E.value || i) && v(!1), Te(!1);
1492
+ }, J = async (i = {}) => {
1493
1493
  const { pagination: y = {}, filters: m = {}, sorter: C = {}, removeKeys: c = [], isPolling: ne = !1, extra: de } = i;
1494
- if (!a || !Ne(a))
1494
+ if (!n || !Ne(n))
1495
1495
  return r.value || [];
1496
1496
  ne ? Te(!0) : v(!0), y && Object.keys(y).length && p(y);
1497
1497
  try {
1498
1498
  c.length && h(c);
1499
- const J = oe(C) ? Object.keys(C).length ? [C] : [] : C;
1499
+ const Z = oe(C) ? Object.keys(C).length ? [C] : [] : C;
1500
1500
  T(F(R).map((ce) => {
1501
- const Re = J.find((Ce) => (Ce?.columnKey || Ce?.field) === ce.dataIndex);
1501
+ const Re = Z.find((Ce) => (Ce?.columnKey || Ce?.field) === ce.dataIndex);
1502
1502
  return {
1503
1503
  ...ce,
1504
1504
  sortOrder: Re?.order
@@ -1513,52 +1513,52 @@ function ha({ rowKey: e, autoRequest: n, polling: l, request: a, postData: o, da
1513
1513
  ...F(f),
1514
1514
  ...i.params
1515
1515
  };
1516
- O && Ne(O) && (ue = await O({
1516
+ D && Ne(D) && (ue = await D({
1517
1517
  params: ue,
1518
- sorter: J,
1518
+ sorter: Z,
1519
1519
  filter: m,
1520
1520
  extra: de
1521
1521
  }));
1522
1522
  let fe = [];
1523
- const Oe = `table_request_${$t().uuid(10)}`;
1524
- Q.value = Oe;
1525
- const Ae = await a?.({
1523
+ const De = `table_request_${Ft().uuid(10)}`;
1524
+ U.value = De;
1525
+ const Be = await n?.({
1526
1526
  params: te(he(ue)),
1527
- sorter: J,
1527
+ sorter: Z,
1528
1528
  filter: m,
1529
1529
  extra: de
1530
1530
  });
1531
- if (Q.value !== Oe)
1531
+ if (U.value !== De)
1532
1532
  return [];
1533
- if (Ae) {
1534
- const { success: ce = !0, data: Re = [] } = Ae;
1533
+ if (Be) {
1534
+ const { success: ce = !0, data: Re = [] } = Be;
1535
1535
  if (!ce)
1536
1536
  return [];
1537
1537
  fe = typeof o == "function" ? await o?.(Re) : Re, u(fe);
1538
- const Ce = Ae.total || fe?.length || 0;
1538
+ const Ce = Be.total || fe?.length || 0;
1539
1539
  Ce !== j.total && p({
1540
1540
  total: Ce
1541
1541
  });
1542
- const $e = F(E).map((ke) => Ee(ke, "sortIndex"));
1543
- return qe(fe, $e) ? F(E) : (re(fe), fe);
1542
+ const $e = F(N).map((ke) => Ie(ke, "sortIndex"));
1543
+ return qe(fe, $e) ? F(N) : (re(fe), fe);
1544
1544
  } else
1545
1545
  return [];
1546
- } catch (J) {
1546
+ } catch (Z) {
1547
1547
  if (A === void 0)
1548
- throw new Error(J);
1549
- E.value === void 0 && re([]), A(J);
1548
+ throw new Error(Z);
1549
+ N.value === void 0 && re([]), A(Z);
1550
1550
  } finally {
1551
1551
  L(!0);
1552
1552
  }
1553
1553
  return [];
1554
1554
  }, V = va(async (i = {}) => {
1555
- if (z.value && clearTimeout(z.value), !a)
1555
+ if (z.value && clearTimeout(z.value), !n)
1556
1556
  return;
1557
1557
  const y = new AbortController();
1558
1558
  H.value = y;
1559
1559
  try {
1560
1560
  const m = await Promise.race([
1561
- U(i),
1561
+ J(i),
1562
1562
  new Promise((c, ne) => {
1563
1563
  H.value?.signal?.addEventListener?.("abort", () => {
1564
1564
  ne("aborted"), V.cancel(), L();
@@ -1568,7 +1568,7 @@ function ha({ rowKey: e, autoRequest: n, polling: l, request: a, postData: o, da
1568
1568
  if (y.signal.aborted)
1569
1569
  return;
1570
1570
  const C = ul(l.value, m);
1571
- return C && !N.value && (z.value = setTimeout(() => {
1571
+ return C && !E.value && (z.value = setTimeout(() => {
1572
1572
  V.run({ ...i, isPolling: C });
1573
1573
  }, Math.max(C, 2e3))), m;
1574
1574
  } catch (m) {
@@ -1579,14 +1579,14 @@ function ha({ rowKey: e, autoRequest: n, polling: l, request: a, postData: o, da
1579
1579
  }, g.value || 30), ie = () => {
1580
1580
  H.value?.abort(), V.cancel(), L();
1581
1581
  };
1582
- at(() => {
1583
- N.value = !1;
1584
- }), yt(() => {
1585
- N.value = !1;
1582
+ nt(() => {
1583
+ E.value = !1;
1586
1584
  }), Ct(() => {
1587
- ie(), N.value = !0, clearTimeout(z.value);
1585
+ E.value = !1;
1588
1586
  }), St(() => {
1589
- ie(), N.value = !0, clearTimeout(z.value);
1587
+ ie(), E.value = !0, clearTimeout(z.value);
1588
+ }), xt(() => {
1589
+ ie(), E.value = !0, clearTimeout(z.value);
1590
1590
  }), M(() => l.value, () => {
1591
1591
  s.value || (l.value ? V.run({ isPolling: !0 }) : clearTimeout(z.value));
1592
1592
  }, { immediate: !0 }), M(() => s.value, () => {
@@ -1594,19 +1594,19 @@ function ha({ rowKey: e, autoRequest: n, polling: l, request: a, postData: o, da
1594
1594
  }, { immediate: !0 }), M(() => r.value, () => {
1595
1595
  r.value && re(r.value || []);
1596
1596
  }, { deep: !0, immediate: !0 }), M(() => f.value, () => {
1597
- s.value || n.value && (p({ current: 1 }), se());
1597
+ s.value || a.value && (p({ current: 1 }), se());
1598
1598
  }, { deep: !0, immediate: !0 }), M(() => S.value, (i, y) => {
1599
1599
  s.value || qe(i, y) || (p({ current: 1 }), se());
1600
1600
  }, { deep: !0, immediate: !0 });
1601
1601
  function se() {
1602
- a ? l.value || (ie(), V.run({ isPolling: !1 })) : re(r.value || []);
1602
+ n ? l.value || (ie(), V.run({ isPolling: !1 })) : re(r.value || []);
1603
1603
  }
1604
1604
  const pe = x(() => {
1605
1605
  if (P.value)
1606
- return F(E);
1606
+ return F(N);
1607
1607
  const i = R.value.filter((y) => y.show || y.show === void 0);
1608
- return !F(E) || !i || i.length === 0 ? [] : F(E);
1609
- }), be = x(() => F(E).some((i) => Z(i.children) && i.children.length > 0));
1608
+ return !F(N) || !i || i.length === 0 ? [] : F(N);
1609
+ }), be = x(() => F(N).some((i) => Q(i.children) && i.children.length > 0));
1610
1610
  function Te(i) {
1611
1611
  k.value = i;
1612
1612
  }
@@ -1615,7 +1615,7 @@ function ha({ rowKey: e, autoRequest: n, polling: l, request: a, postData: o, da
1615
1615
  }
1616
1616
  function re(i) {
1617
1617
  const y = cl(te(i), he(j));
1618
- if (E.value = y, !a || !Ne(a)) {
1618
+ if (N.value = y, !n || !Ne(n)) {
1619
1619
  const m = y.length || 0;
1620
1620
  m !== j.total && p({
1621
1621
  total: m
@@ -1630,37 +1630,37 @@ function ha({ rowKey: e, autoRequest: n, polling: l, request: a, postData: o, da
1630
1630
  const { key: y, row: m, value: C, type: c = "update" } = i, ne = y ?? e.value, de = m?.[ne] ?? C;
1631
1631
  switch (!m && c !== "delete" && console.warn("row is required"), c) {
1632
1632
  case "update":
1633
- ne && de && m && (E.value = E.value.map((J) => de === J[ne] ? xe(J, m) : J));
1633
+ ne && de && m && (N.value = N.value.map((Z) => de === Z[ne] ? xe(Z, m) : Z));
1634
1634
  break;
1635
1635
  case "push":
1636
- m && E.value.push(m);
1636
+ m && N.value.push(m);
1637
1637
  break;
1638
1638
  case "unshift":
1639
- m && E.value.unshift(m);
1639
+ m && N.value.unshift(m);
1640
1640
  break;
1641
1641
  case "delete":
1642
- ne && (E.value = E.value.filter((J) => C !== J[ne]));
1642
+ ne && (N.value = N.value.filter((Z) => C !== Z[ne]));
1643
1643
  break;
1644
1644
  }
1645
1645
  },
1646
1646
  handleTableChange: ye,
1647
1647
  run: async (i) => {
1648
- s.value || (a ? await V.run({ ...i, isPolling: !1 }) : q("reload"));
1648
+ s.value || (n ? await V.run({ ...i, isPolling: !1 }) : q("reload"));
1649
1649
  }
1650
1650
  };
1651
1651
  }
1652
1652
  function ga(e) {
1653
- const n = w(l(e.loading.value));
1653
+ const a = w(l(e.loading.value));
1654
1654
  M(() => e.loading.value, (o) => {
1655
- n.value = l(o, n.value);
1655
+ a.value = l(o, a.value);
1656
1656
  });
1657
1657
  function l(o, r = !1) {
1658
- return De(o) ? o : oe(o) ? o?.spinning ?? r : r;
1658
+ return Oe(o) ? o : oe(o) ? o?.spinning ?? r : r;
1659
1659
  }
1660
- function a(o) {
1661
- n.value = o;
1660
+ function n(o) {
1661
+ a.value = o;
1662
1662
  }
1663
- return [n, a];
1663
+ return [a, n];
1664
1664
  }
1665
1665
  const Me = {
1666
1666
  current: 1,
@@ -1672,11 +1672,11 @@ const Me = {
1672
1672
  };
1673
1673
  function pa({
1674
1674
  pagination: e,
1675
- pageItemRender: n
1675
+ pageItemRender: a
1676
1676
  }) {
1677
1677
  const l = w({
1678
1678
  ...Me
1679
- }), a = lt({
1679
+ }), n = at({
1680
1680
  current: Me.current,
1681
1681
  pageSize: Me.pageSize,
1682
1682
  total: 0
@@ -1686,12 +1686,12 @@ function pa({
1686
1686
  l.value = !1;
1687
1687
  return;
1688
1688
  }
1689
- const r = Ne(n) ? {
1689
+ const r = Ne(a) ? {
1690
1690
  itemRender: ({
1691
1691
  page: g,
1692
1692
  type: f,
1693
1693
  originalElement: R
1694
- }) => n ? n({
1694
+ }) => a ? a({
1695
1695
  page: g,
1696
1696
  type: f,
1697
1697
  originalElement: R
@@ -1701,8 +1701,8 @@ function pa({
1701
1701
  ...e.value || {},
1702
1702
  ...r || {}
1703
1703
  };
1704
- e.value?.showTotal || (s.showTotal = (g) => `共${g < s.pageSize ? 1 : Math.ceil(g / (s.pageSize || 10))}页 ${g}条记录`), l.value = te(s), fl(a, (g) => {
1705
- we(s[g]) && (a[g] = s[g]);
1704
+ e.value?.showTotal || (s.showTotal = (g) => `共${g < s.pageSize ? 1 : Math.ceil(g / (s.pageSize || 10))}页 ${g}条记录`), l.value = te(s), fl(n, (g) => {
1705
+ we(s[g]) && (n[g] = s[g]);
1706
1706
  });
1707
1707
  }, {
1708
1708
  deep: 1,
@@ -1711,78 +1711,78 @@ function pa({
1711
1711
  function o(r) {
1712
1712
  if (l.value !== !1) {
1713
1713
  l.value = xe(F(l), r);
1714
- for (const s in a)
1715
- r[s] && we(r[s]) && (a[s] = r[s]);
1714
+ for (const s in n)
1715
+ r[s] && we(r[s]) && (n[s] = r[s]);
1716
1716
  }
1717
1717
  }
1718
1718
  return {
1719
1719
  paginationInfo: l,
1720
- requestPagination: a,
1720
+ requestPagination: n,
1721
1721
  setPagination: o
1722
1722
  };
1723
1723
  }
1724
- function ba(e, n) {
1725
- const l = w([]), a = w([]);
1726
- M(() => n.value?.selectedRows, (v) => {
1727
- a.value = te(v || []);
1724
+ function ba(e, a) {
1725
+ const l = w([]), n = w([]);
1726
+ M(() => a.value?.selectedRows, (v) => {
1727
+ n.value = te(v || []);
1728
1728
  }, {
1729
1729
  deep: !0,
1730
1730
  immediate: !0
1731
- }), M(() => n.value?.selectedRowKeys, (v) => {
1731
+ }), M(() => a.value?.selectedRowKeys, (v) => {
1732
1732
  l.value = vl([...v || []]);
1733
1733
  }, {
1734
1734
  deep: !0,
1735
1735
  immediate: !0
1736
1736
  });
1737
1737
  const o = (v, T) => {
1738
- const h = n.value?.type || "checkbox";
1739
- e.value && (T ? v?.[e.value] && h === "checkbox" ? (l.value.push(v[e.value]), a.value.push(v)) : (l.value = [v[e.value]], a.value = [v]) : (l.value = l.value.filter((u) => u !== v[e.value]), a.value = a.value.filter((u) => u[e.value] !== v[e.value])));
1738
+ const h = a.value?.type || "checkbox";
1739
+ e.value && (T ? v?.[e.value] && h === "checkbox" ? (l.value.push(v[e.value]), n.value.push(v)) : (l.value = [v[e.value]], n.value = [v]) : (l.value = l.value.filter((u) => u !== v[e.value]), n.value = n.value.filter((u) => u[e.value] !== v[e.value])));
1740
1740
  }, r = () => {
1741
- n.value && n.value?.onChange?.(l.value, a.value);
1741
+ a.value && a.value?.onChange?.(l.value, n.value);
1742
1742
  };
1743
1743
  return {
1744
1744
  selectedKeys: l,
1745
- selectedItems: a,
1745
+ selectedItems: n,
1746
1746
  selectRowKey: o,
1747
1747
  selectAllRowKey: (v, T, h) => {
1748
- e.value && (v ? T.map((u) => (l.value.every((S) => S !== u?.[e.value]) && u?.[e.value] && (l.value.push(u[e.value]), a.value.push(u)), u)) : h.map((u) => (l.value.includes(u?.[e.value]) && (l.value = l.value.filter((S) => S !== u[e.value]), a.value = a.value.filter((S) => S[e.value] !== u[e.value])), u)));
1748
+ e.value && (v ? T.map((u) => (l.value.every((S) => S !== u?.[e.value]) && u?.[e.value] && (l.value.push(u[e.value]), n.value.push(u)), u)) : h.map((u) => (l.value.includes(u?.[e.value]) && (l.value = l.value.filter((S) => S !== u[e.value]), n.value = n.value.filter((S) => S[e.value] !== u[e.value])), u)));
1749
1749
  },
1750
1750
  removeRowKeys: (v) => {
1751
- l.value = l.value.filter((T) => !v.includes(T)), a.value = a.value.filter((T) => !v.includes(T?.[e.value || ""])), r();
1751
+ l.value = l.value.filter((T) => !v.includes(T)), n.value = n.value.filter((T) => !v.includes(T?.[e.value || ""])), r();
1752
1752
  },
1753
1753
  changeRowKey: r,
1754
1754
  syncSelectedRows: (v) => {
1755
- if (e.value && l.value.length !== a.value.length) {
1756
- const T = a.value.map((u) => u[e.value]), h = l.value.filter((u) => !T.includes(u));
1755
+ if (e.value && l.value.length !== n.value.length) {
1756
+ const T = n.value.map((u) => u[e.value]), h = l.value.filter((u) => !T.includes(u));
1757
1757
  v.forEach((u) => {
1758
- h.includes(u[e.value]) && a.value.push(te(u));
1758
+ h.includes(u[e.value]) && n.value.push(te(u));
1759
1759
  });
1760
1760
  }
1761
1761
  },
1762
1762
  clearAllRowKeys: () => {
1763
- l.value = [], a.value = [], r();
1763
+ l.value = [], n.value = [], r();
1764
1764
  }
1765
1765
  };
1766
1766
  }
1767
1767
  function ya(e) {
1768
1768
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ae(e);
1769
1769
  }
1770
- function Ca(e, n, l, a) {
1771
- if (!n) return e;
1770
+ function Ca(e, a, l, n) {
1771
+ if (!a) return e;
1772
1772
  let o = e;
1773
- if (oe(n)) {
1774
- const r = n.node === "a" ? "span" : n.node;
1775
- return d(r, G(n?.attr || {}, {
1776
- class: n.class,
1777
- onClick: n.click
1773
+ if (oe(a)) {
1774
+ const r = a.node === "a" ? "span" : a.node;
1775
+ return d(r, G(a?.attr || {}, {
1776
+ class: a.class,
1777
+ onClick: a.click
1778
1778
  }), ya(e) ? e : {
1779
1779
  default: () => [e]
1780
1780
  });
1781
1781
  }
1782
- switch (n) {
1782
+ switch (a) {
1783
1783
  case "link":
1784
1784
  o = d("span", {
1785
- class: [`${l}-a`, a]
1785
+ class: [`${l}-a`, n]
1786
1786
  }, [e]);
1787
1787
  break;
1788
1788
  case "time":
@@ -1800,69 +1800,69 @@ function Ca(e, n, l, a) {
1800
1800
  }
1801
1801
  return o;
1802
1802
  }
1803
- function Sa(e, n) {
1804
- const l = n && n.current || 1, a = n && n.pageSize || 10;
1805
- return e.filter((o, r) => r < l * a && r >= a * (l - 1));
1803
+ function Sa(e, a) {
1804
+ const l = a && a.current || 1, n = a && a.pageSize || 10;
1805
+ return e.filter((o, r) => r < l * n && r >= n * (l - 1));
1806
1806
  }
1807
1807
  function xa(e) {
1808
- const n = document.createElement("textarea");
1809
- n.style.position = "absolute", n.style.opacity = "0", n.value = e, document.body.appendChild(n), n.select(), document.execCommand("copy"), document.body.removeChild(n);
1808
+ const a = document.createElement("textarea");
1809
+ a.style.position = "absolute", a.style.opacity = "0", a.value = e, document.body.appendChild(a), a.select(), document.execCommand("copy"), document.body.removeChild(a);
1810
1810
  }
1811
- function ze(e, n) {
1812
- let l = null, a = null;
1811
+ function Ee(e, a) {
1812
+ let l = null, n = null;
1813
1813
  function o() {
1814
- l && l.disconnect(), a && a.disconnect();
1814
+ l && l.disconnect(), n && n.disconnect();
1815
1815
  }
1816
1816
  function r(f) {
1817
1817
  f && (l = new ResizeObserver(() => {
1818
- n(f);
1819
- }), l.observe(f), n(f));
1818
+ a(f);
1819
+ }), l.observe(f), a(f));
1820
1820
  }
1821
1821
  function s() {
1822
1822
  return typeof e == "string" ? document.querySelector(e) : e();
1823
1823
  }
1824
1824
  const g = s();
1825
- return g ? (r(g), o) : (a = new MutationObserver(() => {
1825
+ return g ? (r(g), o) : (n = new MutationObserver(() => {
1826
1826
  const f = s();
1827
- f && (a.disconnect(), r(f));
1828
- }), a.observe(document.body, {
1827
+ f && (n.disconnect(), r(f));
1828
+ }), n.observe(document.body, {
1829
1829
  childList: !0,
1830
1830
  subtree: !0
1831
1831
  }), o);
1832
1832
  }
1833
- function wa({ fitPage: e, hashId: n, scroll: l, baseClassName: a }) {
1833
+ function wa({ fitPage: e, hashId: a, scroll: l, baseClassName: n }) {
1834
1834
  const o = w(), r = w(), s = w(), g = w(), f = w(), R = w(), v = w(0);
1835
1835
  let T, h, u, S;
1836
1836
  il(() => {
1837
- T = ze(() => r.value?.querySelector(".ant-pagination"), (N) => {
1838
- N && (s.value = N);
1839
- }), u = ze(() => r.value?.querySelector(".ant-table-header"), (N) => {
1840
- N && (g.value = N);
1841
- }), S = ze(() => r.value?.querySelector(".ant-table-body>table"), (N) => {
1842
- N && (R.value = N);
1837
+ T = Ee(() => r.value?.querySelector(".ant-pagination"), (E) => {
1838
+ E && (s.value = E);
1839
+ }), u = Ee(() => r.value?.querySelector(".ant-table-header"), (E) => {
1840
+ E && (g.value = E);
1841
+ }), S = Ee(() => r.value?.querySelector(".ant-table-body>table"), (E) => {
1842
+ E && (R.value = E);
1843
1843
  });
1844
- }), M(() => l.value, (N) => {
1845
- h && h(), N.y || e.value ? h = ze(() => r.value?.querySelector(".ant-table-body"), (k) => {
1844
+ }), M(() => l.value, (E) => {
1845
+ h && h(), E.y || e.value ? h = Ee(() => r.value?.querySelector(".ant-table-body"), (k) => {
1846
1846
  k && (f.value = k);
1847
- }) : N.x && (h = ze(() => r.value?.querySelector(".ant-table-content"), (k) => {
1847
+ }) : E.x && (h = Ee(() => r.value?.querySelector(".ant-table-content"), (k) => {
1848
1848
  k && (f.value = k);
1849
1849
  }));
1850
1850
  }, { immediate: !0 });
1851
- const { height: p } = We(r), { height: j } = We(g), { height: Y } = We(R), { height: A } = We(s), O = x(() => {
1851
+ const { height: p } = We(r), { height: j } = We(g), { height: Y } = We(R), { height: A } = We(s), D = x(() => {
1852
1852
  if (!r.value || !e.value)
1853
1853
  return 0;
1854
- let N = 0;
1854
+ let E = 0;
1855
1855
  if (s.value) {
1856
- const E = getComputedStyle(s.value), z = Number.parseFloat(E.marginTop) || 0, H = Number.parseFloat(E.marginBottom) || 0;
1857
- N = z + H;
1856
+ const N = getComputedStyle(s.value), z = Number.parseFloat(N.marginTop) || 0, H = Number.parseFloat(N.marginBottom) || 0;
1857
+ E = z + H;
1858
1858
  }
1859
- return p.value - j.value - v.value - (A.value + N);
1860
- }), P = x(() => O.value && e.value ? Y.value <= O.value : !1);
1859
+ return p.value - j.value - v.value - (A.value + E);
1860
+ }), P = x(() => D.value && e.value ? Y.value <= D.value : !1);
1861
1861
  M([
1862
1862
  () => f.value,
1863
- () => O.value
1863
+ () => D.value
1864
1864
  ], () => {
1865
- f.value && e.value && f.value.setAttribute("style", `height: ${O.value}px;`);
1865
+ f.value && e.value && f.value.setAttribute("style", `height: ${D.value}px;`);
1866
1866
  }), Tl(f, {
1867
1867
  onScroll: () => {
1868
1868
  f.value && o.value?.handleScroll(f.value);
@@ -1871,22 +1871,22 @@ function wa({ fitPage: e, hashId: n, scroll: l, baseClassName: a }) {
1871
1871
  const q = () => {
1872
1872
  o.value?.update();
1873
1873
  };
1874
- Rl(f, q), at(() => {
1875
- nt(() => {
1874
+ Rl(f, q), nt(() => {
1875
+ ot(() => {
1876
1876
  q();
1877
1877
  });
1878
1878
  }), Gt(() => q());
1879
- function Q() {
1879
+ function U() {
1880
1880
  T && T(), h && h(), u && u(), S && S();
1881
1881
  }
1882
- return Ct(() => {
1883
- Q();
1884
- }), St(() => {
1885
- Q && Q();
1882
+ return St(() => {
1883
+ U();
1884
+ }), xt(() => {
1885
+ U && U();
1886
1886
  }), Jl({
1887
- className: `${a}-scroll`,
1888
- hashId: n,
1889
- tableScrollYHeight: O,
1887
+ className: `${n}-scroll`,
1888
+ hashId: a,
1889
+ tableScrollYHeight: D,
1890
1890
  tableHeaderHeight: j,
1891
1891
  scrollbarElement: r,
1892
1892
  wrapElement: f
@@ -1895,58 +1895,58 @@ function wa({ fitPage: e, hashId: n, scroll: l, baseClassName: a }) {
1895
1895
  tableCardEl: r,
1896
1896
  tableScrollEl: f,
1897
1897
  tableOverHidden: P,
1898
- tableScrollYHeight: O,
1898
+ tableScrollYHeight: D,
1899
1899
  tableListToolsHeight: v
1900
1900
  };
1901
1901
  }
1902
1902
  function Ta(e) {
1903
- const n = {};
1903
+ const a = {};
1904
1904
  return e.forEach((l) => {
1905
- let a = l.initialValue;
1905
+ let n = l.initialValue;
1906
1906
  const o = ["select", "number"], r = ["date", "time", "dateRange"], s = ["treeSelect", "numberRange"];
1907
- l.valueType ? !a && o.includes(l.valueType) ? a = void 0 : !a && r.includes(l.valueType) ? a = null : !a && s.includes(l.valueType) ? a = [] : a || (a = "") : a || (a = ""), l.name === "dateRange" ? (n[l.rangeStartName || "start"] = a ? a[0] : null, n[l.rangeEndName || "end"] = a ? a[1] : null) : l.name && (n[l.name] = a);
1908
- }), n;
1907
+ l.valueType && (!n && o.includes(l.valueType) ? n = void 0 : !n && r.includes(l.valueType) ? n = null : !n && s.includes(l.valueType) && (n = [])), l.name === "dateRange" ? (a[l.rangeStartName || "start"] = Q(n) ? n[0] : null, a[l.rangeEndName || "end"] = Q(n) ? n[1] : null) : l.name && (a[l.name] = n);
1908
+ }), a;
1909
1909
  }
1910
- function Ra({ searchMap: e, columns: n }) {
1911
- const l = w([]), a = w({});
1910
+ function Ra({ searchMap: e, columns: a }) {
1911
+ const l = w([]), n = w({});
1912
1912
  function o(r) {
1913
1913
  r.forEach((g) => {
1914
1914
  l.value.some((f) => f.name === g.name) ? l.value = l.value.map((f) => f.name === g.name ? { ...f, ...g } : f) : l.value.push(g);
1915
1915
  });
1916
1916
  const s = Ta(r);
1917
- a.value = { ...a.value, ...s };
1917
+ n.value = { ...n.value, ...s };
1918
1918
  }
1919
1919
  return M(() => e.value, () => {
1920
1920
  const r = [];
1921
1921
  e.value?.forEach((s) => r.push(s)), o(r);
1922
- }, { deep: !0, immediate: !0 }), M(() => n.value, () => {
1922
+ }, { deep: !0, immediate: !0 }), M(() => a.value, () => {
1923
1923
  const r = [];
1924
- n.value && n.value?.length && n.value.forEach((s) => {
1924
+ a.value && a.value?.length && a.value.forEach((s) => {
1925
1925
  s.searchConfig && r.push(s.searchConfig);
1926
1926
  }), o(r);
1927
- }, { deep: !0, immediate: !0 }), { formCols: l, defaultFormSearch: a };
1927
+ }, { deep: !0, immediate: !0 }), { formCols: l, defaultFormSearch: n };
1928
1928
  }
1929
- function $a({ scroll: e, columns: n, autoScroll: l, modalScroll: a, neverScroll: o, rowSelection: r, screens: s, innerWidth: g, scrollBreakpoint: f }) {
1930
- const R = x(() => f.value ? we(f.value) ? g.value > f.value : Ft(f.value) ? s.value?.[f.value] : s.value?.xl : s.value?.xl), v = x(() => {
1929
+ function $a({ scroll: e, columns: a, autoScroll: l, modalScroll: n, neverScroll: o, rowSelection: r, screens: s, innerWidth: g, scrollBreakpoint: f }) {
1930
+ const R = x(() => f.value ? we(f.value) ? g.value > f.value : Pt(f.value) ? s.value?.[f.value] : s.value?.xl : s.value?.xl), v = x(() => {
1931
1931
  let h = 0;
1932
- const u = F(r) ? 60 : 0, S = 150, p = te(F(n));
1932
+ const u = F(r) ? 60 : 0, S = 150, p = te(F(a));
1933
1933
  p.forEach((A) => {
1934
1934
  h += Number.parseInt(String(A.width)) || 0;
1935
1935
  });
1936
1936
  const Y = p.filter((A) => !Reflect.has(A, "width")).length;
1937
1937
  return Y !== 0 && (h += Y * S), u && (h += u), h;
1938
1938
  });
1939
- return { proScroll: x(() => o.value ? {} : e.value && Rt(e.value).length ? F(e) : a.value ? {
1939
+ return { proScroll: x(() => o.value ? {} : e.value && $t(e.value).length ? F(e) : n.value ? {
1940
1940
  y: e.value?.y || (s.value?.xl ? 400 : 235)
1941
- } : l.value ? R.value ? {} : De(R.value) ? { x: v.value } : {} : {}), breakpoint: R };
1941
+ } : l.value ? R.value ? {} : Oe(R.value) ? { x: v.value } : {} : {}), breakpoint: R };
1942
1942
  }
1943
1943
  function Fa(e) {
1944
- const n = w(e.size.value || "middle");
1945
- M(() => e.size.value, (a) => n.value = a);
1946
- function l(a) {
1947
- n.value = a || n.value;
1944
+ const a = w(e.size.value || "middle");
1945
+ M(() => e.size.value, (n) => a.value = n);
1946
+ function l(n) {
1947
+ a.value = n || a.value;
1948
1948
  }
1949
- return [n, l];
1949
+ return [a, l];
1950
1950
  }
1951
1951
  const Pa = (e) => ({
1952
1952
  [e.componentCls]: {
@@ -1982,7 +1982,7 @@ const Pa = (e) => ({
1982
1982
  height: 0
1983
1983
  }
1984
1984
  }), Ia = (e) => {
1985
- const n = new ht(e.colorText).setAlpha(0.2).toRgbString(), l = new ht(e.colorText).setAlpha(0.4).toRgbString();
1985
+ const a = new gt(e.colorText).setAlpha(0.2).toRgbString(), l = new gt(e.colorText).setAlpha(0.4).toRgbString();
1986
1986
  return {
1987
1987
  [e.componentCls]: {
1988
1988
  [`${e.antCls}-table-container`]: {
@@ -2017,7 +2017,7 @@ const Pa = (e) => ({
2017
2017
  height: 0,
2018
2018
  cursor: "pointer",
2019
2019
  opacity: 1,
2020
- backgroundColor: n,
2020
+ backgroundColor: a,
2021
2021
  borderRadius: "inherit",
2022
2022
  transition: ".3s background-color",
2023
2023
  "&:hover": {
@@ -2034,7 +2034,7 @@ const Pa = (e) => ({
2034
2034
  }
2035
2035
  };
2036
2036
  }, Aa = (e) => {
2037
- const n = `${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`;
2037
+ const a = `${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`;
2038
2038
  return {
2039
2039
  [e.componentCls]: {
2040
2040
  [`&${e.componentCls}-full-page`]: {
@@ -2052,9 +2052,9 @@ const Pa = (e) => ({
2052
2052
  overflow: "hidden",
2053
2053
  [`${e.componentCls}-overflow-hidden`]: {
2054
2054
  [`${e.antCls}-table${e.antCls}-table-bordered>${e.antCls}-table-container`]: {
2055
- borderBlockEnd: n,
2055
+ borderBlockEnd: a,
2056
2056
  [`${e.antCls}-table-body`]: {
2057
- borderInlineEnd: n
2057
+ borderInlineEnd: a
2058
2058
  },
2059
2059
  [`${e.antCls}-table-row`]: {
2060
2060
  [`${e.antCls}-table-cell`]: {
@@ -2245,16 +2245,16 @@ const Pa = (e) => ({
2245
2245
  function za(e) {
2246
2246
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ae(e);
2247
2247
  }
2248
- const Na = Bt.PRESENTED_IMAGE_SIMPLE, Ea = Al.useToken, Ze = /* @__PURE__ */ ge({
2248
+ const Ea = zt.PRESENTED_IMAGE_SIMPLE, Na = Al.useToken, Ze = /* @__PURE__ */ ge({
2249
2249
  name: "GProTable",
2250
2250
  inheritAttrs: !1,
2251
2251
  props: me,
2252
2252
  emits: ["reset", "reload", "submit", "sizeChange", "expandedRowsChange", "expand", "change", "requestError", "columnsStateChange", "loadingChange"],
2253
2253
  slots: Object,
2254
2254
  setup(e, {
2255
- emit: n,
2255
+ emit: a,
2256
2256
  slots: l,
2257
- expose: a
2257
+ expose: n
2258
2258
  }) {
2259
2259
  const o = ml({
2260
2260
  suffixCls: "table",
@@ -2262,16 +2262,16 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, Ea = Al.useToken, Ze = /* @__PURE__ */ ge(
2262
2262
  }), {
2263
2263
  wrapSSR: r,
2264
2264
  hashId: s
2265
- } = wt("ProBaseTable", [Ba, Ia, Aa, Pa, Ul], o), {
2265
+ } = Tt("ProBaseTable", [Ba, Ia, Aa, Pa, Ul], o), {
2266
2266
  token: g
2267
- } = Ea(), f = sl(), R = ot(), {
2267
+ } = Na(), f = sl(), R = it(), {
2268
2268
  width: v
2269
- } = $l(), T = w(!1), h = xt(), u = w(), S = w(), p = w(e.waitRequest);
2270
- bt(() => p.value = e.waitRequest);
2269
+ } = $l(), T = w(!1), h = wt(), u = w(), S = w(), p = w(e.waitRequest);
2270
+ yt(() => p.value = e.waitRequest);
2271
2271
  const {
2272
2272
  toggle: j,
2273
2273
  isFullscreen: Y
2274
- } = Pt(u), A = x(() => !R.value.xl), O = x(() => (e.virtualScroll && Ol(!e.scroll?.y, "参数scroll的Y值不能为空!"), !!(e.scroll?.y && e.virtualScroll))), P = x(() => {
2274
+ } = It(u), A = x(() => !R.value.xl), D = x(() => (e.virtualScroll && Dl(!e.scroll?.y, "参数scroll的Y值不能为空!"), !!(e.scroll?.y && e.virtualScroll))), P = x(() => {
2275
2275
  if (e.form === !1) return !1;
2276
2276
  const b = {
2277
2277
  actions: {
@@ -2287,26 +2287,26 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, Ea = Al.useToken, Ze = /* @__PURE__ */ ge(
2287
2287
  searchText: "查询"
2288
2288
  };
2289
2289
  return oe(e.form) ? xe(b, e.form) : b;
2290
- }), q = x(() => P.value === !1 ? {} : P.value), Q = x(() => q.value?.autoRequest ?? e.autoRequest), N = x(() => q.value?.actions), k = x(() => {
2290
+ }), q = x(() => P.value === !1 ? {} : P.value), U = x(() => q.value?.autoRequest ?? e.autoRequest), E = x(() => q.value?.actions), k = x(() => {
2291
2291
  const b = te(e.columns || []).filter(($) => $.key || $.dataIndex).filter(($) => $.show ?? !0).map(($) => {
2292
2292
  const I = $.key || $.dataIndex;
2293
- return $.key = I, $.dataIndex = I, $.align = $.align || e.align, $.uuid = $.uuid || $t().uuid(15), $;
2293
+ return $.key = I, $.dataIndex = I, $.align = $.align || e.align, $.uuid = $.uuid || Ft().uuid(15), $;
2294
2294
  });
2295
2295
  return hl(b, {
2296
2296
  align: e.align || "left",
2297
2297
  showIndex: e.showIndex ?? !1
2298
2298
  });
2299
- }), [E, z] = ga({
2299
+ }), [N, z] = ga({
2300
2300
  loading: K(e, "loading")
2301
2301
  }), [H, L] = Fa({
2302
2302
  size: K(e, "size")
2303
2303
  }), {
2304
- paginationInfo: U,
2304
+ paginationInfo: J,
2305
2305
  requestPagination: V,
2306
2306
  setPagination: ie
2307
2307
  } = pa({
2308
2308
  pagination: K(e, "pagination"),
2309
- pageItemRender: ft({
2309
+ pageItemRender: vt({
2310
2310
  slots: l,
2311
2311
  props: e,
2312
2312
  key: "pageItemRender"
@@ -2349,20 +2349,20 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, Ea = Al.useToken, Ze = /* @__PURE__ */ ge(
2349
2349
  selectAllRowKey: c,
2350
2350
  syncSelectedRows: ne,
2351
2351
  removeRowKeys: de,
2352
- clearAllRowKeys: J
2353
- } = ba(K(e, "rowKey"), K(e, "rowSelection")), it = ma(e), {
2352
+ clearAllRowKeys: Z
2353
+ } = ba(K(e, "rowKey"), K(e, "rowSelection")), st = ma(e), {
2354
2354
  run: ue,
2355
2355
  setTableDataList: fe,
2356
- operateTableDataRow: Oe,
2357
- isTreeDataRef: Ae,
2356
+ operateTableDataRow: De,
2357
+ isTreeDataRef: Be,
2358
2358
  dataSource: ce,
2359
2359
  handleTableChange: Re
2360
2360
  } = ha({
2361
- ...it,
2361
+ ...st,
2362
2362
  waitRequest: p
2363
2363
  }, {
2364
- loading: E,
2365
- paginationInfo: U,
2364
+ loading: N,
2365
+ paginationInfo: J,
2366
2366
  pageInfo: V,
2367
2367
  setPagination: ie,
2368
2368
  removeRowKeys: de,
@@ -2375,11 +2375,11 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, Ea = Al.useToken, Ze = /* @__PURE__ */ ge(
2375
2375
  onRequestError: e.onRequestError,
2376
2376
  onBeforeSearchSubmit: e.onBeforeSearchSubmit,
2377
2377
  hasCustomRender: x(() => Ge(e.customRender || l?.customRender))
2378
- }, n), {
2378
+ }, a), {
2379
2379
  tableCardEl: Ce,
2380
2380
  tableScrollYHeight: $e,
2381
2381
  tableListToolsHeight: ke,
2382
- tableScrollEl: st,
2382
+ tableScrollEl: rt,
2383
2383
  tableOverHidden: jt,
2384
2384
  barRef: Ht
2385
2385
  } = wa({
@@ -2387,7 +2387,7 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, Ea = Al.useToken, Ze = /* @__PURE__ */ ge(
2387
2387
  scroll: se,
2388
2388
  baseClassName: o,
2389
2389
  fitPage: K(e, "fitPage")
2390
- }), rt = x(() => {
2390
+ }), ut = x(() => {
2391
2391
  const b = $e.value && e.fitPage ? {
2392
2392
  y: $e.value
2393
2393
  } : {};
@@ -2397,23 +2397,24 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, Ea = Al.useToken, Ze = /* @__PURE__ */ ge(
2397
2397
  };
2398
2398
  }), Lt = x(() => ({
2399
2399
  size: F(H),
2400
- scroll: F(rt),
2400
+ scroll: F(ut),
2401
2401
  dataSource: F(ce),
2402
- pagination: F(U),
2403
- virtualScroll: O.value,
2404
- columns: F(be).filter((b) => b.show || b.show === void 0)
2405
- })), ut = x(() => {
2406
- const b = oe(e.loading) ? Ee(e.loading, "spinning") : {};
2402
+ pagination: F(J),
2403
+ virtualScroll: D.value,
2404
+ columns: F(be).filter((b) => b.show || b.show === void 0),
2405
+ ...Ie(e, Object.keys(et).concat(["style", "class", "loading", "rowKey", "transformCellText", "rowSelection", "onChange", "onExpandedRowsChange", "onExpand", "onResizeColumn"]))
2406
+ })), ct = x(() => {
2407
+ const b = oe(e.loading) ? Ie(e.loading, "spinning") : {};
2407
2408
  return !b.indicator && h?.indicator?.value && (b.indicator = h?.indicator?.value), {
2408
- spinning: e.showLoading ? Ge(E.value) : !1,
2409
+ spinning: e.showLoading ? Ge(N.value) : !1,
2409
2410
  ...b
2410
2411
  };
2411
2412
  }), Wt = x(() => {
2412
2413
  let b;
2413
- const $ = e.direction === "rtl" ? "bottomLeft" : "right", I = F(U)?.position;
2414
+ const $ = e.direction === "rtl" ? "bottomLeft" : "right", I = F(J)?.position;
2414
2415
  if (I !== null && Array.isArray(I)) {
2415
- const D = I.find((le) => le.includes("top")), W = I.find((le) => le.includes("bottom")), X = I.every((le) => `${le}` == "none");
2416
- !D && !W && !X && (b = $), D && (b = D.toLowerCase().replace("top", "")), W && (b = W.toLowerCase().replace("bottom", ""));
2416
+ const O = I.find((le) => le.includes("top")), W = I.find((le) => le.includes("bottom")), X = I.every((le) => `${le}` == "none");
2417
+ !O && !W && !X && (b = $), O && (b = O.toLowerCase().replace("top", "")), W && (b = W.toLowerCase().replace("bottom", ""));
2417
2418
  } else
2418
2419
  b = $;
2419
2420
  return b;
@@ -2424,25 +2425,25 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, Ea = Al.useToken, Ze = /* @__PURE__ */ ge(
2424
2425
  }) : T.value = !0;
2425
2426
  });
2426
2427
  const Yt = async (b, $) => {
2427
- if (Q.value) {
2428
+ if (U.value) {
2428
2429
  ue({
2429
2430
  params: b
2430
2431
  });
2431
2432
  return;
2432
2433
  }
2433
- $ === "reset" ? (n("reset", b), e.request && N.value?.resetReload && ue({
2434
+ $ === "reset" ? (a("reset", b), e.request && E.value?.resetReload && ue({
2434
2435
  params: b
2435
- })) : e.request && (n("submit", b), ue({
2436
+ })) : e.request && (a("submit", b), ue({
2436
2437
  params: b
2437
2438
  }));
2438
- }, Ve = (b, $, I, D) => {
2439
- Re(b, $, I, D), e.onChange?.(b, $, I, D);
2439
+ }, Ve = (b, $, I, O) => {
2440
+ Re(b, $, I, O), e.onChange?.(b, $, I, O);
2440
2441
  }, Mt = (b) => e.onExpandedRowsChange?.(b), qt = (b, $) => e.onExpand?.(b, $), Kt = (b, $) => {
2441
2442
  ye(b, $), e.onResizeColumn?.(b, $);
2442
2443
  }, kt = (b, $, I) => {
2443
- let D = b;
2444
+ let O = b;
2444
2445
  if ($) {
2445
- const W = Z(b) ? typeof b?.[0]?.children == "string" ? b?.[0]?.children : "" : b ? b.toString() : "", X = I.tooltip === !1 ? {} : I.tooltip, le = I.tooltip === !1 ? 1 : we(X?.hiddenLine) && X?.hiddenLine > 0 ? X?.hiddenLine : 1, _ = I.tooltip === !1 ? 0 : we(X?.width) ? X?.width : 0, je = I.tooltip !== !1 && Ft(W) && _ > 0 ? bl(W, {
2446
+ const W = Q(b) ? typeof b?.[0]?.children == "string" ? b?.[0]?.children : "" : b ? b.toString() : "", X = I.tooltip === !1 ? {} : I.tooltip, le = I.tooltip === !1 ? 1 : we(X?.hiddenLine) && X?.hiddenLine > 0 ? X?.hiddenLine : 1, _ = I.tooltip === !1 ? 0 : we(X?.width) ? X?.width : 0, je = I.tooltip !== !1 && Pt(W) && _ > 0 ? bl(W, {
2446
2447
  cssObject: {
2447
2448
  fontSize: "14px",
2448
2449
  lineHeight: "22px",
@@ -2451,7 +2452,7 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, Ea = Al.useToken, Ze = /* @__PURE__ */ ge(
2451
2452
  }
2452
2453
  }) : 0, He = document.querySelector(`.${o} .ant-table-tbody`), Le = d("div", {
2453
2454
  class: `${o}-ellipsis-text`
2454
- }, [b]), dt = () => I.tooltip === !1 || oe(I.tooltip) && je < _ && _ > 0 ? Le : d(Ie, G({
2455
+ }, [b]), ft = () => I.tooltip === !1 || oe(I.tooltip) && je < _ && _ > 0 ? Le : d(Ae, G({
2455
2456
  title: b,
2456
2457
  getPopupContainer: (Xe) => He ?? Xe?.parentNode?.parentNode
2457
2458
  }, oe(I.tooltip) ? I.tooltip : {}, {
@@ -2459,49 +2460,49 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, Ea = Al.useToken, Ze = /* @__PURE__ */ ge(
2459
2460
  }), za(Le) ? Le : {
2460
2461
  default: () => [Le]
2461
2462
  });
2462
- if (D = d("div", {
2463
+ if (O = d("div", {
2463
2464
  class: B(`${o}-ellipsis`, X?.class),
2464
2465
  style: {
2465
2466
  "-webkit-line-clamp": le
2466
2467
  }
2467
- }, [dt()]), I.copyable) {
2468
+ }, [ft()]), I.copyable) {
2468
2469
  const Xe = typeof I.copyText == "function" ? I.copyText?.(I) : I.copyText || W;
2469
- D = d("div", {
2470
+ O = d("div", {
2470
2471
  class: `${o}-copyable`
2471
2472
  }, [d("div", {
2472
2473
  class: B(`${o}-ellipsis`, X?.class),
2473
2474
  style: {
2474
2475
  "-webkit-line-clamp": le
2475
2476
  }
2476
- }, [dt()]), d(al, {
2477
+ }, [ft()]), d(al, {
2477
2478
  class: `${o}-copyable-icon`,
2478
2479
  onClick: () => {
2479
- xa(Xe), Nl.success("复制成功");
2480
+ xa(Xe), El.success("复制成功");
2480
2481
  }
2481
2482
  }, null)]);
2482
2483
  }
2483
2484
  }
2484
- return D;
2485
+ return O;
2485
2486
  };
2486
- function ct() {
2487
+ function dt() {
2487
2488
  const b = yl({
2488
2489
  slots: l,
2489
2490
  props: e,
2490
2491
  key: "emptyText"
2491
2492
  });
2492
2493
  if (b !== !1 && h?.emptyText?.value !== !1) {
2493
- const I = e.emptyTextProps?.extraProps || {}, D = b || h?.emptyText?.value, W = ae(D), X = W ? pt(D, I) : Tt(Z(D) ? D : [D]);
2494
+ const I = e.emptyTextProps?.extraProps || {}, O = b || h?.emptyText?.value, W = ae(O), X = W ? bt(O, I) : Rt(Q(O) ? O : [O]);
2494
2495
  return d("div", {
2495
2496
  class: B(`${o}-empty-text`, s.value, e.emptyTextProps?.class),
2496
2497
  style: e.emptyTextProps?.style
2497
- }, [W ? X : Z(X) && X.length ? X.map((le) => tt(le, I)) : d(Bt, {
2498
- image: Na
2498
+ }, [W ? X : Q(X) && X.length ? X.map((le) => lt(le, I)) : d(zt, {
2499
+ image: Ea
2499
2500
  }, null)]);
2500
2501
  }
2501
2502
  return null;
2502
2503
  }
2503
2504
  const Vt = () => {
2504
- const b = ft({
2505
+ const b = vt({
2505
2506
  slots: l,
2506
2507
  props: e,
2507
2508
  key: "customRender"
@@ -2511,24 +2512,24 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, Ea = Al.useToken, Ze = /* @__PURE__ */ ge(
2511
2512
  const $ = te(F(ce));
2512
2513
  return b?.({
2513
2514
  dataSource: $,
2514
- currentData: Sa($, U.value)
2515
+ currentData: Sa($, J.value)
2515
2516
  });
2516
2517
  }
2517
- return ct();
2518
+ return dt();
2518
2519
  }
2519
2520
  return d(Pe, null, null);
2520
2521
  };
2521
2522
  return Hl({
2522
2523
  hashId: s,
2523
2524
  prefixCls: o,
2524
- tableScrollState: rt,
2525
+ tableScrollState: ut,
2525
2526
  tableSize: H,
2526
2527
  columns: be,
2527
2528
  cacheColumns: k,
2528
2529
  isMobile: A,
2529
2530
  formConfig: q,
2530
- formAutoRequest: Q,
2531
- formActions: N,
2531
+ formAutoRequest: U,
2532
+ formActions: E,
2532
2533
  screenWidth: v,
2533
2534
  tableListToolsHeight: ke,
2534
2535
  styles: K(e, "styles"),
@@ -2539,7 +2540,7 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, Ea = Al.useToken, Ze = /* @__PURE__ */ ge(
2539
2540
  toggle: j
2540
2541
  },
2541
2542
  setPagination: ie
2542
- }), a({
2543
+ }), n({
2543
2544
  formRef: () => ({
2544
2545
  getFormSearch: () => ({
2545
2546
  ...F(t),
@@ -2552,21 +2553,21 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, Ea = Al.useToken, Ze = /* @__PURE__ */ ge(
2552
2553
  }
2553
2554
  }),
2554
2555
  actionRef: () => ({
2555
- loading: E,
2556
+ loading: N,
2556
2557
  dataSource: ce,
2557
2558
  pageInfo: V,
2558
- pagination: U.value,
2559
+ pagination: J.value,
2559
2560
  selectedKeys: x(() => i.value),
2560
2561
  selectedItems: x(() => y.value),
2561
2562
  rowsSelection: {
2562
- clear: J,
2563
+ clear: Z,
2563
2564
  select: C,
2564
2565
  remove: de,
2565
2566
  sync: ne,
2566
2567
  selectAll: c
2567
2568
  },
2568
2569
  reload: ue,
2569
- getLoadingStatus: () => F(E),
2570
+ getLoadingStatus: () => F(N),
2570
2571
  reloadAndReset: async (b) => {
2571
2572
  p.value = !0, ie({
2572
2573
  current: 1,
@@ -2576,7 +2577,7 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, Ea = Al.useToken, Ze = /* @__PURE__ */ ge(
2576
2577
  setPageInfo: Ve,
2577
2578
  setTableDataList: fe,
2578
2579
  setPagination: ie,
2579
- operateTableDataRow: Oe,
2580
+ operateTableDataRow: De,
2580
2581
  setLoading: z
2581
2582
  })
2582
2583
  }), () => {
@@ -2590,7 +2591,7 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, Ea = Al.useToken, Ze = /* @__PURE__ */ ge(
2590
2591
  ref: u,
2591
2592
  class: B(o, s.value, e.class, e.classNames?.root, [{
2592
2593
  [`${o}-no-scroll`]: !Object.keys(F(se) || {}).length,
2593
- [`${o}-table-tree`]: Ae.value,
2594
+ [`${o}-table-tree`]: Be.value,
2594
2595
  [`${o}-full-page`]: e.fitPage,
2595
2596
  [`${o}-full-screen`]: Y.value
2596
2597
  }]),
@@ -2607,7 +2608,7 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, Ea = Al.useToken, Ze = /* @__PURE__ */ ge(
2607
2608
  cardBordered: e.cardBordered,
2608
2609
  formCols: re.value,
2609
2610
  prefixCls: o,
2610
- loading: F(E),
2611
+ loading: F(N),
2611
2612
  onSearch: Yt,
2612
2613
  defaultFormSearch: t.value
2613
2614
  }, {
@@ -2626,7 +2627,7 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, Ea = Al.useToken, Ze = /* @__PURE__ */ ge(
2626
2627
  headerTitle: I.headerTitle,
2627
2628
  listToolAfter: I.listToolAfter,
2628
2629
  headerTitleTip: I.headerTitleTip
2629
- }, null), b ? d(At, ut.value, {
2630
+ }, null), b ? d(Bt, ct.value, {
2630
2631
  default: () => [d("div", {
2631
2632
  class: B(`${o}-list ${s.value}`, e.classNames?.list),
2632
2633
  style: e.styles?.list
@@ -2636,28 +2637,28 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, Ea = Al.useToken, Ze = /* @__PURE__ */ ge(
2636
2637
  ...e.styles?.listContent || {},
2637
2638
  height: $e.value ? Se($e.value) : e.styles?.listContent?.height
2638
2639
  }
2639
- }, [Vt()]), e.pagination !== !1 && ce.value?.length > 0 && d(Bl, G(he(F(U)), {
2640
+ }, [Vt()]), e.pagination !== !1 && ce.value?.length > 0 && d(Bl, G(he(F(J)), {
2640
2641
  class: B(s.value, `${o}-pagination`, `${o}-pagination-${Wt.value}`, e.classNames?.pagination),
2641
2642
  style: e.styles?.pagination,
2642
- onChange: (D, W) => Ve({
2643
- current: D,
2643
+ onChange: (O, W) => Ve({
2644
+ current: O,
2644
2645
  pageSize: W
2645
2646
  })
2646
2647
  }), null)])]
2647
- }) : d(Pe, null, [d(zl, G(El(e, Object.keys(Et)), F(Lt), {
2648
+ }) : d(Pe, null, [d(zl, G(Nl(e, Object.keys(et)), F(Lt), {
2648
2649
  style: e.styles?.table,
2649
2650
  class: B(e.classNames?.table, s.value, jt.value && `${o}-overflow-hidden`),
2650
- loading: ut.value,
2651
- rowKey: (D) => D[e.rowKey],
2652
- transformCellText: (D) => {
2653
- e.transformCellText && typeof e.transformCellText && e.transformCellText?.(D);
2651
+ loading: ct.value,
2652
+ rowKey: (O) => O[e.rowKey],
2653
+ transformCellText: (O) => {
2654
+ e.transformCellText && typeof e.transformCellText && e.transformCellText?.(O);
2654
2655
  const {
2655
2656
  column: W
2656
- } = D;
2657
- if (!W) return D.text;
2657
+ } = O;
2658
+ if (!W) return O.text;
2658
2659
  const X = W?.key || W?.dataIndex;
2659
- let le = !0, _ = D.text;
2660
- if (Z(_))
2660
+ let le = !0, _ = O.text;
2661
+ if (Q(_))
2661
2662
  if (_.length === 0 || _.length === 1 && !ae(_[0])) {
2662
2663
  _ = _?.[0];
2663
2664
  const je = pl(_, W?.columnEmptyText || e?.columnEmptyText || "");
@@ -2666,7 +2667,7 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, Ea = Al.useToken, Ze = /* @__PURE__ */ ge(
2666
2667
  return W?.ellipsis ? kt(_, le, W) : _;
2667
2668
  },
2668
2669
  rowSelection: e.rowSelection ? {
2669
- ...Ee(e.rowSelection, ["onSelect", "onSelectAll", "onChange", "selectedRowKeys"]),
2670
+ ...Ie(e.rowSelection, ["onSelect", "onSelectAll", "onChange", "selectedRowKeys"]),
2670
2671
  selectedRowKeys: i.value || [],
2671
2672
  onSelect: C,
2672
2673
  onSelectAll: c,
@@ -2675,12 +2676,12 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, Ea = Al.useToken, Ze = /* @__PURE__ */ ge(
2675
2676
  onChange: Ve,
2676
2677
  onExpandedRowsChange: Mt,
2677
2678
  onExpand: qt,
2678
- onResizeColumn: (D, W) => Kt(D, W)
2679
+ onResizeColumn: (O, W) => Kt(O, W)
2679
2680
  }), {
2680
2681
  ...l,
2681
- emptyText: () => ct()
2682
- }), st.value && !b && d(Qt, {
2683
- to: st.value
2682
+ emptyText: () => dt()
2683
+ }), rt.value && !b && d(Qt, {
2684
+ to: rt.value
2684
2685
  }, {
2685
2686
  default: () => [d(aa, {
2686
2687
  ref: Ht
@@ -2690,24 +2691,24 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, Ea = Al.useToken, Ze = /* @__PURE__ */ ge(
2690
2691
  }
2691
2692
  });
2692
2693
  Ze.install = (e) => (e.component(Ze.name, Ze), e);
2693
- function Qa(e, n) {
2694
+ function Qa(e, a) {
2694
2695
  function l() {
2695
2696
  const v = {
2696
2697
  params: {},
2697
2698
  searchMap: []
2698
2699
  };
2699
- if (n?.state) {
2700
- if (_e(n.state) && oe(n.state.value))
2701
- return xe(v, te(n.state.value));
2702
- if (oe(n.state) && !_e(n.state))
2703
- return xe(v, te(n.state));
2700
+ if (a?.state) {
2701
+ if (_e(a.state) && oe(a.state.value))
2702
+ return xe(v, te(a.state.value));
2703
+ if (oe(a.state) && !_e(a.state))
2704
+ return xe(v, te(a.state));
2704
2705
  }
2705
2706
  return v;
2706
2707
  }
2707
- const a = lt(xe(l(), {
2708
- request: n?.request
2708
+ const n = at(xe(l(), {
2709
+ request: a?.request
2709
2710
  }));
2710
- n?.state && M(() => n.state && _e(n.state) ? n.state.value : n.state, () => {
2711
+ a?.state && M(() => a.state && _e(a.state) ? a.state.value : a.state, () => {
2711
2712
  f();
2712
2713
  }, { deep: !0 });
2713
2714
  const o = x(() => e.value ? e.value.actionRef() : {}), r = x(() => e.value ? e.value.formRef() : {}), s = x(() => ({
@@ -2720,15 +2721,15 @@ function Qa(e, n) {
2720
2721
  o.value?.setLoading?.(!!v);
2721
2722
  });
2722
2723
  function f() {
2723
- Cl(a, l());
2724
+ Cl(n, l());
2724
2725
  }
2725
2726
  function R(v, T) {
2726
- a.searchMap && (a.searchMap = te(a.searchMap).map((h) => h.name === v ? xe(h, T) : h));
2727
+ n.searchMap && (n.searchMap = te(n.searchMap).map((h) => h.name === v ? xe(h, T) : h));
2727
2728
  }
2728
2729
  return {
2729
2730
  formRef: r,
2730
2731
  actionRef: o,
2731
- tableState: a,
2732
+ tableState: n,
2732
2733
  requestSearch: s,
2733
2734
  loading: g,
2734
2735
  dataSource: x(() => o?.value?.dataSource?.value || []),