@gx-design-vue/pro-table 0.2.0-beta.115 → 0.2.0-beta.117

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,77 +1,29 @@
1
- import { deepMerge as Tt, isObject as V, cloneDeep as te, isArray as X, isBoolean as le, classNames as re, isNumber as je, filterEmpty as $t, getPrefixCls as at, getRandomNumber as lt, genColumnKey as Rt, isDeepEqualReact as Le, compareArray as il, runFunction as ul, convertValueBoolean as Te, getSortIndex as sl, isFunction as ke, handleCurrentPage as rl, getSlot as Ft, arrayRepeat as cl, isString as Bt, handleShowIndex as dl, handleEmptyField as fl, getSlotVNode as we, getTextWidth as hl } from "@gx-design-vue/pro-utils";
2
- import { toReactive as ml, useDebounceFn as vl, useFullscreen as It, useWindowSize as gl } from "@vueuse/core";
3
- import { ref as I, isRef as Qe, watch as M, isReactive as pl, computed as S, toRaw as ve, defineComponent as ne, cloneVNode as Ve, reactive as be, watchEffect as Ee, createVNode as u, Fragment as Ae, isVNode as U, mergeProps as E, h as Pt, unref as b, createTextVNode as Oe, renderSlot as yl, onActivated as bl, nextTick as Cl, getCurrentInstance as xl, onUnmounted as Sl, onDeactivated as wl, onMounted as Tl, toRef as se } from "vue";
4
- import { tableProps as $l } from "ant-design-vue/es/table/Table";
5
- import { omit as Ne, cloneDeep as kt, pick as bt } from "lodash-es";
1
+ /*!
2
+ * Gx Design Pro
3
+ * Version: 0.2.0-beta.116
4
+ * Author: gx12358
5
+ * Copyright (C) 2024 gx12358
6
+ * License: MIT License
7
+ * Description: Gx Design Pro Table
8
+ * Date Created: 2025-08-15
9
+ * Homepage:
10
+ * Contact: gx12358@gmail.com
11
+ */
12
+ import { defineComponent as ne, ref as I, watch as M, cloneVNode as Ve, reactive as be, watchEffect as Ee, computed as S, createVNode as u, Fragment as Ae, isVNode as U, mergeProps as z, h as Tt, unref as b, createTextVNode as Oe, renderSlot as il, onActivated as ul, nextTick as sl, getCurrentInstance as rl, toRaw as ve, onUnmounted as cl, onDeactivated as dl, onMounted as fl, toRef as se, isRef as Qe, isReactive as ml } from "vue";
13
+ import { UpOutlined as hl, DownOutlined as vl, SettingOutlined as $t, VerticalAlignTopOutlined as gl, VerticalAlignMiddleOutlined as pl, VerticalAlignBottomOutlined as yl, InfoCircleOutlined as bl, ColumnHeightOutlined as Cl, FullscreenExitOutlined as xl, FullscreenOutlined as Sl, ReloadOutlined as wl, CopyOutlined as Tl } from "@ant-design/icons-vue";
14
+ import { useProAppContext as Rt } from "@gx-design-vue/pro-app";
15
+ import { useContext as $l, getProSolidColor as Ft, useProStyle as qe, unit as bt, useProConfigContext as Rl } from "@gx-design-vue/pro-provider";
16
+ import { isArray as H, isBoolean as le, classNames as re, isNumber as je, filterEmpty as Bt, getPrefixCls as at, getRandomNumber as lt, genColumnKey as It, isDeepEqualReact as Le, cloneDeep as Z, compareArray as Fl, isObject as q, runFunction as Bl, convertValueBoolean as Te, getSortIndex as Il, isFunction as ke, handleCurrentPage as Pl, deepMerge as Pt, getSlot as kt, arrayRepeat as kl, isString as At, handleShowIndex as Al, handleEmptyField as Ol, getSlotVNode as we, getTextWidth as Dl } from "@gx-design-vue/pro-utils";
17
+ import { useDebounceFn as jl, useFullscreen as Ot, useWindowSize as Nl, toReactive as El } from "@vueuse/core";
18
+ import { Grid as nt, DatePicker as Dt, Space as ge, Input as Ke, TimePicker as Ml, TreeSelect as zl, Select as Kl, InputNumber as Xe, Button as Ct, Spin as jt, Popover as Yl, Checkbox as Ll, Tooltip as de, Tree as Wl, Dropdown as Hl, Menu as Ye, theme as Vl, Pagination as ql, Table as Gl, message as _l, Empty as Ql } from "ant-design-vue";
19
+ import { omit as Ne, cloneDeep as Nt, pick as xt } from "lodash-es";
20
+ import { tableProps as Xl } from "ant-design-vue/es/table/Table";
6
21
  import "ant-design-vue/es/_util/props-util";
7
22
  import { warning as We } from "ant-design-vue/es/vc-util/warning";
8
- import { UpOutlined as Rl, DownOutlined as Fl, SettingOutlined as At, VerticalAlignTopOutlined as Bl, VerticalAlignMiddleOutlined as Il, VerticalAlignBottomOutlined as Pl, InfoCircleOutlined as kl, ColumnHeightOutlined as Al, FullscreenExitOutlined as Ol, FullscreenOutlined as Dl, ReloadOutlined as jl, CopyOutlined as Nl } from "@ant-design/icons-vue";
9
- import { useProAppContext as Ot } from "@gx-design-vue/pro-app";
10
- import { useContext as El, getProSolidColor as Dt, useProStyle as qe, unit as Ct, useProConfigContext as Ml } from "@gx-design-vue/pro-provider";
11
- import { Grid as nt, DatePicker as jt, Space as ge, Input as Ke, TimePicker as zl, TreeSelect as Kl, Select as Yl, InputNumber as Xe, Button as xt, Spin as Nt, Popover as Ll, Checkbox as Wl, Tooltip as de, Tree as Hl, Dropdown as Vl, Menu as Ye, theme as ql, Pagination as Gl, Table as _l, message as Ql, Empty as Xl } from "ant-design-vue";
12
- import H from "dayjs";
23
+ import V from "dayjs";
13
24
  import { useMemo as He, tryOnUnmounted as Ul } from "@gx-design-vue/pro-hooks";
14
- function rn(e, a) {
15
- function l() {
16
- if (a?.state) {
17
- if (Qe(a.state) && V(a.state.value))
18
- return te({
19
- ...a.state.value,
20
- params: a.state.value?.params || {}
21
- });
22
- if (V(a.state) && !Qe(a.state))
23
- return te({
24
- ...ve(a.state),
25
- params: a.state?.params || {}
26
- });
27
- }
28
- return {};
29
- }
30
- const n = I({
31
- ...l(),
32
- request: a?.request
33
- });
34
- a?.state && (Qe(a.state) ? M(() => a.state.value, () => {
35
- g();
36
- }, { deep: !0 }) : pl(a.state) && M(() => a?.state, () => {
37
- g();
38
- }, { deep: !0 }));
39
- const o = S(() => e?.value?.actionRef?.()), i = S(() => e?.value?.formRef?.()), d = S(() => ({
40
- ...o.value?.pageState || {},
41
- ...i.value?.getFormState?.() || {}
42
- })), h = I(!!o.value?.loading?.value);
43
- M(() => o.value?.loading?.value, (p) => {
44
- h.value = !!p;
45
- }), M(h, (p) => {
46
- o.value?.setLoading?.(!!p);
47
- });
48
- function g() {
49
- n.value = Tt(n.value, l(), {
50
- omitNil: !0,
51
- omitEmpty: !0
52
- });
53
- }
54
- return {
55
- formRef: i,
56
- actionRef: o,
57
- tableState: ml(n),
58
- requestSearch: d,
59
- loading: h,
60
- dataSource: S(() => o?.value?.dataSource?.value || []),
61
- selectedKeys: S(() => o?.value?.selectedKeys?.value || []),
62
- selectedItems: S(() => o?.value?.selectedItems?.value || []),
63
- rowsSelection: o?.value?.rowsSelection,
64
- mutate: (p) => o.value?.reSetDataList?.(p),
65
- reloadAndReset: (p) => o.value?.reloadAndReset?.(p),
66
- setPageAndReload: (p, r, C, c) => o.value?.setPageAndReload?.(p, r, C, c),
67
- setPagination: (p) => o.value?.setPagination?.(p),
68
- setLoading: (p) => h.value = p,
69
- setDataValue: (p) => o.value?.setDataValue?.(p),
70
- reload: (p) => o.value?.reload?.(p)
71
- };
72
- }
73
25
  const Jl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered", "loading"], Et = {
74
- ...Ne($l(), Jl),
26
+ ...Ne(Xl(), Jl),
75
27
  transformCellText: Function,
