@gx-design-vue/pro-table 0.2.0-beta.145 → 0.2.0-beta.146

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,6 +1,6 @@
1
1
  /*!
2
2
  * Gx Design Pro
3
- * Version: 0.2.0-beta.144
3
+ * Version: 0.2.0-beta.145
4
4
  * Author: gx12358
5
5
  * Copyright (C) 2024 gx12358
6
6
  * License: MIT License
@@ -9,21 +9,21 @@
9
9
  * Homepage:
10
10
  * Contact: gx12358@gmail.com
11
11
  */
12
- import { defineComponent as ge, ref as w, watch as q, cloneVNode as lt, reactive as at, toRaw as ce, computed as T, createVNode as d, Fragment as we, isVNode as ae, mergeProps as Q, h as pt, onBeforeUnmount as Gt, onMounted as nt, nextTick as ot, watchEffect as yt, unref as R, onActivated as Ct, getCurrentInstance as Qt, onUnmounted as St, onDeactivated as xt, onUpdated as Ut, toRef as X, Teleport as Jt, isRef as Ge } from "vue";
12
+ import { defineComponent as ge, ref as T, watch as Y, cloneVNode as lt, reactive as at, toRaw as ce, computed as x, createVNode as d, Fragment as we, isVNode as ae, mergeProps as Q, h as bt, onBeforeUnmount as Gt, onMounted as nt, nextTick as ot, watchEffect as pt, unref as P, onActivated as yt, getCurrentInstance as Qt, onUnmounted as Ct, onDeactivated as St, onUpdated as Ut, toRef as V, Teleport as Jt, isRef as Ge } from "vue";
13
13
  import { UpOutlined as Zt, DownOutlined as el, InfoCircleOutlined as tl, FullscreenExitOutlined as ll, FullscreenOutlined as al, ReloadOutlined as nl, CopyOutlined as ol } from "@ant-design/icons-vue";
14
- import { useProAppContext as Tt } from "@gx-design-vue/pro-app";
14
+ import { useProAppContext as xt } from "@gx-design-vue/pro-app";
15
15
  import { useBreakpoint as it, useMemo as Ne, tryOnUnmounted as il, onMountedOrActivated as sl } from "@gx-design-vue/pro-hooks";
16
- import { useProStyle as st, unit as pe, useProConfigContext as rl } from "@gx-design-vue/pro-provider";
17
- import { isArray as J, cloneDeep as ee, isObject as ne, isBoolean as Oe, classNames as O, isNumber as Ce, filterEmpty as wt, getPrefixCls as $t, keysOf as Rt, isFunction as ze, isDeepEqualReact as qe, compareArray as ul, runFunction as cl, getSortIndex as dl, handleCurrentPage as fl, getRandomNumber as Pt, deepMerge as ye, forInObject as vl, arrayRepeat as ml, isString as Ft, handleShowIndex as hl, getSlot as vt, convertValueBoolean as Qe, getSlotsProps as gl, handleEmptyField as bl, getTextWidth as pl, 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 Tl, useFullscreen as It, useElementSize as We, useScroll as wl, useResizeObserver as $l, useWindowSize as Rl } from "@vueuse/core";
19
- import { DatePicker as Bt, Input as Ye, TimePicker as Pl, TreeSelect as Fl, Select as Il, InputNumber as Ue, Button as ht, Spin as At, Tooltip as $e, Empty as Nt, theme as Bl, Pagination as Al, Table as Nl, message as zl } from "ant-design-vue";
16
+ import { useProStyle as Tt, unit as pe, useProConfigContext as rl } from "@gx-design-vue/pro-provider";
17
+ import { isArray as J, cloneDeep as ee, isObject as ne, isBoolean as Oe, classNames as O, isNumber as Ce, filterEmpty as wt, getPrefixCls as $t, keysOf as Rt, isFunction as ze, isDeepEqualReact as qe, compareArray as ul, runFunction as cl, getSortIndex as dl, handleCurrentPage as fl, getRandomNumber as Pt, deepMerge as ye, forInObject as vl, arrayRepeat as ml, isString as Ft, handleShowIndex as hl, getSlot as ft, convertValueBoolean as Qe, getSlotsProps as gl, handleEmptyField as bl, getTextWidth as pl, 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 Tl, useFullscreen as It, useElementSize as We, useScroll as wl, useResizeObserver as $l, useWindowSize as Rl } from "@vueuse/core";
19
+ import { DatePicker as Bt, Input as Ye, TimePicker as Pl, TreeSelect as Fl, Select as Il, InputNumber as Ue, Button as mt, Spin as At, Tooltip as $e, Empty as Nt, theme as Bl, Pagination as Al, Table as Nl, message as zl } from "ant-design-vue";
20
20
  import { omit as De, cloneDeep as zt, pick as Dl } from "lodash-es";
21
21
  import { tableProps as Ol } from "ant-design-vue/es/table/Table";
22
22
  import "ant-design-vue/es/_util/props-util";
23
23
  import { warning as El } from "ant-design-vue/es/vc-util/warning";
24
24
  import Z from "dayjs";
25
25
  import { useContext as Dt } from "@gx-design-vue/context";
26
- import { TinyColor as gt } from "@ctrl/tinycolor";
26
+ import { TinyColor as ht } from "@ctrl/tinycolor";
27
27
  const Ll = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered", "loading"], Ot = {
28
28
  ...De(Ol(), Ll),
