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

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