@gx-design-vue/pro-table 0.2.0-beta.96 → 0.2.0-beta.98

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