29
29
  direction: {
@@ -336,22 +336,22 @@ const Ll = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
336
336
  setup(e, {
337
337
  slots: n
338
338
  }) {
339
- const l = w([]), a = w(e.loading ?? !1), o = w("init"), r = Sl(e.fetch, e.debounceTime || 10);
340
- return q([() => e.fetch, () => e.manual], () => {
339
+ const l = T([]), a = T(e.loading ?? !1), o = T("init"), r = Sl(e.fetch, e.debounceTime || 10);
340
+ return Y([() => e.fetch, () => e.manual], () => {
341
341
  if (o.value !== "init" && a.value) return;
342
- const u = e.manual ?? !1;
343
- e.fetch && !u && (a.value = !0, r().then((b) => {
344
- l.value = zt(b), o.value = "success";
345
- }).catch((b) => {
346
- console.error(b), o.value = "error";
342
+ const s = e.manual ?? !1;
343
+ e.fetch && !s && (a.value = !0, r().then((h) => {
344
+ l.value = zt(h), o.value = "success";
345
+ }).catch((h) => {
346
+ console.error(h), o.value = "error";
347
347
  }).finally(() => {
348
348
  a.value = !1;
349
349
  }));
350
350
  }, {
351
351
  immediate: !0
352
352
  }), () => {
353
- const u = n.default?.();
354
- return lt(J(u) ? u[0] : u, {
353
+ const s = n.default?.();
354
+ return lt(J(s) ? s[0] : s, {
355
355
  options: l.value,
356
356
  notFoundContent: e.notFoundContent?.(a.value)
357
357
  });
@@ -362,17 +362,17 @@ function Wl(e, n) {
362
362
  const l = at({});
363
363
  function a() {
364
364
  Object.assign(l, ee(ce(e)));
365
- const r = n.find((u) => u.valueType === "dateRange");
365
+ const r = n.find((s) => s.valueType === "dateRange");
366
366
  r && o(r.name || "", e[r.rangeStartName || "start"] ? [
367
367
  e[r.rangeStartName || "start"],
368
368
  e[r.rangeEndName || "end"]
369
369
  ] : []);
370
370
  }
371
- q(() => e, () => {
371
+ Y(() => e, () => {
372
372
  a();
373
373
  }, { deep: !0, immediate: !0 });
374
- function o(r, u) {
375
- l[r] = u;
374
+ function o(r, s) {
375
+ l[r] = s;
376
376
  }
377
377
  return {
378
378
  formState: l,
@@ -501,13 +501,13 @@ function me(e, n) {
501
501
  function Be(e, n) {
502
502
  return n ? "YYYY-MM-DD HH:mm:ss" : e ?? "YYYY-MM-DD";
503
503
  }
504
- const bt = (e, n, l = "string") => {
504
+ const gt = (e, n, l = "string") => {
505
505
  if (J(e)) {
506
506
  const [a, o] = e;
507
- let r, u;
508
- if (Array.isArray(n) ? (r = n[0], u = n[1]) : typeof n == "object" && n.type === "mask" ? (r = n.format, u = n.format) : (r = n, u = n), l === "string") {
509
- const b = a ? me(a, r) : "", f = o ? me(o, u) : "";
510
- return [b, f];
507
+ let r, s;
508
+ 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") {
509
+ const h = a ? me(a, r) : "", f = o ? me(o, s) : "";
510
+ return [h, f];
511
511
  }
512
512
  return [Z(a), Z(o)];
513
513
  }
@@ -553,197 +553,197 @@ const Gl = {
553
553
  const {
554
554
  wrapSSR: a,
555
555
  hashId: o
556
- } = st("ProTableForm", [Yl], e.prefixCls), r = Tt(), u = it(), {
557
- formAutoRequest: b,
556
+ } = Tt("ProTableForm", [Yl], e.prefixCls), r = xt(), s = it(), {
557
+ formAutoRequest: h,
558
558
  formConfig: f,
559
559
  formActions: $,
560
560
  screenWidth: m,
561
- styles: S,
561
+ styles: w,
562
562
  classNames: v
563
563
  } = Ke(), {
564
- formState: i,
565
- resetFormState: x,
566
- changeFormState: h
567
- } = Wl(e.defaultFormSearch, e.formCols), E = w(pe(f.value?.gap || 16)), B = T(() => {
564
+ formState: u,
565
+ resetFormState: S,
566
+ changeFormState: g
567
+ } = Wl(e.defaultFormSearch, e.formCols), B = T(pe(f.value?.gap || 16)), N = x(() => {
568
568
  if (f.value?.breakpoint && ne(f.value.breakpoint) && Object.keys(f.value.breakpoint).length)
569
569
  return f.value?.breakpoint;
570
- }), I = w(f.value?.collapsed ?? f.value?.defaultCollapsed), N = T(() => Oe($.value?.reset) ? $.value?.reset : !b.value), H = T(() => B.value ? V(B.value, m.value) : L(f.value?.span, u.value)), k = T(() => f.value?.label);
571
- q(() => f.value?.collapsed, (t) => {
572
- I.value = t;
570
+ }), R = T(f.value?.collapsed ?? f.value?.defaultCollapsed), X = x(() => Oe($.value?.reset) ? $.value?.reset : !h.value), M = x(() => N.value ? k(N.value, m.value) : E(f.value?.span, s.value)), K = x(() => f.value?.label);
571
+ Y(() => f.value?.collapsed, (t) => {
572
+ R.value = t;
573
573
  });
574
- function V(t, s) {
574
+ function k(t, i) {
575
575
  let y = 4;
576
- const g = Object.keys(t).map((C) => Number(C)).filter((C) => !Number.isNaN(C)).sort((C, c) => c - C);
577
- for (let C = 0; C < g.length; C += 1) {
578
- const c = g[C];
579
- if (t[c] && s >= c) {
576
+ const b = Object.keys(t).map((C) => Number(C)).filter((C) => !Number.isNaN(C)).sort((C, c) => c - C);
577
+ for (let C = 0; C < b.length; C += 1) {
578
+ const c = b[C];
579
+ if (t[c] && i >= c) {
580
580
  y = t[c];
581
581
  break;
582
582
  }
583
583
  }
584
584
  return y;
585
585
  }
586
- function L(t, s) {
586
+ function E(t, i) {
587
587
  let y = 4;
588
- for (let g = 0; g < Je.length; g += 1) {
589
- const C = Je[g].value;
590
- if (s[C]) {
591
- y = t?.[C] || (e.modalScroll ? 3 : Je[g].span);
588
+ for (let b = 0; b < Je.length; b += 1) {
589
+ const C = Je[b].value;
590
+ if (i[C]) {
591
+ y = t?.[C] || (e.modalScroll ? 3 : Je[b].span);
592
592
  break;
593
593
  }
594
594
  }
595
595
  return y;
596
596
  }
597
597
  const A = (t) => {
598
- I.value = t;
599
- }, K = (t, s, y) => (t + 1) % s === 0 ? {
598
+ R.value = t;
599
+ }, q = (t, i, y) => (t + 1) % i === 0 ? {
600
600
  ...y,
601
601
  marginRight: pe(0)
602
602
  } : {
603
603
  ...y,
604
- marginRight: E.value
604
+ marginRight: B.value
605
605
  }, z = () => {
606
- const t = zt(i), s = e.formCols.find((C) => C.valueType === "text") || "", y = e.formCols.find((C) => C.valueType === "dateRange") || "", g = e.formCols.find((C) => C.valueType === "treeSelect");
607
- return s && (t[s.name] = i[s.name] || s.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]), g && (g?.name && J(i[g?.name]) && (t[g.name] = i[g.name].length ? i[g.name].map((C) => C[g.valueKey === "text" ? "label" : "value"]).join() : ""), g?.name && J(t[g?.name]) && (t[g.name] = t[g.name].length ? t[g.name].map((C) => C[g.valueKey === "text" ? "label" : "value"]) : "")), t;
608
- }, j = (t = !1, s) => {
609
- (b.value || t) && e.onSearch?.(z(), t ? s ? "reset" : "submit" : void 0);
610
- }, Y = (t, s, y) => {
611
- const g = i[s.name || ""];
612
- switch (s.valueType) {
606
+ const t = zt(u), i = e.formCols.find((C) => C.valueType === "text") || "", y = e.formCols.find((C) => C.valueType === "dateRange") || "", b = e.formCols.find((C) => C.valueType === "treeSelect");
607
+ 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]), b && (b?.name && J(u[b?.name]) && (t[b.name] = u[b.name].length ? u[b.name].map((C) => C[b.valueKey === "text" ? "label" : "value"]).join() : ""), b?.name && J(t[b?.name]) && (t[b.name] = t[b.name].length ? t[b.name].map((C) => C[b.valueKey === "text" ? "label" : "value"]) : "")), t;
608
+ }, L = (t = !1, i) => {
609
+ (h.value || t) && e.onSearch?.(z(), t ? i ? "reset" : "submit" : void 0);
610
+ }, H = (t, i, y) => {
611
+ const b = u[i.name || ""];
612
+ switch (i.valueType) {
613
613
  case "text":
614
- h(s.name || "", t || "");
614
+ g(i.name || "", t || "");
615
615
  break;
616
616
  case "number":
617
- h(s.name || "", t || void 0);
617
+ g(i.name || "", t || void 0);
618
618
  break;
619
619
  case "numberRange":
620
- Ce(y?.key) && g && (g[y.key] = t, h(s.name || "", g || []));
620
+ Ce(y?.key) && b && (b[y.key] = t, g(i.name || "", b || []));
621
621
  break;
622
622
  case "select":
623
- h(s.name || "", t ?? void 0);
623
+ g(i.name || "", t ?? void 0);
624
624
  break;
625
625
  case "treeSelect":
626
- h(s.name || "", t ?? (s.field?.treeCheckable || s.field?.multiple ? [] : null));
626
+ g(i.name || "", t ?? (i.field?.treeCheckable || i.field?.multiple ? [] : null));
627
627
  break;
628
628
  case "date":
629
- h(s.name || "", t ? me(t, Be(s.valueFormat, s.showTime)) : null);
629
+ g(i.name || "", t ? me(t, Be(i.valueFormat, i.showTime)) : null);
630
630
  break;
631
631
  case "dateWeek":
632
- h(s.name || "", t ? me(t, "YYYY-wo") : null);
632
+ g(i.name || "", t ? me(t, "YYYY-wo") : null);
633
633
  break;
634
634
  case "dateMonth":
635
- h(s.name || "", t ? me(t, "YYYY-MM") : null);
635
+ g(i.name || "", t ? me(t, "YYYY-MM") : null);
636
636
  break;
637
637
  case "dateQuarter":
638
- h(s.name || "", t ? me(t, "YYYY-QQ") : null);
638
+ g(i.name || "", t ? me(t, "YYYY-QQ") : null);
639
639
  break;
640
640
  case "dateYear":
641
- h(s.name || "", t ? me(t, "YYYY") : null);
641
+ g(i.name || "", t ? me(t, "YYYY") : null);
642
642
  break;
643
643
  case "dateRange":
644
- h(s.name || "", t && J(t) && t.length === 2 ? bt(t, Be(s.valueFormat, s.showTime)) : null);
644
+ g(i.name || "", t && J(t) && t.length === 2 ? gt(t, Be(i.valueFormat, i.showTime)) : null);
645
645
  break;
646
646
  case "time":
647
- h(s.name || "", t ? me(t, s.valueFormat || "HH:mm:ss") : null);
647
+ g(i.name || "", t ? me(t, i.valueFormat || "HH:mm:ss") : null);
648
648
  break;
649
649
  }
650
- s.valueType === "treeSelect" || s.valueType, j();
651
- }, M = (t = !0) => {
652
- x(), j(!0, t);
650
+ i.valueType === "treeSelect" || i.valueType, L();
651
+ }, W = (t = !0) => {
652
+ S(), L(!0, t);
653
653
  };
654
654
  l({
655
655
  getFormSearch: () => z(),
656
- resetForm: M
656
+ resetForm: W
657
657
  });
658
658
  const te = () => {
659
659
  const t = r?.emptyText?.value;
660
660
  if (t) {
661
- const s = ae(t), y = s ? pt(t) : wt(t || []);
661
+ const i = ae(t), y = i ? bt(t) : wt(t || []);
662
662
  return d("div", {
663
663
  class: O(`${e.prefixCls}-search-empty-text`, o.value)
664
- }, [s ? y : J(y) ? y.map((g) => lt(g)) : void 0]);
664
+ }, [i ? y : J(y) ? y.map((b) => lt(b)) : void 0]);
665
665
  }
666
- }, se = () => (!b.value || N.value) && d("div", {
666
+ }, se = () => (!h.value || X.value) && d("div", {
667
667
  class: O(`${e.prefixCls}-search-buttons ${o.value}`, v.value?.searchButtons),
668
- style: S.value?.searchButtons
669
- }, [N.value && d(ht, {
668
+ style: w.value?.searchButtons
669
+ }, [X.value && d(mt, {
670
670
  key: "reset",
671
- onClick: () => M()
671
+ onClick: () => W()
672
672
  }, {
673
673
  default: () => [$.value?.resetText || "重置"]
674
- }), !b.value && d(ht, {
674
+ }), !h.value && d(mt, {
675
675
  key: "submit",
676
676
  loading: e.loading,
677
677
  type: "primary",
678
- onClick: () => j(!0)
678
+ onClick: () => L(!0)
679
679
  }, {
680
680
  default: () => [$.value?.searchText || "查询"]
681
681
  })]), re = ({
682
682
  formItemStyle: t = {},
683
- collapsed: s,
683
+ collapsed: i,
684
684
  collapseRender: y = !0
685
685
  }) => d("div", {
686
686
  style: {
687
687
  ...t,
688
- ...S.value?.searchControl
688
+ ...w.value?.searchControl
689
689
  },
690
690
  class: O(`${e.prefixCls}-search-control ${o.value}`, v.value?.searchControl)
691
691
  }, [d("div", {
692
692
  class: O(`${e.prefixCls}-search-control-content ${o.value}`, v.value?.searchContent)
693
- }, [se(), f.value?.collapseRender !== !1 && y && d(we, null, [typeof f.value?.collapseRender == "function" ? f.value?.collapseRender(s) : d("span", {
693
+ }, [se(), f.value?.collapseRender !== !1 && y && d(we, null, [typeof f.value?.collapseRender == "function" ? f.value?.collapseRender(i) : d("span", {
694
694
  class: O(`${e.prefixCls}-search-control-text ${o.value}`, v.value?.searchText),
695
- style: S.value?.searchText,
696
- onClick: () => A(!s)
697
- }, [s ? "收起" : "展开", s ? d(Zt, null, null) : d(el, null, null)])])])]);
695
+ style: w.value?.searchText,
696
+ onClick: () => A(!i)
697
+ }, [i ? "收起" : "展开", i ? d(Zt, null, null) : d(el, null, null)])])])]);
698
698
  function be(t) {
699
699
  return t === void 0 ? void 0 : t ? d(At, {
700
700
  size: "small",
701
701
  indicator: r?.indicator?.value
702
702
  }, null) : te();
703
703
  }
704
- function de(t, s) {
704
+ function de(t, i) {
705
705
  return d(Hl, Q(t.request, {
706
706
  loading: t.loading,
707
707
  notFoundContent: be
708
- }), Ml(s) ? s : {
709
- default: () => [s]
708
+ }), Ml(i) ? i : {
709
+ default: () => [i]
710
710
  });
711
711
  }
712
712
  const Re = (t) => {
713
- let s;
714
- const y = b.value ? Ye.Search : Ye, g = De(t.field || {}, "rules");
713
+ let i;
714
+ const y = h.value ? Ye.Search : Ye, b = De(t.field || {}, "rules");
715
715
  let C = null;
716
716
  switch (t.valueType) {
717
717
  case "text":
718
- s = d(y, Q({
718
+ i = d(y, Q({
719
719
  style: {
720
720
  width: "100%"
721
721
  },
722
- value: i[t.name],
722
+ value: u[t.name],
723
723
  placeholder: t.placeholder || "请输入",
724
724
  allowClear: t.allowClear ?? !0,
725
- onChange: (c) => Y(c.target.value, t),
726
- onSearch: (c) => j()
727
- }, g), null);
725
+ onChange: (c) => H(c.target.value, t),
726
+ onSearch: (c) => L()
727
+ }, b), null);
728
728
  break;
729
729
  case "number":
730
- s = d(Ue, Q({
730
+ i = d(Ue, Q({
731
731
  style: {
732
732
  width: "100%"
733
733
  },
734
- value: i[t.name],
734
+ value: u[t.name],
735
735
  placeholder: t.placeholder || "请输入",
736
- onChange: (c) => Y(c, t)
737
- }, g), null);
736
+ onChange: (c) => H(c, t)
737
+ }, b), null);
738
738
  break;
739
739
  case "numberRange":
740
- s = d(Ye.Group, {
740
+ i = d(Ye.Group, {
741
741
  compact: !0,
742
742
  class: O(o.value, `${e.prefixCls}-search-input-compact`)
743
743
  }, {
744
744
  default: () => [d(Ue, {
745
- value: i[t.name]?.[0],
746
- onChange: (c) => Y(c, t, {
745
+ value: u[t.name]?.[0],
746
+ onChange: (c) => H(c, t, {
747
747
  key: 0
748
748
  }),
749
749
  placeholder: J(t.placeholder) && t.placeholder?.[0] || "请输入"
@@ -751,8 +751,8 @@ const Gl = {
751
751
  disabled: !0,
752
752
  placeholder: "~"
753
753
  }, null), d(Ue, {
754
- value: i[t.name]?.[1],
755
- onChange: (c) => Y(c, t, {
754
+ value: u[t.name]?.[1],
755
+ onChange: (c) => H(c, t, {
756
756
  key: 1
757
757
  }),
758
758
  placeholder: J(t.placeholder) && t.placeholder?.[1] || "请输入"
@@ -764,177 +764,177 @@ const Gl = {
764
764
  style: {
765
765
  width: "100%"
766
766
  },
767
- value: t.loading ? void 0 : i[t.name],
767
+ value: t.loading ? void 0 : u[t.name],
768
768
  optionFilterProp: "label",
769
769
  placeholder: t.placeholder || "请选择",
770
770
  showSearch: t.showSearch,
771
771
  allowClear: t.allowClear ?? !0,
772
772
  getPopupContainer: (c) => c && c.parentNode ? c.parentNode : c,
773
773
  notFoundContent: be(t.loading),
774
- onChange: (c) => Y(c, t),
774
+ onChange: (c) => H(c, t),
775
775
  options: t.loading ? [] : t?.valueEnum || []
776
- }, g), null);
776
+ }, b), null);
777
777
  break;
778
778
  case "treeSelect":
779
779
  C = d(Fl, Q({
780
780
  style: {
781
781
  width: "100%"
782
782
  },
783
- value: i[t.name],
783
+ value: u[t.name],
784
784
  placeholder: t.placeholder || "请选择",
785
785
  allowClear: t.allowClear ?? !0,
786
786
  treeData: t.loading ? [] : t.valueEnum || [],
787
787
  getPopupContainer: (c) => c && c.parentNode ? c.parentNode : c,
788
788
  notFoundContent: be(t.loading),
789
- onChange: (c) => Y(c, t)
790
- }, g), null);
789
+ onChange: (c) => H(c, t)
790
+ }, b), null);
791
791
  break;
792
792
  case "date":
793
- s = d(Bt, Q({
793
+ i = d(Bt, Q({
794
794
  style: {
795
795
  width: "100%"
796
796
  },
797
- value: i[t.name] ? Z(i[t.name]) : void 0,
797
+ value: u[t.name] ? Z(u[t.name]) : void 0,
798
798
  getPopupContainer: (c) => c && c.parentNode ? c.parentNode : c,
799
799
  placeholder: t.placeholder || "请选择",
800
800
  allowClear: t.allowClear ?? !0,
801
801
  format: Be(t.valueFormat, t.showTime),
802
802
  showTime: t.showTime,
803
803
  showToday: t.showToday || !0,
804
- onChange: (c) => Y(c, t)
805
- }, g), null);
804
+ onChange: (c) => H(c, t)
805
+ }, b), null);
806
806
  break;
807
807
  case "dateWeek":
808
- s = d(Vl, Q({
808
+ i = d(Vl, Q({
809
809
  style: {
810
810
  width: "100%"
811
811
  },
812
- value: i[t.name] ? Z(i[t.name], t.valueFormat || "YYYY-wo") : void 0,
812
+ value: u[t.name] ? Z(u[t.name], t.valueFormat || "YYYY-wo") : void 0,
813
813
  getPopupContainer: (c) => c && c.parentNode ? c.parentNode : c,
814
814
  allowClear: t.allowClear ?? !0,
815
815
  placeholder: t.placeholder || "请选择",
816
- onChange: (c) => Y(c, t)
817
- }, g), null);
816
+ onChange: (c) => H(c, t)
817
+ }, b), null);
818
818
  break;
819
819
  case "dateMonth":
820
- s = d(ql, Q({
820
+ i = d(ql, Q({
821
821
  style: {
822
822
  width: "100%"
823
823
  },
824
- value: i[t.name] ? Z(i[t.name], t.valueFormat || "YYYY-MM") : void 0,
824
+ value: u[t.name] ? Z(u[t.name], t.valueFormat || "YYYY-MM") : void 0,
825
825
  getPopupContainer: (c) => c && c.parentNode ? c.parentNode : c,
826
826
  allowClear: t.allowClear ?? !0,
827
827
  placeholder: t.placeholder || "请选择",
828
- onChange: (c) => Y(c, t)
829
- }, g), null);
828
+ onChange: (c) => H(c, t)
829
+ }, b), null);
830
830
  break;
831
831
  case "dateQuarter":
832
- s = d(Xl, Q({
832
+ i = d(Xl, Q({
833
833
  style: {
834
834
  width: "100%"
835
835
  },
836
- value: i[t.name] ? Z(i[t.name], t.valueFormat || "YYYY-QQ") : void 0,
836
+ value: u[t.name] ? Z(u[t.name], t.valueFormat || "YYYY-QQ") : void 0,
837
837
  getPopupContainer: (c) => c && c.parentNode ? c.parentNode : c,
838
838
  allowClear: t.allowClear ?? !0,
839
839
  placeholder: t.placeholder || "请选择",
840
- onChange: (c) => Y(c, t)
841
- }, g), null);
840
+ onChange: (c) => H(c, t)
841
+ }, b), null);
842
842
  break;
843
843
  case "dateYear":
844
- s = d(kl, Q({
844
+ i = d(kl, Q({
845
845
  style: {
846
846
  width: "100%"
847
847
  },
848
- value: i[t.name] ? Z(i[t.name], t.valueFormat || "YYYY") : void 0,
848
+ value: u[t.name] ? Z(u[t.name], t.valueFormat || "YYYY") : void 0,
849
849
  getPopupContainer: (c) => c && c.parentNode ? c.parentNode : c,
850
850
  allowClear: t.allowClear ?? !0,
851
851
  placeholder: t.placeholder || "请选择",
852
- onChange: (c) => Y(c, t)
853
- }, g), null);
852
+ onChange: (c) => H(c, t)
853
+ }, b), null);
854
854
  break;
855
855
  case "dateRange":
856
- s = d(Kl, Q({
856
+ i = d(Kl, Q({
857
857
  style: {
858
858
  width: "100%"
859
859
  },
860
- value: i[t.name] && J(i[t.name]) && i[t.name]?.length === 2 ? bt(i[t.name], Be(t.valueFormat, t.showTime), "dayjs") : void 0,
860
+ value: u[t.name] && J(u[t.name]) && u[t.name]?.length === 2 ? gt(u[t.name], Be(t.valueFormat, t.showTime), "dayjs") : void 0,
861
861
  getPopupContainer: (c) => c && c.parentNode ? c.parentNode : c,
862
862
  placeholder: t.placeholder || ["开始日期", "结束日期"],
863
863
  format: Be(t.valueFormat, t.showTime),
864
864
  showTime: t.showTime,
865
- onChange: (c) => Y(c, t)
866
- }, g), null);
865
+ onChange: (c) => H(c, t)
866
+ }, b), null);
867
867
  break;
868
868
  case "time":
869
- s = d(Pl, Q({
869
+ i = d(Pl, Q({
870
870
  style: {
871
871
  width: "100%"
872
872
  },
873
- value: i[t.name] ? Z(i[t.name], t.valueFormat || "HH:mm:ss") : void 0,
873
+ value: u[t.name] ? Z(u[t.name], t.valueFormat || "HH:mm:ss") : void 0,
874
874
  getPopupContainer: (c) => c && c.parentNode ? c.parentNode : c,
875
875
  placeholder: t.placeholder || "请选择",
876
876
  allowClear: t.allowClear || t.allowClear === !1 ? t.allowClear : !0,
877
877
  use12Hours: t.use12Hours,
878
878
  format: t.valueFormat || "HH:mm:ss",
879
- onChange: (c) => Y(c, t)
880
- }, g), null);
879
+ onChange: (c) => H(c, t)
880
+ }, b), null);
881
881
  break;
882
882
  }
883
- return t.valueType && ["select", "treeSelect"].includes(t.valueType) && (s = t.request ? de(t, C) : C), s;
883
+ return t.valueType && ["select", "treeSelect"].includes(t.valueType) && (i = t.request ? de(t, C) : C), i;
884
884
  }, oe = ({
885
885
  formItemStyle: t = {},
886
- item: s
886
+ item: i
887
887
  }) => {
888
- const y = ae(s) ? s.props?.label : s.label, g = (ae(s) ? s.props?.labelWidth : s.labelWidth) || k.value?.width, C = (ae(s) ? s.props?.labelAlign : s.labelAlign) || k.value?.align;
888
+ const y = ae(i) ? i.props?.label : i.label, b = (ae(i) ? i.props?.labelWidth : i.labelWidth) || K.value?.width, C = (ae(i) ? i.props?.labelAlign : i.labelAlign) || K.value?.align;
889
889
  return d("div", {
890
890
  class: O(`${e.prefixCls}-search-item`, o.value, v.value?.searchItem),
891
891
  style: {
892
892
  ...t,
893
- gap: k.value?.gap ? pe(k.value?.gap) : void 0,
894
- ...S.value?.searchItem || {}
893
+ gap: K.value?.gap ? pe(K.value?.gap) : void 0,
894
+ ...w.value?.searchItem || {}
895
895
  }
896
896
  }, [y && d("div", {
897
- class: O(`${e.prefixCls}-search-item-label`, k.value?.colon === !1 && `${e.prefixCls}-search-item-label-no-colon`, C && `${e.prefixCls}-search-item-label-${C}`),
897
+ class: O(`${e.prefixCls}-search-item-label`, K.value?.colon === !1 && `${e.prefixCls}-search-item-label-no-colon`, C && `${e.prefixCls}-search-item-label-${C}`),
898
898
  style: {
899
- width: g ? pe(g) : void 0
899
+ width: b ? pe(b) : void 0
900
900
  }
901
901
  }, [y]), d("div", {
902
902
  class: O(`${e.prefixCls}-search-item-children`)
903
- }, [ae(s) ? s : Re(s)])]);
903
+ }, [ae(i) ? i : Re(i)])]);
904
904
  }, Pe = () => {
905
905
  let t = n.default?.() || [];
906
906
  t.length === 1 && t[0].type === "template" && (t = t[0]?.children || []);
907
- const s = _l([...e.formCols, ...t.map((g) => ({
908
- ...g,
909
- order: g.props?.order || void 0
907
+ const i = _l([...e.formCols, ...t.map((b) => ({
908
+ ...b,
909
+ order: b.props?.order || void 0
910
910
  }))]), y = {
911
- width: `calc((100% - (${H.value - 1} * ${E.value})) / ${H.value})`
911
+ width: `calc((100% - (${M.value - 1} * ${B.value})) / ${M.value})`
912
912
  };
913
- return s.map((g, C) => {
914
- const c = K(C, H.value, y);
915
- return s.length < H.value || I.value ? d(we, null, [oe({
913
+ return i.map((b, C) => {
914
+ const c = q(C, M.value, y);
915
+ return i.length < M.value || R.value ? d(we, null, [oe({
916
916
  formItemStyle: c,
917
- item: g
918
- }), C === s.length - 1 && re({
917
+ item: b
918
+ }), C === i.length - 1 && re({
919
919
  formItemStyle: {
920
920
  flex: 1,
921
921
  justifyContent: "flex-end"
922
922
  },
923
- collapsed: I.value,
924
- collapseRender: !!I.value
925
- })]) : d(we, null, [C < H.value - 1 && oe({
923
+ collapsed: R.value,
924
+ collapseRender: !!R.value
925
+ })]) : d(we, null, [C < M.value - 1 && oe({
926
926
  formItemStyle: c,
927
- item: g
928
- }), C === H.value - 1 && (H.value - 1 === 0 || s.length === H.value) && oe({
927
+ item: b
928
+ }), C === M.value - 1 && (M.value - 1 === 0 || i.length === M.value) && oe({
929
929
  formItemStyle: c,
930
- item: g
931
- }), C === H.value - 1 && s.length >= H.value && re({
930
+ item: b
931
+ }), C === M.value - 1 && i.length >= M.value && re({
932
932
  formItemStyle: {
933
933
  flex: 1,
934
934
  justifyContent: "flex-end"
935
935
  },
936
936
  collapsed: !1,
937
- collapseRender: s.length !== H.value
937
+ collapseRender: i.length !== M.value
938
938
  })]);
939
939
  });
940
940
  };
@@ -942,11 +942,86 @@ const Gl = {
942
942
  const t = e.cardBordered && `${e.prefixCls}-search-border`;
943
943
  return a(d("div", {
944
944
  class: O(v.value?.search, o.value, `${e.prefixCls}-search`, t, o.value, f.value?.className),
945
- style: S.value?.search
945
+ style: w.value?.search
946
946
  }, [Pe()]));
947
947
  };
948
948
  }
949
- }), { useInjectContext: Et, provideContext: Ul } = Dt("scrollbar"), Te = 4, Jl = {
949
+ }), Ul = (e) => ({
950
+ [`${e.componentCls}-list-toolbar`]: {
951
+ lineHeight: 1,
952
+ "&-with-after": {
953
+ paddingBottom: e.margin
954
+ },
955
+ "&-container": {
956
+ display: "flex",
957
+ alignItems: "center",
958
+ justifyContent: "space-between",
959
+ gap: e.padding,
960
+ paddingBottom: e.padding,
961
+ "&-mobile": {
962
+ flexDirection: "column",
963
+ flexWrap: "wrap",
964
+ alignItems: "flex-start",
965
+ [`${e.componentCls}-left`]: {
966
+ flexWrap: "wrap",
967
+ maxWidth: "100%"
968
+ },
969
+ [`${e.componentCls}-right`]: {
970
+ width: "100%"
971
+ }
972
+ }
973
+ },
974
+ "&-title": {
975
+ display: "flex",
976
+ alignItems: "center",
977
+ justifyContent: "flex-start",
978
+ color: e.colorTextHeading,
979
+ fontWeight: "500",
980
+ fontSize: e.fontSizeLG
981
+ },
982
+ "&-left": {
983
+ display: "flex",
984
+ flexWrap: "wrap",
985
+ alignItems: "center",
986
+ gap: e.marginXS,
987
+ justifyContent: "flex-start",
988
+ [`${e.antCls}-tabs`]: {
989
+ width: "100%"
990
+ },
991
+ "&-has-tabs": {
992
+ overflow: "hidden"
993
+ }
994
+ },
995
+ "&-right": {
996
+ flex: 1,
997
+ display: "flex",
998
+ flexWrap: "wrap",
999
+ justifyContent: "flex-end",
1000
+ gap: e.marginSM,
1001
+ [`${e.componentCls}-actions`]: {
1002
+ display: "flex",
1003
+ alignItems: "center",
1004
+ gap: e.marginXS
1005
+ }
1006
+ },
1007
+ "&-setting-items": {
1008
+ display: "flex",
1009
+ gap: e.marginSM,
1010
+ lineHeight: "32px",
1011
+ alignItems: "center"
1012
+ },
1013
+ "&-setting-item": {
1014
+ color: e.colorIconHover,
1015
+ fontSize: e.fontSizeLG,
1016
+ cursor: "pointer",
1017
+ transition: `all ${e.motionDurationMid} ${e.motionEaseInOut}`,
1018
+ "> span": { display: "block", width: "100%", height: "100%" },
1019
+ "&:hover": {
1020
+ color: e.colorPrimary
1021
+ }
1022
+ }
1023
+ }
1024
+ }), { useInjectContext: Et, provideContext: Jl } = Dt("scrollbar"), Te = 4, Zl = {
950
1025
  vertical: {
951
1026
  offset: "offsetHeight",
952
1027
  scroll: "scrollTop",
@@ -967,10 +1042,10 @@ const Gl = {
967
1042
  client: "clientX",
968
1043
  direction: "left"
969
1044
  }
970
- }, Zl = ({ move: e, size: n, bar: l }) => ({
1045
+ }, ea = ({ move: e, size: n, bar: l }) => ({
971
1046
  [l.size]: n,
972
1047
  transform: `translate${l.axis}(${e}%)`
973
- }), ea = {
1048
+ }), ta = {
974
1049
  vertical: Boolean,
975
1050
  size: String,
976
1051
  move: Number,
@@ -984,7 +1059,7 @@ const Gl = {
984
1059
  default: () => ({})
985
1060
  }
986
1061
  }, tt = /* @__PURE__ */ ge({
987
- props: ea,
1062
+ props: ta,
988
1063
  setup(e) {
989
1064
  const {
990
1065
  tableHeaderHeight: n,
@@ -992,75 +1067,75 @@ const Gl = {
992
1067
  wrapElement: a,
993
1068
  scrollbarElement: o,
994
1069
  className: r
995
- } = Et(), u = w(), b = w(), f = w({}), $ = w(!1);
996
- let m = !1, S = !1, v = 0, i = 0, x = xl ? document.onselectstart : null;
997
- const h = T(() => Jl[e.vertical ? "vertical" : "horizontal"]), E = T(() => Zl({
1070
+ } = Et(), s = T(), h = T(), f = T({}), $ = T(!1);
1071
+ let m = !1, w = !1, v = 0, u = 0, S = xl ? document.onselectstart : null;
1072
+ const g = x(() => Zl[e.vertical ? "vertical" : "horizontal"]), B = x(() => ea({
998
1073
  size: e.size,
999
1074
  move: e.move,
1000
- bar: h.value
1001
- })), B = T(() => (
1075
+ bar: g.value
1076
+ })), N = x(() => (
1002
1077
  // offsetRatioX = original width of thumb / current width of thumb / ratioX
1003
1078
  // offsetRatioY = original height of thumb / current height of thumb / ratioY
1004
1079
  // instance height = wrap height - GAP
1005
- u.value[h.value.offset] ** 2 / a.value[h.value.scrollSize] / e.ratio / b.value[h.value.offset]
1006
- )), I = (z) => {
1080
+ s.value[g.value.offset] ** 2 / a.value[g.value.scrollSize] / e.ratio / h.value[g.value.offset]
1081
+ )), R = (z) => {
1007
1082
  if (z.stopPropagation(), z.ctrlKey || [1, 2].includes(z.button)) return;
1008
- window.getSelection()?.removeAllRanges(), H(z);
1009
- const j = z.currentTarget;
1010
- j && (f.value[h.value.axis] = j[h.value.offset] - (z[h.value.client] - j.getBoundingClientRect()[h.value.direction]));
1011
- }, N = (z) => {
1012
- if (!b.value || !u.value || !a.value) return;
1013
- const j = Math.abs(z.target.getBoundingClientRect()[h.value.direction] - z[h.value.client]), Y = b.value[h.value.offset] / 2, M = (j - Y) * 100 * B.value / u.value[h.value.offset];
1014
- a.value[h.value.scroll] = M * a.value[h.value.scrollSize] / 100;
1083
+ window.getSelection()?.removeAllRanges(), M(z);
1084
+ const L = z.currentTarget;
1085
+ L && (f.value[g.value.axis] = L[g.value.offset] - (z[g.value.client] - L.getBoundingClientRect()[g.value.direction]));
1086
+ }, X = (z) => {
1087
+ if (!h.value || !s.value || !a.value) return;
1088
+ const L = Math.abs(z.target.getBoundingClientRect()[g.value.direction] - z[g.value.client]), H = h.value[g.value.offset] / 2, W = (L - H) * 100 * N.value / s.value[g.value.offset];
1089
+ a.value[g.value.scroll] = W * a.value[g.value.scrollSize] / 100;
1015
1090
  };
1016
- function H(z) {
1017
- a.value && (z.stopImmediatePropagation(), m = !0, v = a.value.scrollHeight, i = a.value.scrollWidth, document.addEventListener("mousemove", k), document.addEventListener("mouseup", V), x = document.onselectstart, document.onselectstart = () => !1);
1091
+ function M(z) {
1092
+ a.value && (z.stopImmediatePropagation(), m = !0, v = a.value.scrollHeight, u = a.value.scrollWidth, document.addEventListener("mousemove", K), document.addEventListener("mouseup", k), S = document.onselectstart, document.onselectstart = () => !1);
1018
1093
  }
1019
- function k(z) {
1020
- if (!a.value || !u.value || !b.value || m === !1) return;
1021
- const j = f.value[h.value.axis];
1022
- if (!j) return;
1023
- const Y = (u.value.getBoundingClientRect()[h.value.direction] - z[h.value.client]) * -1, M = b.value[h.value.offset] - j, te = (Y - M) * 100 * B.value / u.value[h.value.offset];
1024
- h.value.scroll === "scrollLeft" ? a.value[h.value.scroll] = te * i / 100 : a.value[h.value.scroll] = te * v / 100;
1094
+ function K(z) {
1095
+ if (!a.value || !s.value || !h.value || m === !1) return;
1096
+ const L = f.value[g.value.axis];
1097
+ if (!L) return;
1098
+ const H = (s.value.getBoundingClientRect()[g.value.direction] - z[g.value.client]) * -1, W = h.value[g.value.offset] - L, te = (H - W) * 100 * N.value / s.value[g.value.offset];
1099
+ g.value.scroll === "scrollLeft" ? a.value[g.value.scroll] = te * u / 100 : a.value[g.value.scroll] = te * v / 100;
1025
1100
  }
1026
- function V() {
1027
- m = !1, f.value[h.value.axis] = 0, document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", V), K(), S && ($.value = !1);
1101
+ function k() {
1102
+ m = !1, f.value[g.value.axis] = 0, document.removeEventListener("mousemove", K), document.removeEventListener("mouseup", k), q(), w && ($.value = !1);
1028
1103
  }
1029
- const L = () => {
1030
- S = !1, $.value = !!e.size;
1104
+ const E = () => {
1105
+ w = !1, $.value = !!e.size;
1031
1106
  }, A = () => {
1032
- S = !0, $.value = m;
1107
+ w = !0, $.value = m;
1033
1108
  };
1034
1109
  Gt(() => {
1035
- K(), document.removeEventListener("mouseup", V);
1110
+ q(), document.removeEventListener("mouseup", k);
1036
1111
  });
1037
- function K() {
1038
- document.onselectstart !== x && (document.onselectstart = x);
1112
+ function q() {
1113
+ document.onselectstart !== S && (document.onselectstart = S);
1039
1114
  }
1040
- return mt(o, "mousemove", L), mt(o, "mouseleave", A), () => {
1041
- const z = h.value.key === "vertical" ? {
1115
+ return vt(o, "mousemove", E), vt(o, "mouseleave", A), () => {
1116
+ const z = g.value.key === "vertical" ? {
1042
1117
  height: `calc(100% - ${pe(n.value + 1)})`,
1043
1118
  top: pe(n.value + 1)
1044
1119
  } : {};
1045
1120
  return d("div", {
1046
- ref: u,
1121
+ ref: s,
1047
1122
  style: {
1048
1123
  ...e.barStyle,
1049
1124
  ...z
1050
1125
  },
1051
- class: [`${r}-bar`, "is-" + h.value.key, l.value],
1052
- onMousedown: N
1126
+ class: [`${r}-bar`, "is-" + g.value.key, l.value],
1127
+ onMousedown: X
1053
1128
  }, [d("div", {
1054
- ref: b,
1129
+ ref: h,
1055
1130
  class: `${r}-thumb ${l.value}`,
1056
- style: E.value,
1057
- onMousedown: I
1131
+ style: B.value,
1132
+ onMousedown: R
1058
1133
  }, null)]);
1059
1134
  };
1060
1135
  }
1061
1136
  });
1062
1137
  tt.inheritAttrs = !1;
1063
- const ta = {
1138
+ const la = {
1064
1139
  always: {
1065
1140
  type: Boolean,
1066
1141
  default: !0
@@ -1076,122 +1151,47 @@ const ta = {
1076
1151
  type: [Object],
1077
1152
  default: () => ({})
1078
1153
  }
1079
- }, la = /* @__PURE__ */ ge({
1154
+ }, aa = /* @__PURE__ */ ge({
1080
1155
  inheritAttrs: !1,
1081
- props: ta,
1156
+ props: la,
1082
1157
  setup(e, {
1083
1158
  expose: n
1084
1159
  }) {
1085
1160
  const {
1086
1161
  tableScrollState: l
1087
- } = Ke(), a = Et(), o = w(0), r = w(0), u = w(""), b = w(""), f = w(1), $ = w(1), m = (v) => {
1162
+ } = Ke(), a = Et(), o = T(0), r = T(0), s = T(""), h = T(""), f = T(1), $ = T(1), m = (v) => {
1088
1163
  if (v) {
1089
- const i = v.offsetHeight - Te, x = v.offsetWidth - Te;
1090
- r.value = v.scrollTop * 100 / i * f.value, o.value = v.scrollLeft * 100 / x * $.value;
1164
+ const u = v.offsetHeight - Te, S = v.offsetWidth - Te;
1165
+ r.value = v.scrollTop * 100 / u * f.value, o.value = v.scrollLeft * 100 / S * $.value;
1091
1166
  }
1092
- }, S = () => {
1167
+ }, w = () => {
1093
1168
  const v = a?.wrapElement;
1094
1169
  if (!v?.value) return;
1095
- const i = v.value.offsetHeight - Te, x = v.value.offsetWidth - Te, h = i ** 2 / v.value.scrollHeight, E = x ** 2 / v.value.scrollWidth, B = Math.max(h, e.minSize), I = Math.max(E, e.minSize);
1096
- f.value = h / (i - h) / (B / (i - B)), $.value = E / (x - E) / (I / (x - I)), b.value = B + Te < i ? `${B}px` : "", u.value = I + Te < x ? `${I}px` : "";
1170
+ const u = v.value.offsetHeight - Te, S = v.value.offsetWidth - Te, g = u ** 2 / v.value.scrollHeight, B = S ** 2 / v.value.scrollWidth, N = Math.max(g, e.minSize), R = Math.max(B, e.minSize);
1171
+ f.value = g / (u - g) / (N / (u - N)), $.value = B / (S - B) / (R / (S - R)), h.value = N + Te < u ? `${N}px` : "", s.value = R + Te < S ? `${R}px` : "";
1097
1172
  };
1098
1173
  return nt(() => {
1099
1174
  ot(() => {
1100
- S();
1175
+ w();
1101
1176
  });
1102
1177
  }), n({
1103
- update: S,
1178
+ update: w,
1104
1179
  handleScroll: m
1105
1180
  }), () => d(we, null, [d(tt, {
1106
1181
  move: o.value,
1107
1182
  barStyle: e.barStyle.x,
1108
1183
  ratio: $.value,
1109
- size: u.value,
1184
+ size: s.value,
1110
1185
  always: e.always
1111
1186
  }, null), !!l.value.y && d(tt, {
1112
1187
  move: r.value,
1113
1188
  barStyle: e.barStyle.y,
1114
1189
  ratio: f.value,
1115
- size: b.value,
1190
+ size: h.value,
1116
1191
  vertical: !0,
1117
1192
  always: e.always
1118
1193
  }, null)]);
1119
1194
  }
1120
- }), aa = (e) => ({
1121
- [`${e.componentCls}`]: {
1122
- lineHeight: 1,
1123
- "&-with-after": {
1124
- paddingBottom: e.margin
1125
- },
1126
- "&-container": {
1127
- display: "flex",
1128
- alignItems: "center",
1129
- justifyContent: "space-between",
1130
- gap: e.padding,
1131
- paddingBottom: e.padding,
1132
- "&-mobile": {
1133
- flexDirection: "column",
1134
- flexWrap: "wrap",
1135
- alignItems: "flex-start",
1136
- [`${e.componentCls}-left`]: {
1137
- flexWrap: "wrap",
1138
- maxWidth: "100%"
1139
- },
1140
- [`${e.componentCls}-right`]: {
1141
- width: "100%"
1142
- }
1143
- }
1144
- },
1145
- "&-title": {
1146
- display: "flex",
1147
- alignItems: "center",
1148
- justifyContent: "flex-start",
1149
- color: e.colorTextHeading,
1150
- fontWeight: "500",
1151
- fontSize: e.fontSizeLG
1152
- },
1153
- "&-left": {
1154
- display: "flex",
1155
- flexWrap: "wrap",
1156
- alignItems: "center",
1157
- gap: e.marginXS,
1158
- justifyContent: "flex-start",
1159
- [`${e.antCls}-tabs`]: {
1160
- width: "100%"
1161
- },
1162
- "&-has-tabs": {
1163
- overflow: "hidden"
1164
- }
1165
- },
1166
- "&-right": {
1167
- flex: 1,
1168
- display: "flex",
1169
- flexWrap: "wrap",
1170
- justifyContent: "flex-end",
1171
- gap: e.marginSM,
1172
- [`${e.componentCls}-actions`]: {
1173
- display: "flex",
1174
- alignItems: "center",
1175
- gap: e.marginXS
1176
- }
1177
- },
1178
- "&-setting-items": {
1179
- display: "flex",
1180
- gap: e.marginSM,
1181
- lineHeight: "32px",
1182
- alignItems: "center"
1183
- },
1184
- "&-setting-item": {
1185
- color: e.colorIconHover,
1186
- fontSize: e.fontSizeLG,
1187
- cursor: "pointer",
1188
- transition: `all ${e.motionDurationMid} ${e.motionEaseInOut}`,
1189
- "> span": { display: "block", width: "100%", height: "100%" },
1190
- "&:hover": {
1191
- color: e.colorPrimary
1192
- }
1193
- }
1194
- }
1195
1195
  });
1196
1196
  function na(e) {
1197
1197
  if (ae(e))
@@ -1229,92 +1229,90 @@ const Lt = /* @__PURE__ */ ge({
1229
1229
  actionsPlacement: String
1230
1230
  },
1231
1231
  setup(e) {
1232
- const {
1233
- wrapSSR: n,
1234
- hashId: l
1235
- } = st("ListToolBar", [aa], e.prefixCls), a = w(), {
1236
- height: o
1237
- } = Tl(a), r = it(), {
1238
- isMobile: u,
1239
- tableListToolsHeight: b,
1240
- classNames: f,
1241
- styles: $
1232
+ const n = T(), {
1233
+ height: l
1234
+ } = Tl(n), a = it(), {
1235
+ isMobile: o,
1236
+ tableListToolsHeight: r,
1237
+ classNames: s,
1238
+ styles: h,
1239
+ hashId: f
1242
1240
  } = Ke();
1243
- yt(() => {
1244
- b.value = o.value || 0;
1241
+ pt(() => {
1242
+ r.value = l.value || 0;
1245
1243
  });
1246
- const m = T(() => !!(e.headerTitleTip || e.headerTitle)), S = Ne(() => {
1244
+ const $ = x(() => !!(e.headerTitleTip || e.headerTitle)), m = Ne(() => {
1247
1245
  if (!Array.isArray(e.actions) || e.actions?.length < 1)
1248
1246
  return {
1249
1247
  left: null,
1250
1248
  right: null
1251
1249
  };
1252
- const B = e.actions.filter((N) => ae(N)).filter((N) => (N?.props?.placement || e.actionsPlacement) === "left"), I = e.actions.filter((N) => ae(N)).filter((N) => (N?.props?.placement || e.actionsPlacement) === "right");
1250
+ const B = e.actions.filter((R) => ae(R)).filter((R) => (R?.props?.placement || e.actionsPlacement) === "left"), N = e.actions.filter((R) => ae(R)).filter((R) => (R?.props?.placement || e.actionsPlacement) === "right");
1253
1251
  return {
1254
1252
  left: B.length ? d("div", {
1255
- class: `${e.prefixCls}-actions ${l.value}`
1253
+ class: `${e.prefixCls}-actions ${f.value}`
1256
1254
  }, [B]) : null,
1257
- right: I.length ? d("div", {
1258
- class: `${e.prefixCls}-actions ${l.value}`
1259
- }, [I]) : null
1255
+ right: N.length ? d("div", {
1256
+ class: `${e.prefixCls}-actions ${f.value}`
1257
+ }, [N]) : null
1260
1258
  };
1261
- }, [() => e.actions, () => e.actionsPlacement]), v = T(() => !!(e.headerTitleTip || e.headerTitle || S.value.left)), i = T(() => !!(e.settings?.length || S.value.right)), x = Ne(() => {
1262
- if (!v.value && i.value)
1259
+ }, [() => e.actions, () => e.actionsPlacement]), w = x(() => !!(e.headerTitleTip || e.headerTitle || m.value.left)), v = x(() => !!(e.settings?.length || m.value.right)), u = Ne(() => {
1260
+ if (!w.value && v.value)
1263
1261
  return d("div", {
1264
- class: `${e.prefixCls}-left ${l.value}`
1262
+ class: `${e.prefixCls}-left ${f.value}`
1265
1263
  }, null);
1266
- const B = S.value.left, I = O(`${e.prefixCls}-left ${l.value}`, f.value?.toolbarLeft), N = $.value?.toolbarLeft;
1267
- return m.value ? d("div", {
1268
- class: I,
1269
- style: N
1264
+ const B = m.value.left, N = O(`${e.prefixCls}-left ${f.value}`, s.value?.toolbarLeft), R = h.value?.toolbarLeft;
1265
+ return $.value ? d("div", {
1266
+ class: N,
1267
+ style: R
1270
1268
  }, [d("div", {
1271
- class: `${e.prefixCls}-title ${l.value}`
1269
+ class: `${e.prefixCls}-title ${f.value}`
1272
1270
  }, [e.headerTitle, e.headerTitleTip && d($e, {
1273
1271
  title: e.titleTipText
1274
1272
  }, {
1275
1273
  default: () => [Oe(e.headerTitleTip) && e.headerTitleTip ? d(tl, null, null) : e.headerTitleTip]
1276
1274
  })]), B]) : d("div", {
1277
- class: I,
1278
- style: N
1275
+ class: N,
1276
+ style: R
1279
1277
  }, [B]);
1280
- }, [() => v.value, () => i.value, () => m.value, () => e.prefixCls, () => e.headerTitle, () => e.titleTipText, () => e.headerTitleTip]), h = Ne(() => {
1281
- if (!i.value) return null;
1282
- const B = S.value.right;
1278
+ }, [() => w.value, () => v.value, () => $.value, () => e.prefixCls, () => e.headerTitle, () => e.titleTipText, () => e.headerTitleTip]), S = Ne(() => {
1279
+ if (!v.value) return null;
1280
+ const B = m.value.right;
1283
1281
  return d("div", {
1284
- class: O(`${e.prefixCls}-right ${l.value}`, f.value?.toolbarRight),
1282
+ class: O(`${e.prefixCls}-right ${f.value}`, s.value?.toolbarRight),
1285
1283
  style: {
1286
- alignItems: r.value.lg ? "center" : "flex-end",
1287
- flexDirection: r.value.lg ? "row" : "column",
1288
- ...$.value?.toolbarRight || {}
1284
+ alignItems: a.value.lg ? "center" : "flex-end",
1285
+ flexDirection: a.value.lg ? "row" : "column",
1286
+ ...h.value?.toolbarRight || {}
1289
1287
  }
1290
1288
  }, [B, e.settings?.length ? d("div", {
1291
- class: O(`${e.prefixCls}-setting-items`, l.value)
1292
- }, [e.settings.map((I, N) => {
1293
- const H = na(I);
1289
+ class: O(`${e.prefixCls}-setting-items`, f.value)
1290
+ }, [e.settings.map((N, R) => {
1291
+ const X = na(N);
1294
1292
  return d("div", {
1295
- key: N,
1296
- class: O(`${e.prefixCls}-setting-item`, l.value)
1297
- }, [H]);
1293
+ key: R,
1294
+ class: O(`${e.prefixCls}-setting-item`, f.value)
1295
+ }, [X]);
1298
1296
  })]) : null]);
1299
- }, [() => r.value, () => i.value, () => e.prefixCls, () => m.value, () => S.value, () => e.settings]), E = Ne(() => {
1300
- if (!i.value && !v.value) return null;
1297
+ }, [() => a.value, () => v.value, () => e.prefixCls, () => $.value, () => m.value, () => e.settings]), g = Ne(() => {
1298
+ if (!v.value && !w.value) return null;
1301
1299
  const B = {
1302
- [`${l.value}`]: !0,
1300
+ [`${f.value}`]: !0,
1303
1301
  [`${e.prefixCls}-container`]: !0,
1304
- [`${e.prefixCls}-container-mobile`]: u.value
1302
+ [`${e.prefixCls}-container-mobile`]: o.value
1305
1303
  };
1306
1304
  return d("div", {
1307
1305
  class: B
1308
- }, [x.value, h.value]);
1309
- }, [() => u.value, () => v.value, () => i.value, () => x.value, () => e.prefixCls, () => h.value]);
1310
- return () => n(d("div", {
1311
- ref: a,
1312
- class: O(`${e.prefixCls} ${l.value}`, e.listToolAfter && `${e.prefixCls}-with-after`, f.value?.toolbar),
1313
- style: $.value?.toolbar
1314
- }, [E.value, e.listToolAfter && d("div", {
1315
- class: O(`${e.prefixCls}-after ${l.value}`, f.value?.toolbarAfter),
1316
- style: $.value?.toolbarAfter
1317
- }, [e.listToolAfter])]));
1306
+ }, [u.value, S.value]);
1307
+ }, [() => o.value, () => w.value, () => v.value, () => u.value, () => e.prefixCls, () => S.value]);
1308
+ return () => d("div", {
1309
+ ref: n,
1310
+ class: O(`${e.prefixCls} ${f.value}`, e.listToolAfter && `${e.prefixCls}-with-after`, s.value?.toolbar),
1311
+ style: h.value?.toolbar
1312
+ }, [g.value, e.listToolAfter && d("div", {
1313
+ class: O(`${e.prefixCls}-after ${f.value}`, s.value?.toolbarAfter),
1314
+ style: h.value?.toolbarAfter
1315
+ }, [e.listToolAfter])]);
1318
1316
  }
1319
1317
  });
1320
1318
  Lt.inheritAttrs = !1;
@@ -1390,7 +1388,7 @@ const ra = {
1390
1388
  prefixCls: n,
1391
1389
  actions: o,
1392
1390
  actionsPlacement: e.actionsPlacement,
1393
- settings: R(a),
1391
+ settings: P(a),
1394
1392
  headerTitle: e.headerTitle,
1395
1393
  listToolAfter: e.listToolAfter,
1396
1394
  headerTitleTip: e.headerTitleTip,
@@ -1403,11 +1401,11 @@ function ca(e) {
1403
1401
  return Qt();
1404
1402
  }
1405
1403
  function da(e, n = !0, l) {
1406
- ca() ? Ct(e, l) : n ? e() : ot(e);
1404
+ ca() ? yt(e, l) : n ? e() : ot(e);
1407
1405
  }
1408
1406
  function fa({ scroll: e, columns: n, breakpoint: l, draggable: a, autoScroll: o, neverScroll: r }) {
1409
- const u = w([]);
1410
- q([
1407
+ const s = T([]);
1408
+ Y([
1411
1409
  () => e.value,
1412
1410
  () => n.value,
1413
1411
  () => l.value,
@@ -1417,65 +1415,65 @@ function fa({ scroll: e, columns: n, breakpoint: l, draggable: a, autoScroll: o,
1417
1415
  () => r.value
1418
1416
  ], () => {
1419
1417
  const v = $(ce(n.value));
1420
- qe(v, ce(u.value)) || (u.value = ee(v));
1418
+ qe(v, ce(s.value)) || (s.value = ee(v));
1421
1419
  }, {
1422
1420
  deep: !0,
1423
1421
  immediate: !0
1424
1422
  });
1425
- const b = T(() => f(R(u)));
1423
+ const h = x(() => f(P(s)));
1426
1424
  function f(v) {
1427
- return v.sort((i, x) => ul(i, x, "order", 0));
1425
+ return v.sort((u, S) => ul(u, S, "order", 0));
1428
1426
  }
1429
1427
  function $(v) {
1430
- return ee(v).map((i, x) => {
1431
- if (i.dataIndex === "action" || x === v.length - 1 ? i.resizable = !1 : i.resizable = Oe(i.resizable) ? i.resizable : !!(Ce(i.width) && R(a)), !i.width || R(r))
1432
- return i;
1433
- if (i.dataIndex === "action" && R(o))
1434
- if (R(e)?.x || !R(l))
1435
- i.width = i.width || 100, i.fixed = "right";
1428
+ return ee(v).map((u, S) => {
1429
+ if (u.dataIndex === "action" || S === v.length - 1 ? u.resizable = !1 : u.resizable = Oe(u.resizable) ? u.resizable : !!(Ce(u.width) && P(a)), !u.width || P(r))
1430
+ return u;
1431
+ if (u.dataIndex === "action" && P(o))
1432
+ if (P(e)?.x || !P(l))
1433
+ u.width = u.width || 100, u.fixed = "right";
1436
1434
  else {
1437
- const h = R(n).find((E) => E.dataIndex === i.dataIndex);
1438
- i.width = h?.width || "", i.fixed = h?.fixed;
1435
+ const g = P(n).find((B) => B.dataIndex === u.dataIndex);
1436
+ u.width = g?.width || "", u.fixed = g?.fixed;
1439
1437
  }
1440
- return i;
1438
+ return u;
1441
1439
  });
1442
1440
  }
1443
- function m(v, i) {
1444
- u.value = u.value.map((x) => (x.uuid === i.uuid && (x.width = v), x));
1441
+ function m(v, u) {
1442
+ s.value = s.value.map((S) => (S.uuid === u.uuid && (S.width = v), S));
1445
1443
  }
1446
- function S(v) {
1444
+ function w(v) {
1447
1445
  if (v.length <= 0) {
1448
- u.value = [];
1446
+ s.value = [];
1449
1447
  return;
1450
1448
  }
1451
- qe($(v), ce(u.value)) || (u.value = $(v));
1449
+ qe($(v), ce(s.value)) || (s.value = $(v));
1452
1450
  }
1453
1451
  return {
1454
1452
  breakpoint: l,
1455
- proColumns: b,
1456
- setColumns: S,
1453
+ proColumns: h,
1454
+ setColumns: w,
1457
1455
  resizeColumnWidth: m
1458
1456
  };
1459
1457
  }
1460
1458
  function va(e, n) {
1461
- const l = T(() => n), a = w(), o = w(e);
1459
+ const l = x(() => n), a = T(), o = T(e);
1462
1460
  function r() {
1463
1461
  a.value && (clearTimeout(a.value), a.value = null);
1464
1462
  }
1465
- async function u(...b) {
1466
- return l.value === 0 || l.value === void 0 ? o.value(...b) : (r(), new Promise(async (f) => {
1467
- b[0]?.immediate ? f(await o.value(...b)) : a.value = setTimeout(async () => {
1468
- f(await o.value(...b));
1463
+ async function s(...h) {
1464
+ return l.value === 0 || l.value === void 0 ? o.value(...h) : (r(), new Promise(async (f) => {
1465
+ h[0]?.immediate ? f(await o.value(...h)) : a.value = setTimeout(async () => {
1466
+ f(await o.value(...h));
1469
1467
  }, l.value);
1470
1468
  }));
1471
1469
  }
1472
1470
  return il(r), {
1473
1471
  cancel: r,
1474
- run: u
1472
+ run: s
1475
1473
  };
1476
1474
  }
1477
1475
  function ma(e) {
1478
- const n = T(() => e.rowKey), l = T(() => e.polling), a = T(() => e.debounceTime), o = T(() => e.dataSource), r = T(() => e.autoRequest);
1476
+ const n = x(() => e.rowKey), l = x(() => e.polling), a = x(() => e.debounceTime), o = x(() => e.dataSource), r = x(() => e.autoRequest);
1479
1477
  return {
1480
1478
  rowKey: n,
1481
1479
  polling: l,
@@ -1486,18 +1484,18 @@ function ma(e) {
1486
1484
  autoRequest: r
1487
1485
  };
1488
1486
  }
1489
- function ha({ rowKey: e, autoRequest: n, polling: l, request: a, postData: o, dataSource: r, waitRequest: u, debounceTime: b }, { params: f, columns: $, setLoading: m, setColumns: S, removeRowKeys: v, syncSelectedRows: i, defaultFormSearch: x, setPagination: h, pageInfo: E, onRequestError: B, onBeforeSearchSubmit: I, hasCustomRender: N }, H) {
1490
- const k = w(""), V = w(!1), L = w(!1), A = w([]), K = w(), z = w(null), j = (t = !1) => {
1491
- (V.value || t) && m(!1), de(!1);
1492
- }, Y = async (t = {}) => {
1493
- const { pagination: s = {}, filters: y = {}, sorter: g = {}, removeKeys: C = [], isPolling: c = !1, extra: fe } = t;
1487
+ function ha({ rowKey: e, autoRequest: n, polling: l, request: a, postData: o, dataSource: r, waitRequest: s, debounceTime: h }, { params: f, columns: $, setLoading: m, setColumns: w, removeRowKeys: v, syncSelectedRows: u, defaultFormSearch: S, setPagination: g, pageInfo: B, onRequestError: N, onBeforeSearchSubmit: R, hasCustomRender: X }, M) {
1488
+ const K = T(""), k = T(!1), E = T(!1), A = T([]), q = T(), z = T(null), L = (t = !1) => {
1489
+ (k.value || t) && m(!1), de(!1);
1490
+ }, H = async (t = {}) => {
1491
+ const { pagination: i = {}, filters: y = {}, sorter: b = {}, removeKeys: C = [], isPolling: c = !1, extra: fe } = t;
1494
1492
  if (!a || !ze(a))
1495
1493
  return r.value || [];
1496
- c ? de(!0) : m(!0), s && h(s);
1494
+ c ? de(!0) : m(!0), i && g(i);
1497
1495
  try {
1498
1496
  C.length && v(C);
1499
- const U = ne(g) ? Object.keys(g).length ? [g] : [] : g;
1500
- S(R($).map((Se) => {
1497
+ const U = ne(b) ? Object.keys(b).length ? [b] : [] : b;
1498
+ w(P($).map((Se) => {
1501
1499
  const xe = U.find((ie) => (ie?.columnKey || ie?.field) === Se.dataIndex);
1502
1500
  return {
1503
1501
  ...Se,
@@ -1505,13 +1503,13 @@ function ha({ rowKey: e, autoRequest: n, polling: l, request: a, postData: o, da
1505
1503
  };
1506
1504
  }));
1507
1505
  let Fe = {
1508
- ...ce(E),
1509
- current: fl(ce(E), C.length),
1510
- ...R(x),
1511
- ...R(f),
1506
+ ...ce(B),
1507
+ current: fl(ce(B), C.length),
1508
+ ...P(S),
1509
+ ...P(f),
1512
1510
  ...t.params
1513
1511
  };
1514
- I && ze(I) && (Fe = await I({
1512
+ R && ze(R) && (Fe = await R({
1515
1513
  params: Fe,
1516
1514
  sorter: U,
1517
1515
  filter: y,
@@ -1519,103 +1517,103 @@ function ha({ rowKey: e, autoRequest: n, polling: l, request: a, postData: o, da
1519
1517
  }));
1520
1518
  let ve = [];
1521
1519
  const ue = `table_request_${Pt().uuid(10)}`;
1522
- k.value = ue;
1520
+ K.value = ue;
1523
1521
  const Ie = await a?.({
1524
1522
  params: ee(ce(Fe)),
1525
1523
  sorter: U,
1526
1524
  filter: y,
1527
1525
  extra: fe
1528
1526
  });
1529
- if (k.value !== ue)
1527
+ if (K.value !== ue)
1530
1528
  return [];
1531
1529
  if (Ie) {
1532
1530
  const { success: Se = !0, data: xe = [] } = Ie;
1533
1531
  if (!Se)
1534
1532
  return [];
1535
- ve = typeof o == "function" ? await o?.(xe) : xe, i(ve);
1533
+ ve = typeof o == "function" ? await o?.(xe) : xe, u(ve);
1536
1534
  const ie = Ie.total || ve?.length || 0;
1537
- ie !== E.total && h({
1535
+ ie !== B.total && g({
1538
1536
  total: ie
1539
1537
  });
1540
- const ke = R(A).map((Ve) => De(Ve, "sortIndex"));
1541
- return qe(ve, ke) ? R(A) : (oe(ve), ve);
1538
+ const ke = P(A).map((Ve) => De(Ve, "sortIndex"));
1539
+ return qe(ve, ke) ? P(A) : (oe(ve), ve);
1542
1540
  } else
1543
1541
  return [];
1544
1542
  } catch (U) {
1545
- if (B === void 0)
1543
+ if (N === void 0)
1546
1544
  throw new Error(U);
1547
- A.value === void 0 && oe([]), B(U);
1545
+ A.value === void 0 && oe([]), N(U);
1548
1546
  } finally {
1549
- j(!0);
1547
+ L(!0);
1550
1548
  }
1551
1549
  return [];
1552
- }, M = va(async (t = {}) => {
1553
- if (K.value && clearTimeout(K.value), !a)
1550
+ }, W = va(async (t = {}) => {
1551
+ if (q.value && clearTimeout(q.value), !a)
1554
1552
  return;
1555
- const s = new AbortController();
1556
- z.value = s;
1553
+ const i = new AbortController();
1554
+ z.value = i;
1557
1555
  try {
1558
1556
  const y = await Promise.race([
1559
- Y(t),
1557
+ H(t),
1560
1558
  new Promise((C, c) => {
1561
1559
  z.value?.signal?.addEventListener?.("abort", () => {
1562
- c("aborted"), M.cancel(), j();
1560
+ c("aborted"), W.cancel(), L();
1563
1561
  });
1564
1562
  })
1565
1563
  ]);
1566
- if (s.signal.aborted)
1564
+ if (i.signal.aborted)
1567
1565
  return;
1568
- const g = cl(l.value, y);
1569
- return g && !V.value && (K.value = setTimeout(() => {
1570
- M.run({ ...t, isPolling: g });
1571
- }, Math.max(g, 2e3))), y;
1566
+ const b = cl(l.value, y);
1567
+ return b && !k.value && (q.value = setTimeout(() => {
1568
+ W.run({ ...t, isPolling: b });
1569
+ }, Math.max(b, 2e3))), y;
1572
1570
  } catch (y) {
1573
1571
  if (y === "aborted")
1574
1572
  return;
1575
1573
  throw y;
1576
1574
  }
1577
- }, b.value || 30), te = () => {
1578
- z.value?.abort(), M.cancel(), j();
1575
+ }, h.value || 30), te = () => {
1576
+ z.value?.abort(), W.cancel(), L();
1579
1577
  };
1580
1578
  nt(() => {
1581
- V.value = !1;
1579
+ k.value = !1;
1580
+ }), yt(() => {
1581
+ k.value = !1;
1582
1582
  }), Ct(() => {
1583
- V.value = !1;
1583
+ te(), k.value = !0, clearTimeout(q.value);
1584
1584
  }), St(() => {
1585
- te(), V.value = !0, clearTimeout(K.value);
1586
- }), xt(() => {
1587
- te(), V.value = !0, clearTimeout(K.value);
1588
- }), q(() => l.value, () => {
1589
- u.value || (l.value ? M.run({ isPolling: !0 }) : clearTimeout(K.value));
1590
- }, { immediate: !0 }), q(() => u.value, () => {
1591
- u.value ? m(!0) : M.run({ isPolling: !1 });
1592
- }, { immediate: !0 }), q(() => r.value, () => {
1585
+ te(), k.value = !0, clearTimeout(q.value);
1586
+ }), Y(() => l.value, () => {
1587
+ s.value || (l.value ? W.run({ isPolling: !0 }) : clearTimeout(q.value));
1588
+ }, { immediate: !0 }), Y(() => s.value, () => {
1589
+ s.value ? m(!0) : W.run({ isPolling: !1 });
1590
+ }, { immediate: !0 }), Y(() => r.value, () => {
1593
1591
  r.value && oe(r.value || []);
1594
- }, { deep: !0, immediate: !0 }), q(() => f.value, () => {
1595
- u.value || n.value && (h({ current: 1 }), se());
1596
- }, { deep: !0, immediate: !0 }), q(() => x.value, (t, s) => {
1597
- u.value || qe(t, s) || (h({ current: 1 }), se());
1592
+ }, { deep: !0, immediate: !0 }), Y(() => f.value, () => {
1593
+ s.value || n.value && (g({ current: 1 }), se());
1594
+ }, { deep: !0, immediate: !0 }), Y(() => S.value, (t, i) => {
1595
+ s.value || qe(t, i) || (g({ current: 1 }), se());
1598
1596
  }, { deep: !0, immediate: !0 });
1599
1597
  function se() {
1600
- a ? l.value || (te(), M.run({ isPolling: !1 })) : oe(r.value || []);
1598
+ a ? l.value || (te(), W.run({ isPolling: !1 })) : oe(r.value || []);
1601
1599
  }
1602
- const re = T(() => {
1603
- if (N.value)
1604
- return R(A);
1605
- const t = $.value.filter((s) => s.show || s.show === void 0);
1606
- return !R(A) || !t || t.length === 0 ? [] : R(A);
1607
- }), be = T(() => R(A).some((t) => J(t.children) && t.children.length > 0));
1600
+ const re = x(() => {
1601
+ if (X.value)
1602
+ return P(A);
1603
+ const t = $.value.filter((i) => i.show || i.show === void 0);
1604
+ return !P(A) || !t || t.length === 0 ? [] : P(A);
1605
+ }), be = x(() => P(A).some((t) => J(t.children) && t.children.length > 0));
1608
1606
  function de(t) {
1609
- L.value = t;
1607
+ E.value = t;
1610
1608
  }
1611
- function Re(t, s = {}, y = {}, g) {
1612
- te(), M.run({ pagination: t, filters: s, sorter: y, extra: g, isPolling: !1 });
1609
+ function Re(t, i = {}, y = {}, b) {
1610
+ te(), W.run({ pagination: t, filters: i, sorter: y, extra: b, isPolling: !1 });
1613
1611
  }
1614
1612
  function oe(t) {
1615
- const s = dl(ee(t), ce(E));
1616
- if (A.value = s, !a || !ze(a)) {
1617
- const y = s.length || 0;
1618
- y !== E.total && h({
1613
+ const i = dl(ee(t), ce(B));
1614
+ if (A.value = i, !a || !ze(a)) {
1615
+ const y = i.length || 0;
1616
+ y !== B.total && g({
1619
1617
  total: y
1620
1618
  });
1621
1619
  }
@@ -1625,7 +1623,7 @@ function ha({ rowKey: e, autoRequest: n, polling: l, request: a, postData: o, da
1625
1623
  isTreeDataRef: be,
1626
1624
  setTableDataList: oe,
1627
1625
  operateTableDataRow: (t) => {
1628
- const { key: s, row: y, value: g, type: C = "update" } = t, c = s ?? e.value, fe = y?.[c] ?? g;
1626
+ const { key: i, row: y, value: b, type: C = "update" } = t, c = i ?? e.value, fe = y?.[c] ?? b;
1629
1627
  switch (!y && C !== "delete" && console.warn("row is required"), C) {
1630
1628
  case "update":
1631
1629
  c && fe && y && (A.value = A.value.map((U) => fe === U[c] ? ye(U, y) : U));
@@ -1637,19 +1635,19 @@ function ha({ rowKey: e, autoRequest: n, polling: l, request: a, postData: o, da
1637
1635
  y && A.value.unshift(y);
1638
1636
  break;
1639
1637
  case "delete":
1640
- c && (A.value = A.value.filter((U) => g !== U[c]));
1638
+ c && (A.value = A.value.filter((U) => b !== U[c]));
1641
1639
  break;
1642
1640
  }
1643
1641
  },
1644
1642
  handleTableChange: Re,
1645
1643
  run: async (t) => {
1646
- u.value || (a ? await M.run({ ...t, isPolling: !1 }) : H("reload"));
1644
+ s.value || (a ? await W.run({ ...t, isPolling: !1 }) : M("reload"));
1647
1645
  }
1648
1646
  };
1649
1647
  }
1650
1648
  function ga(e) {
1651
- const n = w(l(e.loading.value));
1652
- q(() => e.loading.value, (o) => {
1649
+ const n = T(l(e.loading.value));
1650
+ Y(() => e.loading.value, (o) => {
1653
1651
  n.value = l(o, n.value);
1654
1652
  });
1655
1653
  function l(o, r = !1) {
@@ -1672,44 +1670,44 @@ function ba({
1672
1670
  pagination: e,
1673
1671
  pageItemRender: n
1674
1672
  }) {
1675
- const l = w({
1673
+ const l = T({
1676
1674
  ...Me
1677
1675
  }), a = at({
1678
1676
  current: Me.current,
1679
1677
  pageSize: Me.pageSize,
1680
1678
  total: 0
1681
1679
  });
1682
- q(() => e.value, () => {
1680
+ Y(() => e.value, () => {
1683
1681
  if (e.value === !1) {
1684
1682
  l.value = !1;
1685
1683
  return;
1686
1684
  }
1687
1685
  const r = ze(n) ? {
1688
1686
  itemRender: ({
1689
- page: b,
1687
+ page: h,
1690
1688
  type: f,
1691
1689
  originalElement: $
1692
1690
  }) => n ? n({
1693
- page: b,
1691
+ page: h,
1694
1692
  type: f,
1695
1693
  originalElement: $
1696
1694
  }) : null
1697
- } : null, u = {
1695
+ } : null, s = {
1698
1696
  ...Me,
1699
1697
  ...e.value || {},
1700
1698
  ...r || {}
1701
1699
  };
1702
- e.value?.showTotal || (u.showTotal = (b) => `共${b < u.pageSize ? 1 : Math.ceil(b / (u.pageSize || 10))}页 ${b}条记录`), l.value = ee(u), vl(a, (b) => {
1703
- Ce(u[b]) && (a[b] = u[b]);
1700
+ e.value?.showTotal || (s.showTotal = (h) => `共${h < s.pageSize ? 1 : Math.ceil(h / (s.pageSize || 10))}页 ${h}条记录`), l.value = ee(s), vl(a, (h) => {
1701
+ Ce(s[h]) && (a[h] = s[h]);
1704
1702
  });
1705
1703
  }, {
1706
1704
  deep: 1,
1707
1705
  immediate: !0
1708
1706
  });
1709
1707
  function o(r) {
1710
- l.value = ye(R(l), r);
1711
- for (const u in a)
1712
- r[u] && Ce(r[u]) && (a[u] = r[u]);
1708
+ l.value = ye(P(l), r);
1709
+ for (const s in a)
1710
+ r[s] && Ce(r[s]) && (a[s] = r[s]);
1713
1711
  }
1714
1712
  return {
1715
1713
  paginationInfo: l,
@@ -1718,21 +1716,21 @@ function ba({
1718
1716
  };
1719
1717
  }
1720
1718
  function pa(e, n) {
1721
- const l = w([]), a = w([]);
1722
- q(() => n.value?.selectedRows, (m) => {
1719
+ const l = T([]), a = T([]);
1720
+ Y(() => n.value?.selectedRows, (m) => {
1723
1721
  a.value = ee(m || []);
1724
1722
  }, {
1725
1723
  deep: !0,
1726
1724
  immediate: !0
1727
- }), q(() => n.value?.selectedRowKeys, (m) => {
1725
+ }), Y(() => n.value?.selectedRowKeys, (m) => {
1728
1726
  l.value = ml([...m || []]);
1729
1727
  }, {
1730
1728
  deep: !0,
1731
1729
  immediate: !0
1732
1730
  });
1733
- const o = (m, S) => {
1731
+ const o = (m, w) => {
1734
1732
  const v = n.value?.type || "checkbox";
1735
- e.value && (S ? m?.[e.value] && v === "checkbox" ? (l.value.push(m[e.value]), a.value.push(m)) : (l.value = [m[e.value]], a.value = [m]) : (l.value = l.value.filter((i) => i !== m[e.value]), a.value = a.value.filter((i) => i[e.value] !== m[e.value])));
1733
+ e.value && (w ? m?.[e.value] && v === "checkbox" ? (l.value.push(m[e.value]), a.value.push(m)) : (l.value = [m[e.value]], a.value = [m]) : (l.value = l.value.filter((u) => u !== m[e.value]), a.value = a.value.filter((u) => u[e.value] !== m[e.value])));
1736
1734
  }, r = () => {
1737
1735
  n.value && n.value?.onChange?.(l.value, a.value);
1738
1736
  };
@@ -1740,18 +1738,18 @@ function pa(e, n) {
1740
1738
  selectedKeys: l,
1741
1739
  selectedItems: a,
1742
1740
  selectRowKey: o,
1743
- selectAllRowKey: (m, S, v) => {
1744
- e.value && (m ? S.map((i) => (l.value.every((x) => x !== i?.[e.value]) && i?.[e.value] && (l.value.push(i[e.value]), a.value.push(i)), i)) : v.map((i) => (l.value.includes(i?.[e.value]) && (l.value = l.value.filter((x) => x !== i[e.value]), a.value = a.value.filter((x) => x[e.value] !== i[e.value])), i)));
1741
+ selectAllRowKey: (m, w, v) => {
1742
+ e.value && (m ? w.map((u) => (l.value.every((S) => S !== u?.[e.value]) && u?.[e.value] && (l.value.push(u[e.value]), a.value.push(u)), u)) : v.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)));
1745
1743
  },
1746
1744
  removeRowKeys: (m) => {
1747
- l.value = l.value.filter((S) => !m.includes(S)), a.value = a.value.filter((S) => !m.includes(S?.[e.value || ""])), r();
1745
+ l.value = l.value.filter((w) => !m.includes(w)), a.value = a.value.filter((w) => !m.includes(w?.[e.value || ""])), r();
1748
1746
  },
1749
1747
  changeRowKey: r,
1750
1748
  syncSelectedRows: (m) => {
1751
1749
  if (e.value && l.value.length !== a.value.length) {
1752
- const S = a.value.map((i) => i[e.value]), v = l.value.filter((i) => !S.includes(i));
1753
- m.forEach((i) => {
1754
- v.includes(i[e.value]) && a.value.push(ee(i));
1750
+ const w = a.value.map((u) => u[e.value]), v = l.value.filter((u) => !w.includes(u));
1751
+ m.forEach((u) => {
1752
+ v.includes(u[e.value]) && a.value.push(ee(u));
1755
1753
  });
1756
1754
  }
1757
1755
  },
@@ -1814,12 +1812,12 @@ function Ae(e, n) {
1814
1812
  n(f);
1815
1813
  }), l.observe(f), n(f));
1816
1814
  }
1817
- function u() {
1815
+ function s() {
1818
1816
  return typeof e == "string" ? document.querySelector(e) : e();
1819
1817
  }
1820
- const b = u();
1821
- return b ? (r(b), o) : (a = new MutationObserver(() => {
1822
- const f = u();
1818
+ const h = s();
1819
+ return h ? (r(h), o) : (a = new MutationObserver(() => {
1820
+ const f = s();
1823
1821
  f && (a.disconnect(), r(f));
1824
1822
  }), a.observe(document.body, {
1825
1823
  childList: !0,
@@ -1827,71 +1825,71 @@ function Ae(e, n) {
1827
1825
  }), o);
1828
1826
  }
1829
1827
  function Ta({ fitPage: e, hashId: n, scroll: l, baseClassName: a }) {
1830
- const o = w(), r = w(), u = w(), b = w(), f = w(), $ = w(), m = w(0);
1831
- let S, v, i, x;
1828
+ const o = T(), r = T(), s = T(), h = T(), f = T(), $ = T(), m = T(0);
1829
+ let w, v, u, S;
1832
1830
  sl(() => {
1833
- S = Ae(() => r.value?.querySelector(".ant-pagination"), (L) => {
1834
- L && (u.value = L);
1835
- }), i = Ae(() => r.value?.querySelector(".ant-table-header"), (L) => {
1836
- L && (b.value = L);
1837
- }), x = Ae(() => r.value?.querySelector(".ant-table-body>table"), (L) => {
1838
- L && ($.value = L);
1831
+ w = Ae(() => r.value?.querySelector(".ant-pagination"), (E) => {
1832
+ E && (s.value = E);
1833
+ }), u = Ae(() => r.value?.querySelector(".ant-table-header"), (E) => {
1834
+ E && (h.value = E);
1835
+ }), S = Ae(() => r.value?.querySelector(".ant-table-body>table"), (E) => {
1836
+ E && ($.value = E);
1839
1837
  });
1840
- }), q(() => l.value, (L) => {
1841
- v && v(), L.y || e.value ? v = Ae(() => r.value?.querySelector(".ant-table-body"), (A) => {
1838
+ }), Y(() => l.value, (E) => {
1839
+ v && v(), E.y || e.value ? v = Ae(() => r.value?.querySelector(".ant-table-body"), (A) => {
1842
1840
  A && (f.value = A);
1843
- }) : L.x && (v = Ae(() => r.value?.querySelector(".ant-table-content"), (A) => {
1841
+ }) : E.x && (v = Ae(() => r.value?.querySelector(".ant-table-content"), (A) => {
1844
1842
  A && (f.value = A);
1845
1843
  }));
1846
1844
  }, { immediate: !0 });
1847
- const { height: h } = We(r), { height: E } = We(b), { height: B } = We($), { height: I } = We(u), N = T(() => {
1845
+ const { height: g } = We(r), { height: B } = We(h), { height: N } = We($), { height: R } = We(s), X = x(() => {
1848
1846
  if (!r.value || !e.value)
1849
1847
  return 0;
1850
- let L = 0;
1851
- if (u.value) {
1852
- const K = getComputedStyle(u.value), z = Number.parseFloat(K.marginTop) || 0, j = Number.parseFloat(K.marginBottom) || 0;
1853
- L = z + j;
1848
+ let E = 0;
1849
+ if (s.value) {
1850
+ const q = getComputedStyle(s.value), z = Number.parseFloat(q.marginTop) || 0, L = Number.parseFloat(q.marginBottom) || 0;
1851
+ E = z + L;
1854
1852
  }
1855
- return h.value - E.value - m.value - (I.value + L);
1856
- }), H = T(() => N.value && e.value ? B.value <= N.value : !1);
1857
- q([
1853
+ return g.value - B.value - m.value - (R.value + E);
1854
+ }), M = x(() => X.value && e.value ? N.value <= X.value : !1);
1855
+ Y([
1858
1856
  () => f.value,
1859
- () => N.value
1857
+ () => X.value
1860
1858
  ], () => {
1861
- f.value && e.value && f.value.setAttribute("style", `height: ${N.value}px;`);
1859
+ f.value && e.value && f.value.setAttribute("style", `height: ${X.value}px;`);
1862
1860
  }), wl(f, {
1863
1861
  onScroll: () => {
1864
1862
  f.value && o.value?.handleScroll(f.value);
1865
1863
  }
1866
1864
  });
1867
- const k = () => {
1865
+ const K = () => {
1868
1866
  o.value?.update();
1869
1867
  };
1870
- $l(f, k), nt(() => {
1868
+ $l(f, K), nt(() => {
1871
1869
  ot(() => {
1872
- k();
1870
+ K();
1873
1871
  });
1874
- }), Ut(() => k());
1875
- function V() {
1876
- S && S(), v && v(), i && i(), x && x();
1872
+ }), Ut(() => K());
1873
+ function k() {
1874
+ w && w(), v && v(), u && u(), S && S();
1877
1875
  }
1878
- return St(() => {
1879
- V();
1880
- }), xt(() => {
1881
- V && V();
1882
- }), Ul({
1876
+ return Ct(() => {
1877
+ k();
1878
+ }), St(() => {
1879
+ k && k();
1880
+ }), Jl({
1883
1881
  className: `${a}-scroll`,
1884
1882
  hashId: n,
1885
- tableScrollYHeight: N,
1886
- tableHeaderHeight: E,
1883
+ tableScrollYHeight: X,
1884
+ tableHeaderHeight: B,
1887
1885
  scrollbarElement: r,
1888
1886
  wrapElement: f
1889
1887
  }), {
1890
1888
  barRef: o,
1891
1889
  tableCardEl: r,
1892
1890
  tableScrollEl: f,
1893
- tableOverHidden: H,
1894
- tableScrollYHeight: N,
1891
+ tableOverHidden: M,
1892
+ tableScrollYHeight: X,
1895
1893
  tableListToolsHeight: m
1896
1894
  };
1897
1895
  }
@@ -1899,46 +1897,46 @@ function wa(e) {
1899
1897
  const n = {};
1900
1898
  return e.forEach((l) => {
1901
1899
  let a = l.initialValue;
1902
- const o = ["select", "number"], r = ["date", "time", "dateRange"], u = ["treeSelect", "numberRange"];
1903
- l.valueType ? !a && o.includes(l.valueType) ? a = void 0 : !a && r.includes(l.valueType) ? a = null : !a && u.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);
1900
+ const o = ["select", "number"], r = ["date", "time", "dateRange"], s = ["treeSelect", "numberRange"];
1901
+ 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);
1904
1902
  }), n;
1905
1903
  }
1906
1904
  function $a({ searchMap: e, columns: n }) {
1907
- const l = w([]), a = w({});
1905
+ const l = T([]), a = T({});
1908
1906
  function o(r) {
1909
- r.forEach((b) => {
1910
- l.value.some((f) => f.name === b.name) ? l.value = l.value.map((f) => f.name === b.name ? { ...f, ...b } : f) : l.value.push(b);
1907
+ r.forEach((h) => {
1908
+ l.value.some((f) => f.name === h.name) ? l.value = l.value.map((f) => f.name === h.name ? { ...f, ...h } : f) : l.value.push(h);
1911
1909
  });
1912
- const u = wa(r);
1913
- a.value = { ...a.value, ...u };
1910
+ const s = wa(r);
1911
+ a.value = { ...a.value, ...s };
1914
1912
  }
1915
- return q(() => e.value, () => {
1913
+ return Y(() => e.value, () => {
1916
1914
  const r = [];
1917
- e.value?.forEach((u) => r.push(u)), o(r);
1918
- }, { deep: !0, immediate: !0 }), q(() => n.value, () => {
1915
+ e.value?.forEach((s) => r.push(s)), o(r);
1916
+ }, { deep: !0, immediate: !0 }), Y(() => n.value, () => {
1919
1917
  const r = [];
1920
- n.value && n.value?.length && n.value.forEach((u) => {
1921
- u.searchConfig && r.push(u.searchConfig);
1918
+ n.value && n.value?.length && n.value.forEach((s) => {
1919
+ s.searchConfig && r.push(s.searchConfig);
1922
1920
  }), o(r);
1923
1921
  }, { deep: !0, immediate: !0 }), { formCols: l, defaultFormSearch: a };
1924
1922
  }
1925
- function Ra({ scroll: e, columns: n, autoScroll: l, modalScroll: a, neverScroll: o, rowSelection: r, screens: u, innerWidth: b, scrollBreakpoint: f }) {
1926
- const $ = T(() => f.value ? Ce(f.value) ? b.value > f.value : Ft(f.value) ? u.value?.[f.value] : u.value?.xl : u.value?.xl), m = T(() => {
1923
+ function Ra({ scroll: e, columns: n, autoScroll: l, modalScroll: a, neverScroll: o, rowSelection: r, screens: s, innerWidth: h, scrollBreakpoint: f }) {
1924
+ const $ = x(() => f.value ? Ce(f.value) ? h.value > f.value : Ft(f.value) ? s.value?.[f.value] : s.value?.xl : s.value?.xl), m = x(() => {
1927
1925
  let v = 0;
1928
- const i = R(r) ? 60 : 0, x = 150, h = ee(R(n));
1929
- h.forEach((I) => {
1930
- v += Number.parseInt(String(I.width)) || 0;
1926
+ const u = P(r) ? 60 : 0, S = 150, g = ee(P(n));
1927
+ g.forEach((R) => {
1928
+ v += Number.parseInt(String(R.width)) || 0;
1931
1929
  });
1932
- const B = h.filter((I) => !Reflect.has(I, "width")).length;
1933
- return B !== 0 && (v += B * x), i && (v += i), v;
1930
+ const N = g.filter((R) => !Reflect.has(R, "width")).length;
1931
+ return N !== 0 && (v += N * S), u && (v += u), v;
1934
1932
  });
1935
- return { proScroll: T(() => o.value ? {} : e.value && Rt(e.value).length ? R(e) : a.value ? {
1936
- y: e.value?.y || (u.value?.xl ? 400 : 235)
1933
+ return { proScroll: x(() => o.value ? {} : e.value && Rt(e.value).length ? P(e) : a.value ? {
1934
+ y: e.value?.y || (s.value?.xl ? 400 : 235)
1937
1935
  } : l.value ? $.value ? {} : Oe($.value) ? { x: m.value } : {} : {}), breakpoint: $ };
1938
1936
  }
1939
1937
  function Pa(e) {
1940
- const n = w(e.size.value || "middle");
1941
- q(() => e.size.value, (a) => n.value = a);
1938
+ const n = T(e.size.value || "middle");
1939
+ Y(() => e.size.value, (a) => n.value = a);
1942
1940
  function l(a) {
1943
1941
  n.value = a || n.value;
1944
1942
  }
@@ -1978,7 +1976,7 @@ const Fa = (e) => ({
1978
1976
  height: 0
1979
1977
  }
1980
1978
  }), Ia = (e) => {
1981
- const n = new gt(e.colorText).setAlpha(0.2).toRgbString(), l = new gt(e.colorText).setAlpha(0.4).toRgbString();
1979
+ const n = new ht(e.colorText).setAlpha(0.2).toRgbString(), l = new ht(e.colorText).setAlpha(0.4).toRgbString();
1982
1980
  return {
1983
1981
  [e.componentCls]: {
1984
1982
  [`${e.antCls}-table-container`]: {
@@ -2257,17 +2255,17 @@ const za = Nt.PRESENTED_IMAGE_SIMPLE, Da = Bl.useToken, et = /* @__PURE__ */ ge(
2257
2255
  isPor: !0
2258
2256
  }), {
2259
2257
  wrapSSR: r,
2260
- hashId: u
2261
- } = st("ProBaseTable", [Aa, Ia, Ba, Fa], o), {
2262
- token: b
2258
+ hashId: s
2259
+ } = Tt("ProBaseTable", [Aa, Ia, Ba, Fa, Ul], o), {
2260
+ token: h
2263
2261
  } = Da(), f = rl(), $ = it(), {
2264
2262
  width: m
2265
- } = Rl(), S = w(!1), v = Tt(), i = w(), x = w(), h = w(e.waitRequest);
2266
- yt(() => h.value = e.waitRequest);
2263
+ } = Rl(), w = T(!1), v = xt(), u = T(), S = T(), g = T(e.waitRequest);
2264
+ pt(() => g.value = e.waitRequest);
2267
2265
  const {
2268
- toggle: E,
2269
- isFullscreen: B
2270
- } = It(i), I = T(() => !$.value.xl), N = T(() => (e.virtualScroll && El(!e.scroll?.y, "参数scroll的Y值不能为空!"), !!(e.scroll?.y && e.virtualScroll))), H = T(() => {
2266
+ toggle: B,
2267
+ isFullscreen: N
2268
+ } = It(u), R = x(() => !$.value.xl), X = x(() => (e.virtualScroll && El(!e.scroll?.y, "参数scroll的Y值不能为空!"), !!(e.scroll?.y && e.virtualScroll))), M = x(() => {
2271
2269
  if (e.form === !1) return !1;
2272
2270
  const p = {
2273
2271
  actions: {
@@ -2283,26 +2281,26 @@ const za = Nt.PRESENTED_IMAGE_SIMPLE, Da = Bl.useToken, et = /* @__PURE__ */ ge(
2283
2281
  searchText: "查询"
2284
2282
  };
2285
2283
  return ne(e.form) ? ye(p, e.form) : p;
2286
- }), k = T(() => H.value === !1 ? {} : H.value), V = T(() => k.value?.autoRequest ?? e.autoRequest), L = T(() => k.value?.actions), A = T(() => {
2287
- const p = ee(e.columns || []).filter((P) => P.key || P.dataIndex).filter((P) => P.show ?? !0).map((P) => {
2288
- const F = P.key || P.dataIndex;
2289
- return P.key = F, P.dataIndex = F, P.align = P.align || e.align, P.uuid = P.uuid || Pt().uuid(15), P;
2284
+ }), K = x(() => M.value === !1 ? {} : M.value), k = x(() => K.value?.autoRequest ?? e.autoRequest), E = x(() => K.value?.actions), A = x(() => {
2285
+ const p = ee(e.columns || []).filter((F) => F.key || F.dataIndex).filter((F) => F.show ?? !0).map((F) => {
2286
+ const I = F.key || F.dataIndex;
2287
+ return F.key = I, F.dataIndex = I, F.align = F.align || e.align, F.uuid = F.uuid || Pt().uuid(15), F;
2290
2288
  });
2291
2289
  return hl(p, {
2292
2290
  align: e.align || "left",
2293
2291
  showIndex: e.showIndex ?? !1
2294
2292
  });
2295
- }), [K, z] = ga({
2296
- loading: X(e, "loading")
2297
- }), [j, Y] = Pa({
2298
- size: X(e, "size")
2293
+ }), [q, z] = ga({
2294
+ loading: V(e, "loading")
2295
+ }), [L, H] = Pa({
2296
+ size: V(e, "size")
2299
2297
  }), {
2300
- paginationInfo: M,
2298
+ paginationInfo: W,
2301
2299
  requestPagination: te,
2302
2300
  setPagination: se
2303
2301
  } = ba({
2304
- pagination: X(e, "pagination"),
2305
- pageItemRender: vt({
2302
+ pagination: V(e, "pagination"),
2303
+ pageItemRender: ft({
2306
2304
  slots: l,
2307
2305
  props: e,
2308
2306
  key: "pageItemRender"
@@ -2311,12 +2309,12 @@ const za = Nt.PRESENTED_IMAGE_SIMPLE, Da = Bl.useToken, et = /* @__PURE__ */ ge(
2311
2309
  proScroll: re,
2312
2310
  breakpoint: be
2313
2311
  } = Ra({
2314
- scroll: X(e, "scroll"),
2315
- autoScroll: X(e, "autoScroll"),
2316
- modalScroll: X(e, "modalScroll"),
2317
- neverScroll: X(e, "neverScroll"),
2318
- rowSelection: X(e, "rowSelection"),
2319
- scrollBreakpoint: X(e, "scrollBreakpoint"),
2312
+ scroll: V(e, "scroll"),
2313
+ autoScroll: V(e, "autoScroll"),
2314
+ modalScroll: V(e, "modalScroll"),
2315
+ neverScroll: V(e, "neverScroll"),
2316
+ rowSelection: V(e, "rowSelection"),
2317
+ scrollBreakpoint: V(e, "scrollBreakpoint"),
2320
2318
  innerWidth: m,
2321
2319
  columns: A,
2322
2320
  screens: $
@@ -2325,9 +2323,9 @@ const za = Nt.PRESENTED_IMAGE_SIMPLE, Da = Bl.useToken, et = /* @__PURE__ */ ge(
2325
2323
  setColumns: Re,
2326
2324
  resizeColumnWidth: oe
2327
2325
  } = fa({
2328
- draggable: X(e, "draggable"),
2329
- neverScroll: X(e, "neverScroll"),
2330
- autoScroll: X(e, "autoScroll"),
2326
+ draggable: V(e, "draggable"),
2327
+ neverScroll: V(e, "neverScroll"),
2328
+ autoScroll: V(e, "autoScroll"),
2331
2329
  breakpoint: be,
2332
2330
  scroll: re,
2333
2331
  columns: A
@@ -2335,18 +2333,18 @@ const za = Nt.PRESENTED_IMAGE_SIMPLE, Da = Bl.useToken, et = /* @__PURE__ */ ge(
2335
2333
  formCols: Pe,
2336
2334
  defaultFormSearch: t
2337
2335
  } = $a({
2338
- searchMap: X(e, "searchMap"),
2336
+ searchMap: V(e, "searchMap"),
2339
2337
  columns: A
2340
2338
  }), {
2341
- selectedKeys: s,
2339
+ selectedKeys: i,
2342
2340
  selectedItems: y,
2343
- changeRowKey: g,
2341
+ changeRowKey: b,
2344
2342
  selectRowKey: C,
2345
2343
  selectAllRowKey: c,
2346
2344
  syncSelectedRows: fe,
2347
2345
  removeRowKeys: U,
2348
2346
  clearAllRowKeys: Fe
2349
- } = pa(X(e, "rowKey"), X(e, "rowSelection")), ve = ma(e), {
2347
+ } = pa(V(e, "rowKey"), V(e, "rowSelection")), ve = ma(e), {
2350
2348
  run: ue,
2351
2349
  setTableDataList: Ie,
2352
2350
  operateTableDataRow: Se,
@@ -2355,9 +2353,9 @@ const za = Nt.PRESENTED_IMAGE_SIMPLE, Da = Bl.useToken, et = /* @__PURE__ */ ge(
2355
2353
  handleTableChange: ke
2356
2354
  } = ha({
2357
2355
  ...ve,
2358
- waitRequest: h
2356
+ waitRequest: g
2359
2357
  }, {
2360
- loading: K,
2358
+ loading: q,
2361
2359
  pageInfo: te,
2362
2360
  setPagination: se,
2363
2361
  removeRowKeys: U,
@@ -2366,92 +2364,92 @@ const za = Nt.PRESENTED_IMAGE_SIMPLE, Da = Bl.useToken, et = /* @__PURE__ */ ge(
2366
2364
  setColumns: Re,
2367
2365
  columns: de,
2368
2366
  defaultFormSearch: t,
2369
- params: X(e, "params"),
2367
+ params: V(e, "params"),
2370
2368
  onRequestError: e.onRequestError,
2371
2369
  onBeforeSearchSubmit: e.onBeforeSearchSubmit,
2372
- hasCustomRender: T(() => Qe(e.customRender || l?.customRender))
2370
+ hasCustomRender: x(() => Qe(e.customRender || l?.customRender))
2373
2371
  }, n), {
2374
2372
  tableCardEl: Ve,
2375
2373
  tableScrollYHeight: Ee,
2376
2374
  tableListToolsHeight: jt,
2377
- tableScrollEl: rt,
2375
+ tableScrollEl: st,
2378
2376
  tableOverHidden: Ht,
2379
2377
  barRef: Wt
2380
2378
  } = Ta({
2381
- hashId: u,
2379
+ hashId: s,
2382
2380
  scroll: re,
2383
2381
  baseClassName: o,
2384
- fitPage: X(e, "fitPage")
2385
- }), ut = T(() => {
2382
+ fitPage: V(e, "fitPage")
2383
+ }), rt = x(() => {
2386
2384
  const p = Ee.value && e.fitPage ? {
2387
2385
  y: Ee.value
2388
2386
  } : {};
2389
2387
  return {
2390
- ...R(re),
2388
+ ...P(re),
2391
2389
  ...p
2392
2390
  };
2393
- }), Yt = T(() => ({
2394
- size: R(j),
2395
- scroll: R(ut),
2396
- dataSource: R(ie),
2397
- pagination: R(M),
2398
- virtualScroll: N.value,
2399
- columns: R(de).filter((p) => p.show || p.show === void 0)
2400
- })), ct = T(() => {
2391
+ }), Yt = x(() => ({
2392
+ size: P(L),
2393
+ scroll: P(rt),
2394
+ dataSource: P(ie),
2395
+ pagination: P(W),
2396
+ virtualScroll: X.value,
2397
+ columns: P(de).filter((p) => p.show || p.show === void 0)
2398
+ })), ut = x(() => {
2401
2399
  const p = ne(e.loading) ? De(e.loading, "spinning") : {};
2402
2400
  return !p.indicator && v?.indicator?.value && (p.indicator = v?.indicator?.value), {
2403
- spinning: e.showLoading ? Qe(K.value) : !1,
2401
+ spinning: e.showLoading ? Qe(q.value) : !1,
2404
2402
  ...p
2405
2403
  };
2406
- }), Mt = T(() => {
2404
+ }), Mt = x(() => {
2407
2405
  let p;
2408
- const P = e.direction === "rtl" ? "bottomLeft" : "right", F = R(M)?.position;
2409
- if (F !== null && Array.isArray(F)) {
2410
- const D = F.find((le) => le.includes("top")), W = F.find((le) => le.includes("bottom")), _ = F.every((le) => `${le}` == "none");
2411
- !D && !W && !_ && (p = P), D && (p = D.toLowerCase().replace("top", "")), W && (p = W.toLowerCase().replace("bottom", ""));
2406
+ const F = e.direction === "rtl" ? "bottomLeft" : "right", I = P(W)?.position;
2407
+ if (I !== null && Array.isArray(I)) {
2408
+ const D = I.find((le) => le.includes("top")), j = I.find((le) => le.includes("bottom")), _ = I.every((le) => `${le}` == "none");
2409
+ !D && !j && !_ && (p = F), D && (p = D.toLowerCase().replace("top", "")), j && (p = j.toLowerCase().replace("bottom", ""));
2412
2410
  } else
2413
- p = P;
2411
+ p = F;
2414
2412
  return p;
2415
2413
  });
2416
2414
  da(() => {
2417
- S.value ? e.keepAliveReload && ue({
2415
+ w.value ? e.keepAliveReload && ue({
2418
2416
  params: e.params
2419
- }) : S.value = !0;
2417
+ }) : w.value = !0;
2420
2418
  });
2421
- const qt = async (p, P) => {
2422
- if (V.value) {
2419
+ const qt = async (p, F) => {
2420
+ if (k.value) {
2423
2421
  ue({
2424
2422
  params: p
2425
2423
  });
2426
2424
  return;
2427
2425
  }
2428
- P === "reset" ? (n("reset", p), e.request && L.value?.resetReload && ue({
2426
+ F === "reset" ? (n("reset", p), e.request && E.value?.resetReload && ue({
2429
2427
  params: p
2430
2428
  })) : e.request && (n("submit", p), ue({
2431
2429
  params: p
2432
2430
  }));
2433
- }, Xe = (p, P, F, D) => {
2434
- ke(p, P, F, D), n("change", p, P, F, D);
2431
+ }, Xe = (p, F, I, D) => {
2432
+ ke(p, F, I, D), n("change", p, F, I, D);
2435
2433
  }, Kt = (p) => {
2436
2434
  n("expandedRowsChange", p);
2437
- }, kt = (p, P) => {
2438
- n("expand", p, P);
2439
- }, Vt = (p, P) => oe(p, P), Xt = (p, P, F) => {
2435
+ }, kt = (p, F) => {
2436
+ n("expand", p, F);
2437
+ }, Vt = (p, F) => oe(p, F), Xt = (p, F, I) => {
2440
2438
  let D = p;
2441
- if (P) {
2442
- const W = J(p) ? typeof p?.[0]?.children == "string" ? p?.[0]?.children : "" : p ? p.toString() : "", _ = F.tooltip === !1 ? {} : F.tooltip, le = F.tooltip === !1 ? 1 : Ce(_?.hiddenLine) && _?.hiddenLine > 0 ? _?.hiddenLine : 1, G = F.tooltip === !1 ? 0 : Ce(_?.width) ? _?.width : 0, Le = F.tooltip !== !1 && Ft(W) && G > 0 ? pl(W, {
2439
+ if (F) {
2440
+ const j = J(p) ? typeof p?.[0]?.children == "string" ? p?.[0]?.children : "" : p ? p.toString() : "", _ = I.tooltip === !1 ? {} : I.tooltip, le = I.tooltip === !1 ? 1 : Ce(_?.hiddenLine) && _?.hiddenLine > 0 ? _?.hiddenLine : 1, G = I.tooltip === !1 ? 0 : Ce(_?.width) ? _?.width : 0, Le = I.tooltip !== !1 && Ft(j) && G > 0 ? pl(j, {
2443
2441
  cssObject: {
2444
2442
  fontSize: "14px",
2445
2443
  lineHeight: "22px",
2446
- fontFamily: f?.token?.value?.fontFamily || b?.value?.fontFamily,
2444
+ fontFamily: f?.token?.value?.fontFamily || h?.value?.fontFamily,
2447
2445
  ..._?.targetStyle || {}
2448
2446
  }
2449
2447
  }) : 0, je = document.querySelector(`.${o} .ant-table-tbody`), He = d("div", {
2450
2448
  class: `${o}-ellipsis-text`
2451
- }, [p]), ft = () => F.tooltip === !1 || ne(F.tooltip) && Le < G && G > 0 ? He : d($e, Q({
2449
+ }, [p]), dt = () => I.tooltip === !1 || ne(I.tooltip) && Le < G && G > 0 ? He : d($e, Q({
2452
2450
  title: p,
2453
2451
  getPopupContainer: (_e) => je ?? _e?.parentNode?.parentNode
2454
- }, ne(F.tooltip) ? F.tooltip : {}, {
2452
+ }, ne(I.tooltip) ? I.tooltip : {}, {
2455
2453
  destroyTooltipOnHide: !0
2456
2454
  }), Na(He) ? He : {
2457
2455
  default: () => [He]
@@ -2461,8 +2459,8 @@ const za = Nt.PRESENTED_IMAGE_SIMPLE, Da = Bl.useToken, et = /* @__PURE__ */ ge(
2461
2459
  style: {
2462
2460
  "-webkit-line-clamp": le
2463
2461
  }
2464
- }, [ft()]), F.copyable) {
2465
- const _e = typeof F.copyText == "function" ? F.copyText?.(F) : F.copyText || W;
2462
+ }, [dt()]), I.copyable) {
2463
+ const _e = typeof I.copyText == "function" ? I.copyText?.(I) : I.copyText || j;
2466
2464
  D = d("div", {
2467
2465
  class: `${o}-copyable`
2468
2466
  }, [d("div", {
@@ -2470,7 +2468,7 @@ const za = Nt.PRESENTED_IMAGE_SIMPLE, Da = Bl.useToken, et = /* @__PURE__ */ ge(
2470
2468
  style: {
2471
2469
  "-webkit-line-clamp": le
2472
2470
  }
2473
- }, [ft()]), d(ol, {
2471
+ }, [dt()]), d(ol, {
2474
2472
  class: `${o}-copyable-icon`,
2475
2473
  onClick: () => {
2476
2474
  xa(_e), zl.success("复制成功");
@@ -2480,79 +2478,80 @@ const za = Nt.PRESENTED_IMAGE_SIMPLE, Da = Bl.useToken, et = /* @__PURE__ */ ge(
2480
2478
  }
2481
2479
  return D;
2482
2480
  };
2483
- function dt() {
2481
+ function ct() {
2484
2482
  const p = yl({
2485
2483
  slots: l,
2486
2484
  props: e,
2487
2485
  key: "emptyText"
2488
2486
  });
2489
2487
  if (p !== !1 && v?.emptyText?.value !== !1) {
2490
- const F = e.emptyTextProps?.extraProps || {}, D = p || v?.emptyText?.value, W = ae(D), _ = W ? pt(D, F) : wt(J(D) ? D : [D]);
2488
+ const I = e.emptyTextProps?.extraProps || {}, D = p || v?.emptyText?.value, j = ae(D), _ = j ? bt(D, I) : wt(J(D) ? D : [D]);
2491
2489
  return d("div", {
2492
- class: O(`${o}-empty-text`, u.value, e.emptyTextProps?.class),
2490
+ class: O(`${o}-empty-text`, s.value, e.emptyTextProps?.class),
2493
2491
  style: e.emptyTextProps?.style
2494
- }, [W ? _ : J(_) && _.length ? _.map((le) => lt(le, F)) : d(Nt, {
2492
+ }, [j ? _ : J(_) && _.length ? _.map((le) => lt(le, I)) : d(Nt, {
2495
2493
  image: za
2496
2494
  }, null)]);
2497
2495
  }
2498
2496
  return null;
2499
2497
  }
2500
2498
  const _t = () => {
2501
- const p = vt({
2499
+ const p = ft({
2502
2500
  slots: l,
2503
2501
  props: e,
2504
2502
  key: "customRender"
2505
2503
  });
2506
2504
  if (p) {
2507
2505
  if (ie.value?.length) {
2508
- const P = ee(R(ie));
2506
+ const F = ee(P(ie));
2509
2507
  return p?.({
2510
- dataSource: P,
2511
- currentData: Sa(P, M.value)
2508
+ dataSource: F,
2509
+ currentData: Sa(F, W.value)
2512
2510
  });
2513
2511
  }
2514
- return dt();
2512
+ return ct();
2515
2513
  }
2516
2514
  return d(we, null, null);
2517
2515
  };
2518
2516
  return jl({
2519
- tableScrollState: ut,
2520
- tableSize: j,
2517
+ hashId: s,
2518
+ tableScrollState: rt,
2519
+ tableSize: L,
2521
2520
  columns: de,
2522
2521
  cacheColumns: A,
2523
- isMobile: I,
2524
- formConfig: k,
2525
- formAutoRequest: V,
2526
- formActions: L,
2522
+ isMobile: R,
2523
+ formConfig: K,
2524
+ formAutoRequest: k,
2525
+ formActions: E,
2527
2526
  screenWidth: m,
2528
2527
  tableListToolsHeight: jt,
2529
- styles: X(e, "styles"),
2530
- classNames: X(e, "classNames"),
2528
+ styles: V(e, "styles"),
2529
+ classNames: V(e, "classNames"),
2531
2530
  action: {
2532
- setTableSize: Y,
2531
+ setTableSize: H,
2533
2532
  reload: (p) => ue(p),
2534
- toggle: E
2533
+ toggle: B
2535
2534
  },
2536
2535
  setPagination: se
2537
2536
  }), a({
2538
2537
  formRef: () => ({
2539
2538
  getFormSearch: () => ({
2540
- ...R(t),
2541
- ...x.value?.getFormSearch(),
2539
+ ...P(t),
2540
+ ...S.value?.getFormSearch(),
2542
2541
  ...e.params
2543
2542
  }),
2544
- getFormInnerState: () => x.value?.getFormSearch() || {},
2543
+ getFormInnerState: () => S.value?.getFormSearch() || {},
2545
2544
  restFormState: (p) => {
2546
- h.value = !0, p && p?.(), x.value?.resetForm(!1), h.value = !1;
2545
+ g.value = !0, p && p?.(), S.value?.resetForm(!1), g.value = !1;
2547
2546
  }
2548
2547
  }),
2549
2548
  actionRef: () => ({
2550
- loading: K,
2549
+ loading: q,
2551
2550
  dataSource: ie,
2552
2551
  pageInfo: te,
2553
- pagination: M.value,
2554
- selectedKeys: T(() => s.value),
2555
- selectedItems: T(() => y.value),
2552
+ pagination: W.value,
2553
+ selectedKeys: x(() => i.value),
2554
+ selectedItems: x(() => y.value),
2556
2555
  rowsSelection: {
2557
2556
  clear: Fe,
2558
2557
  select: C,
@@ -2561,12 +2560,12 @@ const za = Nt.PRESENTED_IMAGE_SIMPLE, Da = Bl.useToken, et = /* @__PURE__ */ ge(
2561
2560
  selectAll: c
2562
2561
  },
2563
2562
  reload: ue,
2564
- getLoadingStatus: () => R(K),
2563
+ getLoadingStatus: () => P(q),
2565
2564
  reloadAndReset: async (p) => {
2566
- h.value = !0, se({
2565
+ g.value = !0, se({
2567
2566
  current: 1,
2568
2567
  pageSize: te?.pageSize || 10
2569
- }), p && p?.callBack && (p.wait ? await p.callBack() : p.callBack()), x.value?.resetForm(!0), h.value = !1;
2568
+ }), p && p?.callBack && (p.wait ? await p.callBack() : p.callBack()), S.value?.resetForm(!0), g.value = !1;
2570
2569
  },
2571
2570
  setPageInfo: Xe,
2572
2571
  setTableDataList: Ie,
@@ -2575,41 +2574,41 @@ const za = Nt.PRESENTED_IMAGE_SIMPLE, Da = Bl.useToken, et = /* @__PURE__ */ ge(
2575
2574
  setLoading: z
2576
2575
  })
2577
2576
  }), () => {
2578
- const p = Qe(e.customRender || l.customRender), P = l.actions?.() || e.actionProps?.actions, F = gl({
2577
+ const p = Qe(e.customRender || l.customRender), F = l.actions?.() || e.actionProps?.actions, I = gl({
2579
2578
  slots: l,
2580
2579
  props: e,
2581
2580
  keys: ["headerTitle", "headerTitleTip", "listToolAfter"],
2582
2581
  render: !0
2583
2582
  });
2584
2583
  return r(d("div", {
2585
- ref: i,
2586
- class: O(o, u.value, e.class, e.classNames?.root, [{
2587
- [`${o}-no-scroll`]: !Object.keys(R(re) || {}).length,
2584
+ ref: u,
2585
+ class: O(o, s.value, e.class, e.classNames?.root, [{
2586
+ [`${o}-no-scroll`]: !Object.keys(P(re) || {}).length,
2588
2587
  [`${o}-table-tree`]: xe.value,
2589
2588
  [`${o}-full-page`]: e.fitPage,
2590
- [`${o}-full-screen`]: B.value
2589
+ [`${o}-full-screen`]: N.value
2591
2590
  }]),
2592
2591
  style: {
2593
2592
  ...e.style,
2594
2593
  ...e.styles?.root || {}
2595
2594
  }
2596
2595
  }, [d("div", {
2597
- class: O(`${o}-content`, u.value, e.classNames?.content),
2596
+ class: O(`${o}-content`, s.value, e.classNames?.content),
2598
2597
  style: e.styles?.content
2599
2598
  }, [(Pe.value.length > 0 || !!l.form) && e.form !== !1 && d(Ql, {
2600
- ref: x,
2599
+ ref: S,
2601
2600
  modalScroll: e.modalScroll,
2602
2601
  cardBordered: e.cardBordered,
2603
2602
  formCols: Pe.value,
2604
2603
  prefixCls: o,
2605
- loading: R(K),
2604
+ loading: P(q),
2606
2605
  onSearch: qt,
2607
2606
  defaultFormSearch: t.value
2608
2607
  }, {
2609
2608
  default: l.form ? () => l.form?.() : null
2610
2609
  }), d("div", {
2611
2610
  ref: Ve,
2612
- class: O(e.classNames?.card, u.value, `${o}-card`, e.cardBordered && `${o}-card-border`),
2611
+ class: O(e.classNames?.card, s.value, `${o}-card`, e.cardBordered && `${o}-card-border`),
2613
2612
  style: e.styles?.card
2614
2613
  }, [d(ua, {
2615
2614
  options: e.options ? {
@@ -2617,67 +2616,67 @@ const za = Nt.PRESENTED_IMAGE_SIMPLE, Da = Bl.useToken, et = /* @__PURE__ */ ge(
2617
2616
  } : !1,
2618
2617
  titleTipText: e.titleTipText,
2619
2618
  actionsPlacement: e.actionProps?.placement,
2620
- actionsRender: P,
2621
- headerTitle: F.headerTitle,
2622
- listToolAfter: F.listToolAfter,
2623
- headerTitleTip: F.headerTitleTip
2624
- }, null), p ? d(At, ct.value, {
2619
+ actionsRender: F,
2620
+ headerTitle: I.headerTitle,
2621
+ listToolAfter: I.listToolAfter,
2622
+ headerTitleTip: I.headerTitleTip
2623
+ }, null), p ? d(At, ut.value, {
2625
2624
  default: () => [d("div", {
2626
- class: O(`${o}-list ${u.value}`, e.classNames?.list),
2625
+ class: O(`${o}-list ${s.value}`, e.classNames?.list),
2627
2626
  style: e.styles?.list
2628
2627
  }, [d("div", {
2629
- class: O(`${o}-list-content`, u.value, e.classNames?.listContent),
2628
+ class: O(`${o}-list-content`, s.value, e.classNames?.listContent),
2630
2629
  style: {
2631
2630
  ...e.styles?.listContent || {},
2632
2631
  height: Ee.value ? pe(Ee.value) : e.styles?.listContent?.height
2633
2632
  }
2634
- }, [_t()]), e.pagination !== !1 && ie.value?.length > 0 && d(Al, Q(ce(R(M)), {
2635
- class: O(u.value, `${o}-pagination`, `${o}-pagination-${Mt.value}`, e.classNames?.pagination),
2633
+ }, [_t()]), e.pagination !== !1 && ie.value?.length > 0 && d(Al, Q(ce(P(W)), {
2634
+ class: O(s.value, `${o}-pagination`, `${o}-pagination-${Mt.value}`, e.classNames?.pagination),
2636
2635
  style: e.styles?.pagination,
2637
- onChange: (D, W) => Xe({
2636
+ onChange: (D, j) => Xe({
2638
2637
  current: D,
2639
- pageSize: W
2638
+ pageSize: j
2640
2639
  })
2641
2640
  }), null)])]
2642
- }) : d(we, null, [d(Nl, Q(Dl(e, Object.keys(Ot)), R(Yt), {
2641
+ }) : d(we, null, [d(Nl, Q(Dl(e, Object.keys(Ot)), P(Yt), {
2643
2642
  style: e.styles?.table,
2644
- class: O(e.classNames?.table, u.value, Ht.value && `${o}-overflow-hidden`),
2645
- loading: ct.value,
2643
+ class: O(e.classNames?.table, s.value, Ht.value && `${o}-overflow-hidden`),
2644
+ loading: ut.value,
2646
2645
  rowKey: (D) => D[e.rowKey],
2647
2646
  transformCellText: (D) => {
2648
2647
  e.transformCellText && typeof e.transformCellText && e.transformCellText?.(D);
2649
2648
  const {
2650
- column: W
2649
+ column: j
2651
2650
  } = D;
2652
- if (!W) return D.text;
2653
- const _ = W?.key || W?.dataIndex;
2651
+ if (!j) return D.text;
2652
+ const _ = j?.key || j?.dataIndex;
2654
2653
  let le = !0, G = D.text;
2655
2654
  if (J(G))
2656
2655
  if (G.length === 0 || G.length === 1 && !ae(G[0])) {
2657
2656
  G = G?.[0];
2658
- const Le = bl(G, W?.columnEmptyText || e?.columnEmptyText || "");
2659
- le = Le.success, G = Ca(Le.value, W?.valueType || e.columns?.find((je) => (je.key || je.dataIndex) === _)?.valueType, o, u.value);
2657
+ const Le = bl(G, j?.columnEmptyText || e?.columnEmptyText || "");
2658
+ le = Le.success, G = Ca(Le.value, j?.valueType || e.columns?.find((je) => (je.key || je.dataIndex) === _)?.valueType, o, s.value);
2660
2659
  } else G[0]?.type === "template" && (G = G[0]?.children);
2661
- return W?.ellipsis ? Xt(G, le, W) : G;
2660
+ return j?.ellipsis ? Xt(G, le, j) : G;
2662
2661
  },
2663
2662
  rowSelection: e.rowSelection ? {
2664
2663
  ...De(e.rowSelection, ["onSelect", "onSelectAll", "onChange", "selectedRowKeys"]),
2665
- selectedRowKeys: s.value || [],
2664
+ selectedRowKeys: i.value || [],
2666
2665
  onSelect: C,
2667
2666
  onSelectAll: c,
2668
- onChange: g
2667
+ onChange: b
2669
2668
  } : void 0,
2670
2669
  onChange: Xe,
2671
2670
  onExpandedRowsChange: Kt,
2672
2671
  onExpand: kt,
2673
- onResizeColumn: (D, W) => Vt(D, W)
2672
+ onResizeColumn: (D, j) => Vt(D, j)
2674
2673
  }), {
2675
2674
  ...l,
2676
- emptyText: () => dt()
2677
- }), rt.value && !p && d(Jt, {
2678
- to: rt.value
2675
+ emptyText: () => ct()
2676
+ }), st.value && !p && d(Jt, {
2677
+ to: st.value
2679
2678
  }, {
2680
- default: () => [d(la, {
2679
+ default: () => [d(aa, {
2681
2680
  ref: Wt
2682
2681
  }, null)]
2683
2682
  })])])])]));
@@ -2702,39 +2701,39 @@ function Qa(e, n) {
2702
2701
  const a = at(ye(l(), {
2703
2702
  request: n?.request
2704
2703
  }));
2705
- n?.state && q(() => n.state && Ge(n.state) ? n.state.value : n.state, () => {
2704
+ n?.state && Y(() => n.state && Ge(n.state) ? n.state.value : n.state, () => {
2706
2705
  f();
2707
2706
  }, { deep: !0 });
2708
- const o = T(() => e.value ? e.value.actionRef() : {}), r = T(() => e.value ? e.value.formRef() : {}), u = T(() => ({
2707
+ const o = x(() => e.value ? e.value.actionRef() : {}), r = x(() => e.value ? e.value.formRef() : {}), s = x(() => ({
2709
2708
  ...o.value.pageInfo || {},
2710
2709
  ...r.value.getFormSearch?.() || {}
2711
- })), b = w(!!o.value.loading?.value);
2712
- q(() => o.value.loading?.value, (m) => {
2713
- b.value = !!m;
2714
- }), q(b, (m) => {
2710
+ })), h = T(!!o.value.loading?.value);
2711
+ Y(() => o.value.loading?.value, (m) => {
2712
+ h.value = !!m;
2713
+ }), Y(h, (m) => {
2715
2714
  o.value?.setLoading?.(!!m);
2716
2715
  });
2717
2716
  function f() {
2718
2717
  Cl(a, l());
2719
2718
  }
2720
- function $(m, S) {
2721
- a.searchMap && (a.searchMap = ee(a.searchMap).map((v) => v.name === m ? ye(v, S) : v));
2719
+ function $(m, w) {
2720
+ a.searchMap && (a.searchMap = ee(a.searchMap).map((v) => v.name === m ? ye(v, w) : v));
2722
2721
  }
2723
2722
  return {
2724
2723
  formRef: r,
2725
2724
  actionRef: o,
2726
2725
  tableState: a,
2727
- requestSearch: u,
2728
- loading: b,
2729
- dataSource: T(() => o?.value?.dataSource?.value || []),
2730
- selectedKeys: T(() => o?.value?.selectedKeys?.value || []),
2731
- selectedItems: T(() => o?.value?.selectedItems?.value || []),
2726
+ requestSearch: s,
2727
+ loading: h,
2728
+ dataSource: x(() => o?.value?.dataSource?.value || []),
2729
+ selectedKeys: x(() => o?.value?.selectedKeys?.value || []),
2730
+ selectedItems: x(() => o?.value?.selectedItems?.value || []),
2732
2731
  rowsSelection: o?.value?.rowsSelection,
2733
2732
  setTableDataList: (m) => o.value?.setTableDataList?.(m),
2734
2733
  reloadAndReset: (m) => o.value?.reloadAndReset?.(m),
2735
- setPageInfo: (m, S, v, i) => o.value?.setPageInfo?.(m, S, v, i),
2734
+ setPageInfo: (m, w, v, u) => o.value?.setPageInfo?.(m, w, v, u),
2736
2735
  setPagination: (m) => o.value?.setPagination?.(m),
2737
- setLoading: (m) => b.value = m,
2736
+ setLoading: (m) => h.value = m,
2738
2737
  operateTableDataRow: (m) => o.value?.operateTableDataRow?.(m),
2739
2738
  reload: (m) => o.value?.reload?.(m),
2740
2739
  updateSearchMap: $