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

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,29 +1,29 @@
1
1
  /*!
2
2
  * Gx Design Pro
3
- * Version: 0.2.0-beta.121
3
+ * Version: 0.2.0-beta.122
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-09-28
8
+ * Date Created: 2025-10-17
9
9
  * Homepage:
10
10
  * Contact: gx12358@gmail.com
11
11
  */
12
- import { defineComponent as ne, ref as P, watch as N, cloneVNode as Ve, reactive as be, watchEffect as Ne, computed as x, createVNode as i, Fragment as ke, isVNode as U, mergeProps as M, h as Tt, unref as p, createTextVNode as Ae, renderSlot as ol, onActivated as il, nextTick as ul, getCurrentInstance as sl, toRaw as ve, onUnmounted as rl, onDeactivated as cl, onMounted as dl, toRef as se, isRef as _e, isReactive as fl } from "vue";
13
- import { UpOutlined as hl, DownOutlined as ml, SettingOutlined as $t, VerticalAlignTopOutlined as vl, VerticalAlignMiddleOutlined as gl, VerticalAlignBottomOutlined as pl, InfoCircleOutlined as yl, ColumnHeightOutlined as bl, FullscreenExitOutlined as Cl, FullscreenOutlined as xl, ReloadOutlined as Sl, CopyOutlined as wl } from "@ant-design/icons-vue";
12
+ import { defineComponent as ne, ref as P, watch as N, cloneVNode as Ve, reactive as be, watchEffect as Ne, computed as x, createVNode as i, Fragment as ke, isVNode as U, mergeProps as M, h as Tt, unref as p, createTextVNode as Ae, renderSlot as nl, onActivated as ol, nextTick as il, getCurrentInstance as ul, toRaw as ve, onUnmounted as sl, onDeactivated as rl, onMounted as cl, toRef as se, isRef as _e, isReactive as dl } from "vue";
13
+ import { UpOutlined as fl, DownOutlined as hl, SettingOutlined as $t, VerticalAlignTopOutlined as ml, VerticalAlignMiddleOutlined as vl, VerticalAlignBottomOutlined as gl, InfoCircleOutlined as pl, ColumnHeightOutlined as yl, FullscreenExitOutlined as bl, FullscreenOutlined as Cl, ReloadOutlined as xl, CopyOutlined as Sl } from "@ant-design/icons-vue";
14
14
  import { useProAppContext as Rt } from "@gx-design-vue/pro-app";
15
- import { useContext as Tl, getProSolidColor as Ft, useProStyle as He, unit as yt, useProConfigContext as $l } from "@gx-design-vue/pro-provider";
16
- import { isArray as V, isBoolean as le, classNames as re, isNumber as De, filterEmpty as Bt, getPrefixCls as lt, getRandomNumber as tt, genColumnKey as Pt, isDeepEqualReact as Ye, cloneDeep as Z, compareArray as Rl, isObject as q, runFunction as Fl, convertValueBoolean as we, getSortIndex as Bl, isFunction as Ie, handleCurrentPage as Pl, deepMerge as It, arrayRepeat as Il, isString as kt, handleShowIndex as kl, getSlot as bt, handleEmptyField as Al, getSlotsProps as Ol, getTextWidth as Dl, getSlotVNode as jl } from "@gx-design-vue/pro-utils";
17
- import { useDebounceFn as Nl, useFullscreen as At, useWindowSize as El, toReactive as Ml } from "@vueuse/core";
18
- import { Grid as at, DatePicker as Ot, Space as ge, Input as Ke, TimePicker as Kl, TreeSelect as zl, Select as Yl, InputNumber as Qe, Button as Ct, Spin as Dt, Popover as Ll, Checkbox as Wl, Tooltip as de, Tree as Vl, Dropdown as Hl, Menu as ze, theme as ql, Pagination as Gl, Table as _l, message as Ql, Empty as Xl } from "ant-design-vue";
19
- import { omit as je, cloneDeep as jt, pick as xt } from "lodash-es";
20
- import { tableProps as Ul } from "ant-design-vue/es/table/Table";
15
+ import { useContext as wl, useProStyle as He, unit as yt, useProConfigContext as Tl } from "@gx-design-vue/pro-provider";
16
+ import { isArray as V, isBoolean as le, classNames as re, isNumber as De, filterEmpty as Ft, getPrefixCls as lt, getRandomNumber as tt, genColumnKey as Bt, isDeepEqualReact as Ye, cloneDeep as Z, compareArray as $l, isObject as q, runFunction as Rl, convertValueBoolean as we, getSortIndex as Fl, isFunction as Ie, handleCurrentPage as Bl, deepMerge as Pt, arrayRepeat as Pl, isString as It, handleShowIndex as Il, getSlot as bt, handleEmptyField as kl, getSlotsProps as Al, getTextWidth as Ol, getSlotVNode as Dl } from "@gx-design-vue/pro-utils";
17
+ import { useDebounceFn as jl, useFullscreen as kt, useWindowSize as Nl, toReactive as El } from "@vueuse/core";
18
+ import { Grid as at, DatePicker as At, Space as ge, Input as Ke, TimePicker as Ml, TreeSelect as Kl, Select as zl, InputNumber as Qe, Button as Ct, Spin as Ot, Popover as Yl, Checkbox as Ll, Tooltip as de, Tree as Wl, Dropdown as Vl, Menu as ze, theme as Hl, Pagination as ql, Table as Gl, message as _l, Empty as Ql } from "ant-design-vue";
19
+ import { omit as je, cloneDeep as Dt, pick as xt } from "lodash-es";
20
+ import { tableProps as Xl } from "ant-design-vue/es/table/Table";
21
21
  import "ant-design-vue/es/_util/props-util";
22
22
  import { warning as Le } from "ant-design-vue/es/vc-util/warning";
23
23
  import H from "dayjs";
24
- import { useMemo as We, tryOnUnmounted as Jl } from "@gx-design-vue/pro-hooks";
25
- const Zl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered", "loading"], Nt = {
26
- ...je(Ul(), Zl),
24
+ import { useMemo as We, tryOnUnmounted as Ul } from "@gx-design-vue/pro-hooks";
25
+ const Jl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered", "loading"], jt = {
26
+ ...je(Xl(), Jl),
27
27
  transformCellText: Function,
