@gx-design-vue/pro-table 0.2.0-beta.87 → 0.2.0-beta.89

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