@gx-design-vue/pro-table 0.2.0-beta.77 → 0.2.0-beta.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/pro-table.js CHANGED
@@ -1,44 +1,44 @@
1
- import { isObject as X, isBoolean as ae, getSlot as ht, isFunction as $e, arrayRepeat as Lt, runFunction as Vt, convertValueBoolean as ye, isArray as be, getSortIndex as Ht, isDeepEqualReact as De, handleCurrentPage as Wt, genColumnKey as mt, compareArray as _t, isNumber as vt, isString as Gt, filterEmpty as gt, classNames as je, getPrefixCls as Ge, getRandomNumber as We, handleShowIndex as qt, hanndleEmptyField as Ut, getSlotVNode as ge } from "@gx-design-vue/pro-utils";
2
- import { reactive as oe, isReactive as Xt, watch as H, computed as p, ref as k, toRaw as fe, createVNode as r, mergeProps as q, isVNode as me, watchEffect as Pe, unref as S, onUnmounted as Jt, onDeactivated as Qt, onMounted as Zt, defineComponent as ne, Fragment as Ne, nextTick as el, h as yt, cloneVNode as qe, createTextVNode as Fe, renderSlot as tl, toRef as Z } from "vue";
1
+ import { isObject as J, isBoolean as ae, getSlot as mt, isFunction as $e, arrayRepeat as Vt, runFunction as Ht, convertValueBoolean as be, isArray as Ce, getSortIndex as Wt, isDeepEqualReact as De, handleCurrentPage as _t, genColumnKey as vt, compareArray as Gt, isNumber as gt, isString as qt, filterEmpty as yt, classNames as je, getPrefixCls as Ge, getRandomNumber as We, handleShowIndex as Ut, hanndleEmptyField as Xt, getSlotVNode as ye } from "@gx-design-vue/pro-utils";
2
+ import { reactive as re, isReactive as Jt, watch as H, computed as T, ref as k, toRaw as me, createVNode as r, mergeProps as q, isVNode as ce, watchEffect as Pe, unref as S, onUnmounted as Qt, onDeactivated as Zt, onMounted as el, defineComponent as ne, Fragment as Ne, nextTick as tl, h as bt, cloneVNode as qe, createTextVNode as Fe, renderSlot as ll, toRef as Z } from "vue";
3
3
  import "ant-design-vue/es/_util/props-util";
4
- import { warning as ll } from "ant-design-vue/es/vc-util/warning";
5
- import { omit as Ee, cloneDeep as le, pick as ot } from "lodash-es";
6
- import { tableProps as al } from "ant-design-vue/es/table/Table";
7
- import { useFullscreen as bt, useWindowSize as nl } from "@vueuse/core";
8
- import { Form as rt, Grid as Ue, Space as se, Button as ct, Input as dt, TimePicker as ul, DatePicker as Ct, TreeSelect as il, Spin as _e, Select as sl, Popover as ol, Checkbox as rl, Tooltip as ee, Tree as cl, Dropdown as dl, Menu as ke, Pagination as fl, Table as hl, Typography as ml, Empty as vl } from "ant-design-vue";
9
- import { useProAppContext as xt } from "@gx-design-vue/pro-app";
10
- import { useContext as gl, useProStyle as ze } from "@gx-design-vue/pro-provider";
4
+ import { warning as al } from "ant-design-vue/es/vc-util/warning";
5
+ import { omit as Ee, cloneDeep as le, pick as rt } from "lodash-es";
6
+ import { tableProps as nl } from "ant-design-vue/es/table/Table";
7
+ import { UpOutlined as ul, DownOutlined as il, SettingOutlined as Ct, VerticalAlignTopOutlined as sl, VerticalAlignMiddleOutlined as ol, VerticalAlignBottomOutlined as rl, FullscreenExitOutlined as cl, FullscreenOutlined as dl, ColumnHeightOutlined as fl, InfoCircleOutlined as hl, ReloadOutlined as ml, CopyOutlined as vl } from "@ant-design/icons-vue";
8
+ import { useFullscreen as xt, useWindowSize as gl } from "@vueuse/core";
9
+ import { Form as ct, Grid as Ue, Space as oe, Button as dt, Input as ft, TimePicker as yl, DatePicker as St, TreeSelect as bl, Spin as _e, Select as Cl, Popover as xl, Checkbox as Sl, Tooltip as ee, Tree as wl, Dropdown as Tl, Menu as ke, Pagination as pl, Table as $l, message as Fl, Empty as Rl } from "ant-design-vue";
10
+ import { useProAppContext as wt } from "@gx-design-vue/pro-app";
11
+ import { useContext as Pl, useProStyle as ze } from "@gx-design-vue/pro-provider";
11
12
  import G from "dayjs";