28
28
  /**
29
29
  * @Author gx12358
@@ -43,8 +43,8 @@ const Zl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
43
43
  type: Object,
44
44
  default: void 0
45
45
  }
46
- }, { provideContext: ea, useInjectContext: fe } = Tl("pro-table"), ce = {
47
- ...Nt,
46
+ }, { provideContext: Zl, useInjectContext: fe } = wl("pro-table"), ce = {
47
+ ...jt,
48
48
  rowSelection: {
49
49
  type: Object,
50
50
  default: void 0
@@ -320,7 +320,7 @@ const Zl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
320
320
  onRequestError: Function,
321
321
  onBeforeSearchSubmit: Function,
322
322
  onColumnsStateChange: Function
323
- }, ta = /* @__PURE__ */ ne({
323
+ }, ea = /* @__PURE__ */ ne({
324
324
  name: "RequestSelect",
325
325
  props: {
326
326
  fetch: Function,
@@ -341,12 +341,12 @@ const Zl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
341
341
  setup(e, {
342
342
  slots: a
343
343
  }) {
344
- const l = P([]), n = P(e.loading ?? !1), u = P("init"), o = Nl(e.fetch, e.debounceTime || 10);
344
+ const l = P([]), n = P(e.loading ?? !1), u = P("init"), o = jl(e.fetch, e.debounceTime || 10);
345
345
  return N([() => e.fetch, () => e.manual], () => {
346
346
  if (u.value !== "init" && n.value) return;
347
347
  const d = e.manual ?? !1;
348
348
  e.fetch && !d && (n.value = !0, o().then((h) => {
349
- l.value = jt(h), u.value = "success";
349
+ l.value = Dt(h), u.value = "success";
350
350
  }).catch((h) => {
351
351
  console.error(h), u.value = "error";
352
352
  }).finally(() => {
@@ -363,7 +363,7 @@ const Zl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
363
363
  };
364
364
  }
365
365
  });
366
- function la(e, a) {
366
+ function ta(e, a) {
367
367
  const l = be({});
368
368
  function n() {
369
369
  Object.keys(e).forEach((d) => {
@@ -387,7 +387,7 @@ function la(e, a) {
387
387
  changeFormState: u
388
388
  };
389
389
  }
390
- const aa = (e) => ({
390
+ const la = (e) => ({
391
391
  [`${e.componentCls}-search`]: {
392
392
  position: "relative",
393
393
  display: "flex",
@@ -400,7 +400,7 @@ const aa = (e) => ({
400
400
  border: `${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,
401
401
  borderRadius: e.borderRadiusLG,
402
402
  marginBottom: e.marginLG,
403
- backgroundColor: Ft(e, e.colorBgContainer)
403
+ backgroundColor: e.colorBgContainer
404
404
  },
405
405
  "&-collapse-buttons": {
406
406
  display: "flex",
@@ -498,25 +498,25 @@ const St = (e, a, l = "string") => {
498
498
  return [H(n), H(u)];
499
499
  }
500
500
  };
501
- function na(e) {
501
+ function aa(e) {
502
502
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !U(e);
503
503
  }
504
504
  const {
505
- useBreakpoint: oa
505
+ useBreakpoint: na
506
506
  } = at, {
507
- MonthPicker: ia,
508
- RangePicker: ua,
509
- YearPicker: sa,
510
- WeekPicker: ra,
511
- QuarterPicker: ca
512
- } = Ot;
513
- function da(e) {
507
+ MonthPicker: oa,
508
+ RangePicker: ia,
509
+ YearPicker: ua,
510
+ WeekPicker: sa,
511
+ QuarterPicker: ra
512
+ } = At;
513
+ function ca(e) {
514
514
  let a = e.reduce((l, n) => n.order !== void 0 ? Math.max(l, n.order) : l, 0);
515
515
  return e.forEach((l) => {
516
516
  l.order === void 0 && (a += 1, l.order = a);
517
517
  }), e.sort((l, n) => l.order - n.order), e;
518
518
  }
519
- const fa = {
519
+ const da = {
520
520
  modal: ce.modalScroll,
521
521
  searchMap: {
522
522
  type: Array,
@@ -527,9 +527,9 @@ const fa = {
527
527
  prefixCls: String,
528
528
  defaultParams: Object,
529
529
  onSearch: Function
530
- }, Et = /* @__PURE__ */ ne({
530
+ }, Nt = /* @__PURE__ */ ne({
531
531
  name: "ProTableForm",
532
- props: fa,
532
+ props: da,
533
533
  setup(e, {
534
534
  slots: a,
535
535
  expose: l
@@ -537,7 +537,7 @@ const fa = {
537
537
  const {
538
538
  wrapSSR: n,
539
539
  hashId: u
540
- } = He("ProTableForm", [aa], e.prefixCls), o = Rt(), d = oa(), {
540
+ } = He("ProTableForm", [la], e.prefixCls), o = Rt(), d = na(), {
541
541
  manualSearch: h,
542
542
  searchConfig: C,
543
543
  searchActions: T
@@ -545,7 +545,7 @@ const fa = {
545
545
  formState: s,
546
546
  resetFormState: y,
547
547
  changeFormState: c
548
- } = la(e.defaultParams || {}, e.searchMap || []), m = P(C.value?.collapsed ?? C.value?.defaultCollapsed), b = x(() => le(T.value?.reset) ? T.value?.reset : h.value), v = x(() => I(C.value?.span)), F = x(() => C.value?.label);
548
+ } = ta(e.defaultParams || {}, e.searchMap || []), m = P(C.value?.collapsed ?? C.value?.defaultCollapsed), b = x(() => le(T.value?.reset) ? T.value?.reset : h.value), v = x(() => I(C.value?.span)), F = x(() => C.value?.label);
549
549
  N(() => C.value?.collapsed, (t) => {
550
550
  m.value = t;
551
551
  });
@@ -569,7 +569,7 @@ const fa = {
569
569
  ...R,
570
570
  marginRight: "2%"
571
571
  }, L = () => {
572
- const t = jt(s), f = e.searchMap.find((w) => w.valueType === "text") || "", R = e.searchMap.find((w) => w.valueType === "dateRange") || "", $ = e.searchMap.find((w) => w.valueType === "treeSelect");
572
+ const t = Dt(s), f = e.searchMap.find((w) => w.valueType === "text") || "", R = e.searchMap.find((w) => w.valueType === "dateRange") || "", $ = e.searchMap.find((w) => w.valueType === "treeSelect");
573
573
  return f && (t[f.name] = s[f.name] || f.initialValue || ""), R && (t[R.rangeStartName || "start"] = t[R.name] ? t[R.name][0] : "", t[R.rangeEndName || "end"] = t[R.name] ? t[R.name][1] : "", delete t[R.name]), $ && ($?.name && V(s[$?.name]) && (t[$.name] = s[$.name].length ? s[$.name].map((w) => w[$.valueKey === "text" ? "label" : "value"]).join() : ""), $?.name && V(t[$?.name]) && (t[$.name] = t[$.name].length ? t[$.name].map((w) => w[$.valueKey === "text" ? "label" : "value"]) : "")), t;
574
574
  }, W = (t = !1, f) => {
575
575
  (!h.value || t) && e.onSearch?.(L(), t ? f ? "reset" : "submit" : void 0);
@@ -624,7 +624,7 @@ const fa = {
624
624
  const D = () => {
625
625
  const t = o?.emptyText?.value;
626
626
  if (t) {
627
- const f = U(t), R = f ? Tt(t) : Bt(t || []);
627
+ const f = U(t), R = f ? Tt(t) : Ft(t || []);
628
628
  return i("div", {
629
629
  class: re(`${e.prefixCls}-search-empty-text`, u.value)
630
630
  }, [f ? R : V(R) ? R.map(($) => Ve($)) : void 0]);
@@ -654,19 +654,19 @@ const fa = {
654
654
  default: () => [ee(), C.value?.collapseRender !== !1 && R && i(ke, null, [typeof C.value?.collapseRender == "function" ? C.value?.collapseRender(f) : i("span", {
655
655
  class: `${e.prefixCls}-a ${u.value}`,
656
656
  onClick: () => k(!f)
657
- }, [f ? "收起" : "展开", f ? i(hl, null, null) : i(ml, null, null)])])]
657
+ }, [f ? "收起" : "展开", f ? i(fl, null, null) : i(hl, null, null)])])]
658
658
  })]);
659
659
  function ie(t) {
660
- return t === void 0 ? void 0 : t ? i(Dt, {
660
+ return t === void 0 ? void 0 : t ? i(Ot, {
661
661
  size: "small",
662
662
  indicator: o?.indicator?.value
663
663
  }, null) : D();
664
664
  }
665
665
  function ae(t, f) {
666
- return i(ta, M(t.request, {
666
+ return i(ea, M(t.request, {
667
667
  loading: t.loading,
668
668
  notFoundContent: ie
669
- }), na(f) ? f : {
669
+ }), aa(f) ? f : {
670
670
  default: () => [f]
671
671
  });
672
672
  }
@@ -721,7 +721,7 @@ const fa = {
721
721
  });
722
722
  break;
723
723
  case "select":
724
- w = i(Yl, M({
724
+ w = i(zl, M({
725
725
  style: {
726
726
  width: "100%"
727
727
  },
@@ -737,7 +737,7 @@ const fa = {
737
737
  }, $), null);
738
738
  break;
739
739
  case "treeSelect":
740
- w = i(zl, M({
740
+ w = i(Kl, M({
741
741
  style: {
742
742
  width: "100%"
743
743
  },
@@ -751,7 +751,7 @@ const fa = {
751
751
  }, $), null);
752
752
  break;
753
753
  case "date":
754
- f = i(Ot, M({
754
+ f = i(At, M({
755
755
  style: {
756
756
  width: "100%"
757
757
  },
@@ -766,7 +766,7 @@ const fa = {
766
766
  }, $), null);
767
767
  break;
768
768
  case "dateWeek":
769
- f = i(ra, M({
769
+ f = i(sa, M({
770
770
  style: {
771
771
  width: "100%"
772
772
  },
@@ -778,7 +778,7 @@ const fa = {
778
778
  }, $), null);
779
779
  break;
780
780
  case "dateMonth":
781
- f = i(ia, M({
781
+ f = i(oa, M({
782
782
  style: {
783
783
  width: "100%"
784
784
  },
@@ -790,7 +790,7 @@ const fa = {
790
790
  }, $), null);
791
791
  break;
792
792
  case "dateQuarter":
793
- f = i(ca, M({
793
+ f = i(ra, M({
794
794
  style: {
795
795
  width: "100%"
796
796
  },
@@ -802,7 +802,7 @@ const fa = {
802
802
  }, $), null);
803
803
  break;
804
804
  case "dateYear":
805
- f = i(sa, M({
805
+ f = i(ua, M({
806
806
  style: {
807
807
  width: "100%"
808
808
  },
@@ -814,7 +814,7 @@ const fa = {
814
814
  }, $), null);
815
815
  break;
816
816
  case "dateRange":
817
- f = i(ua, M({
817
+ f = i(ia, M({
818
818
  style: {
819
819
  width: "100%"
820
820
  },
@@ -827,7 +827,7 @@ const fa = {
827
827
  }, $), null);
828
828
  break;
829
829
  case "time":
830
- f = i(Kl, M({
830
+ f = i(Ml, M({
831
831
  style: {
832
832
  width: "100%"
833
833
  },
@@ -864,7 +864,7 @@ const fa = {
864
864
  }, Te = () => {
865
865
  let t = a.default?.() || [];
866
866
  t.length === 1 && t[0].type === "template" && (t = t[0]?.children || []);
867
- const f = da([...e.searchMap, ...t.map(($) => ({
867
+ const f = ca([...e.searchMap, ...t.map(($) => ({
868
868
  ...$,
869
869
  order: $.props?.order || void 0
870
870
  }))]), R = {
@@ -906,11 +906,11 @@ const fa = {
906
906
  };
907
907
  }
908
908
  });
909
- Et.inheritAttrs = !1;
909
+ Nt.inheritAttrs = !1;
910
910
  const Oe = (e) => {
911
911
  const a = P(null);
912
912
  return a.value = e, (...l) => a.value?.(...l);
913
- }, ha = (e) => ({
913
+ }, fa = (e) => ({
914
914
  [`${e.componentCls}`]: {
915
915
  width: "auto",
916
916
  "&-title": {
@@ -1023,7 +1023,7 @@ const Oe = (e) => {
1023
1023
  }
1024
1024
  }, [u.default?.()])]
1025
1025
  }) : null;
1026
- }, ma = /* @__PURE__ */ ne({
1026
+ }, ha = /* @__PURE__ */ ne({
1027
1027
  props: {
1028
1028
  treeKey: String,
1029
1029
  hashId: String,
@@ -1045,21 +1045,21 @@ const Oe = (e) => {
1045
1045
  title: "固定在列首",
1046
1046
  show: e.fixed !== "left" && !n.value
1047
1047
  }, {
1048
- default: () => [i(vl, null, null)]
1048
+ default: () => [i(ml, null, null)]
1049
1049
  }), i(Ue, {
1050
1050
  treeKey: e.treeKey || "",
1051
1051
  fixed: void 0,
1052
1052
  title: "不固定",
1053
1053
  show: !!e.fixed && !n.value
1054
1054
  }, {
1055
- default: () => [i(gl, null, null)]
1055
+ default: () => [i(vl, null, null)]
1056
1056
  }), i(Ue, {
1057
1057
  treeKey: e.treeKey || "",
1058
1058
  fixed: "right",
1059
1059
  title: "固定在列尾",
1060
1060
  show: e.fixed !== "right"
1061
1061
  }, {
1062
- default: () => [i(pl, null, null)]
1062
+ default: () => [i(gl, null, null)]
1063
1063
  })]);
1064
1064
  return i("span", {
1065
1065
  class: [`${e.className}-list-item`, e.hashId],
@@ -1139,14 +1139,14 @@ const Oe = (e) => {
1139
1139
  h?.setColumnsMap(I, "show");
1140
1140
  }), y = (c) => {
1141
1141
  const m = p(o).find((b) => b.uuid === c.key);
1142
- return c.title || ol(d, "headerCell", {
1142
+ return c.title || nl(d, "headerCell", {
1143
1143
  title: m.title,
1144
1144
  column: m
1145
1145
  }, () => [m.title]);
1146
1146
  };
1147
1147
  return () => l.value ? i(ke, null, [e.showTitle && i("span", {
1148
1148
  class: [`${e.className}-list-title`, e.hashId]
1149
- }, [e.title]), i(Vl, {
1149
+ }, [e.title]), i(Wl, {
1150
1150
  key: a.value,
1151
1151
  draggable: e.draggable && !!n.value?.length && n.value?.length > 1,
1152
1152
  checkable: e.checkable,
@@ -1171,7 +1171,7 @@ const Oe = (e) => {
1171
1171
  title: y(c),
1172
1172
  autoScroll: h?.autoScroll?.value
1173
1173
  };
1174
- return i(ma, M({
1174
+ return i(ha, M({
1175
1175
  hashId: e.hashId,
1176
1176
  className: e.className
1177
1177
  }, m, {
@@ -1180,7 +1180,7 @@ const Oe = (e) => {
1180
1180
  }
1181
1181
  })]) : null;
1182
1182
  }
1183
- }), va = /* @__PURE__ */ ne({
1183
+ }), ma = /* @__PURE__ */ ne({
1184
1184
  props: {
1185
1185
  hashId: String,
1186
1186
  className: String,
@@ -1247,7 +1247,7 @@ const Oe = (e) => {
1247
1247
  className: e.className
1248
1248
  }, null)]);
1249
1249
  }
1250
- }), ga = /* @__PURE__ */ ne({
1250
+ }), va = /* @__PURE__ */ ne({
1251
1251
  props: {
1252
1252
  draggable: {
1253
1253
  type: Boolean,
@@ -1267,7 +1267,7 @@ const Oe = (e) => {
1267
1267
  }), {
1268
1268
  wrapSSR: l,
1269
1269
  hashId: n
1270
- } = He("ColumnSetting", [ha], a), {
1270
+ } = He("ColumnSetting", [fa], a), {
1271
1271
  columns: u,
1272
1272
  settingsAction: o
1273
1273
  } = fe(), d = Oe((y = !0) => {
@@ -1278,7 +1278,7 @@ const Oe = (e) => {
1278
1278
  index: I,
1279
1279
  children: k
1280
1280
  }) => {
1281
- const E = Pt(v, I);
1281
+ const E = Bt(v, I);
1282
1282
  E && (c[E] = {
1283
1283
  show: y,
1284
1284
  fixed: F
@@ -1294,11 +1294,11 @@ const Oe = (e) => {
1294
1294
  // @ts-ignore
1295
1295
  Object.values(o?.columnsMap).filter((y) => !y || y.show === !1)
1296
1296
  )), s = x(() => p(T).length > 0 && p(T).length !== u.value.length);
1297
- return () => l(i(Ll, {
1297
+ return () => l(i(Yl, {
1298
1298
  arrowPointAtCenter: !0,
1299
1299
  title: i("div", {
1300
1300
  class: [`${a}-title`, n.value]
1301
- }, [i(Wl, {
1301
+ }, [i(Ll, {
1302
1302
  indeterminate: s.value,
1303
1303
  checked: p(T).length === 0 && p(T).length !== u.value.length,
1304
1304
  onChange: (y) => h(y)
@@ -1316,7 +1316,7 @@ const Oe = (e) => {
1316
1316
  overlayClassName: `${a}-overlay ${n.value}`,
1317
1317
  trigger: "click",
1318
1318
  placement: "bottomRight",
1319
- content: i(va, {
1319
+ content: i(ma, {
1320
1320
  hashId: n.value,
1321
1321
  checkable: e.checkable ?? !0,
1322
1322
  draggable: e.draggable ?? !0,
@@ -1330,7 +1330,7 @@ const Oe = (e) => {
1330
1330
  })]
1331
1331
  }));
1332
1332
  }
1333
- }), pa = (e) => ({
1333
+ }), ga = (e) => ({
1334
1334
  [`${e.componentCls}`]: {
1335
1335
  lineHeight: 1,
1336
1336
  "&-container": {
@@ -1376,9 +1376,9 @@ function wt(e) {
1376
1376
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !U(e);
1377
1377
  }
1378
1378
  const {
1379
- useBreakpoint: ya
1379
+ useBreakpoint: pa
1380
1380
  } = at;
1381
- function ba(e) {
1381
+ function ya(e) {
1382
1382
  if (U(e))
1383
1383
  return e;
1384
1384
  if (e) {
@@ -1401,7 +1401,7 @@ function ba(e) {
1401
1401
  }
1402
1402
  return null;
1403
1403
  }
1404
- const Mt = /* @__PURE__ */ ne({
1404
+ const Et = /* @__PURE__ */ ne({
1405
1405
  props: {
1406
1406
  actions: ce.toolBarBtn,
1407
1407
  settings: [Array],
@@ -1415,7 +1415,7 @@ const Mt = /* @__PURE__ */ ne({
1415
1415
  const {
1416
1416
  wrapSSR: a,
1417
1417
  hashId: l
1418
- } = He("ListToolBar", [pa], e.prefixCls), n = ya(), {
1418
+ } = He("ListToolBar", [ga], e.prefixCls), n = pa(), {
1419
1419
  isMobile: u
1420
1420
  } = fe(), o = x(() => !!(e.titleTip || e.headerTitle || e.actions?.length)), d = x(() => !!(e.settings?.length || e.optionsExtra)), h = x(() => !!(e.titleTip || e.headerTitle)), C = x(() => {
1421
1421
  let c;
@@ -1439,7 +1439,7 @@ const Mt = /* @__PURE__ */ ne({
1439
1439
  }, [e.headerTitle, e.titleTip && i(de, {
1440
1440
  title: e.titleTipText
1441
1441
  }, {
1442
- default: () => [le(e.titleTip) && e.titleTip ? i(yl, null, null) : e.titleTip]
1442
+ default: () => [le(e.titleTip) && e.titleTip ? i(pl, null, null) : e.titleTip]
1443
1443
  })]), C.value && i("div", {
1444
1444
  class: `${e.prefixCls}-actions ${l.value}`
1445
1445
  }, [C.value])]
@@ -1462,7 +1462,7 @@ const Mt = /* @__PURE__ */ ne({
1462
1462
  align: "center",
1463
1463
  class: `${e.prefixCls}-setting-items`
1464
1464
  }, wt(c = e.settings.map((m, b) => {
1465
- const v = ba(m);
1465
+ const v = ya(m);
1466
1466
  return i("div", {
1467
1467
  key: b,
1468
1468
  class: `${e.prefixCls}-setting-item`
@@ -1487,13 +1487,13 @@ const Mt = /* @__PURE__ */ ne({
1487
1487
  }, [y.value]));
1488
1488
  }
1489
1489
  });
1490
- Mt.inheritAttrs = !1;
1491
- const Ca = () => {
1490
+ Et.inheritAttrs = !1;
1491
+ const ba = () => {
1492
1492
  const {
1493
1493
  action: e,
1494
1494
  tableSize: a
1495
1495
  } = fe();
1496
- return i(Hl, {
1496
+ return i(Vl, {
1497
1497
  overlay: i(ze, {
1498
1498
  selectedKeys: [a.value],
1499
1499
  onClick: ({
@@ -1524,34 +1524,34 @@ const Ca = () => {
1524
1524
  default: () => [i(de, {
1525
1525
  title: "表格密度"
1526
1526
  }, {
1527
- default: () => [i(bl, null, null)]
1527
+ default: () => [i(yl, null, null)]
1528
1528
  })]
1529
1529
  });
1530
- }, Kt = /* @__PURE__ */ ne({
1530
+ }, Mt = /* @__PURE__ */ ne({
1531
1531
  setup() {
1532
1532
  const {
1533
1533
  isFullscreen: e
1534
- } = At();
1534
+ } = kt();
1535
1535
  return () => e.value ? i(de, {
1536
1536
  title: "退出全屏"
1537
1537
  }, {
1538
- default: () => [i(Cl, null, null)]
1538
+ default: () => [i(bl, null, null)]
1539
1539
  }) : i(de, {
1540
1540
  title: "全屏"
1541
1541
  }, {
1542
- default: () => [i(xl, null, null)]
1542
+ default: () => [i(Cl, null, null)]
1543
1543
  });
1544
1544
  }
1545
1545
  });
1546
- function xa() {
1546
+ function Ca() {
1547
1547
  return {
1548
1548
  reload: {
1549
1549
  text: "刷新",
1550
- icon: i(Sl, null, null)
1550
+ icon: i(xl, null, null)
1551
1551
  },
1552
1552
  density: {
1553
1553
  text: "表格密度",
1554
- icon: i(Ca, null, null)
1554
+ icon: i(ba, null, null)
1555
1555
  },
1556
1556
  setting: {
1557
1557
  text: "列设置",
@@ -1559,11 +1559,11 @@ function xa() {
1559
1559
  },
1560
1560
  fullScreen: {
1561
1561
  text: "全屏",
1562
- icon: i(Kt, null, null)
1562
+ icon: i(Mt, null, null)
1563
1563
  }
1564
1564
  };
1565
1565
  }
1566
- function Sa(e, a) {
1566
+ function xa(e, a) {
1567
1567
  return Object.keys(e).filter((l) => l).map((l) => {
1568
1568
  const n = e[l];
1569
1569
  if (!n)
@@ -1571,15 +1571,15 @@ function Sa(e, a) {
1571
1571
  let u = n === !0 ? a[l] : () => n?.();
1572
1572
  if (typeof u != "function" && (u = () => {
1573
1573
  }), l === "setting")
1574
- return i(ga, M(e[l], {
1574
+ return i(va, M(e[l], {
1575
1575
  key: l
1576
1576
  }), null);
1577
1577
  if (l === "fullScreen")
1578
1578
  return i("span", {
1579
1579
  key: l,
1580
1580
  onClick: u
1581
- }, [i(Kt, null, null)]);
1582
- const o = xa()[l];
1581
+ }, [i(Mt, null, null)]);
1582
+ const o = Ca()[l];
1583
1583
  return o ? i("span", {
1584
1584
  key: l,
1585
1585
  onClick: u
@@ -1590,7 +1590,7 @@ function Sa(e, a) {
1590
1590
  })]) : null;
1591
1591
  }).filter((l) => l);
1592
1592
  }
1593
- const wa = {
1593
+ const Sa = {
1594
1594
  options: [Boolean, Object, Array],
1595
1595
  titleTip: [Function, Boolean, Object, String],
1596
1596
  settingExtra: [Function, Boolean, Object, Array],
@@ -1598,8 +1598,8 @@ const wa = {
1598
1598
  titleTipText: [String],
1599
1599
  toolBarBtn: [Function, Boolean, Object, Array],
1600
1600
  headerTitle: [Function, Boolean, Object, Array, String]
1601
- }, Ta = /* @__PURE__ */ ne({
1602
- props: wa,
1601
+ }, wa = /* @__PURE__ */ ne({
1602
+ props: Sa,
1603
1603
  inheritAttrs: !1,
1604
1604
  setup(e) {
1605
1605
  const a = lt({
@@ -1619,13 +1619,13 @@ const wa = {
1619
1619
  ...u,
1620
1620
  ...e.options
1621
1621
  };
1622
- return o.setting !== !1 && e.settingExtra && (o.setting = {}, o.setting.extra = e.settingExtra), Sa(o, {
1622
+ return o.setting !== !1 && e.settingExtra && (o.setting = {}, o.setting.extra = e.settingExtra), xa(o, {
1623
1623
  ...u
1624
1624
  });
1625
1625
  }, [() => l, () => e.options]);
1626
1626
  return () => {
1627
1627
  const u = e.toolBarBtn || [];
1628
- return i(Mt, {
1628
+ return i(Et, {
1629
1629
  prefixCls: a,
1630
1630
  optionsExtra: e.optionsExtra,
1631
1631
  headerTitle: e.headerTitle,
@@ -1637,13 +1637,13 @@ const wa = {
1637
1637
  };
1638
1638
  }
1639
1639
  });
1640
- function $a(e) {
1641
- return sl();
1640
+ function Ta(e) {
1641
+ return ul();
1642
1642
  }
1643
- function Ra(e, a = !0, l) {
1644
- $a() ? il(e, l) : a ? e() : ul(e);
1643
+ function $a(e, a = !0, l) {
1644
+ Ta() ? ol(e, l) : a ? e() : il(e);
1645
1645
  }
1646
- function Fa(e) {
1646
+ function Ra(e) {
1647
1647
  const a = x(() => e.draggable), l = x(() => e.neverScroll), n = x(() => e.autoScroll);
1648
1648
  return {
1649
1649
  draggable: a,
@@ -1651,7 +1651,7 @@ function Fa(e) {
1651
1651
  autoScroll: n
1652
1652
  };
1653
1653
  }
1654
- function Ba({ scroll: e, columns: a, breakpoint: l, draggable: n, autoScroll: u, neverScroll: o }) {
1654
+ function Fa({ scroll: e, columns: a, breakpoint: l, draggable: n, autoScroll: u, neverScroll: o }) {
1655
1655
  const d = P([]), h = P([]);
1656
1656
  N([
1657
1657
  () => e.value,
@@ -1677,7 +1677,7 @@ function Ba({ scroll: e, columns: a, breakpoint: l, draggable: n, autoScroll: u,
1677
1677
  ];
1678
1678
  });
1679
1679
  function T(b) {
1680
- return b.sort((v, F) => Rl(v, F, "order", 0));
1680
+ return b.sort((v, F) => $l(v, F, "order", 0));
1681
1681
  }
1682
1682
  function s(b) {
1683
1683
  return Z(b).map((v, F) => {
@@ -1722,11 +1722,11 @@ function Ba({ scroll: e, columns: a, breakpoint: l, draggable: n, autoScroll: u,
1722
1722
  resizeColumnWidth: y
1723
1723
  };
1724
1724
  }
1725
- function Pa({ columns: e, columnsState: a, changeColumns: l }) {
1725
+ function Ba({ columns: e, columnsState: a, changeColumns: l }) {
1726
1726
  const n = P(void 0), u = be({}), o = be({}), d = be({}), h = P([]);
1727
1727
  N(() => e.value, () => {
1728
1728
  p(e)?.forEach(({ show: y, key: c, fixed: m }, b) => {
1729
- const v = Pt(c, b);
1729
+ const v = Bt(c, b);
1730
1730
  v && (d[v] = { show: y === void 0 ? !0 : y, fixed: m });
1731
1731
  });
1732
1732
  const s = p(e).map((y) => y.key);
@@ -1753,7 +1753,7 @@ function Pa({ columns: e, columnsState: a, changeColumns: l }) {
1753
1753
  setSortKeyColumns: T
1754
1754
  };
1755
1755
  }
1756
- function Ia(e, a) {
1756
+ function Pa(e, a) {
1757
1757
  const l = x(() => a), n = P(), u = P(e);
1758
1758
  function o() {
1759
1759
  n.value && clearTimeout(n.value);
@@ -1765,12 +1765,12 @@ function Ia(e, a) {
1765
1765
  }, l.value);
1766
1766
  }));
1767
1767
  }
1768
- return Jl(o), {
1768
+ return Ul(o), {
1769
1769
  cancel: o,
1770
1770
  run: d
1771
1771
  };
1772
1772
  }
1773
- function ka(e) {
1773
+ function Ia(e) {
1774
1774
  const a = x(() => e.rowKey), l = x(() => e.polling), n = x(() => e.debounceTime), u = x(() => e.dataSource);
1775
1775
  return {
1776
1776
  rowKey: a,
@@ -1781,7 +1781,7 @@ function ka(e) {
1781
1781
  dataSource: u
1782
1782
  };
1783
1783
  }
1784
- function Aa({ rowKey: e, polling: a, request: l, postData: n, dataSource: u, waitRequest: o, debounceTime: d }, { search: h, columns: C, loading: T, setLoading: s, setColumns: y, removeRowKeys: c, syncSelectedRows: m, formParamsRef: b, setPagination: v, paginationInfo: F, onBeforeSearchSubmit: I, hasCustomRender: k }, E) {
1784
+ function ka({ rowKey: e, polling: a, request: l, postData: n, dataSource: u, waitRequest: o, debounceTime: d }, { search: h, columns: C, loading: T, setLoading: s, setColumns: y, removeRowKeys: c, syncSelectedRows: m, formParamsRef: b, setPagination: v, paginationInfo: F, onBeforeSearchSubmit: I, hasCustomRender: k }, E) {
1785
1785
  const L = P(), W = P(!0), O = P(!1), j = P(!1), D = P([]), ee = P(), oe = x(() => q(h.value) ? h.value?.manualRequest : !1), ie = async (w = {}) => {
1786
1786
  const { pagination: r, filters: K = {}, sorter: G = {}, removeKeys: te = [], isPolling: Ce = !1 } = w;
1787
1787
  if (!l || !Ie(l) || p(o) && T.value || O.value)
@@ -1797,7 +1797,7 @@ function Aa({ rowKey: e, polling: a, request: l, postData: n, dataSource: u, wai
1797
1797
  Y = {};
1798
1798
  else {
1799
1799
  const { current: _ = 1, pageSize: ye = 10, total: J } = p(F) || {};
1800
- Y.pageNum = Pl({ current: _, pageSize: ye, total: J }, te.length), te.length && c(te), Y.pageSize = ye;
1800
+ Y.pageNum = Bl({ current: _, pageSize: ye, total: J }, te.length), te.length && c(te), Y.pageSize = ye;
1801
1801
  }
1802
1802
  const Ee = q(G) ? [G] : G;
1803
1803
  Ee.forEach((_) => {
@@ -1826,16 +1826,16 @@ function Aa({ rowKey: e, polling: a, request: l, postData: n, dataSource: u, wai
1826
1826
  W.value = !1, s(!1);
1827
1827
  }
1828
1828
  return [];
1829
- }, ae = Ia(async (w) => {
1829
+ }, ae = Pa(async (w) => {
1830
1830
  ee.value && clearTimeout(ee.value);
1831
- const r = await ie(w), K = Fl(a.value, r);
1831
+ const r = await ie(w), K = Rl(a.value, r);
1832
1832
  return K && !L.value && (ee.value = setTimeout(() => {
1833
1833
  ae.run({ ...w, isPolling: K });
1834
1834
  }, Math.max(K, 2e3))), r;
1835
1835
  }, d.value || 10);
1836
- rl(() => {
1836
+ sl(() => {
1837
1837
  L.value = !0, clearTimeout(ee.value);
1838
- }), cl(() => {
1838
+ }), rl(() => {
1839
1839
  L.value = !0, clearTimeout(ee.value);
1840
1840
  }), N(() => a.value, () => {
1841
1841
  a.value ? ae.run({ isPolling: !0 }) : clearTimeout(ee.value);
@@ -1863,7 +1863,7 @@ function Aa({ rowKey: e, polling: a, request: l, postData: n, dataSource: u, wai
1863
1863
  ae.run({ pagination: w, filters: r, sorter: K, extra: G, isPolling: !1 }), E("change", w, r, K, G);
1864
1864
  }
1865
1865
  function R(w) {
1866
- const r = Bl(Z(w), p(F.value));
1866
+ const r = Fl(Z(w), p(F.value));
1867
1867
  if (!Ye(r, D.value) && (D.value = r, !l || !Ie(l))) {
1868
1868
  const K = r.length || 0;
1869
1869
  K !== p(F)?.total && v({
@@ -1879,7 +1879,7 @@ function Aa({ rowKey: e, polling: a, request: l, postData: n, dataSource: u, wai
1879
1879
  const te = w ?? e.value, Ce = r?.[te] ?? K;
1880
1880
  switch (G) {
1881
1881
  case "update":
1882
- te && Ce && r && (D.value = D.value.map((Y) => Ce === Y[te] ? It(Y, r, {
1882
+ te && Ce && r && (D.value = D.value.map((Y) => Ce === Y[te] ? Pt(Y, r, {
1883
1883
  omitNil: !1,
1884
1884
  omitEmpty: !1
1885
1885
  }) : Y)), Le(!!r, "params is required");
@@ -1901,7 +1901,7 @@ function Aa({ rowKey: e, polling: a, request: l, postData: n, dataSource: u, wai
1901
1901
  }
1902
1902
  };
1903
1903
  }
1904
- function Oa({ emit: e, loading: a }) {
1904
+ function Aa({ emit: e, loading: a }) {
1905
1905
  const l = P(le(a.value) ? a.value : q(a.value) ? a.value?.spinning : !1);
1906
1906
  N(() => a.value, (o) => {
1907
1907
  l.value = le(o) ? o : q(o) ? o?.spinning : l.value;
@@ -1912,7 +1912,7 @@ function Oa({ emit: e, loading: a }) {
1912
1912
  }
1913
1913
  return { loadingComputed: n, loading: l, setLoading: u };
1914
1914
  }
1915
- function Da({
1915
+ function Oa({
1916
1916
  pagination: e,
1917
1917
  pageItemRender: a
1918
1918
  }) {
@@ -1955,7 +1955,7 @@ function Da({
1955
1955
  const d = {};
1956
1956
  Object.keys(o).forEach((h) => {
1957
1957
  Object.prototype.hasOwnProperty.call(o, h) && n.value[h] === o[h] || (d[h] = o[h]);
1958
- }), Object.keys(d).length > 0 && (Object.assign(n.value, d), ja(d) && Object.assign(l, d));
1958
+ }), Object.keys(d).length > 0 && (Object.assign(n.value, d), Da(d) && Object.assign(l, d));
1959
1959
  }
1960
1960
  }
1961
1961
  return {
@@ -1964,13 +1964,13 @@ function Da({
1964
1964
  setPagination: u
1965
1965
  };
1966
1966
  }
1967
- function ja(e) {
1967
+ function Da(e) {
1968
1968
  if (typeof e != "object" || e === null)
1969
1969
  return !1;
1970
1970
  const a = Object.keys(e);
1971
1971
  return a.length === 2 && a.includes("pageNum") && a.includes("pageSize");
1972
1972
  }
1973
- function Na(e, a) {
1973
+ function ja(e, a) {
1974
1974
  const l = P([]), n = P([]);
1975
1975
  N(() => a.value?.selectedRows, (s) => {
1976
1976
  n.value = Z(s || []);
@@ -1978,7 +1978,7 @@ function Na(e, a) {
1978
1978
  deep: !0,
1979
1979
  immediate: !0
1980
1980
  }), N(() => a.value?.selectedRowKeys, (s) => {
1981
- l.value = Il([...s || []]);
1981
+ l.value = Pl([...s || []]);
1982
1982
  }, {
1983
1983
  deep: !0,
1984
1984
  immediate: !0
@@ -2013,7 +2013,7 @@ function Na(e, a) {
2013
2013
  }
2014
2014
  };
2015
2015
  }
2016
- function Ea(e) {
2016
+ function Na(e) {
2017
2017
  const a = {};
2018
2018
  return e.forEach((l) => {
2019
2019
  let n = l.initialValue;
@@ -2021,7 +2021,7 @@ function Ea(e) {
2021
2021
  l.valueType ? !n && u.includes(l.valueType) ? n = void 0 : !n && o.includes(l.valueType) ? n = null : !n && d.includes(l.valueType) ? n = [] : n || (n = "") : n || (n = ""), l.name === "dateRange" ? (a[l.rangeStartName || "start"] = n ? n[0] : null, a[l.rangeEndName || "end"] = n ? n[1] : null) : l.name && (a[l.name] = n);
2022
2022
  }), a;
2023
2023
  }
2024
- function Ma({ searchMap: e, params: a, columns: l, setPagination: n }) {
2024
+ function Ea({ searchMap: e, params: a, columns: l, setPagination: n }) {
2025
2025
  const u = be({}), o = be({}), d = P([]);
2026
2026
  function h(s) {
2027
2027
  s.forEach((y) => {
@@ -2037,14 +2037,14 @@ function Ma({ searchMap: e, params: a, columns: l, setPagination: n }) {
2037
2037
  c.searchConfig && y.push(c.searchConfig);
2038
2038
  }), h(y)), s === "all" || s === "searchMap" || s === "columns") {
2039
2039
  n({ current: 1 });
2040
- const c = Ea(y);
2040
+ const c = Na(y);
2041
2041
  Object.assign(o, { ...c });
2042
2042
  for (const m in c)
2043
2043
  u[m] || (u[m] = c[m]);
2044
2044
  }
2045
2045
  (s === "all" || s === "params") && (n({ current: 1 }), Object.assign(u, a.value));
2046
2046
  };
2047
- dl(() => {
2047
+ cl(() => {
2048
2048
  C("all");
2049
2049
  }), N(() => a.value, () => {
2050
2050
  C("params");
@@ -2058,7 +2058,7 @@ function Ma({ searchMap: e, params: a, columns: l, setPagination: n }) {
2058
2058
  }
2059
2059
  return { formDataRef: d, formParamsRef: u, defaultParamsRef: o, setFormParams: T };
2060
2060
  }
2061
- function Ka(e) {
2061
+ function Ma(e) {
2062
2062
  const a = x(() => e.scroll), l = x(() => e.autoScroll), n = x(() => e.modalScroll), u = x(() => e.neverScroll), o = x(() => e.rowSelection), d = x(() => e.scrollBreakpoint);
2063
2063
  return {
2064
2064
  scroll: a,
@@ -2069,8 +2069,8 @@ function Ka(e) {
2069
2069
  scrollBreakpoint: d
2070
2070
  };
2071
2071
  }
2072
- function za({ scroll: e, columns: a, autoScroll: l, modalScroll: n, neverScroll: u, rowSelection: o, screens: d, innerWidth: h, scrollBreakpoint: C }) {
2073
- const T = x(() => p(C) ? De(p(C)) ? h.value > p(C) : kt(p(C)) ? d.value?.[p(C)] : d.value?.xl : d.value?.xl), s = x(() => {
2072
+ function Ka({ scroll: e, columns: a, autoScroll: l, modalScroll: n, neverScroll: u, rowSelection: o, screens: d, innerWidth: h, scrollBreakpoint: C }) {
2073
+ const T = x(() => p(C) ? De(p(C)) ? h.value > p(C) : It(p(C)) ? d.value?.[p(C)] : d.value?.xl : d.value?.xl), s = x(() => {
2074
2074
  let c = 0;
2075
2075
  const m = p(o) ? 60 : 0, b = 150, v = Z(p(a));
2076
2076
  v.forEach((k) => {
@@ -2083,7 +2083,7 @@ function za({ scroll: e, columns: a, autoScroll: l, modalScroll: n, neverScroll:
2083
2083
  y: p(e)?.y || (d.value?.xl ? 400 : 235)
2084
2084
  } : p(l) ? T.value ? {} : le(T.value) ? { x: p(s) } : {} : {}), breakpoint: T };
2085
2085
  }
2086
- function Ya({ size: e, emit: a }) {
2086
+ function za({ size: e, emit: a }) {
2087
2087
  const l = P("middle");
2088
2088
  Ne(() => {
2089
2089
  l.value = e.value;
@@ -2106,7 +2106,7 @@ const Ze = {
2106
2106
  backgroundColor: "transparent",
2107
2107
  borderRadius: 2
2108
2108
  }
2109
- }, La = (e) => {
2109
+ }, Ya = (e) => {
2110
2110
  const a = `${e.antCls}-table`;
2111
2111
  return {
2112
2112
  [e.componentCls]: {
@@ -2201,7 +2201,7 @@ const Ze = {
2201
2201
  paddingBlock: e.paddingMD,
2202
2202
  border: `${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,
2203
2203
  borderRadius: e.borderRadiusLG,
2204
- backgroundColor: Ft(e, e.colorBgContainer),
2204
+ backgroundColor: e.colorBgContainer,
2205
2205
  [`${e.antCls}-table-wrapper ${e.antCls}-table-pagination${e.antCls}-pagination`]: {
2206
2206
  marginBottom: 0
2207
2207
  }
@@ -2310,10 +2310,10 @@ const Ze = {
2310
2310
  }
2311
2311
  };
2312
2312
  };
2313
- function Wa(e) {
2313
+ function La(e) {
2314
2314
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !U(e);
2315
2315
  }
2316
- function Va(e, a, l, n) {
2316
+ function Wa(e, a, l, n) {
2317
2317
  if (!a) return e;
2318
2318
  let u = e;
2319
2319
  if (q(a)) {
@@ -2321,7 +2321,7 @@ function Va(e, a, l, n) {
2321
2321
  return i(o, M(a?.attr || {}, {
2322
2322
  class: [a.class, a.node === "a" ? `${l}-a` : ""],
2323
2323
  onClick: a.click
2324
- }), Wa(e) ? e : {
2324
+ }), La(e) ? e : {
2325
2325
  default: () => [e]
2326
2326
  });
2327
2327
  }
@@ -2346,25 +2346,25 @@ function Va(e, a, l, n) {
2346
2346
  }
2347
2347
  return u;
2348
2348
  }
2349
- function Ha(e, a) {
2349
+ function Va(e, a) {
2350
2350
  const l = a && a.current || 1, n = a && a.pageSize || 10;
2351
2351
  return e.filter((u, o) => o < l * n && o >= n * (l - 1));
2352
2352
  }
2353
- function qa(e) {
2353
+ function Ha(e) {
2354
2354
  const a = document.createElement("textarea");
2355
2355
  a.style.position = "absolute", a.style.opacity = "0", a.value = e, document.body.appendChild(a), a.select(), document.execCommand("copy"), document.body.removeChild(a);
2356
2356
  }
2357
- function Ga(e) {
2357
+ function qa(e) {
2358
2358
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !U(e);
2359
2359
  }
2360
2360
  const {
2361
- useBreakpoint: _a
2362
- } = at, Qa = {
2361
+ useBreakpoint: Ga
2362
+ } = at, _a = {
2363
2363
  reload: !0,
2364
2364
  density: !0,
2365
2365
  setting: !0,
2366
2366
  fullScreen: !0
2367
- }, Xa = ql.useToken, et = /* @__PURE__ */ ne({
2367
+ }, Qa = Hl.useToken, et = /* @__PURE__ */ ne({
2368
2368
  name: "GProTable",
2369
2369
  inheritAttrs: !1,
2370
2370
  props: ce,
@@ -2382,16 +2382,16 @@ const {
2382
2382
  }), {
2383
2383
  wrapSSR: d,
2384
2384
  hashId: h
2385
- } = He("ProBaseTable", [La], o), {
2385
+ } = He("ProBaseTable", [Ya], o), {
2386
2386
  token: C
2387
- } = Xa(), T = $l(), s = _a(), {
2387
+ } = Qa(), T = Tl(), s = Ga(), {
2388
2388
  width: y
2389
- } = El(), c = P(!1), m = Rt(), b = P(), v = P(), F = P(e.waitRequest);
2389
+ } = Nl(), c = P(!1), m = Rt(), b = P(), v = P(), F = P(e.waitRequest);
2390
2390
  Ne(() => F.value = e.waitRequest);
2391
2391
  const {
2392
2392
  toggle: I,
2393
2393
  isFullscreen: k
2394
- } = At(b), E = x(() => ({
2394
+ } = kt(b), E = x(() => ({
2395
2395
  ...e
2396
2396
  })), L = x(() => !s.value.xl), W = x(() => (e.virtualScroll && Le(!e.scroll?.y, "参数scroll的Y值不能为空!"), !!(e.scroll?.y && e.virtualScroll))), O = x(() => e.search === !1 ? !1 : q(e.search) ? e.search : {
2397
2397
  type: "auto",
@@ -2402,7 +2402,7 @@ const {
2402
2402
  const B = S.key || S.dataIndex;
2403
2403
  return S.key = B, S.dataIndex = B, S.align = S.align || e.align, S.uuid = S.uuid || tt().uuid(15), S;
2404
2404
  });
2405
- return kl(g, {
2405
+ return Il(g, {
2406
2406
  align: e.align ?? "left",
2407
2407
  showIndex: e.showIndex ?? !1
2408
2408
  });
@@ -2410,41 +2410,41 @@ const {
2410
2410
  loadingComputed: ie,
2411
2411
  loading: ae,
2412
2412
  setLoading: pe
2413
- } = Oa({
2413
+ } = Aa({
2414
2414
  emit: a,
2415
2415
  loading: se(e, "loading")
2416
2416
  }), {
2417
2417
  sizeRef: he,
2418
2418
  setTableSize: Te
2419
- } = Ya({
2419
+ } = za({
2420
2420
  emit: a,
2421
2421
  size: se(e, "size")
2422
2422
  }), {
2423
2423
  paginationInfo: t,
2424
2424
  requestPagination: f,
2425
2425
  setPagination: R
2426
- } = Da({
2426
+ } = Oa({
2427
2427
  pagination: se(e, "pagination"),
2428
2428
  pageItemRender: bt({
2429
2429
  slots: l,
2430
2430
  props: e,
2431
2431
  key: "pageItemRender"
2432
2432
  })
2433
- }), $ = Ka(e), {
2433
+ }), $ = Ma(e), {
2434
2434
  proScroll: w,
2435
2435
  breakpoint: r
2436
- } = za({
2436
+ } = Ka({
2437
2437
  ...$,
2438
2438
  innerWidth: y,
2439
2439
  columns: oe,
2440
2440
  screens: s
2441
- }), K = Fa(e), {
2441
+ }), K = Ra(e), {
2442
2442
  proColumns: G,
2443
2443
  cacheProColumns: te,
2444
2444
  setColumns: Ce,
2445
2445
  changeColumns: Y,
2446
2446
  resizeColumnWidth: Ee
2447
- } = Ba({
2447
+ } = Fa({
2448
2448
  ...K,
2449
2449
  breakpoint: r,
2450
2450
  scroll: w,
@@ -2456,38 +2456,38 @@ const {
2456
2456
  sortKeyColumns: _,
2457
2457
  cacheColumnsMap: ye,
2458
2458
  setSortKeyColumns: J
2459
- } = Pa({
2459
+ } = Ba({
2460
2460
  columns: te,
2461
2461
  columnsState: se(e, "columnsState"),
2462
2462
  changeColumns: Y
2463
2463
  }), {
2464
2464
  formDataRef: nt,
2465
2465
  formParamsRef: ot,
2466
- defaultParamsRef: zt,
2466
+ defaultParamsRef: Kt,
2467
2467
  setFormParams: qe
2468
- } = Ma({
2468
+ } = Ea({
2469
2469
  searchMap: se(e, "searchMap"),
2470
2470
  params: se(e, "params"),
2471
2471
  columns: oe,
2472
2472
  setPagination: R
2473
2473
  }), {
2474
2474
  selectedKeys: it,
2475
- selectedItems: Yt,
2476
- changeRowKey: Lt,
2475
+ selectedItems: zt,
2476
+ changeRowKey: Yt,
2477
2477
  selectRowKey: ut,
2478
2478
  selectAllRowKey: st,
2479
2479
  syncSelectedRows: rt,
2480
2480
  removeRowKeys: ct,
2481
- clearAllRowKeys: Wt
2482
- } = Na(se(e, "rowKey"), se(e, "rowSelection")), Vt = ka(e), {
2481
+ clearAllRowKeys: Lt
2482
+ } = ja(se(e, "rowKey"), se(e, "rowSelection")), Wt = Ia(e), {
2483
2483
  reload: Re,
2484
- reSetDataList: Ht,
2485
- changeDataValue: qt,
2486
- isTreeDataRef: Gt,
2484
+ reSetDataList: Vt,
2485
+ changeDataValue: Ht,
2486
+ isTreeDataRef: qt,
2487
2487
  dataSource: Fe,
2488
2488
  handleTableChange: dt
2489
- } = Aa({
2490
- ...Vt,
2489
+ } = ka({
2490
+ ...Wt,
2491
2491
  waitRequest: F
2492
2492
  }, {
2493
2493
  loading: ie,
@@ -2503,9 +2503,9 @@ const {
2503
2503
  onBeforeSearchSubmit: e.onBeforeSearchSubmit,
2504
2504
  hasCustomRender: x(() => we(e.customRender || l?.customRender))
2505
2505
  }, a), Be = x(() => e.options ? {
2506
- ...Qa,
2506
+ ..._a,
2507
2507
  ...q(e.options) ? e.options : {}
2508
- } : !1), _t = x(() => ({
2508
+ } : !1), Gt = x(() => ({
2509
2509
  size: p(he),
2510
2510
  scroll: p(w),
2511
2511
  dataSource: p(Fe),
@@ -2528,7 +2528,7 @@ const {
2528
2528
  g = S;
2529
2529
  return g;
2530
2530
  });
2531
- Ra(() => {
2531
+ $a(() => {
2532
2532
  c.value && e.keepAliveReload ? Re() : c.value = !0;
2533
2533
  });
2534
2534
  const mt = async (g, S) => {
@@ -2536,11 +2536,11 @@ const {
2536
2536
  ...e.params || {},
2537
2537
  ...g
2538
2538
  }), await Re());
2539
- }, Qt = async (g, S) => {
2539
+ }, _t = async (g, S) => {
2540
2540
  S === "reset" ? (a("reset", g), e.request && await mt(g, S)) : e.request ? (a("submit", g), await mt(g, S)) : a("submit", g);
2541
2541
  }, vt = (g, S, B, z) => {
2542
2542
  R(xt(g, ["current", "pageSize"])), dt(g, S, B, z);
2543
- }, Xt = (g, S) => {
2543
+ }, Qt = (g, S) => {
2544
2544
  R({
2545
2545
  current: g,
2546
2546
  pageSize: S
@@ -2549,28 +2549,28 @@ const {
2549
2549
  pageSize: S,
2550
2550
  total: t.value && t.value?.total || 0
2551
2551
  }, {}, {});
2552
- }, Ut = (g) => {
2552
+ }, Xt = (g) => {
2553
2553
  a("expandedRowsChange", g);
2554
- }, Jt = (g, S) => {
2554
+ }, Ut = (g, S) => {
2555
2555
  a("expand", g, S);
2556
- }, Zt = (g, S) => Ee(g, S), el = (g, S, B) => {
2556
+ }, Jt = (g, S) => Ee(g, S), Zt = (g, S, B) => {
2557
2557
  let z = g;
2558
2558
  if (S) {
2559
- const Q = V(g) ? typeof g?.[0]?.children == "string" ? g?.[0]?.children : "" : g ? g.toString() : "", A = B.tooltip === !1 ? {} : B.tooltip, X = B.tooltip === !1 ? 1 : De(A?.hiddenLine) && A?.hiddenLine > 0 ? A?.hiddenLine : 1, Se = B.tooltip === !1 ? 0 : De(A?.width) ? A?.width : 0, al = B.tooltip !== !1 && kt(Q) && Se > 0 ? Dl(Q, {
2559
+ const Q = V(g) ? typeof g?.[0]?.children == "string" ? g?.[0]?.children : "" : g ? g.toString() : "", A = B.tooltip === !1 ? {} : B.tooltip, X = B.tooltip === !1 ? 1 : De(A?.hiddenLine) && A?.hiddenLine > 0 ? A?.hiddenLine : 1, Se = B.tooltip === !1 ? 0 : De(A?.width) ? A?.width : 0, ll = B.tooltip !== !1 && It(Q) && Se > 0 ? Ol(Q, {
2560
2560
  cssObject: {
2561
2561
  fontSize: "14px",
2562
2562
  lineHeight: "22px",
2563
2563
  fontFamily: T?.token?.value?.fontFamily || C?.value?.fontFamily,
2564
2564
  ...A?.targetStyle || {}
2565
2565
  }
2566
- }) : 0, nl = document.querySelector(`.${o} .ant-table-tbody`), Me = i("div", {
2566
+ }) : 0, al = document.querySelector(`.${o} .ant-table-tbody`), Me = i("div", {
2567
2567
  class: `${o}-ellipsis-text`
2568
- }, [g]), pt = () => B.tooltip === !1 || q(B.tooltip) && al < Se && Se > 0 ? Me : i(de, M({
2568
+ }, [g]), pt = () => B.tooltip === !1 || q(B.tooltip) && ll < Se && Se > 0 ? Me : i(de, M({
2569
2569
  title: g,
2570
- getPopupContainer: (Ge) => nl ?? Ge?.parentNode?.parentNode
2570
+ getPopupContainer: (Ge) => al ?? Ge?.parentNode?.parentNode
2571
2571
  }, q(B.tooltip) ? B.tooltip : {}, {
2572
2572
  destroyTooltipOnHide: !0
2573
- }), Ga(Me) ? Me : {
2573
+ }), qa(Me) ? Me : {
2574
2574
  default: () => [Me]
2575
2575
  });
2576
2576
  if (z = i("div", {
@@ -2587,10 +2587,10 @@ const {
2587
2587
  style: {
2588
2588
  "-webkit-line-clamp": X
2589
2589
  }
2590
- }, [pt()]), i(wl, {
2590
+ }, [pt()]), i(Sl, {
2591
2591
  class: `${o}-copyable-icon`,
2592
2592
  onClick: () => {
2593
- qa(Ge), Ql.success("复制成功");
2593
+ Ha(Ge), _l.success("复制成功");
2594
2594
  }
2595
2595
  }, null)]);
2596
2596
  }
@@ -2598,21 +2598,21 @@ const {
2598
2598
  return z;
2599
2599
  };
2600
2600
  function gt() {
2601
- const g = jl({
2601
+ const g = Dl({
2602
2602
  slots: l,
2603
2603
  props: e,
2604
2604
  key: "emptyText"
2605
2605
  });
2606
2606
  if (g !== !1 && m?.emptyText?.value !== !1) {
2607
- const B = e.emptyTextProps?.extraProps || {}, z = g || m?.emptyText?.value, Q = U(z), A = Q ? Tt(z, B) : Bt(V(z) ? z : [z]);
2607
+ const B = e.emptyTextProps?.extraProps || {}, z = g || m?.emptyText?.value, Q = U(z), A = Q ? Tt(z, B) : Ft(V(z) ? z : [z]);
2608
2608
  return i("div", {
2609
2609
  class: re(`${o}-empty-text`, h.value, e.emptyTextProps?.class),
2610
2610
  style: e.emptyTextProps?.style
2611
- }, [Q ? A : V(A) ? A.map((X) => Ve(X, B)) : i(Xl, null, null)]);
2611
+ }, [Q ? A : V(A) ? A.map((X) => Ve(X, B)) : i(Ql, null, null)]);
2612
2612
  }
2613
2613
  return null;
2614
2614
  }
2615
- const tl = () => {
2615
+ const el = () => {
2616
2616
  const g = bt({
2617
2617
  slots: l,
2618
2618
  props: e,
@@ -2623,20 +2623,20 @@ const {
2623
2623
  const S = Z(p(Fe));
2624
2624
  return g?.({
2625
2625
  dataSource: S,
2626
- currentData: Ha(S, t.value)
2626
+ currentData: Va(S, t.value)
2627
2627
  });
2628
2628
  }
2629
2629
  return gt();
2630
2630
  }
2631
2631
  return i(ke, null, null);
2632
- }, ll = (g) => {
2633
- const S = Ol({
2632
+ }, tl = (g) => {
2633
+ const S = Al({
2634
2634
  slots: l,
2635
2635
  props: e,
2636
2636
  keys: ["headerTitle", "titleTip", "toolBarBtn", "settingExtra", "optionsExtra"],
2637
2637
  render: !0
2638
2638
  });
2639
- return i(Ta, {
2639
+ return i(wa, {
2640
2640
  titleTipText: e.titleTipText,
2641
2641
  options: le(Be.value) ? Be.value : {
2642
2642
  ...Be.value,
@@ -2650,7 +2650,7 @@ const {
2650
2650
  toolBarBtn: S.toolBarBtn
2651
2651
  }, null);
2652
2652
  };
2653
- return ea({
2653
+ return Zl({
2654
2654
  tableSize: he,
2655
2655
  columns: G,
2656
2656
  cacheColumns: oe,
@@ -2689,9 +2689,9 @@ const {
2689
2689
  pageState: f,
2690
2690
  pagination: t.value,
2691
2691
  selectedKeys: x(() => it.value),
2692
- selectedItems: x(() => Yt.value),
2692
+ selectedItems: x(() => zt.value),
2693
2693
  rowsSelection: {
2694
- clear: Wt,
2694
+ clear: Lt,
2695
2695
  select: ut,
2696
2696
  remove: ct,
2697
2697
  sync: rt,
@@ -2705,10 +2705,10 @@ const {
2705
2705
  pageSize: f?.pageSize || 10
2706
2706
  }), g?.callBack && (g?.wait ? await g?.callBack?.() : g?.callBack?.()), v.value?.resetForm(!1), F.value = !1;
2707
2707
  },
2708
- reSetDataList: Ht,
2708
+ reSetDataList: Vt,
2709
2709
  setPageAndReload: vt,
2710
2710
  setPagination: R,
2711
- setDataValue: qt,
2711
+ setDataValue: Ht,
2712
2712
  setLoading: pe
2713
2713
  })
2714
2714
  }), () => {
@@ -2721,40 +2721,40 @@ const {
2721
2721
  [`${n.class}`]: n.class,
2722
2722
  [`${o}-beautify-scroll`]: le(e.useDefaultScrollStyle) ? !e.useDefaultScrollStyle : !0,
2723
2723
  [`${o}-no-scroll`]: !Object.keys(p(w) || {}).length,
2724
- [`${o}-table-tree`]: Gt.value,
2724
+ [`${o}-table-tree`]: qt.value,
2725
2725
  [`${o}-full-screen`]: k.value
2726
2726
  }]),
2727
2727
  style: n.style
2728
2728
  }, [i("div", {
2729
2729
  class: [`${o}-content`, h.value]
2730
- }, [(nt.value.length > 0 || we(l.search)) && e.search !== !1 && i(Et, {
2730
+ }, [(nt.value.length > 0 || we(l.search)) && e.search !== !1 && i(Nt, {
2731
2731
  ref: v,
2732
2732
  modal: e.modalScroll,
2733
2733
  cardBordered: e.cardBordered,
2734
2734
  searchMap: nt.value,
2735
2735
  prefixCls: o,
2736
2736
  loading: !!p(ie),
2737
- onSearch: Qt,
2738
- defaultParams: zt
2737
+ onSearch: _t,
2738
+ defaultParams: Kt
2739
2739
  }, {
2740
2740
  default: l.search ? () => l.search?.() : null
2741
2741
  }), i("div", {
2742
2742
  class: re(h.value, `${o}-card`, e.cardBordered && `${o}-card-border`)
2743
- }, [ll(g), g ? i(Dt, ft.value, {
2743
+ }, [tl(g), g ? i(Ot, ft.value, {
2744
2744
  default: () => [i("div", {
2745
2745
  class: `${o}-wrapper ${h.value}`
2746
2746
  }, [i("div", {
2747
2747
  class: re(`${o}-list`, h.value, e.tableProps?.class),
2748
2748
  style: e.tableProps?.style
2749
- }, [tl()]), e.pagination !== !1 && Fe.value?.length > 0 && i(Gl, M({
2749
+ }, [el()]), e.pagination !== !1 && Fe.value?.length > 0 && i(ql, M({
2750
2750
  class: {
2751
2751
  [`${o}-pagination ${h.value}`]: !0,
2752
2752
  [`${o}-pagination-${ht.value} ${h.value}`]: !!ht.value
2753
2753
  }
2754
2754
  }, ve(p(t)), {
2755
- onChange: Xt
2755
+ onChange: Qt
2756
2756
  }), null)])]
2757
- }) : i(_l, M(xt(e, Object.keys(Nt)), _t.value, {
2757
+ }) : i(Gl, M(xt(e, Object.keys(jt)), Gt.value, {
2758
2758
  style: e.tableProps?.style,
2759
2759
  class: e.tableProps?.class,
2760
2760
  loading: ft.value,
@@ -2770,22 +2770,22 @@ const {
2770
2770
  if (V(A))
2771
2771
  if (A.length === 0 || A.length === 1 && !U(A[0])) {
2772
2772
  A = A?.[0];
2773
- const X = Al(A, B?.columnEmptyText || e?.columnEmptyText || "");
2774
- Q = X.success, A = Va(X.value, B?.valueType || e.columns?.find((Se) => (Se.key || Se.dataIndex) === z)?.valueType, o, h.value);
2773
+ const X = kl(A, B?.columnEmptyText || e?.columnEmptyText || "");
2774
+ Q = X.success, A = Wa(X.value, B?.valueType || e.columns?.find((Se) => (Se.key || Se.dataIndex) === z)?.valueType, o, h.value);
2775
2775
  } else A[0]?.type === "template" && (A = A[0]?.children);
2776
- return B?.ellipsis ? el(A, Q, B) : A;
2776
+ return B?.ellipsis ? Zt(A, Q, B) : A;
2777
2777
  },
2778
2778
  rowSelection: e.rowSelection ? {
2779
2779
  ...je(e.rowSelection, ["onSelect", "onSelectAll", "onChange", "selectedRowKeys"]),
2780
2780
  selectedRowKeys: it.value || [],
2781
2781
  onSelect: ut,
2782
2782
  onSelectAll: st,
2783
- onChange: Lt
2783
+ onChange: Yt
2784
2784
  } : void 0,
2785
2785
  onChange: vt,
2786
- onExpandedRowsChange: Ut,
2787
- onExpand: Jt,
2788
- onResizeColumn: (S, B) => Zt(S, B)
2786
+ onExpandedRowsChange: Xt,
2787
+ onExpand: Ut,
2788
+ onResizeColumn: (S, B) => Jt(S, B)
2789
2789
  }), {
2790
2790
  ...l,
2791
2791
  emptyText: () => gt()
@@ -2794,7 +2794,7 @@ const {
2794
2794
  }
2795
2795
  });
2796
2796
  et.install = (e) => (e.component(et.name, et), e);
2797
- function dn(e, a) {
2797
+ function cn(e, a) {
2798
2798
  function l() {
2799
2799
  if (a?.state) {
2800
2800
  if (_e(a.state) && q(a.state.value))
@@ -2816,7 +2816,7 @@ function dn(e, a) {
2816
2816
  });
2817
2817
  a?.state && (_e(a.state) ? N(() => a.state.value, () => {
2818
2818
  C();
2819
- }, { deep: !0 }) : fl(a.state) && N(() => a?.state, () => {
2819
+ }, { deep: !0 }) : dl(a.state) && N(() => a?.state, () => {
2820
2820
  C();
2821
2821
  }, { deep: !0 }));
2822
2822
  const u = x(() => e?.value?.actionRef?.()), o = x(() => e?.value?.formRef?.()), d = x(() => ({
@@ -2829,7 +2829,7 @@ function dn(e, a) {
2829
2829
  u.value?.setLoading?.(!!s);
2830
2830
  });
2831
2831
  function C() {
2832
- n.value = It(n.value, l(), {
2832
+ n.value = Pt(n.value, l(), {
2833
2833
  omitNil: !0,
2834
2834
  omitEmpty: !0
2835
2835
  });
@@ -2843,7 +2843,7 @@ function dn(e, a) {
2843
2843
  return {
2844
2844
  formRef: o,
2845
2845
  actionRef: u,
2846
- tableState: Ml(n),
2846
+ tableState: El(n),
2847
2847
  requestSearch: d,
2848
2848
  loading: h,
2849
2849
  dataSource: x(() => u?.value?.dataSource?.value || []),
@@ -2863,5 +2863,5 @@ function dn(e, a) {
2863
2863
  export {
2864
2864
  et as GProTable,
2865
2865
  ce as proTableProps,
2866
- dn as useTable
2866
+ cn as useTable
2867
2867
  };