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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/pro-table.js CHANGED
@@ -1,31 +1,31 @@
1
1
  /*!
2
2
  * Gx Design Pro
3
- * Version: 0.2.0-beta.144
3
+ * Version: 0.2.0-beta.146
4
4
  * Author: gx12358
5
5
  * Copyright (C) 2024 gx12358
6
6
  * License: MIT License
7
7
  * Description: Gx Design Pro Table
8
- * Date Created: 2025-12-26
8
+ * Date Created: 2025-12-28
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";
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";
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";
20
- import { omit as De, cloneDeep as zt, pick as Dl } from "lodash-es";
12
+ import { defineComponent as ge, ref as x, watch as K, cloneVNode as tt, reactive as lt, toRaw as ce, computed as T, createVNode as d, Fragment as we, isVNode as ae, mergeProps as Q, h as gt, onBeforeUnmount as Xt, onMounted as at, nextTick as nt, watchEffect as bt, unref as R, onActivated as pt, getCurrentInstance as _t, onUnmounted as yt, onDeactivated as Ct, onUpdated as Gt, toRef as X, Teleport as Qt, isRef as _e } from "vue";
13
+ import { UpOutlined as Ut, DownOutlined as Jt, InfoCircleOutlined as Zt, FullscreenExitOutlined as el, FullscreenOutlined as tl, ReloadOutlined as ll, CopyOutlined as al } from "@ant-design/icons-vue";
14
+ import { useProAppContext as St } from "@gx-design-vue/pro-app";
15
+ import { useBreakpoint as ot, useMemo as nl, tryOnUnmounted as ol, onMountedOrActivated as il } from "@gx-design-vue/pro-hooks";
16
+ import { useProStyle as Tt, unit as pe, useProConfigContext as sl } from "@gx-design-vue/pro-provider";
17
+ import { isArray as J, cloneDeep as ee, isObject as ne, isBoolean as De, classNames as A, isNumber as Ce, filterEmpty as xt, keysOf as wt, isFunction as Ne, isDeepEqualReact as Me, compareArray as rl, runFunction as ul, getSortIndex as cl, handleCurrentPage as dl, getRandomNumber as $t, deepMerge as ye, forInObject as fl, arrayRepeat as vl, isString as Rt, getPrefixCls as ml, handleShowIndex as hl, getSlot as dt, convertValueBoolean as Ge, 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 ft, isClient as Tl, useElementBounding as xl, useFullscreen as Pt, useElementSize as He, useScroll as wl, useResizeObserver as $l, useWindowSize as Rl } from "@vueuse/core";
19
+ import { DatePicker as Ft, Input as We, TimePicker as Pl, TreeSelect as Fl, Select as Il, InputNumber as Qe, Button as vt, Spin as It, Tooltip as $e, Empty as Bt, theme as Bl, Pagination as Al, Table as Nl, message as zl } from "ant-design-vue";
20
+ import { omit as ze, cloneDeep as At, 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
- import { useContext as Dt } from "@gx-design-vue/context";
26
- import { TinyColor as gt } from "@ctrl/tinycolor";
27
- const Ll = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered", "loading"], Ot = {
28
- ...De(Ol(), Ll),
25
+ import { useContext as Nt } from "@gx-design-vue/context";
26
+ import { TinyColor as mt } from "@ctrl/tinycolor";
27
+ const Ll = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered", "loading"], zt = {
28
+ ...ze(Ol(), Ll),
29
29
  direction: {
30
30
  type: String,
31
31
  default: "ltr"
@@ -49,8 +49,8 @@ const Ll = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
49
49
  type: Object,
50
50
  default: void 0
51
51
  }
52
- }, { provideContext: jl, useInjectContext: Ke } = Dt("pro-table"), he = {
53
- ...Ot,
52
+ }, { provideContext: jl, useInjectContext: qe } = Nt("pro-table"), he = {
53
+ ...zt,
54
54
  id: {
55
55
  type: String,
56
56
  default: ""
@@ -334,49 +334,49 @@ const Ll = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
334
334
  }
335
335
  },
336
336
  setup(e, {
337
- slots: n
337
+ slots: a
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], () => {
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";
339
+ const l = x([]), n = x(e.loading ?? !1), o = x("init"), r = Sl(e.fetch, e.debounceTime || 10);
340
+ return K([() => e.fetch, () => e.manual], () => {
341
+ if (o.value !== "init" && n.value) return;
342
+ const s = e.manual ?? !1;
343
+ e.fetch && !s && (n.value = !0, r().then((h) => {
344
+ l.value = At(h), o.value = "success";
345
+ }).catch((h) => {
346
+ console.error(h), o.value = "error";
347
347
  }).finally(() => {
348
- a.value = !1;
348
+ n.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 = a.default?.();
354
+ return tt(J(s) ? s[0] : s, {
355
355
  options: l.value,
356
- notFoundContent: e.notFoundContent?.(a.value)
356
+ notFoundContent: e.notFoundContent?.(n.value)
357
357
  });
358
358
  };
359
359
  }
360
360
  });
361
- function Wl(e, n) {
362
- const l = at({});
363
- function a() {
361
+ function Wl(e, a) {
362
+ const l = lt({});
363
+ function n() {
364
364
  Object.assign(l, ee(ce(e)));
365
- const r = n.find((u) => u.valueType === "dateRange");
365
+ const r = a.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, () => {
372
- a();
371
+ K(() => e, () => {
372
+ n();
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,
379
- resetFormState: a,
379
+ resetFormState: n,
380
380
  changeFormState: o
381
381
  };
382
382
  }
@@ -487,7 +487,7 @@ const Yl = (e) => ({
487
487
  justifyContent: "center",
488
488
  alignItems: "center"
489
489
  }
490
- }), Je = [
490
+ }), Ue = [
491
491
  { value: "xxl", span: 4 },
492
492
  { value: "xl", span: 3 },
493
493
  { value: "lg", span: 2 },
@@ -495,21 +495,21 @@ const Yl = (e) => ({
495
495
  { value: "sm", span: 2 },
496
496
  { value: "xs", span: 1 }
497
497
  ];
498
- function me(e, n) {
499
- return typeof n == "function" ? n(Z(e)) : Z(e).format(n);
498
+ function me(e, a) {
499
+ return typeof a == "function" ? a(Z(e)) : Z(e).format(a);
500
500
  }
501
- function Be(e, n) {
502
- return n ? "YYYY-MM-DD HH:mm:ss" : e ?? "YYYY-MM-DD";
501
+ function Be(e, a) {
502
+ return a ? "YYYY-MM-DD HH:mm:ss" : e ?? "YYYY-MM-DD";
503
503
  }
504
- const bt = (e, n, l = "string") => {
504
+ const ht = (e, a, l = "string") => {
505
505
  if (J(e)) {
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];
506
+ const [n, o] = e;
507
+ let r, s;
508
+ if (Array.isArray(a) ? (r = a[0], s = a[1]) : typeof a == "object" && a.type === "mask" ? (r = a.format, s = a.format) : (r = a, s = a), l === "string") {
509
+ const h = n ? me(n, r) : "", f = o ? me(o, s) : "";
510
+ return [h, f];
511
511
  }
512
- return [Z(a), Z(o)];
512
+ return [Z(n), Z(o)];
513
513
  }
514
514
  };
515
515
  function Ml(e) {
@@ -521,12 +521,12 @@ const {
521
521
  YearPicker: kl,
522
522
  WeekPicker: Vl,
523
523
  QuarterPicker: Xl
524
- } = Bt;
524
+ } = Ft;
525
525
  function _l(e) {
526
- let n = e.reduce((l, a) => a.order !== void 0 ? Math.max(l, a.order) : l, 0);
526
+ let a = e.reduce((l, n) => n.order !== void 0 ? Math.max(l, n.order) : l, 0);
527
527
  return e.forEach((l) => {
528
- l.order === void 0 && (n += 1, l.order = n);
529
- }), e.sort((l, a) => l.order - a.order), e;
528
+ l.order === void 0 && (a += 1, l.order = a);
529
+ }), e.sort((l, n) => l.order - n.order), e;
530
530
  }
531
531
  const Gl = {
532
532
  modalScroll: he.modalScroll,
@@ -547,131 +547,131 @@ const Gl = {
547
547
  inheritAttrs: !1,
548
548
  props: Gl,
549
549
  setup(e, {
550
- slots: n,
550
+ slots: a,
551
551
  expose: l
552
552
  }) {
553
553
  const {
554
- wrapSSR: a,
554
+ wrapSSR: n,
555
555
  hashId: o
556
- } = st("ProTableForm", [Yl], e.prefixCls), r = Tt(), u = it(), {
557
- formAutoRequest: b,
556
+ } = Tt("ProTableForm", [Yl], e.prefixCls), r = St(), s = ot(), {
557
+ formAutoRequest: h,
558
558
  formConfig: f,
559
559
  formActions: $,
560
- screenWidth: m,
561
- styles: S,
562
- classNames: v
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(() => {
560
+ screenWidth: v,
561
+ styles: w,
562
+ classNames: m
563
+ } = qe(), {
564
+ formState: u,
565
+ resetFormState: S,
566
+ changeFormState: g
567
+ } = Wl(e.defaultFormSearch, e.formCols), O = x(pe(f.value?.gap || 16)), H = T(() => {
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
+ }), B = x(f.value?.collapsed ?? f.value?.defaultCollapsed), E = T(() => De($.value?.reset) ? $.value?.reset : !h.value), F = T(() => H.value ? V(H.value, v.value) : L(f.value?.span, s.value)), Y = T(() => f.value?.label);
571
+ K(() => f.value?.collapsed, (t) => {
572
+ B.value = t;
573
573
  });
574
- function V(t, s) {
574
+ function V(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 L(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 < Ue.length; b += 1) {
589
+ const C = Ue[b].value;
590
+ if (i[C]) {
591
+ y = t?.[C] || (e.modalScroll ? 3 : Ue[b].span);
592
592
  break;
593
593
  }
594
594
  }
595
595
  return y;
596
596
  }
597
- const A = (t) => {
598
- I.value = t;
599
- }, K = (t, s, y) => (t + 1) % s === 0 ? {
597
+ const N = (t) => {
598
+ B.value = t;
599
+ }, k = (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: O.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 = At(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
+ }, j = (t = !1, i) => {
609
+ (h.value || t) && e.onSearch?.(z(), t ? i ? "reset" : "submit" : void 0);
610
+ }, M = (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 ? ht(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, j();
651
+ }, q = (t = !0) => {
652
+ S(), j(!0, t);
653
653
  };
654
654
  l({
655
655
  getFormSearch: () => z(),
656
- resetForm: M
656
+ resetForm: q
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 ? gt(t) : xt(t || []);
662
662
  return d("div", {
663
- class: O(`${e.prefixCls}-search-empty-text`, o.value)
664
- }, [s ? y : J(y) ? y.map((g) => lt(g)) : void 0]);
663
+ class: A(`${e.prefixCls}-search-empty-text`, o.value)
664
+ }, [i ? y : J(y) ? y.map((b) => tt(b)) : void 0]);
665
665
  }
666
- }, se = () => (!b.value || N.value) && d("div", {
667
- class: O(`${e.prefixCls}-search-buttons ${o.value}`, v.value?.searchButtons),
668
- style: S.value?.searchButtons
669
- }, [N.value && d(ht, {
666
+ }, se = () => (!h.value || E.value) && d("div", {
667
+ class: A(`${e.prefixCls}-search-buttons ${o.value}`, m.value?.searchButtons),
668
+ style: w.value?.searchButtons
669
+ }, [E.value && d(vt, {
670
670
  key: "reset",
671
- onClick: () => M()
671
+ onClick: () => q()
672
672
  }, {
673
673
  default: () => [$.value?.resetText || "重置"]
674
- }), !b.value && d(ht, {
674
+ }), !h.value && d(vt, {
675
675
  key: "submit",
676
676
  loading: e.loading,
677
677
  type: "primary",
@@ -680,79 +680,79 @@ const Gl = {
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
- class: O(`${e.prefixCls}-search-control ${o.value}`, v.value?.searchControl)
690
+ class: A(`${e.prefixCls}-search-control ${o.value}`, m.value?.searchControl)
691
691
  }, [d("div", {
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", {
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)])])])]);
692
+ class: A(`${e.prefixCls}-search-control-content ${o.value}`, m.value?.searchContent)
693
+ }, [se(), f.value?.collapseRender !== !1 && y && d(we, null, [typeof f.value?.collapseRender == "function" ? f.value?.collapseRender(i) : d("span", {
694
+ class: A(`${e.prefixCls}-search-control-text ${o.value}`, m.value?.searchText),
695
+ style: w.value?.searchText,
696
+ onClick: () => N(!i)
697
+ }, [i ? "收起" : "展开", i ? d(Ut, null, null) : d(Jt, null, null)])])])]);
698
698
  function be(t) {
699
- return t === void 0 ? void 0 : t ? d(At, {
699
+ return t === void 0 ? void 0 : t ? d(It, {
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 ? We.Search : We, b = ze(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),
725
+ onChange: (c) => M(c.target.value, t),
726
726
  onSearch: (c) => j()
727
- }, g), null);
727
+ }, b), null);
728
728
  break;
729
729
  case "number":
730
- s = d(Ue, Q({
730
+ i = d(Qe, 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) => M(c, t)
737
+ }, b), null);
738
738
  break;
739
739
  case "numberRange":
740
- s = d(Ye.Group, {
740
+ i = d(We.Group, {
741
741
  compact: !0,
742
- class: O(o.value, `${e.prefixCls}-search-input-compact`)
742
+ class: A(o.value, `${e.prefixCls}-search-input-compact`)
743
743
  }, {
744
- default: () => [d(Ue, {
745
- value: i[t.name]?.[0],
746
- onChange: (c) => Y(c, t, {
744
+ default: () => [d(Qe, {
745
+ value: u[t.name]?.[0],
746
+ onChange: (c) => M(c, t, {
747
747
  key: 0
748
748
  }),
749
749
  placeholder: J(t.placeholder) && t.placeholder?.[0] || "请输入"
750
- }, null), d(Ye, {
750
+ }, null), d(We, {
751
751
  disabled: !0,
752
752
  placeholder: "~"
753
- }, null), d(Ue, {
754
- value: i[t.name]?.[1],
755
- onChange: (c) => Y(c, t, {
753
+ }, null), d(Qe, {
754
+ value: u[t.name]?.[1],
755
+ onChange: (c) => M(c, t, {
756
756
  key: 1
757
757
  }),
758
758
  placeholder: J(t.placeholder) && t.placeholder?.[1] || "请输入"
@@ -764,189 +764,264 @@ 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) => M(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) => M(c, t)
790
+ }, b), null);
791
791
  break;
792
792
  case "date":
793
- s = d(Bt, Q({
793
+ i = d(Ft, 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) => M(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) => M(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) => M(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) => M(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) => M(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 ? ht(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) => M(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) => M(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) || Y.value?.width, C = (ae(i) ? i.props?.labelAlign : i.labelAlign) || Y.value?.align;
889
889
  return d("div", {
890
- class: O(`${e.prefixCls}-search-item`, o.value, v.value?.searchItem),
890
+ class: A(`${e.prefixCls}-search-item`, o.value, m.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: Y.value?.gap ? pe(Y.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: A(`${e.prefixCls}-search-item-label`, Y.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
- class: O(`${e.prefixCls}-search-item-children`)
903
- }, [ae(s) ? s : Re(s)])]);
902
+ class: A(`${e.prefixCls}-search-item-children`)
903
+ }, [ae(i) ? i : Re(i)])]);
904
904
  }, Pe = () => {
905
- let t = n.default?.() || [];
905
+ let t = a.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% - (${F.value - 1} * ${O.value})) / ${F.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 = k(C, F.value, y);
915
+ return i.length < F.value || B.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: B.value,
924
+ collapseRender: !!B.value
925
+ })]) : d(we, null, [C < F.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 === F.value - 1 && (F.value - 1 === 0 || i.length === F.value) && oe({
929
929
  formItemStyle: c,
930
- item: g
931
- }), C === H.value - 1 && s.length >= H.value && re({
930
+ item: b
931
+ }), C === F.value - 1 && i.length >= F.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 !== F.value
938
938
  })]);
939
939
  });
940
940
  };
941
941
  return () => {
942
942
  const t = e.cardBordered && `${e.prefixCls}-search-border`;
943
- return a(d("div", {
944
- class: O(v.value?.search, o.value, `${e.prefixCls}-search`, t, o.value, f.value?.className),
945
- style: S.value?.search
943
+ return n(d("div", {
944
+ class: A(m.value?.search, o.value, `${e.prefixCls}-search`, t, o.value, f.value?.className),
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: Dt, provideContext: Jl } = Nt("scrollbar"), xe = 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 }) => ({
971
- [l.size]: n,
1045
+ }, ea = ({ move: e, size: a, bar: l }) => ({
1046
+ [l.size]: a,
972
1047
  transform: `translate${l.axis}(${e}%)`
973
- }), ea = {
1048
+ }), ta = {
974
1049
  vertical: Boolean,
975
1050
  size: String,
976
1051
  move: Number,
@@ -983,84 +1058,84 @@ const Gl = {
983
1058
  type: [Object],
984
1059
  default: () => ({})
985
1060
  }
986
- }, tt = /* @__PURE__ */ ge({
987
- props: ea,
1061
+ }, et = /* @__PURE__ */ ge({
1062
+ props: ta,
988
1063
  setup(e) {
989
1064
  const {
990
- tableHeaderHeight: n,
1065
+ tableHeaderHeight: a,
991
1066
  hashId: l,
992
- wrapElement: a,
1067
+ wrapElement: n,
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
+ } = Dt(), s = x(), h = x(), f = x({}), $ = x(!1);
1071
+ let v = !1, w = !1, m = 0, u = 0, S = Tl ? document.onselectstart : null;
1072
+ const g = T(() => Zl[e.vertical ? "vertical" : "horizontal"]), O = T(() => ea({
998
1073
  size: e.size,
999
1074
  move: e.move,
1000
- bar: h.value
1001
- })), B = T(() => (
1075
+ bar: g.value
1076
+ })), H = T(() => (
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 / n.value[g.value.scrollSize] / e.ratio / h.value[g.value.offset]
1081
+ )), B = (z) => {
1007
1082
  if (z.stopPropagation(), z.ctrlKey || [1, 2].includes(z.button)) return;
1008
- window.getSelection()?.removeAllRanges(), H(z);
1083
+ window.getSelection()?.removeAllRanges(), F(z);
1009
1084
  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;
1085
+ j && (f.value[g.value.axis] = j[g.value.offset] - (z[g.value.client] - j.getBoundingClientRect()[g.value.direction]));
1086
+ }, E = (z) => {
1087
+ if (!h.value || !s.value || !n.value) return;
1088
+ const j = Math.abs(z.target.getBoundingClientRect()[g.value.direction] - z[g.value.client]), M = h.value[g.value.offset] / 2, q = (j - M) * 100 * H.value / s.value[g.value.offset];
1089
+ n.value[g.value.scroll] = q * n.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 F(z) {
1092
+ n.value && (z.stopImmediatePropagation(), v = !0, m = n.value.scrollHeight, u = n.value.scrollWidth, document.addEventListener("mousemove", Y), document.addEventListener("mouseup", V), 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];
1094
+ function Y(z) {
1095
+ if (!n.value || !s.value || !h.value || v === !1) return;
1096
+ const j = f.value[g.value.axis];
1022
1097
  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;
1098
+ const M = (s.value.getBoundingClientRect()[g.value.direction] - z[g.value.client]) * -1, q = h.value[g.value.offset] - j, te = (M - q) * 100 * H.value / s.value[g.value.offset];
1099
+ g.value.scroll === "scrollLeft" ? n.value[g.value.scroll] = te * u / 100 : n.value[g.value.scroll] = te * m / 100;
1025
1100
  }
1026
1101
  function V() {
1027
- m = !1, f.value[h.value.axis] = 0, document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", V), K(), S && ($.value = !1);
1102
+ v = !1, f.value[g.value.axis] = 0, document.removeEventListener("mousemove", Y), document.removeEventListener("mouseup", V), k(), w && ($.value = !1);
1028
1103
  }
1029
1104
  const L = () => {
1030
- S = !1, $.value = !!e.size;
1031
- }, A = () => {
1032
- S = !0, $.value = m;
1105
+ w = !1, $.value = !!e.size;
1106
+ }, N = () => {
1107
+ w = !0, $.value = v;
1033
1108
  };
1034
- Gt(() => {
1035
- K(), document.removeEventListener("mouseup", V);
1109
+ Xt(() => {
1110
+ k(), document.removeEventListener("mouseup", V);
1036
1111
  });
1037
- function K() {
1038
- document.onselectstart !== x && (document.onselectstart = x);
1112
+ function k() {
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" ? {
1042
- height: `calc(100% - ${pe(n.value + 1)})`,
1043
- top: pe(n.value + 1)
1115
+ return ft(o, "mousemove", L), ft(o, "mouseleave", N), () => {
1116
+ const z = g.value.key === "vertical" ? {
1117
+ height: `calc(100% - ${pe(a.value + 1)})`,
1118
+ top: pe(a.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: E
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: O.value,
1132
+ onMousedown: B
1058
1133
  }, null)]);
1059
1134
  };
1060
1135
  }
1061
1136
  });
1062
- tt.inheritAttrs = !1;
1063
- const ta = {
1137
+ et.inheritAttrs = !1;
1138
+ const la = {
1064
1139
  always: {
1065
1140
  type: Boolean,
1066
1141
  default: !0
@@ -1076,135 +1151,60 @@ 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
- expose: n
1158
+ expose: a
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) => {
1088
- 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;
1162
+ } = qe(), n = Dt(), o = x(0), r = x(0), s = x(""), h = x(""), f = x(1), $ = x(1), v = (m) => {
1163
+ if (m) {
1164
+ const u = m.offsetHeight - xe, S = m.offsetWidth - xe;
1165
+ r.value = m.scrollTop * 100 / u * f.value, o.value = m.scrollLeft * 100 / S * $.value;
1091
1166
  }
1092
- }, S = () => {
1093
- const v = a?.wrapElement;
1094
- 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` : "";
1167
+ }, w = () => {
1168
+ const m = n?.wrapElement;
1169
+ if (!m?.value) return;
1170
+ const u = m.value.offsetHeight - xe, S = m.value.offsetWidth - xe, g = u ** 2 / m.value.scrollHeight, O = S ** 2 / m.value.scrollWidth, H = Math.max(g, e.minSize), B = Math.max(O, e.minSize);
1171
+ f.value = g / (u - g) / (H / (u - H)), $.value = O / (S - O) / (B / (S - B)), h.value = H + xe < u ? `${H}px` : "", s.value = B + xe < S ? `${B}px` : "";
1097
1172
  };
1098
- return nt(() => {
1099
- ot(() => {
1100
- S();
1173
+ return at(() => {
1174
+ nt(() => {
1175
+ w();
1101
1176
  });
1102
- }), n({
1103
- update: S,
1104
- handleScroll: m
1105
- }), () => d(we, null, [d(tt, {
1177
+ }), a({
1178
+ update: w,
1179
+ handleScroll: v
1180
+ }), () => d(we, null, [d(et, {
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
- }, null), !!l.value.y && d(tt, {
1186
+ }, null), !!l.value.y && d(et, {
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))
1198
1198
  return e;
1199
1199
  if (e) {
1200
- const n = e, {
1200
+ const a = e, {
1201
1201
  icon: l,
1202
- tooltip: a,
1202
+ tooltip: n,
1203
1203
  onClick: o,
1204
1204
  key: r
1205
- } = n;
1206
- return l && a ? d($e, {
1207
- title: a,
1205
+ } = a;
1206
+ return l && n ? d($e, {
1207
+ title: n,
1208
1208
  key: r
1209
1209
  }, {
1210
1210
  default: () => [d("span", {
@@ -1217,11 +1217,10 @@ function na(e) {
1217
1217
  }
1218
1218
  return null;
1219
1219
  }
1220
- const Lt = /* @__PURE__ */ ge({
1220
+ const Ot = /* @__PURE__ */ ge({
1221
1221
  props: {
1222
1222
  actions: [Array],
1223
1223
  settings: [Array],
1224
- prefixCls: String,
1225
1224
  headerTitle: he.headerTitle,
1226
1225
  listToolAfter: he.listToolAfter,
1227
1226
  headerTitleTip: he.headerTitleTip,
@@ -1229,108 +1228,99 @@ const Lt = /* @__PURE__ */ ge({
1229
1228
  actionsPlacement: String
1230
1229
  },
1231
1230
  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: $
1242
- } = Ke();
1243
- yt(() => {
1244
- b.value = o.value || 0;
1231
+ const a = x(), {
1232
+ height: l
1233
+ } = xl(a), n = ot(), {
1234
+ isMobile: o,
1235
+ tableListToolsHeight: r,
1236
+ classNames: s,
1237
+ styles: h,
1238
+ hashId: f,
1239
+ prefixCls: $
1240
+ } = qe(), v = `${$}-list-toolbar`;
1241
+ bt(() => {
1242
+ r.value = l.value || 0;
1245
1243
  });
1246
- const m = T(() => !!(e.headerTitleTip || e.headerTitle)), S = Ne(() => {
1244
+ const w = T(() => !!(e.headerTitleTip || e.headerTitle)), m = T(() => {
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((F) => ae(F)).filter((F) => (F?.props?.placement || e.actionsPlacement) === "left"), E = e.actions.filter((F) => ae(F)).filter((F) => (F?.props?.placement || e.actionsPlacement) === "right");
1253
1251
  return {
1254
1252
  left: B.length ? d("div", {
1255
- class: `${e.prefixCls}-actions ${l.value}`
1253
+ class: A(`${v}-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: E.length ? d("div", {
1256
+ class: A(`${v}-actions`, f.value)
1257
+ }, [E]) : 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
+ }), u = T(() => !!(e.headerTitleTip || e.headerTitle || m.value.left)), S = T(() => !!(e.settings?.length || m.value.right)), g = () => {
1260
+ if (!u.value && S.value)
1263
1261
  return d("div", {
1264
- class: `${e.prefixCls}-left ${l.value}`
1262
+ class: A(`${v}-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, E = A(`${v}-left ${f.value}`, s.value?.toolbarLeft), F = h.value?.toolbarLeft;
1265
+ return w.value ? d("div", {
1266
+ class: E,
1267
+ style: F
1270
1268
  }, [d("div", {
1271
- class: `${e.prefixCls}-title ${l.value}`
1269
+ class: A(`${v}-title`, f.value)
1272
1270
  }, [e.headerTitle, e.headerTitleTip && d($e, {
1273
1271
  title: e.titleTipText
1274
1272
  }, {
1275
- default: () => [Oe(e.headerTitleTip) && e.headerTitleTip ? d(tl, null, null) : e.headerTitleTip]
1273
+ default: () => [De(e.headerTitleTip) && e.headerTitleTip ? d(Zt, null, null) : e.headerTitleTip]
1276
1274
  })]), B]) : d("div", {
1277
- class: I,
1278
- style: N
1275
+ class: E,
1276
+ style: F
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
+ }, O = () => {
1279
+ if (!S.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: A(`${v}-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: n.value.lg ? "center" : "flex-end",
1285
+ flexDirection: n.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: A(`${v}-setting-items`, f.value)
1290
+ }, [e.settings.map((E, F) => {
1291
+ const Y = na(E);
1294
1292
  return d("div", {
1295
- key: N,
1296
- class: O(`${e.prefixCls}-setting-item`, l.value)
1297
- }, [H]);
1293
+ key: F,
1294
+ class: A(`${v}-setting-item`, f.value)
1295
+ }, [Y]);
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;
1301
- const B = {
1302
- [`${l.value}`]: !0,
1303
- [`${e.prefixCls}-container`]: !0,
1304
- [`${e.prefixCls}-container-mobile`]: u.value
1305
- };
1306
- return d("div", {
1307
- 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", {
1297
+ }, H = () => !S.value && !u.value ? null : d("div", {
1298
+ class: A(f.value, `${v}-container`, o.value && `${v}-container-mobile`)
1299
+ }, [g(), O()]);
1300
+ return () => d("div", {
1311
1301
  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])]));
1302
+ class: A(`${v} ${f.value}`, e.listToolAfter && `${v}-with-after`, s.value?.toolbar),
1303
+ style: h.value?.toolbar
1304
+ }, [H(), e.listToolAfter && d("div", {
1305
+ class: A(`${v}-after ${f.value}`, s.value?.toolbarAfter),
1306
+ style: h.value?.toolbarAfter
1307
+ }, [e.listToolAfter])]);
1318
1308
  }
1319
1309
  });
1320
- Lt.inheritAttrs = !1;
1310
+ Ot.inheritAttrs = !1;
1321
1311
  const oa = /* @__PURE__ */ ge({
1322
1312
  setup() {
1323
1313
  const {
1324
1314
  isFullscreen: e
1325
- } = It();
1315
+ } = Pt();
1326
1316
  return () => e.value ? d($e, {
1327
1317
  title: "退出全屏"
1328
1318
  }, {
1329
- default: () => [d(ll, null, null)]
1319
+ default: () => [d(el, null, null)]
1330
1320
  }) : d($e, {
1331
1321
  title: "全屏"
1332
1322
  }, {
1333
- default: () => [d(al, null, null)]
1323
+ default: () => [d(tl, null, null)]
1334
1324
  });
1335
1325
  }
1336
1326
  });
@@ -1338,7 +1328,7 @@ function ia() {
1338
1328
  return {
1339
1329
  reload: {
1340
1330
  text: "刷新",
1341
- icon: d(nl, null, null)
1331
+ icon: d(ll, null, null)
1342
1332
  },
1343
1333
  fullScreen: {
1344
1334
  text: "全屏",
@@ -1346,21 +1336,21 @@ function ia() {
1346
1336
  }
1347
1337
  };
1348
1338
  }
1349
- function sa(e, n) {
1350
- return Rt(e).filter((l) => l).map((l) => {
1351
- const a = e[l];
1352
- if (!a)
1339
+ function sa(e, a) {
1340
+ return wt(e).filter((l) => l).map((l) => {
1341
+ const n = e[l];
1342
+ if (!n)
1353
1343
  return null;
1354
- const o = a ? n[l] : () => () => {
1344
+ const o = n ? a[l] : () => () => {
1355
1345
  }, r = ia()[l];
1356
- return r ? typeof a == "boolean" || !ze(a) ? d("span", {
1346
+ return r ? typeof n == "boolean" || !Ne(n) ? d("span", {
1357
1347
  key: l,
1358
1348
  onClick: o
1359
1349
  }, [d($e, {
1360
1350
  title: r.text
1361
1351
  }, {
1362
1352
  default: () => [r.icon]
1363
- })]) : a?.(o) : null;
1353
+ })]) : n?.(o) : null;
1364
1354
  }).filter((l) => l);
1365
1355
  }
1366
1356
  const ra = {
@@ -1375,22 +1365,18 @@ const ra = {
1375
1365
  props: ra,
1376
1366
  inheritAttrs: !1,
1377
1367
  setup(e) {
1378
- const n = $t({
1379
- suffixCls: "table-list-toolbar",
1380
- isPor: !0
1381
- }), {
1382
- action: l
1383
- } = Ke(), a = Ne(() => e.options === !1 ? [] : sa(ne(e.options) ? e.options : {}, {
1384
- reload: () => l.reload(),
1385
- fullScreen: () => l.toggle()
1368
+ const {
1369
+ action: a
1370
+ } = qe(), l = nl(() => e.options === !1 ? [] : sa(ne(e.options) ? e.options : {}, {
1371
+ reload: () => a.reload(),
1372
+ fullScreen: () => a.toggle()
1386
1373
  }), [() => e.options]);
1387
1374
  return () => {
1388
- const o = e.actionsRender || [];
1389
- return d(Lt, {
1390
- prefixCls: n,
1391
- actions: o,
1375
+ const n = e.actionsRender || [];
1376
+ return d(Ot, {
1377
+ actions: n,
1392
1378
  actionsPlacement: e.actionsPlacement,
1393
- settings: R(a),
1379
+ settings: R(l),
1394
1380
  headerTitle: e.headerTitle,
1395
1381
  listToolAfter: e.listToolAfter,
1396
1382
  headerTitleTip: e.headerTitleTip,
@@ -1400,222 +1386,222 @@ const ra = {
1400
1386
  }
1401
1387
  });
1402
1388
  function ca(e) {
1403
- return Qt();
1389
+ return _t();
1404
1390
  }
1405
- function da(e, n = !0, l) {
1406
- ca() ? Ct(e, l) : n ? e() : ot(e);
1391
+ function da(e, a = !0, l) {
1392
+ ca() ? pt(e, l) : a ? e() : nt(e);
1407
1393
  }
1408
- function fa({ scroll: e, columns: n, breakpoint: l, draggable: a, autoScroll: o, neverScroll: r }) {
1409
- const u = w([]);
1410
- q([
1394
+ function fa({ scroll: e, columns: a, breakpoint: l, draggable: n, autoScroll: o, neverScroll: r }) {
1395
+ const s = x([]);
1396
+ K([
1411
1397
  () => e.value,
1412
- () => n.value,
1413
- () => l.value,
1414
1398
  () => a.value,
1415
1399
  () => l.value,
1400
+ () => n.value,
1401
+ () => l.value,
1416
1402
  () => o.value,
1417
1403
  () => r.value
1418
1404
  ], () => {
1419
- const v = $(ce(n.value));
1420
- qe(v, ce(u.value)) || (u.value = ee(v));
1405
+ const m = $(ce(a.value));
1406
+ Me(m, ce(s.value)) || (s.value = ee(m));
1421
1407
  }, {
1422
1408
  deep: !0,
1423
1409
  immediate: !0
1424
1410
  });
1425
- const b = T(() => f(R(u)));
1426
- function f(v) {
1427
- return v.sort((i, x) => ul(i, x, "order", 0));
1411
+ const h = T(() => f(R(s)));
1412
+ function f(m) {
1413
+ return m.sort((u, S) => rl(u, S, "order", 0));
1428
1414
  }
1429
- 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))
1415
+ function $(m) {
1416
+ return ee(m).map((u, S) => {
1417
+ if (u.dataIndex === "action" || S === m.length - 1 ? u.resizable = !1 : u.resizable = De(u.resizable) ? u.resizable : !!(Ce(u.width) && R(n)), !u.width || R(r))
1418
+ return u;
1419
+ if (u.dataIndex === "action" && R(o))
1434
1420
  if (R(e)?.x || !R(l))
1435
- i.width = i.width || 100, i.fixed = "right";
1421
+ u.width = u.width || 100, u.fixed = "right";
1436
1422
  else {
1437
- const h = R(n).find((E) => E.dataIndex === i.dataIndex);
1438
- i.width = h?.width || "", i.fixed = h?.fixed;
1423
+ const g = R(a).find((O) => O.dataIndex === u.dataIndex);
1424
+ u.width = g?.width || "", u.fixed = g?.fixed;
1439
1425
  }
1440
- return i;
1426
+ return u;
1441
1427
  });
1442
1428
  }
1443
- function m(v, i) {
1444
- u.value = u.value.map((x) => (x.uuid === i.uuid && (x.width = v), x));
1429
+ function v(m, u) {
1430
+ s.value = s.value.map((S) => (S.uuid === u.uuid && (S.width = m), S));
1445
1431
  }
1446
- function S(v) {
1447
- if (v.length <= 0) {
1448
- u.value = [];
1432
+ function w(m) {
1433
+ if (m.length <= 0) {
1434
+ s.value = [];
1449
1435
  return;
1450
1436
  }
1451
- qe($(v), ce(u.value)) || (u.value = $(v));
1437
+ Me($(m), ce(s.value)) || (s.value = $(m));
1452
1438
  }
1453
1439
  return {
1454
1440
  breakpoint: l,
1455
- proColumns: b,
1456
- setColumns: S,
1457
- resizeColumnWidth: m
1441
+ proColumns: h,
1442
+ setColumns: w,
1443
+ resizeColumnWidth: v
1458
1444
  };
1459
1445
  }
1460
- function va(e, n) {
1461
- const l = T(() => n), a = w(), o = w(e);
1446
+ function va(e, a) {
1447
+ const l = T(() => a), n = x(), o = x(e);
1462
1448
  function r() {
1463
- a.value && (clearTimeout(a.value), a.value = null);
1449
+ n.value && (clearTimeout(n.value), n.value = null);
1464
1450
  }
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));
1451
+ async function s(...h) {
1452
+ return l.value === 0 || l.value === void 0 ? o.value(...h) : (r(), new Promise(async (f) => {
1453
+ h[0]?.immediate ? f(await o.value(...h)) : n.value = setTimeout(async () => {
1454
+ f(await o.value(...h));
1469
1455
  }, l.value);
1470
1456
  }));
1471
1457
  }
1472
- return il(r), {
1458
+ return ol(r), {
1473
1459
  cancel: r,
1474
- run: u
1460
+ run: s
1475
1461
  };
1476
1462
  }
1477
1463
  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);
1464
+ const a = T(() => e.rowKey), l = T(() => e.polling), n = T(() => e.debounceTime), o = T(() => e.dataSource), r = T(() => e.autoRequest);
1479
1465
  return {
1480
- rowKey: n,
1466
+ rowKey: a,
1481
1467
  polling: l,
1482
1468
  request: e.request,
1483
1469
  postData: e.postData,
1484
- debounceTime: a,
1470
+ debounceTime: n,
1485
1471
  dataSource: o,
1486
1472
  autoRequest: r
1487
1473
  };
1488
1474
  }
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;
1494
- if (!a || !ze(a))
1475
+ function ha({ rowKey: e, autoRequest: a, polling: l, request: n, postData: o, dataSource: r, waitRequest: s, debounceTime: h }, { params: f, columns: $, setLoading: v, setColumns: w, removeRowKeys: m, syncSelectedRows: u, defaultFormSearch: S, setPagination: g, pageInfo: O, onRequestError: H, onBeforeSearchSubmit: B, hasCustomRender: E }, F) {
1476
+ const Y = x(""), V = x(!1), L = x(!1), N = x([]), k = x(), z = x(null), j = (t = !1) => {
1477
+ (V.value || t) && v(!1), de(!1);
1478
+ }, M = async (t = {}) => {
1479
+ const { pagination: i = {}, filters: y = {}, sorter: b = {}, removeKeys: C = [], isPolling: c = !1, extra: fe } = t;
1480
+ if (!n || !Ne(n))
1495
1481
  return r.value || [];
1496
- c ? de(!0) : m(!0), s && h(s);
1482
+ c ? de(!0) : v(!0), i && g(i);
1497
1483
  try {
1498
- C.length && v(C);
1499
- const U = ne(g) ? Object.keys(g).length ? [g] : [] : g;
1500
- S(R($).map((Se) => {
1501
- const xe = U.find((ie) => (ie?.columnKey || ie?.field) === Se.dataIndex);
1484
+ C.length && m(C);
1485
+ const U = ne(b) ? Object.keys(b).length ? [b] : [] : b;
1486
+ w(R($).map((Se) => {
1487
+ const Te = U.find((ie) => (ie?.columnKey || ie?.field) === Se.dataIndex);
1502
1488
  return {
1503
1489
  ...Se,
1504
- sortOrder: xe?.order
1490
+ sortOrder: Te?.order
1505
1491
  };
1506
1492
  }));
1507
1493
  let Fe = {
1508
- ...ce(E),
1509
- current: fl(ce(E), C.length),
1510
- ...R(x),
1494
+ ...ce(O),
1495
+ current: dl(ce(O), C.length),
1496
+ ...R(S),
1511
1497
  ...R(f),
1512
1498
  ...t.params
1513
1499
  };
1514
- I && ze(I) && (Fe = await I({
1500
+ B && Ne(B) && (Fe = await B({
1515
1501
  params: Fe,
1516
1502
  sorter: U,
1517
1503
  filter: y,
1518
1504
  extra: fe
1519
1505
  }));
1520
1506
  let ve = [];
1521
- const ue = `table_request_${Pt().uuid(10)}`;
1522
- k.value = ue;
1523
- const Ie = await a?.({
1507
+ const ue = `table_request_${$t().uuid(10)}`;
1508
+ Y.value = ue;
1509
+ const Ie = await n?.({
1524
1510
  params: ee(ce(Fe)),
1525
1511
  sorter: U,
1526
1512
  filter: y,
1527
1513
  extra: fe
1528
1514
  });
1529
- if (k.value !== ue)
1515
+ if (Y.value !== ue)
1530
1516
  return [];
1531
1517
  if (Ie) {
1532
- const { success: Se = !0, data: xe = [] } = Ie;
1518
+ const { success: Se = !0, data: Te = [] } = Ie;
1533
1519
  if (!Se)
1534
1520
  return [];
1535
- ve = typeof o == "function" ? await o?.(xe) : xe, i(ve);
1521
+ ve = typeof o == "function" ? await o?.(Te) : Te, u(ve);
1536
1522
  const ie = Ie.total || ve?.length || 0;
1537
- ie !== E.total && h({
1523
+ ie !== O.total && g({
1538
1524
  total: ie
1539
1525
  });
1540
- const ke = R(A).map((Ve) => De(Ve, "sortIndex"));
1541
- return qe(ve, ke) ? R(A) : (oe(ve), ve);
1526
+ const Ke = R(N).map((ke) => ze(ke, "sortIndex"));
1527
+ return Me(ve, Ke) ? R(N) : (oe(ve), ve);
1542
1528
  } else
1543
1529
  return [];
1544
1530
  } catch (U) {
1545
- if (B === void 0)
1531
+ if (H === void 0)
1546
1532
  throw new Error(U);
1547
- A.value === void 0 && oe([]), B(U);
1533
+ N.value === void 0 && oe([]), H(U);
1548
1534
  } finally {
1549
1535
  j(!0);
1550
1536
  }
1551
1537
  return [];
1552
- }, M = va(async (t = {}) => {
1553
- if (K.value && clearTimeout(K.value), !a)
1538
+ }, q = va(async (t = {}) => {
1539
+ if (k.value && clearTimeout(k.value), !n)
1554
1540
  return;
1555
- const s = new AbortController();
1556
- z.value = s;
1541
+ const i = new AbortController();
1542
+ z.value = i;
1557
1543
  try {
1558
1544
  const y = await Promise.race([
1559
- Y(t),
1545
+ M(t),
1560
1546
  new Promise((C, c) => {
1561
1547
  z.value?.signal?.addEventListener?.("abort", () => {
1562
- c("aborted"), M.cancel(), j();
1548
+ c("aborted"), q.cancel(), j();
1563
1549
  });
1564
1550
  })
1565
1551
  ]);
1566
- if (s.signal.aborted)
1552
+ if (i.signal.aborted)
1567
1553
  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;
1554
+ const b = ul(l.value, y);
1555
+ return b && !V.value && (k.value = setTimeout(() => {
1556
+ q.run({ ...t, isPolling: b });
1557
+ }, Math.max(b, 2e3))), y;
1572
1558
  } catch (y) {
1573
1559
  if (y === "aborted")
1574
1560
  return;
1575
1561
  throw y;
1576
1562
  }
1577
- }, b.value || 30), te = () => {
1578
- z.value?.abort(), M.cancel(), j();
1563
+ }, h.value || 30), te = () => {
1564
+ z.value?.abort(), q.cancel(), j();
1579
1565
  };
1580
- nt(() => {
1566
+ at(() => {
1581
1567
  V.value = !1;
1582
- }), Ct(() => {
1568
+ }), pt(() => {
1583
1569
  V.value = !1;
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, () => {
1570
+ }), yt(() => {
1571
+ te(), V.value = !0, clearTimeout(k.value);
1572
+ }), Ct(() => {
1573
+ te(), V.value = !0, clearTimeout(k.value);
1574
+ }), K(() => l.value, () => {
1575
+ s.value || (l.value ? q.run({ isPolling: !0 }) : clearTimeout(k.value));
1576
+ }, { immediate: !0 }), K(() => s.value, () => {
1577
+ s.value ? v(!0) : q.run({ isPolling: !1 });
1578
+ }, { immediate: !0 }), K(() => r.value, () => {
1593
1579
  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());
1580
+ }, { deep: !0, immediate: !0 }), K(() => f.value, () => {
1581
+ s.value || a.value && (g({ current: 1 }), se());
1582
+ }, { deep: !0, immediate: !0 }), K(() => S.value, (t, i) => {
1583
+ s.value || Me(t, i) || (g({ current: 1 }), se());
1598
1584
  }, { deep: !0, immediate: !0 });
1599
1585
  function se() {
1600
- a ? l.value || (te(), M.run({ isPolling: !1 })) : oe(r.value || []);
1586
+ n ? l.value || (te(), q.run({ isPolling: !1 })) : oe(r.value || []);
1601
1587
  }
1602
1588
  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));
1589
+ if (E.value)
1590
+ return R(N);
1591
+ const t = $.value.filter((i) => i.show || i.show === void 0);
1592
+ return !R(N) || !t || t.length === 0 ? [] : R(N);
1593
+ }), be = T(() => R(N).some((t) => J(t.children) && t.children.length > 0));
1608
1594
  function de(t) {
1609
1595
  L.value = t;
1610
1596
  }
1611
- function Re(t, s = {}, y = {}, g) {
1612
- te(), M.run({ pagination: t, filters: s, sorter: y, extra: g, isPolling: !1 });
1597
+ function Re(t, i = {}, y = {}, b) {
1598
+ te(), q.run({ pagination: t, filters: i, sorter: y, extra: b, isPolling: !1 });
1613
1599
  }
1614
1600
  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({
1601
+ const i = cl(ee(t), ce(O));
1602
+ if (N.value = i, !n || !Ne(n)) {
1603
+ const y = i.length || 0;
1604
+ y !== O.total && g({
1619
1605
  total: y
1620
1606
  });
1621
1607
  }
@@ -1625,42 +1611,42 @@ function ha({ rowKey: e, autoRequest: n, polling: l, request: a, postData: o, da
1625
1611
  isTreeDataRef: be,
1626
1612
  setTableDataList: oe,
1627
1613
  operateTableDataRow: (t) => {
1628
- const { key: s, row: y, value: g, type: C = "update" } = t, c = s ?? e.value, fe = y?.[c] ?? g;
1614
+ const { key: i, row: y, value: b, type: C = "update" } = t, c = i ?? e.value, fe = y?.[c] ?? b;
1629
1615
  switch (!y && C !== "delete" && console.warn("row is required"), C) {
1630
1616
  case "update":
1631
- c && fe && y && (A.value = A.value.map((U) => fe === U[c] ? ye(U, y) : U));
1617
+ c && fe && y && (N.value = N.value.map((U) => fe === U[c] ? ye(U, y) : U));
1632
1618
  break;
1633
1619
  case "push":
1634
- y && A.value.push(y);
1620
+ y && N.value.push(y);
1635
1621
  break;
1636
1622
  case "unshift":
1637
- y && A.value.unshift(y);
1623
+ y && N.value.unshift(y);
1638
1624
  break;
1639
1625
  case "delete":
1640
- c && (A.value = A.value.filter((U) => g !== U[c]));
1626
+ c && (N.value = N.value.filter((U) => b !== U[c]));
1641
1627
  break;
1642
1628
  }
1643
1629
  },
1644
1630
  handleTableChange: Re,
1645
1631
  run: async (t) => {
1646
- u.value || (a ? await M.run({ ...t, isPolling: !1 }) : H("reload"));
1632
+ s.value || (n ? await q.run({ ...t, isPolling: !1 }) : F("reload"));
1647
1633
  }
1648
1634
  };
1649
1635
  }
1650
1636
  function ga(e) {
1651
- const n = w(l(e.loading.value));
1652
- q(() => e.loading.value, (o) => {
1653
- n.value = l(o, n.value);
1637
+ const a = x(l(e.loading.value));
1638
+ K(() => e.loading.value, (o) => {
1639
+ a.value = l(o, a.value);
1654
1640
  });
1655
1641
  function l(o, r = !1) {
1656
- return Oe(o) ? o : ne(o) ? o?.spinning ?? r : r;
1642
+ return De(o) ? o : ne(o) ? o?.spinning ?? r : r;
1657
1643
  }
1658
- function a(o) {
1659
- n.value = o;
1644
+ function n(o) {
1645
+ a.value = o;
1660
1646
  }
1661
- return [n, a];
1647
+ return [a, n];
1662
1648
  }
1663
- const Me = {
1649
+ const Ye = {
1664
1650
  current: 1,
1665
1651
  pageSize: 10,
1666
1652
  size: "default",
@@ -1670,37 +1656,37 @@ const Me = {
1670
1656
  };
1671
1657
  function ba({
1672
1658
  pagination: e,
1673
- pageItemRender: n
1659
+ pageItemRender: a
1674
1660
  }) {
1675
- const l = w({
1676
- ...Me
1677
- }), a = at({
1678
- current: Me.current,
1679
- pageSize: Me.pageSize,
1661
+ const l = x({
1662
+ ...Ye
1663
+ }), n = lt({
1664
+ current: Ye.current,
1665
+ pageSize: Ye.pageSize,
1680
1666
  total: 0
1681
1667
  });
1682
- q(() => e.value, () => {
1668
+ K(() => e.value, () => {
1683
1669
  if (e.value === !1) {
1684
1670
  l.value = !1;
1685
1671
  return;
1686
1672
  }
1687
- const r = ze(n) ? {
1673
+ const r = Ne(a) ? {
1688
1674
  itemRender: ({
1689
- page: b,
1675
+ page: h,
1690
1676
  type: f,
1691
1677
  originalElement: $
1692
- }) => n ? n({
1693
- page: b,
1678
+ }) => a ? a({
1679
+ page: h,
1694
1680
  type: f,
1695
1681
  originalElement: $
1696
1682
  }) : null
1697
- } : null, u = {
1698
- ...Me,
1683
+ } : null, s = {
1684
+ ...Ye,
1699
1685
  ...e.value || {},
1700
1686
  ...r || {}
1701
1687
  };
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]);
1688
+ e.value?.showTotal || (s.showTotal = (h) => `共${h < s.pageSize ? 1 : Math.ceil(h / (s.pageSize || 10))}页 ${h}条记录`), l.value = ee(s), fl(n, (h) => {
1689
+ Ce(s[h]) && (n[h] = s[h]);
1704
1690
  });
1705
1691
  }, {
1706
1692
  deep: 1,
@@ -1708,77 +1694,77 @@ function ba({
1708
1694
  });
1709
1695
  function o(r) {
1710
1696
  l.value = ye(R(l), r);
1711
- for (const u in a)
1712
- r[u] && Ce(r[u]) && (a[u] = r[u]);
1697
+ for (const s in n)
1698
+ r[s] && Ce(r[s]) && (n[s] = r[s]);
1713
1699
  }
1714
1700
  return {
1715
1701
  paginationInfo: l,
1716
- requestPagination: a,
1702
+ requestPagination: n,
1717
1703
  setPagination: o
1718
1704
  };
1719
1705
  }
1720
- function pa(e, n) {
1721
- const l = w([]), a = w([]);
1722
- q(() => n.value?.selectedRows, (m) => {
1723
- a.value = ee(m || []);
1706
+ function pa(e, a) {
1707
+ const l = x([]), n = x([]);
1708
+ K(() => a.value?.selectedRows, (v) => {
1709
+ n.value = ee(v || []);
1724
1710
  }, {
1725
1711
  deep: !0,
1726
1712
  immediate: !0
1727
- }), q(() => n.value?.selectedRowKeys, (m) => {
1728
- l.value = ml([...m || []]);
1713
+ }), K(() => a.value?.selectedRowKeys, (v) => {
1714
+ l.value = vl([...v || []]);
1729
1715
  }, {
1730
1716
  deep: !0,
1731
1717
  immediate: !0
1732
1718
  });
1733
- const o = (m, S) => {
1734
- 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])));
1719
+ const o = (v, w) => {
1720
+ const m = a.value?.type || "checkbox";
1721
+ e.value && (w ? v?.[e.value] && m === "checkbox" ? (l.value.push(v[e.value]), n.value.push(v)) : (l.value = [v[e.value]], n.value = [v]) : (l.value = l.value.filter((u) => u !== v[e.value]), n.value = n.value.filter((u) => u[e.value] !== v[e.value])));
1736
1722
  }, r = () => {
1737
- n.value && n.value?.onChange?.(l.value, a.value);
1723
+ a.value && a.value?.onChange?.(l.value, n.value);
1738
1724
  };
1739
1725
  return {
1740
1726
  selectedKeys: l,
1741
- selectedItems: a,
1727
+ selectedItems: n,
1742
1728
  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)));
1729
+ selectAllRowKey: (v, w, m) => {
1730
+ e.value && (v ? w.map((u) => (l.value.every((S) => S !== u?.[e.value]) && u?.[e.value] && (l.value.push(u[e.value]), n.value.push(u)), u)) : m.map((u) => (l.value.includes(u?.[e.value]) && (l.value = l.value.filter((S) => S !== u[e.value]), n.value = n.value.filter((S) => S[e.value] !== u[e.value])), u)));
1745
1731
  },
1746
- removeRowKeys: (m) => {
1747
- l.value = l.value.filter((S) => !m.includes(S)), a.value = a.value.filter((S) => !m.includes(S?.[e.value || ""])), r();
1732
+ removeRowKeys: (v) => {
1733
+ l.value = l.value.filter((w) => !v.includes(w)), n.value = n.value.filter((w) => !v.includes(w?.[e.value || ""])), r();
1748
1734
  },
1749
1735
  changeRowKey: r,
1750
- syncSelectedRows: (m) => {
1751
- 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));
1736
+ syncSelectedRows: (v) => {
1737
+ if (e.value && l.value.length !== n.value.length) {
1738
+ const w = n.value.map((u) => u[e.value]), m = l.value.filter((u) => !w.includes(u));
1739
+ v.forEach((u) => {
1740
+ m.includes(u[e.value]) && n.value.push(ee(u));
1755
1741
  });
1756
1742
  }
1757
1743
  },
1758
1744
  clearAllRowKeys: () => {
1759
- l.value = [], a.value = [], r();
1745
+ l.value = [], n.value = [], r();
1760
1746
  }
1761
1747
  };
1762
1748
  }
1763
1749
  function ya(e) {
1764
1750
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ae(e);
1765
1751
  }
1766
- function Ca(e, n, l, a) {
1767
- if (!n) return e;
1752
+ function Ca(e, a, l, n) {
1753
+ if (!a) return e;
1768
1754
  let o = e;
1769
- if (ne(n)) {
1770
- const r = n.node === "a" ? "span" : n.node;
1771
- return d(r, Q(n?.attr || {}, {
1772
- class: n.class,
1773
- onClick: n.click
1755
+ if (ne(a)) {
1756
+ const r = a.node === "a" ? "span" : a.node;
1757
+ return d(r, Q(a?.attr || {}, {
1758
+ class: a.class,
1759
+ onClick: a.click
1774
1760
  }), ya(e) ? e : {
1775
1761
  default: () => [e]
1776
1762
  });
1777
1763
  }
1778
- switch (n) {
1764
+ switch (a) {
1779
1765
  case "link":
1780
1766
  o = d("span", {
1781
- class: [`${l}-a`, a]
1767
+ class: [`${l}-a`, n]
1782
1768
  }, [e]);
1783
1769
  break;
1784
1770
  case "time":
@@ -1796,153 +1782,153 @@ function Ca(e, n, l, a) {
1796
1782
  }
1797
1783
  return o;
1798
1784
  }
1799
- function Sa(e, n) {
1800
- const l = n && n.current || 1, a = n && n.pageSize || 10;
1801
- return e.filter((o, r) => r < l * a && r >= a * (l - 1));
1785
+ function Sa(e, a) {
1786
+ const l = a && a.current || 1, n = a && a.pageSize || 10;
1787
+ return e.filter((o, r) => r < l * n && r >= n * (l - 1));
1802
1788
  }
1803
- function xa(e) {
1804
- const n = document.createElement("textarea");
1805
- n.style.position = "absolute", n.style.opacity = "0", n.value = e, document.body.appendChild(n), n.select(), document.execCommand("copy"), document.body.removeChild(n);
1789
+ function Ta(e) {
1790
+ const a = document.createElement("textarea");
1791
+ a.style.position = "absolute", a.style.opacity = "0", a.value = e, document.body.appendChild(a), a.select(), document.execCommand("copy"), document.body.removeChild(a);
1806
1792
  }
1807
- function Ae(e, n) {
1808
- let l = null, a = null;
1793
+ function Ae(e, a) {
1794
+ let l = null, n = null;
1809
1795
  function o() {
1810
- l && l.disconnect(), a && a.disconnect();
1796
+ l && l.disconnect(), n && n.disconnect();
1811
1797
  }
1812
1798
  function r(f) {
1813
1799
  f && (l = new ResizeObserver(() => {
1814
- n(f);
1815
- }), l.observe(f), n(f));
1800
+ a(f);
1801
+ }), l.observe(f), a(f));
1816
1802
  }
1817
- function u() {
1803
+ function s() {
1818
1804
  return typeof e == "string" ? document.querySelector(e) : e();
1819
1805
  }
1820
- const b = u();
1821
- return b ? (r(b), o) : (a = new MutationObserver(() => {
1822
- const f = u();
1823
- f && (a.disconnect(), r(f));
1824
- }), a.observe(document.body, {
1806
+ const h = s();
1807
+ return h ? (r(h), o) : (n = new MutationObserver(() => {
1808
+ const f = s();
1809
+ f && (n.disconnect(), r(f));
1810
+ }), n.observe(document.body, {
1825
1811
  childList: !0,
1826
1812
  subtree: !0
1827
1813
  }), o);
1828
1814
  }
1829
- 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;
1832
- 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) => {
1815
+ function xa({ fitPage: e, hashId: a, scroll: l, baseClassName: n }) {
1816
+ const o = x(), r = x(), s = x(), h = x(), f = x(), $ = x(), v = x(0);
1817
+ let w, m, u, S;
1818
+ il(() => {
1819
+ w = Ae(() => r.value?.querySelector(".ant-pagination"), (L) => {
1820
+ L && (s.value = L);
1821
+ }), u = Ae(() => r.value?.querySelector(".ant-table-header"), (L) => {
1822
+ L && (h.value = L);
1823
+ }), S = Ae(() => r.value?.querySelector(".ant-table-body>table"), (L) => {
1838
1824
  L && ($.value = L);
1839
1825
  });
1840
- }), q(() => l.value, (L) => {
1841
- v && v(), L.y || e.value ? v = Ae(() => r.value?.querySelector(".ant-table-body"), (A) => {
1842
- A && (f.value = A);
1843
- }) : L.x && (v = Ae(() => r.value?.querySelector(".ant-table-content"), (A) => {
1844
- A && (f.value = A);
1826
+ }), K(() => l.value, (L) => {
1827
+ m && m(), L.y || e.value ? m = Ae(() => r.value?.querySelector(".ant-table-body"), (N) => {
1828
+ N && (f.value = N);
1829
+ }) : L.x && (m = Ae(() => r.value?.querySelector(".ant-table-content"), (N) => {
1830
+ N && (f.value = N);
1845
1831
  }));
1846
1832
  }, { immediate: !0 });
1847
- const { height: h } = We(r), { height: E } = We(b), { height: B } = We($), { height: I } = We(u), N = T(() => {
1833
+ const { height: g } = He(r), { height: O } = He(h), { height: H } = He($), { height: B } = He(s), E = T(() => {
1848
1834
  if (!r.value || !e.value)
1849
1835
  return 0;
1850
1836
  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;
1837
+ if (s.value) {
1838
+ const k = getComputedStyle(s.value), z = Number.parseFloat(k.marginTop) || 0, j = Number.parseFloat(k.marginBottom) || 0;
1853
1839
  L = z + j;
1854
1840
  }
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([
1841
+ return g.value - O.value - v.value - (B.value + L);
1842
+ }), F = T(() => E.value && e.value ? H.value <= E.value : !1);
1843
+ K([
1858
1844
  () => f.value,
1859
- () => N.value
1845
+ () => E.value
1860
1846
  ], () => {
1861
- f.value && e.value && f.value.setAttribute("style", `height: ${N.value}px;`);
1847
+ f.value && e.value && f.value.setAttribute("style", `height: ${E.value}px;`);
1862
1848
  }), wl(f, {
1863
1849
  onScroll: () => {
1864
1850
  f.value && o.value?.handleScroll(f.value);
1865
1851
  }
1866
1852
  });
1867
- const k = () => {
1853
+ const Y = () => {
1868
1854
  o.value?.update();
1869
1855
  };
1870
- $l(f, k), nt(() => {
1871
- ot(() => {
1872
- k();
1856
+ $l(f, Y), at(() => {
1857
+ nt(() => {
1858
+ Y();
1873
1859
  });
1874
- }), Ut(() => k());
1860
+ }), Gt(() => Y());
1875
1861
  function V() {
1876
- S && S(), v && v(), i && i(), x && x();
1862
+ w && w(), m && m(), u && u(), S && S();
1877
1863
  }
1878
- return St(() => {
1864
+ return yt(() => {
1879
1865
  V();
1880
- }), xt(() => {
1866
+ }), Ct(() => {
1881
1867
  V && V();
1882
- }), Ul({
1883
- className: `${a}-scroll`,
1884
- hashId: n,
1885
- tableScrollYHeight: N,
1886
- tableHeaderHeight: E,
1868
+ }), Jl({
1869
+ className: `${n}-scroll`,
1870
+ hashId: a,
1871
+ tableScrollYHeight: E,
1872
+ tableHeaderHeight: O,
1887
1873
  scrollbarElement: r,
1888
1874
  wrapElement: f
1889
1875
  }), {
1890
1876
  barRef: o,
1891
1877
  tableCardEl: r,
1892
1878
  tableScrollEl: f,
1893
- tableOverHidden: H,
1894
- tableScrollYHeight: N,
1895
- tableListToolsHeight: m
1879
+ tableOverHidden: F,
1880
+ tableScrollYHeight: E,
1881
+ tableListToolsHeight: v
1896
1882
  };
1897
1883
  }
1898
1884
  function wa(e) {
1899
- const n = {};
1885
+ const a = {};
1900
1886
  return e.forEach((l) => {
1901
- 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);
1904
- }), n;
1887
+ let n = l.initialValue;
1888
+ const o = ["select", "number"], r = ["date", "time", "dateRange"], s = ["treeSelect", "numberRange"];
1889
+ l.valueType ? !n && o.includes(l.valueType) ? n = void 0 : !n && r.includes(l.valueType) ? n = null : !n && s.includes(l.valueType) ? n = [] : n || (n = "") : n || (n = ""), l.name === "dateRange" ? (a[l.rangeStartName || "start"] = n ? n[0] : null, a[l.rangeEndName || "end"] = n ? n[1] : null) : l.name && (a[l.name] = n);
1890
+ }), a;
1905
1891
  }
1906
- function $a({ searchMap: e, columns: n }) {
1907
- const l = w([]), a = w({});
1892
+ function $a({ searchMap: e, columns: a }) {
1893
+ const l = x([]), n = x({});
1908
1894
  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);
1895
+ r.forEach((h) => {
1896
+ 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
1897
  });
1912
- const u = wa(r);
1913
- a.value = { ...a.value, ...u };
1898
+ const s = wa(r);
1899
+ n.value = { ...n.value, ...s };
1914
1900
  }
1915
- return q(() => e.value, () => {
1901
+ return K(() => e.value, () => {
1916
1902
  const r = [];
1917
- e.value?.forEach((u) => r.push(u)), o(r);
1918
- }, { deep: !0, immediate: !0 }), q(() => n.value, () => {
1903
+ e.value?.forEach((s) => r.push(s)), o(r);
1904
+ }, { deep: !0, immediate: !0 }), K(() => a.value, () => {
1919
1905
  const r = [];
1920
- n.value && n.value?.length && n.value.forEach((u) => {
1921
- u.searchConfig && r.push(u.searchConfig);
1906
+ a.value && a.value?.length && a.value.forEach((s) => {
1907
+ s.searchConfig && r.push(s.searchConfig);
1922
1908
  }), o(r);
1923
- }, { deep: !0, immediate: !0 }), { formCols: l, defaultFormSearch: a };
1909
+ }, { deep: !0, immediate: !0 }), { formCols: l, defaultFormSearch: n };
1924
1910
  }
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(() => {
1927
- 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;
1911
+ function Ra({ scroll: e, columns: a, autoScroll: l, modalScroll: n, neverScroll: o, rowSelection: r, screens: s, innerWidth: h, scrollBreakpoint: f }) {
1912
+ const $ = T(() => f.value ? Ce(f.value) ? h.value > f.value : Rt(f.value) ? s.value?.[f.value] : s.value?.xl : s.value?.xl), v = T(() => {
1913
+ let m = 0;
1914
+ const u = R(r) ? 60 : 0, S = 150, g = ee(R(a));
1915
+ g.forEach((B) => {
1916
+ m += Number.parseInt(String(B.width)) || 0;
1931
1917
  });
1932
- const B = h.filter((I) => !Reflect.has(I, "width")).length;
1933
- return B !== 0 && (v += B * x), i && (v += i), v;
1918
+ const H = g.filter((B) => !Reflect.has(B, "width")).length;
1919
+ return H !== 0 && (m += H * S), u && (m += u), m;
1934
1920
  });
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)
1937
- } : l.value ? $.value ? {} : Oe($.value) ? { x: m.value } : {} : {}), breakpoint: $ };
1921
+ return { proScroll: T(() => o.value ? {} : e.value && wt(e.value).length ? R(e) : n.value ? {
1922
+ y: e.value?.y || (s.value?.xl ? 400 : 235)
1923
+ } : l.value ? $.value ? {} : De($.value) ? { x: v.value } : {} : {}), breakpoint: $ };
1938
1924
  }
1939
1925
  function Pa(e) {
1940
- const n = w(e.size.value || "middle");
1941
- q(() => e.size.value, (a) => n.value = a);
1942
- function l(a) {
1943
- n.value = a || n.value;
1926
+ const a = x(e.size.value || "middle");
1927
+ K(() => e.size.value, (n) => a.value = n);
1928
+ function l(n) {
1929
+ a.value = n || a.value;
1944
1930
  }
1945
- return [n, l];
1931
+ return [a, l];
1946
1932
  }
1947
1933
  const Fa = (e) => ({
1948
1934
  [e.componentCls]: {
@@ -1971,14 +1957,14 @@ const Fa = (e) => ({
1971
1957
  }
1972
1958
  }
1973
1959
  }
1974
- }), Ze = () => ({
1960
+ }), Je = () => ({
1975
1961
  scrollbarWidth: "none",
1976
1962
  "&::-webkit-scrollbar": {
1977
1963
  width: 0,
1978
1964
  height: 0
1979
1965
  }
1980
1966
  }), Ia = (e) => {
1981
- const n = new gt(e.colorText).setAlpha(0.2).toRgbString(), l = new gt(e.colorText).setAlpha(0.4).toRgbString();
1967
+ const a = new mt(e.colorText).setAlpha(0.2).toRgbString(), l = new mt(e.colorText).setAlpha(0.4).toRgbString();
1982
1968
  return {
1983
1969
  [e.componentCls]: {
1984
1970
  [`${e.antCls}-table-container`]: {
@@ -2013,7 +1999,7 @@ const Fa = (e) => ({
2013
1999
  height: 0,
2014
2000
  cursor: "pointer",
2015
2001
  opacity: 1,
2016
- backgroundColor: n,
2002
+ backgroundColor: a,
2017
2003
  borderRadius: "inherit",
2018
2004
  transition: ".3s background-color",
2019
2005
  "&:hover": {
@@ -2022,15 +2008,15 @@ const Fa = (e) => ({
2022
2008
  }
2023
2009
  }
2024
2010
  },
2025
- [`${e.antCls}-table-content`]: Ze(),
2026
- [`${e.antCls}-table-body`]: Ze(),
2011
+ [`${e.antCls}-table-content`]: Je(),
2012
+ [`${e.antCls}-table-body`]: Je(),
2027
2013
  [`${e.antCls}-table-empty`]: {
2028
- [`${e.antCls}-table-content`]: Ze()
2014
+ [`${e.antCls}-table-content`]: Je()
2029
2015
  }
2030
2016
  }
2031
2017
  };
2032
2018
  }, Ba = (e) => {
2033
- const n = `${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`;
2019
+ const a = `${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`;
2034
2020
  return {
2035
2021
  [e.componentCls]: {
2036
2022
  [`&${e.componentCls}-full-page`]: {
@@ -2048,9 +2034,9 @@ const Fa = (e) => ({
2048
2034
  overflow: "hidden",
2049
2035
  [`${e.componentCls}-overflow-hidden`]: {
2050
2036
  [`${e.antCls}-table${e.antCls}-table-bordered>${e.antCls}-table-container`]: {
2051
- borderBlockEnd: n,
2037
+ borderBlockEnd: a,
2052
2038
  [`${e.antCls}-table-body`]: {
2053
- borderInlineEnd: n
2039
+ borderInlineEnd: a
2054
2040
  },
2055
2041
  [`${e.antCls}-table-row`]: {
2056
2042
  [`${e.antCls}-table-cell`]: {
@@ -2241,33 +2227,33 @@ const Fa = (e) => ({
2241
2227
  function Na(e) {
2242
2228
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ae(e);
2243
2229
  }
2244
- const za = Nt.PRESENTED_IMAGE_SIMPLE, Da = Bl.useToken, et = /* @__PURE__ */ ge({
2230
+ const za = Bt.PRESENTED_IMAGE_SIMPLE, Da = Bl.useToken, Ze = /* @__PURE__ */ ge({
2245
2231
  name: "GProTable",
2246
2232
  inheritAttrs: !1,
2247
2233
  props: he,
2248
2234
  emits: ["reset", "reload", "submit", "sizeChange", "expandedRowsChange", "expand", "change", "requestError", "columnsStateChange", "loadingChange"],
2249
2235
  slots: Object,
2250
2236
  setup(e, {
2251
- emit: n,
2237
+ emit: a,
2252
2238
  slots: l,
2253
- expose: a
2239
+ expose: n
2254
2240
  }) {
2255
- const o = $t({
2241
+ const o = ml({
2256
2242
  suffixCls: "table",
2257
2243
  isPor: !0
2258
2244
  }), {
2259
2245
  wrapSSR: r,
2260
- hashId: u
2261
- } = st("ProBaseTable", [Aa, Ia, Ba, Fa], o), {
2262
- token: b
2263
- } = Da(), f = rl(), $ = it(), {
2264
- width: m
2265
- } = Rl(), S = w(!1), v = Tt(), i = w(), x = w(), h = w(e.waitRequest);
2266
- yt(() => h.value = e.waitRequest);
2246
+ hashId: s
2247
+ } = Tt("ProBaseTable", [Aa, Ia, Ba, Fa, Ul], o), {
2248
+ token: h
2249
+ } = Da(), f = sl(), $ = ot(), {
2250
+ width: v
2251
+ } = Rl(), w = x(!1), m = St(), u = x(), S = x(), g = x(e.waitRequest);
2252
+ bt(() => g.value = e.waitRequest);
2267
2253
  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(() => {
2254
+ toggle: O,
2255
+ isFullscreen: H
2256
+ } = Pt(u), B = T(() => !$.value.xl), E = T(() => (e.virtualScroll && El(!e.scroll?.y, "参数scroll的Y值不能为空!"), !!(e.scroll?.y && e.virtualScroll))), F = T(() => {
2271
2257
  if (e.form === !1) return !1;
2272
2258
  const p = {
2273
2259
  actions: {
@@ -2283,26 +2269,26 @@ const za = Nt.PRESENTED_IMAGE_SIMPLE, Da = Bl.useToken, et = /* @__PURE__ */ ge(
2283
2269
  searchText: "查询"
2284
2270
  };
2285
2271
  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(() => {
2272
+ }), Y = T(() => F.value === !1 ? {} : F.value), V = T(() => Y.value?.autoRequest ?? e.autoRequest), L = T(() => Y.value?.actions), N = T(() => {
2287
2273
  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;
2274
+ const I = P.key || P.dataIndex;
2275
+ return P.key = I, P.dataIndex = I, P.align = P.align || e.align, P.uuid = P.uuid || $t().uuid(15), P;
2290
2276
  });
2291
2277
  return hl(p, {
2292
2278
  align: e.align || "left",
2293
2279
  showIndex: e.showIndex ?? !1
2294
2280
  });
2295
- }), [K, z] = ga({
2281
+ }), [k, z] = ga({
2296
2282
  loading: X(e, "loading")
2297
- }), [j, Y] = Pa({
2283
+ }), [j, M] = Pa({
2298
2284
  size: X(e, "size")
2299
2285
  }), {
2300
- paginationInfo: M,
2286
+ paginationInfo: q,
2301
2287
  requestPagination: te,
2302
2288
  setPagination: se
2303
2289
  } = ba({
2304
2290
  pagination: X(e, "pagination"),
2305
- pageItemRender: vt({
2291
+ pageItemRender: dt({
2306
2292
  slots: l,
2307
2293
  props: e,
2308
2294
  key: "pageItemRender"
@@ -2317,8 +2303,8 @@ const za = Nt.PRESENTED_IMAGE_SIMPLE, Da = Bl.useToken, et = /* @__PURE__ */ ge(
2317
2303
  neverScroll: X(e, "neverScroll"),
2318
2304
  rowSelection: X(e, "rowSelection"),
2319
2305
  scrollBreakpoint: X(e, "scrollBreakpoint"),
2320
- innerWidth: m,
2321
- columns: A,
2306
+ innerWidth: v,
2307
+ columns: N,
2322
2308
  screens: $
2323
2309
  }), {
2324
2310
  proColumns: de,
@@ -2330,17 +2316,17 @@ const za = Nt.PRESENTED_IMAGE_SIMPLE, Da = Bl.useToken, et = /* @__PURE__ */ ge(
2330
2316
  autoScroll: X(e, "autoScroll"),
2331
2317
  breakpoint: be,
2332
2318
  scroll: re,
2333
- columns: A
2319
+ columns: N
2334
2320
  }), {
2335
2321
  formCols: Pe,
2336
2322
  defaultFormSearch: t
2337
2323
  } = $a({
2338
2324
  searchMap: X(e, "searchMap"),
2339
- columns: A
2325
+ columns: N
2340
2326
  }), {
2341
- selectedKeys: s,
2327
+ selectedKeys: i,
2342
2328
  selectedItems: y,
2343
- changeRowKey: g,
2329
+ changeRowKey: b,
2344
2330
  selectRowKey: C,
2345
2331
  selectAllRowKey: c,
2346
2332
  syncSelectedRows: fe,
@@ -2350,14 +2336,14 @@ const za = Nt.PRESENTED_IMAGE_SIMPLE, Da = Bl.useToken, et = /* @__PURE__ */ ge(
2350
2336
  run: ue,
2351
2337
  setTableDataList: Ie,
2352
2338
  operateTableDataRow: Se,
2353
- isTreeDataRef: xe,
2339
+ isTreeDataRef: Te,
2354
2340
  dataSource: ie,
2355
- handleTableChange: ke
2341
+ handleTableChange: Ke
2356
2342
  } = ha({
2357
2343
  ...ve,
2358
- waitRequest: h
2344
+ waitRequest: g
2359
2345
  }, {
2360
- loading: K,
2346
+ loading: k,
2361
2347
  pageInfo: te,
2362
2348
  setPagination: se,
2363
2349
  removeRowKeys: U,
@@ -2369,136 +2355,136 @@ const za = Nt.PRESENTED_IMAGE_SIMPLE, Da = Bl.useToken, et = /* @__PURE__ */ ge(
2369
2355
  params: X(e, "params"),
2370
2356
  onRequestError: e.onRequestError,
2371
2357
  onBeforeSearchSubmit: e.onBeforeSearchSubmit,
2372
- hasCustomRender: T(() => Qe(e.customRender || l?.customRender))
2373
- }, n), {
2374
- tableCardEl: Ve,
2375
- tableScrollYHeight: Ee,
2376
- tableListToolsHeight: jt,
2377
- tableScrollEl: rt,
2378
- tableOverHidden: Ht,
2379
- barRef: Wt
2380
- } = Ta({
2381
- hashId: u,
2358
+ hasCustomRender: T(() => Ge(e.customRender || l?.customRender))
2359
+ }, a), {
2360
+ tableCardEl: ke,
2361
+ tableScrollYHeight: Oe,
2362
+ tableListToolsHeight: Et,
2363
+ tableScrollEl: it,
2364
+ tableOverHidden: Lt,
2365
+ barRef: jt
2366
+ } = xa({
2367
+ hashId: s,
2382
2368
  scroll: re,
2383
2369
  baseClassName: o,
2384
2370
  fitPage: X(e, "fitPage")
2385
- }), ut = T(() => {
2386
- const p = Ee.value && e.fitPage ? {
2387
- y: Ee.value
2371
+ }), st = T(() => {
2372
+ const p = Oe.value && e.fitPage ? {
2373
+ y: Oe.value
2388
2374
  } : {};
2389
2375
  return {
2390
2376
  ...R(re),
2391
2377
  ...p
2392
2378
  };
2393
- }), Yt = T(() => ({
2379
+ }), Ht = T(() => ({
2394
2380
  size: R(j),
2395
- scroll: R(ut),
2381
+ scroll: R(st),
2396
2382
  dataSource: R(ie),
2397
- pagination: R(M),
2398
- virtualScroll: N.value,
2383
+ pagination: R(q),
2384
+ virtualScroll: E.value,
2399
2385
  columns: R(de).filter((p) => p.show || p.show === void 0)
2400
- })), ct = T(() => {
2401
- const p = ne(e.loading) ? De(e.loading, "spinning") : {};
2402
- return !p.indicator && v?.indicator?.value && (p.indicator = v?.indicator?.value), {
2403
- spinning: e.showLoading ? Qe(K.value) : !1,
2386
+ })), rt = T(() => {
2387
+ const p = ne(e.loading) ? ze(e.loading, "spinning") : {};
2388
+ return !p.indicator && m?.indicator?.value && (p.indicator = m?.indicator?.value), {
2389
+ spinning: e.showLoading ? Ge(k.value) : !1,
2404
2390
  ...p
2405
2391
  };
2406
- }), Mt = T(() => {
2392
+ }), Wt = T(() => {
2407
2393
  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");
2394
+ const P = e.direction === "rtl" ? "bottomLeft" : "right", I = R(q)?.position;
2395
+ if (I !== null && Array.isArray(I)) {
2396
+ const D = I.find((le) => le.includes("top")), W = I.find((le) => le.includes("bottom")), _ = I.every((le) => `${le}` == "none");
2411
2397
  !D && !W && !_ && (p = P), D && (p = D.toLowerCase().replace("top", "")), W && (p = W.toLowerCase().replace("bottom", ""));
2412
2398
  } else
2413
2399
  p = P;
2414
2400
  return p;
2415
2401
  });
2416
2402
  da(() => {
2417
- S.value ? e.keepAliveReload && ue({
2403
+ w.value ? e.keepAliveReload && ue({
2418
2404
  params: e.params
2419
- }) : S.value = !0;
2405
+ }) : w.value = !0;
2420
2406
  });
2421
- const qt = async (p, P) => {
2407
+ const Yt = async (p, P) => {
2422
2408
  if (V.value) {
2423
2409
  ue({
2424
2410
  params: p
2425
2411
  });
2426
2412
  return;
2427
2413
  }
2428
- P === "reset" ? (n("reset", p), e.request && L.value?.resetReload && ue({
2414
+ P === "reset" ? (a("reset", p), e.request && L.value?.resetReload && ue({
2429
2415
  params: p
2430
- })) : e.request && (n("submit", p), ue({
2416
+ })) : e.request && (a("submit", p), ue({
2431
2417
  params: p
2432
2418
  }));
2433
- }, Xe = (p, P, F, D) => {
2434
- ke(p, P, F, D), n("change", p, P, F, D);
2435
- }, Kt = (p) => {
2436
- n("expandedRowsChange", p);
2437
- }, kt = (p, P) => {
2438
- n("expand", p, P);
2439
- }, Vt = (p, P) => oe(p, P), Xt = (p, P, F) => {
2419
+ }, Ve = (p, P, I, D) => {
2420
+ Ke(p, P, I, D), a("change", p, P, I, D);
2421
+ }, Mt = (p) => {
2422
+ a("expandedRowsChange", p);
2423
+ }, qt = (p, P) => {
2424
+ a("expand", p, P);
2425
+ }, Kt = (p, P) => oe(p, P), kt = (p, P, I) => {
2440
2426
  let D = p;
2441
2427
  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, {
2428
+ const W = 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, Ee = I.tooltip !== !1 && Rt(W) && G > 0 ? pl(W, {
2443
2429
  cssObject: {
2444
2430
  fontSize: "14px",
2445
2431
  lineHeight: "22px",
2446
- fontFamily: f?.token?.value?.fontFamily || b?.value?.fontFamily,
2432
+ fontFamily: f?.token?.value?.fontFamily || h?.value?.fontFamily,
2447
2433
  ..._?.targetStyle || {}
2448
2434
  }
2449
- }) : 0, je = document.querySelector(`.${o} .ant-table-tbody`), He = d("div", {
2435
+ }) : 0, Le = document.querySelector(`.${o} .ant-table-tbody`), je = d("div", {
2450
2436
  class: `${o}-ellipsis-text`
2451
- }, [p]), ft = () => F.tooltip === !1 || ne(F.tooltip) && Le < G && G > 0 ? He : d($e, Q({
2437
+ }, [p]), ct = () => I.tooltip === !1 || ne(I.tooltip) && Ee < G && G > 0 ? je : d($e, Q({
2452
2438
  title: p,
2453
- getPopupContainer: (_e) => je ?? _e?.parentNode?.parentNode
2454
- }, ne(F.tooltip) ? F.tooltip : {}, {
2439
+ getPopupContainer: (Xe) => Le ?? Xe?.parentNode?.parentNode
2440
+ }, ne(I.tooltip) ? I.tooltip : {}, {
2455
2441
  destroyTooltipOnHide: !0
2456
- }), Na(He) ? He : {
2457
- default: () => [He]
2442
+ }), Na(je) ? je : {
2443
+ default: () => [je]
2458
2444
  });
2459
2445
  if (D = d("div", {
2460
- class: O(`${o}-ellipsis`, _?.class),
2446
+ class: A(`${o}-ellipsis`, _?.class),
2461
2447
  style: {
2462
2448
  "-webkit-line-clamp": le
2463
2449
  }
2464
- }, [ft()]), F.copyable) {
2465
- const _e = typeof F.copyText == "function" ? F.copyText?.(F) : F.copyText || W;
2450
+ }, [ct()]), I.copyable) {
2451
+ const Xe = typeof I.copyText == "function" ? I.copyText?.(I) : I.copyText || W;
2466
2452
  D = d("div", {
2467
2453
  class: `${o}-copyable`
2468
2454
  }, [d("div", {
2469
- class: O(`${o}-ellipsis`, _?.class),
2455
+ class: A(`${o}-ellipsis`, _?.class),
2470
2456
  style: {
2471
2457
  "-webkit-line-clamp": le
2472
2458
  }
2473
- }, [ft()]), d(ol, {
2459
+ }, [ct()]), d(al, {
2474
2460
  class: `${o}-copyable-icon`,
2475
2461
  onClick: () => {
2476
- xa(_e), zl.success("复制成功");
2462
+ Ta(Xe), zl.success("复制成功");
2477
2463
  }
2478
2464
  }, null)]);
2479
2465
  }
2480
2466
  }
2481
2467
  return D;
2482
2468
  };
2483
- function dt() {
2469
+ function ut() {
2484
2470
  const p = yl({
2485
2471
  slots: l,
2486
2472
  props: e,
2487
2473
  key: "emptyText"
2488
2474
  });
2489
- 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]);
2475
+ if (p !== !1 && m?.emptyText?.value !== !1) {
2476
+ const I = e.emptyTextProps?.extraProps || {}, D = p || m?.emptyText?.value, W = ae(D), _ = W ? gt(D, I) : xt(J(D) ? D : [D]);
2491
2477
  return d("div", {
2492
- class: O(`${o}-empty-text`, u.value, e.emptyTextProps?.class),
2478
+ class: A(`${o}-empty-text`, s.value, e.emptyTextProps?.class),
2493
2479
  style: e.emptyTextProps?.style
2494
- }, [W ? _ : J(_) && _.length ? _.map((le) => lt(le, F)) : d(Nt, {
2480
+ }, [W ? _ : J(_) && _.length ? _.map((le) => tt(le, I)) : d(Bt, {
2495
2481
  image: za
2496
2482
  }, null)]);
2497
2483
  }
2498
2484
  return null;
2499
2485
  }
2500
- const _t = () => {
2501
- const p = vt({
2486
+ const Vt = () => {
2487
+ const p = dt({
2502
2488
  slots: l,
2503
2489
  props: e,
2504
2490
  key: "customRender"
@@ -2508,50 +2494,52 @@ const za = Nt.PRESENTED_IMAGE_SIMPLE, Da = Bl.useToken, et = /* @__PURE__ */ ge(
2508
2494
  const P = ee(R(ie));
2509
2495
  return p?.({
2510
2496
  dataSource: P,
2511
- currentData: Sa(P, M.value)
2497
+ currentData: Sa(P, q.value)
2512
2498
  });
2513
2499
  }
2514
- return dt();
2500
+ return ut();
2515
2501
  }
2516
2502
  return d(we, null, null);
2517
2503
  };
2518
2504
  return jl({
2519
- tableScrollState: ut,
2505
+ hashId: s,
2506
+ prefixCls: o,
2507
+ tableScrollState: st,
2520
2508
  tableSize: j,
2521
2509
  columns: de,
2522
- cacheColumns: A,
2523
- isMobile: I,
2524
- formConfig: k,
2510
+ cacheColumns: N,
2511
+ isMobile: B,
2512
+ formConfig: Y,
2525
2513
  formAutoRequest: V,
2526
2514
  formActions: L,
2527
- screenWidth: m,
2528
- tableListToolsHeight: jt,
2515
+ screenWidth: v,
2516
+ tableListToolsHeight: Et,
2529
2517
  styles: X(e, "styles"),
2530
2518
  classNames: X(e, "classNames"),
2531
2519
  action: {
2532
- setTableSize: Y,
2520
+ setTableSize: M,
2533
2521
  reload: (p) => ue(p),
2534
- toggle: E
2522
+ toggle: O
2535
2523
  },
2536
2524
  setPagination: se
2537
- }), a({
2525
+ }), n({
2538
2526
  formRef: () => ({
2539
2527
  getFormSearch: () => ({
2540
2528
  ...R(t),
2541
- ...x.value?.getFormSearch(),
2529
+ ...S.value?.getFormSearch(),
2542
2530
  ...e.params
2543
2531
  }),
2544
- getFormInnerState: () => x.value?.getFormSearch() || {},
2532
+ getFormInnerState: () => S.value?.getFormSearch() || {},
2545
2533
  restFormState: (p) => {
2546
- h.value = !0, p && p?.(), x.value?.resetForm(!1), h.value = !1;
2534
+ g.value = !0, p && p?.(), S.value?.resetForm(!1), g.value = !1;
2547
2535
  }
2548
2536
  }),
2549
2537
  actionRef: () => ({
2550
- loading: K,
2538
+ loading: k,
2551
2539
  dataSource: ie,
2552
2540
  pageInfo: te,
2553
- pagination: M.value,
2554
- selectedKeys: T(() => s.value),
2541
+ pagination: q.value,
2542
+ selectedKeys: T(() => i.value),
2555
2543
  selectedItems: T(() => y.value),
2556
2544
  rowsSelection: {
2557
2545
  clear: Fe,
@@ -2561,55 +2549,55 @@ const za = Nt.PRESENTED_IMAGE_SIMPLE, Da = Bl.useToken, et = /* @__PURE__ */ ge(
2561
2549
  selectAll: c
2562
2550
  },
2563
2551
  reload: ue,
2564
- getLoadingStatus: () => R(K),
2552
+ getLoadingStatus: () => R(k),
2565
2553
  reloadAndReset: async (p) => {
2566
- h.value = !0, se({
2554
+ g.value = !0, se({
2567
2555
  current: 1,
2568
2556
  pageSize: te?.pageSize || 10
2569
- }), p && p?.callBack && (p.wait ? await p.callBack() : p.callBack()), x.value?.resetForm(!0), h.value = !1;
2557
+ }), p && p?.callBack && (p.wait ? await p.callBack() : p.callBack()), S.value?.resetForm(!0), g.value = !1;
2570
2558
  },
2571
- setPageInfo: Xe,
2559
+ setPageInfo: Ve,
2572
2560
  setTableDataList: Ie,
2573
2561
  setPagination: se,
2574
2562
  operateTableDataRow: Se,
2575
2563
  setLoading: z
2576
2564
  })
2577
2565
  }), () => {
2578
- const p = Qe(e.customRender || l.customRender), P = l.actions?.() || e.actionProps?.actions, F = gl({
2566
+ const p = Ge(e.customRender || l.customRender), P = l.actions?.() || e.actionProps?.actions, I = gl({
2579
2567
  slots: l,
2580
2568
  props: e,
2581
2569
  keys: ["headerTitle", "headerTitleTip", "listToolAfter"],
2582
2570
  render: !0
2583
2571
  });
2584
2572
  return r(d("div", {
2585
- ref: i,
2586
- class: O(o, u.value, e.class, e.classNames?.root, [{
2573
+ ref: u,
2574
+ class: A(o, s.value, e.class, e.classNames?.root, [{
2587
2575
  [`${o}-no-scroll`]: !Object.keys(R(re) || {}).length,
2588
- [`${o}-table-tree`]: xe.value,
2576
+ [`${o}-table-tree`]: Te.value,
2589
2577
  [`${o}-full-page`]: e.fitPage,
2590
- [`${o}-full-screen`]: B.value
2578
+ [`${o}-full-screen`]: H.value
2591
2579
  }]),
2592
2580
  style: {
2593
2581
  ...e.style,
2594
2582
  ...e.styles?.root || {}
2595
2583
  }
2596
2584
  }, [d("div", {
2597
- class: O(`${o}-content`, u.value, e.classNames?.content),
2585
+ class: A(`${o}-content`, s.value, e.classNames?.content),
2598
2586
  style: e.styles?.content
2599
2587
  }, [(Pe.value.length > 0 || !!l.form) && e.form !== !1 && d(Ql, {
2600
- ref: x,
2588
+ ref: S,
2601
2589
  modalScroll: e.modalScroll,
2602
2590
  cardBordered: e.cardBordered,
2603
2591
  formCols: Pe.value,
2604
2592
  prefixCls: o,
2605
- loading: R(K),
2606
- onSearch: qt,
2593
+ loading: R(k),
2594
+ onSearch: Yt,
2607
2595
  defaultFormSearch: t.value
2608
2596
  }, {
2609
2597
  default: l.form ? () => l.form?.() : null
2610
2598
  }), d("div", {
2611
- ref: Ve,
2612
- class: O(e.classNames?.card, u.value, `${o}-card`, e.cardBordered && `${o}-card-border`),
2599
+ ref: ke,
2600
+ class: A(e.classNames?.card, s.value, `${o}-card`, e.cardBordered && `${o}-card-border`),
2613
2601
  style: e.styles?.card
2614
2602
  }, [d(ua, {
2615
2603
  options: e.options ? {
@@ -2618,31 +2606,31 @@ const za = Nt.PRESENTED_IMAGE_SIMPLE, Da = Bl.useToken, et = /* @__PURE__ */ ge(
2618
2606
  titleTipText: e.titleTipText,
2619
2607
  actionsPlacement: e.actionProps?.placement,
2620
2608
  actionsRender: P,
2621
- headerTitle: F.headerTitle,
2622
- listToolAfter: F.listToolAfter,
2623
- headerTitleTip: F.headerTitleTip
2624
- }, null), p ? d(At, ct.value, {
2609
+ headerTitle: I.headerTitle,
2610
+ listToolAfter: I.listToolAfter,
2611
+ headerTitleTip: I.headerTitleTip
2612
+ }, null), p ? d(It, rt.value, {
2625
2613
  default: () => [d("div", {
2626
- class: O(`${o}-list ${u.value}`, e.classNames?.list),
2614
+ class: A(`${o}-list ${s.value}`, e.classNames?.list),
2627
2615
  style: e.styles?.list
2628
2616
  }, [d("div", {
2629
- class: O(`${o}-list-content`, u.value, e.classNames?.listContent),
2617
+ class: A(`${o}-list-content`, s.value, e.classNames?.listContent),
2630
2618
  style: {
2631
2619
  ...e.styles?.listContent || {},
2632
- height: Ee.value ? pe(Ee.value) : e.styles?.listContent?.height
2620
+ height: Oe.value ? pe(Oe.value) : e.styles?.listContent?.height
2633
2621
  }
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),
2622
+ }, [Vt()]), e.pagination !== !1 && ie.value?.length > 0 && d(Al, Q(ce(R(q)), {
2623
+ class: A(s.value, `${o}-pagination`, `${o}-pagination-${Wt.value}`, e.classNames?.pagination),
2636
2624
  style: e.styles?.pagination,
2637
- onChange: (D, W) => Xe({
2625
+ onChange: (D, W) => Ve({
2638
2626
  current: D,
2639
2627
  pageSize: W
2640
2628
  })
2641
2629
  }), null)])]
2642
- }) : d(we, null, [d(Nl, Q(Dl(e, Object.keys(Ot)), R(Yt), {
2630
+ }) : d(we, null, [d(Nl, Q(Dl(e, Object.keys(zt)), R(Ht), {
2643
2631
  style: e.styles?.table,
2644
- class: O(e.classNames?.table, u.value, Ht.value && `${o}-overflow-hidden`),
2645
- loading: ct.value,
2632
+ class: A(e.classNames?.table, s.value, Lt.value && `${o}-overflow-hidden`),
2633
+ loading: rt.value,
2646
2634
  rowKey: (D) => D[e.rowKey],
2647
2635
  transformCellText: (D) => {
2648
2636
  e.transformCellText && typeof e.transformCellText && e.transformCellText?.(D);
@@ -2655,93 +2643,93 @@ const za = Nt.PRESENTED_IMAGE_SIMPLE, Da = Bl.useToken, et = /* @__PURE__ */ ge(
2655
2643
  if (J(G))
2656
2644
  if (G.length === 0 || G.length === 1 && !ae(G[0])) {
2657
2645
  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);
2646
+ const Ee = bl(G, W?.columnEmptyText || e?.columnEmptyText || "");
2647
+ le = Ee.success, G = Ca(Ee.value, W?.valueType || e.columns?.find((Le) => (Le.key || Le.dataIndex) === _)?.valueType, o, s.value);
2660
2648
  } else G[0]?.type === "template" && (G = G[0]?.children);
2661
- return W?.ellipsis ? Xt(G, le, W) : G;
2649
+ return W?.ellipsis ? kt(G, le, W) : G;
2662
2650
  },
2663
2651
  rowSelection: e.rowSelection ? {
2664
- ...De(e.rowSelection, ["onSelect", "onSelectAll", "onChange", "selectedRowKeys"]),
2665
- selectedRowKeys: s.value || [],
2652
+ ...ze(e.rowSelection, ["onSelect", "onSelectAll", "onChange", "selectedRowKeys"]),
2653
+ selectedRowKeys: i.value || [],
2666
2654
  onSelect: C,
2667
2655
  onSelectAll: c,
2668
- onChange: g
2656
+ onChange: b
2669
2657
  } : void 0,
2670
- onChange: Xe,
2671
- onExpandedRowsChange: Kt,
2672
- onExpand: kt,
2673
- onResizeColumn: (D, W) => Vt(D, W)
2658
+ onChange: Ve,
2659
+ onExpandedRowsChange: Mt,
2660
+ onExpand: qt,
2661
+ onResizeColumn: (D, W) => Kt(D, W)
2674
2662
  }), {
2675
2663
  ...l,
2676
- emptyText: () => dt()
2677
- }), rt.value && !p && d(Jt, {
2678
- to: rt.value
2664
+ emptyText: () => ut()
2665
+ }), it.value && !p && d(Qt, {
2666
+ to: it.value
2679
2667
  }, {
2680
- default: () => [d(la, {
2681
- ref: Wt
2668
+ default: () => [d(aa, {
2669
+ ref: jt
2682
2670
  }, null)]
2683
2671
  })])])])]));
2684
2672
  };
2685
2673
  }
2686
2674
  });
2687
- et.install = (e) => (e.component(et.name, et), e);
2688
- function Qa(e, n) {
2675
+ Ze.install = (e) => (e.component(Ze.name, Ze), e);
2676
+ function Qa(e, a) {
2689
2677
  function l() {
2690
- const m = {
2678
+ const v = {
2691
2679
  params: {},
2692
2680
  searchMap: []
2693
2681
  };
2694
- if (n?.state) {
2695
- if (Ge(n.state) && ne(n.state.value))
2696
- return ye(m, ee(n.state.value));
2697
- if (ne(n.state) && !Ge(n.state))
2698
- return ye(m, ee(n.state));
2682
+ if (a?.state) {
2683
+ if (_e(a.state) && ne(a.state.value))
2684
+ return ye(v, ee(a.state.value));
2685
+ if (ne(a.state) && !_e(a.state))
2686
+ return ye(v, ee(a.state));
2699
2687
  }
2700
- return m;
2688
+ return v;
2701
2689
  }
2702
- const a = at(ye(l(), {
2703
- request: n?.request
2690
+ const n = lt(ye(l(), {
2691
+ request: a?.request
2704
2692
  }));
2705
- n?.state && q(() => n.state && Ge(n.state) ? n.state.value : n.state, () => {
2693
+ a?.state && K(() => a.state && _e(a.state) ? a.state.value : a.state, () => {
2706
2694
  f();
2707
2695
  }, { deep: !0 });
2708
- const o = T(() => e.value ? e.value.actionRef() : {}), r = T(() => e.value ? e.value.formRef() : {}), u = T(() => ({
2696
+ const o = T(() => e.value ? e.value.actionRef() : {}), r = T(() => e.value ? e.value.formRef() : {}), s = T(() => ({
2709
2697
  ...o.value.pageInfo || {},
2710
2698
  ...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) => {
2715
- o.value?.setLoading?.(!!m);
2699
+ })), h = x(!!o.value.loading?.value);
2700
+ K(() => o.value.loading?.value, (v) => {
2701
+ h.value = !!v;
2702
+ }), K(h, (v) => {
2703
+ o.value?.setLoading?.(!!v);
2716
2704
  });
2717
2705
  function f() {
2718
- Cl(a, l());
2706
+ Cl(n, l());
2719
2707
  }
2720
- function $(m, S) {
2721
- a.searchMap && (a.searchMap = ee(a.searchMap).map((v) => v.name === m ? ye(v, S) : v));
2708
+ function $(v, w) {
2709
+ n.searchMap && (n.searchMap = ee(n.searchMap).map((m) => m.name === v ? ye(m, w) : m));
2722
2710
  }
2723
2711
  return {
2724
2712
  formRef: r,
2725
2713
  actionRef: o,
2726
- tableState: a,
2727
- requestSearch: u,
2728
- loading: b,
2714
+ tableState: n,
2715
+ requestSearch: s,
2716
+ loading: h,
2729
2717
  dataSource: T(() => o?.value?.dataSource?.value || []),
2730
2718
  selectedKeys: T(() => o?.value?.selectedKeys?.value || []),
2731
2719
  selectedItems: T(() => o?.value?.selectedItems?.value || []),
2732
2720
  rowsSelection: o?.value?.rowsSelection,
2733
- setTableDataList: (m) => o.value?.setTableDataList?.(m),
2734
- reloadAndReset: (m) => o.value?.reloadAndReset?.(m),
2735
- setPageInfo: (m, S, v, i) => o.value?.setPageInfo?.(m, S, v, i),
2736
- setPagination: (m) => o.value?.setPagination?.(m),
2737
- setLoading: (m) => b.value = m,
2738
- operateTableDataRow: (m) => o.value?.operateTableDataRow?.(m),
2739
- reload: (m) => o.value?.reload?.(m),
2721
+ setTableDataList: (v) => o.value?.setTableDataList?.(v),
2722
+ reloadAndReset: (v) => o.value?.reloadAndReset?.(v),
2723
+ setPageInfo: (v, w, m, u) => o.value?.setPageInfo?.(v, w, m, u),
2724
+ setPagination: (v) => o.value?.setPagination?.(v),
2725
+ setLoading: (v) => h.value = v,
2726
+ operateTableDataRow: (v) => o.value?.operateTableDataRow?.(v),
2727
+ reload: (v) => o.value?.reload?.(v),
2740
2728
  updateSearchMap: $
2741
2729
  };
2742
2730
  }
2743
2731
  export {
2744
- et as GProTable,
2732
+ Ze as GProTable,
2745
2733
  he as proTableProps,
2746
2734
  Qa as useTable
2747
2735
  };