@gx-design-vue/pro-table 0.0.2-rc.5 → 0.0.2-rc.7

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.
@@ -1,11 +1,11 @@
1
- import { ref as I, watchEffect as ae, computed as k, unref as s, reactive as le, watch as Q, onUnmounted as qe, onDeactivated as gt, provide as yt, inject as Ct, defineComponent as xe, createVNode as u, Fragment as Pe, mergeProps as fe, resolveComponent as ye, isVNode as he, nextTick as bt, renderSlot as pt, createTextVNode as ce, cloneVNode as xt, toRef as W, onMounted as St, toRaw as ke } from "vue";
1
+ import { ref as I, watchEffect as ae, computed as k, unref as s, reactive as le, watch as Q, onUnmounted as Ue, onDeactivated as yt, provide as Ct, inject as bt, defineComponent as pe, createVNode as u, Fragment as Oe, mergeProps as fe, isVNode as he, nextTick as pt, renderSlot as xt, createTextVNode as ce, cloneVNode as St, toRef as W, onMounted as wt, toRaw as Re } from "vue";
2
2
  import { cloneDeep as V, omit as Ve } from "lodash-es";
3
- import { useFullscreen as Ue } from "@vueuse/core";
4
- import { Form as Ae, Grid as Ie, Space as te, Button as He, TimePicker as wt, DatePicker as Ge, TreeSelect as Tt, Select as Rt, Input as kt, Tree as Ft, Tooltip as q, Popover as Dt, Checkbox as Ot, Dropdown as Pt, Menu as Ce, Spin as Mt, Pagination as Et, Table as It, Typography as Nt } from "ant-design-vue";
5
- import { isBoolean as se, isFunction as pe, arrayRepeat as jt, runFunction as zt, handleCurrentPage as Bt, getSortIndex as $t, handleFormDefaultValue as Yt, genColumnKey as Je, compareToMax as Kt, isNumber as Qe, isString as Lt, isArray as We, getRandomNumber as Me, handleShowIndex as Vt, isObject as At, hanndleField as Ht } from "@gx-design-vue/pro-utils";
6
- import { tryOnUnmounted as Wt, useMemo as be } from "@gx-design-vue/pro-hooks";
3
+ import { useFullscreen as Ge } from "@vueuse/core";
4
+ import { Form as Ae, Grid as Ie, Space as te, Button as He, TimePicker as Tt, DatePicker as Je, TreeSelect as Rt, Spin as Pe, Select as We, Input as kt, Tree as Ft, Tooltip as q, Popover as Dt, Checkbox as Ot, Dropdown as Pt, Menu as ye, Pagination as Mt, Table as Et, Typography as It } from "ant-design-vue";
5
+ import { isBoolean as se, isFunction as be, arrayRepeat as Nt, runFunction as jt, handleCurrentPage as zt, getSortIndex as Bt, handleFormDefaultValue as $t, genColumnKey as Qe, compareToMax as Yt, isNumber as Xe, isString as Kt, isArray as _e, getRandomNumber as Me, handleShowIndex as Lt, isObject as Vt, hanndleField as At } from "@gx-design-vue/pro-utils";
6
+ import { tryOnUnmounted as Ht, useMemo as Ce } from "@gx-design-vue/pro-hooks";
7
7
  import _ from "dayjs";