76
28
  /**
77
29
  * @Author gx12358
@@ -91,7 +43,7 @@ const Jl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
91
43
  type: Object,
92
44
  default: void 0
93
45
  }
94
- }, ce = {
46
+ }, { provideContext: Zl, useInjectContext: fe } = $l("pro-table"), ce = {
95
47
  ...Et,
96
48
  rowSelection: {
97
49
  type: Object,
@@ -368,7 +320,7 @@ const Jl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
368
320
  onRequestError: Function,
369
321
  onBeforeSearchSubmit: Function,
370
322
  onColumnsStateChange: Function
371
- }, { provideContext: Zl, useInjectContext: fe } = El("pro-table"), ea = /* @__PURE__ */ ne({
323
+ }, ea = /* @__PURE__ */ ne({
372
324
  name: "RequestSelect",
373
325
  props: {
374
326
  fetch: Function,
@@ -389,14 +341,14 @@ const Jl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
389
341
  setup(e, {
390
342
  slots: a
391
343
  }) {
392
- const l = I([]), n = I(e.loading ?? !1), o = I("init"), i = vl(e.fetch, e.debounceTime || 10);
344
+ const l = I([]), n = I(e.loading ?? !1), o = I("init"), i = jl(e.fetch, e.debounceTime || 10);
393
345
  return M([() => e.fetch, () => e.manual], () => {
394
346
  if (o.value !== "init" && n.value) return;
395
347
  const d = e.manual ?? !1;
396
- e.fetch && !d && (n.value = !0, i().then((h) => {
397
- l.value = kt(h), o.value = "success";
398
- }).catch((h) => {
399
- console.error(h), o.value = "error";
348
+ e.fetch && !d && (n.value = !0, i().then((m) => {
349
+ l.value = Nt(m), o.value = "success";
350
+ }).catch((m) => {
351
+ console.error(m), o.value = "error";
400
352
  }).finally(() => {
401
353
  n.value = !1;
402
354
  }));
@@ -404,7 +356,7 @@ const Jl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
404
356
  immediate: !0
405
357
  }), () => {
406
358
  const d = a.default?.();
407
- return Ve(X(d) ? d[0] : d, {
359
+ return Ve(H(d) ? d[0] : d, {
408
360
  options: l.value,
409
361
  notFoundContent: e.notFoundContent?.(n.value)
410
362
  });
@@ -448,7 +400,7 @@ const la = (e) => ({
448
400
  border: `${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,
449
401
  borderRadius: e.borderRadiusLG,
450
402
  marginBottom: e.marginLG,
451
- backgroundColor: Dt(e, e.colorBgContainer)
403
+ backgroundColor: Ft(e, e.colorBgContainer)
452
404
  },
453
405
  "&-collapse-buttons": {
454
406
  display: "flex",
@@ -529,21 +481,21 @@ const la = (e) => ({
529
481
  { value: "sm", span: 2 },
530
482
  { value: "xs", span: 1 }
531
483
  ];
532
- function me(e, a) {
533
- return typeof a == "function" ? a(H(e)) : H(e).format(a);
484
+ function he(e, a) {
485
+ return typeof a == "function" ? a(V(e)) : V(e).format(a);
534
486
  }
535
487
  function Pe(e, a) {
536
488
  return a ? "YYYY-MM-DD HH:mm:ss" : e ?? "YYYY-MM-DD";
537
489
  }
538
490
  const St = (e, a, l = "string") => {
539
- if (X(e)) {
491
+ if (H(e)) {
540
492
  const [n, o] = e;
541
493
  let i, d;
542
494
  if (Array.isArray(a) ? (i = a[0], d = a[1]) : typeof a == "object" && a.type === "mask" ? (i = a.format, d = a.format) : (i = a, d = a), l === "string") {
543
- const h = n ? me(n, i) : "", g = o ? me(o, d) : "";
544
- return [h, g];
495
+ const m = n ? he(n, i) : "", g = o ? he(o, d) : "";
496
+ return [m, g];
545
497
  }
546
- return [H(n), H(o)];
498
+ return [V(n), V(o)];
547
499
  }
548
500
  };
549
501
  function aa(e) {
@@ -557,27 +509,27 @@ const {
557
509
  YearPicker: ua,
558
510
  WeekPicker: sa,
559
511
  QuarterPicker: ra
560
- } = jt;
512
+ } = Dt;
561
513
  function ca(e) {
562
514
  let a = e.reduce((l, n) => n.order !== void 0 ? Math.max(l, n.order) : l, 0);
563
515
  return e.forEach((l) => {
564
516
  l.order === void 0 && (a += 1, l.order = a);
565
517
  }), e.sort((l, n) => l.order - n.order), e;
566
518
  }
567
- const Mt = /* @__PURE__ */ ne({
568
- name: "ProTableForm",
569
- props: {
570
- modal: ce.modalScroll,
571
- searchMap: {
572
- type: Array,
573
- default: () => []
574
- },
575
- loading: ce.loading,
576
- cardBordered: ce.cardBordered,
577
- prefixCls: String,
578
- defaultParams: Object,
579
- onSearch: Function
519
+ const da = {
520
+ modal: ce.modalScroll,
521
+ searchMap: {
522
+ type: Array,
523
+ default: () => []
580
524
  },
525
+ loading: ce.loading,
526
+ cardBordered: ce.cardBordered,
527
+ prefixCls: String,
528
+ defaultParams: Object,
529
+ onSearch: Function
530
+ }, Mt = /* @__PURE__ */ ne({
531
+ name: "ProTableForm",
532
+ props: da,
581
533
  setup(e, {
582
534
  slots: a,
583
535
  expose: l
@@ -585,17 +537,17 @@ const Mt = /* @__PURE__ */ ne({
585
537
  const {
586
538
  wrapSSR: n,
587
539
  hashId: o
588
- } = qe("ProTableForm", [la], e.prefixCls), i = Ot(), d = na(), {
589
- manualSearch: h,
540
+ } = qe("ProTableForm", [la], e.prefixCls), i = Rt(), d = na(), {
541
+ manualSearch: m,
590
542
  searchConfig: g,
591
543
  searchActions: p
592
544
  } = fe(), {
593
545
  formState: r,
594
546
  resetFormState: C,
595
547
  changeFormState: c
596
- } = ta(e.defaultParams || {}, e.searchMap || []), m = I(g.value?.collapsed ?? g.value?.defaultCollapsed), x = S(() => le(p.value?.reset) ? p.value?.reset : h.value), v = S(() => P(g.value?.span)), F = S(() => g.value?.label);
548
+ } = ta(e.defaultParams || {}, e.searchMap || []), h = I(g.value?.collapsed ?? g.value?.defaultCollapsed), x = S(() => le(p.value?.reset) ? p.value?.reset : m.value), v = S(() => P(g.value?.span)), F = S(() => g.value?.label);
597
549
  M(() => g.value?.collapsed, (t) => {
598
- m.value = t;
550
+ h.value = t;
599
551
  });
600
552
  function P(t) {
601
553
  let f = 4;
@@ -609,7 +561,7 @@ const Mt = /* @__PURE__ */ ne({
609
561
  return f;
610
562
  }
611
563
  const k = (t) => {
612
- m.value = t;
564
+ h.value = t;
613
565
  }, j = (t, f, R) => (t + 1) % f === 0 ? {
614
566
  ...R,
615
567
  marginRight: 0
@@ -617,10 +569,10 @@ const Mt = /* @__PURE__ */ ne({
617
569
  ...R,
618
570
  marginRight: "2%"
619
571
  }, L = () => {
620
- const t = kt(r), f = e.searchMap.find((w) => w.valueType === "text") || "", R = e.searchMap.find((w) => w.valueType === "dateRange") || "", $ = e.searchMap.find((w) => w.valueType === "treeSelect");
621
- return f && (t[f.name] = r[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 && X(r[$?.name]) && (t[$.name] = r[$.name].length ? r[$.name].map((w) => w[$.valueKey === "text" ? "label" : "value"]).join() : ""), $?.name && X(t[$?.name]) && (t[$.name] = t[$.name].length ? t[$.name].map((w) => w[$.valueKey === "text" ? "label" : "value"]) : "")), t;
572
+ const t = Nt(r), f = e.searchMap.find((w) => w.valueType === "text") || "", R = e.searchMap.find((w) => w.valueType === "dateRange") || "", $ = e.searchMap.find((w) => w.valueType === "treeSelect");
573
+ return f && (t[f.name] = r[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 && H(r[$?.name]) && (t[$.name] = r[$.name].length ? r[$.name].map((w) => w[$.valueKey === "text" ? "label" : "value"]).join() : ""), $?.name && H(t[$?.name]) && (t[$.name] = t[$.name].length ? t[$.name].map((w) => w[$.valueKey === "text" ? "label" : "value"]) : "")), t;
622
574
  }, W = (t = !1, f) => {
623
- (!h.value || t) && e.onSearch?.(L(), t ? f ? "reset" : "submit" : void 0);
575
+ (!m.value || t) && e.onSearch?.(L(), t ? f ? "reset" : "submit" : void 0);
624
576
  }, O = (t, f, R) => {
625
577
  const $ = r[f.name || ""];
626
578
  switch (f.valueType) {
@@ -640,25 +592,25 @@ const Mt = /* @__PURE__ */ ne({
640
592
  c(f.name || "", t ?? (f.field?.treeCheckable || f.field?.multiple ? [] : null));
641
593
  break;
642
594
  case "date":
643
- c(f.name || "", t ? me(t, Pe(f.valueFormat, f.showTime)) : null);
595
+ c(f.name || "", t ? he(t, Pe(f.valueFormat, f.showTime)) : null);
644
596
  break;
645
597
  case "dateWeek":
646
- c(f.name || "", t ? me(t, "YYYY-wo") : null);
598
+ c(f.name || "", t ? he(t, "YYYY-wo") : null);
647
599
  break;
648
600
  case "dateMonth":
649
- c(f.name || "", t ? me(t, "YYYY-MM") : null);
601
+ c(f.name || "", t ? he(t, "YYYY-MM") : null);
650
602
  break;
651
603
  case "dateQuarter":
652
- c(f.name || "", t ? me(t, "YYYY-QQ") : null);
604
+ c(f.name || "", t ? he(t, "YYYY-QQ") : null);
653
605
  break;
654
606
  case "dateYear":
655
- c(f.name || "", t ? me(t, "YYYY") : null);
607
+ c(f.name || "", t ? he(t, "YYYY") : null);
656
608
  break;
657
609
  case "dateRange":
658
- c(f.name || "", t && X(t) && t.length === 2 ? St(t, Pe(f.valueFormat, f.showTime)) : null);
610
+ c(f.name || "", t && H(t) && t.length === 2 ? St(t, Pe(f.valueFormat, f.showTime)) : null);
659
611
  break;
660
612
  case "time":
661
- c(f.name || "", t ? me(t, f.valueFormat || "HH:mm:ss") : null);
613
+ c(f.name || "", t ? he(t, f.valueFormat || "HH:mm:ss") : null);
662
614
  break;
663
615
  }
664
616
  f.valueType === "treeSelect" || f.valueType, W();
@@ -672,17 +624,17 @@ const Mt = /* @__PURE__ */ ne({
672
624
  const D = () => {
673
625
  const t = i?.emptyText?.value;
674
626
  if (t) {
675
- const f = U(t), R = f ? Pt(t) : $t(t || []);
627
+ const f = U(t), R = f ? Tt(t) : Bt(t || []);
676
628
  return u("div", {
677
629
  class: re(`${e.prefixCls}-search-empty-text`, o.value)
678
- }, [f ? R : X(R) ? R.map(($) => Ve($)) : void 0]);
630
+ }, [f ? R : H(R) ? R.map(($) => Ve($)) : void 0]);
679
631
  }
680
- }, Z = () => (h.value || x.value) && u(ge, null, {
681
- default: () => [x.value && u(xt, {
632
+ }, ee = () => (m.value || x.value) && u(ge, null, {
633
+ default: () => [x.value && u(Ct, {
682
634
  onClick: () => N()
683
635
  }, {
684
636
  default: () => [p.value?.resetText || "重置"]
685
- }), h.value && u(xt, {
637
+ }), m.value && u(Ct, {
686
638
  loading: e.loading,
687
639
  type: "primary",
688
640
  onClick: () => W(!0)
@@ -699,19 +651,19 @@ const Mt = /* @__PURE__ */ ne({
699
651
  }, [u(ge, {
700
652
  size: 16
701
653
  }, {
702
- default: () => [Z(), g.value?.collapseRender !== !1 && R && u(Ae, null, [typeof g.value?.collapseRender == "function" ? g.value?.collapseRender(f) : u("span", {
654
+ default: () => [ee(), g.value?.collapseRender !== !1 && R && u(Ae, null, [typeof g.value?.collapseRender == "function" ? g.value?.collapseRender(f) : u("span", {
703
655
  class: `${e.prefixCls}-a ${o.value}`,
704
656
  onClick: () => k(!f)
705
- }, [f ? "收起" : "展开", f ? u(Rl, null, null) : u(Fl, null, null)])])]
657
+ }, [f ? "收起" : "展开", f ? u(hl, null, null) : u(vl, null, null)])])]
706
658
  })]);
707
659
  function ie(t) {
708
- return t === void 0 ? void 0 : t ? u(Nt, {
660
+ return t === void 0 ? void 0 : t ? u(jt, {
709
661
  size: "small",
710
662
  indicator: i?.indicator?.value
711
663
  }, null) : D();
712
664
  }
713
665
  function ae(t, f) {
714
- return u(ea, E(t.request, {
666
+ return u(ea, z(t.request, {
715
667
  loading: t.loading,
716
668
  notFoundContent: ie
717
669
  }), aa(f) ? f : {
@@ -720,11 +672,11 @@ const Mt = /* @__PURE__ */ ne({
720
672
  }
721
673
  const pe = (t) => {
722
674
  let f;
723
- const R = h.value ? Ke : Ke.Search, $ = Ne(t.field || {}, "rules");
675
+ const R = m.value ? Ke : Ke.Search, $ = Ne(t.field || {}, "rules");
724
676
  let w = null;
725
677
  switch (t.valueType) {
726
678
  case "text":
727
- f = u(R, E({
679
+ f = u(R, z({
728
680
  style: {
729
681
  width: "100%"
730
682
  },
@@ -736,7 +688,7 @@ const Mt = /* @__PURE__ */ ne({
736
688
  }, $), null);
737
689
  break;
738
690
  case "number":
739
- f = u(Xe, E({
691
+ f = u(Xe, z({
740
692
  style: {
741
693
  width: "100%"
742
694
  },
@@ -755,7 +707,7 @@ const Mt = /* @__PURE__ */ ne({
755
707
  onChange: (s) => O(s, t, {
756
708
  key: 0
757
709
  }),
758
- placeholder: X(t.placeholder) && t.placeholder?.[0] || "请输入"
710
+ placeholder: H(t.placeholder) && t.placeholder?.[0] || "请输入"
759
711
  }, null), u(Ke, {
760
712
  disabled: !0,
761
713
  placeholder: "~"
@@ -764,12 +716,12 @@ const Mt = /* @__PURE__ */ ne({
764
716
  onChange: (s) => O(s, t, {
765
717
  key: 1
766
718
  }),
767
- placeholder: X(t.placeholder) && t.placeholder?.[1] || "请输入"
719
+ placeholder: H(t.placeholder) && t.placeholder?.[1] || "请输入"
768
720
  }, null)]
769
721
  });
770
722
  break;
771
723
  case "select":
772
- w = u(Yl, E({
724
+ w = u(Kl, z({
773
725
  style: {
774
726
  width: "100%"
775
727
  },
@@ -785,7 +737,7 @@ const Mt = /* @__PURE__ */ ne({
785
737
  }, $), null);
786
738
  break;
787
739
  case "treeSelect":
788
- w = u(Kl, E({
740
+ w = u(zl, z({
789
741
  style: {
790
742
  width: "100%"
791
743
  },
@@ -799,11 +751,11 @@ const Mt = /* @__PURE__ */ ne({
799
751
  }, $), null);
800
752
  break;
801
753
  case "date":
802
- f = u(jt, E({
754
+ f = u(Dt, z({
803
755
  style: {
804
756
  width: "100%"
805
757
  },
806
- value: r[t.name] ? H(r[t.name]) : void 0,
758
+ value: r[t.name] ? V(r[t.name]) : void 0,
807
759
  getPopupContainer: (s) => s && s.parentNode ? s.parentNode : s,
808
760
  placeholder: t.placeholder || "请选择",
809
761
  allowClear: t.allowClear ?? !0,
@@ -814,11 +766,11 @@ const Mt = /* @__PURE__ */ ne({
814
766
  }, $), null);
815
767
  break;
816
768
  case "dateWeek":
817
- f = u(sa, E({
769
+ f = u(sa, z({
818
770
  style: {
819
771
  width: "100%"
820
772
  },
821
- value: r[t.name] ? H(r[t.name], t.valueFormat || "YYYY-wo") : void 0,
773
+ value: r[t.name] ? V(r[t.name], t.valueFormat || "YYYY-wo") : void 0,
822
774
  getPopupContainer: (s) => s && s.parentNode ? s.parentNode : s,
823
775
  allowClear: t.allowClear ?? !0,
824
776
  placeholder: t.placeholder || "请选择",
@@ -826,11 +778,11 @@ const Mt = /* @__PURE__ */ ne({
826
778
  }, $), null);
827
779
  break;
828
780
  case "dateMonth":
829
- f = u(oa, E({
781
+ f = u(oa, z({
830
782
  style: {
831
783
  width: "100%"
832
784
  },
833
- value: r[t.name] ? H(r[t.name], t.valueFormat || "YYYY-MM") : void 0,
785
+ value: r[t.name] ? V(r[t.name], t.valueFormat || "YYYY-MM") : void 0,
834
786
  getPopupContainer: (s) => s && s.parentNode ? s.parentNode : s,
835
787
  allowClear: t.allowClear ?? !0,
836
788
  placeholder: t.placeholder || "请选择",
@@ -838,11 +790,11 @@ const Mt = /* @__PURE__ */ ne({
838
790
  }, $), null);
839
791
  break;
840
792
  case "dateQuarter":
841
- f = u(ra, E({
793
+ f = u(ra, z({
842
794
  style: {
843
795
  width: "100%"
844
796
  },
845
- value: r[t.name] ? H(r[t.name], t.valueFormat || "YYYY-QQ") : void 0,
797
+ value: r[t.name] ? V(r[t.name], t.valueFormat || "YYYY-QQ") : void 0,
846
798
  getPopupContainer: (s) => s && s.parentNode ? s.parentNode : s,
847
799
  allowClear: t.allowClear ?? !0,
848
800
  placeholder: t.placeholder || "请选择",
@@ -850,11 +802,11 @@ const Mt = /* @__PURE__ */ ne({
850
802
  }, $), null);
851
803
  break;
852
804
  case "dateYear":
853
- f = u(ua, E({
805
+ f = u(ua, z({
854
806
  style: {
855
807
  width: "100%"
856
808
  },
857
- value: r[t.name] ? H(r[t.name], t.valueFormat || "YYYY") : void 0,
809
+ value: r[t.name] ? V(r[t.name], t.valueFormat || "YYYY") : void 0,
858
810
  getPopupContainer: (s) => s && s.parentNode ? s.parentNode : s,
859
811
  allowClear: t.allowClear ?? !0,
860
812
  placeholder: t.placeholder || "请选择",
@@ -862,11 +814,11 @@ const Mt = /* @__PURE__ */ ne({
862
814
  }, $), null);
863
815
  break;
864
816
  case "dateRange":
865
- f = u(ia, E({
817
+ f = u(ia, z({
866
818
  style: {
867
819
  width: "100%"
868
820
  },
869
- value: r[t.name] && X(r[t.name]) && r[t.name]?.length === 2 ? St(r[t.name], Pe(t.valueFormat, t.showTime), "dayjs") : void 0,
821
+ value: r[t.name] && H(r[t.name]) && r[t.name]?.length === 2 ? St(r[t.name], Pe(t.valueFormat, t.showTime), "dayjs") : void 0,
870
822
  getPopupContainer: (s) => s && s.parentNode ? s.parentNode : s,
871
823
  placeholder: t.placeholder || ["开始日期", "结束日期"],
872
824
  format: Pe(t.valueFormat, t.showTime),
@@ -875,11 +827,11 @@ const Mt = /* @__PURE__ */ ne({
875
827
  }, $), null);
876
828
  break;
877
829
  case "time":
878
- f = u(zl, E({
830
+ f = u(Ml, z({
879
831
  style: {
880
832
  width: "100%"
881
833
  },
882
- value: r[t.name] ? H(r[t.name], t.valueFormat || "HH:mm:ss") : void 0,
834
+ value: r[t.name] ? V(r[t.name], t.valueFormat || "HH:mm:ss") : void 0,
883
835
  getPopupContainer: (s) => s && s.parentNode ? s.parentNode : s,
884
836
  placeholder: t.placeholder || "请选择",
885
837
  allowClear: t.allowClear || t.allowClear === !1 ? t.allowClear : !0,
@@ -890,7 +842,7 @@ const Mt = /* @__PURE__ */ ne({
890
842
  break;
891
843
  }
892
844
  return t.valueType && ["select", "treeSelect"].includes(t.valueType) && (f = t.request ? ae(t, w) : w), f;
893
- }, he = ({
845
+ }, me = ({
894
846
  formItemStyle: t = {},
895
847
  item: f
896
848
  }) => {
@@ -899,12 +851,12 @@ const Mt = /* @__PURE__ */ ne({
899
851
  class: `${e.prefixCls}-search-item`,
900
852
  style: {
901
853
  ...t,
902
- gap: F.value?.gap ? Ct(F.value?.gap) : void 0
854
+ gap: F.value?.gap ? bt(F.value?.gap) : void 0
903
855
  }
904
856
  }, [R && u("div", {
905
857
  class: re(`${e.prefixCls}-search-item-label`, F.value?.colon === !1 && `${e.prefixCls}-search-item-label-no-colon`, w && `${e.prefixCls}-search-item-label-${w}`),
906
858
  style: {
907
- width: $ ? Ct($) : void 0
859
+ width: $ ? bt($) : void 0
908
860
  }
909
861
  }, [R]), u("div", {
910
862
  class: re(`${e.prefixCls}-search-item-children`)
@@ -920,7 +872,7 @@ const Mt = /* @__PURE__ */ ne({
920
872
  };
921
873
  return f.map(($, w) => {
922
874
  const s = j(w, v.value, R);
923
- return f.length < v.value || m.value ? u(Ae, null, [he({
875
+ return f.length < v.value || h.value ? u(Ae, null, [me({
924
876
  formItemStyle: s,
925
877
  item: $
926
878
  }), w === f.length - 1 && oe({
@@ -928,12 +880,12 @@ const Mt = /* @__PURE__ */ ne({
928
880
  flex: 1,
929
881
  justifyContent: "flex-end"
930
882
  },
931
- collapsed: m.value,
932
- collapseRender: !!m.value
933
- })]) : u(Ae, null, [w < v.value - 1 && he({
883
+ collapsed: h.value,
884
+ collapseRender: !!h.value
885
+ })]) : u(Ae, null, [w < v.value - 1 && me({
934
886
  formItemStyle: s,
935
887
  item: $
936
- }), w === v.value - 1 && (v.value - 1 === 0 || f.length === v.value) && he({
888
+ }), w === v.value - 1 && (v.value - 1 === 0 || f.length === v.value) && me({
937
889
  formItemStyle: s,
938
890
  item: $
939
891
  }), w === v.value - 1 && f.length >= v.value && oe({
@@ -958,7 +910,7 @@ Mt.inheritAttrs = !1;
958
910
  const De = (e) => {
959
911
  const a = I(null);
960
912
  return a.value = e, (...l) => a.value?.(...l);
961
- }, da = (e) => ({
913
+ }, fa = (e) => ({
962
914
  [`${e.componentCls}`]: {
963
915
  width: "auto",
964
916
  "&-title": {
@@ -1056,8 +1008,8 @@ const De = (e) => {
1056
1008
  title: e
1057
1009
  }, {
1058
1010
  default: () => [u("span", {
1059
- onClick: (h) => {
1060
- h.stopPropagation(), h.preventDefault();
1011
+ onClick: (m) => {
1012
+ m.stopPropagation(), m.preventDefault();
1061
1013
  const g = b(i)?.find((c) => c.uuid === l)?.key || "", p = d?.columnsMap[g] || {};
1062
1014
  if (typeof p.disable == "boolean" ? p.disable : p.disable?.icon) return;
1063
1015
  const C = {
@@ -1071,7 +1023,7 @@ const De = (e) => {
1071
1023
  }
1072
1024
  }, [o.default?.()])]
1073
1025
  }) : null;
1074
- }, fa = /* @__PURE__ */ ne({
1026
+ }, ma = /* @__PURE__ */ ne({
1075
1027
  props: {
1076
1028
  treeKey: String,
1077
1029
  hashId: String,
@@ -1093,21 +1045,21 @@ const De = (e) => {
1093
1045
  title: "固定在列首",
1094
1046
  show: e.fixed !== "left" && !n.value
1095
1047
  }, {
1096
- default: () => [u(Bl, null, null)]
1048
+ default: () => [u(gl, null, null)]
1097
1049
  }), u(Je, {
1098
1050
  treeKey: e.treeKey || "",
1099
1051
  fixed: void 0,
1100
1052
  title: "不固定",
1101
1053
  show: !!e.fixed && !n.value
1102
1054
  }, {
1103
- default: () => [u(Il, null, null)]
1055
+ default: () => [u(pl, null, null)]
1104
1056
  }), u(Je, {
1105
1057
  treeKey: e.treeKey || "",
1106
1058
  fixed: "right",
1107
1059
  title: "固定在列尾",
1108
1060
  show: e.fixed !== "right"
1109
1061
  }, {
1110
- default: () => [u(Pl, null, null)]
1062
+ default: () => [u(yl, null, null)]
1111
1063
  })]);
1112
1064
  return u("span", {
1113
1065
  class: [`${e.className}-list-item`, e.hashId],
@@ -1135,18 +1087,18 @@ const De = (e) => {
1135
1087
  const a = I(lt().uuid(15)), l = S(() => e.list && e.list.length > 0), n = I([]), o = I([]), {
1136
1088
  cacheColumns: i,
1137
1089
  slots: d,
1138
- settingsAction: h
1139
- } = fe(), g = (c, m) => c.map(({
1090
+ settingsAction: m
1091
+ } = fe(), g = (c, h) => c.map(({
1140
1092
  key: x,
1141
1093
  children: v,
1142
1094
  uuid: F,
1143
1095
  ...P
1144
1096
  }) => {
1145
- const k = h?.columnsMap[x || "null"] || {
1097
+ const k = m?.columnsMap[x || "null"] || {
1146
1098
  show: !0
1147
1099
  };
1148
1100
  let j = !1;
1149
- k.show !== !1 && m?.show !== !1 && !v && (j = !0);
1101
+ k.show !== !1 && h?.show !== !1 && !v && (j = !0);
1150
1102
  const L = {
1151
1103
  key: F || "",
1152
1104
  ...Ne(P, ["dataIndex"]),
@@ -1160,12 +1112,12 @@ const De = (e) => {
1160
1112
  });
1161
1113
  Ee(() => {
1162
1114
  const c = g(e.list || []);
1163
- n.value = c, o.value = c.filter((m) => m.checked).map((m) => m.key), h?.operationType.value === "fixed" && (a.value = lt().uuid(15));
1115
+ n.value = c, o.value = c.filter((h) => h.checked).map((h) => h.key), m?.operationType.value === "fixed" && (a.value = lt().uuid(15));
1164
1116
  });
1165
- const p = De((c, m, x) => {
1166
- const v = b(i).find((N) => N.uuid === c)?.key || "", F = b(i).find((N) => N.uuid === m)?.key || "", P = {
1167
- ...h?.columnsMap
1168
- }, k = [...h.sortKeyColumns.value], j = k.findIndex((N) => N === v), L = k.findIndex((N) => N === F), W = x > j;
1117
+ const p = De((c, h, x) => {
1118
+ const v = b(i).find((N) => N.uuid === c)?.key || "", F = b(i).find((N) => N.uuid === h)?.key || "", P = {
1119
+ ...m?.columnsMap
1120
+ }, k = [...m.sortKeyColumns.value], j = k.findIndex((N) => N === v), L = k.findIndex((N) => N === F), W = x > j;
1169
1121
  if (j < 0)
1170
1122
  return;
1171
1123
  const O = k[j];
@@ -1174,27 +1126,27 @@ const De = (e) => {
1174
1126
  ...P[N] || {},
1175
1127
  order: D
1176
1128
  };
1177
- }), h?.setColumnsMap(P, "drop"), h?.setSortKeyColumns(k);
1129
+ }), m?.setColumnsMap(P, "drop"), m?.setSortKeyColumns(k);
1178
1130
  }), r = De((c) => {
1179
- const m = c.node.key, x = b(i).find((k) => k.uuid === m)?.key || "", F = {
1180
- ...h?.columnsMap[x] || {}
1131
+ const h = c.node.key, x = b(i).find((k) => k.uuid === h)?.key || "", F = {
1132
+ ...m?.columnsMap[x] || {}
1181
1133
  };
1182
1134
  F.show = c.checked;
1183
1135
  const P = {
1184
- ...h?.columnsMap,
1136
+ ...m?.columnsMap,
1185
1137
  [x]: F
1186
1138
  };
1187
- h?.setColumnsMap(P, "show");
1139
+ m?.setColumnsMap(P, "show");
1188
1140
  }), C = (c) => {
1189
- const m = b(i).find((x) => x.uuid === c.key);
1190
- return c.title || yl(d, "headerCell", {
1191
- title: m.title,
1192
- column: m
1193
- }, () => [m.title]);
1141
+ const h = b(i).find((x) => x.uuid === c.key);
1142
+ return c.title || il(d, "headerCell", {
1143
+ title: h.title,
1144
+ column: h
1145
+ }, () => [h.title]);
1194
1146
  };
1195
1147
  return () => l.value ? u(Ae, null, [e.showTitle && u("span", {
1196
1148
  class: [`${e.className}-list-title`, e.hashId]
1197
- }, [e.title]), u(Hl, {
1149
+ }, [e.title]), u(Wl, {
1198
1150
  key: a.value,
1199
1151
  draggable: e.draggable && !!n.value?.length && n.value?.length > 1,
1200
1152
  checkable: e.checkable,
@@ -1203,27 +1155,27 @@ const De = (e) => {
1203
1155
  checkedKeys: o.value,
1204
1156
  height: 280,
1205
1157
  onDrop: (c) => {
1206
- const m = c.node.key, x = c.dragNode.key, {
1158
+ const h = c.node.key, x = c.dragNode.key, {
1207
1159
  dropPosition: v,
1208
1160
  dropToGap: F
1209
1161
  } = c, P = v === -1 || !F ? v + 1 : v;
1210
- p(x, m, P);
1162
+ p(x, h, P);
1211
1163
  },
1212
- onCheck: (c, m) => r(m),
1164
+ onCheck: (c, h) => r(h),
1213
1165
  treeData: n.value
1214
1166
  }, {
1215
1167
  title: (c) => {
1216
- const m = {
1168
+ const h = {
1217
1169
  ...c,
1218
1170
  children: void 0,
1219
1171
  title: C(c),
1220
- autoScroll: h?.autoScroll?.value
1172
+ autoScroll: m?.autoScroll?.value
1221
1173
  };
1222
- return u(fa, E({
1174
+ return u(ma, z({
1223
1175
  hashId: e.hashId,
1224
1176
  className: e.className
1225
- }, m, {
1226
- treeKey: m.key
1177
+ }, h, {
1178
+ treeKey: h.key
1227
1179
  }), null);
1228
1180
  }
1229
1181
  })]) : null;
@@ -1261,12 +1213,12 @@ const De = (e) => {
1261
1213
  }, {
1262
1214
  immediate: !0
1263
1215
  });
1264
- const d = S(() => l.value && l.value.length > 0), h = S(() => n.value && n.value.length > 0);
1216
+ const d = S(() => l.value && l.value.length > 0), m = S(() => n.value && n.value.length > 0);
1265
1217
  return () => u("div", {
1266
1218
  class: {
1267
1219
  [`${e.hashId}`]: !0,
1268
1220
  [`${e.className}-list`]: !0,
1269
- [`${e.className}-list-group`]: d.value || h.value
1221
+ [`${e.className}-list-group`]: d.value || m.value
1270
1222
  }
1271
1223
  }, [u(Ze, {
1272
1224
  title: "固定在左侧",
@@ -1283,7 +1235,7 @@ const De = (e) => {
1283
1235
  draggable: e.draggable,
1284
1236
  checkable: e.checkable,
1285
1237
  title: "不固定",
1286
- showTitle: h.value || d.value,
1238
+ showTitle: m.value || d.value,
1287
1239
  className: e.className
1288
1240
  }, null), u(Ze, {
1289
1241
  title: "固定在右侧",
@@ -1295,7 +1247,7 @@ const De = (e) => {
1295
1247
  className: e.className
1296
1248
  }, null)]);
1297
1249
  }
1298
- }), ma = /* @__PURE__ */ ne({
1250
+ }), va = /* @__PURE__ */ ne({
1299
1251
  props: {
1300
1252
  draggable: {
1301
1253
  type: Boolean,
@@ -1315,26 +1267,26 @@ const De = (e) => {
1315
1267
  }), {
1316
1268
  wrapSSR: l,
1317
1269
  hashId: n
1318
- } = qe("ColumnSetting", [da], a), {
1270
+ } = qe("ColumnSetting", [fa], a), {
1319
1271
  columns: o,
1320
1272
  settingsAction: i
1321
1273
  } = fe(), d = De((C = !0) => {
1322
- const c = {}, m = (x) => {
1274
+ const c = {}, h = (x) => {
1323
1275
  x.forEach(({
1324
1276
  key: v,
1325
1277
  fixed: F,
1326
1278
  index: P,
1327
1279
  children: k
1328
1280
  }) => {
1329
- const j = Rt(v, P);
1281
+ const j = It(v, P);
1330
1282
  j && (c[j] = {
1331
1283
  show: C,
1332
1284
  fixed: F
1333
- }), k && m(k);
1285
+ }), k && h(k);
1334
1286
  });
1335
1287
  };
1336
- m(o.value), i?.setColumnsMap(c, "show");
1337
- }), h = De((C) => {
1288
+ h(o.value), i?.setColumnsMap(c, "show");
1289
+ }), m = De((C) => {
1338
1290
  C.target.checked ? d() : d(!1);
1339
1291
  }), g = De(() => {
1340
1292
  i?.setColumnsMap(i?.cacheColumnsMap, "fixed");
@@ -1342,14 +1294,14 @@ const De = (e) => {
1342
1294
  // @ts-ignore
1343
1295
  Object.values(i?.columnsMap).filter((C) => !C || C.show === !1)
1344
1296
  )), r = S(() => b(p).length > 0 && b(p).length !== o.value.length);
1345
- return () => l(u(Ll, {
1297
+ return () => l(u(Yl, {
1346
1298
  arrowPointAtCenter: !0,
1347
1299
  title: u("div", {
1348
1300
  class: [`${a}-title`, n.value]
1349
- }, [u(Wl, {
1301
+ }, [u(Ll, {
1350
1302
  indeterminate: r.value,
1351
1303
  checked: b(p).length === 0 && b(p).length !== o.value.length,
1352
- onChange: (C) => h(C)
1304
+ onChange: (C) => m(C)
1353
1305
  }, {
1354
1306
  default: () => [Oe("列展示")]
1355
1307
  }), e.checkedReset ? u("a", {
@@ -1374,11 +1326,11 @@ const De = (e) => {
1374
1326
  default: () => [u(de, {
1375
1327
  title: "列设置"
1376
1328
  }, {
1377
- default: () => [u(At, null, null)]
1329
+ default: () => [u($t, null, null)]
1378
1330
  })]
1379
1331
  }));
1380
1332
  }
1381
- }), va = (e) => ({
1333
+ }), ga = (e) => ({
1382
1334
  [`${e.componentCls}`]: {
1383
1335
  lineHeight: 1,
1384
1336
  "&-container": {
@@ -1424,9 +1376,9 @@ function wt(e) {
1424
1376
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !U(e);
1425
1377
  }
1426
1378
  const {
1427
- useBreakpoint: ga
1379
+ useBreakpoint: pa
1428
1380
  } = nt;
1429
- function pa(e) {
1381
+ function ya(e) {
1430
1382
  if (U(e))
1431
1383
  return e;
1432
1384
  if (e) {
@@ -1463,23 +1415,23 @@ const zt = /* @__PURE__ */ ne({
1463
1415
  const {
1464
1416
  wrapSSR: a,
1465
1417
  hashId: l
1466
- } = qe("ListToolBar", [va], e.prefixCls), n = ga(), {
1418
+ } = qe("ListToolBar", [ga], e.prefixCls), n = pa(), {
1467
1419
  isMobile: o
1468
- } = fe(), i = S(() => !!(e.titleTip || e.headerTitle || e.actions?.length)), d = S(() => !!(e.settings?.length || e.optionsExtra)), h = S(() => !!(e.titleTip || e.headerTitle)), g = S(() => {
1420
+ } = fe(), i = S(() => !!(e.titleTip || e.headerTitle || e.actions?.length)), d = S(() => !!(e.settings?.length || e.optionsExtra)), m = S(() => !!(e.titleTip || e.headerTitle)), g = S(() => {
1469
1421
  let c;
1470
1422
  return Array.isArray(e.actions) ? e.actions?.length < 1 ? null : u(ge, {
1471
1423
  align: "center"
1472
- }, wt(c = e.actions.map((m, x) => U(m) ? Ve(m, {
1424
+ }, wt(c = e.actions.map((h, x) => U(h) ? Ve(h, {
1473
1425
  key: x,
1474
- ...m?.props
1426
+ ...h?.props
1475
1427
  }) : u("template", {
1476
1428
  key: x
1477
- }, [m]))) ? c : {
1429
+ }, [h]))) ? c : {
1478
1430
  default: () => [c]
1479
1431
  }) : e.actions;
1480
1432
  }), p = He(() => !i.value && d.value ? u("div", {
1481
1433
  class: `${e.prefixCls}-left ${l.value}`
1482
- }, null) : h.value ? u(ge, {
1434
+ }, null) : m.value ? u(ge, {
1483
1435
  class: `${e.prefixCls}-left ${l.value}`
1484
1436
  }, {
1485
1437
  default: () => [u("div", {
@@ -1487,7 +1439,7 @@ const zt = /* @__PURE__ */ ne({
1487
1439
  }, [e.headerTitle, e.titleTip && u(de, {
1488
1440
  title: e.titleTipText
1489
1441
  }, {
1490
- default: () => [le(e.titleTip) && e.titleTip ? u(kl, null, null) : e.titleTip]
1442
+ default: () => [le(e.titleTip) && e.titleTip ? u(bl, null, null) : e.titleTip]
1491
1443
  })]), g.value && u("div", {
1492
1444
  class: `${e.prefixCls}-actions ${l.value}`
1493
1445
  }, [g.value])]
@@ -1497,7 +1449,7 @@ const zt = /* @__PURE__ */ ne({
1497
1449
  default: () => [g.value && u("div", {
1498
1450
  class: `${e.prefixCls}-actions`
1499
1451
  }, [g.value])]
1500
- }), [() => i.value, () => d.value, () => h.value, () => e.prefixCls, () => e.headerTitle, () => e.titleTipText, () => e.titleTip]), r = He(() => {
1452
+ }), [() => i.value, () => d.value, () => m.value, () => e.prefixCls, () => e.headerTitle, () => e.titleTipText, () => e.titleTip]), r = He(() => {
1501
1453
  let c;
1502
1454
  return d.value ? u(ge, {
1503
1455
  size: 16,
@@ -1509,8 +1461,8 @@ const zt = /* @__PURE__ */ ne({
1509
1461
  size: 12,
1510
1462
  align: "center",
1511
1463
  class: `${e.prefixCls}-setting-items`
1512
- }, wt(c = e.settings.map((m, x) => {
1513
- const v = pa(m);
1464
+ }, wt(c = e.settings.map((h, x) => {
1465
+ const v = ya(h);
1514
1466
  return u("div", {
1515
1467
  key: x,
1516
1468
  class: `${e.prefixCls}-setting-item`
@@ -1519,7 +1471,7 @@ const zt = /* @__PURE__ */ ne({
1519
1471
  default: () => [c]
1520
1472
  }) : null]
1521
1473
  }) : null;
1522
- }, [() => n.value, () => d.value, () => e.prefixCls, () => h.value, () => g.value, () => e.settings]), C = He(() => {
1474
+ }, [() => n.value, () => d.value, () => e.prefixCls, () => m.value, () => g.value, () => e.settings]), C = He(() => {
1523
1475
  if (!d.value && !i.value) return null;
1524
1476
  const c = {
1525
1477
  [`${l.value}`]: !0,
@@ -1536,12 +1488,12 @@ const zt = /* @__PURE__ */ ne({
1536
1488
  }
1537
1489
  });
1538
1490
  zt.inheritAttrs = !1;
1539
- const ya = () => {
1491
+ const ba = () => {
1540
1492
  const {
1541
1493
  action: e,
1542
1494
  tableSize: a
1543
1495
  } = fe();
1544
- return u(Vl, {
1496
+ return u(Hl, {
1545
1497
  overlay: u(Ye, {
1546
1498
  selectedKeys: [a.value],
1547
1499
  onClick: ({
@@ -1572,38 +1524,38 @@ const ya = () => {
1572
1524
  default: () => [u(de, {
1573
1525
  title: "表格密度"
1574
1526
  }, {
1575
- default: () => [u(Al, null, null)]
1527
+ default: () => [u(Cl, null, null)]
1576
1528
  })]
1577
1529
  });
1578
1530
  }, Kt = /* @__PURE__ */ ne({
1579
1531
  setup() {
1580
1532
  const {
1581
1533
  isFullscreen: e
1582
- } = It();
1534
+ } = Ot();
1583
1535
  return () => e.value ? u(de, {
1584
1536
  title: "退出全屏"
1585
1537
  }, {
1586
- default: () => [u(Ol, null, null)]
1538
+ default: () => [u(xl, null, null)]
1587
1539
  }) : u(de, {
1588
1540
  title: "全屏"
1589
1541
  }, {
1590
- default: () => [u(Dl, null, null)]
1542
+ default: () => [u(Sl, null, null)]
1591
1543
  });
1592
1544
  }
1593
1545
  });
1594
- function ba() {
1546
+ function Ca() {
1595
1547
  return {
1596
1548
  reload: {
1597
1549
  text: "刷新",
1598
- icon: u(jl, null, null)
1550
+ icon: u(wl, null, null)
1599
1551
  },
1600
1552
  density: {
1601
1553
  text: "表格密度",
1602
- icon: u(ya, null, null)
1554
+ icon: u(ba, null, null)
1603
1555
  },
1604
1556
  setting: {
1605
1557
  text: "列设置",
1606
- icon: u(At, null, null)
1558
+ icon: u($t, null, null)
1607
1559
  },
1608
1560
  fullScreen: {
1609
1561
  text: "全屏",
@@ -1611,7 +1563,7 @@ function ba() {
1611
1563
  }
1612
1564
  };
1613
1565
  }
1614
- function Ca(e, a) {
1566
+ function xa(e, a) {
1615
1567
  return Object.keys(e).filter((l) => l).map((l) => {
1616
1568
  const n = e[l];
1617
1569
  if (!n)
@@ -1619,7 +1571,7 @@ function Ca(e, a) {
1619
1571
  let o = n === !0 ? a[l] : () => n?.();
1620
1572
  if (typeof o != "function" && (o = () => {
1621
1573
  }), l === "setting")
1622
- return u(ma, E(e[l], {
1574
+ return u(va, z(e[l], {
1623
1575
  key: l
1624
1576
  }), null);
1625
1577
  if (l === "fullScreen")
@@ -1627,7 +1579,7 @@ function Ca(e, a) {
1627
1579
  key: l,
1628
1580
  onClick: o
1629
1581
  }, [u(Kt, null, null)]);
1630
- const i = ba()[l];
1582
+ const i = Ca()[l];
1631
1583
  return i ? u("span", {
1632
1584
  key: l,
1633
1585
  onClick: o
@@ -1638,7 +1590,7 @@ function Ca(e, a) {
1638
1590
  })]) : null;
1639
1591
  }).filter((l) => l);
1640
1592
  }
1641
- const xa = {
1593
+ const Sa = {
1642
1594
  options: [Boolean, Object, Array],
1643
1595
  titleTip: [Function, Boolean, Object, String],
1644
1596
  settingExtra: [Function, Boolean, Object, Array],
@@ -1646,8 +1598,8 @@ const xa = {
1646
1598
  titleTipText: [String],
1647
1599
  toolBarBtn: [Function, Boolean, Object, Array],
1648
1600
  headerTitle: [Function, Boolean, Object, Array, String]
1649
- }, Sa = /* @__PURE__ */ ne({
1650
- props: xa,
1601
+ }, wa = /* @__PURE__ */ ne({
1602
+ props: Sa,
1651
1603
  inheritAttrs: !1,
1652
1604
  setup(e) {
1653
1605
  const a = at({
@@ -1667,7 +1619,7 @@ const xa = {
1667
1619
  ...o,
1668
1620
  ...e.options
1669
1621
  };
1670
- return i.setting !== !1 && e.settingExtra && (i.setting = {}, i.setting.extra = e.settingExtra), Ca(i, {
1622
+ return i.setting !== !1 && e.settingExtra && (i.setting = {}, i.setting.extra = e.settingExtra), xa(i, {
1671
1623
  ...o
1672
1624
  });
1673
1625
  }, [() => l, () => e.options]);
@@ -1685,13 +1637,13 @@ const xa = {
1685
1637
  };
1686
1638
  }
1687
1639
  });
1688
- function wa(e) {
1689
- return xl();
1640
+ function Ta(e) {
1641
+ return rl();
1690
1642
  }
1691
- function Ta(e, a = !0, l) {
1692
- wa() ? bl(e, l) : a ? e() : Cl(e);
1643
+ function $a(e, a = !0, l) {
1644
+ Ta() ? ul(e, l) : a ? e() : sl(e);
1693
1645
  }
1694
- function $a(e) {
1646
+ function Ra(e) {
1695
1647
  const a = S(() => e.draggable), l = S(() => e.neverScroll), n = S(() => e.autoScroll);
1696
1648
  return {
1697
1649
  draggable: a,
@@ -1699,8 +1651,8 @@ function $a(e) {
1699
1651
  autoScroll: n
1700
1652
  };
1701
1653
  }
1702
- function Ra({ scroll: e, columns: a, breakpoint: l, draggable: n, autoScroll: o, neverScroll: i }) {
1703
- const d = I([]), h = I([]);
1654
+ function Fa({ scroll: e, columns: a, breakpoint: l, draggable: n, autoScroll: o, neverScroll: i }) {
1655
+ const d = I([]), m = I([]);
1704
1656
  M([
1705
1657
  () => e.value,
1706
1658
  () => a.value,
@@ -1711,7 +1663,7 @@ function Ra({ scroll: e, columns: a, breakpoint: l, draggable: n, autoScroll: o,
1711
1663
  () => i.value
1712
1664
  ], () => {
1713
1665
  const x = r(ve(a.value));
1714
- Le(x, ve(d.value)) || (d.value = te(x)), Le(x, ve(h.value)) || (h.value = te(x));
1666
+ Le(x, ve(d.value)) || (d.value = Z(x)), Le(x, ve(m.value)) || (m.value = Z(x));
1715
1667
  }, {
1716
1668
  deep: !0,
1717
1669
  immediate: !0
@@ -1725,10 +1677,10 @@ function Ra({ scroll: e, columns: a, breakpoint: l, draggable: n, autoScroll: o,
1725
1677
  ];
1726
1678
  });
1727
1679
  function p(x) {
1728
- return x.sort((v, F) => il(v, F, "order", 0));
1680
+ return x.sort((v, F) => Fl(v, F, "order", 0));
1729
1681
  }
1730
1682
  function r(x) {
1731
- return te(x).map((v, F) => {
1683
+ return Z(x).map((v, F) => {
1732
1684
  if (v.dataIndex === "action" || F === x.length - 1 ? v.resizable = !1 : v.resizable = le(v.resizable) ? v.resizable : !!(je(v.width) && b(n)), !v.width || b(i))
1733
1685
  return v;
1734
1686
  if (v.dataIndex === "action" && b(o))
@@ -1751,8 +1703,8 @@ function Ra({ scroll: e, columns: a, breakpoint: l, draggable: n, autoScroll: o,
1751
1703
  }
1752
1704
  Le(r(x), ve(d.value)) || (d.value = r(x));
1753
1705
  }
1754
- function m(x) {
1755
- c(te(ve(a.value)).map((v) => {
1706
+ function h(x) {
1707
+ c(Z(ve(a.value)).map((v) => {
1756
1708
  const F = v.key ? {
1757
1709
  show: x[v.key]?.show,
1758
1710
  fixed: x[v.key]?.fixed,
@@ -1764,18 +1716,18 @@ function Ra({ scroll: e, columns: a, breakpoint: l, draggable: n, autoScroll: o,
1764
1716
  return {
1765
1717
  breakpoint: l,
1766
1718
  proColumns: g,
1767
- cacheProColumns: h,
1719
+ cacheProColumns: m,
1768
1720
  setColumns: c,
1769
- changeColumns: m,
1721
+ changeColumns: h,
1770
1722
  resizeColumnWidth: C
1771
1723
  };
1772
1724
  }
1773
- function Fa({ columns: e, columnsState: a, changeColumns: l }) {
1774
- const n = I(void 0), o = be({}), i = be({}), d = be({}), h = I([]);
1725
+ function Ba({ columns: e, columnsState: a, changeColumns: l }) {
1726
+ const n = I(void 0), o = be({}), i = be({}), d = be({}), m = I([]);
1775
1727
  M(() => e.value, () => {
1776
- b(e)?.forEach(({ show: C, key: c, fixed: m }, x) => {
1777
- const v = Rt(c, x);
1778
- v && (d[v] = { show: C === void 0 ? !0 : C, fixed: m });
1728
+ b(e)?.forEach(({ show: C, key: c, fixed: h }, x) => {
1729
+ const v = It(c, x);
1730
+ v && (d[v] = { show: C === void 0 ? !0 : C, fixed: h });
1779
1731
  });
1780
1732
  const r = b(e).map((C) => C.key);
1781
1733
  p(r);
@@ -1790,26 +1742,26 @@ function Fa({ columns: e, columnsState: a, changeColumns: l }) {
1790
1742
  n.value = C, Object.assign(o, r), l?.(o, C === "fixed");
1791
1743
  }
1792
1744
  function p(r) {
1793
- h.value = r;
1745
+ m.value = r;
1794
1746
  }
1795
1747
  return {
1796
1748
  columnsMap: o,
1797
1749
  operationType: n,
1798
1750
  setColumnsMap: g,
1799
- sortKeyColumns: h,
1751
+ sortKeyColumns: m,
1800
1752
  cacheColumnsMap: i,
1801
1753
  setSortKeyColumns: p
1802
1754
  };
1803
1755
  }
1804
- function Ba(e, a) {
1756
+ function Ia(e, a) {
1805
1757
  const l = S(() => a), n = I(), o = I(e);
1806
1758
  function i() {
1807
1759
  n.value && clearTimeout(n.value);
1808
1760
  }
1809
- async function d(...h) {
1810
- return l.value === 0 || l.value === void 0 ? o.value(...h) : (i(), new Promise(async (g) => {
1811
- h[0]?.immediate ? g(await o.value(...h)) : n.value = setTimeout(async () => {
1812
- g(await o.value(...h));
1761
+ async function d(...m) {
1762
+ return l.value === 0 || l.value === void 0 ? o.value(...m) : (i(), new Promise(async (g) => {
1763
+ m[0]?.immediate ? g(await o.value(...m)) : n.value = setTimeout(async () => {
1764
+ g(await o.value(...m));
1813
1765
  }, l.value);
1814
1766
  }));
1815
1767
  }
@@ -1818,7 +1770,7 @@ function Ba(e, a) {
1818
1770
  run: d
1819
1771
  };
1820
1772
  }
1821
- function Ia(e) {
1773
+ function Pa(e) {
1822
1774
  const a = S(() => e.rowKey), l = S(() => e.polling), n = S(() => e.debounceTime), o = S(() => e.dataSource);
1823
1775
  return {
1824
1776
  rowKey: a,
@@ -1829,9 +1781,9 @@ function Ia(e) {
1829
1781
  dataSource: o
1830
1782
  };
1831
1783
  }
1832
- function Pa({ rowKey: e, polling: a, request: l, postData: n, dataSource: o, waitRequest: i, debounceTime: d }, { search: h, columns: g, loading: p, setLoading: r, setColumns: C, removeRowKeys: c, syncSelectedRows: m, formParamsRef: x, setPagination: v, paginationInfo: F, onBeforeSearchSubmit: P, hasCustomRender: k }, j) {
1833
- const L = I(), W = I(!0), O = I(!1), N = I(!1), D = I([]), Z = I(), oe = S(() => V(h.value) ? h.value?.manualRequest : !1), ie = async (w = {}) => {
1834
- const { pagination: s, filters: z = {}, sorter: q = {}, removeKeys: ee = [], isPolling: Ce = !1 } = w;
1784
+ function ka({ rowKey: e, polling: a, request: l, postData: n, dataSource: o, waitRequest: i, debounceTime: d }, { search: m, columns: g, loading: p, setLoading: r, setColumns: C, removeRowKeys: c, syncSelectedRows: h, formParamsRef: x, setPagination: v, paginationInfo: F, onBeforeSearchSubmit: P, hasCustomRender: k }, j) {
1785
+ const L = I(), W = I(!0), O = I(!1), N = I(!1), D = I([]), ee = I(), oe = S(() => q(m.value) ? m.value?.manualRequest : !1), ie = async (w = {}) => {
1786
+ const { pagination: s, filters: K = {}, sorter: G = {}, removeKeys: te = [], isPolling: Ce = !1 } = w;
1835
1787
  if (!l || !ke(l) || b(i) && p.value || O.value)
1836
1788
  return o.value || [];
1837
1789
  if (O.value = !0, !Ce || b(i) || W.value ? r(!0) : t(!0), b(i)) {
@@ -1844,27 +1796,27 @@ function Pa({ rowKey: e, polling: a, request: l, postData: n, dataSource: o, wai
1844
1796
  if (le(s) && !s || le(F))
1845
1797
  Y = {};
1846
1798
  else {
1847
- const { current: G = 1, pageSize: ye = 10, total: J } = b(F) || {};
1848
- Y.pageNum = rl({ current: G, pageSize: ye, total: J }, ee.length), ee.length && c(ee), Y.pageSize = ye;
1799
+ const { current: _ = 1, pageSize: ye = 10, total: J } = b(F) || {};
1800
+ Y.pageNum = Pl({ current: _, pageSize: ye, total: J }, te.length), te.length && c(te), Y.pageSize = ye;
1849
1801
  }
1850
- const Me = V(q) ? [q] : q;
1851
- Me.forEach((G) => {
1852
- const ye = G?.columnKey || G?.field;
1853
- G && G?.order ? C(b(g).map((J) => (J.dataIndex === ye ? J.sortOrder = G?.order : J.sortOrder = null, J))) : G && C(b(g).map((J) => (J.dataIndex === ye && (J.sortOrder = null), J)));
1802
+ const Me = q(G) ? [G] : G;
1803
+ Me.forEach((_) => {
1804
+ const ye = _?.columnKey || _?.field;
1805
+ _ && _?.order ? C(b(g).map((J) => (J.dataIndex === ye ? J.sortOrder = _?.order : J.sortOrder = null, J))) : _ && C(b(g).map((J) => (J.dataIndex === ye && (J.sortOrder = null), J)));
1854
1806
  });
1855
1807
  let Re = {
1856
1808
  ...Y || {},
1857
1809
  ...w.params,
1858
1810
  ...x
1859
1811
  };
1860
- P && ke(P) && (Re = await P(Re, q, z));
1812
+ P && ke(P) && (Re = await P(Re, G, K));
1861
1813
  let ue = [];
1862
- const xe = await l?.(te(ve(Re)), Me, z);
1814
+ const xe = await l?.(Z(ve(Re)), Me, K);
1863
1815
  if (O.value = !1, xe && xe?.success) {
1864
- ue = xe.data || [], n && ke(n) && (ue = await n?.(ue)), m(ue);
1865
- const G = xe.total || ue?.length || 0;
1866
- return G !== b(F)?.total && v({
1867
- total: G || 0
1816
+ ue = xe.data || [], n && ke(n) && (ue = await n?.(ue)), h(ue);
1817
+ const _ = xe.total || ue?.length || 0;
1818
+ return _ !== b(F)?.total && v({
1819
+ total: _ || 0
1868
1820
  }), R(ue), ue;
1869
1821
  } else
1870
1822
  return [];
@@ -1874,19 +1826,19 @@ function Pa({ rowKey: e, polling: a, request: l, postData: n, dataSource: o, wai
1874
1826
  W.value = !1, r(!1);
1875
1827
  }
1876
1828
  return [];
1877
- }, ae = Ba(async (w) => {
1878
- Z.value && clearTimeout(Z.value);
1879
- const s = await ie(w), z = ul(a.value, s);
1880
- return z && !L.value && (Z.value = setTimeout(() => {
1881
- ae.run({ ...w, isPolling: z });
1882
- }, Math.max(z, 2e3))), s;
1829
+ }, ae = Ia(async (w) => {
1830
+ ee.value && clearTimeout(ee.value);
1831
+ const s = await ie(w), K = Bl(a.value, s);
1832
+ return K && !L.value && (ee.value = setTimeout(() => {
1833
+ ae.run({ ...w, isPolling: K });
1834
+ }, Math.max(K, 2e3))), s;
1883
1835
  }, d.value || 10);
1884
- Sl(() => {
1885
- L.value = !0, clearTimeout(Z.value);
1886
- }), wl(() => {
1887
- L.value = !0, clearTimeout(Z.value);
1836
+ cl(() => {
1837
+ L.value = !0, clearTimeout(ee.value);
1838
+ }), dl(() => {
1839
+ L.value = !0, clearTimeout(ee.value);
1888
1840
  }), M(() => a.value, () => {
1889
- a.value ? ae.run({ isPolling: !0 }) : clearTimeout(Z.value);
1841
+ a.value ? ae.run({ isPolling: !0 }) : clearTimeout(ee.value);
1890
1842
  }, { immediate: !0 }), M([() => i.value, () => o.value], () => {
1891
1843
  pe();
1892
1844
  }, { deep: !0, immediate: !0 }), M([() => x], () => {
@@ -1898,36 +1850,36 @@ function Pa({ rowKey: e, polling: a, request: l, postData: n, dataSource: o, wai
1898
1850
  function pe() {
1899
1851
  Te(l) ? (!W.value || !a.value) && ae.run({ isPolling: !1 }) : R(o.value || []);
1900
1852
  }
1901
- const he = S(() => {
1853
+ const me = S(() => {
1902
1854
  if (k.value)
1903
1855
  return b(D);
1904
1856
  const w = g.value.filter((s) => s.show || s.show === void 0);
1905
1857
  return !b(D) || !w || w.length === 0 ? [] : b(D);
1906
- }), $e = S(() => b(D).some((w) => X(w.children) && w.children.length > 0));
1858
+ }), $e = S(() => b(D).some((w) => H(w.children) && w.children.length > 0));
1907
1859
  function t(w) {
1908
1860
  N.value = w;
1909
1861
  }
1910
- function f(w, s, z, q) {
1911
- ae.run({ pagination: w, filters: s, sorter: z, extra: q, isPolling: !1 }), j("change", w, s, z, q);
1862
+ function f(w, s, K, G) {
1863
+ ae.run({ pagination: w, filters: s, sorter: K, extra: G, isPolling: !1 }), j("change", w, s, K, G);
1912
1864
  }
1913
1865
  function R(w) {
1914
- const s = sl(te(w), b(F.value));
1866
+ const s = Il(Z(w), b(F.value));
1915
1867
  if (!Le(s, D.value) && (D.value = s, !l || !ke(l))) {
1916
- const z = s.length || 0;
1917
- z !== b(F)?.total && v({
1918
- total: z
1868
+ const K = s.length || 0;
1869
+ K !== b(F)?.total && v({
1870
+ total: K
1919
1871
  });
1920
1872
  }
1921
1873
  }
1922
1874
  return {
1923
- dataSource: he,
1875
+ dataSource: me,
1924
1876
  isTreeDataRef: $e,
1925
1877
  reSetDataList: R,
1926
- changeDataValue: ({ key: w, params: s, value: z, type: q = "update" }) => {
1927
- const ee = w ?? e.value, Ce = s?.[ee] ?? z;
1928
- switch (q) {
1878
+ changeDataValue: ({ key: w, params: s, value: K, type: G = "update" }) => {
1879
+ const te = w ?? e.value, Ce = s?.[te] ?? K;
1880
+ switch (G) {
1929
1881
  case "update":
1930
- ee && Ce && s && (D.value = D.value.map((Y) => Ce === Y[ee] ? Tt(Y, s, {
1882
+ te && Ce && s && (D.value = D.value.map((Y) => Ce === Y[te] ? Pt(Y, s, {
1931
1883
  omitNil: !1,
1932
1884
  omitEmpty: !1
1933
1885
  }) : Y)), We(!!s, "params is required");
@@ -1939,7 +1891,7 @@ function Pa({ rowKey: e, polling: a, request: l, postData: n, dataSource: o, wai
1939
1891
  s && D.value.unshift(s), We(!!s, "params is required");
1940
1892
  break;
1941
1893
  case "delete":
1942
- ee && (D.value = D.value.filter((Y) => z !== Y[ee]));
1894
+ te && (D.value = D.value.filter((Y) => K !== Y[te]));
1943
1895
  break;
1944
1896
  }
1945
1897
  },
@@ -1949,10 +1901,10 @@ function Pa({ rowKey: e, polling: a, request: l, postData: n, dataSource: o, wai
1949
1901
  }
1950
1902
  };
1951
1903
  }
1952
- function ka({ emit: e, loading: a }) {
1953
- const l = I(le(a.value) ? a.value : V(a.value) ? a.value?.spinning : !1);
1904
+ function Aa({ emit: e, loading: a }) {
1905
+ const l = I(le(a.value) ? a.value : q(a.value) ? a.value?.spinning : !1);
1954
1906
  M(() => a.value, (i) => {
1955
- l.value = le(i) ? i : V(i) ? i?.spinning : l.value;
1907
+ l.value = le(i) ? i : q(i) ? i?.spinning : l.value;
1956
1908
  });
1957
1909
  const n = S(() => l.value);
1958
1910
  function o(i) {
@@ -1960,7 +1912,7 @@ function ka({ emit: e, loading: a }) {
1960
1912
  }
1961
1913
  return { loadingComputed: n, loading: l, setLoading: o };
1962
1914
  }
1963
- function Aa({
1915
+ function Oa({
1964
1916
  slots: e,
1965
1917
  props: a,
1966
1918
  pagination: l
@@ -1971,7 +1923,7 @@ function Aa({
1971
1923
  o.value = !1;
1972
1924
  return;
1973
1925
  }
1974
- const d = Ft(e, b(a), "pageItemRender"), h = ke(d) ? {
1926
+ const d = kt(e, b(a), "pageItemRender"), m = ke(d) ? {
1975
1927
  itemRender: ({
1976
1928
  page: p,
1977
1929
  type: r,
@@ -1989,7 +1941,7 @@ function Aa({
1989
1941
  showSizeChanger: !0,
1990
1942
  pageSizeOptions: ["10", "20", "50", "100"],
1991
1943
  ...l.value || {},
1992
- ...h || {}
1944
+ ...m || {}
1993
1945
  };
1994
1946
  l.value?.showTotal || (g.showTotal = (p) => `共${p < g.pageSize ? 1 : Math.ceil(p / (g.pageSize || 10))}页 ${p}条记录`), o.value = g, Object.assign(n, {
1995
1947
  pageNum: g.current,
@@ -2000,11 +1952,11 @@ function Aa({
2000
1952
  immediate: !0
2001
1953
  });
2002
1954
  function i(d) {
2003
- if (V(o.value) && V(d)) {
2004
- const h = {};
1955
+ if (q(o.value) && q(d)) {
1956
+ const m = {};
2005
1957
  Object.keys(d).forEach((g) => {
2006
- Object.prototype.hasOwnProperty.call(d, g) && o.value[g] === d[g] || (h[g] = d[g]);
2007
- }), Object.keys(h).length > 0 && (Object.assign(o.value, h), Oa(h) && Object.assign(n, h));
1958
+ Object.prototype.hasOwnProperty.call(d, g) && o.value[g] === d[g] || (m[g] = d[g]);
1959
+ }), Object.keys(m).length > 0 && (Object.assign(o.value, m), Da(m) && Object.assign(n, m));
2008
1960
  }
2009
1961
  }
2010
1962
  return {
@@ -2013,23 +1965,28 @@ function Aa({
2013
1965
  setPagination: i
2014
1966
  };
2015
1967
  }
2016
- function Oa(e) {
1968
+ function Da(e) {
2017
1969
  if (typeof e != "object" || e === null)
2018
1970
  return !1;
2019
1971
  const a = Object.keys(e);
2020
1972
  return a.length === 2 && a.includes("pageNum") && a.includes("pageSize");
2021
1973
  }
2022
- function Da(e, a) {
1974
+ function ja(e, a) {
2023
1975
  const l = I([]), n = I([]);
2024
- M(() => a.value?.selectedRowKeys, (r) => {
2025
- l.value = cl([...r || []]);
1976
+ M(() => a.value?.selectedRows, (r) => {
1977
+ n.value = Z(r || []);
1978
+ }, {
1979
+ deep: !0,
1980
+ immediate: !0
1981
+ }), M(() => a.value?.selectedRowKeys, (r) => {
1982
+ l.value = kl([...r || []]);
2026
1983
  }, {
2027
1984
  deep: !0,
2028
1985
  immediate: !0
2029
1986
  });
2030
1987
  const o = (r, C) => {
2031
1988
  const c = a.value?.type || "checkbox";
2032
- e.value && (C ? r?.[e.value] && c === "checkbox" ? (l.value.push(r[e.value]), n.value.push(r)) : (l.value = [r[e.value]], n.value = [r]) : (l.value = l.value.filter((m) => m !== r[e.value]), n.value = n.value.filter((m) => m[e.value] !== r[e.value])));
1989
+ e.value && (C ? r?.[e.value] && c === "checkbox" ? (l.value.push(r[e.value]), n.value.push(r)) : (l.value = [r[e.value]], n.value = [r]) : (l.value = l.value.filter((h) => h !== r[e.value]), n.value = n.value.filter((h) => h[e.value] !== r[e.value])));
2033
1990
  }, i = () => {
2034
1991
  a.value && a.value?.onChange?.(l.value, n.value);
2035
1992
  };
@@ -2038,7 +1995,7 @@ function Da(e, a) {
2038
1995
  selectedItems: n,
2039
1996
  selectRowKey: o,
2040
1997
  selectAllRowKey: (r, C, c) => {
2041
- e.value && (r ? C.map((m) => (l.value.every((x) => x !== m?.[e.value]) && m?.[e.value] && (l.value.push(m[e.value]), n.value.push(m)), m)) : c.map((m) => (l.value.includes(m?.[e.value]) && (l.value = l.value.filter((x) => x !== m[e.value]), n.value = n.value.filter((x) => x[e.value] !== m[e.value])), m)));
1998
+ e.value && (r ? C.map((h) => (l.value.every((x) => x !== h?.[e.value]) && h?.[e.value] && (l.value.push(h[e.value]), n.value.push(h)), h)) : c.map((h) => (l.value.includes(h?.[e.value]) && (l.value = l.value.filter((x) => x !== h[e.value]), n.value = n.value.filter((x) => x[e.value] !== h[e.value])), h)));
2042
1999
  },
2043
2000
  removeRowKeys: (r) => {
2044
2001
  l.value = l.value.filter((C) => !r.includes(C)), n.value = n.value.filter((C) => !r.includes(C?.[e.value || ""])), i();
@@ -2046,9 +2003,9 @@ function Da(e, a) {
2046
2003
  changeRowKey: i,
2047
2004
  syncSelectedRows: (r) => {
2048
2005
  if (e.value && l.value.length !== n.value.length) {
2049
- const C = n.value.map((m) => m[e.value]), c = l.value.filter((m) => !C.includes(m));
2050
- r.forEach((m) => {
2051
- c.includes(m[e.value]) && n.value.push(te(m));
2006
+ const C = n.value.map((h) => h[e.value]), c = l.value.filter((h) => !C.includes(h));
2007
+ r.forEach((h) => {
2008
+ c.includes(h[e.value]) && n.value.push(Z(h));
2052
2009
  });
2053
2010
  }
2054
2011
  },
@@ -2057,7 +2014,7 @@ function Da(e, a) {
2057
2014
  }
2058
2015
  };
2059
2016
  }
2060
- function ja(e) {
2017
+ function Na(e) {
2061
2018
  const a = {};
2062
2019
  return e.forEach((l) => {
2063
2020
  let n = l.initialValue;
@@ -2065,9 +2022,9 @@ function ja(e) {
2065
2022
  l.valueType ? !n && o.includes(l.valueType) ? n = void 0 : !n && i.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);
2066
2023
  }), a;
2067
2024
  }
2068
- function Na({ searchMap: e, params: a, columns: l, setPagination: n }) {
2025
+ function Ea({ searchMap: e, params: a, columns: l, setPagination: n }) {
2069
2026
  const o = be({}), i = be({}), d = I([]);
2070
- function h(r) {
2027
+ function m(r) {
2071
2028
  r.forEach((C) => {
2072
2029
  d.value.some((c) => c.name === C.name) ? d.value = d.value.map((c) => c.name === C.name ? {
2073
2030
  ...c,
@@ -2077,18 +2034,18 @@ function Na({ searchMap: e, params: a, columns: l, setPagination: n }) {
2077
2034
  }
2078
2035
  const g = (r) => {
2079
2036
  const C = [];
2080
- if ((r === "all" || r === "searchMap") && (e.value?.forEach((c) => C.push(c)), h(C)), (r === "all" || r === "columns") && l.value?.length && (l.value && l.value.forEach((c) => {
2037
+ if ((r === "all" || r === "searchMap") && (e.value?.forEach((c) => C.push(c)), m(C)), (r === "all" || r === "columns") && l.value?.length && (l.value && l.value.forEach((c) => {
2081
2038
  c.searchConfig && C.push(c.searchConfig);
2082
- }), h(C)), r === "all" || r === "searchMap" || r === "columns") {
2039
+ }), m(C)), r === "all" || r === "searchMap" || r === "columns") {
2083
2040
  n({ current: 1 });
2084
- const c = ja(C);
2041
+ const c = Na(C);
2085
2042
  Object.assign(i, { ...c });
2086
- for (const m in c)
2087
- o[m] || (o[m] = c[m]);
2043
+ for (const h in c)
2044
+ o[h] || (o[h] = c[h]);
2088
2045
  }
2089
2046
  (r === "all" || r === "params") && (n({ current: 1 }), Object.assign(o, a.value));
2090
2047
  };
2091
- Tl(() => {
2048
+ fl(() => {
2092
2049
  g("all");
2093
2050
  }), M(() => a.value, () => {
2094
2051
  g("params");
@@ -2102,7 +2059,7 @@ function Na({ searchMap: e, params: a, columns: l, setPagination: n }) {
2102
2059
  }
2103
2060
  return { formDataRef: d, formParamsRef: o, defaultParamsRef: i, setFormParams: p };
2104
2061
  }
2105
- function Ea(e) {
2062
+ function Ma(e) {
2106
2063
  const a = S(() => e.scroll), l = S(() => e.autoScroll), n = S(() => e.modalScroll), o = S(() => e.neverScroll), i = S(() => e.rowSelection), d = S(() => e.scrollBreakpoint);
2107
2064
  return {
2108
2065
  scroll: a,
@@ -2113,21 +2070,21 @@ function Ea(e) {
2113
2070
  scrollBreakpoint: d
2114
2071
  };
2115
2072
  }
2116
- function Ma({ scroll: e, columns: a, autoScroll: l, modalScroll: n, neverScroll: o, rowSelection: i, screens: d, innerWidth: h, scrollBreakpoint: g }) {
2117
- const p = S(() => b(g) ? je(b(g)) ? h.value > b(g) : Bt(b(g)) ? d.value?.[b(g)] : d.value?.xl : d.value?.xl), r = S(() => {
2073
+ function za({ scroll: e, columns: a, autoScroll: l, modalScroll: n, neverScroll: o, rowSelection: i, screens: d, innerWidth: m, scrollBreakpoint: g }) {
2074
+ const p = S(() => b(g) ? je(b(g)) ? m.value > b(g) : At(b(g)) ? d.value?.[b(g)] : d.value?.xl : d.value?.xl), r = S(() => {
2118
2075
  let c = 0;
2119
- const m = b(i) ? 60 : 0, x = 150, v = te(b(a));
2076
+ const h = b(i) ? 60 : 0, x = 150, v = Z(b(a));
2120
2077
  v.forEach((k) => {
2121
2078
  c += Number.parseInt(String(k.width)) || 0;
2122
2079
  });
2123
2080
  const P = v.filter((k) => !Reflect.has(k, "width")).length;
2124
- return P !== 0 && (c += P * x), m && (c += m), c;
2081
+ return P !== 0 && (c += P * x), h && (c += h), c;
2125
2082
  });
2126
2083
  return { proScroll: S(() => b(o) ? {} : b(e) && Object.keys(b(e)).length ? b(e) : b(n) ? {
2127
2084
  y: b(e)?.y || (d.value?.xl ? 400 : 235)
2128
2085
  } : b(l) ? p.value ? {} : le(p.value) ? { x: b(r) } : {} : {}), breakpoint: p };
2129
2086
  }
2130
- function za({ size: e, emit: a }) {
2087
+ function Ka({ size: e, emit: a }) {
2131
2088
  const l = I("middle");
2132
2089
  Ee(() => {
2133
2090
  l.value = e.value;
@@ -2150,7 +2107,7 @@ const et = {
2150
2107
  backgroundColor: "transparent",
2151
2108
  borderRadius: 2
2152
2109
  }
2153
- }, Ka = (e) => {
2110
+ }, Ya = (e) => {
2154
2111
  const a = `${e.antCls}-table`;
2155
2112
  return {
2156
2113
  [e.componentCls]: {
@@ -2245,7 +2202,7 @@ const et = {
2245
2202
  paddingBlock: e.paddingMD,
2246
2203
  border: `${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,
2247
2204
  borderRadius: e.borderRadiusLG,
2248
- backgroundColor: Dt(e, e.colorBgContainer),
2205
+ backgroundColor: Ft(e, e.colorBgContainer),
2249
2206
  [`${e.antCls}-table-wrapper ${e.antCls}-table-pagination${e.antCls}-pagination`]: {
2250
2207
  marginBottom: 0
2251
2208
  }
@@ -2354,18 +2311,18 @@ const et = {
2354
2311
  }
2355
2312
  };
2356
2313
  };
2357
- function Ya(e) {
2314
+ function La(e) {
2358
2315
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !U(e);
2359
2316
  }
2360
- function La(e, a, l, n) {
2317
+ function Wa(e, a, l, n) {
2361
2318
  if (!a) return e;
2362
2319
  let o = e;
2363
- if (V(a)) {
2320
+ if (q(a)) {
2364
2321
  const i = a.node === "a" ? "span" : a.node;
2365
- return u(i, E(a?.attr || {}, {
2322
+ return u(i, z(a?.attr || {}, {
2366
2323
  class: [a.class, a.node === "a" ? `${l}-a` : ""],
2367
2324
  onClick: a.click
2368
- }), Ya(e) ? e : {
2325
+ }), La(e) ? e : {
2369
2326
  default: () => [e]
2370
2327
  });
2371
2328
  }
@@ -2376,39 +2333,39 @@ function La(e, a, l, n) {
2376
2333
  }, [e]);
2377
2334
  break;
2378
2335
  case "time":
2379
- o = H(e).format("HH:mm:ss");
2336
+ o = V(e).format("HH:mm:ss");
2380
2337
  break;
2381
2338
  case "dateMonth":
2382
- o = `${H(e).month() + 1}月`;
2339
+ o = `${V(e).month() + 1}月`;
2383
2340
  break;
2384
2341
  case "date":
2385
- o = H(e).format("YYYY-MM-DD");
2342
+ o = V(e).format("YYYY-MM-DD");
2386
2343
  break;
2387
2344
  case "dateTime":
2388
- o = H(e).format("YYYY-MM-DD HH:mm:ss");
2345
+ o = V(e).format("YYYY-MM-DD HH:mm:ss");
2389
2346
  break;
2390
2347
  }
2391
2348
  return o;
2392
2349
  }
2393
- function Wa(e, a) {
2350
+ function Ha(e, a) {
2394
2351
  const l = a && a.current || 1, n = a && a.pageSize || 10;
2395
2352
  return e.filter((o, i) => i < l * n && i >= n * (l - 1));
2396
2353
  }
2397
- function Ha(e) {
2354
+ function Va(e) {
2398
2355
  const a = document.createElement("textarea");
2399
2356
  a.style.position = "absolute", a.style.opacity = "0", a.value = e, document.body.appendChild(a), a.select(), document.execCommand("copy"), document.body.removeChild(a);
2400
2357
  }
2401
- function Va(e) {
2358
+ function qa(e) {
2402
2359
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !U(e);
2403
2360
  }
2404
2361
  const {
2405
- useBreakpoint: qa
2406
- } = nt, Ga = {
2362
+ useBreakpoint: Ga
2363
+ } = nt, _a = {
2407
2364
  reload: !0,
2408
2365
  density: !0,
2409
2366
  setting: !0,
2410
2367
  fullScreen: !0
2411
- }, _a = ql.useToken, tt = /* @__PURE__ */ ne({
2368
+ }, Qa = Vl.useToken, tt = /* @__PURE__ */ ne({
2412
2369
  name: "GProTable",
2413
2370
  inheritAttrs: !1,
2414
2371
  props: ce,
@@ -2425,28 +2382,28 @@ const {
2425
2382
  isPor: !0
2426
2383
  }), {
2427
2384
  wrapSSR: d,
2428
- hashId: h
2429
- } = qe("ProBaseTable", [Ka], i), {
2385
+ hashId: m
2386
+ } = qe("ProBaseTable", [Ya], i), {
2430
2387
  token: g
2431
- } = _a(), p = Ml(), r = qa(), {
2388
+ } = Qa(), p = Rl(), r = Ga(), {
2432
2389
  width: C
2433
- } = gl(), c = I(!1), m = Ot(), x = I(), v = I(), F = I(e.waitRequest);
2390
+ } = Nl(), c = I(!1), h = Rt(), x = I(), v = I(), F = I(e.waitRequest);
2434
2391
  Ee(() => F.value = e.waitRequest);
2435
2392
  const {
2436
2393
  toggle: P,
2437
2394
  isFullscreen: k
2438
- } = It(x), j = S(() => ({
2395
+ } = Ot(x), j = S(() => ({
2439
2396
  ...e
2440
- })), L = S(() => !r.value.xl), W = S(() => (e.virtualScroll && We(!e.scroll?.y, "参数scroll的Y值不能为空!"), !!(e.scroll?.y && e.virtualScroll))), O = S(() => e.search === !1 ? !1 : V(e.search) ? e.search : {
2397
+ })), L = S(() => !r.value.xl), W = S(() => (e.virtualScroll && We(!e.scroll?.y, "参数scroll的Y值不能为空!"), !!(e.scroll?.y && e.virtualScroll))), O = S(() => e.search === !1 ? !1 : q(e.search) ? e.search : {
2441
2398
  type: "auto",
2442
2399
  resetText: "重置",
2443
2400
  searchText: "查询"
2444
- }), N = S(() => O.value === !1 ? {} : O.value), D = S(() => N.value?.manualRequest ?? !1), Z = S(() => N.value?.actions), oe = S(() => {
2401
+ }), N = S(() => O.value === !1 ? {} : O.value), D = S(() => N.value?.manualRequest ?? !1), ee = S(() => N.value?.actions), oe = S(() => {
2445
2402
  const y = (e.columns || []).filter((T) => T.key || T.dataIndex).map((T) => {
2446
2403
  const B = T.key || T.dataIndex;
2447
2404
  return T.key = B, T.dataIndex = B, T.align = T.align || e.align, T.uuid = T.uuid || lt().uuid(15), T;
2448
2405
  });
2449
- return dl(y, {
2406
+ return Al(y, {
2450
2407
  align: e.align ?? "left",
2451
2408
  showIndex: e.showIndex ?? !1
2452
2409
  });
@@ -2454,39 +2411,39 @@ const {
2454
2411
  loadingComputed: ie,
2455
2412
  loading: ae,
2456
2413
  setLoading: pe
2457
- } = ka({
2414
+ } = Aa({
2458
2415
  emit: a,
2459
2416
  loading: se(e, "loading")
2460
2417
  }), {
2461
- sizeRef: he,
2418
+ sizeRef: me,
2462
2419
  setTableSize: $e
2463
- } = za({
2420
+ } = Ka({
2464
2421
  emit: a,
2465
2422
  size: se(e, "size")
2466
2423
  }), {
2467
2424
  paginationInfo: t,
2468
2425
  requestPagination: f,
2469
2426
  setPagination: R
2470
- } = Aa({
2427
+ } = Oa({
2471
2428
  slots: l,
2472
2429
  props: j,
2473
2430
  pagination: se(e, "pagination")
2474
- }), $ = Ea(e), {
2431
+ }), $ = Ma(e), {
2475
2432
  proScroll: w,
2476
2433
  breakpoint: s
2477
- } = Ma({
2434
+ } = za({
2478
2435
  ...$,
2479
2436
  innerWidth: C,
2480
2437
  columns: oe,
2481
2438
  screens: r
2482
- }), z = $a(e), {
2483
- proColumns: q,
2484
- cacheProColumns: ee,
2439
+ }), K = Ra(e), {
2440
+ proColumns: G,
2441
+ cacheProColumns: te,
2485
2442
  setColumns: Ce,
2486
2443
  changeColumns: Y,
2487
2444
  resizeColumnWidth: Me
2488
- } = Ra({
2489
- ...z,
2445
+ } = Fa({
2446
+ ...K,
2490
2447
  breakpoint: s,
2491
2448
  scroll: w,
2492
2449
  columns: oe
@@ -2494,11 +2451,11 @@ const {
2494
2451
  columnsMap: Re,
2495
2452
  operationType: ue,
2496
2453
  setColumnsMap: xe,
2497
- sortKeyColumns: G,
2454
+ sortKeyColumns: _,
2498
2455
  cacheColumnsMap: ye,
2499
2456
  setSortKeyColumns: J
2500
- } = Fa({
2501
- columns: ee,
2457
+ } = Ba({
2458
+ columns: te,
2502
2459
  columnsState: se(e, "columnsState"),
2503
2460
  changeColumns: Y
2504
2461
  }), {
@@ -2506,7 +2463,7 @@ const {
2506
2463
  formParamsRef: it,
2507
2464
  defaultParamsRef: Yt,
2508
2465
  setFormParams: Ge
2509
- } = Na({
2466
+ } = Ea({
2510
2467
  searchMap: se(e, "searchMap"),
2511
2468
  params: se(e, "params"),
2512
2469
  columns: oe,
@@ -2520,14 +2477,14 @@ const {
2520
2477
  syncSelectedRows: ct,
2521
2478
  removeRowKeys: dt,
2522
2479
  clearAllRowKeys: Ht
2523
- } = Da(se(e, "rowKey"), se(e, "rowSelection")), Vt = Ia(e), {
2480
+ } = ja(se(e, "rowKey"), se(e, "rowSelection")), Vt = Pa(e), {
2524
2481
  reload: Fe,
2525
2482
  reSetDataList: qt,
2526
2483
  changeDataValue: Gt,
2527
2484
  isTreeDataRef: _t,
2528
2485
  dataSource: Be,
2529
2486
  handleTableChange: ft
2530
- } = Pa({
2487
+ } = ka({
2531
2488
  ...Vt,
2532
2489
  waitRequest: F
2533
2490
  }, {
@@ -2539,48 +2496,48 @@ const {
2539
2496
  setLoading: pe,
2540
2497
  setColumns: Ce,
2541
2498
  search: O,
2542
- columns: q,
2499
+ columns: G,
2543
2500
  formParamsRef: it,
2544
2501
  onBeforeSearchSubmit: e.onBeforeSearchSubmit,
2545
2502
  hasCustomRender: S(() => Te(e.customRender || l?.customRender))
2546
2503
  }, a), Ie = S(() => e.options ? {
2547
- ...Ga,
2548
- ...V(e.options) ? e.options : {}
2504
+ ..._a,
2505
+ ...q(e.options) ? e.options : {}
2549
2506
  } : !1), Qt = S(() => ({
2550
- size: b(he),
2507
+ size: b(me),
2551
2508
  scroll: b(w),
2552
2509
  dataSource: b(Be),
2553
2510
  pagination: b(t),
2554
2511
  virtualScroll: W.value,
2555
- columns: b(q).filter((y) => y.show || y.show === void 0)
2556
- })), ht = S(() => {
2557
- const y = V(e.loading) ? Ne(e.loading, "spinning") : {};
2558
- return !y.indicator && m?.indicator?.value && (y.indicator = m?.indicator?.value), {
2512
+ columns: b(G).filter((y) => y.show || y.show === void 0)
2513
+ })), mt = S(() => {
2514
+ const y = q(e.loading) ? Ne(e.loading, "spinning") : {};
2515
+ return !y.indicator && h?.indicator?.value && (y.indicator = h?.indicator?.value), {
2559
2516
  spinning: e.showLoading ? Te(ae.value) : !1,
2560
2517
  ...y
2561
2518
  };
2562
- }), mt = S(() => {
2519
+ }), ht = S(() => {
2563
2520
  let y;
2564
2521
  const T = b(j).direction === "rtl" ? "bottomLeft" : "right", B = b(t)?.position;
2565
2522
  if (B !== null && Array.isArray(B)) {
2566
- const K = B.find((Q) => Q.includes("top")), _ = B.find((Q) => Q.includes("bottom")), A = B.every((Q) => `${Q}` == "none");
2567
- !K && !_ && !A && (y = T), K && (y = K.toLowerCase().replace("top", "")), _ && (y = _.toLowerCase().replace("bottom", ""));
2523
+ const E = B.find((X) => X.includes("top")), Q = B.find((X) => X.includes("bottom")), A = B.every((X) => `${X}` == "none");
2524
+ !E && !Q && !A && (y = T), E && (y = E.toLowerCase().replace("top", "")), Q && (y = Q.toLowerCase().replace("bottom", ""));
2568
2525
  } else
2569
2526
  y = T;
2570
2527
  return y;
2571
2528
  });
2572
- Ta(() => {
2529
+ $a(() => {
2573
2530
  c.value && e.keepAliveReload ? Fe() : c.value = !0;
2574
2531
  });
2575
2532
  const vt = async (y, T) => {
2576
- D.value ? Z.value?.reload && T ? (Ge(y), await Fe()) : Ge(y) : (Ge({
2533
+ D.value ? ee.value?.reload && T ? (Ge(y), await Fe()) : Ge(y) : (Ge({
2577
2534
  ...e.params || {},
2578
2535
  ...y
2579
2536
  }), await Fe());
2580
2537
  }, Xt = async (y, T) => {
2581
2538
  T === "reset" ? (a("reset", y), e.request && await vt(y, T)) : e.request ? (a("submit", y), await vt(y, T)) : a("submit", y);
2582
- }, gt = (y, T, B, K) => {
2583
- R(bt(y, ["current", "pageSize"])), ft(y, T, B, K);
2539
+ }, gt = (y, T, B, E) => {
2540
+ R(xt(y, ["current", "pageSize"])), ft(y, T, B, E);
2584
2541
  }, Ut = (y, T) => {
2585
2542
  R({
2586
2543
  current: y,
@@ -2595,9 +2552,9 @@ const {
2595
2552
  }, Zt = (y, T) => {
2596
2553
  a("expand", y, T);
2597
2554
  }, el = (y, T) => Me(y, T), tl = (y, T, B) => {
2598
- let K = y;
2555
+ let E = y;
2599
2556
  if (T) {
2600
- const _ = X(y) ? typeof y?.[0]?.children == "string" ? y?.[0]?.children : "" : y ? y.toString() : "", A = B.tooltip === !1 ? {} : B.tooltip, Q = B.tooltip === !1 ? 1 : je(A?.hiddenLine) && A?.hiddenLine > 0 ? A?.hiddenLine : 1, Se = B.tooltip === !1 ? 0 : je(A?.width) ? A?.width : 0, nl = B.tooltip !== !1 && Bt(_) && Se > 0 ? hl(_, {
2557
+ const Q = H(y) ? typeof y?.[0]?.children == "string" ? y?.[0]?.children : "" : y ? y.toString() : "", A = B.tooltip === !1 ? {} : B.tooltip, X = B.tooltip === !1 ? 1 : je(A?.hiddenLine) && A?.hiddenLine > 0 ? A?.hiddenLine : 1, Se = B.tooltip === !1 ? 0 : je(A?.width) ? A?.width : 0, nl = B.tooltip !== !1 && At(Q) && Se > 0 ? Dl(Q, {
2601
2558
  cssObject: {
2602
2559
  fontSize: "14px",
2603
2560
  lineHeight: "22px",
@@ -2606,65 +2563,65 @@ const {
2606
2563
  }
2607
2564
  }) : 0, ol = document.querySelector(`.${i} .ant-table-tbody`), ze = u("div", {
2608
2565
  class: `${i}-ellipsis-text`
2609
- }, [y]), yt = () => B.tooltip === !1 || V(B.tooltip) && nl < Se && Se > 0 ? ze : u(de, E({
2566
+ }, [y]), yt = () => B.tooltip === !1 || q(B.tooltip) && nl < Se && Se > 0 ? ze : u(de, z({
2610
2567
  title: y,
2611
2568
  getPopupContainer: (_e) => ol ?? _e?.parentNode?.parentNode
2612
- }, V(B.tooltip) ? B.tooltip : {}, {
2569
+ }, q(B.tooltip) ? B.tooltip : {}, {
2613
2570
  destroyTooltipOnHide: !0
2614
- }), Va(ze) ? ze : {
2571
+ }), qa(ze) ? ze : {
2615
2572
  default: () => [ze]
2616
2573
  });
2617
- if (K = u("div", {
2574
+ if (E = u("div", {
2618
2575
  class: `${i}-ellipsis ${A?.class ?? ""}`,
2619
2576
  style: {
2620
- "-webkit-line-clamp": Q
2577
+ "-webkit-line-clamp": X
2621
2578
  }
2622
2579
  }, [yt()]), B.copyable) {
2623
- const _e = typeof B.copyText == "function" ? B.copyText?.(B) : B.copyText || _;
2624
- K = u("div", {
2580
+ const _e = typeof B.copyText == "function" ? B.copyText?.(B) : B.copyText || Q;
2581
+ E = u("div", {
2625
2582
  class: `${i}-copyable`
2626
2583
  }, [u("div", {
2627
2584
  class: `${i}-ellipsis ${A?.class ?? ""}`,
2628
2585
  style: {
2629
- "-webkit-line-clamp": Q
2586
+ "-webkit-line-clamp": X
2630
2587
  }
2631
- }, [yt()]), u(Nl, {
2588
+ }, [yt()]), u(Tl, {
2632
2589
  class: `${i}-copyable-icon`,
2633
2590
  onClick: () => {
2634
- Ha(_e), Ql.success("复制成功");
2591
+ Va(_e), _l.success("复制成功");
2635
2592
  }
2636
2593
  }, null)]);
2637
2594
  }
2638
2595
  }
2639
- return K;
2596
+ return E;
2640
2597
  };
2641
2598
  function pt() {
2642
2599
  const y = we(l, e, "emptyText");
2643
- if (y !== !1 && m?.emptyText?.value !== !1) {
2644
- const B = e.emptyTextProps?.extraProps || {}, K = y || m?.emptyText?.value, _ = U(K), A = _ ? Pt(K, B) : $t(K || []);
2600
+ if (y !== !1 && h?.emptyText?.value !== !1) {
2601
+ const B = e.emptyTextProps?.extraProps || {}, E = y || h?.emptyText?.value, Q = U(E), A = Q ? Tt(E, B) : Bt(H(E) ? E : [E]);
2645
2602
  return u("div", {
2646
- class: re(`${i}-empty-text`, h.value, e.emptyTextProps?.class),
2603
+ class: re(`${i}-empty-text`, m.value, e.emptyTextProps?.class),
2647
2604
  style: e.emptyTextProps?.style
2648
- }, [_ ? A : X(A) ? A.map((Q) => Ve(Q, B)) : u(Xl, null, null)]);
2605
+ }, [Q ? A : H(A) ? A.map((X) => Ve(X, B)) : u(Ql, null, null)]);
2649
2606
  }
2650
2607
  return null;
2651
2608
  }
2652
2609
  const ll = () => {
2653
- const y = Ft(l, e, "customRender");
2610
+ const y = kt(l, e, "customRender");
2654
2611
  if (y) {
2655
2612
  if (Be.value?.length) {
2656
- const T = te(b(Be));
2613
+ const T = Z(b(Be));
2657
2614
  return y?.({
2658
2615
  dataSource: T,
2659
- currentData: Wa(T, t.value)
2616
+ currentData: Ha(T, t.value)
2660
2617
  });
2661
2618
  }
2662
2619
  return pt();
2663
2620
  }
2664
2621
  return u(Ae, null, null);
2665
2622
  }, al = (y) => {
2666
- const T = we(l, e, "headerTitle"), B = we(l, e, "titleTip"), K = we(l, e, "toolBarBtn");
2667
- return u(Sa, {
2623
+ const T = we(l, e, "headerTitle"), B = we(l, e, "titleTip"), E = we(l, e, "toolBarBtn");
2624
+ return u(wa, {
2668
2625
  headerTitle: T,
2669
2626
  titleTip: B,
2670
2627
  titleTipText: e.titleTipText,
@@ -2675,17 +2632,17 @@ const {
2675
2632
  },
2676
2633
  settingExtra: we(l, e, "settingExtra"),
2677
2634
  optionsExtra: we(l, e, "optionsExtra"),
2678
- toolBarBtn: K
2635
+ toolBarBtn: E
2679
2636
  }, null);
2680
2637
  };
2681
2638
  return Zl({
2682
- tableSize: he,
2683
- columns: q,
2639
+ tableSize: me,
2640
+ columns: G,
2684
2641
  cacheColumns: oe,
2685
2642
  isMobile: L,
2686
2643
  searchConfig: N,
2687
2644
  manualSearch: D,
2688
- searchActions: Z,
2645
+ searchActions: ee,
2689
2646
  action: {
2690
2647
  setTableSize: $e,
2691
2648
  reload: (y) => Fe(y),
@@ -2696,7 +2653,7 @@ const {
2696
2653
  columnsMap: Re,
2697
2654
  operationType: ue,
2698
2655
  setColumnsMap: xe,
2699
- sortKeyColumns: G,
2656
+ sortKeyColumns: _,
2700
2657
  cacheColumnsMap: ye,
2701
2658
  setSortKeyColumns: J
2702
2659
  },
@@ -2744,7 +2701,7 @@ const {
2744
2701
  return d(u("div", {
2745
2702
  ref: x,
2746
2703
  class: re([{
2747
- [`${h.value}`]: !0,
2704
+ [`${m.value}`]: !0,
2748
2705
  [`${i}`]: !0,
2749
2706
  [`${n.class}`]: n.class,
2750
2707
  [`${i}-beautify-scroll`]: le(e.useDefaultScrollStyle) ? !e.useDefaultScrollStyle : !0,
@@ -2754,7 +2711,7 @@ const {
2754
2711
  }]),
2755
2712
  style: n.style
2756
2713
  }, [u("div", {
2757
- class: [`${i}-content`, h.value]
2714
+ class: [`${i}-content`, m.value]
2758
2715
  }, [(ot.value.length > 0 || Te(l.search)) && e.search !== !1 && u(Mt, {
2759
2716
  ref: v,
2760
2717
  modal: e.modalScroll,
@@ -2767,25 +2724,25 @@ const {
2767
2724
  }, {
2768
2725
  default: l.search ? () => l.search?.() : null
2769
2726
  }), u("div", {
2770
- class: re(h.value, `${i}-card`, e.cardBordered && `${i}-card-border`)
2771
- }, [al(y), y ? u(Nt, ht.value, {
2727
+ class: re(m.value, `${i}-card`, e.cardBordered && `${i}-card-border`)
2728
+ }, [al(y), y ? u(jt, mt.value, {
2772
2729
  default: () => [u("div", {
2773
- class: `${i}-wrapper ${h.value}`
2730
+ class: `${i}-wrapper ${m.value}`
2774
2731
  }, [u("div", {
2775
- class: re(`${i}-list`, h.value, e.tableProps?.class),
2732
+ class: re(`${i}-list`, m.value, e.tableProps?.class),
2776
2733
  style: e.tableProps?.style
2777
- }, [ll()]), e.pagination !== !1 && Be.value?.length > 0 && u(Gl, E({
2734
+ }, [ll()]), e.pagination !== !1 && Be.value?.length > 0 && u(ql, z({
2778
2735
  class: {
2779
- [`${i}-pagination ${h.value}`]: !0,
2780
- [`${i}-pagination-${mt.value} ${h.value}`]: !!mt.value
2736
+ [`${i}-pagination ${m.value}`]: !0,
2737
+ [`${i}-pagination-${ht.value} ${m.value}`]: !!ht.value
2781
2738
  }
2782
2739
  }, ve(b(t)), {
2783
2740
  onChange: Ut
2784
2741
  }), null)])]
2785
- }) : u(_l, E(bt(e, Object.keys(Et)), Qt.value, {
2742
+ }) : u(Gl, z(xt(e, Object.keys(Et)), Qt.value, {
2786
2743
  style: e.tableProps?.style,
2787
2744
  class: e.tableProps?.class,
2788
- loading: ht.value,
2745
+ loading: mt.value,
2789
2746
  rowKey: (T) => T[e.rowKey],
2790
2747
  transformCellText: (T) => {
2791
2748
  e.transformCellText && typeof e.transformCellText && e.transformCellText?.(T);
@@ -2793,15 +2750,15 @@ const {
2793
2750
  column: B
2794
2751
  } = T;
2795
2752
  if (!B) return T.text;
2796
- const K = B?.key || B?.dataIndex;
2797
- let _ = !0, A = T.text;
2798
- if (X(A))
2753
+ const E = B?.key || B?.dataIndex;
2754
+ let Q = !0, A = T.text;
2755
+ if (H(A))
2799
2756
  if (A.length === 0 || A.length === 1 && !U(A[0])) {
2800
2757
  A = A?.[0];
2801
- const Q = fl(A, B?.columnEmptyText || e?.columnEmptyText || "");
2802
- _ = Q.success, A = La(Q.value, B?.valueType || e.columns?.find((Se) => (Se.key || Se.dataIndex) === K)?.valueType, i, h.value);
2758
+ const X = Ol(A, B?.columnEmptyText || e?.columnEmptyText || "");
2759
+ Q = X.success, A = Wa(X.value, B?.valueType || e.columns?.find((Se) => (Se.key || Se.dataIndex) === E)?.valueType, i, m.value);
2803
2760
  } else A[0]?.type === "template" && (A = A[0]?.children);
2804
- return B?.ellipsis ? tl(A, _, B) : A;
2761
+ return B?.ellipsis ? tl(A, Q, B) : A;
2805
2762
  },
2806
2763
  rowSelection: e.rowSelection ? {
2807
2764
  ...Ne(e.rowSelection, ["onSelect", "onSelectAll", "onChange", "selectedRowKeys"]),
@@ -2822,9 +2779,67 @@ const {
2822
2779
  }
2823
2780
  });
2824
2781
  tt.install = (e) => (e.component(tt.name, tt), e);
2782
+ function cn(e, a) {
2783
+ function l() {
2784
+ if (a?.state) {
2785
+ if (Qe(a.state) && q(a.state.value))
2786
+ return Z({
2787
+ ...a.state.value,
2788
+ params: a.state.value?.params || {}
2789
+ });
2790
+ if (q(a.state) && !Qe(a.state))
2791
+ return Z({
2792
+ ...ve(a.state),
2793
+ params: a.state?.params || {}
2794
+ });
2795
+ }
2796
+ return {};
2797
+ }
2798
+ const n = I({
2799
+ ...l(),
2800
+ request: a?.request
2801
+ });
2802
+ a?.state && (Qe(a.state) ? M(() => a.state.value, () => {
2803
+ g();
2804
+ }, { deep: !0 }) : ml(a.state) && M(() => a?.state, () => {
2805
+ g();
2806
+ }, { deep: !0 }));
2807
+ const o = S(() => e?.value?.actionRef?.()), i = S(() => e?.value?.formRef?.()), d = S(() => ({
2808
+ ...o.value?.pageState || {},
2809
+ ...i.value?.getFormState?.() || {}
2810
+ })), m = I(!!o.value?.loading?.value);
2811
+ M(() => o.value?.loading?.value, (p) => {
2812
+ m.value = !!p;
2813
+ }), M(m, (p) => {
2814
+ o.value?.setLoading?.(!!p);
2815
+ });
2816
+ function g() {
2817
+ n.value = Pt(n.value, l(), {
2818
+ omitNil: !0,
2819
+ omitEmpty: !0
2820
+ });
2821
+ }
2822
+ return {
2823
+ formRef: i,
2824
+ actionRef: o,
2825
+ tableState: El(n),
2826
+ requestSearch: d,
2827
+ loading: m,
2828
+ dataSource: S(() => o?.value?.dataSource?.value || []),
2829
+ selectedKeys: S(() => o?.value?.selectedKeys?.value || []),
2830
+ selectedItems: S(() => o?.value?.selectedItems?.value || []),
2831
+ rowsSelection: o?.value?.rowsSelection,
2832
+ mutate: (p) => o.value?.reSetDataList?.(p),
2833
+ reloadAndReset: (p) => o.value?.reloadAndReset?.(p),
2834
+ setPageAndReload: (p, r, C, c) => o.value?.setPageAndReload?.(p, r, C, c),
2835
+ setPagination: (p) => o.value?.setPagination?.(p),
2836
+ setLoading: (p) => m.value = p,
2837
+ setDataValue: (p) => o.value?.setDataValue?.(p),
2838
+ reload: (p) => o.value?.reload?.(p)
2839
+ };
2840
+ }
2825
2841
  export {
2826
2842
  tt as GProTable,
2827
- tt as default,
2828
2843
  ce as proTableProps,
2829
- rn as useTable
2844
+ cn as useTable
2830
2845
  };