12
- import { tryOnUnmounted as yl, useMemo as Me } from "@gx-design-vue/pro-hooks";
13
- import { UpOutlined as bl, DownOutlined as Cl, SettingOutlined as St, VerticalAlignTopOutlined as xl, VerticalAlignMiddleOutlined as Sl, VerticalAlignBottomOutlined as wl, FullscreenExitOutlined as pl, FullscreenOutlined as Tl, ColumnHeightOutlined as $l, InfoCircleOutlined as Fl, ReloadOutlined as Rl } from "@ant-design/icons-vue";
14
- function Ra(e, n) {
15
- var C, T, m;
13
+ import { tryOnUnmounted as Bl, useMemo as Me } from "@gx-design-vue/pro-hooks";
14
+ function Ia(e, n) {
15
+ var C, p, v;
16
16
  function l() {
17
- return n != null && n.state && X(n == null ? void 0 : n.state) ? fe(n == null ? void 0 : n.state) : {};
17
+ return n != null && n.state && J(n == null ? void 0 : n.state) ? me(n == null ? void 0 : n.state) : {};
18
18
  }
19
- const u = oe({
19
+ const u = re({
20
20
  // @ts-ignore
21
21
  request: async (...s) => {
22
22
  var a;
23
23
  return n != null && n.request ? await ((a = n == null ? void 0 : n.request) == null ? void 0 : a.call(n, ...s)) : void 0;
24
24
  }
25
25
  });
26
- n != null && n.state && (Xt(n.state) ? H(() => n == null ? void 0 : n.state, () => {
26
+ n != null && n.state && (Jt(n.state) ? H(() => n == null ? void 0 : n.state, () => {
27
27
  Object.assign(u, l());
28
28
  }, { deep: !0, immediate: !0 }) : Object.assign(u, l()));
29
- const o = p(() => {
29
+ const o = T(() => {
30
30
  var s, a;
31
31
  return (a = (s = e == null ? void 0 : e.value) == null ? void 0 : s.actionRef) == null ? void 0 : a.call(s);
32
- }), i = p(() => {
32
+ }), i = T(() => {
33
33
  var s, a;
34
34
  return (a = (s = e == null ? void 0 : e.value) == null ? void 0 : s.formRef) == null ? void 0 : a.call(s);
35
- }), d = p(() => {
35
+ }), d = T(() => {
36
36
  var s, a, c;
37
37
  return {
38
38
  ...((s = o.value) == null ? void 0 : s.pageState) || {},
39
39
  ...((c = (a = i.value) == null ? void 0 : a.getFormState) == null ? void 0 : c.call(a)) || {}
40
40
  };
41
- }), f = k(!!((T = (C = o.value) == null ? void 0 : C.loading) != null && T.value));
41
+ }), f = k(!!((p = (C = o.value) == null ? void 0 : C.loading) != null && p.value));
42
42
  return H(() => {
43
43
  var s, a;
44
44
  return (a = (s = o.value) == null ? void 0 : s.loading) == null ? void 0 : a.value;
@@ -53,19 +53,19 @@ function Ra(e, n) {
53
53
  tableState: u,
54
54
  requestParams: d,
55
55
  loading: f,
56
- dataSource: p(() => {
56
+ dataSource: T(() => {
57
57
  var s, a;
58
58
  return ((a = (s = o == null ? void 0 : o.value) == null ? void 0 : s.dataSource) == null ? void 0 : a.value) || [];
59
59
  }),
60
- selectedKey: p(() => {
60
+ selectedKey: T(() => {
61
61
  var s, a;
62
62
  return ((a = (s = o == null ? void 0 : o.value) == null ? void 0 : s.selectedKey) == null ? void 0 : a.value) || [];
63
63
  }),
64
- selectedItem: p(() => {
64
+ selectedItem: T(() => {
65
65
  var s, a;
66
66
  return ((a = (s = o == null ? void 0 : o.value) == null ? void 0 : s.selectedItem) == null ? void 0 : a.value) || [];
67
67
  }),
68
- rowsSelection: (m = o == null ? void 0 : o.value) == null ? void 0 : m.rowsSelection,
68
+ rowsSelection: (v = o == null ? void 0 : o.value) == null ? void 0 : v.rowsSelection,
69
69
  mutate: (s) => {
70
70
  var a, c;
71
71
  return (c = (a = o.value) == null ? void 0 : a.reSetDataList) == null ? void 0 : c.call(a, s);
@@ -93,8 +93,9 @@ function Ra(e, n) {
93
93
  }
94
94
  };
95
95
  }
96
- const Pl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered", "loading"], wt = {
97
- ...Ee(al(), Pl),
96
+ const Il = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered", "loading"], Tt = {
97
+ ...Ee(nl(), Il),
98
+ transformCellText: Function,
98
99
  /**
99
100
  * @Author gx12358
100
101
  * @DateTime 2022/2/8
@@ -113,8 +114,8 @@ const Pl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
113
114
  type: Object,
114
115
  default: void 0
115
116
  }
116
- }, he = {
117
- ...wt,
117
+ }, ve = {
118
+ ...Tt,
118
119
  rowSelection: {
119
120
  type: Object,
120
121
  default: void 0
@@ -368,18 +369,18 @@ const Pl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
368
369
  onBeforeSearchSubmit: Function,
369
370
  onColumnsStateChange: Function
370
371
  };
371
- function Bl(e) {
372
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !me(e);
372
+ function Ol(e) {
373
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ce(e);
373
374
  }
374
- function Il(e, n, l, u) {
375
+ function kl(e, n, l, u) {
375
376
  if (!n) return e;
376
377
  let o = e;
377
- if (X(n)) {
378
+ if (J(n)) {
378
379
  const i = n.node === "a" ? "span" : n.node;
379
380
  return r(i, q((n == null ? void 0 : n.attr) || {}, {
380
381
  class: [n.class, n.node === "a" ? `${l}-a` : ""],
381
382
  onClick: n.click
382
- }), Bl(e) ? e : {
383
+ }), Ol(e) ? e : {
383
384
  default: () => [e]
384
385
  });
385
386
  }
@@ -401,23 +402,27 @@ function Il(e, n, l, u) {
401
402
  }
402
403
  return o;
403
404
  }
404
- function Ol(e, n) {
405
+ function Dl(e, n) {
405
406
  const l = n && n.current || 1, u = n && n.pageSize || 10;
406
407
  return e.filter((o, i) => i < l * u && i >= u * (l - 1));
407
408
  }
408
- function kl({ emit: e, loading: n }) {
409
+ function jl(e) {
410
+ const n = document.createElement("textarea");
411
+ n.style.position = "absolute", n.style.opacity = "0", n.value = e, document.body.appendChild(n), n.select(), document.execCommand("copy"), document.body.removeChild(n);
412
+ }
413
+ function Ml({ emit: e, loading: n }) {
409
414
  var i;
410
- const l = k(ae(n.value) ? n.value : X(n.value) ? (i = n.value) == null ? void 0 : i.spinning : !1);
415
+ const l = k(ae(n.value) ? n.value : J(n.value) ? (i = n.value) == null ? void 0 : i.spinning : !1);
411
416
  H(() => n.value, (d) => {
412
- l.value = ae(d) ? d : X(d) ? d == null ? void 0 : d.spinning : l.value;
417
+ l.value = ae(d) ? d : J(d) ? d == null ? void 0 : d.spinning : l.value;
413
418
  });
414
- const u = p(() => l.value);
419
+ const u = T(() => l.value);
415
420
  function o(d) {
416
421
  l.value = d, e("loadingChange", !0);
417
422
  }
418
423
  return { loadingComputed: u, loading: l, setLoading: o };
419
424
  }
420
- function Dl({ size: e, emit: n }) {
425
+ function Nl({ size: e, emit: n }) {
421
426
  const l = k("middle");
422
427
  Pe(() => {
423
428
  l.value = e.value;
@@ -427,25 +432,25 @@ function Dl({ size: e, emit: n }) {
427
432
  }
428
433
  return { sizeRef: l, setTableSize: u };
429
434
  }
430
- function jl({
435
+ function El({
431
436
  slots: e,
432
437
  props: n,
433
438
  pagination: l
434
439
  }) {
435
- const u = oe({}), o = k();
440
+ const u = re({}), o = k();
436
441
  H(() => l.value, () => {
437
- var T;
442
+ var p;
438
443
  if (ae(l.value) && !l.value) {
439
444
  o.value = !1;
440
445
  return;
441
446
  }
442
- const d = ht(e, S(n), "pageItemRender"), f = $e(d) ? {
447
+ const d = mt(e, S(n), "pageItemRender"), f = $e(d) ? {
443
448
  itemRender: ({
444
- page: m,
449
+ page: v,
445
450
  type: s,
446
451
  originalElement: a
447
452
  }) => d ? d({
448
- page: m,
453
+ page: v,
449
454
  type: s,
450
455
  originalElement: a
451
456
  }) : null
@@ -459,7 +464,7 @@ function jl({
459
464
  ...l.value || {},
460
465
  ...f || {}
461
466
  };
462
- (T = l.value) != null && T.showTotal || (C.showTotal = (m) => `共${m < C.pageSize ? 1 : Math.ceil(m / (C.pageSize || 10))}页 ${m}条记录`), o.value = C, Object.assign(u, {
467
+ (p = l.value) != null && p.showTotal || (C.showTotal = (v) => `共${v < C.pageSize ? 1 : Math.ceil(v / (C.pageSize || 10))}页 ${v}条记录`), o.value = C, Object.assign(u, {
463
468
  pageNum: C.current,
464
469
  pageSize: C.pageSize
465
470
  });
@@ -468,11 +473,11 @@ function jl({
468
473
  immediate: !0
469
474
  });
470
475
  function i(d) {
471
- if (X(o.value) && X(d)) {
476
+ if (J(o.value) && J(d)) {
472
477
  const f = {};
473
478
  Object.keys(d).forEach((C) => {
474
479
  Object.prototype.hasOwnProperty.call(d, C) && o.value[C] === d[C] || (f[C] = d[C]);
475
- }), Object.keys(f).length > 0 && (Object.assign(o.value, f), Ml(f) && Object.assign(u, f));
480
+ }), Object.keys(f).length > 0 && (Object.assign(o.value, f), zl(f) && Object.assign(u, f));
476
481
  }
477
482
  }
478
483
  return {
@@ -481,44 +486,44 @@ function jl({
481
486
  setPagination: i
482
487
  };
483
488
  }
484
- function Ml(e) {
489
+ function zl(e) {
485
490
  if (typeof e != "object" || e === null)
486
491
  return !1;
487
492
  const n = Object.keys(e);
488
493
  return n.length === 2 && n.includes("pageNum") && n.includes("pageSize");
489
494
  }
490
- function Nl(e, n) {
495
+ function Kl(e, n) {
491
496
  const l = k([]), u = k([]);
492
497
  H(() => {
493
- var m;
494
- return (m = n.value) == null ? void 0 : m.selectedRowKeys;
495
- }, (m) => {
496
- l.value = Lt([...m || []]);
498
+ var v;
499
+ return (v = n.value) == null ? void 0 : v.selectedRowKeys;
500
+ }, (v) => {
501
+ l.value = Vt([...v || []]);
497
502
  }, {
498
503
  deep: !0,
499
504
  immediate: !0
500
505
  });
501
- const o = (m, s) => {
502
- e.value && (s ? m != null && m[e.value] && (l.value.push(m[e.value]), u.value.push(m)) : (l.value = l.value.filter((a) => a !== m[e.value]), u.value = u.value.filter((a) => a[e.value] !== m[e.value])));
506
+ const o = (v, s) => {
507
+ e.value && (s ? v != null && v[e.value] && (l.value.push(v[e.value]), u.value.push(v)) : (l.value = l.value.filter((a) => a !== v[e.value]), u.value = u.value.filter((a) => a[e.value] !== v[e.value])));
503
508
  }, i = () => {
504
- var m, s;
505
- n.value && ((s = (m = n.value) == null ? void 0 : m.onChange) == null || s.call(m, l.value, u.value));
509
+ var v, s;
510
+ n.value && ((s = (v = n.value) == null ? void 0 : v.onChange) == null || s.call(v, l.value, u.value));
506
511
  };
507
512
  return {
508
513
  selectedKey: l,
509
514
  selectedItem: u,
510
515
  selectRowKey: o,
511
- selectAllRowKey: (m, s, a) => {
512
- e.value && (m ? s.map((c) => (l.value.every((g) => g !== (c == null ? void 0 : c[e.value])) && c != null && c[e.value] && (l.value.push(c[e.value]), u.value.push(c)), c)) : a.map((c) => (l.value.includes(c == null ? void 0 : c[e.value]) && (l.value = l.value.filter((g) => g !== c[e.value]), u.value = u.value.filter((g) => g[e.value] !== c[e.value])), c)));
516
+ selectAllRowKey: (v, s, a) => {
517
+ e.value && (v ? s.map((c) => (l.value.every((g) => g !== (c == null ? void 0 : c[e.value])) && c != null && c[e.value] && (l.value.push(c[e.value]), u.value.push(c)), c)) : a.map((c) => (l.value.includes(c == null ? void 0 : c[e.value]) && (l.value = l.value.filter((g) => g !== c[e.value]), u.value = u.value.filter((g) => g[e.value] !== c[e.value])), c)));
513
518
  },
514
- removeRowKeys: (m) => {
515
- l.value = l.value.filter((s) => !m.includes(s)), u.value = u.value.filter((s) => !m.includes(s == null ? void 0 : s[e.value || ""])), i();
519
+ removeRowKeys: (v) => {
520
+ l.value = l.value.filter((s) => !v.includes(s)), u.value = u.value.filter((s) => !v.includes(s == null ? void 0 : s[e.value || ""])), i();
516
521
  },
517
522
  changeRowKey: i,
518
- syncSelectedRows: (m) => {
523
+ syncSelectedRows: (v) => {
519
524
  if (e.value && l.value.length !== u.value.length) {
520
525
  const s = u.value.map((c) => c[e.value]), a = l.value.filter((c) => !s.includes(c));
521
- m.forEach((c) => {
526
+ v.forEach((c) => {
522
527
  a.includes(c[e.value]) && u.value.push(le(c));
523
528
  });
524
529
  }
@@ -528,26 +533,26 @@ function Nl(e, n) {
528
533
  }
529
534
  };
530
535
  }
531
- function El(e, n) {
532
- const l = p(() => n || 0), u = k(), o = k(e);
536
+ function Al(e, n) {
537
+ const l = T(() => n || 0), u = k(), o = k(e);
533
538
  function i() {
534
539
  u.value && clearTimeout(u.value);
535
540
  }
536
541
  async function d(...f) {
537
542
  return l.value === 0 || l.value === void 0 ? o.value(...f) : (i(), new Promise(async (C) => {
538
- var T;
539
- (T = f[0]) != null && T.immediate ? C(await o.value(...f)) : u.value = setTimeout(async () => {
543
+ var p;
544
+ (p = f[0]) != null && p.immediate ? C(await o.value(...f)) : u.value = setTimeout(async () => {
540
545
  C(await o.value(...f));
541
546
  }, l.value);
542
547
  }));
543
548
  }
544
- return yl(i), {
549
+ return Bl(i), {
545
550
  cancel: i,
546
551
  run: d
547
552
  };
548
553
  }
549
- function zl(e) {
550
- const n = p(() => e.polling), l = p(() => e.debounceTime), u = p(() => e.dataSource);
554
+ function Yl(e) {
555
+ const n = T(() => e.polling), l = T(() => e.debounceTime), u = T(() => e.dataSource);
551
556
  return {
552
557
  polling: n,
553
558
  request: e.request,
@@ -556,13 +561,13 @@ function zl(e) {
556
561
  dataSource: u
557
562
  };
558
563
  }
559
- function Kl({ polling: e, request: n, postData: l, dataSource: u, waitRequest: o, debounceTime: i }, { columns: d, loading: f, setLoading: C, setColumns: T, removeRowKeys: m, syncSelectedRows: s, formParamsRef: a, setPagination: c, paginationInfo: g, onBeforeSearchSubmit: h, hasCustomRender: x }, P) {
560
- const R = k(), O = k(!0), Y = k(!1), L = k(!1), N = k([]), V = k(), ue = async (y = {}) => {
564
+ function Ll({ polling: e, request: n, postData: l, dataSource: u, waitRequest: o, debounceTime: i }, { columns: d, loading: f, setLoading: C, setColumns: p, removeRowKeys: v, syncSelectedRows: s, formParamsRef: a, setPagination: c, paginationInfo: g, onBeforeSearchSubmit: h, hasCustomRender: x }, P) {
565
+ const R = k(), O = k(!0), Y = k(!1), L = k(!1), E = k([]), V = k(), ue = async (y = {}) => {
561
566
  var Be;
562
- const { pagination: $, filters: M = {}, sorter: E = {}, removeKeys: w = [], isPolling: Ke = !1 } = y;
567
+ const { pagination: $, filters: N = {}, sorter: z = {}, removeKeys: w = [], isPolling: Ke = !1 } = y;
563
568
  if (!n || !$e(n) || S(o) && f.value || Y.value)
564
569
  return u.value || [];
565
- if (Y.value = !0, !Ke || S(o) || O.value ? C(!0) : Ce(!0), S(o)) {
570
+ if (Y.value = !0, !Ke || S(o) || O.value ? C(!0) : xe(!0), S(o)) {
566
571
  O.value = !1, Y.value = !1;
567
572
  return;
568
573
  }
@@ -572,105 +577,105 @@ function Kl({ polling: e, request: n, postData: l, dataSource: u, waitRequest: o
572
577
  if (ae($) && !$ || ae(g))
573
578
  ie = {};
574
579
  else {
575
- const { current: z = 1, pageSize: ce = 10, total: _ } = S(g) || {};
576
- ie.pageNum = Wt({ current: z, pageSize: ce, total: _ }, w.length), w.length && m(w), ie.pageSize = ce;
580
+ const { current: K = 1, pageSize: fe = 10, total: _ } = S(g) || {};
581
+ ie.pageNum = _t({ current: K, pageSize: fe, total: _ }, w.length), w.length && v(w), ie.pageSize = fe;
577
582
  }
578
- const Ie = X(E) ? [E] : E;
579
- Ie.forEach((z) => {
580
- const ce = (z == null ? void 0 : z.columnKey) || (z == null ? void 0 : z.field);
581
- z && (z != null && z.order) ? T(S(d).map((_) => (_.dataIndex === ce ? _.sortOrder = z == null ? void 0 : z.order : _.sortOrder = null, _))) : z && T(S(d).map((_) => (_.dataIndex === ce && (_.sortOrder = null), _)));
583
+ const Ie = J(z) ? [z] : z;
584
+ Ie.forEach((K) => {
585
+ const fe = (K == null ? void 0 : K.columnKey) || (K == null ? void 0 : K.field);
586
+ K && (K != null && K.order) ? p(S(d).map((_) => (_.dataIndex === fe ? _.sortOrder = K == null ? void 0 : K.order : _.sortOrder = null, _))) : K && p(S(d).map((_) => (_.dataIndex === fe && (_.sortOrder = null), _)));
582
587
  });
583
- let xe = {
588
+ let Se = {
584
589
  ...ie || {},
585
590
  ...y.params,
586
591
  ...a
587
592
  };
588
- h && $e(h) && (xe = await h(xe, E, M));
593
+ h && $e(h) && (Se = await h(Se, z, N));
589
594
  let U = [];
590
- const te = await (n == null ? void 0 : n(xe, Ie, M));
595
+ const te = await (n == null ? void 0 : n(Se, Ie, N));
591
596
  if (Y.value = !1, te && (te != null && te.success)) {
592
597
  U = te.data || [], l && $e(l) && (U = await (l == null ? void 0 : l(U))), s(U);
593
- const z = te.total || (U == null ? void 0 : U.length) || 0;
594
- return z !== ((Be = S(g)) == null ? void 0 : Be.total) && c({
595
- total: z || 0
598
+ const K = te.total || (U == null ? void 0 : U.length) || 0;
599
+ return K !== ((Be = S(g)) == null ? void 0 : Be.total) && c({
600
+ total: K || 0
596
601
  }), b(U), U;
597
602
  } else
598
603
  return [];
599
604
  } catch (ie) {
600
- N.value === void 0 && b([]), P("requestError", ie);
605
+ E.value === void 0 && b([]), P("requestError", ie);
601
606
  } finally {
602
607
  O.value = !1, C(!1);
603
608
  }
604
609
  return [];
605
- }, D = El(async (y) => {
610
+ }, D = Al(async (y) => {
606
611
  V.value && clearTimeout(V.value);
607
- const $ = await ue(y), M = Vt(e.value, $);
608
- return M && !R.value && (V.value = setTimeout(() => {
609
- D.run({ ...y, isPolling: M });
610
- }, Math.max(M, 2e3))), $;
612
+ const $ = await ue(y), N = Ht(e.value, $);
613
+ return N && !R.value && (V.value = setTimeout(() => {
614
+ D.run({ ...y, isPolling: N });
615
+ }, Math.max(N, 2e3))), $;
611
616
  }, i.value || 10);
612
- Jt(() => {
617
+ Qt(() => {
613
618
  R.value = !0, clearTimeout(V.value);
614
- }), Qt(() => {
619
+ }), Zt(() => {
615
620
  R.value = !0, clearTimeout(V.value);
616
621
  }), H(() => e.value, () => {
617
622
  e.value ? D.run({ isPolling: !0 }) : clearTimeout(V.value);
618
623
  }, { immediate: !0 }), H([() => o.value, () => u.value, () => a], () => {
619
- ye(n) ? (!O.value || !e.value) && D.run({ isPolling: !1 }) : b(u.value || []);
624
+ be(n) ? (!O.value || !e.value) && D.run({ isPolling: !1 }) : b(u.value || []);
620
625
  }, {
621
626
  deep: !0,
622
627
  immediate: !0
623
628
  });
624
- const J = p(() => {
629
+ const Q = T(() => {
625
630
  if (x.value)
626
- return S(N);
631
+ return S(E);
627
632
  const y = d.value.filter(($) => $.show || $.show === void 0);
628
- return !S(N) || !y || y.length === 0 ? [] : S(N);
629
- }), W = p(() => S(N).some((y) => be(y.children) && y.children.length > 0));
630
- function Ce(y) {
633
+ return !S(E) || !y || y.length === 0 ? [] : S(E);
634
+ }), W = T(() => S(E).some((y) => Ce(y.children) && y.children.length > 0));
635
+ function xe(y) {
631
636
  L.value = y;
632
637
  }
633
- function t(y, $, M, E) {
634
- D.run({ pagination: y, filters: $, sorter: M, extra: E, isPolling: !1 }), P("change", y, $, M, E);
638
+ function t(y, $, N, z) {
639
+ D.run({ pagination: y, filters: $, sorter: N, extra: z, isPolling: !1 }), P("change", y, $, N, z);
635
640
  }
636
641
  function b(y) {
637
- var M;
638
- const $ = Ht(le(y), S(g.value));
639
- if (!De($, N.value) && (N.value = $, !n || !$e(n))) {
640
- const E = $.length || 0;
641
- E !== ((M = S(g)) == null ? void 0 : M.total) && c({
642
- total: E
642
+ var N;
643
+ const $ = Wt(le(y), S(g.value));
644
+ if (!De($, E.value) && (E.value = $, !n || !$e(n))) {
645
+ const z = $.length || 0;
646
+ z !== ((N = S(g)) == null ? void 0 : N.total) && c({
647
+ total: z
643
648
  });
644
649
  }
645
650
  }
646
- function B({ key: y, record: $, type: M = "update" }) {
647
- switch (M) {
651
+ function B({ key: y, record: $, type: N = "update" }) {
652
+ switch (N) {
648
653
  case "update":
649
- N.value = N.value.map((E) => y && $[y] === E[y] ? { ...E, ...$ } : E);
654
+ E.value = E.value.map((z) => y && $[y] === z[y] ? { ...z, ...$ } : z);
650
655
  break;
651
656
  case "push":
652
- N.value.push($);
657
+ E.value.push($);
653
658
  break;
654
659
  case "unshift":
655
- N.value.unshift($);
660
+ E.value.unshift($);
656
661
  break;
657
662
  case "delete":
658
- N.value = N.value.filter((E) => y ? y && $[y] !== E[y] : !0);
663
+ E.value = E.value.filter((z) => y ? y && $[y] !== z[y] : !0);
659
664
  break;
660
665
  }
661
666
  }
662
667
  return {
663
- dataSource: J,
668
+ dataSource: Q,
664
669
  isTreeDataRef: W,
665
670
  reSetDataList: b,
666
671
  changeDataValue: B,
667
672
  handleTableChange: t,
668
673
  reload: async (y) => {
669
- ye(n) ? await D.run({ ...y, isPolling: !1 }) : P("reload");
674
+ be(n) ? await D.run({ ...y, isPolling: !1 }) : P("reload");
670
675
  }
671
676
  };
672
677
  }
673
- function Al(e) {
678
+ function Vl(e) {
674
679
  const n = {};
675
680
  return e.forEach((l) => {
676
681
  let u = l.initialValue;
@@ -678,11 +683,11 @@ function Al(e) {
678
683
  !u && o.includes(l.valueType) ? u = void 0 : !u && i.includes(l.valueType) ? u = null : u || (u = ""), l.name === "dateRange" ? (n[l.rangeStartName || "start"] = u ? u[0] : null, n[l.rangeEndName || "end"] = u ? u[1] : null) : l.name && (n[l.name] = u);
679
684
  }), n;
680
685
  }
681
- function Yl({ search: e, searchMap: n, params: l, columns: u, setPagination: o }) {
682
- const i = oe({}), d = oe({}), f = k([]), C = p(() => {
686
+ function Hl({ search: e, searchMap: n, params: l, columns: u, setPagination: o }) {
687
+ const i = re({}), d = re({}), f = k([]), C = T(() => {
683
688
  var s;
684
- return X(e.value) ? !!((s = e.value) != null && s.showSearch) : !!e.value;
685
- }), T = (s) => {
689
+ return J(e.value) ? !!((s = e.value) != null && s.showSearch) : !!e.value;
690
+ }), p = (s) => {
686
691
  var c, g;
687
692
  const a = [];
688
693
  if ((s === "all" || s === "searchMap") && ((c = n.value) == null || c.forEach((h) => a.push(h)), a.forEach((h) => {
@@ -699,50 +704,50 @@ function Yl({ search: e, searchMap: n, params: l, columns: u, setPagination: o }
699
704
  } : x) : f.value.push(h);
700
705
  })), s === "all" || s === "searchMap" || s === "columns") {
701
706
  o({ current: 1 });
702
- const h = Al(a);
707
+ const h = Vl(a);
703
708
  Object.assign(d, { ...h });
704
709
  for (const x in h)
705
710
  i[x] || (i[x] = h[x]);
706
711
  }
707
712
  (s === "all" || s === "params") && !C.value && (o({ current: 1 }), Object.assign(i, l.value));
708
713
  };
709
- Zt(() => {
710
- T("all");
714
+ el(() => {
715
+ p("all");
711
716
  }), H(() => l.value, () => {
712
- T("params");
717
+ p("params");
713
718
  }, { deep: !0 }), H(() => n.value, () => {
714
- T("searchMap");
719
+ p("searchMap");
715
720
  }, { deep: !0 }), H(() => u.value, () => {
716
- T("columns");
721
+ p("columns");
717
722
  }, { deep: !0 });
718
- function m(s) {
723
+ function v(s) {
719
724
  o({ current: 1 }), Object.assign(i, s);
720
725
  }
721
- return { formDataRef: f, formParamsRef: i, defaultParamsRef: d, setFormParams: m };
726
+ return { formDataRef: f, formParamsRef: i, defaultParamsRef: d, setFormParams: v };
722
727
  }
723
- function Ll({ columns: e, columnsState: n, changeColumns: l }) {
724
- const u = k(void 0), o = oe({}), i = oe({}), d = oe({}), f = k([]);
728
+ function Wl({ columns: e, columnsState: n, changeColumns: l }) {
729
+ const u = k(void 0), o = re({}), i = re({}), d = re({}), f = k([]);
725
730
  H(() => e.value, () => {
726
731
  var s;
727
732
  (s = S(e)) == null || s.forEach(({ show: a, key: c, fixed: g }, h) => {
728
- const x = mt(c, h);
733
+ const x = vt(c, h);
729
734
  x && (d[x] = { show: a === void 0 ? !0 : a, fixed: g });
730
735
  });
731
- const m = S(e).map((a) => a.key);
732
- T(m);
736
+ const v = S(e).map((a) => a.key);
737
+ p(v);
733
738
  }, { deep: !0, immediate: !0 }), Pe(() => {
734
739
  var s;
735
- const m = {
740
+ const v = {
736
741
  ...(s = S(n)) == null ? void 0 : s.value,
737
742
  ...S(d)
738
743
  };
739
- Object.assign(o, m), Object.assign(i, m);
744
+ Object.assign(o, v), Object.assign(i, v);
740
745
  });
741
- function C(m, s) {
742
- u.value = s, Object.assign(o, m), l == null || l(o, s === "fixed");
746
+ function C(v, s) {
747
+ u.value = s, Object.assign(o, v), l == null || l(o, s === "fixed");
743
748
  }
744
- function T(m) {
745
- f.value = m;
749
+ function p(v) {
750
+ f.value = v;
746
751
  }
747
752
  return {
748
753
  columnsMap: o,
@@ -750,18 +755,18 @@ function Ll({ columns: e, columnsState: n, changeColumns: l }) {
750
755
  setColumnsMap: C,
751
756
  sortKeyColumns: f,
752
757
  cacheColumnsMap: i,
753
- setSortKeyColumns: T
758
+ setSortKeyColumns: p
754
759
  };
755
760
  }
756
- function Vl(e) {
757
- const n = p(() => e.draggabled), l = p(() => e.neverScroll), u = p(() => e.autoScroll);
761
+ function _l(e) {
762
+ const n = T(() => e.draggabled), l = T(() => e.neverScroll), u = T(() => e.autoScroll);
758
763
  return {
759
764
  draggabled: n,
760
765
  neverScroll: l,
761
766
  autoScroll: u
762
767
  };
763
768
  }
764
- function Hl({ scroll: e, columns: n, breakpoint: l, draggabled: u, autoScroll: o, neverScroll: i }) {
769
+ function Gl({ scroll: e, columns: n, breakpoint: l, draggabled: u, autoScroll: o, neverScroll: i }) {
765
770
  const d = k([]), f = k([]);
766
771
  H([
767
772
  () => e.value,
@@ -772,27 +777,27 @@ function Hl({ scroll: e, columns: n, breakpoint: l, draggabled: u, autoScroll: o
772
777
  () => o.value,
773
778
  () => i.value
774
779
  ], () => {
775
- const g = m(fe(n.value));
776
- De(g, fe(d.value)) || (d.value = le(g)), De(g, fe(f.value)) || (f.value = le(g));
780
+ const g = v(me(n.value));
781
+ De(g, me(d.value)) || (d.value = le(g)), De(g, me(f.value)) || (f.value = le(g));
777
782
  }, {
778
783
  deep: !0,
779
784
  immediate: !0
780
785
  });
781
- const C = p(() => {
782
- const g = T(S(d).filter((P) => P.fixed === "left")), h = T(S(d).filter((P) => P.fixed !== "left" && P.fixed !== "right")), x = T(S(d).filter((P) => P.fixed === "right"));
786
+ const C = T(() => {
787
+ const g = p(S(d).filter((P) => P.fixed === "left")), h = p(S(d).filter((P) => P.fixed !== "left" && P.fixed !== "right")), x = p(S(d).filter((P) => P.fixed === "right"));
783
788
  return [
784
789
  ...g,
785
790
  ...h,
786
791
  ...x
787
792
  ];
788
793
  });
789
- function T(g) {
790
- return g.sort((h, x) => _t(h, x, "order", 0));
794
+ function p(g) {
795
+ return g.sort((h, x) => Gt(h, x, "order", 0));
791
796
  }
792
- function m(g) {
797
+ function v(g) {
793
798
  return le(g).map((h, x) => {
794
799
  var P;
795
- if (h.dataIndex === "action" || x === g.length - 1 ? h.resizable = !1 : h.resizable = ae(h.resizable) ? h.resizable : !!(vt(h.width) && S(u)), !h.width || S(i))
800
+ if (h.dataIndex === "action" || x === g.length - 1 ? h.resizable = !1 : h.resizable = ae(h.resizable) ? h.resizable : !!(gt(h.width) && S(u)), !h.width || S(i))
796
801
  return h;
797
802
  if (h.dataIndex === "action" && S(o))
798
803
  if ((P = S(e)) != null && P.x || !S(l))
@@ -812,10 +817,10 @@ function Hl({ scroll: e, columns: n, breakpoint: l, draggabled: u, autoScroll: o
812
817
  d.value = [];
813
818
  return;
814
819
  }
815
- De(m(g), fe(d.value)) || (d.value = m(g));
820
+ De(v(g), me(d.value)) || (d.value = v(g));
816
821
  }
817
822
  function c(g) {
818
- a(le(fe(n.value)).map((h) => {
823
+ a(le(me(n.value)).map((h) => {
819
824
  var P, R, O;
820
825
  const x = h.key ? {
821
826
  show: (P = g[h.key]) == null ? void 0 : P.show,
@@ -834,8 +839,8 @@ function Hl({ scroll: e, columns: n, breakpoint: l, draggabled: u, autoScroll: o
834
839
  resizeColumnWidth: s
835
840
  };
836
841
  }
837
- function Wl(e) {
838
- const n = p(() => e.scroll), l = p(() => e.autoScroll), u = p(() => e.modalScroll), o = p(() => e.neverScroll), i = p(() => e.rowSelection), d = p(() => e.scrollBreakpoint);
842
+ function ql(e) {
843
+ const n = T(() => e.scroll), l = T(() => e.autoScroll), u = T(() => e.modalScroll), o = T(() => e.neverScroll), i = T(() => e.rowSelection), d = T(() => e.scrollBreakpoint);
839
844
  return {
840
845
  scroll: n,
841
846
  neverScroll: o,
@@ -845,11 +850,11 @@ function Wl(e) {
845
850
  scrollBreakpoint: d
846
851
  };
847
852
  }
848
- function _l({ scroll: e, columns: n, autoScroll: l, modalScroll: u, neverScroll: o, rowSelection: i, screens: d, innerWidth: f, scrollBreakpoint: C }) {
849
- const T = p(() => {
853
+ function Ul({ scroll: e, columns: n, autoScroll: l, modalScroll: u, neverScroll: o, rowSelection: i, screens: d, innerWidth: f, scrollBreakpoint: C }) {
854
+ const p = T(() => {
850
855
  var a, c, g;
851
- return S(C) ? vt(S(C)) ? f.value > S(C) : Gt(S(C)) ? (a = d.value) == null ? void 0 : a[S(C)] : (c = d.value) == null ? void 0 : c.xl : (g = d.value) == null ? void 0 : g.xl;
852
- }), m = p(() => {
856
+ return S(C) ? gt(S(C)) ? f.value > S(C) : qt(S(C)) ? (a = d.value) == null ? void 0 : a[S(C)] : (c = d.value) == null ? void 0 : c.xl : (g = d.value) == null ? void 0 : g.xl;
857
+ }), v = T(() => {
853
858
  let a = 0;
854
859
  const c = S(i) ? 60 : 0, g = 150, h = le(S(n));
855
860
  h.forEach((R) => {
@@ -858,16 +863,16 @@ function _l({ scroll: e, columns: n, autoScroll: l, modalScroll: u, neverScroll:
858
863
  const P = h.filter((R) => !Reflect.has(R, "width")).length;
859
864
  return P !== 0 && (a += P * g), c && (a += c), a;
860
865
  });
861
- return { proScroll: p(() => {
866
+ return { proScroll: T(() => {
862
867
  var a, c;
863
868
  return S(o) ? {} : S(e) && Object.keys(S(e)).length ? S(e) : S(u) ? {
864
869
  y: ((a = S(e)) == null ? void 0 : a.y) || ((c = d.value) != null && c.xl ? 400 : 235)
865
- } : S(l) ? T.value ? {} : ae(T.value) ? { x: S(m) } : {} : {};
866
- }), breakpoint: T };
870
+ } : S(l) ? p.value ? {} : ae(p.value) ? { x: S(v) } : {} : {};
871
+ }), breakpoint: p };
867
872
  }
868
- const { provideContext: Gl, useInjectContext: re } = gl("pro-table");
869
- function ql(e, n) {
870
- const l = oe({});
873
+ const { provideContext: Xl, useInjectContext: de } = Pl("pro-table");
874
+ function Jl(e, n) {
875
+ const l = re({});
871
876
  function u() {
872
877
  Object.keys(e).forEach((d) => {
873
878
  o(d, e[d]);
@@ -890,7 +895,7 @@ function ql(e, n) {
890
895
  changeFormState: o
891
896
  };
892
897
  }
893
- const Ul = (e) => ({
898
+ const Ql = (e) => ({
894
899
  [`${e.componentCls}-form`]: {
895
900
  "&-collapse-button": {
896
901
  display: "flex",
@@ -924,11 +929,11 @@ const Ul = (e) => ({
924
929
  alignItems: "center"
925
930
  }
926
931
  }), {
927
- useBreakpoint: Xl
932
+ useBreakpoint: Zl
928
933
  } = Ue, {
929
- MonthPicker: Jl,
930
- RangePicker: Ql
931
- } = Ct, pt = /* @__PURE__ */ ne({
934
+ MonthPicker: ea,
935
+ RangePicker: ta
936
+ } = St, pt = /* @__PURE__ */ ne({
932
937
  name: "ProTableForm",
933
938
  props: {
934
939
  search: {
@@ -938,7 +943,7 @@ const Ul = (e) => ({
938
943
  searchText: "查询"
939
944
  })
940
945
  },
941
- modal: he.modalScroll,
946
+ modal: ve.modalScroll,
942
947
  searchMap: {
943
948
  type: Array,
944
949
  default: () => []
@@ -956,14 +961,14 @@ const Ul = (e) => ({
956
961
  const {
957
962
  wrapSSR: o,
958
963
  hashId: i
959
- } = ze("ProTableForm", [Ul], e.prefixCls), d = xt(), f = Xl(), {
964
+ } = ze("ProTableForm", [Ql], e.prefixCls), d = wt(), f = Zl(), {
960
965
  formState: C,
961
- resetFormState: T,
962
- changeFormState: m
963
- } = ql(e.defaultParams || {}, e.searchMap || []), s = k(!1), a = p(() => {
966
+ resetFormState: p,
967
+ changeFormState: v
968
+ } = Jl(e.defaultParams || {}, e.searchMap || []), s = k(!1), a = T(() => {
964
969
  var t;
965
970
  return !!((t = e.search) != null && t.showSearch);
966
- }), c = p(() => {
971
+ }), c = T(() => {
967
972
  var t, b;
968
973
  return ((t = e.search) == null ? void 0 : t.showReset) === void 0 ? a.value : (b = e.search) == null ? void 0 : b.showReset;
969
974
  }), g = [{
@@ -994,7 +999,7 @@ const Ul = (e) => ({
994
999
  }
995
1000
  }
996
1001
  return b;
997
- }, x = p(() => {
1002
+ }, x = T(() => {
998
1003
  var t;
999
1004
  return h((t = e.search) == null ? void 0 : t.span);
1000
1005
  });
@@ -1014,62 +1019,62 @@ const Ul = (e) => ({
1014
1019
  marginRight: "2%"
1015
1020
  }, O = () => {
1016
1021
  const t = le(C), b = e.searchMap.find(($) => $.valueType === "text") || "", B = e.searchMap.find(($) => $.valueType === "dateRange") || "", y = e.searchMap.find(($) => $.valueType === "treeSelect");
1017
- return b && (t[b.name] = C[b.name] || b.initialValue || ""), B && (t[B.rangeStartName || "start"] = t[B.name] ? t[B.name][0] : "", t[B.rangeEndName || "end"] = t[B.name] ? t[B.name][1] : "", delete t[B.name]), y && (y != null && y.name && be(C[y == null ? void 0 : y.name]) && (t[y.name] = C[y.name].length ? C[y.name].map(($) => $[y.valueKey === "text" ? "label" : "value"]).join() : ""), y != null && y.name && be(t[y == null ? void 0 : y.name]) && (t[y.name] = t[y.name].length ? t[y.name].map(($) => $[y.valueKey === "text" ? "label" : "value"]) : "")), t;
1022
+ return b && (t[b.name] = C[b.name] || b.initialValue || ""), B && (t[B.rangeStartName || "start"] = t[B.name] ? t[B.name][0] : "", t[B.rangeEndName || "end"] = t[B.name] ? t[B.name][1] : "", delete t[B.name]), y && (y != null && y.name && Ce(C[y == null ? void 0 : y.name]) && (t[y.name] = C[y.name].length ? C[y.name].map(($) => $[y.valueKey === "text" ? "label" : "value"]).join() : ""), y != null && y.name && Ce(t[y == null ? void 0 : y.name]) && (t[y.name] = t[y.name].length ? t[y.name].map(($) => $[y.valueKey === "text" ? "label" : "value"]) : "")), t;
1018
1023
  }, Y = (t = !1, b) => {
1019
- el(() => {
1024
+ tl(() => {
1020
1025
  (!a.value || t) && n("search", O(), !!b);
1021
1026
  });
1022
1027
  }, L = (t, b) => {
1023
1028
  var B, y, $;
1024
1029
  switch (b.valueType) {
1025
1030
  case "text":
1026
- m(b.name || "", t || b.initialValue || "");
1031
+ v(b.name || "", t || b.initialValue || "");
1027
1032
  break;
1028
1033
  case "select":
1029
- m(b.name || "", t || t === 0 ? t : b.initialValue || void 0);
1034
+ v(b.name || "", t || t === 0 ? t : b.initialValue || void 0);
1030
1035
  break;
1031
1036
  case "treeSelect":
1032
- m(b.name || "", t || t === 0 ? t : b.initialValue || ((B = b.field) != null && B.treeCheckable || (y = b.field) != null && y.multiple ? [] : null));
1037
+ v(b.name || "", t || t === 0 ? t : b.initialValue || ((B = b.field) != null && B.treeCheckable || (y = b.field) != null && y.multiple ? [] : null));
1033
1038
  break;
1034
1039
  case "date":
1035
- m(b.name || "", t ? G(t).format(b.valueFormat || "YYYY-MM-DD") : b.initialValue || null);
1040
+ v(b.name || "", t ? G(t).format(b.valueFormat || "YYYY-MM-DD") : b.initialValue || null);
1036
1041
  break;
1037
1042
  case "dateMonth":
1038
- m(b.name || "", t ? G(t).format("YYYY-MM") : b.initialValue || null);
1043
+ v(b.name || "", t ? G(t).format("YYYY-MM") : b.initialValue || null);
1039
1044
  break;
1040
1045
  case "dateRange":
1041
- m(b.name || "", t && t.length > 0 ? [G(t[0]).format(b.valueFormat || "YYYY-MM-DD"), G(t[1]).format(b.valueFormat || "YYYY-MM-DD")] : b.initialValue || null);
1046
+ v(b.name || "", t && t.length > 0 ? [G(t[0]).format(b.valueFormat || "YYYY-MM-DD"), G(t[1]).format(b.valueFormat || "YYYY-MM-DD")] : b.initialValue || null);
1042
1047
  break;
1043
1048
  case "time":
1044
- m(b.name || "", t ? G(t).format(b.valueFormat || "HH:mm:ss") : b.initialValue || null);
1049
+ v(b.name || "", t ? G(t).format(b.valueFormat || "HH:mm:ss") : b.initialValue || null);
1045
1050
  break;
1046
1051
  }
1047
1052
  ($ = e.search) != null && $.showSearch || b.valueType === "text" || (b.valueType === "treeSelect" || b.valueType, Y());
1048
- }, N = (t = !0) => {
1049
- T(), Y(!0, t);
1053
+ }, E = (t = !0) => {
1054
+ p(), Y(!0, t);
1050
1055
  };
1051
1056
  u({
1052
1057
  getFormState: () => O(),
1053
- resetForm: N
1058
+ resetForm: E
1054
1059
  });
1055
1060
  const V = () => {
1056
1061
  var b;
1057
1062
  const t = (b = d == null ? void 0 : d.emptyText) == null ? void 0 : b.value;
1058
1063
  if (t) {
1059
- const B = me(t), y = B ? yt(t) : gt(t || []);
1064
+ const B = ce(t), y = B ? bt(t) : yt(t || []);
1060
1065
  return r("div", {
1061
1066
  class: je(`${e.prefixCls}-search-empty-text`, i.value)
1062
- }, [B ? y : be(y) ? y.map(($) => qe($)) : void 0]);
1067
+ }, [B ? y : Ce(y) ? y.map(($) => qe($)) : void 0]);
1063
1068
  }
1064
- }, ue = () => (a.value || c.value) && r(se, null, {
1065
- default: () => [c.value && r(ct, {
1066
- onClick: () => N()
1069
+ }, ue = () => (a.value || c.value) && r(oe, null, {
1070
+ default: () => [c.value && r(dt, {
1071
+ onClick: () => E()
1067
1072
  }, {
1068
1073
  default: () => {
1069
1074
  var t;
1070
1075
  return [((t = e.search) == null ? void 0 : t.resetText) || "重置"];
1071
1076
  }
1072
- }), a.value && r(ct, {
1077
+ }), a.value && r(dt, {
1073
1078
  loading: e.loading,
1074
1079
  type: "primary",
1075
1080
  onClick: () => Y(!0)
@@ -1086,7 +1091,7 @@ const Ul = (e) => ({
1086
1091
  }) => r("div", {
1087
1092
  style: t,
1088
1093
  class: `${e.prefixCls}-form-collapse-button ${i.value}`
1089
- }, [r(se, {
1094
+ }, [r(oe, {
1090
1095
  size: 16
1091
1096
  }, {
1092
1097
  default: () => {
@@ -1094,12 +1099,12 @@ const Ul = (e) => ({
1094
1099
  return [ue(), B && r("span", {
1095
1100
  class: `${e.prefixCls}-a ${i.value}`,
1096
1101
  onClick: () => P(!b)
1097
- }, [b ? "收起" : "展开", (y = e.search) != null && y.collapseRender ? ($ = e.search) == null ? void 0 : $.collapseRender() : b ? r(bl, null, null) : r(Cl, null, null)])];
1102
+ }, [b ? "收起" : "展开", (y = e.search) != null && y.collapseRender ? ($ = e.search) == null ? void 0 : $.collapseRender() : b ? r(ul, null, null) : r(il, null, null)])];
1098
1103
  }
1099
- })]), J = (t) => {
1100
- var y, $, M, E;
1104
+ })]), Q = (t) => {
1105
+ var y, $, N, z;
1101
1106
  let b;
1102
- const B = a.value ? dt : dt.Search;
1107
+ const B = a.value ? ft : ft.Search;
1103
1108
  switch (t.valueType) {
1104
1109
  case "text":
1105
1110
  b = r(B, q({
@@ -1114,7 +1119,7 @@ const Ul = (e) => ({
1114
1119
  }, t.field || {}), null);
1115
1120
  break;
1116
1121
  case "select":
1117
- b = r(sl, q({
1122
+ b = r(Cl, q({
1118
1123
  style: {
1119
1124
  width: "100%"
1120
1125
  },
@@ -1136,7 +1141,7 @@ const Ul = (e) => ({
1136
1141
  }, t.field || {}), null);
1137
1142
  break;
1138
1143
  case "treeSelect":
1139
- b = r(il, q({
1144
+ b = r(bl, q({
1140
1145
  style: {
1141
1146
  width: "100%"
1142
1147
  },
@@ -1147,13 +1152,13 @@ const Ul = (e) => ({
1147
1152
  getPopupContainer: (w) => w && w.parentNode ? w.parentNode : w,
1148
1153
  notFoundContent: t.loading === void 0 ? void 0 : t.loading ? r(_e, {
1149
1154
  size: "small",
1150
- indicator: (M = d == null ? void 0 : d.indicator) == null ? void 0 : M.value
1155
+ indicator: (N = d == null ? void 0 : d.indicator) == null ? void 0 : N.value
1151
1156
  }, null) : V(),
1152
1157
  onChange: (w) => L(w, t)
1153
1158
  }, t.field || {}), null);
1154
1159
  break;
1155
1160
  case "date":
1156
- b = r(Ct, q({
1161
+ b = r(St, q({
1157
1162
  style: {
1158
1163
  width: "100%"
1159
1164
  },
@@ -1168,7 +1173,7 @@ const Ul = (e) => ({
1168
1173
  }, t.field || {}), null);
1169
1174
  break;
1170
1175
  case "dateMonth":
1171
- b = r(Jl, q({
1176
+ b = r(ea, q({
1172
1177
  style: {
1173
1178
  width: "100%"
1174
1179
  },
@@ -1179,11 +1184,11 @@ const Ul = (e) => ({
1179
1184
  }, t.field || {}), null);
1180
1185
  break;
1181
1186
  case "dateRange":
1182
- b = r(Ql, q({
1187
+ b = r(ta, q({
1183
1188
  style: {
1184
1189
  width: "100%"
1185
1190
  },
1186
- value: (E = C[t.name]) != null && E.length ? [G(C[t.name][0], t.valueFormat || "YYYY-MM-DD HH:mm:ss"), G(C[t.name][1], t.valueFormat || "YYYY-MM-DD HH:mm:ss")] : void 0,
1191
+ value: (z = C[t.name]) != null && z.length ? [G(C[t.name][0], t.valueFormat || "YYYY-MM-DD HH:mm:ss"), G(C[t.name][1], t.valueFormat || "YYYY-MM-DD HH:mm:ss")] : void 0,
1187
1192
  getPopupContainer: (w) => w && w.parentNode ? w.parentNode : w,
1188
1193
  placeholder: t.placeholder || ["开始日期", "结束日期"],
1189
1194
  format: t.valueFormat || "YYYY-MM-DD HH:mm:ss",
@@ -1192,7 +1197,7 @@ const Ul = (e) => ({
1192
1197
  }, t.field || {}), null);
1193
1198
  break;
1194
1199
  case "time":
1195
- b = r(ul, q({
1200
+ b = r(yl, q({
1196
1201
  style: {
1197
1202
  width: "100%"
1198
1203
  },
@@ -1213,17 +1218,17 @@ const Ul = (e) => ({
1213
1218
  }) => r("div", {
1214
1219
  class: `${e.prefixCls}-form-item`,
1215
1220
  style: t
1216
- }, [r(rt.Item, null, {
1217
- default: () => [b.__v_isVNode ? b : J(b)]
1218
- })]), Ce = () => {
1221
+ }, [r(ct.Item, null, {
1222
+ default: () => [b.__v_isVNode ? b : Q(b)]
1223
+ })]), xe = () => {
1219
1224
  var b;
1220
1225
  const t = [...e.searchMap, ...((b = l.default) == null ? void 0 : b.call(l)) || []];
1221
1226
  return t.map((B, y) => {
1222
1227
  const $ = {
1223
1228
  width: `${(100 - (x.value - 1) * 2) / x.value}%`
1224
- }, M = R(y, x.value, $);
1229
+ }, N = R(y, x.value, $);
1225
1230
  return t.length < x.value || s.value ? r(Ne, null, [W({
1226
- formItemStyle: M,
1231
+ formItemStyle: N,
1227
1232
  item: B
1228
1233
  }), y === t.length - 1 && D({
1229
1234
  formItemStyle: {
@@ -1233,10 +1238,10 @@ const Ul = (e) => ({
1233
1238
  advanced: s.value,
1234
1239
  showAdvanced: s.value
1235
1240
  })]) : r(Ne, null, [y < x.value - 1 && W({
1236
- formItemStyle: M,
1241
+ formItemStyle: N,
1237
1242
  item: B
1238
1243
  }), y === x.value - 1 && (x.value - 1 === 0 || t.length === x.value) && W({
1239
- formItemStyle: M,
1244
+ formItemStyle: N,
1240
1245
  item: B
1241
1246
  }), y === x.value - 1 && t.length !== x.value && D({
1242
1247
  formItemStyle: {
@@ -1256,13 +1261,13 @@ const Ul = (e) => ({
1256
1261
  [`${S(e.prefixCls)}-search`]: !0,
1257
1262
  [`${(t = e.search) == null ? void 0 : t.className}`]: (b = e.search) == null ? void 0 : b.className
1258
1263
  }
1259
- }, [r(rt, {
1264
+ }, [r(ct, {
1260
1265
  class: `${S(e.prefixCls)}-form ${i.value}`,
1261
1266
  layout: "horizontal"
1262
1267
  }, {
1263
1268
  default: () => [r("div", {
1264
1269
  class: `${S(e.prefixCls)}-form-container ${i.value}`
1265
- }, [Ce()])]
1270
+ }, [xe()])]
1266
1271
  })]));
1267
1272
  };
1268
1273
  }
@@ -1274,7 +1279,7 @@ const Re = (e) => {
1274
1279
  var u;
1275
1280
  return (u = n.value) == null ? void 0 : u.call(n, ...l);
1276
1281
  };
1277
- }, Zl = (e) => ({
1282
+ }, la = (e) => ({
1278
1283
  [`${e.componentCls}`]: {
1279
1284
  width: "auto",
1280
1285
  "&-title": {
@@ -1367,7 +1372,7 @@ const Re = (e) => {
1367
1372
  const {
1368
1373
  cacheColumns: i,
1369
1374
  settingsAction: d
1370
- } = re();
1375
+ } = de();
1371
1376
  return n ? r(ee, {
1372
1377
  title: e
1373
1378
  }, {
@@ -1377,12 +1382,12 @@ const Re = (e) => {
1377
1382
  onClick: (C) => {
1378
1383
  var c, g, h;
1379
1384
  C.stopPropagation(), C.preventDefault();
1380
- const T = ((g = (c = S(i)) == null ? void 0 : c.find((x) => x.uuid === l)) == null ? void 0 : g.key) || "", m = (d == null ? void 0 : d.columnsMap[T]) || {};
1381
- if (typeof m.disable == "boolean" ? m.disable : (h = m.disable) == null ? void 0 : h.icon) return;
1385
+ const p = ((g = (c = S(i)) == null ? void 0 : c.find((x) => x.uuid === l)) == null ? void 0 : g.key) || "", v = (d == null ? void 0 : d.columnsMap[p]) || {};
1386
+ if (typeof v.disable == "boolean" ? v.disable : (h = v.disable) == null ? void 0 : h.icon) return;
1382
1387
  const a = {
1383
1388
  ...d == null ? void 0 : d.columnsMap,
1384
- [T]: {
1385
- ...m,
1389
+ [p]: {
1390
+ ...v,
1386
1391
  fixed: u
1387
1392
  }
1388
1393
  };
@@ -1391,7 +1396,7 @@ const Re = (e) => {
1391
1396
  }, [(f = o.default) == null ? void 0 : f.call(o)])];
1392
1397
  }
1393
1398
  }) : null;
1394
- }, ea = /* @__PURE__ */ ne({
1399
+ }, aa = /* @__PURE__ */ ne({
1395
1400
  props: {
1396
1401
  treeKey: String,
1397
1402
  hashId: String,
@@ -1403,10 +1408,10 @@ const Re = (e) => {
1403
1408
  setup(e) {
1404
1409
  const {
1405
1410
  cacheColumns: n
1406
- } = re(), l = p(() => {
1411
+ } = de(), l = T(() => {
1407
1412
  var o, i;
1408
1413
  return ((i = (o = S(n)) == null ? void 0 : o.find((d) => d.uuid === e.treeKey)) == null ? void 0 : i.key) || "";
1409
- }), u = p(() => l.value === "action" && e.autoScroll);
1414
+ }), u = T(() => l.value === "action" && e.autoScroll);
1410
1415
  return () => {
1411
1416
  const o = r("span", {
1412
1417
  class: [`${e.className}-list-item-option`, e.hashId]
@@ -1416,21 +1421,21 @@ const Re = (e) => {
1416
1421
  title: "固定在列首",
1417
1422
  show: e.fixed !== "left" && !u.value
1418
1423
  }, {
1419
- default: () => [r(xl, null, null)]
1424
+ default: () => [r(sl, null, null)]
1420
1425
  }), r(Ye, {
1421
1426
  treeKey: e.treeKey || "",
1422
1427
  fixed: void 0,
1423
1428
  title: "不固定",
1424
1429
  show: !!e.fixed && !u.value
1425
1430
  }, {
1426
- default: () => [r(Sl, null, null)]
1431
+ default: () => [r(ol, null, null)]
1427
1432
  }), r(Ye, {
1428
1433
  treeKey: e.treeKey || "",
1429
1434
  fixed: "right",
1430
1435
  title: "固定在列尾",
1431
1436
  show: e.fixed !== "right"
1432
1437
  }, {
1433
- default: () => [r(wl, null, null)]
1438
+ default: () => [r(rl, null, null)]
1434
1439
  })]);
1435
1440
  return r("span", {
1436
1441
  class: [`${e.className}-list-item`, e.hashId],
@@ -1455,11 +1460,11 @@ const Re = (e) => {
1455
1460
  }
1456
1461
  },
1457
1462
  setup(e) {
1458
- const n = k(We().uuid(15)), l = p(() => e.list && e.list.length > 0), u = k([]), o = k([]), {
1463
+ const n = k(We().uuid(15)), l = T(() => e.list && e.list.length > 0), u = k([]), o = k([]), {
1459
1464
  cacheColumns: i,
1460
1465
  slots: d,
1461
1466
  settingsAction: f
1462
- } = re(), C = (a, c) => a.map(({
1467
+ } = de(), C = (a, c) => a.map(({
1463
1468
  key: g,
1464
1469
  children: h,
1465
1470
  uuid: x,
@@ -1486,21 +1491,21 @@ const Re = (e) => {
1486
1491
  const a = C(e.list || []);
1487
1492
  u.value = a, o.value = a.filter((c) => c.checked).map((c) => c.key), (f == null ? void 0 : f.operationType.value) === "fixed" && (n.value = We().uuid(15));
1488
1493
  });
1489
- const T = Re((a, c, g) => {
1494
+ const p = Re((a, c, g) => {
1490
1495
  var V, ue;
1491
1496
  const h = ((V = S(i).find((D) => D.uuid === a)) == null ? void 0 : V.key) || "", x = ((ue = S(i).find((D) => D.uuid === c)) == null ? void 0 : ue.key) || "", P = {
1492
1497
  ...f == null ? void 0 : f.columnsMap
1493
1498
  }, R = [...f.sortKeyColumns.value], O = R.findIndex((D) => D === h), Y = R.findIndex((D) => D === x), L = g > O;
1494
1499
  if (O < 0)
1495
1500
  return;
1496
- const N = R[O];
1497
- R.splice(O, 1), g === 0 ? R.unshift(N) : R.splice(L ? Y : Y + 1, 0, N), R.forEach((D, J) => {
1501
+ const E = R[O];
1502
+ R.splice(O, 1), g === 0 ? R.unshift(E) : R.splice(L ? Y : Y + 1, 0, E), R.forEach((D, Q) => {
1498
1503
  P[D] = {
1499
1504
  ...P[D] || {},
1500
- order: J
1505
+ order: Q
1501
1506
  };
1502
1507
  }), f == null || f.setColumnsMap(P, "drop"), f == null || f.setSortKeyColumns(R);
1503
- }), m = Re((a) => {
1508
+ }), v = Re((a) => {
1504
1509
  var R;
1505
1510
  const c = a.node.key, g = ((R = S(i).find((O) => O.uuid === c)) == null ? void 0 : R.key) || "", x = {
1506
1511
  ...(f == null ? void 0 : f.columnsMap[g]) || {}
@@ -1513,7 +1518,7 @@ const Re = (e) => {
1513
1518
  f == null || f.setColumnsMap(P, "show");
1514
1519
  }), s = (a) => {
1515
1520
  const c = S(i).find((g) => g.uuid === a.key);
1516
- return a.title || tl(d, "headerCell", {
1521
+ return a.title || ll(d, "headerCell", {
1517
1522
  title: c.title,
1518
1523
  column: c
1519
1524
  }, () => [c.title]);
@@ -1522,7 +1527,7 @@ const Re = (e) => {
1522
1527
  var a, c;
1523
1528
  return l.value ? r(Ne, null, [e.showTitle && r("span", {
1524
1529
  class: [`${e.className}-list-title`, e.hashId]
1525
- }, [e.title]), r(cl, {
1530
+ }, [e.title]), r(wl, {
1526
1531
  key: n.value,
1527
1532
  draggable: e.draggable && !!((a = u.value) != null && a.length) && ((c = u.value) == null ? void 0 : c.length) > 1,
1528
1533
  checkable: e.checkable,
@@ -1535,9 +1540,9 @@ const Re = (e) => {
1535
1540
  dropPosition: P,
1536
1541
  dropToGap: R
1537
1542
  } = g, O = P === -1 || !R ? P + 1 : P;
1538
- T(x, h, O);
1543
+ p(x, h, O);
1539
1544
  },
1540
- onCheck: (g, h) => m(h),
1545
+ onCheck: (g, h) => v(h),
1541
1546
  treeData: u.value
1542
1547
  }, {
1543
1548
  title: (g) => {
@@ -1548,7 +1553,7 @@ const Re = (e) => {
1548
1553
  title: s(g),
1549
1554
  autoScroll: (x = f == null ? void 0 : f.autoScroll) == null ? void 0 : x.value
1550
1555
  };
1551
- return r(ea, q({
1556
+ return r(aa, q({
1552
1557
  hashId: e.hashId,
1553
1558
  className: e.className
1554
1559
  }, h, {
@@ -1558,7 +1563,7 @@ const Re = (e) => {
1558
1563
  })]) : null;
1559
1564
  };
1560
1565
  }
1561
- }), ta = /* @__PURE__ */ ne({
1566
+ }), na = /* @__PURE__ */ ne({
1562
1567
  props: {
1563
1568
  hashId: String,
1564
1569
  className: String,
@@ -1568,30 +1573,30 @@ const Re = (e) => {
1568
1573
  setup(e) {
1569
1574
  const {
1570
1575
  columns: n
1571
- } = re(), l = k([]), u = k([]), o = k([]), i = k([]);
1576
+ } = de(), l = k([]), u = k([]), o = k([]), i = k([]);
1572
1577
  H(() => n.value, (C) => {
1573
- l.value = [], u.value = [], o.value = [], C.forEach((T) => {
1574
- if (T.hideInSetting)
1578
+ l.value = [], u.value = [], o.value = [], C.forEach((p) => {
1579
+ if (p.hideInSetting)
1575
1580
  return;
1576
1581
  const {
1577
- fixed: m,
1582
+ fixed: v,
1578
1583
  show: s,
1579
1584
  uuid: a
1580
- } = T;
1581
- if ((s || s === void 0) && a && i.value.push(a), m === "left") {
1582
- u.value.push(T);
1585
+ } = p;
1586
+ if ((s || s === void 0) && a && i.value.push(a), v === "left") {
1587
+ u.value.push(p);
1583
1588
  return;
1584
1589
  }
1585
- if (m === "right") {
1586
- l.value.push(T);
1590
+ if (v === "right") {
1591
+ l.value.push(p);
1587
1592
  return;
1588
1593
  }
1589
- o.value.push(T);
1594
+ o.value.push(p);
1590
1595
  });
1591
1596
  }, {
1592
1597
  immediate: !0
1593
1598
  });
1594
- const d = p(() => l.value && l.value.length > 0), f = p(() => u.value && u.value.length > 0);
1599
+ const d = T(() => l.value && l.value.length > 0), f = T(() => u.value && u.value.length > 0);
1595
1600
  return () => r("div", {
1596
1601
  class: {
1597
1602
  [`${e.hashId}`]: !0,
@@ -1625,7 +1630,7 @@ const Re = (e) => {
1625
1630
  className: e.className
1626
1631
  }, null)]);
1627
1632
  }
1628
- }), la = /* @__PURE__ */ ne({
1633
+ }), ua = /* @__PURE__ */ ne({
1629
1634
  props: {
1630
1635
  draggable: {
1631
1636
  type: Boolean,
@@ -1645,10 +1650,10 @@ const Re = (e) => {
1645
1650
  }), {
1646
1651
  wrapSSR: l,
1647
1652
  hashId: u
1648
- } = ze("ColumnSetting", [Zl], n), {
1653
+ } = ze("ColumnSetting", [la], n), {
1649
1654
  columns: o,
1650
1655
  settingsAction: i
1651
- } = re(), d = Re((s = !0) => {
1656
+ } = de(), d = Re((s = !0) => {
1652
1657
  const a = {}, c = (g) => {
1653
1658
  g.forEach(({
1654
1659
  key: h,
@@ -1656,7 +1661,7 @@ const Re = (e) => {
1656
1661
  index: P,
1657
1662
  children: R
1658
1663
  }) => {
1659
- const O = mt(h, P);
1664
+ const O = vt(h, P);
1660
1665
  O && (a[O] = {
1661
1666
  show: s,
1662
1667
  fixed: x
@@ -1668,24 +1673,24 @@ const Re = (e) => {
1668
1673
  s.target.checked ? d() : d(!1);
1669
1674
  }), C = Re(() => {
1670
1675
  i == null || i.setColumnsMap(i == null ? void 0 : i.cacheColumnsMap, "fixed");
1671
- }), T = p(() => (
1676
+ }), p = T(() => (
1672
1677
  // @ts-ignore
1673
1678
  Object.values(i == null ? void 0 : i.columnsMap).filter((s) => !s || s.show === !1)
1674
- )), m = p(() => S(T).length > 0 && S(T).length !== o.value.length);
1675
- return () => l(r(ol, {
1679
+ )), v = T(() => S(p).length > 0 && S(p).length !== o.value.length);
1680
+ return () => l(r(xl, {
1676
1681
  arrowPointAtCenter: !0,
1677
1682
  title: r("div", {
1678
1683
  class: [`${n}-title`, u.value]
1679
- }, [r(rl, {
1680
- indeterminate: m.value,
1681
- checked: S(T).length === 0 && S(T).length !== o.value.length,
1684
+ }, [r(Sl, {
1685
+ indeterminate: v.value,
1686
+ checked: S(p).length === 0 && S(p).length !== o.value.length,
1682
1687
  onChange: (s) => f(s)
1683
1688
  }, {
1684
1689
  default: () => [Fe("列展示")]
1685
1690
  }), e.checkedReset ? r("a", {
1686
1691
  onClick: C,
1687
1692
  class: [`${n}-action-rest-button`, u.value]
1688
- }, [Fe("重置")]) : null, e != null && e.extra ? r(se, {
1693
+ }, [Fe("重置")]) : null, e != null && e.extra ? r(oe, {
1689
1694
  size: 12,
1690
1695
  align: "center"
1691
1696
  }, {
@@ -1694,7 +1699,7 @@ const Re = (e) => {
1694
1699
  overlayClassName: `${n}-overlay ${u.value}`,
1695
1700
  trigger: "click",
1696
1701
  placement: "bottomRight",
1697
- content: r(ta, {
1702
+ content: r(na, {
1698
1703
  hashId: u.value,
1699
1704
  checkable: e.checkable ?? !0,
1700
1705
  draggable: e.draggable ?? !0,
@@ -1704,31 +1709,31 @@ const Re = (e) => {
1704
1709
  default: () => [r(ee, {
1705
1710
  title: "列设置"
1706
1711
  }, {
1707
- default: () => [r(St, null, null)]
1712
+ default: () => [r(Ct, null, null)]
1708
1713
  })]
1709
1714
  }));
1710
1715
  }
1711
- }), Tt = /* @__PURE__ */ ne({
1716
+ }), $t = /* @__PURE__ */ ne({
1712
1717
  setup() {
1713
1718
  const {
1714
1719
  isFullscreen: e
1715
- } = bt();
1720
+ } = xt();
1716
1721
  return () => e.value ? r(ee, {
1717
1722
  title: "退出全屏"
1718
1723
  }, {
1719
- default: () => [r(pl, null, null)]
1724
+ default: () => [r(cl, null, null)]
1720
1725
  }) : r(ee, {
1721
1726
  title: "全屏"
1722
1727
  }, {
1723
- default: () => [r(Tl, null, null)]
1728
+ default: () => [r(dl, null, null)]
1724
1729
  });
1725
1730
  }
1726
- }), aa = () => {
1731
+ }), ia = () => {
1727
1732
  const {
1728
1733
  action: e,
1729
1734
  tableSize: n
1730
- } = re();
1731
- return r(dl, {
1735
+ } = de();
1736
+ return r(Tl, {
1732
1737
  overlay: r(ke, {
1733
1738
  selectedKeys: [n.value],
1734
1739
  onClick: ({
@@ -1760,10 +1765,10 @@ const Re = (e) => {
1760
1765
  default: () => [r(ee, {
1761
1766
  title: "表格密度"
1762
1767
  }, {
1763
- default: () => [r($l, null, null)]
1768
+ default: () => [r(fl, null, null)]
1764
1769
  })]
1765
1770
  });
1766
- }, na = (e) => ({
1771
+ }, sa = (e) => ({
1767
1772
  [`${e.componentCls}`]: {
1768
1773
  lineHeight: 1,
1769
1774
  "&-container": {
@@ -1805,14 +1810,14 @@ const Re = (e) => {
1805
1810
  }
1806
1811
  }
1807
1812
  });
1808
- function ft(e) {
1809
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !me(e);
1813
+ function ht(e) {
1814
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ce(e);
1810
1815
  }
1811
1816
  const {
1812
- useBreakpoint: ua
1817
+ useBreakpoint: oa
1813
1818
  } = Ue;
1814
- function ia(e) {
1815
- if (me(e))
1819
+ function ra(e) {
1820
+ if (ce(e))
1816
1821
  return e;
1817
1822
  if (e) {
1818
1823
  const n = e, {
@@ -1834,34 +1839,34 @@ function ia(e) {
1834
1839
  }
1835
1840
  return null;
1836
1841
  }
1837
- const $t = /* @__PURE__ */ ne({
1842
+ const Ft = /* @__PURE__ */ ne({
1838
1843
  props: {
1839
- actions: he.toolBarBtn,
1844
+ actions: ve.toolBarBtn,
1840
1845
  settings: [Array],
1841
- titleTip: he.titleTip,
1846
+ titleTip: ve.titleTip,
1842
1847
  prefixCls: String,
1843
- headerTitle: he.headerTitle,
1844
- titleTipText: he.titleTipText,
1845
- optionsExtra: he.optionsExtra
1848
+ headerTitle: ve.headerTitle,
1849
+ titleTipText: ve.titleTipText,
1850
+ optionsExtra: ve.optionsExtra
1846
1851
  },
1847
1852
  setup(e) {
1848
1853
  const {
1849
1854
  wrapSSR: n,
1850
1855
  hashId: l
1851
- } = ze("ListToolBar", [na], e.prefixCls), u = ua(), {
1856
+ } = ze("ListToolBar", [sa], e.prefixCls), u = oa(), {
1852
1857
  isMobile: o
1853
- } = re(), i = p(() => {
1858
+ } = de(), i = T(() => {
1854
1859
  var a;
1855
1860
  return !!(e.titleTip || e.headerTitle || (a = e.actions) != null && a.length);
1856
- }), d = p(() => {
1861
+ }), d = T(() => {
1857
1862
  var a;
1858
1863
  return !!((a = e.settings) != null && a.length || e.optionsExtra);
1859
- }), f = p(() => !!(e.titleTip || e.headerTitle)), C = p(() => {
1864
+ }), f = T(() => !!(e.titleTip || e.headerTitle)), C = T(() => {
1860
1865
  var c;
1861
1866
  let a;
1862
- return Array.isArray(e.actions) ? ((c = e.actions) == null ? void 0 : c.length) < 1 ? null : r(se, {
1867
+ return Array.isArray(e.actions) ? ((c = e.actions) == null ? void 0 : c.length) < 1 ? null : r(oe, {
1863
1868
  align: "center"
1864
- }, ft(a = e.actions.map((g, h) => me(g) ? qe(g, {
1869
+ }, ht(a = e.actions.map((g, h) => ce(g) ? qe(g, {
1865
1870
  key: h,
1866
1871
  ...g == null ? void 0 : g.props
1867
1872
  }) : r("template", {
@@ -1869,9 +1874,9 @@ const $t = /* @__PURE__ */ ne({
1869
1874
  }, [g]))) ? a : {
1870
1875
  default: () => [a]
1871
1876
  }) : e.actions;
1872
- }), T = Me(() => !i.value && d.value ? r("div", {
1877
+ }), p = Me(() => !i.value && d.value ? r("div", {
1873
1878
  class: `${e.prefixCls}-left ${l.value}`
1874
- }, null) : f.value ? r(se, {
1879
+ }, null) : f.value ? r(oe, {
1875
1880
  class: `${e.prefixCls}-left ${l.value}`
1876
1881
  }, {
1877
1882
  default: () => [r("div", {
@@ -1879,19 +1884,19 @@ const $t = /* @__PURE__ */ ne({
1879
1884
  }, [e.headerTitle, e.titleTip && r(ee, {
1880
1885
  title: e.titleTipText
1881
1886
  }, {
1882
- default: () => [ae(e.titleTip) && e.titleTip ? r(Fl, null, null) : e.titleTip]
1887
+ default: () => [ae(e.titleTip) && e.titleTip ? r(hl, null, null) : e.titleTip]
1883
1888
  })]), C.value && r("div", {
1884
1889
  class: `${e.prefixCls}-actions ${l.value}`
1885
1890
  }, [C.value])]
1886
- }) : r(se, {
1891
+ }) : r(oe, {
1887
1892
  class: `${e.prefixCls}-left ${l.value}`
1888
1893
  }, {
1889
1894
  default: () => [C.value && r("div", {
1890
1895
  class: `${e.prefixCls}-actions`
1891
1896
  }, [C.value])]
1892
- }), [() => i.value, () => d.value, () => f.value, () => e.prefixCls, () => e.headerTitle, () => e.titleTipText, () => e.titleTip]), m = Me(() => {
1897
+ }), [() => i.value, () => d.value, () => f.value, () => e.prefixCls, () => e.headerTitle, () => e.titleTipText, () => e.titleTip]), v = Me(() => {
1893
1898
  let a;
1894
- return d.value ? r(se, {
1899
+ return d.value ? r(oe, {
1895
1900
  size: 16,
1896
1901
  class: `${e.prefixCls}-right ${l.value}`,
1897
1902
  align: u.value.lg ? "center" : "end",
@@ -1899,12 +1904,12 @@ const $t = /* @__PURE__ */ ne({
1899
1904
  }, {
1900
1905
  default: () => {
1901
1906
  var c;
1902
- return [e.optionsExtra, (c = e.settings) != null && c.length ? r(se, {
1907
+ return [e.optionsExtra, (c = e.settings) != null && c.length ? r(oe, {
1903
1908
  size: 12,
1904
1909
  align: "center",
1905
1910
  class: `${e.prefixCls}-setting-items`
1906
- }, ft(a = e.settings.map((g, h) => {
1907
- const x = ia(g);
1911
+ }, ht(a = e.settings.map((g, h) => {
1912
+ const x = ra(g);
1908
1913
  return r("div", {
1909
1914
  key: h,
1910
1915
  class: `${e.prefixCls}-setting-item`
@@ -1923,35 +1928,35 @@ const $t = /* @__PURE__ */ ne({
1923
1928
  };
1924
1929
  return r("div", {
1925
1930
  class: a
1926
- }, [T.value, m.value]);
1927
- }, [() => o.value, () => i.value, () => d.value, () => T.value, () => e.prefixCls, () => m.value]);
1931
+ }, [p.value, v.value]);
1932
+ }, [() => o.value, () => i.value, () => d.value, () => p.value, () => e.prefixCls, () => v.value]);
1928
1933
  return () => n(r("div", {
1929
1934
  class: `${e.prefixCls} ${l.value}`
1930
1935
  }, [s.value]));
1931
1936
  }
1932
1937
  });
1933
- $t.inheritAttrs = !1;
1934
- function sa() {
1938
+ Ft.inheritAttrs = !1;
1939
+ function ca() {
1935
1940
  return {
1936
1941
  reload: {
1937
1942
  text: "刷新",
1938
- icon: r(Rl, null, null)
1943
+ icon: r(ml, null, null)
1939
1944
  },
1940
1945
  density: {
1941
1946
  text: "表格密度",
1942
- icon: r(aa, null, null)
1947
+ icon: r(ia, null, null)
1943
1948
  },
1944
1949
  setting: {
1945
1950
  text: "列设置",
1946
- icon: r(St, null, null)
1951
+ icon: r(Ct, null, null)
1947
1952
  },
1948
1953
  fullScreen: {
1949
1954
  text: "全屏",
1950
- icon: r(Tt, null, null)
1955
+ icon: r($t, null, null)
1951
1956
  }
1952
1957
  };
1953
1958
  }
1954
- function oa(e, n) {
1959
+ function da(e, n) {
1955
1960
  return Object.keys(e).filter((l) => l).map((l) => {
1956
1961
  const u = e[l];
1957
1962
  if (!u)
@@ -1959,15 +1964,15 @@ function oa(e, n) {
1959
1964
  let o = u === !0 ? n[l] : () => u == null ? void 0 : u();
1960
1965
  if (typeof o != "function" && (o = () => {
1961
1966
  }), l === "setting")
1962
- return r(la, q(e[l], {
1967
+ return r(ua, q(e[l], {
1963
1968
  key: l
1964
1969
  }), null);
1965
1970
  if (l === "fullScreen")
1966
1971
  return r("span", {
1967
1972
  key: l,
1968
1973
  onClick: o
1969
- }, [r(Tt, null, null)]);
1970
- const i = sa()[l];
1974
+ }, [r($t, null, null)]);
1975
+ const i = ca()[l];
1971
1976
  return i ? r("span", {
1972
1977
  key: l,
1973
1978
  onClick: o
@@ -1978,7 +1983,7 @@ function oa(e, n) {
1978
1983
  })]) : null;
1979
1984
  }).filter((l) => l);
1980
1985
  }
1981
- const ra = {
1986
+ const fa = {
1982
1987
  options: [Boolean, Object, Array],
1983
1988
  titleTip: [Function, Boolean, Object, String],
1984
1989
  settingExtra: [Function, Boolean, Object, Array],
@@ -1986,8 +1991,8 @@ const ra = {
1986
1991
  titleTipText: [String],
1987
1992
  toolBarBtn: [Function, Boolean, Object, Array],
1988
1993
  headerTitle: [Function, Boolean, Object, Array, String]
1989
- }, ca = /* @__PURE__ */ ne({
1990
- props: ra,
1994
+ }, ha = /* @__PURE__ */ ne({
1995
+ props: fa,
1991
1996
  inheritAttrs: !1,
1992
1997
  setup(e) {
1993
1998
  const n = Ge({
@@ -1995,7 +2000,7 @@ const ra = {
1995
2000
  isPor: !0
1996
2001
  }), {
1997
2002
  action: l
1998
- } = re(), u = Me(() => {
2003
+ } = de(), u = Me(() => {
1999
2004
  var d;
2000
2005
  const o = {
2001
2006
  reload: () => l == null ? void 0 : l.reload(),
@@ -2008,13 +2013,13 @@ const ra = {
2008
2013
  ...o,
2009
2014
  ...e.options
2010
2015
  };
2011
- return i.setting !== !1 && e.settingExtra && (i.setting = {}, i.setting.extra = e.settingExtra), oa(i, {
2016
+ return i.setting !== !1 && e.settingExtra && (i.setting = {}, i.setting.extra = e.settingExtra), da(i, {
2012
2017
  ...o
2013
2018
  });
2014
2019
  }, [() => l, () => e.options]);
2015
2020
  return () => {
2016
2021
  const o = e.toolBarBtn || [];
2017
- return r($t, {
2022
+ return r(Ft, {
2018
2023
  prefixCls: n,
2019
2024
  optionsExtra: e.optionsExtra,
2020
2025
  headerTitle: e.headerTitle,
@@ -2038,7 +2043,7 @@ const ra = {
2038
2043
  backgroundColor: "transparent",
2039
2044
  borderRadius: 2
2040
2045
  }
2041
- }, da = (e) => ({
2046
+ }, ma = (e) => ({
2042
2047
  [e.componentCls]: {
2043
2048
  "&-a": {
2044
2049
  cursor: "pointer",
@@ -2220,8 +2225,8 @@ const ra = {
2220
2225
  }
2221
2226
  }
2222
2227
  }), {
2223
- useBreakpoint: fa
2224
- } = Ue, ha = {
2228
+ useBreakpoint: va
2229
+ } = Ue, ga = {
2225
2230
  reload: !0,
2226
2231
  density: !0,
2227
2232
  setting: !0,
@@ -2229,7 +2234,7 @@ const ra = {
2229
2234
  }, He = /* @__PURE__ */ ne({
2230
2235
  name: "GProTable",
2231
2236
  inheritAttrs: !1,
2232
- props: he,
2237
+ props: ve,
2233
2238
  emits: ["reset", "reload", "submit", "sizeChange", "expandedRowsChange", "expand", "change", "requestError", "beforeSearchSubmit", "columnsStateChange", "loadingChange"],
2234
2239
  slots: Object,
2235
2240
  setup(e, {
@@ -2244,65 +2249,65 @@ const ra = {
2244
2249
  }), {
2245
2250
  wrapSSR: d,
2246
2251
  hashId: f
2247
- } = ze("ProBaseTable", [da], i), C = fa(), {
2248
- width: T
2249
- } = nl(), m = xt(), s = k(), a = k(), c = k(e.waitRequest);
2252
+ } = ze("ProBaseTable", [ma], i), C = va(), {
2253
+ width: p
2254
+ } = gl(), v = wt(), s = k(), a = k(), c = k(e.waitRequest);
2250
2255
  Pe(() => c.value = e.waitRequest);
2251
2256
  const {
2252
2257
  toggle: g,
2253
2258
  isFullscreen: h
2254
- } = bt(s), x = p(() => ({
2259
+ } = xt(s), x = T(() => ({
2255
2260
  ...e
2256
- })), P = p(() => !C.value.xl), R = p(() => {
2257
- var v, F;
2258
- return e.virtualScroll && ll(!((v = e.scroll) != null && v.y), "参数scroll的Y值不能为空!"), !!((F = e.scroll) != null && F.y && e.virtualScroll);
2259
- }), O = p(() => {
2260
- const v = (e.columns || []).filter((F) => F.key || F.dataIndex).map((F) => ({
2261
+ })), P = T(() => !C.value.xl), R = T(() => {
2262
+ var m, F;
2263
+ return e.virtualScroll && al(!((m = e.scroll) != null && m.y), "参数scroll的Y值不能为空!"), !!((F = e.scroll) != null && F.y && e.virtualScroll);
2264
+ }), O = T(() => {
2265
+ const m = (e.columns || []).filter((F) => F.key || F.dataIndex).map((F) => ({
2261
2266
  ...F,
2262
2267
  key: F.key || F.dataIndex,
2263
2268
  align: F.align || e.align,
2264
2269
  uuid: We().uuid(15)
2265
2270
  }));
2266
- return qt(v, {
2271
+ return Ut(m, {
2267
2272
  align: e.align || "left",
2268
2273
  showIndex: e.showIndex || !1
2269
2274
  });
2270
2275
  }), {
2271
2276
  loadingComputed: Y,
2272
2277
  loading: L,
2273
- setLoading: N
2274
- } = kl({
2278
+ setLoading: E
2279
+ } = Ml({
2275
2280
  emit: n,
2276
2281
  loading: Z(e, "loading")
2277
2282
  }), {
2278
2283
  sizeRef: V,
2279
2284
  setTableSize: ue
2280
- } = Dl({
2285
+ } = Nl({
2281
2286
  emit: n,
2282
2287
  size: Z(e, "size")
2283
2288
  }), {
2284
2289
  paginationInfo: D,
2285
- requestPagination: J,
2290
+ requestPagination: Q,
2286
2291
  setPagination: W
2287
- } = jl({
2292
+ } = El({
2288
2293
  slots: l,
2289
2294
  props: x,
2290
2295
  pagination: Z(e, "pagination")
2291
- }), Ce = Wl(e), {
2296
+ }), xe = ql(e), {
2292
2297
  proScroll: t,
2293
2298
  breakpoint: b
2294
- } = _l({
2295
- ...Ce,
2296
- innerWidth: T,
2299
+ } = Ul({
2300
+ ...xe,
2301
+ innerWidth: p,
2297
2302
  columns: O,
2298
2303
  screens: C
2299
- }), B = Vl(e), {
2304
+ }), B = _l(e), {
2300
2305
  proColumns: y,
2301
2306
  cacheProColumns: $,
2302
- setColumns: M,
2303
- changeColumns: E,
2307
+ setColumns: N,
2308
+ changeColumns: z,
2304
2309
  resizeColumnWidth: w
2305
- } = Hl({
2310
+ } = Gl({
2306
2311
  ...B,
2307
2312
  breakpoint: b,
2308
2313
  scroll: t,
@@ -2312,18 +2317,18 @@ const ra = {
2312
2317
  operationType: Be,
2313
2318
  setColumnsMap: ie,
2314
2319
  sortKeyColumns: Ie,
2315
- cacheColumnsMap: xe,
2320
+ cacheColumnsMap: Se,
2316
2321
  setSortKeyColumns: U
2317
- } = Ll({
2322
+ } = Wl({
2318
2323
  columns: $,
2319
2324
  columnsState: Z(e, "columnsState"),
2320
- changeColumns: E
2325
+ changeColumns: z
2321
2326
  }), {
2322
2327
  formDataRef: te,
2323
- formParamsRef: z,
2324
- defaultParamsRef: ce,
2328
+ formParamsRef: K,
2329
+ defaultParamsRef: fe,
2325
2330
  setFormParams: _
2326
- } = Yl({
2331
+ } = Hl({
2327
2332
  search: Z(e, "search"),
2328
2333
  searchMap: Z(e, "searchMap"),
2329
2334
  params: Z(e, "params"),
@@ -2331,22 +2336,22 @@ const ra = {
2331
2336
  setPagination: W
2332
2337
  }), {
2333
2338
  selectedKey: Xe,
2334
- selectedItem: Ft,
2335
- changeRowKey: Rt,
2339
+ selectedItem: Rt,
2340
+ changeRowKey: Pt,
2336
2341
  selectRowKey: Je,
2337
2342
  selectAllRowKey: Qe,
2338
2343
  syncSelectedRows: Ze,
2339
2344
  removeRowKeys: et,
2340
- clearAllRowKeys: Pt
2341
- } = Nl(Z(e, "rowKey"), Z(e, "rowSelection")), Bt = zl(e), {
2345
+ clearAllRowKeys: Bt
2346
+ } = Kl(Z(e, "rowKey"), Z(e, "rowSelection")), It = Yl(e), {
2342
2347
  reload: Ae,
2343
- reSetDataList: It,
2344
- changeDataValue: Ot,
2348
+ reSetDataList: Ot,
2349
+ changeDataValue: kt,
2345
2350
  isTreeDataRef: tt,
2346
- dataSource: Se,
2351
+ dataSource: we,
2347
2352
  handleTableChange: lt
2348
- } = Kl({
2349
- ...Bt,
2353
+ } = Ll({
2354
+ ...It,
2350
2355
  waitRequest: c
2351
2356
  }, {
2352
2357
  loading: Y,
@@ -2354,142 +2359,139 @@ const ra = {
2354
2359
  setPagination: W,
2355
2360
  removeRowKeys: et,
2356
2361
  syncSelectedRows: Ze,
2357
- setLoading: N,
2358
- setColumns: M,
2362
+ setLoading: E,
2363
+ setColumns: N,
2359
2364
  columns: y,
2360
- formParamsRef: z,
2365
+ formParamsRef: K,
2361
2366
  onBeforeSearchSubmit: e.onBeforeSearchSubmit,
2362
- hasCustomRender: p(() => ye(e.customRender || (l == null ? void 0 : l.customRender)))
2363
- }, n), we = p(() => e.options ? {
2364
- ...ha,
2365
- ...X(e.options) ? e.options : {}
2366
- } : !1), kt = p(() => ({
2367
+ hasCustomRender: T(() => be(e.customRender || (l == null ? void 0 : l.customRender)))
2368
+ }, n), Te = T(() => e.options ? {
2369
+ ...ga,
2370
+ ...J(e.options) ? e.options : {}
2371
+ } : !1), Dt = T(() => ({
2367
2372
  size: S(V),
2368
2373
  scroll: S(t),
2369
- dataSource: S(Se),
2374
+ dataSource: S(we),
2370
2375
  pagination: S(D),
2371
2376
  virtualScroll: R.value,
2372
- columns: S(y).filter((v) => v.show || v.show === void 0)
2373
- })), at = p(() => {
2377
+ columns: S(y).filter((m) => m.show || m.show === void 0)
2378
+ })), at = T(() => {
2374
2379
  var F, I;
2375
- const v = X(e.loading) ? Ee(e.loading, "spinning") : {};
2376
- return !v.indicator && ((F = m == null ? void 0 : m.indicator) != null && F.value) && (v.indicator = (I = m == null ? void 0 : m.indicator) == null ? void 0 : I.value), {
2377
- spinning: e.showLoading ? ye(L.value) : !1,
2378
- ...v
2380
+ const m = J(e.loading) ? Ee(e.loading, "spinning") : {};
2381
+ return !m.indicator && ((F = v == null ? void 0 : v.indicator) != null && F.value) && (m.indicator = (I = v == null ? void 0 : v.indicator) == null ? void 0 : I.value), {
2382
+ spinning: e.showLoading ? be(L.value) : !1,
2383
+ ...m
2379
2384
  };
2380
- }), nt = p(() => {
2385
+ }), nt = T(() => {
2381
2386
  var j;
2382
- let v;
2387
+ let m;
2383
2388
  const F = S(x).direction === "rtl" ? "bottomLeft" : "right", I = (j = S(D)) == null ? void 0 : j.position;
2384
2389
  if (I !== null && Array.isArray(I)) {
2385
- const A = I.find((Q) => Q.includes("top")), K = I.find((Q) => Q.includes("bottom")), de = I.every((Q) => `${Q}` == "none");
2386
- !A && !K && !de && (v = F), A && (v = A.toLowerCase().replace("top", "")), K && (v = K.toLowerCase().replace("bottom", ""));
2390
+ const M = I.find((X) => X.includes("top")), A = I.find((X) => X.includes("bottom")), se = I.every((X) => `${X}` == "none");
2391
+ !M && !A && !se && (m = F), M && (m = M.toLowerCase().replace("top", "")), A && (m = A.toLowerCase().replace("bottom", ""));
2387
2392
  } else
2388
- v = F;
2389
- return v;
2390
- }), ut = async (v) => {
2393
+ m = F;
2394
+ return m;
2395
+ }), ut = async (m) => {
2391
2396
  var F;
2392
- X(e.search) && ((F = e.search) != null && F.showSearch) ? (_({
2393
- ...v,
2397
+ J(e.search) && ((F = e.search) != null && F.showSearch) ? (_({
2398
+ ...m,
2394
2399
  ...e.params || {}
2395
- }), await Ae()) : _(v);
2396
- }, Dt = async (v, F) => {
2397
- F ? (n("reset", v), e.request && await ut(v)) : e.request ? (n("submit", v), await ut(v)) : n("submit", v);
2398
- }, it = (v, F, I, j) => {
2399
- W(ot(v, ["current", "pageSize"])), lt(v, F, I, j);
2400
- }, jt = (v, F) => {
2400
+ }), await Ae()) : _(m);
2401
+ }, jt = async (m, F) => {
2402
+ F ? (n("reset", m), e.request && await ut(m)) : e.request ? (n("submit", m), await ut(m)) : n("submit", m);
2403
+ }, it = (m, F, I, j) => {
2404
+ W(rt(m, ["current", "pageSize"])), lt(m, F, I, j);
2405
+ }, Mt = (m, F) => {
2401
2406
  var I;
2402
2407
  W({
2403
- current: v,
2408
+ current: m,
2404
2409
  pageSize: F
2405
2410
  }), lt({
2406
- current: v,
2411
+ current: m,
2407
2412
  pageSize: F,
2408
2413
  total: D.value && ((I = D.value) == null ? void 0 : I.total) || 0
2409
2414
  }, {}, {});
2410
- }, Mt = (v) => {
2411
- n("expandedRowsChange", v);
2412
- }, Nt = (v, F) => {
2413
- n("expand", v, F);
2414
- }, Et = (v, F) => w(v, F), zt = (v, F, I) => {
2415
- const j = I.align === "center" ? "top" : I.align === "left" || !I.align ? "topLeft" : "topRight";
2416
- return F && I.copyable ? r(ml.Paragraph, {
2417
- class: `${i}-copyable`,
2418
- style: {
2419
- margin: "0",
2420
- width: "100%",
2421
- padding: "0"
2422
- },
2423
- copyable: !0
2415
+ }, Nt = (m) => {
2416
+ n("expandedRowsChange", m);
2417
+ }, Et = (m, F) => {
2418
+ n("expand", m, F);
2419
+ }, zt = (m, F) => w(m, F), Kt = (m, F, I) => {
2420
+ const j = I.align === "center" ? "top" : I.align === "left" || !I.align ? "topLeft" : "topRight", M = ce(m) ? m == null ? void 0 : m.children : m;
2421
+ return F && I.copyable ? r("div", {
2422
+ class: `${i}-copyable`
2423
+ }, [r(ee, {
2424
+ title: M,
2425
+ placement: j
2424
2426
  }, {
2425
- default: () => [r(ee, {
2426
- title: v,
2427
- placement: j
2428
- }, {
2429
- default: () => [r("div", {
2430
- class: `${i}-ellipsis`
2431
- }, [v])]
2432
- })]
2433
- }) : F && !I.copyable ? r(ee, {
2434
- title: v,
2427
+ default: () => [r("div", {
2428
+ class: `${i}-ellipsis`
2429
+ }, [m])]
2430
+ }), r(vl, {
2431
+ class: `${i}-copyable-icon`,
2432
+ onClick: () => {
2433
+ jl(M), Fl.success("复制成功");
2434
+ }
2435
+ }, null)]) : F && !I.copyable ? r(ee, {
2436
+ title: M,
2435
2437
  placement: j
2436
2438
  }, {
2437
- default: () => [tt.value ? v : r("div", {
2439
+ default: () => [tt.value ? m : r("div", {
2438
2440
  class: `${i}-ellipsis`
2439
- }, [v])]
2440
- }) : v;
2441
+ }, [m])]
2442
+ }) : m;
2441
2443
  };
2442
2444
  function st() {
2443
- var I, j, A, K, de;
2444
- const v = ge(l, e, "emptyText");
2445
- if (v !== !1 && ((I = m == null ? void 0 : m.emptyText) == null ? void 0 : I.value) !== !1) {
2446
- const Q = ((j = e.emptyTextProps) == null ? void 0 : j.extraProps) || {}, pe = v || ((A = m == null ? void 0 : m.emptyText) == null ? void 0 : A.value), Te = me(pe), ve = Te ? yt(pe, Q) : gt(pe || []);
2445
+ var I, j, M, A, se;
2446
+ const m = ye(l, e, "emptyText");
2447
+ if (m !== !1 && ((I = v == null ? void 0 : v.emptyText) == null ? void 0 : I.value) !== !1) {
2448
+ const X = ((j = e.emptyTextProps) == null ? void 0 : j.extraProps) || {}, he = m || ((M = v == null ? void 0 : v.emptyText) == null ? void 0 : M.value), pe = ce(he), ge = pe ? bt(he, X) : yt(he || []);
2447
2449
  return r("div", {
2448
- class: je(`${i}-empty-text`, f.value, (K = e.emptyTextProps) == null ? void 0 : K.class),
2449
- style: (de = e.emptyTextProps) == null ? void 0 : de.style
2450
- }, [Te ? ve : be(ve) ? ve.map((Oe) => qe(Oe, Q)) : r(vl, null, null)]);
2450
+ class: je(`${i}-empty-text`, f.value, (A = e.emptyTextProps) == null ? void 0 : A.class),
2451
+ style: (se = e.emptyTextProps) == null ? void 0 : se.style
2452
+ }, [pe ? ge : Ce(ge) ? ge.map((Oe) => qe(Oe, X)) : r(Rl, null, null)]);
2451
2453
  }
2452
2454
  return null;
2453
2455
  }
2454
- const Kt = () => {
2456
+ const At = () => {
2455
2457
  var F;
2456
- const v = ht(l, e, "customRender");
2457
- if (v) {
2458
- if ((F = Se.value) != null && F.length) {
2459
- const I = le(S(Se));
2460
- return v == null ? void 0 : v({
2458
+ const m = mt(l, e, "customRender");
2459
+ if (m) {
2460
+ if ((F = we.value) != null && F.length) {
2461
+ const I = le(S(we));
2462
+ return m == null ? void 0 : m({
2461
2463
  dataSource: I,
2462
- currentData: Ol(I, D.value)
2464
+ currentData: Dl(I, D.value)
2463
2465
  });
2464
2466
  }
2465
2467
  return st();
2466
2468
  }
2467
2469
  return r(Ne, null, null);
2468
- }, At = (v) => {
2469
- var A, K;
2470
- const F = ge(l, e, "headerTitle"), I = ge(l, e, "titleTip"), j = ge(l, e, "toolBarBtn");
2471
- return r(ca, {
2470
+ }, Yt = (m) => {
2471
+ var M, A;
2472
+ const F = ye(l, e, "headerTitle"), I = ye(l, e, "titleTip"), j = ye(l, e, "toolBarBtn");
2473
+ return r(ha, {
2472
2474
  headerTitle: F,
2473
2475
  titleTip: I,
2474
2476
  titleTipText: e.titleTipText,
2475
- options: ae(we.value) ? we.value : {
2476
- ...we.value,
2477
- setting: v ? !1 : (A = we.value) == null ? void 0 : A.setting,
2478
- density: v ? !1 : (K = we.value) == null ? void 0 : K.density
2477
+ options: ae(Te.value) ? Te.value : {
2478
+ ...Te.value,
2479
+ setting: m ? !1 : (M = Te.value) == null ? void 0 : M.setting,
2480
+ density: m ? !1 : (A = Te.value) == null ? void 0 : A.density
2479
2481
  },
2480
- settingExtra: ge(l, e, "settingExtra"),
2481
- optionsExtra: ge(l, e, "optionsExtra"),
2482
+ settingExtra: ye(l, e, "settingExtra"),
2483
+ optionsExtra: ye(l, e, "optionsExtra"),
2482
2484
  toolBarBtn: j
2483
2485
  }, null);
2484
2486
  };
2485
- return Gl({
2487
+ return Xl({
2486
2488
  tableSize: V,
2487
2489
  columns: y,
2488
2490
  cacheColumns: O,
2489
2491
  isMobile: P,
2490
2492
  action: {
2491
2493
  setTableSize: ue,
2492
- reload: (v) => Ae(v),
2494
+ reload: (m) => Ae(m),
2493
2495
  toggle: g
2494
2496
  },
2495
2497
  settingsAction: {
@@ -2498,33 +2500,33 @@ const ra = {
2498
2500
  operationType: Be,
2499
2501
  setColumnsMap: ie,
2500
2502
  sortKeyColumns: Ie,
2501
- cacheColumnsMap: xe,
2503
+ cacheColumnsMap: Se,
2502
2504
  setSortKeyColumns: U
2503
2505
  },
2504
2506
  setPagination: W,
2505
- changeColumns: E,
2507
+ changeColumns: z,
2506
2508
  slots: l
2507
2509
  }), o({
2508
2510
  formRef: () => ({
2509
- getFormState: () => S(z),
2511
+ getFormState: () => S(K),
2510
2512
  getFormInnerState: () => {
2511
- var v;
2512
- return ((v = a.value) == null ? void 0 : v.getFormState()) || {};
2513
+ var m;
2514
+ return ((m = a.value) == null ? void 0 : m.getFormState()) || {};
2513
2515
  },
2514
- restFormState: (v) => {
2516
+ restFormState: (m) => {
2515
2517
  var F;
2516
- c.value = !0, v && (v == null || v()), (F = a.value) == null || F.resetForm(!1), c.value = !1;
2518
+ c.value = !0, m && (m == null || m()), (F = a.value) == null || F.resetForm(!1), c.value = !1;
2517
2519
  }
2518
2520
  }),
2519
2521
  actionRef: () => ({
2520
2522
  loading: L,
2521
- dataSource: Se,
2522
- pageState: J,
2523
+ dataSource: we,
2524
+ pageState: Q,
2523
2525
  pagination: D.value,
2524
- selectedKey: p(() => Xe.value),
2525
- selectedItem: p(() => Ft.value),
2526
+ selectedKey: T(() => Xe.value),
2527
+ selectedItem: T(() => Rt.value),
2526
2528
  rowsSelection: {
2527
- clear: Pt,
2529
+ clear: Bt,
2528
2530
  select: Je,
2529
2531
  remove: et,
2530
2532
  sync: Ze,
@@ -2532,22 +2534,22 @@ const ra = {
2532
2534
  },
2533
2535
  reload: Ae,
2534
2536
  getLoadingStatus: () => S(Y),
2535
- reloadAndReset: async (v) => {
2537
+ reloadAndReset: async (m) => {
2536
2538
  var F, I, j;
2537
2539
  c.value = !0, W({
2538
2540
  current: 1,
2539
- pageSize: (J == null ? void 0 : J.pageSize) || 10
2540
- }), v != null && v.callBack && (v != null && v.wait ? await ((F = v == null ? void 0 : v.callBack) == null ? void 0 : F.call(v)) : (I = v == null ? void 0 : v.callBack) == null || I.call(v)), (j = a.value) == null || j.resetForm(!1), c.value = !1;
2541
+ pageSize: (Q == null ? void 0 : Q.pageSize) || 10
2542
+ }), m != null && m.callBack && (m != null && m.wait ? await ((F = m == null ? void 0 : m.callBack) == null ? void 0 : F.call(m)) : (I = m == null ? void 0 : m.callBack) == null || I.call(m)), (j = a.value) == null || j.resetForm(!1), c.value = !1;
2541
2543
  },
2542
- reSetDataList: It,
2544
+ reSetDataList: Ot,
2543
2545
  setPageAndReload: it,
2544
2546
  setPagination: W,
2545
- setData: Ot,
2546
- setLoading: N
2547
+ setData: kt,
2548
+ setLoading: E
2547
2549
  })
2548
2550
  }), () => {
2549
2551
  var F, I;
2550
- const v = ye(e.customRender || l.customRender);
2552
+ const m = be(e.customRender || l.customRender);
2551
2553
  return d(r("div", {
2552
2554
  ref: s,
2553
2555
  class: je([{
@@ -2561,66 +2563,67 @@ const ra = {
2561
2563
  style: u.style
2562
2564
  }, [r("div", {
2563
2565
  class: [`${i}-content`, f.value]
2564
- }, [(te.value.length > 0 || ye(l.search)) && r(pt, {
2566
+ }, [(te.value.length > 0 || be(l.search)) && r(pt, {
2565
2567
  ref: a,
2566
2568
  search: e.search,
2567
2569
  modal: e.modalScroll,
2568
2570
  searchMap: te.value,
2569
2571
  prefixCls: i,
2570
2572
  loading: !!S(Y),
2571
- onSearch: Dt,
2572
- defaultParams: ce
2573
+ onSearch: jt,
2574
+ defaultParams: fe
2573
2575
  }, {
2574
2576
  default: l.search ? () => {
2575
2577
  var j;
2576
2578
  return (j = l.search) == null ? void 0 : j.call(l);
2577
2579
  } : null
2578
- }), !R.value && At(v), v ? r(_e, at.value, {
2580
+ }), !R.value && Yt(m), m ? r(_e, at.value, {
2579
2581
  default: () => {
2580
- var j, A, K;
2582
+ var j, M, A;
2581
2583
  return [r("div", {
2582
2584
  class: `${i}-wrapper ${f.value}`
2583
2585
  }, [r("div", {
2584
2586
  class: je(`${i}-list`, f.value, (j = e.tableProps) == null ? void 0 : j.class),
2585
- style: (A = e.tableProps) == null ? void 0 : A.style
2586
- }, [Kt()]), e.pagination !== !1 && ((K = Se.value) == null ? void 0 : K.length) > 0 && r(fl, q({
2587
+ style: (M = e.tableProps) == null ? void 0 : M.style
2588
+ }, [At()]), e.pagination !== !1 && ((A = we.value) == null ? void 0 : A.length) > 0 && r(pl, q({
2587
2589
  class: {
2588
2590
  [`${i}-pagination ${f.value}`]: !0,
2589
2591
  [`${i}-pagination-${nt.value} ${f.value}`]: !!nt.value
2590
2592
  }
2591
- }, fe(S(D)), {
2592
- onChange: jt
2593
+ }, me(S(D)), {
2594
+ onChange: Mt
2593
2595
  }), null)])];
2594
2596
  }
2595
- }) : r(hl, q(ot(e, Object.keys(wt)), kt.value, {
2597
+ }) : r($l, q(rt(e, Object.keys(Tt)), Dt.value, {
2596
2598
  style: (F = e.tableProps) == null ? void 0 : F.style,
2597
2599
  class: (I = e.tableProps) == null ? void 0 : I.class,
2598
2600
  loading: at.value,
2599
- rowKey: (j) => j[e.rowKey || "sortIndex"],
2601
+ rowKey: (j) => j[e.rowKey],
2600
2602
  transformCellText: (j) => {
2601
- var ve, Oe;
2603
+ var pe, ge, Oe;
2604
+ e.transformCellText && typeof e.transformCellText && ((pe = e.transformCellText) == null || pe.call(e, j));
2602
2605
  const {
2603
- text: A,
2604
- column: K
2605
- } = j, de = be(A) ? A == null ? void 0 : A[0] : A;
2606
- if (me(de)) return A;
2607
- const {
2608
- value: Q,
2609
- success: pe
2610
- } = Ut(de, (K == null ? void 0 : K.columnEmptyText) || (e == null ? void 0 : e.columnEmptyText) || ""), Te = Il(Q, ((Oe = (ve = e.columns) == null ? void 0 : ve.find((Yt) => Yt.key === K.key)) == null ? void 0 : Oe.valueType) || K.valueType, i, f.value);
2611
- return K != null && K.ellipsis ? zt(Te, pe, K) : Te;
2606
+ text: M,
2607
+ column: A
2608
+ } = j, se = Ce(M) ? M == null ? void 0 : M[0] : M;
2609
+ let X = !0, he = se;
2610
+ if (!ce(se)) {
2611
+ const ot = Xt(se, (A == null ? void 0 : A.columnEmptyText) || (e == null ? void 0 : e.columnEmptyText) || "");
2612
+ X = ot.success, he = kl(ot.value, ((Oe = (ge = e.columns) == null ? void 0 : ge.find((Lt) => Lt.key === A.key)) == null ? void 0 : Oe.valueType) || A.valueType, i, f.value);
2613
+ }
2614
+ return A != null && A.ellipsis ? Kt(he, X, A) : he;
2612
2615
  },
2613
2616
  rowSelection: e.rowSelection ? {
2614
2617
  ...Ee(e.rowSelection, ["onSelect", "onSelectAll", "onChange", "selectedRowKeys"]),
2615
2618
  selectedRowKeys: Xe.value,
2616
2619
  onSelect: Je,
2617
2620
  onSelectAll: Qe,
2618
- onChange: Rt
2621
+ onChange: Pt
2619
2622
  } : void 0,
2620
2623
  onChange: it,
2621
- onExpandedRowsChange: Mt,
2622
- onExpand: Nt,
2623
- onResizeColumn: (j, A) => Et(j, A)
2624
+ onExpandedRowsChange: Nt,
2625
+ onExpand: Et,
2626
+ onResizeColumn: (j, M) => zt(j, M)
2624
2627
  }), {
2625
2628
  ...l,
2626
2629
  emptyText: () => st()
@@ -2632,6 +2635,6 @@ He.install = (e) => (e.component(He.name, He), e);
2632
2635
  export {
2633
2636
  He as GProTable,
2634
2637
  He as default,
2635
- he as proTableProps,
2636
- Ra as useTable
2638
+ ve as proTableProps,
2639
+ Ia as useTable
2637
2640
  };