@gx-design-vue/pro-table 0.2.0-beta.93 → 0.2.0-beta.94

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,59 +1,59 @@
1
- import { cloneDeep as le, omit as Ge, pick as Ct } from "lodash-es";
2
- import { isObject as X, isBoolean as ne, getSlot as $t, isFunction as ke, arrayRepeat as el, runFunction as tl, convertValueBoolean as Fe, isArray as te, getSortIndex as ll, isDeepEqualReact as Ye, handleCurrentPage as al, genColumnKey as Bt, compareArray as nl, isNumber as _e, isString as Rt, classNames as Se, filterEmpty as Ft, getPrefixCls as ut, getRandomNumber as at, handleShowIndex as ul, hanndleEmptyField as il, getTextWidth as sl, getSlotVNode as Re } from "@gx-design-vue/pro-utils";
3
- import { reactive as we, isReactive as ol, watch as G, computed as w, ref as N, toRaw as Te, createVNode as c, mergeProps as q, isVNode as ce, watchEffect as Ae, unref as b, onUnmounted as rl, onDeactivated as cl, onMounted as dl, defineComponent as fe, Fragment as qe, nextTick as fl, h as It, cloneVNode as it, createTextVNode as Ne, renderSlot as hl, toRef as oe } from "vue";
1
+ import { cloneDeep as ae, omit as Ge, pick as Ct } from "lodash-es";
2
+ import { isObject as X, isBoolean as ne, getSlot as $t, isFunction as Ee, arrayRepeat as el, runFunction as tl, convertValueBoolean as Ie, isArray as le, getSortIndex as ll, isDeepEqualReact as He, handleCurrentPage as al, genColumnKey as Bt, compareArray as nl, isNumber as Qe, isString as Ft, classNames as we, filterEmpty as Rt, getPrefixCls as ut, getRandomNumber as at, handleShowIndex as ul, hanndleEmptyField as il, getTextWidth as sl, getSlotVNode as Re } from "@gx-design-vue/pro-utils";
3
+ import { reactive as pe, isReactive as ol, watch as _, computed as w, ref as E, toRaw as $e, createVNode as c, mergeProps as Q, isVNode as ce, watchEffect as Ae, unref as b, onUnmounted as rl, onDeactivated as cl, onMounted as dl, defineComponent as fe, Fragment as _e, nextTick as fl, h as It, cloneVNode as it, createTextVNode as De, renderSlot as hl, toRef as oe } from "vue";
4
4
  import "ant-design-vue/es/_util/props-util";
5
- import { warning as vl } from "ant-design-vue/es/vc-util/warning";
6
- import { tableProps as ml } from "ant-design-vue/es/table/Table";
5
+ import { warning as ml } from "ant-design-vue/es/vc-util/warning";
6
+ import { tableProps as vl } from "ant-design-vue/es/table/Table";
7
7
  import { UpOutlined as gl, DownOutlined as yl, SettingOutlined as Ot, VerticalAlignTopOutlined as bl, VerticalAlignMiddleOutlined as Cl, VerticalAlignBottomOutlined as xl, FullscreenExitOutlined as Sl, FullscreenOutlined as wl, ColumnHeightOutlined as pl, InfoCircleOutlined as Tl, ReloadOutlined as $l, CopyOutlined as Bl } from "@ant-design/icons-vue";
8
- import { useFullscreen as jt, useWindowSize as Rl } from "@vueuse/core";
9
- import { Grid as st, Space as xe, Button as xt, Input as St, TimePicker as Fl, DatePicker as Pt, TreeSelect as Il, Spin as nt, Select as Ol, Popover as jl, Checkbox as Pl, Tooltip as de, Tree as El, Dropdown as kl, Menu as He, Pagination as Nl, Table as Dl, message as Ml, Empty as Al } from "ant-design-vue";
10
- import { useProAppContext as Et } from "@gx-design-vue/pro-app";
11
- import { useContext as zl, useProStyle as Xe, unit as wt } from "@gx-design-vue/pro-provider";
12
- import ae from "dayjs";
8
+ import { useFullscreen as Pt, useWindowSize as Fl } from "@vueuse/core";
9
+ import { Grid as st, Space as Se, Button as xt, Input as St, TimePicker as Rl, DatePicker as kt, TreeSelect as Il, Spin as nt, Select as Ol, Popover as Pl, Checkbox as kl, Tooltip as de, Tree as jl, Dropdown as Nl, Menu as We, Pagination as El, Table as Dl, message as Ml, Empty as Al } from "ant-design-vue";
10
+ import { useProAppContext as jt } from "@gx-design-vue/pro-app";
11
+ import { useContext as zl, useProStyle as qe, unit as wt } from "@gx-design-vue/pro-provider";
12
+ import q from "dayjs";
13
13
  import { tryOnUnmounted as Kl, useMemo as Ve } from "@gx-design-vue/pro-hooks";
