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

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