@gx-design-vue/pro-table 0.2.0-beta.140 → 0.2.0-beta.142

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