14
- function Wa(e, t) {
15
- var C, x, f, S;
16
- function l() {
17
- return t != null && t.state && X(t == null ? void 0 : t.state) ? le(Te(t == null ? void 0 : t.state)) : {};
14
+ function Va(e, l) {
15
+ var C, x, d, S;
16
+ function a() {
17
+ return l != null && l.state && X(l == null ? void 0 : l.state) ? ae($e(l == null ? void 0 : l.state)) : {};
18
18
  }
19
- const o = we({
20
- params: ((C = t == null ? void 0 : t.state) == null ? void 0 : C.params) || {},
19
+ const o = pe({
20
+ params: ((C = l == null ? void 0 : l.state) == null ? void 0 : C.params) || {},
21
21
  // @ts-ignore
22
22
  request: async (...u) => {
23
23
  var n;
24
- return t != null && t.request ? await ((n = t == null ? void 0 : t.request) == null ? void 0 : n.call(t, ...u)) : void 0;
24
+ return l != null && l.request ? await ((n = l == null ? void 0 : l.request) == null ? void 0 : n.call(l, ...u)) : void 0;
25
25
  }
26
26
  });
27
- t != null && t.state && (ol(t.state) ? G(() => t == null ? void 0 : t.state, () => {
28
- Object.assign(o, l());
29
- }, { deep: !0, immediate: !0 }) : Object.assign(o, l()));
27
+ l != null && l.state && (ol(l.state) ? _(() => l == null ? void 0 : l.state, () => {
28
+ Object.assign(o, a());
29
+ }, { deep: !0, immediate: !0 }) : Object.assign(o, a()));
30
30
  const s = w(() => {
31
31
  var u, n;
32
32
  return (n = (u = e == null ? void 0 : e.value) == null ? void 0 : u.actionRef) == null ? void 0 : n.call(u);
33
33
  }), i = w(() => {
34
34
  var u, n;
35
35
  return (n = (u = e == null ? void 0 : e.value) == null ? void 0 : u.formRef) == null ? void 0 : n.call(u);
36
- }), d = w(() => {
36
+ }), f = w(() => {
37
37
  var u, n, r;
38
38
  return {
39
39
  ...((u = s.value) == null ? void 0 : u.pageState) || {},
40
40
  ...((r = (n = i.value) == null ? void 0 : n.getFormState) == null ? void 0 : r.call(n)) || {}
41
41
  };
42
- }), v = N(!!((f = (x = s.value) == null ? void 0 : x.loading) != null && f.value));
43
- return G(() => {
42
+ }), m = E(!!((d = (x = s.value) == null ? void 0 : x.loading) != null && d.value));
43
+ return _(() => {
44
44
  var u, n;
45
45
  return (n = (u = s.value) == null ? void 0 : u.loading) == null ? void 0 : n.value;
46
46
  }, (u) => {
47
- v.value = !!u;
48
- }), G(v, (u) => {
47
+ m.value = !!u;
48
+ }), _(m, (u) => {
49
49
  var n, r;
50
50
  (r = (n = s.value) == null ? void 0 : n.setLoading) == null || r.call(n, !!u);
51
51
  }), {
52
52
  formRef: i,
53
53
  actionRef: s,
54
54
  tableState: o,
55
- requestParams: d,
56
- loading: v,
55
+ requestParams: f,
56
+ loading: m,
57
57
  dataSource: w(() => {
58
58
  var u, n;
59
59
  return ((n = (u = s == null ? void 0 : s.value) == null ? void 0 : u.dataSource) == null ? void 0 : n.value) || [];
@@ -75,15 +75,15 @@ function Wa(e, t) {
75
75
  var n, r;
76
76
  return (r = (n = s.value) == null ? void 0 : n.reloadAndReset) == null ? void 0 : r.call(n, u);
77
77
  },
78
- setPageAndReload: (u, n, r, m) => {
79
- var T, j;
80
- return (j = (T = s.value) == null ? void 0 : T.setPageAndReload) == null ? void 0 : j.call(T, u, n, r, m);
78
+ setPageAndReload: (u, n, r, g) => {
79
+ var T, P;
80
+ return (P = (T = s.value) == null ? void 0 : T.setPageAndReload) == null ? void 0 : P.call(T, u, n, r, g);
81
81
  },
82
82
  setPagination: (u) => {
83
83
  var n, r;
84
84
  return (r = (n = s.value) == null ? void 0 : n.setPagination) == null ? void 0 : r.call(n, u);
85
85
  },
86
- setLoading: (u) => v.value = u,
86
+ setLoading: (u) => m.value = u,
87
87
  setData: (u) => {
88
88
  var n, r;
89
89
  return (r = (n = s.value) == null ? void 0 : n.setData) == null ? void 0 : r.call(n, u);
@@ -94,8 +94,8 @@ function Wa(e, t) {
94
94
  }
95
95
  };
96
96
  }
97
- const Ll = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered", "loading"], kt = {
98
- ...Ge(ml(), Ll),
97
+ const Yl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered", "loading"], Nt = {
98
+ ...Ge(vl(), Yl),
99
99
  transformCellText: Function,
100
100
  /**
101
101
  * @Author gx12358
@@ -116,7 +116,7 @@ const Ll = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
116
116
  default: void 0
117
117
  }
118
118
  }, re = {
119
- ...kt,
119
+ ...Nt,
120
120
  rowSelection: {
121
121
  type: Object,
122
122
  default: void 0
@@ -384,88 +384,88 @@ const Ll = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
384
384
  onBeforeSearchSubmit: Function,
385
385
  onColumnsStateChange: Function
386
386
  };
387
- function Wl(e) {
387
+ function Ll(e) {
388
388
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ce(e);
389
389
  }
390
- function Hl(e, t, l, o) {
391
- if (!t) return e;
390
+ function Wl(e, l, a, o) {
391
+ if (!l) return e;
392
392
  let s = e;
393
- if (X(t)) {
394
- const i = t.node === "a" ? "span" : t.node;
395
- return c(i, q((t == null ? void 0 : t.attr) || {}, {
396
- class: [t.class, t.node === "a" ? `${l}-a` : ""],
397
- onClick: t.click
398
- }), Wl(e) ? e : {
393
+ if (X(l)) {
394
+ const i = l.node === "a" ? "span" : l.node;
395
+ return c(i, Q((l == null ? void 0 : l.attr) || {}, {
396
+ class: [l.class, l.node === "a" ? `${a}-a` : ""],
397
+ onClick: l.click
398
+ }), Ll(e) ? e : {
399
399
  default: () => [e]
400
400
  });
401
401
  }
402
- switch (t) {
402
+ switch (l) {
403
403
  case "link":
404
404
  s = c("span", {
405
- class: [`${l}-a`, o]
405
+ class: [`${a}-a`, o]
406
406
  }, [e]);
407
407
  break;
408
408
  case "time":
409
- s = ae(e).format("HH:mm:ss");
409
+ s = q(e).format("HH:mm:ss");
410
410
  break;
411
411
  case "dateMonth":
412
- s = `${ae(e).month() + 1}月`;
412
+ s = `${q(e).month() + 1}月`;
413
413
  break;
414
414
  case "dateTime":
415
- s = ae(e).format("YYYY-MM-DD HH:mm:ss");
415
+ s = q(e).format("YYYY-MM-DD HH:mm:ss");
416
416
  break;
417
417
  }
418
418
  return s;
419
419
  }
420
- function Yl(e, t) {
421
- const l = t && t.current || 1, o = t && t.pageSize || 10;
422
- return e.filter((s, i) => i < l * o && i >= o * (l - 1));
420
+ function Hl(e, l) {
421
+ const a = l && l.current || 1, o = l && l.pageSize || 10;
422
+ return e.filter((s, i) => i < a * o && i >= o * (a - 1));
423
423
  }
424
424
  function Vl(e) {
425
- const t = document.createElement("textarea");
426
- t.style.position = "absolute", t.style.opacity = "0", t.value = e, document.body.appendChild(t), t.select(), document.execCommand("copy"), document.body.removeChild(t);
425
+ const l = document.createElement("textarea");
426
+ l.style.position = "absolute", l.style.opacity = "0", l.value = e, document.body.appendChild(l), l.select(), document.execCommand("copy"), document.body.removeChild(l);
427
427
  }
428
- function Gl({ emit: e, loading: t }) {
428
+ function Gl({ emit: e, loading: l }) {
429
429
  var i;
430
- const l = N(ne(t.value) ? t.value : X(t.value) ? (i = t.value) == null ? void 0 : i.spinning : !1);
431
- G(() => t.value, (d) => {
432
- l.value = ne(d) ? d : X(d) ? d == null ? void 0 : d.spinning : l.value;
430
+ const a = E(ne(l.value) ? l.value : X(l.value) ? (i = l.value) == null ? void 0 : i.spinning : !1);
431
+ _(() => l.value, (f) => {
432
+ a.value = ne(f) ? f : X(f) ? f == null ? void 0 : f.spinning : a.value;
433
433
  });
434
- const o = w(() => l.value);
435
- function s(d) {
436
- l.value = d, e("loadingChange", !0);
434
+ const o = w(() => a.value);
435
+ function s(f) {
436
+ a.value = f, e("loadingChange", !0);
437
437
  }
438
- return { loadingComputed: o, loading: l, setLoading: s };
438
+ return { loadingComputed: o, loading: a, setLoading: s };
439
439
  }
440
- function _l({ size: e, emit: t }) {
441
- const l = N("middle");
440
+ function Ql({ size: e, emit: l }) {
441
+ const a = E("middle");
442
442
  Ae(() => {
443
- l.value = e.value;
443
+ a.value = e.value;
444
444
  });
445
445
  function o(s) {
446
- l.value = s, t("sizeChange", s);
446
+ a.value = s, l("sizeChange", s);
447
447
  }
448
- return { sizeRef: l, setTableSize: o };
448
+ return { sizeRef: a, setTableSize: o };
449
449
  }
450
- function ql({
450
+ function _l({
451
451
  slots: e,
452
- props: t,
453
- pagination: l
452
+ props: l,
453
+ pagination: a
454
454
  }) {
455
- const o = we({}), s = N();
456
- G(() => l.value, () => {
455
+ const o = pe({}), s = E();
456
+ _(() => a.value, () => {
457
457
  var x;
458
- if (ne(l.value) && !l.value) {
458
+ if (ne(a.value) && !a.value) {
459
459
  s.value = !1;
460
460
  return;
461
461
  }
462
- const d = $t(e, b(t), "pageItemRender"), v = ke(d) ? {
462
+ const f = $t(e, b(l), "pageItemRender"), m = Ee(f) ? {
463
463
  itemRender: ({
464
- page: f,
464
+ page: d,
465
465
  type: S,
466
466
  originalElement: u
467
- }) => d ? d({
468
- page: f,
467
+ }) => f ? f({
468
+ page: d,
469
469
  type: S,
470
470
  originalElement: u
471
471
  }) : null
@@ -476,10 +476,10 @@ function ql({
476
476
  showQuickJumper: !0,
477
477
  showSizeChanger: !0,
478
478
  pageSizeOptions: ["10", "20", "50", "100"],
479
- ...l.value || {},
480
- ...v || {}
479
+ ...a.value || {},
480
+ ...m || {}
481
481
  };
482
- (x = l.value) != null && x.showTotal || (C.showTotal = (f) => `共${f < C.pageSize ? 1 : Math.ceil(f / (C.pageSize || 10))}页 ${f}条记录`), s.value = C, Object.assign(o, {
482
+ (x = a.value) != null && x.showTotal || (C.showTotal = (d) => `共${d < C.pageSize ? 1 : Math.ceil(d / (C.pageSize || 10))}页 ${d}条记录`), s.value = C, Object.assign(o, {
483
483
  pageNum: C.current,
484
484
  pageSize: C.pageSize
485
485
  });
@@ -487,12 +487,12 @@ function ql({
487
487
  deep: 1,
488
488
  immediate: !0
489
489
  });
490
- function i(d) {
491
- if (X(s.value) && X(d)) {
492
- const v = {};
493
- Object.keys(d).forEach((C) => {
494
- Object.prototype.hasOwnProperty.call(d, C) && s.value[C] === d[C] || (v[C] = d[C]);
495
- }), Object.keys(v).length > 0 && (Object.assign(s.value, v), Xl(v) && Object.assign(o, v));
490
+ function i(f) {
491
+ if (X(s.value) && X(f)) {
492
+ const m = {};
493
+ Object.keys(f).forEach((C) => {
494
+ Object.prototype.hasOwnProperty.call(f, C) && s.value[C] === f[C] || (m[C] = f[C]);
495
+ }), Object.keys(m).length > 0 && (Object.assign(s.value, m), ql(m) && Object.assign(o, m));
496
496
  }
497
497
  }
498
498
  return {
@@ -501,403 +501,403 @@ function ql({
501
501
  setPagination: i
502
502
  };
503
503
  }
504
- function Xl(e) {
504
+ function ql(e) {
505
505
  if (typeof e != "object" || e === null)
506
506
  return !1;
507
- const t = Object.keys(e);
508
- return t.length === 2 && t.includes("pageNum") && t.includes("pageSize");
507
+ const l = Object.keys(e);
508
+ return l.length === 2 && l.includes("pageNum") && l.includes("pageSize");
509
509
  }
510
- function Ul(e, t) {
511
- const l = N([]), o = N([]);
512
- G(() => {
513
- var f;
514
- return (f = t.value) == null ? void 0 : f.selectedRowKeys;
515
- }, (f) => {
516
- l.value = el([...f || []]);
510
+ function Xl(e, l) {
511
+ const a = E([]), o = E([]);
512
+ _(() => {
513
+ var d;
514
+ return (d = l.value) == null ? void 0 : d.selectedRowKeys;
515
+ }, (d) => {
516
+ a.value = el([...d || []]);
517
517
  }, {
518
518
  deep: !0,
519
519
  immediate: !0
520
520
  });
521
- const s = (f, S) => {
522
- e.value && (S ? f != null && f[e.value] && (l.value.push(f[e.value]), o.value.push(f)) : (l.value = l.value.filter((u) => u !== f[e.value]), o.value = o.value.filter((u) => u[e.value] !== f[e.value])));
521
+ const s = (d, S) => {
522
+ e.value && (S ? d != null && d[e.value] && (a.value.push(d[e.value]), o.value.push(d)) : (a.value = a.value.filter((u) => u !== d[e.value]), o.value = o.value.filter((u) => u[e.value] !== d[e.value])));
523
523
  }, i = () => {
524
- var f, S;
525
- t.value && ((S = (f = t.value) == null ? void 0 : f.onChange) == null || S.call(f, l.value, o.value));
524
+ var d, S;
525
+ l.value && ((S = (d = l.value) == null ? void 0 : d.onChange) == null || S.call(d, a.value, o.value));
526
526
  };
527
527
  return {
528
- selectedKeys: l,
528
+ selectedKeys: a,
529
529
  selectedItems: o,
530
530
  selectRowKey: s,
531
- selectAllRowKey: (f, S, u) => {
532
- e.value && (f ? S.map((n) => (l.value.every((r) => r !== (n == null ? void 0 : n[e.value])) && n != null && n[e.value] && (l.value.push(n[e.value]), o.value.push(n)), n)) : u.map((n) => (l.value.includes(n == null ? void 0 : n[e.value]) && (l.value = l.value.filter((r) => r !== n[e.value]), o.value = o.value.filter((r) => r[e.value] !== n[e.value])), n)));
531
+ selectAllRowKey: (d, S, u) => {
532
+ e.value && (d ? S.map((n) => (a.value.every((r) => r !== (n == null ? void 0 : n[e.value])) && n != null && n[e.value] && (a.value.push(n[e.value]), o.value.push(n)), n)) : u.map((n) => (a.value.includes(n == null ? void 0 : n[e.value]) && (a.value = a.value.filter((r) => r !== n[e.value]), o.value = o.value.filter((r) => r[e.value] !== n[e.value])), n)));
533
533
  },
534
- removeRowKeys: (f) => {
535
- l.value = l.value.filter((S) => !f.includes(S)), o.value = o.value.filter((S) => !f.includes(S == null ? void 0 : S[e.value || ""])), i();
534
+ removeRowKeys: (d) => {
535
+ a.value = a.value.filter((S) => !d.includes(S)), o.value = o.value.filter((S) => !d.includes(S == null ? void 0 : S[e.value || ""])), i();
536
536
  },
537
537
  changeRowKey: i,
538
- syncSelectedRows: (f) => {
539
- if (e.value && l.value.length !== o.value.length) {
540
- const S = o.value.map((n) => n[e.value]), u = l.value.filter((n) => !S.includes(n));
541
- f.forEach((n) => {
542
- u.includes(n[e.value]) && o.value.push(le(n));
538
+ syncSelectedRows: (d) => {
539
+ if (e.value && a.value.length !== o.value.length) {
540
+ const S = o.value.map((n) => n[e.value]), u = a.value.filter((n) => !S.includes(n));
541
+ d.forEach((n) => {
542
+ u.includes(n[e.value]) && o.value.push(ae(n));
543
543
  });
544
544
  }
545
545
  },
546
546
  clearAllRowKeys: () => {
547
- l.value = [], o.value = [], i();
547
+ a.value = [], o.value = [], i();
548
548
  }
549
549
  };
550
550
  }
551
- function Jl(e, t) {
552
- const l = w(() => t || 0), o = N(), s = N(e);
551
+ function Ul(e, l) {
552
+ const a = w(() => l || 0), o = E(), s = E(e);
553
553
  function i() {
554
554
  o.value && clearTimeout(o.value);
555
555
  }
556
- async function d(...v) {
557
- return l.value === 0 || l.value === void 0 ? s.value(...v) : (i(), new Promise(async (C) => {
556
+ async function f(...m) {
557
+ return a.value === 0 || a.value === void 0 ? s.value(...m) : (i(), new Promise(async (C) => {
558
558
  var x;
559
- (x = v[0]) != null && x.immediate ? C(await s.value(...v)) : o.value = setTimeout(async () => {
560
- C(await s.value(...v));
561
- }, l.value);
559
+ (x = m[0]) != null && x.immediate ? C(await s.value(...m)) : o.value = setTimeout(async () => {
560
+ C(await s.value(...m));
561
+ }, a.value);
562
562
  }));
563
563
  }
564
564
  return Kl(i), {
565
565
  cancel: i,
566
- run: d
566
+ run: f
567
567
  };
568
568
  }
569
- function Ql(e) {
570
- const t = w(() => e.polling), l = w(() => e.debounceTime), o = w(() => e.dataSource);
569
+ function Jl(e) {
570
+ const l = w(() => e.polling), a = w(() => e.debounceTime), o = w(() => e.dataSource);
571
571
  return {
572
- polling: t,
572
+ polling: l,
573
573
  request: e.request,
574
574
  postData: e.postData,
575
- debounceTime: l,
575
+ debounceTime: a,
576
576
  dataSource: o
577
577
  };
578
578
  }
579
- function Zl({ polling: e, request: t, postData: l, dataSource: o, waitRequest: s, debounceTime: i }, { search: d, columns: v, loading: C, setLoading: x, setColumns: f, removeRowKeys: S, syncSelectedRows: u, formParamsRef: n, setPagination: r, paginationInfo: m, onBeforeSearchSubmit: T, hasCustomRender: j }, F) {
580
- const M = N(), W = N(!0), L = N(!1), _ = N(!1), A = N([]), V = N(), H = w(() => {
579
+ function Zl({ polling: e, request: l, postData: a, dataSource: o, waitRequest: s, debounceTime: i }, { search: f, columns: m, loading: C, setLoading: x, setColumns: d, removeRowKeys: S, syncSelectedRows: u, formParamsRef: n, setPagination: r, paginationInfo: g, onBeforeSearchSubmit: T, hasCustomRender: P }, R) {
580
+ const M = E(), W = E(!0), Y = E(!1), L = E(!1), A = E([]), G = E(), H = w(() => {
581
581
  var I;
582
- return X(d.value) ? ((I = d.value) == null ? void 0 : I.type) === "button" : !!d.value;
582
+ return X(f.value) ? ((I = f.value) == null ? void 0 : I.type) === "button" : !!f.value;
583
583
  }), ue = async (I = {}) => {
584
584
  var ze;
585
- const { pagination: E, filters: y = {}, sorter: K = {}, removeKeys: $e = [], isPolling: Ue = !1 } = I;
586
- if (!t || !ke(t) || b(s) && C.value || L.value)
585
+ const { pagination: j, filters: v = {}, sorter: K = {}, removeKeys: Be = [], isPolling: Xe = !1 } = I;
586
+ if (!l || !Ee(l) || b(s) && C.value || Y.value)
587
587
  return o.value || [];
588
- if (L.value = !0, !Ue || b(s) || W.value ? x(!0) : g(!0), b(s)) {
589
- W.value = !1, L.value = !1;
588
+ if (Y.value = !0, !Xe || b(s) || W.value ? x(!0) : y(!0), b(s)) {
589
+ W.value = !1, Y.value = !1;
590
590
  return;
591
591
  }
592
- E && r(E);
592
+ j && r(j);
593
593
  try {
594
- let me = {};
595
- if (ne(E) && !E || ne(m))
596
- me = {};
594
+ let ve = {};
595
+ if (ne(j) && !j || ne(g))
596
+ ve = {};
597
597
  else {
598
- const { current: z = 1, pageSize: ye = 10, total: J } = b(m) || {};
599
- me.pageNum = al({ current: z, pageSize: ye, total: J }, $e.length), $e.length && S($e), me.pageSize = ye;
598
+ const { current: z = 1, pageSize: ye = 10, total: J } = b(g) || {};
599
+ ve.pageNum = al({ current: z, pageSize: ye, total: J }, Be.length), Be.length && S(Be), ve.pageSize = ye;
600
600
  }
601
601
  const Ke = X(K) ? [K] : K;
602
602
  Ke.forEach((z) => {
603
603
  const ye = (z == null ? void 0 : z.columnKey) || (z == null ? void 0 : z.field);
604
- z && (z != null && z.order) ? f(b(v).map((J) => (J.dataIndex === ye ? J.sortOrder = z == null ? void 0 : z.order : J.sortOrder = null, J))) : z && f(b(v).map((J) => (J.dataIndex === ye && (J.sortOrder = null), J)));
604
+ z && (z != null && z.order) ? d(b(m).map((J) => (J.dataIndex === ye ? J.sortOrder = z == null ? void 0 : z.order : J.sortOrder = null, J))) : z && d(b(m).map((J) => (J.dataIndex === ye && (J.sortOrder = null), J)));
605
605
  });
606
- let Ie = {
607
- ...me || {},
606
+ let Oe = {
607
+ ...ve || {},
608
608
  ...I.params,
609
609
  ...n
610
610
  };
611
- T && ke(T) && (Ie = await T(Ie, K, y));
612
- let Q = [];
613
- const ge = await (t == null ? void 0 : t(Ie, Ke, y));
614
- if (L.value = !1, ge && (ge != null && ge.success)) {
615
- Q = ge.data || [], l && ke(l) && (Q = await (l == null ? void 0 : l(Q))), u(Q);
616
- const z = ge.total || (Q == null ? void 0 : Q.length) || 0;
617
- return z !== ((ze = b(m)) == null ? void 0 : ze.total) && r({
611
+ T && Ee(T) && (Oe = await T(Oe, K, v));
612
+ let Z = [];
613
+ const ge = await (l == null ? void 0 : l(Oe, Ke, v));
614
+ if (Y.value = !1, ge && (ge != null && ge.success)) {
615
+ Z = ge.data || [], a && Ee(a) && (Z = await (a == null ? void 0 : a(Z))), u(Z);
616
+ const z = ge.total || (Z == null ? void 0 : Z.length) || 0;
617
+ return z !== ((ze = b(g)) == null ? void 0 : ze.total) && r({
618
618
  total: z || 0
619
- }), p(Q), Q;
619
+ }), p(Z), Z;
620
620
  } else
621
621
  return [];
622
- } catch (me) {
623
- A.value === void 0 && p([]), F("requestError", me);
622
+ } catch (ve) {
623
+ A.value === void 0 && p([]), R("requestError", ve);
624
624
  } finally {
625
625
  W.value = !1, x(!1);
626
626
  }
627
627
  return [];
628
- }, Z = Jl(async (I) => {
629
- V.value && clearTimeout(V.value);
630
- const E = await ue(I), y = tl(e.value, E);
631
- return y && !M.value && (V.value = setTimeout(() => {
632
- Z.run({ ...I, isPolling: y });
633
- }, Math.max(y, 2e3))), E;
628
+ }, ee = Ul(async (I) => {
629
+ G.value && clearTimeout(G.value);
630
+ const j = await ue(I), v = tl(e.value, j);
631
+ return v && !M.value && (G.value = setTimeout(() => {
632
+ ee.run({ ...I, isPolling: v });
633
+ }, Math.max(v, 2e3))), j;
634
634
  }, i.value || 10);
635
635
  rl(() => {
636
- M.value = !0, clearTimeout(V.value);
636
+ M.value = !0, clearTimeout(G.value);
637
637
  }), cl(() => {
638
- M.value = !0, clearTimeout(V.value);
639
- }), G(() => e.value, () => {
640
- e.value ? Z.run({ isPolling: !0 }) : clearTimeout(V.value);
641
- }, { immediate: !0 }), G([() => s.value, () => o.value], () => {
642
- ve();
643
- }, { deep: !0, immediate: !0 }), G([() => n], () => {
644
- H.value || ve();
638
+ M.value = !0, clearTimeout(G.value);
639
+ }), _(() => e.value, () => {
640
+ e.value ? ee.run({ isPolling: !0 }) : clearTimeout(G.value);
641
+ }, { immediate: !0 }), _([() => s.value, () => o.value], () => {
642
+ me();
643
+ }, { deep: !0, immediate: !0 }), _([() => n], () => {
644
+ H.value || me();
645
645
  }, {
646
646
  deep: !0,
647
647
  immediate: !0
648
648
  });
649
- function ve() {
650
- Fe(t) ? (!W.value || !e.value) && Z.run({ isPolling: !1 }) : p(o.value || []);
649
+ function me() {
650
+ Ie(l) ? (!W.value || !e.value) && ee.run({ isPolling: !1 }) : p(o.value || []);
651
651
  }
652
652
  const U = w(() => {
653
- if (j.value)
653
+ if (P.value)
654
654
  return b(A);
655
- const I = v.value.filter((E) => E.show || E.show === void 0);
655
+ const I = m.value.filter((j) => j.show || j.show === void 0);
656
656
  return !b(A) || !I || I.length === 0 ? [] : b(A);
657
- }), a = w(() => b(A).some((I) => te(I.children) && I.children.length > 0));
658
- function g(I) {
659
- _.value = I;
657
+ }), t = w(() => b(A).some((I) => le(I.children) && I.children.length > 0));
658
+ function y(I) {
659
+ L.value = I;
660
660
  }
661
- function O(I, E, y, K) {
662
- Z.run({ pagination: I, filters: E, sorter: y, extra: K, isPolling: !1 }), F("change", I, E, y, K);
661
+ function O(I, j, v, K) {
662
+ ee.run({ pagination: I, filters: j, sorter: v, extra: K, isPolling: !1 }), R("change", I, j, v, K);
663
663
  }
664
664
  function p(I) {
665
- var y;
666
- const E = ll(le(I), b(m.value));
667
- if (!Ye(E, A.value) && (A.value = E, !t || !ke(t))) {
668
- const K = E.length || 0;
669
- K !== ((y = b(m)) == null ? void 0 : y.total) && r({
665
+ var v;
666
+ const j = ll(ae(I), b(g.value));
667
+ if (!He(j, A.value) && (A.value = j, !l || !Ee(l))) {
668
+ const K = j.length || 0;
669
+ K !== ((v = b(g)) == null ? void 0 : v.total) && r({
670
670
  total: K
671
671
  });
672
672
  }
673
673
  }
674
- function D({ key: I, record: E, type: y = "update" }) {
675
- switch (y) {
674
+ function D({ key: I, record: j, type: v = "update" }) {
675
+ switch (v) {
676
676
  case "update":
677
- A.value = A.value.map((K) => I && E[I] === K[I] ? { ...K, ...E } : K);
677
+ A.value = A.value.map((K) => I && j[I] === K[I] ? { ...K, ...j } : K);
678
678
  break;
679
679
  case "push":
680
- A.value.push(E);
680
+ A.value.push(j);
681
681
  break;
682
682
  case "unshift":
683
- A.value.unshift(E);
683
+ A.value.unshift(j);
684
684
  break;
685
685
  case "delete":
686
- A.value = A.value.filter((K) => I ? I && E[I] !== K[I] : !0);
686
+ A.value = A.value.filter((K) => I ? I && j[I] !== K[I] : !0);
687
687
  break;
688
688
  }
689
689
  }
690
690
  return {
691
691
  dataSource: U,
692
- isTreeDataRef: a,
692
+ isTreeDataRef: t,
693
693
  reSetDataList: p,
694
694
  changeDataValue: D,
695
695
  handleTableChange: O,
696
696
  reload: async (I) => {
697
- Fe(t) ? await Z.run({ ...I, isPolling: !1 }) : F("reload");
697
+ Ie(l) ? await ee.run({ ...I, isPolling: !1 }) : R("reload");
698
698
  }
699
699
  };
700
700
  }
701
701
  function ea(e) {
702
- const t = {};
703
- return e.forEach((l) => {
704
- let o = l.initialValue;
702
+ const l = {};
703
+ return e.forEach((a) => {
704
+ let o = a.initialValue;
705
705
  const s = ["select"], i = ["date", "time", "dateRange"];
706
- !o && s.includes(l.valueType) ? o = void 0 : !o && i.includes(l.valueType) ? o = null : o || (o = ""), l.name === "dateRange" ? (t[l.rangeStartName || "start"] = o ? o[0] : null, t[l.rangeEndName || "end"] = o ? o[1] : null) : l.name && (t[l.name] = o);
707
- }), t;
706
+ !o && s.includes(a.valueType) ? o = void 0 : !o && i.includes(a.valueType) ? o = null : o || (o = ""), a.name === "dateRange" ? (l[a.rangeStartName || "start"] = o ? o[0] : null, l[a.rangeEndName || "end"] = o ? o[1] : null) : a.name && (l[a.name] = o);
707
+ }), l;
708
708
  }
709
- function ta({ searchMap: e, params: t, columns: l, setPagination: o }) {
710
- const s = we({}), i = we({}), d = N([]), v = (x) => {
709
+ function ta({ searchMap: e, params: l, columns: a, setPagination: o }) {
710
+ const s = pe({}), i = pe({}), f = E([]), m = (x) => {
711
711
  var S, u;
712
- const f = [];
713
- if ((x === "all" || x === "searchMap") && ((S = e.value) == null || S.forEach((n) => f.push(n)), f.forEach((n) => {
714
- d.value.some((r) => r.name === n.name) ? d.value = d.value.map((r) => r.name === n.name ? {
712
+ const d = [];
713
+ if ((x === "all" || x === "searchMap") && ((S = e.value) == null || S.forEach((n) => d.push(n)), d.forEach((n) => {
714
+ f.value.some((r) => r.name === n.name) ? f.value = f.value.map((r) => r.name === n.name ? {
715
715
  ...r,
716
716
  ...n
717
- } : r) : d.value.push(n);
718
- })), (x === "all" || x === "columns") && ((u = l.value) != null && u.length) && (l.value && l.value.forEach((n) => {
719
- n.searchConfig && f.push(n.searchConfig);
720
- }), f.forEach((n) => {
721
- d.value.some((r) => r.name === n.name) ? d.value = d.value.map((r) => r.name === n.name ? {
717
+ } : r) : f.value.push(n);
718
+ })), (x === "all" || x === "columns") && ((u = a.value) != null && u.length) && (a.value && a.value.forEach((n) => {
719
+ n.searchConfig && d.push(n.searchConfig);
720
+ }), d.forEach((n) => {
721
+ f.value.some((r) => r.name === n.name) ? f.value = f.value.map((r) => r.name === n.name ? {
722
722
  ...r,
723
723
  ...n
724
- } : r) : d.value.push(n);
724
+ } : r) : f.value.push(n);
725
725
  })), x === "all" || x === "searchMap" || x === "columns") {
726
726
  o({ current: 1 });
727
- const n = ea(f);
727
+ const n = ea(d);
728
728
  Object.assign(i, { ...n });
729
729
  for (const r in n)
730
730
  s[r] || (s[r] = n[r]);
731
731
  }
732
- (x === "all" || x === "params") && (o({ current: 1 }), Object.assign(s, t.value));
732
+ (x === "all" || x === "params") && (o({ current: 1 }), Object.assign(s, l.value));
733
733
  };
734
734
  dl(() => {
735
- v("all");
736
- }), G(() => t.value, () => {
737
- v("params");
738
- }, { deep: !0 }), G(() => e.value, () => {
739
- v("searchMap");
740
- }, { deep: !0 }), G(() => l.value, () => {
741
- v("columns");
735
+ m("all");
736
+ }), _(() => l.value, () => {
737
+ m("params");
738
+ }, { deep: !0 }), _(() => e.value, () => {
739
+ m("searchMap");
740
+ }, { deep: !0 }), _(() => a.value, () => {
741
+ m("columns");
742
742
  }, { deep: !0 });
743
743
  function C(x) {
744
744
  o({ current: 1 }), Object.assign(s, x);
745
745
  }
746
- return { formDataRef: d, formParamsRef: s, defaultParamsRef: i, setFormParams: C };
746
+ return { formDataRef: f, formParamsRef: s, defaultParamsRef: i, setFormParams: C };
747
747
  }
748
- function la({ columns: e, columnsState: t, changeColumns: l }) {
749
- const o = N(void 0), s = we({}), i = we({}), d = we({}), v = N([]);
750
- G(() => e.value, () => {
748
+ function la({ columns: e, columnsState: l, changeColumns: a }) {
749
+ const o = E(void 0), s = pe({}), i = pe({}), f = pe({}), m = E([]);
750
+ _(() => e.value, () => {
751
751
  var S;
752
- (S = b(e)) == null || S.forEach(({ show: u, key: n, fixed: r }, m) => {
753
- const T = Bt(n, m);
754
- T && (d[T] = { show: u === void 0 ? !0 : u, fixed: r });
752
+ (S = b(e)) == null || S.forEach(({ show: u, key: n, fixed: r }, g) => {
753
+ const T = Bt(n, g);
754
+ T && (f[T] = { show: u === void 0 ? !0 : u, fixed: r });
755
755
  });
756
- const f = b(e).map((u) => u.key);
757
- x(f);
756
+ const d = b(e).map((u) => u.key);
757
+ x(d);
758
758
  }, { deep: !0, immediate: !0 }), Ae(() => {
759
759
  var S;
760
- const f = {
761
- ...(S = b(t)) == null ? void 0 : S.value,
762
- ...b(d)
760
+ const d = {
761
+ ...(S = b(l)) == null ? void 0 : S.value,
762
+ ...b(f)
763
763
  };
764
- Object.assign(s, f), Object.assign(i, f);
764
+ Object.assign(s, d), Object.assign(i, d);
765
765
  });
766
- function C(f, S) {
767
- o.value = S, Object.assign(s, f), l == null || l(s, S === "fixed");
766
+ function C(d, S) {
767
+ o.value = S, Object.assign(s, d), a == null || a(s, S === "fixed");
768
768
  }
769
- function x(f) {
770
- v.value = f;
769
+ function x(d) {
770
+ m.value = d;
771
771
  }
772
772
  return {
773
773
  columnsMap: s,
774
774
  operationType: o,
775
775
  setColumnsMap: C,
776
- sortKeyColumns: v,
776
+ sortKeyColumns: m,
777
777
  cacheColumnsMap: i,
778
778
  setSortKeyColumns: x
779
779
  };
780
780
  }
781
781
  function aa(e) {
782
- const t = w(() => e.draggabled), l = w(() => e.neverScroll), o = w(() => e.autoScroll);
782
+ const l = w(() => e.draggabled), a = w(() => e.neverScroll), o = w(() => e.autoScroll);
783
783
  return {
784
- draggabled: t,
785
- neverScroll: l,
784
+ draggabled: l,
785
+ neverScroll: a,
786
786
  autoScroll: o
787
787
  };
788
788
  }
789
- function na({ scroll: e, columns: t, breakpoint: l, draggabled: o, autoScroll: s, neverScroll: i }) {
790
- const d = N([]), v = N([]);
791
- G([
789
+ function na({ scroll: e, columns: l, breakpoint: a, draggabled: o, autoScroll: s, neverScroll: i }) {
790
+ const f = E([]), m = E([]);
791
+ _([
792
792
  () => e.value,
793
- () => t.value,
794
793
  () => l.value,
794
+ () => a.value,
795
795
  () => o.value,
796
- () => l.value,
796
+ () => a.value,
797
797
  () => s.value,
798
798
  () => i.value
799
799
  ], () => {
800
- const r = f(Te(t.value));
801
- Ye(r, Te(d.value)) || (d.value = le(r)), Ye(r, Te(v.value)) || (v.value = le(r));
800
+ const r = d($e(l.value));
801
+ He(r, $e(f.value)) || (f.value = ae(r)), He(r, $e(m.value)) || (m.value = ae(r));
802
802
  }, {
803
803
  deep: !0,
804
804
  immediate: !0
805
805
  });
806
806
  const C = w(() => {
807
- const r = x(b(d).filter((j) => j.fixed === "left")), m = x(b(d).filter((j) => j.fixed !== "left" && j.fixed !== "right")), T = x(b(d).filter((j) => j.fixed === "right"));
807
+ const r = x(b(f).filter((P) => P.fixed === "left")), g = x(b(f).filter((P) => P.fixed !== "left" && P.fixed !== "right")), T = x(b(f).filter((P) => P.fixed === "right"));
808
808
  return [
809
809
  ...r,
810
- ...m,
810
+ ...g,
811
811
  ...T
812
812
  ];
813
813
  });
814
814
  function x(r) {
815
- return r.sort((m, T) => nl(m, T, "order", 0));
815
+ return r.sort((g, T) => nl(g, T, "order", 0));
816
816
  }
817
- function f(r) {
818
- return le(r).map((m, T) => {
819
- var j;
820
- if (m.dataIndex === "action" || T === r.length - 1 ? m.resizable = !1 : m.resizable = ne(m.resizable) ? m.resizable : !!(_e(m.width) && b(o)), !m.width || b(i))
821
- return m;
822
- if (m.dataIndex === "action" && b(s))
823
- if ((j = b(e)) != null && j.x || !b(l))
824
- m.width = m.width || 100, m.fixed = "right";
817
+ function d(r) {
818
+ return ae(r).map((g, T) => {
819
+ var P;
820
+ if (g.dataIndex === "action" || T === r.length - 1 ? g.resizable = !1 : g.resizable = ne(g.resizable) ? g.resizable : !!(Qe(g.width) && b(o)), !g.width || b(i))
821
+ return g;
822
+ if (g.dataIndex === "action" && b(s))
823
+ if ((P = b(e)) != null && P.x || !b(a))
824
+ g.width = g.width || 100, g.fixed = "right";
825
825
  else {
826
- const F = b(t).find((M) => M.dataIndex === m.dataIndex);
827
- m.width = (F == null ? void 0 : F.width) || "", m.fixed = F == null ? void 0 : F.fixed;
826
+ const R = b(l).find((M) => M.dataIndex === g.dataIndex);
827
+ g.width = (R == null ? void 0 : R.width) || "", g.fixed = R == null ? void 0 : R.fixed;
828
828
  }
829
- return m;
829
+ return g;
830
830
  });
831
831
  }
832
- function S(r, m) {
833
- d.value = d.value.map((T) => (T.uuid === m.uuid && (T.width = r), T));
832
+ function S(r, g) {
833
+ f.value = f.value.map((T) => (T.uuid === g.uuid && (T.width = r), T));
834
834
  }
835
835
  function u(r) {
836
836
  if (r.length <= 0) {
837
- d.value = [];
837
+ f.value = [];
838
838
  return;
839
839
  }
840
- Ye(f(r), Te(d.value)) || (d.value = f(r));
840
+ He(d(r), $e(f.value)) || (f.value = d(r));
841
841
  }
842
842
  function n(r) {
843
- u(le(Te(t.value)).map((m) => {
844
- var j, F, M;
845
- const T = m.key ? {
846
- show: (j = r[m.key]) == null ? void 0 : j.show,
847
- fixed: (F = r[m.key]) == null ? void 0 : F.fixed,
848
- order: (M = r[m.key]) == null ? void 0 : M.order
843
+ u(ae($e(l.value)).map((g) => {
844
+ var P, R, M;
845
+ const T = g.key ? {
846
+ show: (P = r[g.key]) == null ? void 0 : P.show,
847
+ fixed: (R = r[g.key]) == null ? void 0 : R.fixed,
848
+ order: (M = r[g.key]) == null ? void 0 : M.order
849
849
  } : {};
850
- return { ...m, ...T };
850
+ return { ...g, ...T };
851
851
  }));
852
852
  }
853
853
  return {
854
- breakpoint: l,
854
+ breakpoint: a,
855
855
  proColumns: C,
856
- cacheProColumns: v,
856
+ cacheProColumns: m,
857
857
  setColumns: u,
858
858
  changeColumns: n,
859
859
  resizeColumnWidth: S
860
860
  };
861
861
  }
862
862
  function ua(e) {
863
- const t = w(() => e.scroll), l = w(() => e.autoScroll), o = w(() => e.modalScroll), s = w(() => e.neverScroll), i = w(() => e.rowSelection), d = w(() => e.scrollBreakpoint);
863
+ const l = w(() => e.scroll), a = w(() => e.autoScroll), o = w(() => e.modalScroll), s = w(() => e.neverScroll), i = w(() => e.rowSelection), f = w(() => e.scrollBreakpoint);
864
864
  return {
865
- scroll: t,
865
+ scroll: l,
866
866
  neverScroll: s,
867
867
  rowSelection: i,
868
- autoScroll: l,
868
+ autoScroll: a,
869
869
  modalScroll: o,
870
- scrollBreakpoint: d
870
+ scrollBreakpoint: f
871
871
  };
872
872
  }
873
- function ia({ scroll: e, columns: t, autoScroll: l, modalScroll: o, neverScroll: s, rowSelection: i, screens: d, innerWidth: v, scrollBreakpoint: C }) {
873
+ function ia({ scroll: e, columns: l, autoScroll: a, modalScroll: o, neverScroll: s, rowSelection: i, screens: f, innerWidth: m, scrollBreakpoint: C }) {
874
874
  const x = w(() => {
875
875
  var u, n, r;
876
- return b(C) ? _e(b(C)) ? v.value > b(C) : Rt(b(C)) ? (u = d.value) == null ? void 0 : u[b(C)] : (n = d.value) == null ? void 0 : n.xl : (r = d.value) == null ? void 0 : r.xl;
877
- }), f = w(() => {
876
+ return b(C) ? Qe(b(C)) ? m.value > b(C) : Ft(b(C)) ? (u = f.value) == null ? void 0 : u[b(C)] : (n = f.value) == null ? void 0 : n.xl : (r = f.value) == null ? void 0 : r.xl;
877
+ }), d = w(() => {
878
878
  let u = 0;
879
- const n = b(i) ? 60 : 0, r = 150, m = le(b(t));
880
- m.forEach((F) => {
881
- u += Number.parseInt(String(F.width)) || 0;
879
+ const n = b(i) ? 60 : 0, r = 150, g = ae(b(l));
880
+ g.forEach((R) => {
881
+ u += Number.parseInt(String(R.width)) || 0;
882
882
  });
883
- const j = m.filter((F) => !Reflect.has(F, "width")).length;
884
- return j !== 0 && (u += j * r), n && (u += n), u;
883
+ const P = g.filter((R) => !Reflect.has(R, "width")).length;
884
+ return P !== 0 && (u += P * r), n && (u += n), u;
885
885
  });
886
886
  return { proScroll: w(() => {
887
887
  var u, n;
888
888
  return b(s) ? {} : b(e) && Object.keys(b(e)).length ? b(e) : b(o) ? {
889
- y: ((u = b(e)) == null ? void 0 : u.y) || ((n = d.value) != null && n.xl ? 400 : 235)
890
- } : b(l) ? x.value ? {} : ne(x.value) ? { x: b(f) } : {} : {};
889
+ y: ((u = b(e)) == null ? void 0 : u.y) || ((n = f.value) != null && n.xl ? 400 : 235)
890
+ } : b(a) ? x.value ? {} : ne(x.value) ? { x: b(d) } : {} : {};
891
891
  }), breakpoint: x };
892
892
  }
893
893
  const { provideContext: sa, useInjectContext: he } = zl("pro-table");
894
- function oa(e, t) {
895
- const l = we({});
894
+ function oa(e, l) {
895
+ const a = pe({});
896
896
  function o() {
897
- Object.keys(e).forEach((d) => {
898
- s(d, e[d]);
897
+ Object.keys(e).forEach((f) => {
898
+ s(f, e[f]);
899
899
  });
900
- const i = t.find((d) => d.valueType === "dateRange");
900
+ const i = l.find((f) => f.valueType === "dateRange");
901
901
  i && s(i.name || "", e[i.rangeStartName || "start"] ? [
902
902
  e[i.rangeStartName || "start"],
903
903
  e[i.rangeEndName || "end"]
@@ -906,11 +906,11 @@ function oa(e, t) {
906
906
  Ae(() => {
907
907
  o();
908
908
  });
909
- function s(i, d) {
910
- l[i] = d;
909
+ function s(i, f) {
910
+ a[i] = f;
911
911
  }
912
912
  return {
913
- formState: l,
913
+ formState: a,
914
914
  resetFormState: o,
915
915
  changeFormState: s
916
916
  };
@@ -982,28 +982,31 @@ const ra = (e) => ({
982
982
  alignItems: "center"
983
983
  }
984
984
  });
985
- function De(e, t) {
986
- return typeof t == "function" ? t(ae(e)) : ae(e).format(t);
985
+ function xe(e, l) {
986
+ return typeof l == "function" ? l(q(e)) : q(e).format(l);
987
987
  }
988
- function Ee(e, t) {
989
- return t ? "YYYY-MM-DD HH:mm:ss" : e ?? "YYYY-MM-DD";
988
+ function Ne(e, l) {
989
+ return l ? "YYYY-MM-DD HH:mm:ss" : e ?? "YYYY-MM-DD";
990
990
  }
991
- const pt = (e, t, l = "string") => {
992
- if (te(e)) {
991
+ const pt = (e, l, a = "string") => {
992
+ if (le(e)) {
993
993
  const [o, s] = e;
994
- let i, d;
995
- if (Array.isArray(t) ? (i = t[0], d = t[1]) : typeof t == "object" && t.type === "mask" ? (i = t.format, d = t.format) : (i = t, d = t), l === "string") {
996
- const v = o ? De(o, i) : "", C = s ? De(s, d) : "";
997
- return [v, C];
994
+ let i, f;
995
+ if (Array.isArray(l) ? (i = l[0], f = l[1]) : typeof l == "object" && l.type === "mask" ? (i = l.format, f = l.format) : (i = l, f = l), a === "string") {
996
+ const m = o ? xe(o, i) : "", C = s ? xe(s, f) : "";
997
+ return [m, C];
998
998
  }
999
- return [ae(o), ae(s)];
999
+ return [q(o), q(s)];
1000
1000
  }
1001
1001
  }, {
1002
1002
  useBreakpoint: ca
1003
1003
  } = st, {
1004
1004
  MonthPicker: da,
1005
- RangePicker: fa
1006
- } = Pt, Qe = [{
1005
+ RangePicker: fa,
1006
+ YearPicker: ha,
1007
+ WeekPicker: ma,
1008
+ QuarterPicker: va
1009
+ } = kt, Je = [{
1007
1010
  value: "xxl",
1008
1011
  span: 4
1009
1012
  }, {
@@ -1021,7 +1024,7 @@ const pt = (e, t, l = "string") => {
1021
1024
  }, {
1022
1025
  value: "xs",
1023
1026
  span: 1
1024
- }], Nt = /* @__PURE__ */ fe({
1027
+ }], Et = /* @__PURE__ */ fe({
1025
1028
  name: "ProTableForm",
1026
1029
  props: {
1027
1030
  modal: re.modalScroll,
@@ -1036,321 +1039,363 @@ const pt = (e, t, l = "string") => {
1036
1039
  onSearch: Function
1037
1040
  },
1038
1041
  setup(e, {
1039
- slots: t,
1040
- expose: l
1042
+ slots: l,
1043
+ expose: a
1041
1044
  }) {
1042
1045
  const {
1043
1046
  wrapSSR: o,
1044
1047
  hashId: s
1045
- } = Xe("ProTableForm", [ra], e.prefixCls), i = Et(), d = ca(), {
1046
- manualSearch: v,
1048
+ } = qe("ProTableForm", [ra], e.prefixCls), i = jt(), f = ca(), {
1049
+ manualSearch: m,
1047
1050
  searchConfig: C,
1048
1051
  searchActions: x
1049
1052
  } = he(), {
1050
- formState: f,
1053
+ formState: d,
1051
1054
  resetFormState: S,
1052
1055
  changeFormState: u
1053
- } = oa(e.defaultParams || {}, e.searchMap || []), n = N(!1), r = w(() => {
1054
- var a, g;
1055
- return ne((a = x.value) == null ? void 0 : a.reset) ? (g = x.value) == null ? void 0 : g.reset : v.value;
1056
- }), m = w(() => {
1057
- var a;
1058
- return j((a = C.value) == null ? void 0 : a.span);
1056
+ } = oa(e.defaultParams || {}, e.searchMap || []), n = E(!1), r = w(() => {
1057
+ var t, y;
1058
+ return ne((t = x.value) == null ? void 0 : t.reset) ? (y = x.value) == null ? void 0 : y.reset : m.value;
1059
+ }), g = w(() => {
1060
+ var t;
1061
+ return P((t = C.value) == null ? void 0 : t.span);
1059
1062
  }), T = w(() => {
1060
- var a;
1061
- return (a = C.value) == null ? void 0 : a.label;
1063
+ var t;
1064
+ return (t = C.value) == null ? void 0 : t.label;
1062
1065
  });
1063
- G(() => {
1064
- var a;
1065
- return (a = C.value) == null ? void 0 : a.defaultCollapsed;
1066
- }, (a) => {
1067
- n.value = n.value || !!a;
1066
+ _(() => {
1067
+ var t;
1068
+ return (t = C.value) == null ? void 0 : t.defaultCollapsed;
1069
+ }, (t) => {
1070
+ n.value = n.value || !!t;
1068
1071
  });
1069
- function j(a) {
1070
- let g = 4;
1071
- for (let O = 0; O < Qe.length; O += 1) {
1072
- const p = Qe[O].value;
1073
- if (d.value[p]) {
1074
- g = (a == null ? void 0 : a[p]) || (e.modal ? 3 : Qe[O].span);
1072
+ function P(t) {
1073
+ let y = 4;
1074
+ for (let O = 0; O < Je.length; O += 1) {
1075
+ const p = Je[O].value;
1076
+ if (f.value[p]) {
1077
+ y = (t == null ? void 0 : t[p]) || (e.modal ? 3 : Je[O].span);
1075
1078
  break;
1076
1079
  }
1077
1080
  }
1078
- return g;
1081
+ return y;
1079
1082
  }
1080
- const F = (a) => {
1081
- n.value = a;
1082
- }, M = (a, g, O) => (a + 1) % g === 0 ? {
1083
+ const R = (t) => {
1084
+ n.value = t;
1085
+ }, M = (t, y, O) => (t + 1) % y === 0 ? {
1083
1086
  ...O,
1084
1087
  marginRight: 0
1085
1088
  } : {
1086
1089
  ...O,
1087
1090
  marginRight: "2%"
1088
1091
  }, W = () => {
1089
- const a = le(f), g = e.searchMap.find((D) => D.valueType === "text") || "", O = e.searchMap.find((D) => D.valueType === "dateRange") || "", p = e.searchMap.find((D) => D.valueType === "treeSelect");
1090
- return g && (a[g.name] = f[g.name] || g.initialValue || ""), O && (a[O.rangeStartName || "start"] = a[O.name] ? a[O.name][0] : "", a[O.rangeEndName || "end"] = a[O.name] ? a[O.name][1] : "", delete a[O.name]), p && (p != null && p.name && te(f[p == null ? void 0 : p.name]) && (a[p.name] = f[p.name].length ? f[p.name].map((D) => D[p.valueKey === "text" ? "label" : "value"]).join() : ""), p != null && p.name && te(a[p == null ? void 0 : p.name]) && (a[p.name] = a[p.name].length ? a[p.name].map((D) => D[p.valueKey === "text" ? "label" : "value"]) : "")), a;
1091
- }, L = (a = !1, g) => {
1092
+ const t = ae(d), y = e.searchMap.find((D) => D.valueType === "text") || "", O = e.searchMap.find((D) => D.valueType === "dateRange") || "", p = e.searchMap.find((D) => D.valueType === "treeSelect");
1093
+ return y && (t[y.name] = d[y.name] || y.initialValue || ""), O && (t[O.rangeStartName || "start"] = t[O.name] ? t[O.name][0] : "", t[O.rangeEndName || "end"] = t[O.name] ? t[O.name][1] : "", delete t[O.name]), p && (p != null && p.name && le(d[p == null ? void 0 : p.name]) && (t[p.name] = d[p.name].length ? d[p.name].map((D) => D[p.valueKey === "text" ? "label" : "value"]).join() : ""), p != null && p.name && le(t[p == null ? void 0 : p.name]) && (t[p.name] = t[p.name].length ? t[p.name].map((D) => D[p.valueKey === "text" ? "label" : "value"]) : "")), t;
1094
+ }, Y = (t = !1, y) => {
1092
1095
  fl(() => {
1093
1096
  var O;
1094
- (v.value || a) && ((O = e.onSearch) == null || O.call(e, W(), a ? g ? "reset" : "submit" : void 0));
1097
+ (m.value || t) && ((O = e.onSearch) == null || O.call(e, W(), t ? y ? "reset" : "submit" : void 0));
1095
1098
  });
1096
- }, _ = (a, g) => {
1099
+ }, L = (t, y) => {
1097
1100
  var O, p;
1098
- switch (g.valueType) {
1101
+ switch (y.valueType) {
1099
1102
  case "text":
1100
- u(g.name || "", a || "");
1103
+ u(y.name || "", t || "");
1101
1104
  break;
1102
1105
  case "select":
1103
- u(g.name || "", a ?? void 0);
1106
+ u(y.name || "", t ?? void 0);
1104
1107
  break;
1105
1108
  case "treeSelect":
1106
- u(g.name || "", a ?? ((O = g.field) != null && O.treeCheckable || (p = g.field) != null && p.multiple ? [] : null));
1109
+ u(y.name || "", t ?? ((O = y.field) != null && O.treeCheckable || (p = y.field) != null && p.multiple ? [] : null));
1107
1110
  break;
1108
1111
  case "date":
1109
- u(g.name || "", a ? De(a, Ee(g.valueFormat, g.showTime)) : null);
1112
+ u(y.name || "", t ? xe(t, Ne(y.valueFormat, y.showTime)) : null);
1113
+ break;
1114
+ case "dateWeek":
1115
+ u(y.name || "", t ? xe(t, "YYYY-wo") : null);
1110
1116
  break;
1111
1117
  case "dateMonth":
1112
- u(g.name || "", a ? De(a, "YYYY-MM") : null);
1118
+ u(y.name || "", t ? xe(t, "YYYY-MM") : null);
1119
+ break;
1120
+ case "dateQuarter":
1121
+ u(y.name || "", t ? xe(t, "YYYY-QQ") : null);
1122
+ break;
1123
+ case "dateYear":
1124
+ u(y.name || "", t ? xe(t, "YYYY") : null);
1113
1125
  break;
1114
1126
  case "dateRange":
1115
- u(g.name || "", a && te(a) && a.length === 2 ? pt(a, Ee(g.valueFormat, g.showTime)) : null);
1127
+ u(y.name || "", t && le(t) && t.length === 2 ? pt(t, Ne(y.valueFormat, y.showTime)) : null);
1116
1128
  break;
1117
1129
  case "time":
1118
- u(g.name || "", a ? De(a, g.valueFormat || "HH:mm:ss") : null);
1130
+ u(y.name || "", t ? xe(t, y.valueFormat || "HH:mm:ss") : null);
1119
1131
  break;
1120
1132
  }
1121
- g.valueType === "treeSelect" || g.valueType, L();
1122
- }, A = (a = !0) => {
1123
- S(), L(!0, a);
1133
+ y.valueType === "treeSelect" || y.valueType, Y();
1134
+ }, A = (t = !0) => {
1135
+ S(), Y(!0, t);
1124
1136
  };
1125
- l({
1137
+ a({
1126
1138
  getFormState: () => W(),
1127
1139
  resetForm: A
1128
1140
  });
1129
- const V = () => {
1130
- var g;
1131
- const a = (g = i == null ? void 0 : i.emptyText) == null ? void 0 : g.value;
1132
- if (a) {
1133
- const O = ce(a), p = O ? It(a) : Ft(a || []);
1141
+ const G = () => {
1142
+ var y;
1143
+ const t = (y = i == null ? void 0 : i.emptyText) == null ? void 0 : y.value;
1144
+ if (t) {
1145
+ const O = ce(t), p = O ? It(t) : Rt(t || []);
1134
1146
  return c("div", {
1135
- class: Se(`${e.prefixCls}-search-empty-text`, s.value)
1136
- }, [O ? p : te(p) ? p.map((D) => it(D)) : void 0]);
1147
+ class: we(`${e.prefixCls}-search-empty-text`, s.value)
1148
+ }, [O ? p : le(p) ? p.map((D) => it(D)) : void 0]);
1137
1149
  }
1138
- }, H = () => (v.value || r.value) && c(xe, null, {
1150
+ }, H = () => (m.value || r.value) && c(Se, null, {
1139
1151
  default: () => [r.value && c(xt, {
1140
1152
  onClick: () => A()
1141
1153
  }, {
1142
1154
  default: () => {
1143
- var a;
1144
- return [((a = x.value) == null ? void 0 : a.resetText) || "重置"];
1155
+ var t;
1156
+ return [((t = x.value) == null ? void 0 : t.resetText) || "重置"];
1145
1157
  }
1146
- }), v.value && c(xt, {
1158
+ }), m.value && c(xt, {
1147
1159
  loading: e.loading,
1148
1160
  type: "primary",
1149
- onClick: () => L(!0)
1161
+ onClick: () => Y(!0)
1150
1162
  }, {
1151
1163
  default: () => {
1152
- var a;
1153
- return [((a = x.value) == null ? void 0 : a.searchText) || "查询"];
1164
+ var t;
1165
+ return [((t = x.value) == null ? void 0 : t.searchText) || "查询"];
1154
1166
  }
1155
1167
  })]
1156
1168
  }), ue = ({
1157
- formItemStyle: a,
1158
- advanced: g,
1169
+ formItemStyle: t,
1170
+ advanced: y,
1159
1171
  showAdvanced: O = !0
1160
1172
  }) => c("div", {
1161
- style: a,
1173
+ style: t,
1162
1174
  class: `${e.prefixCls}-search-collapse-button ${s.value}`
1163
- }, [c(xe, {
1175
+ }, [c(Se, {
1164
1176
  size: 16
1165
1177
  }, {
1166
1178
  default: () => {
1167
1179
  var p, D;
1168
1180
  return [H(), O && c("span", {
1169
1181
  class: `${e.prefixCls}-a ${s.value}`,
1170
- onClick: () => F(!g)
1171
- }, [g ? "收起" : "展开", (p = C.value) != null && p.collapseRender ? (D = C.value) == null ? void 0 : D.collapseRender(g) : g ? c(gl, null, null) : c(yl, null, null)])];
1182
+ onClick: () => R(!y)
1183
+ }, [y ? "收起" : "展开", (p = C.value) != null && p.collapseRender ? (D = C.value) == null ? void 0 : D.collapseRender(y) : y ? c(gl, null, null) : c(yl, null, null)])];
1172
1184
  }
1173
- })]), Z = (a) => {
1174
- var p, D, I, E;
1175
- let g;
1176
- const O = v.value ? St : St.Search;
1177
- switch (a.valueType) {
1185
+ })]), ee = (t) => {
1186
+ var p, D, I, j;
1187
+ let y;
1188
+ const O = m.value ? St : St.Search;
1189
+ switch (t.valueType) {
1178
1190
  case "text":
1179
- g = c(O, q({
1191
+ y = c(O, Q({
1180
1192
  style: {
1181
1193
  width: "100%"
1182
1194
  },
1183
- value: f[a.name],
1184
- placeholder: a.placeholder || "请输入",
1185
- allowClear: a.allowClear || a.allowClear === !1 ? a.allowClear : !0,
1186
- onChange: (y) => _(y.target.value, a),
1187
- onSearch: (y) => L()
1188
- }, a.field || {}), null);
1195
+ value: d[t.name],
1196
+ placeholder: t.placeholder || "请输入",
1197
+ allowClear: t.allowClear || t.allowClear === !1 ? t.allowClear : !0,
1198
+ onChange: (v) => L(v.target.value, t),
1199
+ onSearch: (v) => Y()
1200
+ }, t.field || {}), null);
1189
1201
  break;
1190
1202
  case "select":
1191
- g = c(Ol, q({
1203
+ y = c(Ol, Q({
1192
1204
  style: {
1193
1205
  width: "100%"
1194
1206
  },
1195
- value: a.loading ? void 0 : f[a.name],
1207
+ value: t.loading ? void 0 : d[t.name],
1196
1208
  optionFilterProp: "label",
1197
- placeholder: a.placeholder || "请选择",
1198
- showSearch: a.showSearch,
1199
- allowClear: a.allowClear || a.allowClear === !1 ? a.allowClear : !0,
1200
- getPopupContainer: (y) => y && y.parentNode ? y.parentNode : y,
1201
- notFoundContent: a.loading === void 0 ? void 0 : a.loading ? c(nt, {
1209
+ placeholder: t.placeholder || "请选择",
1210
+ showSearch: t.showSearch,
1211
+ allowClear: t.allowClear || t.allowClear === !1 ? t.allowClear : !0,
1212
+ getPopupContainer: (v) => v && v.parentNode ? v.parentNode : v,
1213
+ notFoundContent: t.loading === void 0 ? void 0 : t.loading ? c(nt, {
1202
1214
  size: "small",
1203
1215
  indicator: (p = i == null ? void 0 : i.indicator) == null ? void 0 : p.value
1204
- }, null) : V(),
1205
- onChange: (y) => _(y, a),
1206
- options: a.loading ? [] : (D = a == null ? void 0 : a.valueEnum) == null ? void 0 : D.map((y) => ({
1207
- label: y.text,
1208
- value: y.value
1216
+ }, null) : G(),
1217
+ onChange: (v) => L(v, t),
1218
+ options: t.loading ? [] : (D = t == null ? void 0 : t.valueEnum) == null ? void 0 : D.map((v) => ({
1219
+ label: v.text,
1220
+ value: v.value
1209
1221
  }))
1210
- }, a.field || {}), null);
1222
+ }, t.field || {}), null);
1211
1223
  break;
1212
1224
  case "treeSelect":
1213
- g = c(Il, q({
1225
+ y = c(Il, Q({
1214
1226
  style: {
1215
1227
  width: "100%"
1216
1228
  },
1217
- value: f[a.name],
1218
- placeholder: a.placeholder || "请选择",
1219
- allowClear: a.allowClear || a.allowClear === !1 ? a.allowClear : !0,
1220
- treeData: a.loading ? [] : a.valueEnum,
1221
- getPopupContainer: (y) => y && y.parentNode ? y.parentNode : y,
1222
- notFoundContent: a.loading === void 0 ? void 0 : a.loading ? c(nt, {
1229
+ value: d[t.name],
1230
+ placeholder: t.placeholder || "请选择",
1231
+ allowClear: t.allowClear || t.allowClear === !1 ? t.allowClear : !0,
1232
+ treeData: t.loading ? [] : t.valueEnum,
1233
+ getPopupContainer: (v) => v && v.parentNode ? v.parentNode : v,
1234
+ notFoundContent: t.loading === void 0 ? void 0 : t.loading ? c(nt, {
1223
1235
  size: "small",
1224
1236
  indicator: (I = i == null ? void 0 : i.indicator) == null ? void 0 : I.value
1225
- }, null) : V(),
1226
- onChange: (y) => _(y, a)
1227
- }, a.field || {}), null);
1237
+ }, null) : G(),
1238
+ onChange: (v) => L(v, t)
1239
+ }, t.field || {}), null);
1228
1240
  break;
1229
1241
  case "date":
1230
- g = c(Pt, q({
1242
+ y = c(kt, Q({
1231
1243
  style: {
1232
1244
  width: "100%"
1233
1245
  },
1234
- value: f[a.name] ? ae(f[a.name]) : void 0,
1235
- getPopupContainer: (y) => y && y.parentNode ? y.parentNode : y,
1236
- placeholder: a.placeholder || "请选择",
1237
- allowClear: a.allowClear || a.allowClear === !1 ? a.allowClear : !0,
1238
- format: Ee(a.valueFormat, a.showTime),
1239
- showTime: a.showTime,
1240
- showToday: a.showToday || !0,
1241
- onChange: (y) => _(y, a)
1242
- }, a.field || {}), null);
1246
+ value: d[t.name] ? q(d[t.name]) : void 0,
1247
+ getPopupContainer: (v) => v && v.parentNode ? v.parentNode : v,
1248
+ placeholder: t.placeholder || "请选择",
1249
+ allowClear: t.allowClear || t.allowClear === !1 ? t.allowClear : !0,
1250
+ format: Ne(t.valueFormat, t.showTime),
1251
+ showTime: t.showTime,
1252
+ showToday: t.showToday || !0,
1253
+ onChange: (v) => L(v, t)
1254
+ }, t.field || {}), null);
1255
+ break;
1256
+ case "dateWeek":
1257
+ y = c(ma, Q({
1258
+ style: {
1259
+ width: "100%"
1260
+ },
1261
+ value: d[t.name] ? q(d[t.name], t.valueFormat || "YYYY-wo") : void 0,
1262
+ getPopupContainer: (v) => v && v.parentNode ? v.parentNode : v,
1263
+ placeholder: t.placeholder || "请选择",
1264
+ onChange: (v) => L(v, t)
1265
+ }, t.field || {}), null);
1243
1266
  break;
1244
1267
  case "dateMonth":
1245
- g = c(da, q({
1268
+ y = c(da, Q({
1246
1269
  style: {
1247
1270
  width: "100%"
1248
1271
  },
1249
- value: f[a.name] ? ae(f[a.name], a.valueFormat || "YYYY-MM") : void 0,
1250
- getPopupContainer: (y) => y && y.parentNode ? y.parentNode : y,
1251
- placeholder: a.placeholder || "请选择",
1252
- onChange: (y) => _(y, a)
1253
- }, a.field || {}), null);
1272
+ value: d[t.name] ? q(d[t.name], t.valueFormat || "YYYY-MM") : void 0,
1273
+ getPopupContainer: (v) => v && v.parentNode ? v.parentNode : v,
1274
+ placeholder: t.placeholder || "请选择",
1275
+ onChange: (v) => L(v, t)
1276
+ }, t.field || {}), null);
1277
+ break;
1278
+ case "dateQuarter":
1279
+ y = c(va, Q({
1280
+ style: {
1281
+ width: "100%"
1282
+ },
1283
+ value: d[t.name] ? q(d[t.name], t.valueFormat || "YYYY-QQ") : void 0,
1284
+ getPopupContainer: (v) => v && v.parentNode ? v.parentNode : v,
1285
+ placeholder: t.placeholder || "请选择",
1286
+ onChange: (v) => L(v, t)
1287
+ }, t.field || {}), null);
1288
+ break;
1289
+ case "dateYear":
1290
+ y = c(ha, Q({
1291
+ style: {
1292
+ width: "100%"
1293
+ },
1294
+ value: d[t.name] ? q(d[t.name], t.valueFormat || "YYYY") : void 0,
1295
+ getPopupContainer: (v) => v && v.parentNode ? v.parentNode : v,
1296
+ placeholder: t.placeholder || "请选择",
1297
+ onChange: (v) => L(v, t)
1298
+ }, t.field || {}), null);
1254
1299
  break;
1255
1300
  case "dateRange":
1256
- g = c(fa, q({
1301
+ y = c(fa, Q({
1257
1302
  style: {
1258
1303
  width: "100%"
1259
1304
  },
1260
- value: f[a.name] && te(f[a.name]) && ((E = f[a.name]) == null ? void 0 : E.length) === 2 ? pt(f[a.name], Ee(a.valueFormat, a.showTime), "dayjs") : void 0,
1261
- getPopupContainer: (y) => y && y.parentNode ? y.parentNode : y,
1262
- placeholder: a.placeholder || ["开始日期", "结束日期"],
1263
- format: Ee(a.valueFormat, a.showTime),
1264
- showTime: a.showTime,
1265
- onChange: (y) => _(y, a)
1266
- }, a.field || {}), null);
1305
+ value: d[t.name] && le(d[t.name]) && ((j = d[t.name]) == null ? void 0 : j.length) === 2 ? pt(d[t.name], Ne(t.valueFormat, t.showTime), "dayjs") : void 0,
1306
+ getPopupContainer: (v) => v && v.parentNode ? v.parentNode : v,
1307
+ placeholder: t.placeholder || ["开始日期", "结束日期"],
1308
+ format: Ne(t.valueFormat, t.showTime),
1309
+ showTime: t.showTime,
1310
+ onChange: (v) => L(v, t)
1311
+ }, t.field || {}), null);
1267
1312
  break;
1268
1313
  case "time":
1269
- g = c(Fl, q({
1314
+ y = c(Rl, Q({
1270
1315
  style: {
1271
1316
  width: "100%"
1272
1317
  },
1273
- value: f[a.name] ? ae(f[a.name], a.valueFormat || "HH:mm:ss") : void 0,
1274
- getPopupContainer: (y) => y && y.parentNode ? y.parentNode : y,
1275
- placeholder: a.placeholder || "请选择",
1276
- allowClear: a.allowClear || a.allowClear === !1 ? a.allowClear : !0,
1277
- use12Hours: a.use12Hours,
1278
- format: a.valueFormat || "HH:mm:ss",
1279
- onChange: (y) => _(y, a)
1280
- }, a.field || {}), null);
1318
+ value: d[t.name] ? q(d[t.name], t.valueFormat || "HH:mm:ss") : void 0,
1319
+ getPopupContainer: (v) => v && v.parentNode ? v.parentNode : v,
1320
+ placeholder: t.placeholder || "请选择",
1321
+ allowClear: t.allowClear || t.allowClear === !1 ? t.allowClear : !0,
1322
+ use12Hours: t.use12Hours,
1323
+ format: t.valueFormat || "HH:mm:ss",
1324
+ onChange: (v) => L(v, t)
1325
+ }, t.field || {}), null);
1281
1326
  break;
1282
1327
  }
1283
- return g;
1284
- }, ve = ({
1285
- formItemStyle: a = {},
1286
- item: g
1328
+ return y;
1329
+ }, me = ({
1330
+ formItemStyle: t = {},
1331
+ item: y
1287
1332
  }) => {
1288
- var p, D, I, E, y, K;
1289
- const O = g.labelAlign || ((p = T.value) == null ? void 0 : p.align);
1333
+ var p, D, I, j, v, K;
1334
+ const O = y.labelAlign || ((p = T.value) == null ? void 0 : p.align);
1290
1335
  return c("div", {
1291
1336
  class: `${e.prefixCls}-search-item`,
1292
1337
  style: {
1293
- ...a,
1338
+ ...t,
1294
1339
  gap: (D = T.value) != null && D.gap ? wt((I = T.value) == null ? void 0 : I.gap) : void 0
1295
1340
  }
1296
- }, [g.label && c("div", {
1297
- class: Se(`${e.prefixCls}-search-item-label`, ((E = T.value) == null ? void 0 : E.colon) === !1 && `${e.prefixCls}-search-item-label-no-colon`, O && `${e.prefixCls}-search-item-label-${O}`),
1341
+ }, [y.label && c("div", {
1342
+ class: we(`${e.prefixCls}-search-item-label`, ((j = T.value) == null ? void 0 : j.colon) === !1 && `${e.prefixCls}-search-item-label-no-colon`, O && `${e.prefixCls}-search-item-label-${O}`),
1298
1343
  style: {
1299
- width: (y = T.value) != null && y.width ? wt((K = T.value) == null ? void 0 : K.width) : void 0
1344
+ width: (v = T.value) != null && v.width ? wt((K = T.value) == null ? void 0 : K.width) : void 0
1300
1345
  }
1301
- }, [g.label]), c("div", {
1302
- class: Se(`${e.prefixCls}-search-item-children`)
1303
- }, [ce(g) ? g : Z(g)])]);
1346
+ }, [y.label]), c("div", {
1347
+ class: we(`${e.prefixCls}-search-item-children`)
1348
+ }, [ce(y) ? y : ee(y)])]);
1304
1349
  }, U = () => {
1305
1350
  var O;
1306
- const a = [...e.searchMap, ...((O = t.default) == null ? void 0 : O.call(t)) || []], g = {
1307
- width: `${(100 - (m.value - 1) * 2) / m.value}%`
1351
+ const t = [...e.searchMap, ...((O = l.default) == null ? void 0 : O.call(l)) || []], y = {
1352
+ width: `${(100 - (g.value - 1) * 2) / g.value}%`
1308
1353
  };
1309
- return a.map((p, D) => {
1310
- const I = M(D, m.value, g);
1311
- return a.length < m.value || n.value ? c(qe, null, [ve({
1354
+ return t.map((p, D) => {
1355
+ const I = M(D, g.value, y);
1356
+ return t.length < g.value || n.value ? c(_e, null, [me({
1312
1357
  formItemStyle: I,
1313
1358
  item: p
1314
- }), D === a.length - 1 && ue({
1359
+ }), D === t.length - 1 && ue({
1315
1360
  formItemStyle: {
1316
1361
  flex: 1,
1317
1362
  justifyContent: "flex-end"
1318
1363
  },
1319
1364
  advanced: n.value,
1320
1365
  showAdvanced: n.value
1321
- })]) : c(qe, null, [D < m.value - 1 && ve({
1366
+ })]) : c(_e, null, [D < g.value - 1 && me({
1322
1367
  formItemStyle: I,
1323
1368
  item: p
1324
- }), D === m.value - 1 && (m.value - 1 === 0 || a.length === m.value) && ve({
1369
+ }), D === g.value - 1 && (g.value - 1 === 0 || t.length === g.value) && me({
1325
1370
  formItemStyle: I,
1326
1371
  item: p
1327
- }), D === m.value - 1 && a.length >= m.value && ue({
1372
+ }), D === g.value - 1 && t.length >= g.value && ue({
1328
1373
  formItemStyle: {
1329
1374
  flex: 1,
1330
1375
  justifyContent: "flex-end"
1331
1376
  },
1332
1377
  advanced: !1,
1333
- showAdvanced: a.length !== m.value
1378
+ showAdvanced: t.length !== g.value
1334
1379
  })]);
1335
1380
  });
1336
1381
  };
1337
1382
  return () => {
1338
- var g;
1339
- const a = e.cardBordered && `${e.prefixCls}-search-border`;
1383
+ var y;
1384
+ const t = e.cardBordered && `${e.prefixCls}-search-border`;
1340
1385
  return o(c("div", {
1341
- class: Se(s.value, `${e.prefixCls}-search`, a, s.value, (g = C.value) == null ? void 0 : g.className)
1386
+ class: we(s.value, `${e.prefixCls}-search`, t, s.value, (y = C.value) == null ? void 0 : y.className)
1342
1387
  }, [U()]));
1343
1388
  };
1344
1389
  }
1345
1390
  });
1346
- Nt.inheritAttrs = !1;
1391
+ Et.inheritAttrs = !1;
1347
1392
  const Me = (e) => {
1348
- const t = N(null);
1349
- return t.value = e, (...l) => {
1393
+ const l = E(null);
1394
+ return l.value = e, (...a) => {
1350
1395
  var o;
1351
- return (o = t.value) == null ? void 0 : o.call(t, ...l);
1396
+ return (o = l.value) == null ? void 0 : o.call(l, ...a);
1352
1397
  };
1353
- }, ha = (e) => ({
1398
+ }, ga = (e) => ({
1354
1399
  [`${e.componentCls}`]: {
1355
1400
  width: "auto",
1356
1401
  "&-title": {
@@ -1434,40 +1479,40 @@ const Me = (e) => {
1434
1479
  }
1435
1480
  }), Ze = ({
1436
1481
  title: e,
1437
- show: t,
1438
- treeKey: l,
1482
+ show: l,
1483
+ treeKey: a,
1439
1484
  fixed: o
1440
1485
  }, {
1441
1486
  slots: s
1442
1487
  }) => {
1443
1488
  const {
1444
1489
  cacheColumns: i,
1445
- settingsAction: d
1490
+ settingsAction: f
1446
1491
  } = he();
1447
- return t ? c(de, {
1492
+ return l ? c(de, {
1448
1493
  title: e
1449
1494
  }, {
1450
1495
  default: () => {
1451
- var v;
1496
+ var m;
1452
1497
  return [c("span", {
1453
1498
  onClick: (C) => {
1454
- var n, r, m;
1499
+ var n, r, g;
1455
1500
  C.stopPropagation(), C.preventDefault();
1456
- const x = ((r = (n = b(i)) == null ? void 0 : n.find((T) => T.uuid === l)) == null ? void 0 : r.key) || "", f = (d == null ? void 0 : d.columnsMap[x]) || {};
1457
- if (typeof f.disable == "boolean" ? f.disable : (m = f.disable) == null ? void 0 : m.icon) return;
1501
+ const x = ((r = (n = b(i)) == null ? void 0 : n.find((T) => T.uuid === a)) == null ? void 0 : r.key) || "", d = (f == null ? void 0 : f.columnsMap[x]) || {};
1502
+ if (typeof d.disable == "boolean" ? d.disable : (g = d.disable) == null ? void 0 : g.icon) return;
1458
1503
  const u = {
1459
- ...d == null ? void 0 : d.columnsMap,
1504
+ ...f == null ? void 0 : f.columnsMap,
1460
1505
  [x]: {
1461
- ...f,
1506
+ ...d,
1462
1507
  fixed: o
1463
1508
  }
1464
1509
  };
1465
- d == null || d.setColumnsMap(u, "fixed");
1510
+ f == null || f.setColumnsMap(u, "fixed");
1466
1511
  }
1467
- }, [(v = s.default) == null ? void 0 : v.call(s)])];
1512
+ }, [(m = s.default) == null ? void 0 : m.call(s)])];
1468
1513
  }
1469
1514
  }) : null;
1470
- }, va = /* @__PURE__ */ fe({
1515
+ }, ya = /* @__PURE__ */ fe({
1471
1516
  props: {
1472
1517
  treeKey: String,
1473
1518
  hashId: String,
@@ -1478,11 +1523,11 @@ const Me = (e) => {
1478
1523
  },
1479
1524
  setup(e) {
1480
1525
  const {
1481
- cacheColumns: t
1482
- } = he(), l = w(() => {
1526
+ cacheColumns: l
1527
+ } = he(), a = w(() => {
1483
1528
  var s, i;
1484
- return ((i = (s = b(t)) == null ? void 0 : s.find((d) => d.uuid === e.treeKey)) == null ? void 0 : i.key) || "";
1485
- }), o = w(() => l.value === "action" && e.autoScroll);
1529
+ return ((i = (s = b(l)) == null ? void 0 : s.find((f) => f.uuid === e.treeKey)) == null ? void 0 : i.key) || "";
1530
+ }), o = w(() => a.value === "action" && e.autoScroll);
1486
1531
  return () => {
1487
1532
  const s = c("span", {
1488
1533
  class: [`${e.className}-list-item-option`, e.hashId]
@@ -1531,75 +1576,75 @@ const Me = (e) => {
1531
1576
  }
1532
1577
  },
1533
1578
  setup(e) {
1534
- const t = N(at().uuid(15)), l = w(() => e.list && e.list.length > 0), o = N([]), s = N([]), {
1579
+ const l = E(at().uuid(15)), a = w(() => e.list && e.list.length > 0), o = E([]), s = E([]), {
1535
1580
  cacheColumns: i,
1536
- slots: d,
1537
- settingsAction: v
1581
+ slots: f,
1582
+ settingsAction: m
1538
1583
  } = he(), C = (u, n) => u.map(({
1539
1584
  key: r,
1540
- children: m,
1585
+ children: g,
1541
1586
  uuid: T,
1542
- ...j
1587
+ ...P
1543
1588
  }) => {
1544
- var L;
1545
- const F = (v == null ? void 0 : v.columnsMap[r || "null"]) || {
1589
+ var Y;
1590
+ const R = (m == null ? void 0 : m.columnsMap[r || "null"]) || {
1546
1591
  show: !0
1547
1592
  };
1548
1593
  let M = !1;
1549
- F.show !== !1 && (n == null ? void 0 : n.show) !== !1 && !m && (M = !0);
1594
+ R.show !== !1 && (n == null ? void 0 : n.show) !== !1 && !g && (M = !0);
1550
1595
  const W = {
1551
1596
  key: T || "",
1552
- ...Ge(j, ["dataIndex"]),
1597
+ ...Ge(P, ["dataIndex"]),
1553
1598
  checked: M,
1554
1599
  selectable: !1,
1555
- disabled: F.disable === !0,
1556
- disableCheckbox: typeof F.disable == "boolean" ? F.disable : (L = F.disable) == null ? void 0 : L.checkbox,
1600
+ disabled: R.disable === !0,
1601
+ disableCheckbox: typeof R.disable == "boolean" ? R.disable : (Y = R.disable) == null ? void 0 : Y.checkbox,
1557
1602
  isLeaf: !0
1558
1603
  };
1559
- return m && (W.children = C(m, F)), W;
1604
+ return g && (W.children = C(g, R)), W;
1560
1605
  });
1561
1606
  Ae(() => {
1562
1607
  const u = C(e.list || []);
1563
- o.value = u, s.value = u.filter((n) => n.checked).map((n) => n.key), (v == null ? void 0 : v.operationType.value) === "fixed" && (t.value = at().uuid(15));
1608
+ o.value = u, s.value = u.filter((n) => n.checked).map((n) => n.key), (m == null ? void 0 : m.operationType.value) === "fixed" && (l.value = at().uuid(15));
1564
1609
  });
1565
1610
  const x = Me((u, n, r) => {
1566
- var A, V;
1567
- const m = ((A = b(i).find((H) => H.uuid === u)) == null ? void 0 : A.key) || "", T = ((V = b(i).find((H) => H.uuid === n)) == null ? void 0 : V.key) || "", j = {
1568
- ...v == null ? void 0 : v.columnsMap
1569
- }, F = [...v.sortKeyColumns.value], M = F.findIndex((H) => H === m), W = F.findIndex((H) => H === T), L = r > M;
1611
+ var A, G;
1612
+ const g = ((A = b(i).find((H) => H.uuid === u)) == null ? void 0 : A.key) || "", T = ((G = b(i).find((H) => H.uuid === n)) == null ? void 0 : G.key) || "", P = {
1613
+ ...m == null ? void 0 : m.columnsMap
1614
+ }, R = [...m.sortKeyColumns.value], M = R.findIndex((H) => H === g), W = R.findIndex((H) => H === T), Y = r > M;
1570
1615
  if (M < 0)
1571
1616
  return;
1572
- const _ = F[M];
1573
- F.splice(M, 1), r === 0 ? F.unshift(_) : F.splice(L ? W : W + 1, 0, _), F.forEach((H, ue) => {
1574
- j[H] = {
1575
- ...j[H] || {},
1617
+ const L = R[M];
1618
+ R.splice(M, 1), r === 0 ? R.unshift(L) : R.splice(Y ? W : W + 1, 0, L), R.forEach((H, ue) => {
1619
+ P[H] = {
1620
+ ...P[H] || {},
1576
1621
  order: ue
1577
1622
  };
1578
- }), v == null || v.setColumnsMap(j, "drop"), v == null || v.setSortKeyColumns(F);
1579
- }), f = Me((u) => {
1580
- var F;
1581
- const n = u.node.key, r = ((F = b(i).find((M) => M.uuid === n)) == null ? void 0 : F.key) || "", T = {
1582
- ...(v == null ? void 0 : v.columnsMap[r]) || {}
1623
+ }), m == null || m.setColumnsMap(P, "drop"), m == null || m.setSortKeyColumns(R);
1624
+ }), d = Me((u) => {
1625
+ var R;
1626
+ const n = u.node.key, r = ((R = b(i).find((M) => M.uuid === n)) == null ? void 0 : R.key) || "", T = {
1627
+ ...(m == null ? void 0 : m.columnsMap[r]) || {}
1583
1628
  };
1584
1629
  T.show = u.checked;
1585
- const j = {
1586
- ...v == null ? void 0 : v.columnsMap,
1630
+ const P = {
1631
+ ...m == null ? void 0 : m.columnsMap,
1587
1632
  [r]: T
1588
1633
  };
1589
- v == null || v.setColumnsMap(j, "show");
1634
+ m == null || m.setColumnsMap(P, "show");
1590
1635
  }), S = (u) => {
1591
1636
  const n = b(i).find((r) => r.uuid === u.key);
1592
- return u.title || hl(d, "headerCell", {
1637
+ return u.title || hl(f, "headerCell", {
1593
1638
  title: n.title,
1594
1639
  column: n
1595
1640
  }, () => [n.title]);
1596
1641
  };
1597
1642
  return () => {
1598
1643
  var u, n;
1599
- return l.value ? c(qe, null, [e.showTitle && c("span", {
1644
+ return a.value ? c(_e, null, [e.showTitle && c("span", {
1600
1645
  class: [`${e.className}-list-title`, e.hashId]
1601
- }, [e.title]), c(El, {
1602
- key: t.value,
1646
+ }, [e.title]), c(jl, {
1647
+ key: l.value,
1603
1648
  draggable: e.draggable && !!((u = o.value) != null && u.length) && ((n = o.value) == null ? void 0 : n.length) > 1,
1604
1649
  checkable: e.checkable,
1605
1650
  blockNode: !0,
@@ -1607,34 +1652,34 @@ const Me = (e) => {
1607
1652
  checkedKeys: s.value,
1608
1653
  height: 280,
1609
1654
  onDrop: (r) => {
1610
- const m = r.node.key, T = r.dragNode.key, {
1611
- dropPosition: j,
1612
- dropToGap: F
1613
- } = r, M = j === -1 || !F ? j + 1 : j;
1614
- x(T, m, M);
1655
+ const g = r.node.key, T = r.dragNode.key, {
1656
+ dropPosition: P,
1657
+ dropToGap: R
1658
+ } = r, M = P === -1 || !R ? P + 1 : P;
1659
+ x(T, g, M);
1615
1660
  },
1616
- onCheck: (r, m) => f(m),
1661
+ onCheck: (r, g) => d(g),
1617
1662
  treeData: o.value
1618
1663
  }, {
1619
1664
  title: (r) => {
1620
1665
  var T;
1621
- const m = {
1666
+ const g = {
1622
1667
  ...r,
1623
1668
  children: void 0,
1624
1669
  title: S(r),
1625
- autoScroll: (T = v == null ? void 0 : v.autoScroll) == null ? void 0 : T.value
1670
+ autoScroll: (T = m == null ? void 0 : m.autoScroll) == null ? void 0 : T.value
1626
1671
  };
1627
- return c(va, q({
1672
+ return c(ya, Q({
1628
1673
  hashId: e.hashId,
1629
1674
  className: e.className
1630
- }, m, {
1631
- treeKey: m.key
1675
+ }, g, {
1676
+ treeKey: g.key
1632
1677
  }), null);
1633
1678
  }
1634
1679
  })]) : null;
1635
1680
  };
1636
1681
  }
1637
- }), ma = /* @__PURE__ */ fe({
1682
+ }), ba = /* @__PURE__ */ fe({
1638
1683
  props: {
1639
1684
  hashId: String,
1640
1685
  className: String,
@@ -1643,23 +1688,23 @@ const Me = (e) => {
1643
1688
  },
1644
1689
  setup(e) {
1645
1690
  const {
1646
- columns: t
1647
- } = he(), l = N([]), o = N([]), s = N([]), i = N([]);
1648
- G(() => t.value, (C) => {
1649
- l.value = [], o.value = [], s.value = [], C.forEach((x) => {
1691
+ columns: l
1692
+ } = he(), a = E([]), o = E([]), s = E([]), i = E([]);
1693
+ _(() => l.value, (C) => {
1694
+ a.value = [], o.value = [], s.value = [], C.forEach((x) => {
1650
1695
  if (x.hideInSetting)
1651
1696
  return;
1652
1697
  const {
1653
- fixed: f,
1698
+ fixed: d,
1654
1699
  show: S,
1655
1700
  uuid: u
1656
1701
  } = x;
1657
- if ((S || S === void 0) && u && i.value.push(u), f === "left") {
1702
+ if ((S || S === void 0) && u && i.value.push(u), d === "left") {
1658
1703
  o.value.push(x);
1659
1704
  return;
1660
1705
  }
1661
- if (f === "right") {
1662
- l.value.push(x);
1706
+ if (d === "right") {
1707
+ a.value.push(x);
1663
1708
  return;
1664
1709
  }
1665
1710
  s.value.push(x);
@@ -1667,12 +1712,12 @@ const Me = (e) => {
1667
1712
  }, {
1668
1713
  immediate: !0
1669
1714
  });
1670
- const d = w(() => l.value && l.value.length > 0), v = w(() => o.value && o.value.length > 0);
1715
+ const f = w(() => a.value && a.value.length > 0), m = w(() => o.value && o.value.length > 0);
1671
1716
  return () => c("div", {
1672
1717
  class: {
1673
1718
  [`${e.hashId}`]: !0,
1674
1719
  [`${e.className}-list`]: !0,
1675
- [`${e.className}-list-group`]: d.value || v.value
1720
+ [`${e.className}-list-group`]: f.value || m.value
1676
1721
  }
1677
1722
  }, [c(et, {
1678
1723
  title: "固定在左侧",
@@ -1689,11 +1734,11 @@ const Me = (e) => {
1689
1734
  draggable: e.draggable,
1690
1735
  checkable: e.checkable,
1691
1736
  title: "不固定",
1692
- showTitle: v.value || d.value,
1737
+ showTitle: m.value || f.value,
1693
1738
  className: e.className
1694
1739
  }, null), c(et, {
1695
1740
  title: "固定在右侧",
1696
- list: l.value,
1741
+ list: a.value,
1697
1742
  keys: i.value,
1698
1743
  hashId: e.hashId,
1699
1744
  draggable: e.draggable,
@@ -1701,7 +1746,7 @@ const Me = (e) => {
1701
1746
  className: e.className
1702
1747
  }, null)]);
1703
1748
  }
1704
- }), ga = /* @__PURE__ */ fe({
1749
+ }), Ca = /* @__PURE__ */ fe({
1705
1750
  props: {
1706
1751
  draggable: {
1707
1752
  type: Boolean,
@@ -1715,66 +1760,66 @@ const Me = (e) => {
1715
1760
  extra: [Function, Object, String, Boolean]
1716
1761
  },
1717
1762
  setup(e) {
1718
- const t = ut({
1763
+ const l = ut({
1719
1764
  suffixCls: "table-column-setting",
1720
1765
  isPor: !0
1721
1766
  }), {
1722
- wrapSSR: l,
1767
+ wrapSSR: a,
1723
1768
  hashId: o
1724
- } = Xe("ColumnSetting", [ha], t), {
1769
+ } = qe("ColumnSetting", [ga], l), {
1725
1770
  columns: s,
1726
1771
  settingsAction: i
1727
- } = he(), d = Me((S = !0) => {
1772
+ } = he(), f = Me((S = !0) => {
1728
1773
  const u = {}, n = (r) => {
1729
1774
  r.forEach(({
1730
- key: m,
1775
+ key: g,
1731
1776
  fixed: T,
1732
- index: j,
1733
- children: F
1777
+ index: P,
1778
+ children: R
1734
1779
  }) => {
1735
- const M = Bt(m, j);
1780
+ const M = Bt(g, P);
1736
1781
  M && (u[M] = {
1737
1782
  show: S,
1738
1783
  fixed: T
1739
- }), F && n(F);
1784
+ }), R && n(R);
1740
1785
  });
1741
1786
  };
1742
1787
  n(s.value), i == null || i.setColumnsMap(u, "show");
1743
- }), v = Me((S) => {
1744
- S.target.checked ? d() : d(!1);
1788
+ }), m = Me((S) => {
1789
+ S.target.checked ? f() : f(!1);
1745
1790
  }), C = Me(() => {
1746
1791
  i == null || i.setColumnsMap(i == null ? void 0 : i.cacheColumnsMap, "fixed");
1747
1792
  }), x = w(() => (
1748
1793
  // @ts-ignore
1749
1794
  Object.values(i == null ? void 0 : i.columnsMap).filter((S) => !S || S.show === !1)
1750
- )), f = w(() => b(x).length > 0 && b(x).length !== s.value.length);
1751
- return () => l(c(jl, {
1795
+ )), d = w(() => b(x).length > 0 && b(x).length !== s.value.length);
1796
+ return () => a(c(Pl, {
1752
1797
  arrowPointAtCenter: !0,
1753
1798
  title: c("div", {
1754
- class: [`${t}-title`, o.value]
1755
- }, [c(Pl, {
1756
- indeterminate: f.value,
1799
+ class: [`${l}-title`, o.value]
1800
+ }, [c(kl, {
1801
+ indeterminate: d.value,
1757
1802
  checked: b(x).length === 0 && b(x).length !== s.value.length,
1758
- onChange: (S) => v(S)
1803
+ onChange: (S) => m(S)
1759
1804
  }, {
1760
- default: () => [Ne("列展示")]
1805
+ default: () => [De("列展示")]
1761
1806
  }), e.checkedReset ? c("a", {
1762
1807
  onClick: C,
1763
- class: [`${t}-action-rest-button`, o.value]
1764
- }, [Ne("重置")]) : null, e != null && e.extra ? c(xe, {
1808
+ class: [`${l}-action-rest-button`, o.value]
1809
+ }, [De("重置")]) : null, e != null && e.extra ? c(Se, {
1765
1810
  size: 12,
1766
1811
  align: "center"
1767
1812
  }, {
1768
1813
  default: () => [e.extra]
1769
1814
  }) : null]),
1770
- overlayClassName: `${t}-overlay ${o.value}`,
1815
+ overlayClassName: `${l}-overlay ${o.value}`,
1771
1816
  trigger: "click",
1772
1817
  placement: "bottomRight",
1773
- content: c(ma, {
1818
+ content: c(ba, {
1774
1819
  hashId: o.value,
1775
1820
  checkable: e.checkable ?? !0,
1776
1821
  draggable: e.draggable ?? !0,
1777
- className: t
1822
+ className: l
1778
1823
  }, null)
1779
1824
  }, {
1780
1825
  default: () => [c(de, {
@@ -1788,7 +1833,7 @@ const Me = (e) => {
1788
1833
  setup() {
1789
1834
  const {
1790
1835
  isFullscreen: e
1791
- } = jt();
1836
+ } = Pt();
1792
1837
  return () => e.value ? c(de, {
1793
1838
  title: "退出全屏"
1794
1839
  }, {
@@ -1799,36 +1844,36 @@ const Me = (e) => {
1799
1844
  default: () => [c(wl, null, null)]
1800
1845
  });
1801
1846
  }
1802
- }), ya = () => {
1847
+ }), xa = () => {
1803
1848
  const {
1804
1849
  action: e,
1805
- tableSize: t
1850
+ tableSize: l
1806
1851
  } = he();
1807
- return c(kl, {
1808
- overlay: c(He, {
1809
- selectedKeys: [t.value],
1852
+ return c(Nl, {
1853
+ overlay: c(We, {
1854
+ selectedKeys: [l.value],
1810
1855
  onClick: ({
1811
- key: l
1856
+ key: a
1812
1857
  }) => {
1813
1858
  var o;
1814
- (o = e.setTableSize) == null || o.call(e, l);
1859
+ (o = e.setTableSize) == null || o.call(e, a);
1815
1860
  },
1816
1861
  style: {
1817
1862
  width: 80
1818
1863
  }
1819
1864
  }, {
1820
- default: () => [c(He.Item, {
1865
+ default: () => [c(We.Item, {
1821
1866
  key: "large"
1822
1867
  }, {
1823
- default: () => [Ne("默认")]
1824
- }), c(He.Item, {
1868
+ default: () => [De("默认")]
1869
+ }), c(We.Item, {
1825
1870
  key: "middle"
1826
1871
  }, {
1827
- default: () => [Ne("中等")]
1828
- }), c(He.Item, {
1872
+ default: () => [De("中等")]
1873
+ }), c(We.Item, {
1829
1874
  key: "small"
1830
1875
  }, {
1831
- default: () => [Ne("紧凑")]
1876
+ default: () => [De("紧凑")]
1832
1877
  })]
1833
1878
  }),
1834
1879
  trigger: ["click"]
@@ -1839,7 +1884,7 @@ const Me = (e) => {
1839
1884
  default: () => [c(pl, null, null)]
1840
1885
  })]
1841
1886
  });
1842
- }, ba = (e) => ({
1887
+ }, Sa = (e) => ({
1843
1888
  [`${e.componentCls}`]: {
1844
1889
  lineHeight: 1,
1845
1890
  "&-container": {
@@ -1885,19 +1930,19 @@ function Tt(e) {
1885
1930
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ce(e);
1886
1931
  }
1887
1932
  const {
1888
- useBreakpoint: Ca
1933
+ useBreakpoint: wa
1889
1934
  } = st;
1890
- function xa(e) {
1935
+ function pa(e) {
1891
1936
  if (ce(e))
1892
1937
  return e;
1893
1938
  if (e) {
1894
- const t = e, {
1895
- icon: l,
1939
+ const l = e, {
1940
+ icon: a,
1896
1941
  tooltip: o,
1897
1942
  onClick: s,
1898
1943
  key: i
1899
- } = t;
1900
- return l && o ? c(de, {
1944
+ } = l;
1945
+ return a && o ? c(de, {
1901
1946
  title: o
1902
1947
  }, {
1903
1948
  default: () => [c("span", {
@@ -1905,8 +1950,8 @@ function xa(e) {
1905
1950
  onClick: () => {
1906
1951
  s && s(i);
1907
1952
  }
1908
- }, [l])]
1909
- }) : l;
1953
+ }, [a])]
1954
+ }) : a;
1910
1955
  }
1911
1956
  return null;
1912
1957
  }
@@ -1922,67 +1967,67 @@ const Mt = /* @__PURE__ */ fe({
1922
1967
  },
1923
1968
  setup(e) {
1924
1969
  const {
1925
- wrapSSR: t,
1926
- hashId: l
1927
- } = Xe("ListToolBar", [ba], e.prefixCls), o = Ca(), {
1970
+ wrapSSR: l,
1971
+ hashId: a
1972
+ } = qe("ListToolBar", [Sa], e.prefixCls), o = wa(), {
1928
1973
  isMobile: s
1929
1974
  } = he(), i = w(() => {
1930
1975
  var u;
1931
1976
  return !!(e.titleTip || e.headerTitle || (u = e.actions) != null && u.length);
1932
- }), d = w(() => {
1977
+ }), f = w(() => {
1933
1978
  var u;
1934
1979
  return !!((u = e.settings) != null && u.length || e.optionsExtra);
1935
- }), v = w(() => !!(e.titleTip || e.headerTitle)), C = w(() => {
1980
+ }), m = w(() => !!(e.titleTip || e.headerTitle)), C = w(() => {
1936
1981
  var n;
1937
1982
  let u;
1938
- return Array.isArray(e.actions) ? ((n = e.actions) == null ? void 0 : n.length) < 1 ? null : c(xe, {
1983
+ return Array.isArray(e.actions) ? ((n = e.actions) == null ? void 0 : n.length) < 1 ? null : c(Se, {
1939
1984
  align: "center"
1940
- }, Tt(u = e.actions.map((r, m) => ce(r) ? it(r, {
1941
- key: m,
1985
+ }, Tt(u = e.actions.map((r, g) => ce(r) ? it(r, {
1986
+ key: g,
1942
1987
  ...r == null ? void 0 : r.props
1943
1988
  }) : c("template", {
1944
- key: m
1989
+ key: g
1945
1990
  }, [r]))) ? u : {
1946
1991
  default: () => [u]
1947
1992
  }) : e.actions;
1948
- }), x = Ve(() => !i.value && d.value ? c("div", {
1949
- class: `${e.prefixCls}-left ${l.value}`
1950
- }, null) : v.value ? c(xe, {
1951
- class: `${e.prefixCls}-left ${l.value}`
1993
+ }), x = Ve(() => !i.value && f.value ? c("div", {
1994
+ class: `${e.prefixCls}-left ${a.value}`
1995
+ }, null) : m.value ? c(Se, {
1996
+ class: `${e.prefixCls}-left ${a.value}`
1952
1997
  }, {
1953
1998
  default: () => [c("div", {
1954
- class: `${e.prefixCls}-title ${l.value}`
1999
+ class: `${e.prefixCls}-title ${a.value}`
1955
2000
  }, [e.headerTitle, e.titleTip && c(de, {
1956
2001
  title: e.titleTipText
1957
2002
  }, {
1958
2003
  default: () => [ne(e.titleTip) && e.titleTip ? c(Tl, null, null) : e.titleTip]
1959
2004
  })]), C.value && c("div", {
1960
- class: `${e.prefixCls}-actions ${l.value}`
2005
+ class: `${e.prefixCls}-actions ${a.value}`
1961
2006
  }, [C.value])]
1962
- }) : c(xe, {
1963
- class: `${e.prefixCls}-left ${l.value}`
2007
+ }) : c(Se, {
2008
+ class: `${e.prefixCls}-left ${a.value}`
1964
2009
  }, {
1965
2010
  default: () => [C.value && c("div", {
1966
2011
  class: `${e.prefixCls}-actions`
1967
2012
  }, [C.value])]
1968
- }), [() => i.value, () => d.value, () => v.value, () => e.prefixCls, () => e.headerTitle, () => e.titleTipText, () => e.titleTip]), f = Ve(() => {
2013
+ }), [() => i.value, () => f.value, () => m.value, () => e.prefixCls, () => e.headerTitle, () => e.titleTipText, () => e.titleTip]), d = Ve(() => {
1969
2014
  let u;
1970
- return d.value ? c(xe, {
2015
+ return f.value ? c(Se, {
1971
2016
  size: 16,
1972
- class: `${e.prefixCls}-right ${l.value}`,
2017
+ class: `${e.prefixCls}-right ${a.value}`,
1973
2018
  align: o.value.lg ? "center" : "end",
1974
2019
  direction: o.value.lg ? "horizontal" : "vertical"
1975
2020
  }, {
1976
2021
  default: () => {
1977
2022
  var n;
1978
- return [e.optionsExtra, (n = e.settings) != null && n.length ? c(xe, {
2023
+ return [e.optionsExtra, (n = e.settings) != null && n.length ? c(Se, {
1979
2024
  size: 12,
1980
2025
  align: "center",
1981
2026
  class: `${e.prefixCls}-setting-items`
1982
- }, Tt(u = e.settings.map((r, m) => {
1983
- const T = xa(r);
2027
+ }, Tt(u = e.settings.map((r, g) => {
2028
+ const T = pa(r);
1984
2029
  return c("div", {
1985
- key: m,
2030
+ key: g,
1986
2031
  class: `${e.prefixCls}-setting-item`
1987
2032
  }, [T]);
1988
2033
  })) ? u : {
@@ -1990,24 +2035,24 @@ const Mt = /* @__PURE__ */ fe({
1990
2035
  }) : null];
1991
2036
  }
1992
2037
  }) : null;
1993
- }, [() => o.value, () => d.value, () => e.prefixCls, () => v.value, () => C.value, () => e.settings]), S = Ve(() => {
1994
- if (!d.value && !i.value) return null;
2038
+ }, [() => o.value, () => f.value, () => e.prefixCls, () => m.value, () => C.value, () => e.settings]), S = Ve(() => {
2039
+ if (!f.value && !i.value) return null;
1995
2040
  const u = {
1996
- [`${l.value}`]: !0,
2041
+ [`${a.value}`]: !0,
1997
2042
  [`${e.prefixCls}-container`]: !0,
1998
2043
  [`${e.prefixCls}-container-mobile`]: s.value
1999
2044
  };
2000
2045
  return c("div", {
2001
2046
  class: u
2002
- }, [x.value, f.value]);
2003
- }, [() => s.value, () => i.value, () => d.value, () => x.value, () => e.prefixCls, () => f.value]);
2004
- return () => t(c("div", {
2005
- class: `${e.prefixCls} ${l.value}`
2047
+ }, [x.value, d.value]);
2048
+ }, [() => s.value, () => i.value, () => f.value, () => x.value, () => e.prefixCls, () => d.value]);
2049
+ return () => l(c("div", {
2050
+ class: `${e.prefixCls} ${a.value}`
2006
2051
  }, [S.value]));
2007
2052
  }
2008
2053
  });
2009
2054
  Mt.inheritAttrs = !1;
2010
- function Sa() {
2055
+ function Ta() {
2011
2056
  return {
2012
2057
  reload: {
2013
2058
  text: "刷新",
@@ -2015,7 +2060,7 @@ function Sa() {
2015
2060
  },
2016
2061
  density: {
2017
2062
  text: "表格密度",
2018
- icon: c(ya, null, null)
2063
+ icon: c(xa, null, null)
2019
2064
  },
2020
2065
  setting: {
2021
2066
  text: "列设置",
@@ -2027,34 +2072,34 @@ function Sa() {
2027
2072
  }
2028
2073
  };
2029
2074
  }
2030
- function wa(e, t) {
2031
- return Object.keys(e).filter((l) => l).map((l) => {
2032
- const o = e[l];
2075
+ function $a(e, l) {
2076
+ return Object.keys(e).filter((a) => a).map((a) => {
2077
+ const o = e[a];
2033
2078
  if (!o)
2034
2079
  return null;
2035
- let s = o === !0 ? t[l] : () => o == null ? void 0 : o();
2080
+ let s = o === !0 ? l[a] : () => o == null ? void 0 : o();
2036
2081
  if (typeof s != "function" && (s = () => {
2037
- }), l === "setting")
2038
- return c(ga, q(e[l], {
2039
- key: l
2082
+ }), a === "setting")
2083
+ return c(Ca, Q(e[a], {
2084
+ key: a
2040
2085
  }), null);
2041
- if (l === "fullScreen")
2086
+ if (a === "fullScreen")
2042
2087
  return c("span", {
2043
- key: l,
2088
+ key: a,
2044
2089
  onClick: s
2045
2090
  }, [c(Dt, null, null)]);
2046
- const i = Sa()[l];
2091
+ const i = Ta()[a];
2047
2092
  return i ? c("span", {
2048
- key: l,
2093
+ key: a,
2049
2094
  onClick: s
2050
2095
  }, [c(de, {
2051
2096
  title: i.text
2052
2097
  }, {
2053
2098
  default: () => [i.icon]
2054
2099
  })]) : null;
2055
- }).filter((l) => l);
2100
+ }).filter((a) => a);
2056
2101
  }
2057
- const pa = {
2102
+ const Ba = {
2058
2103
  options: [Boolean, Object, Array],
2059
2104
  titleTip: [Function, Boolean, Object, String],
2060
2105
  settingExtra: [Function, Boolean, Object, Array],
@@ -2062,36 +2107,36 @@ const pa = {
2062
2107
  titleTipText: [String],
2063
2108
  toolBarBtn: [Function, Boolean, Object, Array],
2064
2109
  headerTitle: [Function, Boolean, Object, Array, String]
2065
- }, Ta = /* @__PURE__ */ fe({
2066
- props: pa,
2110
+ }, Fa = /* @__PURE__ */ fe({
2111
+ props: Ba,
2067
2112
  inheritAttrs: !1,
2068
2113
  setup(e) {
2069
- const t = ut({
2114
+ const l = ut({
2070
2115
  suffixCls: "table-list-toolbar",
2071
2116
  isPor: !0
2072
2117
  }), {
2073
- action: l
2118
+ action: a
2074
2119
  } = he(), o = Ve(() => {
2075
- var d;
2120
+ var f;
2076
2121
  const s = {
2077
- reload: () => l == null ? void 0 : l.reload(),
2122
+ reload: () => a == null ? void 0 : a.reload(),
2078
2123
  density: !0,
2079
2124
  setting: !0,
2080
- fullScreen: () => l == null ? void 0 : l.toggle()
2125
+ fullScreen: () => a == null ? void 0 : a.toggle()
2081
2126
  };
2082
- if (e.options === !1 || ((d = Object.keys(e.options)) == null ? void 0 : d.length) === 0) return [];
2127
+ if (e.options === !1 || ((f = Object.keys(e.options)) == null ? void 0 : f.length) === 0) return [];
2083
2128
  const i = {
2084
2129
  ...s,
2085
2130
  ...e.options
2086
2131
  };
2087
- return i.setting !== !1 && e.settingExtra && (i.setting = {}, i.setting.extra = e.settingExtra), wa(i, {
2132
+ return i.setting !== !1 && e.settingExtra && (i.setting = {}, i.setting.extra = e.settingExtra), $a(i, {
2088
2133
  ...s
2089
2134
  });
2090
- }, [() => l, () => e.options]);
2135
+ }, [() => a, () => e.options]);
2091
2136
  return () => {
2092
2137
  const s = e.toolBarBtn || [];
2093
2138
  return c(Mt, {
2094
- prefixCls: t,
2139
+ prefixCls: l,
2095
2140
  optionsExtra: e.optionsExtra,
2096
2141
  headerTitle: e.headerTitle,
2097
2142
  actions: s,
@@ -2114,8 +2159,8 @@ const pa = {
2114
2159
  backgroundColor: "transparent",
2115
2160
  borderRadius: 2
2116
2161
  }
2117
- }, $a = (e) => {
2118
- const t = `${e.antCls}-table`;
2162
+ }, Ra = (e) => {
2163
+ const l = `${e.antCls}-table`;
2119
2164
  return {
2120
2165
  [e.componentCls]: {
2121
2166
  "&-a": {
@@ -2133,8 +2178,8 @@ const pa = {
2133
2178
  opacity: 0,
2134
2179
  visibility: "hidden"
2135
2180
  },
2136
- [`${t}`]: {
2137
- [`${t}-cell-ellipsis`]: {
2181
+ [`${l}`]: {
2182
+ [`${l}-cell-ellipsis`]: {
2138
2183
  overflow: "unset",
2139
2184
  whiteSpace: "unset"
2140
2185
  }
@@ -2321,12 +2366,12 @@ const pa = {
2321
2366
  }
2322
2367
  };
2323
2368
  };
2324
- function Ba(e) {
2369
+ function Ia(e) {
2325
2370
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ce(e);
2326
2371
  }
2327
2372
  const {
2328
- useBreakpoint: Ra
2329
- } = st, Fa = {
2373
+ useBreakpoint: Oa
2374
+ } = st, Pa = {
2330
2375
  reload: !0,
2331
2376
  density: !0,
2332
2377
  setting: !0,
@@ -2338,8 +2383,8 @@ const {
2338
2383
  emits: ["reset", "reload", "submit", "sizeChange", "expandedRowsChange", "expand", "change", "requestError", "beforeSearchSubmit", "columnsStateChange", "loadingChange"],
2339
2384
  slots: Object,
2340
2385
  setup(e, {
2341
- emit: t,
2342
- slots: l,
2386
+ emit: l,
2387
+ slots: a,
2343
2388
  attrs: o,
2344
2389
  expose: s
2345
2390
  }) {
@@ -2347,28 +2392,28 @@ const {
2347
2392
  suffixCls: "table",
2348
2393
  isPor: !0
2349
2394
  }), {
2350
- wrapSSR: d,
2351
- hashId: v
2352
- } = Xe("ProBaseTable", [$a], i), C = Ra(), {
2395
+ wrapSSR: f,
2396
+ hashId: m
2397
+ } = qe("ProBaseTable", [Ra], i), C = Oa(), {
2353
2398
  width: x
2354
- } = Rl(), f = Et(), S = N(), u = N(), n = N(e.waitRequest);
2399
+ } = Fl(), d = jt(), S = E(), u = E(), n = E(e.waitRequest);
2355
2400
  Ae(() => n.value = e.waitRequest);
2356
2401
  const {
2357
2402
  toggle: r,
2358
- isFullscreen: m
2359
- } = jt(S), T = w(() => ({
2403
+ isFullscreen: g
2404
+ } = Pt(S), T = w(() => ({
2360
2405
  ...e
2361
- })), j = w(() => !C.value.xl), F = w(() => {
2406
+ })), P = w(() => !C.value.xl), R = w(() => {
2362
2407
  var h, B;
2363
- return e.virtualScroll && vl(!((h = e.scroll) != null && h.y), "参数scroll的Y值不能为空!"), !!((B = e.scroll) != null && B.y && e.virtualScroll);
2408
+ return e.virtualScroll && ml(!((h = e.scroll) != null && h.y), "参数scroll的Y值不能为空!"), !!((B = e.scroll) != null && B.y && e.virtualScroll);
2364
2409
  }), M = w(() => e.search === !1 ? !1 : X(e.search) ? e.search : {
2365
2410
  type: "auto",
2366
2411
  resetText: "重置",
2367
2412
  searchText: "查询"
2368
- }), W = w(() => M.value === !1 ? {} : M.value), L = w(() => {
2413
+ }), W = w(() => M.value === !1 ? {} : M.value), Y = w(() => {
2369
2414
  var h;
2370
2415
  return ((h = W.value) == null ? void 0 : h.type) === "button";
2371
- }), _ = w(() => {
2416
+ }), L = w(() => {
2372
2417
  var h;
2373
2418
  return (h = W.value) == null ? void 0 : h.actions;
2374
2419
  }), A = w(() => {
@@ -2383,24 +2428,24 @@ const {
2383
2428
  showIndex: e.showIndex || !1
2384
2429
  });
2385
2430
  }), {
2386
- loadingComputed: V,
2431
+ loadingComputed: G,
2387
2432
  loading: H,
2388
2433
  setLoading: ue
2389
2434
  } = Gl({
2390
- emit: t,
2435
+ emit: l,
2391
2436
  loading: oe(e, "loading")
2392
2437
  }), {
2393
- sizeRef: Z,
2394
- setTableSize: ve
2395
- } = _l({
2396
- emit: t,
2438
+ sizeRef: ee,
2439
+ setTableSize: me
2440
+ } = Ql({
2441
+ emit: l,
2397
2442
  size: oe(e, "size")
2398
2443
  }), {
2399
2444
  paginationInfo: U,
2400
- requestPagination: a,
2401
- setPagination: g
2402
- } = ql({
2403
- slots: l,
2445
+ requestPagination: t,
2446
+ setPagination: y
2447
+ } = _l({
2448
+ slots: a,
2404
2449
  props: T,
2405
2450
  pagination: oe(e, "pagination")
2406
2451
  }), O = ua(e), {
@@ -2412,11 +2457,11 @@ const {
2412
2457
  columns: A,
2413
2458
  screens: C
2414
2459
  }), I = aa(e), {
2415
- proColumns: E,
2416
- cacheProColumns: y,
2460
+ proColumns: j,
2461
+ cacheProColumns: v,
2417
2462
  setColumns: K,
2418
- changeColumns: $e,
2419
- resizeColumnWidth: Ue
2463
+ changeColumns: Be,
2464
+ resizeColumnWidth: Xe
2420
2465
  } = na({
2421
2466
  ...I,
2422
2467
  breakpoint: D,
@@ -2424,25 +2469,25 @@ const {
2424
2469
  columns: A
2425
2470
  }), {
2426
2471
  columnsMap: ze,
2427
- operationType: me,
2472
+ operationType: ve,
2428
2473
  setColumnsMap: Ke,
2429
- sortKeyColumns: Ie,
2430
- cacheColumnsMap: Q,
2474
+ sortKeyColumns: Oe,
2475
+ cacheColumnsMap: Z,
2431
2476
  setSortKeyColumns: ge
2432
2477
  } = la({
2433
- columns: y,
2478
+ columns: v,
2434
2479
  columnsState: oe(e, "columnsState"),
2435
- changeColumns: $e
2480
+ changeColumns: Be
2436
2481
  }), {
2437
2482
  formDataRef: z,
2438
2483
  formParamsRef: ye,
2439
2484
  defaultParamsRef: J,
2440
- setFormParams: Je
2485
+ setFormParams: Ue
2441
2486
  } = ta({
2442
2487
  searchMap: oe(e, "searchMap"),
2443
2488
  params: oe(e, "params"),
2444
2489
  columns: A,
2445
- setPagination: g
2490
+ setPagination: y
2446
2491
  }), {
2447
2492
  selectedKeys: ot,
2448
2493
  selectedItems: At,
@@ -2452,192 +2497,192 @@ const {
2452
2497
  syncSelectedRows: dt,
2453
2498
  removeRowKeys: ft,
2454
2499
  clearAllRowKeys: Kt
2455
- } = Ul(oe(e, "rowKey"), oe(e, "rowSelection")), Lt = Ql(e), {
2456
- reload: Le,
2457
- reSetDataList: Wt,
2458
- changeDataValue: Ht,
2459
- isTreeDataRef: Yt,
2460
- dataSource: Oe,
2500
+ } = Xl(oe(e, "rowKey"), oe(e, "rowSelection")), Yt = Jl(e), {
2501
+ reload: Ye,
2502
+ reSetDataList: Lt,
2503
+ changeDataValue: Wt,
2504
+ isTreeDataRef: Ht,
2505
+ dataSource: Pe,
2461
2506
  handleTableChange: ht
2462
2507
  } = Zl({
2463
- ...Lt,
2508
+ ...Yt,
2464
2509
  waitRequest: n
2465
2510
  }, {
2466
- loading: V,
2511
+ loading: G,
2467
2512
  paginationInfo: U,
2468
- setPagination: g,
2513
+ setPagination: y,
2469
2514
  removeRowKeys: ft,
2470
2515
  syncSelectedRows: dt,
2471
2516
  setLoading: ue,
2472
2517
  setColumns: K,
2473
2518
  search: M,
2474
- columns: E,
2519
+ columns: j,
2475
2520
  formParamsRef: ye,
2476
2521
  onBeforeSearchSubmit: e.onBeforeSearchSubmit,
2477
- hasCustomRender: w(() => Fe(e.customRender || (l == null ? void 0 : l.customRender)))
2478
- }, t), je = w(() => e.options ? {
2479
- ...Fa,
2522
+ hasCustomRender: w(() => Ie(e.customRender || (a == null ? void 0 : a.customRender)))
2523
+ }, l), ke = w(() => e.options ? {
2524
+ ...Pa,
2480
2525
  ...X(e.options) ? e.options : {}
2481
2526
  } : !1), Vt = w(() => ({
2482
- size: b(Z),
2527
+ size: b(ee),
2483
2528
  scroll: b(p),
2484
- dataSource: b(Oe),
2529
+ dataSource: b(Pe),
2485
2530
  pagination: b(U),
2486
- virtualScroll: F.value,
2487
- columns: b(E).filter((h) => h.show || h.show === void 0)
2488
- })), vt = w(() => {
2489
- var B, R;
2531
+ virtualScroll: R.value,
2532
+ columns: b(j).filter((h) => h.show || h.show === void 0)
2533
+ })), mt = w(() => {
2534
+ var B, F;
2490
2535
  const h = X(e.loading) ? Ge(e.loading, "spinning") : {};
2491
- return !h.indicator && ((B = f == null ? void 0 : f.indicator) != null && B.value) && (h.indicator = (R = f == null ? void 0 : f.indicator) == null ? void 0 : R.value), {
2492
- spinning: e.showLoading ? Fe(H.value) : !1,
2536
+ return !h.indicator && ((B = d == null ? void 0 : d.indicator) != null && B.value) && (h.indicator = (F = d == null ? void 0 : d.indicator) == null ? void 0 : F.value), {
2537
+ spinning: e.showLoading ? Ie(H.value) : !1,
2493
2538
  ...h
2494
2539
  };
2495
- }), mt = w(() => {
2496
- var k;
2540
+ }), vt = w(() => {
2541
+ var N;
2497
2542
  let h;
2498
- const B = b(T).direction === "rtl" ? "bottomLeft" : "right", R = (k = b(U)) == null ? void 0 : k.position;
2499
- if (R !== null && Array.isArray(R)) {
2500
- const P = R.find(($) => $.includes("top")), Y = R.find(($) => $.includes("bottom")), ee = R.every(($) => `${$}` == "none");
2501
- !P && !Y && !ee && (h = B), P && (h = P.toLowerCase().replace("top", "")), Y && (h = Y.toLowerCase().replace("bottom", ""));
2543
+ const B = b(T).direction === "rtl" ? "bottomLeft" : "right", F = (N = b(U)) == null ? void 0 : N.position;
2544
+ if (F !== null && Array.isArray(F)) {
2545
+ const k = F.find(($) => $.includes("top")), V = F.find(($) => $.includes("bottom")), te = F.every(($) => `${$}` == "none");
2546
+ !k && !V && !te && (h = B), k && (h = k.toLowerCase().replace("top", "")), V && (h = V.toLowerCase().replace("bottom", ""));
2502
2547
  } else
2503
2548
  h = B;
2504
2549
  return h;
2505
2550
  }), gt = async (h, B) => {
2506
- var R;
2507
- L.value ? (R = _.value) != null && R.reload && B ? (Je(h), await Le()) : Je(h) : (Je({
2551
+ var F;
2552
+ Y.value ? (F = L.value) != null && F.reload && B ? (Ue(h), await Ye()) : Ue(h) : (Ue({
2508
2553
  ...e.params || {},
2509
2554
  ...h
2510
- }), await Le());
2555
+ }), await Ye());
2511
2556
  }, Gt = async (h, B) => {
2512
- B === "reset" ? (t("reset", h), e.request && await gt(h, B)) : e.request ? (t("submit", h), await gt(h, B)) : t("submit", h);
2513
- }, yt = (h, B, R, k) => {
2514
- g(Ct(h, ["current", "pageSize"])), ht(h, B, R, k);
2515
- }, _t = (h, B) => {
2516
- var R;
2517
- g({
2557
+ B === "reset" ? (l("reset", h), e.request && await gt(h, B)) : e.request ? (l("submit", h), await gt(h, B)) : l("submit", h);
2558
+ }, yt = (h, B, F, N) => {
2559
+ y(Ct(h, ["current", "pageSize"])), ht(h, B, F, N);
2560
+ }, Qt = (h, B) => {
2561
+ var F;
2562
+ y({
2518
2563
  current: h,
2519
2564
  pageSize: B
2520
2565
  }), ht({
2521
2566
  current: h,
2522
2567
  pageSize: B,
2523
- total: U.value && ((R = U.value) == null ? void 0 : R.total) || 0
2568
+ total: U.value && ((F = U.value) == null ? void 0 : F.total) || 0
2524
2569
  }, {}, {});
2525
- }, qt = (h) => {
2526
- t("expandedRowsChange", h);
2527
- }, Xt = (h, B) => {
2528
- t("expand", h, B);
2529
- }, Ut = (h, B) => Ue(h, B), Jt = (h, B, R) => {
2530
- var P, Y, ee;
2531
- let k = h;
2570
+ }, _t = (h) => {
2571
+ l("expandedRowsChange", h);
2572
+ }, qt = (h, B) => {
2573
+ l("expand", h, B);
2574
+ }, Xt = (h, B) => Xe(h, B), Ut = (h, B, F) => {
2575
+ var k, V, te;
2576
+ let N = h;
2532
2577
  if (B) {
2533
- const $ = R.tooltip === !1 ? {} : R.tooltip, ie = R.tooltip === !1 ? 1 : _e($ == null ? void 0 : $.hiddenLine) && ($ == null ? void 0 : $.hiddenLine) > 0 ? $ == null ? void 0 : $.hiddenLine : 1, se = R.tooltip === !1 ? 0 : _e($ == null ? void 0 : $.width) ? $ == null ? void 0 : $.width : 0, be = R.tooltip !== !1 && Rt(h) && se > 0 ? sl(h, {
2578
+ const $ = F.tooltip === !1 ? {} : F.tooltip, ie = F.tooltip === !1 ? 1 : Qe($ == null ? void 0 : $.hiddenLine) && ($ == null ? void 0 : $.hiddenLine) > 0 ? $ == null ? void 0 : $.hiddenLine : 1, se = F.tooltip === !1 ? 0 : Qe($ == null ? void 0 : $.width) ? $ == null ? void 0 : $.width : 0, be = F.tooltip !== !1 && Ft(h) && se > 0 ? sl(h, {
2534
2579
  root: `.${i}-hidden`,
2535
2580
  cssObject: $ == null ? void 0 : $.targetStyle
2536
- }) : 0, Be = document.querySelector(`.${i} .ant-table-tbody`), pe = c("div", {
2581
+ }) : 0, Fe = document.querySelector(`.${i} .ant-table-tbody`), Te = c("div", {
2537
2582
  class: `${i}-ellipsis-text`
2538
- }, [h]), Pe = () => R.tooltip === !1 || X(R.tooltip) && be < se && se > 0 ? pe : c(de, q({
2583
+ }, [h]), je = () => F.tooltip === !1 || X(F.tooltip) && be < se && se > 0 ? Te : c(de, Q({
2539
2584
  title: h,
2540
2585
  getPopupContainer: (Ce) => {
2541
- var We;
2542
- return Be ?? ((We = Ce == null ? void 0 : Ce.parentNode) == null ? void 0 : We.parentNode);
2586
+ var Le;
2587
+ return Fe ?? ((Le = Ce == null ? void 0 : Ce.parentNode) == null ? void 0 : Le.parentNode);
2543
2588
  }
2544
- }, X(R.tooltip) ? R.tooltip : {}, {
2589
+ }, X(F.tooltip) ? F.tooltip : {}, {
2545
2590
  destroyTooltipOnHide: !0
2546
- }), Ba(pe) ? pe : {
2547
- default: () => [pe]
2591
+ }), Ia(Te) ? Te : {
2592
+ default: () => [Te]
2548
2593
  });
2549
- if (k = c("div", {
2594
+ if (N = c("div", {
2550
2595
  class: `${i}-ellipsis ${$ == null ? void 0 : $.class}`,
2551
2596
  style: {
2552
2597
  "-webkit-line-clamp": ie
2553
2598
  }
2554
- }, [Pe()]), R.copyable) {
2555
- const Ce = te(h) ? typeof ((P = h == null ? void 0 : h[0]) == null ? void 0 : P.children) == "string" ? (Y = h == null ? void 0 : h[0]) == null ? void 0 : Y.children : "" : h.toString(), We = typeof R.copyText == "function" ? (ee = R.copyText) == null ? void 0 : ee.call(R, R) : R.copyText || Ce;
2556
- k = c("div", {
2599
+ }, [je()]), F.copyable) {
2600
+ const Ce = le(h) ? typeof ((k = h == null ? void 0 : h[0]) == null ? void 0 : k.children) == "string" ? (V = h == null ? void 0 : h[0]) == null ? void 0 : V.children : "" : h.toString(), Le = typeof F.copyText == "function" ? (te = F.copyText) == null ? void 0 : te.call(F, F) : F.copyText || Ce;
2601
+ N = c("div", {
2557
2602
  class: `${i}-copyable`
2558
2603
  }, [c("div", {
2559
2604
  class: `${i}-ellipsis ${$ == null ? void 0 : $.class}`,
2560
2605
  style: {
2561
2606
  "-webkit-line-clamp": ie
2562
2607
  }
2563
- }, [Pe()]), c(Bl, {
2608
+ }, [je()]), c(Bl, {
2564
2609
  class: `${i}-copyable-icon`,
2565
2610
  onClick: () => {
2566
- Vl(We), Ml.success("复制成功");
2611
+ Vl(Le), Ml.success("复制成功");
2567
2612
  }
2568
2613
  }, null)]);
2569
2614
  }
2570
2615
  }
2571
- return k;
2616
+ return N;
2572
2617
  };
2573
2618
  function bt() {
2574
- var R, k, P, Y, ee;
2575
- const h = Re(l, e, "emptyText");
2576
- if (h !== !1 && ((R = f == null ? void 0 : f.emptyText) == null ? void 0 : R.value) !== !1) {
2577
- const $ = ((k = e.emptyTextProps) == null ? void 0 : k.extraProps) || {}, ie = h || ((P = f == null ? void 0 : f.emptyText) == null ? void 0 : P.value), se = ce(ie), be = se ? It(ie, $) : Ft(ie || []);
2619
+ var F, N, k, V, te;
2620
+ const h = Re(a, e, "emptyText");
2621
+ if (h !== !1 && ((F = d == null ? void 0 : d.emptyText) == null ? void 0 : F.value) !== !1) {
2622
+ const $ = ((N = e.emptyTextProps) == null ? void 0 : N.extraProps) || {}, ie = h || ((k = d == null ? void 0 : d.emptyText) == null ? void 0 : k.value), se = ce(ie), be = se ? It(ie, $) : Rt(ie || []);
2578
2623
  return c("div", {
2579
- class: Se(`${i}-empty-text`, v.value, (Y = e.emptyTextProps) == null ? void 0 : Y.class),
2580
- style: (ee = e.emptyTextProps) == null ? void 0 : ee.style
2581
- }, [se ? be : te(be) ? be.map((Be) => it(Be, $)) : c(Al, null, null)]);
2624
+ class: we(`${i}-empty-text`, m.value, (V = e.emptyTextProps) == null ? void 0 : V.class),
2625
+ style: (te = e.emptyTextProps) == null ? void 0 : te.style
2626
+ }, [se ? be : le(be) ? be.map((Fe) => it(Fe, $)) : c(Al, null, null)]);
2582
2627
  }
2583
2628
  return null;
2584
2629
  }
2585
- const Qt = () => {
2630
+ const Jt = () => {
2586
2631
  var B;
2587
- const h = $t(l, e, "customRender");
2632
+ const h = $t(a, e, "customRender");
2588
2633
  if (h) {
2589
- if ((B = Oe.value) != null && B.length) {
2590
- const R = le(b(Oe));
2634
+ if ((B = Pe.value) != null && B.length) {
2635
+ const F = ae(b(Pe));
2591
2636
  return h == null ? void 0 : h({
2592
- dataSource: R,
2593
- currentData: Yl(R, U.value)
2637
+ dataSource: F,
2638
+ currentData: Hl(F, U.value)
2594
2639
  });
2595
2640
  }
2596
2641
  return bt();
2597
2642
  }
2598
- return c(qe, null, null);
2643
+ return c(_e, null, null);
2599
2644
  }, Zt = (h) => {
2600
- var P, Y;
2601
- const B = Re(l, e, "headerTitle"), R = Re(l, e, "titleTip"), k = Re(l, e, "toolBarBtn");
2602
- return c(Ta, {
2645
+ var k, V;
2646
+ const B = Re(a, e, "headerTitle"), F = Re(a, e, "titleTip"), N = Re(a, e, "toolBarBtn");
2647
+ return c(Fa, {
2603
2648
  headerTitle: B,
2604
- titleTip: R,
2649
+ titleTip: F,
2605
2650
  titleTipText: e.titleTipText,
2606
- options: ne(je.value) ? je.value : {
2607
- ...je.value,
2608
- setting: h ? !1 : (P = je.value) == null ? void 0 : P.setting,
2609
- density: h ? !1 : (Y = je.value) == null ? void 0 : Y.density
2651
+ options: ne(ke.value) ? ke.value : {
2652
+ ...ke.value,
2653
+ setting: h ? !1 : (k = ke.value) == null ? void 0 : k.setting,
2654
+ density: h ? !1 : (V = ke.value) == null ? void 0 : V.density
2610
2655
  },
2611
- settingExtra: Re(l, e, "settingExtra"),
2612
- optionsExtra: Re(l, e, "optionsExtra"),
2613
- toolBarBtn: k
2656
+ settingExtra: Re(a, e, "settingExtra"),
2657
+ optionsExtra: Re(a, e, "optionsExtra"),
2658
+ toolBarBtn: N
2614
2659
  }, null);
2615
2660
  };
2616
2661
  return sa({
2617
- tableSize: Z,
2618
- columns: E,
2662
+ tableSize: ee,
2663
+ columns: j,
2619
2664
  cacheColumns: A,
2620
- isMobile: j,
2665
+ isMobile: P,
2621
2666
  searchConfig: W,
2622
- manualSearch: L,
2623
- searchActions: _,
2667
+ manualSearch: Y,
2668
+ searchActions: L,
2624
2669
  action: {
2625
- setTableSize: ve,
2626
- reload: (h) => Le(h),
2670
+ setTableSize: me,
2671
+ reload: (h) => Ye(h),
2627
2672
  toggle: r
2628
2673
  },
2629
2674
  settingsAction: {
2630
2675
  autoScroll: oe(e, "autoScroll"),
2631
2676
  columnsMap: ze,
2632
- operationType: me,
2677
+ operationType: ve,
2633
2678
  setColumnsMap: Ke,
2634
- sortKeyColumns: Ie,
2635
- cacheColumnsMap: Q,
2679
+ sortKeyColumns: Oe,
2680
+ cacheColumnsMap: Z,
2636
2681
  setSortKeyColumns: ge
2637
2682
  },
2638
- setPagination: g,
2639
- changeColumns: $e,
2640
- slots: l
2683
+ setPagination: y,
2684
+ changeColumns: Be,
2685
+ slots: a
2641
2686
  }), s({
2642
2687
  formRef: () => ({
2643
2688
  getFormState: () => b(ye),
@@ -2652,8 +2697,8 @@ const {
2652
2697
  }),
2653
2698
  actionRef: () => ({
2654
2699
  loading: H,
2655
- dataSource: Oe,
2656
- pageState: a,
2700
+ dataSource: Pe,
2701
+ pageState: t,
2657
2702
  pagination: U.value,
2658
2703
  selectedKeys: w(() => ot.value),
2659
2704
  selectedItems: w(() => At.value),
@@ -2664,91 +2709,91 @@ const {
2664
2709
  sync: dt,
2665
2710
  selectAll: ct
2666
2711
  },
2667
- reload: Le,
2668
- getLoadingStatus: () => b(V),
2712
+ reload: Ye,
2713
+ getLoadingStatus: () => b(G),
2669
2714
  reloadAndReset: async (h) => {
2670
- var B, R, k;
2671
- n.value = !0, g({
2715
+ var B, F, N;
2716
+ n.value = !0, y({
2672
2717
  current: 1,
2673
- pageSize: (a == null ? void 0 : a.pageSize) || 10
2674
- }), h != null && h.callBack && (h != null && h.wait ? await ((B = h == null ? void 0 : h.callBack) == null ? void 0 : B.call(h)) : (R = h == null ? void 0 : h.callBack) == null || R.call(h)), (k = u.value) == null || k.resetForm(!1), n.value = !1;
2718
+ pageSize: (t == null ? void 0 : t.pageSize) || 10
2719
+ }), h != null && h.callBack && (h != null && h.wait ? await ((B = h == null ? void 0 : h.callBack) == null ? void 0 : B.call(h)) : (F = h == null ? void 0 : h.callBack) == null || F.call(h)), (N = u.value) == null || N.resetForm(!1), n.value = !1;
2675
2720
  },
2676
- reSetDataList: Wt,
2721
+ reSetDataList: Lt,
2677
2722
  setPageAndReload: yt,
2678
- setPagination: g,
2679
- setData: Ht,
2723
+ setPagination: y,
2724
+ setData: Wt,
2680
2725
  setLoading: ue
2681
2726
  })
2682
2727
  }), () => {
2683
- var B, R;
2684
- const h = Fe(e.customRender || l.customRender);
2685
- return d(c("div", {
2728
+ var B, F;
2729
+ const h = Ie(e.customRender || a.customRender);
2730
+ return f(c("div", {
2686
2731
  ref: S,
2687
- class: Se([{
2688
- [`${v.value}`]: !0,
2732
+ class: we([{
2733
+ [`${m.value}`]: !0,
2689
2734
  [`${i}`]: !0,
2690
2735
  [`${o.class}`]: o.class,
2691
2736
  [`${i}-no-scroll`]: !Object.keys(b(p) || {}).length,
2692
- [`${i}-table-tree`]: Yt.value,
2693
- [`${i}-full-screen`]: m.value
2737
+ [`${i}-table-tree`]: Ht.value,
2738
+ [`${i}-full-screen`]: g.value
2694
2739
  }]),
2695
2740
  style: o.style
2696
2741
  }, [c("div", {
2697
- class: [`${i}-content`, v.value]
2698
- }, [(z.value.length > 0 || Fe(l.search)) && e.search !== !1 && c(Nt, {
2742
+ class: [`${i}-content`, m.value]
2743
+ }, [(z.value.length > 0 || Ie(a.search)) && e.search !== !1 && c(Et, {
2699
2744
  ref: u,
2700
2745
  modal: e.modalScroll,
2701
2746
  cardBordered: e.cardBordered,
2702
2747
  searchMap: z.value,
2703
2748
  prefixCls: i,
2704
- loading: !!b(V),
2749
+ loading: !!b(G),
2705
2750
  onSearch: Gt,
2706
2751
  defaultParams: J
2707
2752
  }, {
2708
- default: l.search ? () => {
2709
- var k;
2710
- return (k = l.search) == null ? void 0 : k.call(l);
2753
+ default: a.search ? () => {
2754
+ var N;
2755
+ return (N = a.search) == null ? void 0 : N.call(a);
2711
2756
  } : null
2712
2757
  }), c("div", {
2713
- class: Se(v.value, `${i}-card`, e.cardBordered && `${i}-card-border`)
2714
- }, [Zt(h), h ? c(nt, vt.value, {
2758
+ class: we(m.value, `${i}-card`, e.cardBordered && `${i}-card-border`)
2759
+ }, [Zt(h), h ? c(nt, mt.value, {
2715
2760
  default: () => {
2716
- var k, P, Y;
2761
+ var N, k, V;
2717
2762
  return [c("div", {
2718
- class: `${i}-wrapper ${v.value}`
2763
+ class: `${i}-wrapper ${m.value}`
2719
2764
  }, [c("div", {
2720
- class: Se(`${i}-list`, v.value, (k = e.tableProps) == null ? void 0 : k.class),
2721
- style: (P = e.tableProps) == null ? void 0 : P.style
2722
- }, [Qt()]), e.pagination !== !1 && ((Y = Oe.value) == null ? void 0 : Y.length) > 0 && c(Nl, q({
2765
+ class: we(`${i}-list`, m.value, (N = e.tableProps) == null ? void 0 : N.class),
2766
+ style: (k = e.tableProps) == null ? void 0 : k.style
2767
+ }, [Jt()]), e.pagination !== !1 && ((V = Pe.value) == null ? void 0 : V.length) > 0 && c(El, Q({
2723
2768
  class: {
2724
- [`${i}-pagination ${v.value}`]: !0,
2725
- [`${i}-pagination-${mt.value} ${v.value}`]: !!mt.value
2769
+ [`${i}-pagination ${m.value}`]: !0,
2770
+ [`${i}-pagination-${vt.value} ${m.value}`]: !!vt.value
2726
2771
  }
2727
- }, Te(b(U)), {
2728
- onChange: _t
2772
+ }, $e(b(U)), {
2773
+ onChange: Qt
2729
2774
  }), null)])];
2730
2775
  }
2731
- }) : c(Dl, q(Ct(e, Object.keys(kt)), Vt.value, {
2776
+ }) : c(Dl, Q(Ct(e, Object.keys(Nt)), Vt.value, {
2732
2777
  style: (B = e.tableProps) == null ? void 0 : B.style,
2733
- class: (R = e.tableProps) == null ? void 0 : R.class,
2734
- loading: vt.value,
2735
- rowKey: (k) => k[e.rowKey],
2736
- transformCellText: (k) => {
2737
- var ie, se, be, Be, pe;
2738
- e.transformCellText && typeof e.transformCellText && ((ie = e.transformCellText) == null || ie.call(e, k));
2778
+ class: (F = e.tableProps) == null ? void 0 : F.class,
2779
+ loading: mt.value,
2780
+ rowKey: (N) => N[e.rowKey],
2781
+ transformCellText: (N) => {
2782
+ var ie, se, be, Fe, Te;
2783
+ e.transformCellText && typeof e.transformCellText && ((ie = e.transformCellText) == null || ie.call(e, N));
2739
2784
  const {
2740
- column: P
2741
- } = k;
2742
- if (!P) return k.text;
2743
- const Y = (P == null ? void 0 : P.key) || (P == null ? void 0 : P.dataIndex);
2744
- let ee = !0, $ = k.text;
2745
- if (te($))
2785
+ column: k
2786
+ } = N;
2787
+ if (!k) return N.text;
2788
+ const V = (k == null ? void 0 : k.key) || (k == null ? void 0 : k.dataIndex);
2789
+ let te = !0, $ = N.text;
2790
+ if (le($))
2746
2791
  if ($.length === 0 || $.length === 1 && !ce($[0])) {
2747
2792
  $ = $ == null ? void 0 : $[0];
2748
- const Pe = il($, (P == null ? void 0 : P.columnEmptyText) || (e == null ? void 0 : e.columnEmptyText) || "");
2749
- ee = Pe.success, $ = Hl(Pe.value, (P == null ? void 0 : P.valueType) || ((be = (se = e.columns) == null ? void 0 : se.find((Ce) => (Ce.key || Ce.dataIndex) === Y)) == null ? void 0 : be.valueType), i, v.value);
2750
- } else ((Be = $[0]) == null ? void 0 : Be.type) === "template" && ($ = (pe = $[0]) == null ? void 0 : pe.children);
2751
- return P != null && P.ellipsis ? Jt($, ee, P) : $;
2793
+ const je = il($, (k == null ? void 0 : k.columnEmptyText) || (e == null ? void 0 : e.columnEmptyText) || "");
2794
+ te = je.success, $ = Wl(je.value, (k == null ? void 0 : k.valueType) || ((be = (se = e.columns) == null ? void 0 : se.find((Ce) => (Ce.key || Ce.dataIndex) === V)) == null ? void 0 : be.valueType), i, m.value);
2795
+ } else ((Fe = $[0]) == null ? void 0 : Fe.type) === "template" && ($ = (Te = $[0]) == null ? void 0 : Te.children);
2796
+ return k != null && k.ellipsis ? Ut($, te, k) : $;
2752
2797
  },
2753
2798
  rowSelection: e.rowSelection ? {
2754
2799
  ...Ge(e.rowSelection, ["onSelect", "onSelectAll", "onChange", "selectedRowKeys"]),
@@ -2758,14 +2803,14 @@ const {
2758
2803
  onChange: zt
2759
2804
  } : void 0,
2760
2805
  onChange: yt,
2761
- onExpandedRowsChange: qt,
2762
- onExpand: Xt,
2763
- onResizeColumn: (k, P) => Ut(k, P)
2806
+ onExpandedRowsChange: _t,
2807
+ onExpand: qt,
2808
+ onResizeColumn: (N, k) => Xt(N, k)
2764
2809
  }), {
2765
- ...l,
2810
+ ...a,
2766
2811
  emptyText: () => bt()
2767
2812
  })])]), c("div", {
2768
- class: [`${i}-hidden`, v.value]
2813
+ class: [`${i}-hidden`, m.value]
2769
2814
  }, null)]));
2770
2815
  };
2771
2816
  }
@@ -2775,5 +2820,5 @@ export {
2775
2820
  lt as GProTable,
2776
2821
  lt as default,
2777
2822
  re as proTableProps,
2778
- Wa as useTable
2823
+ Va as useTable
2779
2824
  };