8
- import { UpOutlined as _t, DownOutlined as qt, SearchOutlined as Ut, VerticalAlignTopOutlined as Gt, VerticalAlignMiddleOutlined as Jt, VerticalAlignBottomOutlined as Qt, SettingOutlined as Xe, FullscreenExitOutlined as Xt, FullscreenOutlined as Zt, ColumnHeightOutlined as en, InfoCircleOutlined as tn, ReloadOutlined as nn } from "@ant-design/icons-vue";
8
+ import { UpOutlined as Wt, DownOutlined as _t, VerticalAlignTopOutlined as qt, VerticalAlignMiddleOutlined as Ut, VerticalAlignBottomOutlined as Gt, SettingOutlined as Ze, FullscreenExitOutlined as Jt, FullscreenOutlined as Qt, ColumnHeightOutlined as Xt, InfoCircleOutlined as Zt, ReloadOutlined as en } from "@ant-design/icons-vue";
9
9
  function Ee() {
10
10
  return Ee = Object.assign ? Object.assign.bind() : function(e) {
11
11
  for (var a = 1; a < arguments.length; a++) {
@@ -16,10 +16,10 @@ function Ee() {
16
16
  return e;
17
17
  }, Ee.apply(this, arguments);
18
18
  }
19
- function ln(e, a) {
19
+ function tn(e, a) {
20
20
  process.env.NODE_ENV !== "production" && !e && console !== void 0 && console.error("Warning: ".concat(a));
21
21
  }
22
- const an = {
22
+ const nn = {
23
23
  prefixCls: { type: String, default: void 0 },
24
24
  columns: { type: Array, default: void 0 },
25
25
  rowKey: { type: [String, Function], default: void 0 },
@@ -132,7 +132,7 @@ const an = {
132
132
  const o = l || (t ? "gx-pro" : "gx");
133
133
  return a || (e ? `${o}-${e}` : o);
134
134
  };
135
- function un(e, a, t = "default") {
135
+ function ln(e, a, t = "default") {
136
136
  return a[t] === !1 ? !1 : a[t] || e[t];
137
137
  }
138
138
  function ie(e, a, t = "default") {
@@ -140,7 +140,7 @@ function ie(e, a, t = "default") {
140
140
  return a[t] === !1 ? !1 : a[t] || ((l = e[t]) == null ? void 0 : l.call(e));
141
141
  }
142
142
  const ne = {
143
- ...an,
143
+ ...nn,
144
144
  rowSelection: {
145
145
  type: Object,
146
146
  default: void 0
@@ -264,7 +264,7 @@ const ne = {
264
264
  onBeforeSearchSubmit: Function,
265
265
  onColumnsStateChange: Function
266
266
  };
267
- function on({ emit: e, loading: a }) {
267
+ function an({ emit: e, loading: a }) {
268
268
  const t = I(a.value);
269
269
  ae(() => {
270
270
  t.value = a.value;
@@ -275,7 +275,7 @@ function on({ emit: e, loading: a }) {
275
275
  }
276
276
  return { getLoading: l, setLoading: o };
277
277
  }
278
- function sn({ size: e, emit: a }) {
278
+ function un({ size: e, emit: a }) {
279
279
  const t = I("middle");
280
280
  ae(() => {
281
281
  t.value = e.value;
@@ -285,7 +285,7 @@ function sn({ size: e, emit: a }) {
285
285
  }
286
286
  return { sizeRef: t, setTableSize: l };
287
287
  }
288
- function rn({
288
+ function on({
289
289
  slots: e,
290
290
  props: a,
291
291
  pagination: t
@@ -305,7 +305,7 @@ function rn({
305
305
  var r;
306
306
  if (se(t.value) && !t.value)
307
307
  return !1;
308
- const d = un(e, s(a), "pageItemRender"), c = pe(d) ? {
308
+ const d = ln(e, s(a), "pageItemRender"), c = be(d) ? {
309
309
  itemRender: ({
310
310
  page: h,
311
311
  type: g,
@@ -340,13 +340,13 @@ function rn({
340
340
  setPagination: i
341
341
  };
342
342
  }
343
- function cn(e, a) {
343
+ function sn(e, a) {
344
344
  const t = I([]), l = I([]);
345
345
  Q(() => {
346
346
  var f;
347
347
  return (f = a.value) == null ? void 0 : f.defaultSelectKeys;
348
348
  }, (f) => {
349
- t.value = jt([...t.value, ...f || []]);
349
+ t.value = Nt([...t.value, ...f || []]);
350
350
  }, {
351
351
  deep: !0,
352
352
  immediate: !0
@@ -380,7 +380,7 @@ function cn(e, a) {
380
380
  changeRowKey: i
381
381
  };
382
382
  }
383
- function dn(e, a) {
383
+ function rn(e, a) {
384
384
  const t = a || 0, l = I(), o = I(e);
385
385
  o.value = e;
386
386
  function i() {
@@ -392,12 +392,12 @@ function dn(e, a) {
392
392
  await o.value(...c);
393
393
  }, t);
394
394
  }
395
- return Wt(i), {
395
+ return Ht(i), {
396
396
  cancel: i,
397
397
  run: d
398
398
  };
399
399
  }
400
- function fn(e) {
400
+ function cn(e) {
401
401
  const a = k(() => e.polling), t = k(() => e.request), l = k(() => e.postData), o = k(() => e.debounceTime), i = k(() => e.waitRequest), d = k(() => e.dataSource);
402
402
  return {
403
403
  polling: a,
@@ -408,17 +408,17 @@ function fn(e) {
408
408
  dataSource: d
409
409
  };
410
410
  }
411
- function hn({ polling: e, request: a, postData: t, dataSource: l, waitRequest: o, debounceTime: i }, { columns: d, getLoading: c, setLoading: f, setColumns: r, removeRowKeys: h, formParamsRef: g, setPagination: y, getPaginationInfo: p, onBeforeSearchSubmit: x }, C) {
412
- const S = I(), T = I(!0), F = I(!1), D = I(!1), O = I([]), B = I(), $ = dn(async (E) => {
411
+ function dn({ polling: e, request: a, postData: t, dataSource: l, waitRequest: o, debounceTime: i }, { columns: d, getLoading: c, setLoading: f, setColumns: r, removeRowKeys: h, formParamsRef: g, setPagination: y, getPaginationInfo: p, onBeforeSearchSubmit: x }, C) {
412
+ const S = I(), T = I(!0), F = I(!1), D = I(!1), O = I([]), B = I(), $ = rn(async (E) => {
413
413
  B.value && clearTimeout(B.value);
414
- const j = await v(E), Y = zt(e.value, j);
414
+ const j = await v(E), Y = jt(e.value, j);
415
415
  Y && !S.value && (B.value = setTimeout(() => {
416
416
  $.run({ ...E, isPolling: Y });
417
417
  }, Math.max(Y, 2e3)));
418
418
  }, i.value || 20);
419
- qe(() => {
419
+ Ue(() => {
420
420
  S.value = !0, clearTimeout(B.value);
421
- }), gt(() => {
421
+ }), yt(() => {
422
422
  S.value = !0, clearTimeout(B.value);
423
423
  }), Q(() => e.value, () => {
424
424
  e.value ? $.run({ isPolling: !0 }) : clearTimeout(B.value);
@@ -441,14 +441,14 @@ function hn({ polling: e, request: a, postData: t, dataSource: l, waitRequest: o
441
441
  const M = (E, j) => {
442
442
  N(E), y(j);
443
443
  }, v = async (E = {}) => {
444
- const { pagination: j, filters: Y, sorter: K, removeKeys: oe = [], isPolling: we = !1 } = E;
445
- if (!s(a) || !pe(s(a)) || s(o) && c.value || F.value)
444
+ const { pagination: j, filters: Y, sorter: K, removeKeys: oe = [], isPolling: Se = !1 } = E;
445
+ if (!s(a) || !be(s(a)) || s(o) && c.value || F.value)
446
446
  return l.value || [];
447
- if (F.value = !0, !we || s(o) || T.value ? f(!0) : m(!0), s(o)) {
447
+ if (F.value = !0, !Se || s(o) || T.value ? f(!0) : m(!0), s(o)) {
448
448
  T.value = !1, F.value = !1;
449
449
  return;
450
450
  }
451
- const { current: ve = 1, pageSize: me = 10, total: Te } = s(p) || {};
451
+ const { current: ve = 1, pageSize: me = 10, total: we } = s(p) || {};
452
452
  try {
453
453
  let X = {};
454
454
  if (se(j) && !j || se(p))
@@ -457,9 +457,9 @@ function hn({ polling: e, request: a, postData: t, dataSource: l, waitRequest: o
457
457
  const L = j || {
458
458
  current: ve,
459
459
  pageSize: me,
460
- total: Te
460
+ total: we
461
461
  };
462
- X.pageNum = Bt(L, oe.length), oe.length && h(oe), X.pageSize = me;
462
+ X.pageNum = zt(L, oe.length), oe.length && h(oe), X.pageSize = me;
463
463
  }
464
464
  const ge = (K == null ? void 0 : K.columnKey) || (K == null ? void 0 : K.field);
465
465
  K && K.order ? r(s(d).map((L) => (L.dataIndex === ge ? L.sortOrder = K.order : L.sortOrder = null, L))) : K && r(s(d).map((L) => (L.dataIndex === ge && (L.sortOrder = null), L)));
@@ -468,10 +468,10 @@ function hn({ polling: e, request: a, postData: t, dataSource: l, waitRequest: o
468
468
  ...E.params,
469
469
  ...g
470
470
  };
471
- x && pe(x) && (re = await x(re, K, Y));
471
+ x && be(x) && (re = await x(re, K, Y));
472
472
  let Z = [];
473
473
  const U = await s(a)(re, K, Y);
474
- return F.value = !1, U && U.success ? (Z = U.data || [], s(t) && pe(s(t)) && (Z = await s(t)(Z) || Z), M(Z || [], {
474
+ return F.value = !1, U && U.success ? (Z = U.data || [], s(t) && be(s(t)) && (Z = await s(t)(Z) || Z), M(Z || [], {
475
475
  total: U.total || 0
476
476
  }), Z) : [];
477
477
  } catch (X) {
@@ -482,28 +482,28 @@ function hn({ polling: e, request: a, postData: t, dataSource: l, waitRequest: o
482
482
  return [];
483
483
  };
484
484
  function N(E) {
485
- O.value = $t(V(E), s(p.value));
485
+ O.value = Bt(V(E), s(p.value));
486
486
  }
487
- function Se({ key: E, params: j }) {
487
+ function xe({ key: E, params: j }) {
488
488
  O.value = O.value.map((Y) => E && j[E] === Y[E] ? { ...Y, ...j } : Y);
489
489
  }
490
490
  return {
491
491
  getDataSourceRef: A,
492
492
  isTreeDataRef: n,
493
493
  reSetDataList: N,
494
- changeDataValue: Se,
494
+ changeDataValue: xe,
495
495
  handleTableChange: w,
496
496
  reload: async (E) => {
497
497
  s(a) ? await $.run({ ...E, isPolling: !1 }) : C("reload");
498
498
  }
499
499
  };
500
500
  }
501
- function vn({ search: e, searchMap: a, params: t, columns: l }) {
501
+ function fn({ search: e, searchMap: a, params: t, columns: l }) {
502
502
  const o = le({}), i = le({}), d = I([]), c = k(() => !!e.value.showSearch);
503
503
  Q(c.value ? [() => a.value, () => l.value] : [() => a.value, () => l.value, () => t.value], () => {
504
504
  let r = {};
505
505
  const h = V(a.value);
506
- l.value && l.value.map((g) => (g.searchConfig && h.push(g.searchConfig), g)), d.value = V(h), r = Yt(h), Object.assign(i, { ...r }), Object.assign(o, {
506
+ l.value && l.value.map((g) => (g.searchConfig && h.push(g.searchConfig), g)), d.value = V(h), r = $t(h), Object.assign(i, { ...r }), Object.assign(o, {
507
507
  ...t.value || {},
508
508
  ...r
509
509
  });
@@ -516,12 +516,12 @@ function vn({ search: e, searchMap: a, params: t, columns: l }) {
516
516
  }
517
517
  return { formDataRef: d, formParamsRef: o, defaultParamsRef: i, setFormParams: f };
518
518
  }
519
- function mn({ columns: e, columnsState: a, changeColumns: t }) {
519
+ function hn({ columns: e, columnsState: a, changeColumns: t }) {
520
520
  const l = I(void 0), o = le({}), i = le({}), d = le({}), c = I([]);
521
521
  Q(() => e.value, () => {
522
522
  var h;
523
523
  (h = s(e)) == null || h.forEach(({ show: g, key: y, fixed: p }, x) => {
524
- const C = Je(y, x);
524
+ const C = Qe(y, x);
525
525
  C && (d[C] = { show: g === void 0 ? !0 : g, fixed: p });
526
526
  });
527
527
  }, {
@@ -556,7 +556,7 @@ function mn({ columns: e, columnsState: a, changeColumns: t }) {
556
556
  setSortKeyColumns: r
557
557
  };
558
558
  }
559
- function gn(e) {
559
+ function vn(e) {
560
560
  const a = k(() => e.draggabled), t = k(() => e.neverScroll), l = k(() => e.autoScroll);
561
561
  return {
562
562
  draggabled: a,
@@ -564,7 +564,7 @@ function gn(e) {
564
564
  autoScroll: l
565
565
  };
566
566
  }
567
- function yn({ scroll: e, columns: a, breakpoint: t, draggabled: l, autoScroll: o, neverScroll: i }) {
567
+ function mn({ scroll: e, columns: a, breakpoint: t, draggabled: l, autoScroll: o, neverScroll: i }) {
568
568
  const d = I([]), c = I([]);
569
569
  Q([
570
570
  () => e.value,
@@ -588,12 +588,12 @@ function yn({ scroll: e, columns: a, breakpoint: t, draggabled: l, autoScroll: o
588
588
  ];
589
589
  });
590
590
  function r(x) {
591
- return x.sort((C, S) => Kt(C, S, "order"));
591
+ return x.sort((C, S) => Yt(C, S, "order"));
592
592
  }
593
593
  function h(x) {
594
594
  return V(x).map((C, S) => {
595
595
  var T;
596
- if (C.dataIndex === "action" || S === x.length - 1 ? C.resizable = !1 : C.resizable = se(C.resizable) ? C.resizable : !!(Qe(C.width) && s(l)), !C.width || s(i))
596
+ if (C.dataIndex === "action" || S === x.length - 1 ? C.resizable = !1 : C.resizable = se(C.resizable) ? C.resizable : !!(Xe(C.width) && s(l)), !C.width || s(i))
597
597
  return C;
598
598
  if (C.dataIndex === "action" && s(o))
599
599
  if (((T = s(e)) == null ? void 0 : T.x) || !s(t))
@@ -639,7 +639,7 @@ function yn({ scroll: e, columns: a, breakpoint: t, draggabled: l, autoScroll: o
639
639
  resizeColumnWidth: g
640
640
  };
641
641
  }
642
- function Cn(e) {
642
+ function gn(e) {
643
643
  const a = k(() => e.scroll), t = k(() => e.autoScroll), l = k(() => e.modalScroll), o = k(() => e.neverScroll), i = k(() => e.rowSelection), d = k(() => e.scrollBreakpoint);
644
644
  return {
645
645
  scroll: a,
@@ -650,10 +650,10 @@ function Cn(e) {
650
650
  scrollBreakpoint: d
651
651
  };
652
652
  }
653
- function bn({ scroll: e, columns: a, autoScroll: t, modalScroll: l, neverScroll: o, rowSelection: i, screensRef: d, innerWidth: c, scrollBreakpoint: f }) {
653
+ function yn({ scroll: e, columns: a, autoScroll: t, modalScroll: l, neverScroll: o, rowSelection: i, screensRef: d, innerWidth: c, scrollBreakpoint: f }) {
654
654
  const r = k(() => {
655
655
  var y, p, x;
656
- return s(f) ? Qe(s(f)) ? c.value > s(f) : Lt(s(f)) ? (y = d.value) == null ? void 0 : y[s(f)] : (p = d.value) == null ? void 0 : p.xl : (x = d.value) == null ? void 0 : x.xl;
656
+ return s(f) ? Xe(s(f)) ? c.value > s(f) : Kt(s(f)) ? (y = d.value) == null ? void 0 : y[s(f)] : (p = d.value) == null ? void 0 : p.xl : (x = d.value) == null ? void 0 : x.xl;
657
657
  }), h = k(() => {
658
658
  let y = 0;
659
659
  const p = s(i) ? 60 : 0, x = 150, C = V(s(a));
@@ -671,10 +671,10 @@ function bn({ scroll: e, columns: a, autoScroll: t, modalScroll: l, neverScroll:
671
671
  } : s(t) ? r.value ? {} : se(r.value) ? { x: s(h) } : {} : {};
672
672
  }), breakpoint: r };
673
673
  }
674
- const Ze = Symbol("table-context"), pn = (e = Symbol(), a) => Ct(e, a || {}), xn = (e) => {
675
- yt(Ze, e);
676
- }, ue = () => pn(Ze, []);
677
- function Sn(e, a) {
674
+ const et = Symbol("table-context"), Cn = (e = Symbol(), a) => bt(e, a || {}), bn = (e) => {
675
+ Ct(et, e);
676
+ }, ue = () => Cn(et, []);
677
+ function pn(e, a) {
678
678
  const t = le({});
679
679
  ae(() => {
680
680
  l();
@@ -698,15 +698,15 @@ function Sn(e, a) {
698
698
  changeFormState: o
699
699
  };
700
700
  }
701
- function wn(e) {
701
+ function xn(e) {
702
702
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !he(e);
703
703
  }
704
704
  const {
705
- useBreakpoint: Tn
705
+ useBreakpoint: Sn
706
706
  } = Ie, {
707
- MonthPicker: Rn,
708
- RangePicker: kn
709
- } = Ge, et = xe({
707
+ MonthPicker: wn,
708
+ RangePicker: Tn
709
+ } = Je, tt = pe({
710
710
  name: "ProTableForm",
711
711
  props: {
712
712
  search: ne.search,
@@ -724,13 +724,13 @@ const {
724
724
  emit: a,
725
725
  slots: t
726
726
  }) {
727
- const l = Tn(), {
727
+ const l = Sn(), {
728
728
  setPagination: o
729
729
  } = ue(), {
730
730
  formState: i,
731
731
  resetFormState: d,
732
732
  changeFormState: c
733
- } = Sn(e.defaultParams || {}, e.searchMap || []), f = I(!1), r = k(() => !!e.search.showSearch), h = k(() => e.search.showReset === void 0 ? r.value : e.search.showReset), g = [{
733
+ } = pn(e.defaultParams || {}, e.searchMap || []), f = I(!1), r = k(() => !!e.search.showSearch), h = k(() => e.search.showReset === void 0 ? r.value : e.search.showReset), g = [{
734
734
  value: "xxl",
735
735
  span: 4
736
736
  }, {
@@ -797,9 +797,9 @@ const {
797
797
  }
798
798
  e.search.showSearch || m.valueType === "text" || (m.valueType === "treeSelect" || m.valueType, T());
799
799
  }, T = (n) => {
800
- bt(() => {
800
+ pt(() => {
801
801
  const m = V(i), w = e.searchMap.find((N) => N.valueType === "text") || "", M = e.searchMap.find((N) => N.valueType === "dateRange") || "", v = e.searchMap.find((N) => N.valueType === "treeSelect") || "";
802
- w && (m[w.name] = i[w.name] || w.initialValue || ""), M && (m[M.rangeStartName || "start"] = m[M.name] ? m[M.name][0] : "", m[M.rangeEndName || "end"] = m[M.name] ? m[M.name][1] : "", delete m[M.name]), v && (We(i[v.name]) && (m[v.name] = i[v.name].length ? i[v.name].map((N) => N[v.valueKey === "text" ? "label" : "value"]).join() : ""), v && We(m[v.name]) && (m[v.name] = m[v.name].length ? m[v.name].map((N) => N[v.valueKey === "text" ? "label" : "value"]) : "")), (!r.value || n) && a("search", m);
802
+ w && (m[w.name] = i[w.name] || w.initialValue || ""), M && (m[M.rangeStartName || "start"] = m[M.name] ? m[M.name][0] : "", m[M.rangeEndName || "end"] = m[M.name] ? m[M.name][1] : "", delete m[M.name]), v && (_e(i[v.name]) && (m[v.name] = i[v.name].length ? i[v.name].map((N) => N[v.valueKey === "text" ? "label" : "value"]).join() : ""), v && _e(m[v.name]) && (m[v.name] = m[v.name].length ? m[v.name].map((N) => N[v.valueKey === "text" ? "label" : "value"]) : "")), (!r.value || n) && a("search", m);
803
803
  });
804
804
  }, F = () => {
805
805
  d(), o({
@@ -829,7 +829,7 @@ const {
829
829
  }, {
830
830
  default: () => [D(), w && u("a", {
831
831
  onClick: () => x(!m)
832
- }, [m ? "\u6536\u8D77" : "\u5C55\u5F00", e.search.collapseRender ? e.search.collapseRender() : m ? u(_t, null, null) : u(qt, null, null)])]
832
+ }, [m ? "\u6536\u8D77" : "\u5C55\u5F00", e.search.collapseRender ? e.search.collapseRender() : m ? u(Wt, null, null) : u(_t, null, null)])]
833
833
  })]), B = (n) => {
834
834
  var M;
835
835
  let m, w;
@@ -842,15 +842,12 @@ const {
842
842
  value: i[n.name],
843
843
  placeholder: n.placeholder || "\u8BF7\u8F93\u5165",
844
844
  allowClear: n.allowClear || n.allowClear === !1 ? n.allowClear : !0,
845
- enterButton: u(ye("a-button"), null, {
846
- default: () => [u(Ut, null, null)]
847
- }),
848
845
  onChange: (v) => S(v.target.value, n),
849
846
  onSearch: (v) => T()
850
847
  }, null);
851
848
  break;
852
849
  case "select":
853
- w = u(Rt, {
850
+ w = u(We, {
854
851
  style: {
855
852
  width: "100%"
856
853
  },
@@ -860,11 +857,11 @@ const {
860
857
  showSearch: n.showSearch,
861
858
  allowClear: n.allowClear || n.allowClear === !1 ? n.allowClear : !0,
862
859
  getPopupContainer: (v) => v && v.parentNode ? v.parentNode : v,
863
- notFoundContent: n.loading === void 0 ? void 0 : n.loading ? u(ye("a-spin"), {
860
+ notFoundContent: n.loading === void 0 ? void 0 : n.loading ? u(Pe, {
864
861
  size: "small"
865
862
  }, null) : void 0,
866
863
  onChange: (v) => S(v, n)
867
- }, wn(m = n.valueEnum.map((v) => u(ye("a-select-option"), {
864
+ }, xn(m = n.valueEnum.map((v) => u(We.Option, {
868
865
  key: v.value,
869
866
  value: v.value
870
867
  }, {
@@ -874,7 +871,7 @@ const {
874
871
  });
875
872
  break;
876
873
  case "treeSelect":
877
- w = u(Tt, fe({
874
+ w = u(Rt, fe({
878
875
  style: {
879
876
  width: "100%"
880
877
  },
@@ -883,14 +880,14 @@ const {
883
880
  allowClear: n.allowClear || n.allowClear === !1 ? n.allowClear : !0,
884
881
  treeData: n.valueEnum,
885
882
  getPopupContainer: (v) => v && v.parentNode ? v.parentNode : v,
886
- notFoundContent: n.loading === void 0 ? void 0 : n.loading ? u(ye("a-spin"), {
883
+ notFoundContent: n.loading === void 0 ? void 0 : n.loading ? u(Pe, {
887
884
  size: "small"
888
885
  }, null) : void 0,
889
886
  onChange: (v) => S(v, n)
890
887
  }, n.field || {}), null);
891
888
  break;
892
889
  case "date":
893
- w = u(Ge, {
890
+ w = u(Je, {
894
891
  style: {
895
892
  width: "100%"
896
893
  },
@@ -906,7 +903,7 @@ const {
906
903
  }, null);
907
904
  break;
908
905
  case "dateMonth":
909
- w = u(Rn, {
906
+ w = u(wn, {
910
907
  style: {
911
908
  width: "100%"
912
909
  },
@@ -918,7 +915,7 @@ const {
918
915
  }, null);
919
916
  break;
920
917
  case "dateRange":
921
- w = u(kn, {
918
+ w = u(Tn, {
922
919
  style: {
923
920
  width: "100%"
924
921
  },
@@ -932,7 +929,7 @@ const {
932
929
  }, null);
933
930
  break;
934
931
  case "time":
935
- w = u(wt, {
932
+ w = u(Tt, {
936
933
  style: {
937
934
  width: "100%"
938
935
  },
@@ -962,7 +959,7 @@ const {
962
959
  const v = {
963
960
  width: `${(100 - (y.value - 1) * 2) / y.value}%`
964
961
  }, N = C(M, y.value, v);
965
- return n.length < y.value || f.value ? u(Pe, null, [$({
962
+ return n.length < y.value || f.value ? u(Oe, null, [$({
966
963
  formItemStyle: N,
967
964
  item: w
968
965
  }), M === n.length - 1 && O({
@@ -972,7 +969,7 @@ const {
972
969
  },
973
970
  advanced: f.value,
974
971
  showAdvanced: f.value
975
- })]) : u(Pe, null, [M < y.value - 1 && $({
972
+ })]) : u(Oe, null, [M < y.value - 1 && $({
976
973
  formItemStyle: N,
977
974
  item: w
978
975
  }), M === y.value - 1 && y.value - 1 === 0 && $({
@@ -1003,8 +1000,8 @@ const {
1003
1000
  })]);
1004
1001
  }
1005
1002
  });
1006
- et.inheritAttrs = !1;
1007
- function Fn(e, a) {
1003
+ tt.inheritAttrs = !1;
1004
+ function Rn(e, a) {
1008
1005
  for (var t = Ee({}, e), l = 0; l < a.length; l += 1) {
1009
1006
  var o = a[l];
1010
1007
  delete t[o];
@@ -1018,7 +1015,7 @@ const de = (e) => {
1018
1015
  return (l = a.value) == null ? void 0 : l.call(a, ...t);
1019
1016
  };
1020
1017
  };
1021
- const Fe = ({
1018
+ const ke = ({
1022
1019
  title: e,
1023
1020
  show: a,
1024
1021
  treeKey: t,
@@ -1054,7 +1051,7 @@ const Fe = ({
1054
1051
  }, [(c = o.default) == null ? void 0 : c.call(o)])];
1055
1052
  }
1056
1053
  }) : null;
1057
- }, Dn = ({
1054
+ }, kn = ({
1058
1055
  treeKey: e,
1059
1056
  title: a,
1060
1057
  className: t,
@@ -1066,27 +1063,27 @@ const Fe = ({
1066
1063
  cacheColumns: i
1067
1064
  } = ue(), d = ((r = s(i).find((h) => h.uuid === e)) == null ? void 0 : r.key) || "", c = k(() => d === "action" && (o == null ? void 0 : o.value)), f = u("span", {
1068
1065
  class: `${t}-list-item-option`
1069
- }, [u(Fe, {
1066
+ }, [u(ke, {
1070
1067
  treeKey: e,
1071
1068
  fixed: "left",
1072
1069
  title: "\u56FA\u5B9A\u5728\u5217\u9996",
1073
1070
  show: l !== "left" && !c.value
1074
1071
  }, {
1075
- default: () => [u(Gt, null, null)]
1076
- }), u(Fe, {
1072
+ default: () => [u(qt, null, null)]
1073
+ }), u(ke, {
1077
1074
  treeKey: e,
1078
1075
  fixed: void 0,
1079
1076
  title: "\u4E0D\u56FA\u5B9A",
1080
1077
  show: !!l && !c.value
1081
1078
  }, {
1082
- default: () => [u(Jt, null, null)]
1083
- }), u(Fe, {
1079
+ default: () => [u(Ut, null, null)]
1080
+ }), u(ke, {
1084
1081
  treeKey: e,
1085
1082
  fixed: "right",
1086
1083
  title: "\u56FA\u5B9A\u5728\u5217\u5C3E",
1087
1084
  show: l !== "right"
1088
1085
  }, {
1089
- default: () => [u(Qt, null, null)]
1086
+ default: () => [u(Gt, null, null)]
1090
1087
  })]);
1091
1088
  return u("span", {
1092
1089
  class: `${t}-list-item`,
@@ -1094,7 +1091,7 @@ const Fe = ({
1094
1091
  }, [u("div", {
1095
1092
  class: `${t}-list-item-title`
1096
1093
  }, [a]), f]);
1097
- }, De = xe({
1094
+ }, Fe = pe({
1098
1095
  props: {
1099
1096
  list: Array,
1100
1097
  keys: Array,
@@ -1126,7 +1123,7 @@ const Fe = ({
1126
1123
  D.show !== !1 && (x == null ? void 0 : x.show) !== !1 && !S && (O = !0);
1127
1124
  const B = {
1128
1125
  key: T || "",
1129
- ...Fn(F, ["dataIndex"]),
1126
+ ...Rn(F, ["dataIndex"]),
1130
1127
  checked: O,
1131
1128
  selectable: !1,
1132
1129
  disabled: D.disable === !0,
@@ -1166,7 +1163,7 @@ const Fe = ({
1166
1163
  c == null || c.setColumnsMap(F, "show");
1167
1164
  }), g = (p) => {
1168
1165
  const x = s(i).find((C) => C.uuid === p.key);
1169
- return p.title || pt(d, "headerCell", {
1166
+ return p.title || xt(d, "headerCell", {
1170
1167
  title: x.title,
1171
1168
  column: x
1172
1169
  }, () => [x.title]);
@@ -1197,7 +1194,7 @@ const Fe = ({
1197
1194
  title: g(C),
1198
1195
  autoScroll: c == null ? void 0 : c.autoScroll
1199
1196
  };
1200
- return u(Dn, fe({
1197
+ return u(kn, fe({
1201
1198
  className: e.className
1202
1199
  }, S, {
1203
1200
  treeKey: S.key
@@ -1205,11 +1202,11 @@ const Fe = ({
1205
1202
  }
1206
1203
  });
1207
1204
  };
1208
- return () => t.value ? u(Pe, null, [e.showTitle && u("span", {
1205
+ return () => t.value ? u(Oe, null, [e.showTitle && u("span", {
1209
1206
  class: `${e.className}-list-title`
1210
1207
  }, [e.title]), y()]) : null;
1211
1208
  }
1212
- }), On = ({
1209
+ }), Fn = ({
1213
1210
  localColumns: e,
1214
1211
  className: a,
1215
1212
  draggable: t,
@@ -1240,14 +1237,14 @@ const Fe = ({
1240
1237
  [`${a}-list`]: !0,
1241
1238
  [`${a}-list-group`]: f || r
1242
1239
  }
1243
- }, [u(De, {
1240
+ }, [u(Fe, {
1244
1241
  title: "\u56FA\u5B9A\u5728\u5DE6\u4FA7",
1245
1242
  list: i,
1246
1243
  keys: c,
1247
1244
  draggable: t,
1248
1245
  checkable: l,
1249
1246
  className: a
1250
- }, null), u(De, {
1247
+ }, null), u(Fe, {
1251
1248
  list: d,
1252
1249
  keys: c,
1253
1250
  draggable: t,
@@ -1255,7 +1252,7 @@ const Fe = ({
1255
1252
  title: "\u4E0D\u56FA\u5B9A",
1256
1253
  showTitle: r || f,
1257
1254
  className: a
1258
- }, null), u(De, {
1255
+ }, null), u(Fe, {
1259
1256
  title: "\u56FA\u5B9A\u5728\u53F3\u4FA7",
1260
1257
  list: o,
1261
1258
  keys: c,
@@ -1263,7 +1260,7 @@ const Fe = ({
1263
1260
  checkable: l,
1264
1261
  className: a
1265
1262
  }, null)]);
1266
- }, Pn = (e) => {
1263
+ }, Dn = (e) => {
1267
1264
  var h, g;
1268
1265
  const {
1269
1266
  checkedReset: a = !0
@@ -1281,7 +1278,7 @@ const Fe = ({
1281
1278
  index: F,
1282
1279
  children: D
1283
1280
  }) => {
1284
- const O = Je(S, F);
1281
+ const O = Qe(S, F);
1285
1282
  O && (p[O] = {
1286
1283
  show: y,
1287
1284
  fixed: T
@@ -1316,7 +1313,7 @@ const Fe = ({
1316
1313
  overlayClassName: `${t}-overlay`,
1317
1314
  trigger: "click",
1318
1315
  placement: "bottomRight",
1319
- content: u(On, {
1316
+ content: u(Fn, {
1320
1317
  checkable: (h = e.checkable) != null ? h : !0,
1321
1318
  draggable: (g = e.draggable) != null ? g : !0,
1322
1319
  className: t,
@@ -1326,29 +1323,29 @@ const Fe = ({
1326
1323
  default: () => [u(q, {
1327
1324
  title: "\u5217\u8BBE\u7F6E"
1328
1325
  }, {
1329
- default: () => [u(Xe, null, null)]
1326
+ default: () => [u(Ze, null, null)]
1330
1327
  })]
1331
1328
  });
1332
- }, tt = () => {
1329
+ }, nt = () => {
1333
1330
  const {
1334
1331
  isFullscreen: e
1335
- } = Ue();
1332
+ } = Ge();
1336
1333
  return e.value ? u(q, {
1337
1334
  title: "\u9000\u51FA\u5168\u5C4F"
1338
1335
  }, {
1339
- default: () => [u(Xt, null, null)]
1336
+ default: () => [u(Jt, null, null)]
1340
1337
  }) : u(q, {
1341
1338
  title: "\u5168\u5C4F"
1342
1339
  }, {
1343
- default: () => [u(Zt, null, null)]
1340
+ default: () => [u(Qt, null, null)]
1344
1341
  });
1345
- }, Mn = () => {
1342
+ }, On = () => {
1346
1343
  const {
1347
1344
  action: e,
1348
1345
  tableSize: a
1349
1346
  } = ue();
1350
1347
  return u(Pt, {
1351
- overlay: u(Ce, {
1348
+ overlay: u(ye, {
1352
1349
  selectedKeys: [a.value],
1353
1350
  onClick: ({
1354
1351
  key: t
@@ -1360,15 +1357,15 @@ const Fe = ({
1360
1357
  width: 80
1361
1358
  }
1362
1359
  }, {
1363
- default: () => [u(Ce.Item, {
1360
+ default: () => [u(ye.Item, {
1364
1361
  key: "large"
1365
1362
  }, {
1366
1363
  default: () => [ce("\u9ED8\u8BA4")]
1367
- }), u(Ce.Item, {
1364
+ }), u(ye.Item, {
1368
1365
  key: "middle"
1369
1366
  }, {
1370
1367
  default: () => [ce("\u4E2D\u7B49")]
1371
- }), u(Ce.Item, {
1368
+ }), u(ye.Item, {
1372
1369
  key: "small"
1373
1370
  }, {
1374
1371
  default: () => [ce("\u7D27\u51D1")]
@@ -1379,17 +1376,17 @@ const Fe = ({
1379
1376
  default: () => [u(q, {
1380
1377
  title: "\u8868\u683C\u5BC6\u5EA6"
1381
1378
  }, {
1382
- default: () => [u(en, null, null)]
1379
+ default: () => [u(Xt, null, null)]
1383
1380
  })]
1384
1381
  });
1385
1382
  };
1386
- function _e(e) {
1383
+ function qe(e) {
1387
1384
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !he(e);
1388
1385
  }
1389
1386
  const {
1390
- useBreakpoint: En
1387
+ useBreakpoint: Pn
1391
1388
  } = Ie;
1392
- function In(e) {
1389
+ function Mn(e) {
1393
1390
  if (he(e))
1394
1391
  return e;
1395
1392
  if (e) {
@@ -1412,7 +1409,7 @@ function In(e) {
1412
1409
  }
1413
1410
  return null;
1414
1411
  }
1415
- const nt = xe({
1412
+ const lt = pe({
1416
1413
  props: {
1417
1414
  actions: ne.toolBarBtn,
1418
1415
  settings: [Array],
@@ -1423,18 +1420,18 @@ const nt = xe({
1423
1420
  optionsExtra: ne.optionsExtra
1424
1421
  },
1425
1422
  setup(e) {
1426
- const a = En(), t = k(() => {
1423
+ const a = Pn(), t = k(() => {
1427
1424
  var r;
1428
1425
  return !!(e.titleTip || e.headerTitle || ((r = e.actions) == null ? void 0 : r.length));
1429
1426
  }), l = k(() => {
1430
1427
  var r;
1431
1428
  return !!(((r = e.settings) == null ? void 0 : r.length) || e.optionsExtra);
1432
- }), o = k(() => !!(e.titleTip || e.headerTitle)), i = be(() => {
1429
+ }), o = k(() => !!(e.titleTip || e.headerTitle)), i = Ce(() => {
1433
1430
  var h;
1434
1431
  let r;
1435
1432
  return Array.isArray(e.actions) ? ((h = e.actions) == null ? void 0 : h.length) < 1 ? null : u(te, {
1436
1433
  align: "center"
1437
- }, _e(r = e.actions.map((g, y) => he(g) ? xt(g, {
1434
+ }, qe(r = e.actions.map((g, y) => he(g) ? St(g, {
1438
1435
  key: y,
1439
1436
  ...g == null ? void 0 : g.props
1440
1437
  }) : u("template", {
@@ -1442,7 +1439,7 @@ const nt = xe({
1442
1439
  }, [g]))) ? r : {
1443
1440
  default: () => [r]
1444
1441
  }) : e.actions;
1445
- }), d = be(() => !t.value && l.value ? u("div", {
1442
+ }), d = Ce(() => !t.value && l.value ? u("div", {
1446
1443
  class: `${e.prefixCls}-left`
1447
1444
  }, null) : o.value ? u(te, {
1448
1445
  class: `${e.prefixCls}-left`
@@ -1452,7 +1449,7 @@ const nt = xe({
1452
1449
  }, [e.headerTitle, e.titleTip && u(q, {
1453
1450
  title: e.titleTipText
1454
1451
  }, {
1455
- default: () => [se(e.titleTip) && e.titleTip ? u(tn, null, null) : e.titleTip]
1452
+ default: () => [se(e.titleTip) && e.titleTip ? u(Zt, null, null) : e.titleTip]
1456
1453
  })]), i.value && u("div", {
1457
1454
  class: `${e.prefixCls}-actions`
1458
1455
  }, [i.value])]
@@ -1462,7 +1459,7 @@ const nt = xe({
1462
1459
  default: () => [i.value && u("div", {
1463
1460
  class: `${e.prefixCls}-actions`
1464
1461
  }, [i.value])]
1465
- })), c = be(() => {
1462
+ })), c = Ce(() => {
1466
1463
  let r;
1467
1464
  return l.value ? u(te, {
1468
1465
  size: 16,
@@ -1476,8 +1473,8 @@ const nt = xe({
1476
1473
  size: 12,
1477
1474
  align: "center",
1478
1475
  class: `${e.prefixCls}-setting-items`
1479
- }, _e(r = e.settings.map((g, y) => {
1480
- const p = In(g);
1476
+ }, qe(r = e.settings.map((g, y) => {
1477
+ const p = Mn(g);
1481
1478
  return u("div", {
1482
1479
  key: y,
1483
1480
  class: `${e.prefixCls}-setting-item`
@@ -1487,7 +1484,7 @@ const nt = xe({
1487
1484
  }) : null];
1488
1485
  }
1489
1486
  }) : null;
1490
- }), f = be(() => {
1487
+ }), f = Ce(() => {
1491
1488
  if (!l.value && !t.value)
1492
1489
  return null;
1493
1490
  const r = {
@@ -1503,28 +1500,28 @@ const nt = xe({
1503
1500
  }, [f.value]);
1504
1501
  }
1505
1502
  });
1506
- nt.inheritAttrs = !1;
1507
- function Nn() {
1503
+ lt.inheritAttrs = !1;
1504
+ function En() {
1508
1505
  return {
1509
1506
  reload: {
1510
1507
  text: "\u5237\u65B0",
1511
- icon: u(nn, null, null)
1508
+ icon: u(en, null, null)
1512
1509
  },
1513
1510
  density: {
1514
1511
  text: "\u8868\u683C\u5BC6\u5EA6",
1515
- icon: u(Mn, null, null)
1512
+ icon: u(On, null, null)
1516
1513
  },
1517
1514
  setting: {
1518
1515
  text: "\u5217\u8BBE\u7F6E",
1519
- icon: u(Xe, null, null)
1516
+ icon: u(Ze, null, null)
1520
1517
  },
1521
1518
  fullScreen: {
1522
1519
  text: "\u5168\u5C4F",
1523
- icon: u(tt, null, null)
1520
+ icon: u(nt, null, null)
1524
1521
  }
1525
1522
  };
1526
1523
  }
1527
- function jn(e, a) {
1524
+ function In(e, a) {
1528
1525
  return Object.keys(e).filter((t) => t).map((t) => {
1529
1526
  const l = e[t];
1530
1527
  if (!l)
@@ -1532,15 +1529,15 @@ function jn(e, a) {
1532
1529
  let o = l === !0 ? a[t] : () => l == null ? void 0 : l();
1533
1530
  if (typeof o != "function" && (o = () => {
1534
1531
  }), t === "setting")
1535
- return u(Pn, fe(e[t], {
1532
+ return u(Dn, fe(e[t], {
1536
1533
  key: t
1537
1534
  }), null);
1538
1535
  if (t === "fullScreen")
1539
1536
  return u("span", {
1540
1537
  key: t,
1541
1538
  onClick: o
1542
- }, [u(tt, null, null)]);
1543
- const i = Nn()[t];
1539
+ }, [u(nt, null, null)]);
1540
+ const i = En()[t];
1544
1541
  return i ? u("span", {
1545
1542
  key: t,
1546
1543
  onClick: o
@@ -1551,7 +1548,7 @@ function jn(e, a) {
1551
1548
  })]) : null;
1552
1549
  }).filter((t) => t);
1553
1550
  }
1554
- function zn({
1551
+ function Nn({
1555
1552
  toolBarBtn: e,
1556
1553
  headerTitle: a,
1557
1554
  titleTip: t,
@@ -1578,11 +1575,11 @@ function zn({
1578
1575
  ...y,
1579
1576
  ...o
1580
1577
  };
1581
- return p.setting !== !1 && d && (p.setting = {}, p.setting.extra = d), jn(p, {
1578
+ return p.setting !== !1 && d && (p.setting = {}, p.setting.extra = d), In(p, {
1582
1579
  ...y
1583
1580
  });
1584
1581
  });
1585
- return u(nt, {
1582
+ return u(lt, {
1586
1583
  ref: () => c.value,
1587
1584
  prefixCls: f,
1588
1585
  actions: e || [],
@@ -1593,7 +1590,7 @@ function zn({
1593
1590
  titleTipText: l
1594
1591
  }, null);
1595
1592
  }
1596
- const Bn = (e) => u(zn, e, null), $n = [
1593
+ const jn = (e) => u(Nn, e, null), zn = [
1597
1594
  "search",
1598
1595
  "headerTitle",
1599
1596
  "toolBarBtn",
@@ -1604,13 +1601,13 @@ const Bn = (e) => u(zn, e, null), $n = [
1604
1601
  "customize"
1605
1602
  ];
1606
1603
  const {
1607
- useBreakpoint: Yn
1608
- } = Ie, Kn = {
1604
+ useBreakpoint: Bn
1605
+ } = Ie, $n = {
1609
1606
  reload: !0,
1610
1607
  density: !0,
1611
1608
  setting: !0,
1612
1609
  fullScreen: !0
1613
- }, Oe = xe({
1610
+ }, De = pe({
1614
1611
  name: "ProTable",
1615
1612
  props: ne,
1616
1613
  emits: ["reset", "reload", "submit", "sizeChange", "expandedRowsChange", "expand", "change", "requestError", "beforeSearchSubmit", "columnsStateChange", "loadingChange", "postData"],
@@ -1622,14 +1619,14 @@ const {
1622
1619
  const o = Ne({
1623
1620
  suffixCls: "table",
1624
1621
  isPor: !0
1625
- }), i = Yn(), d = I(window.innerWidth), c = I(), {
1622
+ }), i = Bn(), d = I(window.innerWidth), c = I(), {
1626
1623
  toggle: f,
1627
1624
  isFullscreen: r
1628
- } = Ue(c), h = k(() => ({
1625
+ } = Ge(c), h = k(() => ({
1629
1626
  ...e
1630
1627
  })), g = k(() => {
1631
1628
  var b, R;
1632
- return e.virtualScroll && ln(!((b = e.scroll) != null && b.y), "\u53C2\u6570scroll\u7684Y\u503C\u4E0D\u80FD\u4E3A\u7A7A\uFF01"), !!(((R = e.scroll) == null ? void 0 : R.y) && e.virtualScroll);
1629
+ return e.virtualScroll && tn(!((b = e.scroll) != null && b.y), "\u53C2\u6570scroll\u7684Y\u503C\u4E0D\u80FD\u4E3A\u7A7A\uFF01"), !!(((R = e.scroll) == null ? void 0 : R.y) && e.virtualScroll);
1633
1630
  }), y = k(() => {
1634
1631
  const b = (e.columns || []).map((R) => ({
1635
1632
  ...R,
@@ -1637,44 +1634,44 @@ const {
1637
1634
  align: R.align || e.align,
1638
1635
  uuid: Me().uuid(15)
1639
1636
  }));
1640
- return Vt(b, {
1637
+ return Lt(b, {
1641
1638
  align: e.align,
1642
1639
  showIndex: e.showIndex
1643
1640
  });
1644
1641
  }), {
1645
1642
  getLoading: p,
1646
1643
  setLoading: x
1647
- } = on({
1644
+ } = an({
1648
1645
  emit: a,
1649
1646
  loading: W(e, "loading")
1650
1647
  }), {
1651
1648
  sizeRef: C,
1652
1649
  setTableSize: S
1653
- } = sn({
1650
+ } = un({
1654
1651
  emit: a,
1655
1652
  size: W(e, "size")
1656
1653
  }), {
1657
1654
  getPaginationInfo: T,
1658
1655
  setPagination: F
1659
- } = rn({
1656
+ } = on({
1660
1657
  slots: t,
1661
1658
  props: h,
1662
1659
  pagination: W(e, "pagination")
1663
- }), D = Cn(e), {
1660
+ }), D = gn(e), {
1664
1661
  getScrollRef: O,
1665
1662
  breakpoint: B
1666
- } = bn({
1663
+ } = yn({
1667
1664
  ...D,
1668
1665
  innerWidth: d,
1669
1666
  columns: y,
1670
1667
  screensRef: i
1671
- }), $ = gn(e), {
1668
+ }), $ = vn(e), {
1672
1669
  getProColumns: A,
1673
1670
  cacheProColumns: n,
1674
1671
  setColumns: m,
1675
1672
  changeColumns: w,
1676
1673
  resizeColumnWidth: M
1677
- } = yn({
1674
+ } = mn({
1678
1675
  ...$,
1679
1676
  breakpoint: B,
1680
1677
  scroll: O,
@@ -1682,38 +1679,38 @@ const {
1682
1679
  }), {
1683
1680
  columnsMap: v,
1684
1681
  operationType: N,
1685
- setColumnsMap: Se,
1682
+ setColumnsMap: xe,
1686
1683
  sortKeyColumns: E,
1687
1684
  cacheColumnsMap: j,
1688
1685
  setSortKeyColumns: Y
1689
- } = mn({
1686
+ } = hn({
1690
1687
  columns: n,
1691
1688
  columnsState: W(e, "columnsState"),
1692
1689
  changeColumns: w
1693
1690
  }), {
1694
1691
  formDataRef: K,
1695
1692
  formParamsRef: oe,
1696
- defaultParamsRef: we,
1693
+ defaultParamsRef: Se,
1697
1694
  setFormParams: ve
1698
- } = vn({
1695
+ } = fn({
1699
1696
  search: W(e, "search"),
1700
1697
  searchMap: W(e, "searchMap"),
1701
1698
  params: W(e, "params"),
1702
1699
  columns: y
1703
1700
  }), {
1704
1701
  selectedKey: me,
1705
- changeRowKey: Te,
1702
+ changeRowKey: we,
1706
1703
  selectRowKey: X,
1707
1704
  selectAllRowKey: ge,
1708
1705
  removeRowKeys: re
1709
- } = cn(W(e, "rowKey"), W(e, "rowSelection")), Z = fn(e), {
1706
+ } = sn(W(e, "rowKey"), W(e, "rowSelection")), Z = cn(e), {
1710
1707
  reload: U,
1711
1708
  reSetDataList: L,
1712
- changeDataValue: lt,
1709
+ changeDataValue: at,
1713
1710
  isTreeDataRef: je,
1714
- getDataSourceRef: Re,
1711
+ getDataSourceRef: Te,
1715
1712
  handleTableChange: ze
1716
- } = hn({
1713
+ } = dn({
1717
1714
  ...Z
1718
1715
  }, {
1719
1716
  getLoading: p,
@@ -1725,16 +1722,16 @@ const {
1725
1722
  columns: A,
1726
1723
  formParamsRef: oe,
1727
1724
  onBeforeSearchSubmit: e.onBeforeSearchSubmit
1728
- }, a), at = k(() => {
1725
+ }, a), ut = k(() => {
1729
1726
  if (e.options) {
1730
- const b = V(At(e.options) ? e.options : {});
1727
+ const b = V(Vt(e.options) ? e.options : {});
1731
1728
  return {
1732
- ...Kn,
1729
+ ...$n,
1733
1730
  ...b
1734
1731
  };
1735
1732
  }
1736
1733
  return {};
1737
- }), ut = () => {
1734
+ }), ot = () => {
1738
1735
  var b;
1739
1736
  (b = e.actionRef) == null || b.call(e, {
1740
1737
  formParams: oe.value,
@@ -1750,7 +1747,7 @@ const {
1750
1747
  changeDataValue: ({
1751
1748
  key: R,
1752
1749
  params: P
1753
- }) => lt({
1750
+ }) => at({
1754
1751
  key: R,
1755
1752
  params: P
1756
1753
  }),
@@ -1758,16 +1755,16 @@ const {
1758
1755
  });
1759
1756
  };
1760
1757
  ae(() => {
1761
- e.actionRef && ut();
1762
- }), St(() => {
1758
+ e.actionRef && ot();
1759
+ }), wt(() => {
1763
1760
  window.addEventListener("resize", Be);
1764
- }), qe(() => {
1761
+ }), Ue(() => {
1765
1762
  window.removeEventListener("resize", Be);
1766
1763
  });
1767
1764
  const Be = () => {
1768
1765
  d.value = window.innerWidth;
1769
1766
  }, $e = k(() => {
1770
- const b = s(Re);
1767
+ const b = s(Te);
1771
1768
  let R = {
1772
1769
  ...l,
1773
1770
  ...e,
@@ -1775,12 +1772,12 @@ const {
1775
1772
  size: s(C),
1776
1773
  scroll: s(O),
1777
1774
  loading: !!s(p),
1778
- columns: ke(s(A).filter((P) => P.show || P.show === void 0)),
1779
- pagination: ke(s(T)),
1775
+ columns: Re(s(A).filter((P) => P.show || P.show === void 0)),
1776
+ pagination: Re(s(T)),
1780
1777
  dataSource: b
1781
1778
  };
1782
1779
  return R = Ve(R, ["class", "onChange", "onExpand", "onExpandedRowsChange"]), R;
1783
- }), ot = k(() => {
1780
+ }), it = k(() => {
1784
1781
  var b;
1785
1782
  return [{
1786
1783
  [`${o}`]: !0,
@@ -1791,7 +1788,7 @@ const {
1791
1788
  [`${o}-full-screen`]: r.value
1792
1789
  }];
1793
1790
  });
1794
- xn({
1791
+ bn({
1795
1792
  tableSize: C,
1796
1793
  columns: A,
1797
1794
  cacheColumns: y,
@@ -1804,7 +1801,7 @@ const {
1804
1801
  autoScroll: W(e, "autoScroll"),
1805
1802
  columnsMap: v,
1806
1803
  operationType: N,
1807
- setColumnsMap: Se,
1804
+ setColumnsMap: xe,
1808
1805
  sortKeyColumns: E,
1809
1806
  cacheColumnsMap: j,
1810
1807
  setSortKeyColumns: Y
@@ -1813,9 +1810,9 @@ const {
1813
1810
  changeColumns: w,
1814
1811
  slots: t
1815
1812
  });
1816
- const it = (b) => {
1813
+ const st = (b) => {
1817
1814
  const R = {};
1818
- return Object.keys(b).map((P) => ($n.includes(P) || (R[P] = b[P]), P)), R;
1815
+ return Object.keys(b).map((P) => (zn.includes(P) || (R[P] = b[P]), P)), R;
1819
1816
  }, Ye = k(() => {
1820
1817
  var H;
1821
1818
  let b;
@@ -1831,14 +1828,14 @@ const {
1831
1828
  ...b,
1832
1829
  ...e.params || {}
1833
1830
  }), U()) : ve(b);
1834
- }, st = (b, R) => {
1831
+ }, rt = (b, R) => {
1835
1832
  R ? (a("reset", b), e.request && Ke(b)) : e.request ? (a("submit", b), Ke(b)) : a("submit", b);
1836
1833
  }, Le = (b, R, P) => {
1837
1834
  F({
1838
1835
  current: b.current,
1839
1836
  pageSize: b.pageSize
1840
1837
  }), ze(b, R, P);
1841
- }, rt = (b, R) => {
1838
+ }, ct = (b, R) => {
1842
1839
  var P;
1843
1840
  F({
1844
1841
  current: b,
@@ -1848,14 +1845,14 @@ const {
1848
1845
  pageSize: R,
1849
1846
  total: T.value && ((P = T.value) == null ? void 0 : P.total) || 0
1850
1847
  }, !1, !1);
1851
- }, ct = (b) => {
1848
+ }, dt = (b) => {
1852
1849
  a("expandedRowsChange", b);
1853
- }, dt = (b, R) => {
1850
+ }, ft = (b, R) => {
1854
1851
  a("expand", b, R);
1855
- }, ft = (b, R) => M(b, R), ht = (b, R, P) => {
1852
+ }, ht = (b, R) => M(b, R), vt = (b, R, P) => {
1856
1853
  let H = b;
1857
1854
  const G = P.align === "center" ? "top" : P.align === "left" || !P.align ? "topLeft" : "topRight";
1858
- return R && P.copyable ? H = u(Nt.Paragraph, {
1855
+ return R && P.copyable ? H = u(It.Paragraph, {
1859
1856
  class: `${o}-copyable`,
1860
1857
  style: {
1861
1858
  margin: "0",
@@ -1880,11 +1877,11 @@ const {
1880
1877
  class: `${o}-ellipsis`
1881
1878
  }, [b])]
1882
1879
  })), H;
1883
- }, vt = (b, R, P) => u(Bn, {
1880
+ }, mt = (b, R, P) => u(jn, {
1884
1881
  headerTitle: b,
1885
1882
  titleTip: P,
1886
1883
  titleTipText: e.titleTipText,
1887
- options: s(at),
1884
+ options: s(ut),
1888
1885
  settingExtra: ie(t, e, "settingExtra"),
1889
1886
  optionsExtra: ie(t, e, "optionsExtra"),
1890
1887
  toolBarBtn: R
@@ -1895,37 +1892,37 @@ const {
1895
1892
  return u("div", {
1896
1893
  ref: (z) => c.value = z,
1897
1894
  style: e.tableStyle || void 0,
1898
- class: ot.value
1895
+ class: it.value
1899
1896
  }, [u("div", {
1900
1897
  class: "gx-pro-table-content"
1901
- }, [(!!K.value.length || !!((G = t.search) != null && G.call(t))) && u(et, {
1898
+ }, [(!!K.value.length || !!((G = t.search) != null && G.call(t))) && u(tt, {
1902
1899
  search: e.search,
1903
1900
  modal: e.modalScroll,
1904
1901
  searchMap: K.value,
1905
1902
  prefixCls: o,
1906
1903
  loading: !!s(p),
1907
- onSearch: st,
1908
- defaultParams: we
1904
+ onSearch: rt,
1905
+ defaultParams: Se
1909
1906
  }, {
1910
- default: () => {
1907
+ default: t.search ? () => {
1911
1908
  var z;
1912
1909
  return (z = t.search) == null ? void 0 : z.call(t);
1913
- }
1914
- }), !g.value && vt(b, P, R), H ? u(Mt, {
1910
+ } : null
1911
+ }), !g.value && mt(b, P, R), H ? u(Pe, {
1915
1912
  spinning: !!s(p)
1916
1913
  }, {
1917
1914
  default: () => {
1918
1915
  var z;
1919
- return [e.customize ? e.customize(s(Re)) : (z = t.customize) == null ? void 0 : z.call(t, s(Re)), u(Et, fe({
1916
+ return [e.customize ? e.customize(s(Te)) : (z = t.customize) == null ? void 0 : z.call(t, s(Te)), u(Mt, fe({
1920
1917
  class: {
1921
1918
  ["ant-table-pagination"]: !0,
1922
1919
  [`ant-table-pagination-${Ye.value}`]: Ye.value
1923
1920
  }
1924
- }, ke(s(T)), {
1925
- onChange: rt
1921
+ }, Re(s(T)), {
1922
+ onChange: ct
1926
1923
  }), null)];
1927
1924
  }
1928
- }) : u(It, fe($e.value, {
1925
+ }) : u(Et, fe($e.value, {
1929
1926
  rowKey: (z) => z[e.rowKey || "sortIndex"],
1930
1927
  transformCellText: ({
1931
1928
  text: z,
@@ -1935,30 +1932,30 @@ const {
1935
1932
  return z;
1936
1933
  const {
1937
1934
  value: ee,
1938
- success: mt
1939
- } = Ht(z, (J == null ? void 0 : J.columnEmptyText) || (e == null ? void 0 : e.columnEmptyText));
1940
- return J != null && J.ellipsis ? ht(ee, mt, J) : ee;
1935
+ success: gt
1936
+ } = At(z, (J == null ? void 0 : J.columnEmptyText) || (e == null ? void 0 : e.columnEmptyText));
1937
+ return J != null && J.ellipsis ? vt(ee, gt, J) : ee;
1941
1938
  },
1942
1939
  rowSelection: e.rowSelection ? {
1943
1940
  ...Ve(e.rowSelection, "onSelect", "onSelectAll", "onChange", "selectedRowKeys"),
1944
1941
  selectedRowKeys: me.value,
1945
1942
  onSelect: X,
1946
1943
  onSelectAll: ge,
1947
- onChange: Te
1944
+ onChange: we
1948
1945
  } : void 0,
1949
1946
  onChange: Le,
1950
- onExpandedRowsChange: ct,
1951
- onExpand: dt,
1952
- onResizeColumn: ft
1947
+ onExpandedRowsChange: dt,
1948
+ onExpand: ft,
1949
+ onResizeColumn: ht
1953
1950
  }), {
1954
- ...it(t)
1951
+ ...st(t)
1955
1952
  })])]);
1956
1953
  };
1957
1954
  }
1958
1955
  });
1959
- Oe.install = (e) => (e.component(Oe.name, Oe), e);
1956
+ De.install = (e) => (e.component(De.name, De), e);
1960
1957
  export {
1961
- Oe as ProTable,
1962
- Oe as default,
1958
+ De as ProTable,
1959
+ De as default,
1963
1960
  ne as proTableProps
1964
1961
  };