@gx-design-vue/pro-table 0.0.5-rc.1 → 0.0.5-rc.2

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 N, watchEffect as oe, computed as T, unref as f, reactive as ue, watch as G, onUnmounted as et, onDeactivated as Ft, onMounted as tt, provide as Dt, inject as Ot, defineComponent as we, createVNode as u, Fragment as Me, nextTick as Mt, mergeProps as _, renderSlot as Pt, createTextVNode as me, isVNode as ye, cloneVNode as Et, toRef as U, toRaw as ke } from "vue";
2
- import { cloneDeep as H, omit as Ge } from "lodash-es";
1
+ import { ref as N, watchEffect as oe, computed as T, unref as f, reactive as ue, watch as G, onUnmounted as et, onDeactivated as Ft, onMounted as tt, provide as Dt, inject as Ot, defineComponent as xe, createVNode as u, Fragment as Me, nextTick as Mt, mergeProps as _, renderSlot as Pt, createTextVNode as me, isVNode as ye, cloneVNode as Et, toRef as U, toRaw as ke } from "vue";
2
+ import { cloneDeep as H, omit as Ge } from "lodash-unified";
3
3
  import { useFullscreen as nt } from "@vueuse/core";
4
- import { Form as Ue, Grid as je, Space as te, Button as Je, Input as Qe, TimePicker as Nt, DatePicker as lt, TreeSelect as It, Spin as Pe, Select as Xe, Tree as jt, Tooltip as J, Popover as zt, Checkbox as $t, Dropdown as Yt, Menu as Ce, Pagination as Bt, Table as Kt, Typography as Lt } from "ant-design-vue";
5
- import { isBoolean as re, isFunction as xe, arrayRepeat as Vt, runFunction as Ht, handleCurrentPage as Wt, isObject as ze, getSortIndex as At, genColumnKey as at, compareToMax as _t, isNumber as ut, isString as qt, isArray as Ee, getRandomNumber as Ne, handleShowIndex as Gt, hanndleField as Ut } from "@gx-design-vue/pro-utils";
4
+ import { Form as Ue, Grid as ze, Space as te, Button as Je, Input as Qe, TimePicker as Nt, DatePicker as lt, TreeSelect as It, Spin as Pe, Select as Xe, Tree as zt, Tooltip as J, Popover as jt, Checkbox as $t, Dropdown as Yt, Menu as Ce, Pagination as Bt, Table as Kt, Typography as Lt } from "ant-design-vue";
5
+ import { isBoolean as re, getSlot as at, isFunction as we, arrayRepeat as Vt, runFunction as Ht, handleCurrentPage as At, isObject as je, getSortIndex as Wt, genColumnKey as ut, compareArray as _t, isNumber as ot, isString as qt, isArray as Ee, getRandomNumber as Ne, getPrefixCls as $e, handleShowIndex as Gt, getSlotVNode as ve, hanndleField as Ut } from "@gx-design-vue/pro-utils";
6
6
  import { tryOnUnmounted as Jt, useMemo as Se } from "@gx-design-vue/pro-hooks";
7
7
  import V from "dayjs";
8
- import { UpOutlined as Qt, DownOutlined as Xt, VerticalAlignTopOutlined as Zt, VerticalAlignMiddleOutlined as en, VerticalAlignBottomOutlined as tn, SettingOutlined as ot, FullscreenExitOutlined as nn, FullscreenOutlined as ln, ColumnHeightOutlined as an, InfoCircleOutlined as un, ReloadOutlined as on } from "@ant-design/icons-vue";
8
+ import { UpOutlined as Qt, DownOutlined as Xt, VerticalAlignTopOutlined as Zt, VerticalAlignMiddleOutlined as en, VerticalAlignBottomOutlined as tn, SettingOutlined as it, FullscreenExitOutlined as nn, FullscreenOutlined as ln, ColumnHeightOutlined as an, InfoCircleOutlined as un, ReloadOutlined as on } from "@ant-design/icons-vue";
9
9
  function Ie() {
10
10
  return Ie = Object.assign ? Object.assign.bind() : function(e) {
11
11
  for (var a = 1; a < arguments.length; a++) {
@@ -128,18 +128,7 @@ const rn = {
128
128
  transformCellText: {
129
129
  type: Function
130
130
  }
131
- }, $e = ({ suffixCls: e, customizePrefixCls: a, isPor: t, className: l }) => {
132
- const o = l || (t ? "gx-pro" : "gx");
133
- return a || (e ? `${o}-${e}` : o);
134
- };
135
- function it(e, a, t = "default") {
136
- return a[t] === !1 ? !1 : a[t] || e[t];
137
- }
138
- function ve(e, a, t = "default") {
139
- var l;
140
- return a[t] === !1 ? !1 : a[t] || ((l = e[t]) == null ? void 0 : l.call(e));
141
- }
142
- const ne = {
131
+ }, ne = {
143
132
  ...rn,
144
133
  rowSelection: {
145
134
  type: Object,
@@ -265,18 +254,18 @@ function cn({ emit: e, loading: a }) {
265
254
  t.value = a.value;
266
255
  });
267
256
  const l = T(() => f(t) || !1);
268
- function o(i) {
269
- t.value = i, e("loadingChange", !0);
257
+ function i(o) {
258
+ t.value = o, e("loadingChange", !0);
270
259
  }
271
- return { getLoading: l, setLoading: o };
260
+ return { getLoading: l, setLoading: i };
272
261
  }
273
262
  function dn({ size: e, emit: a }) {
274
263
  const t = N("middle");
275
264
  oe(() => {
276
265
  t.value = e.value;
277
266
  });
278
- function l(o) {
279
- t.value = o, a("sizeChange", !0);
267
+ function l(i) {
268
+ t.value = i, a("sizeChange", !0);
280
269
  }
281
270
  return { sizeRef: t, setTableSize: l };
282
271
  }
@@ -296,11 +285,11 @@ function fn({
296
285
  for (const d in l)
297
286
  delete l[d];
298
287
  });
299
- const o = T(() => {
288
+ const i = T(() => {
300
289
  var r;
301
290
  if (re(t.value) && !t.value)
302
291
  return !1;
303
- const h = it(e, f(a), "pageItemRender"), d = xe(h) ? {
292
+ const h = at(e, f(a), "pageItemRender"), d = we(h) ? {
304
293
  itemRender: ({
305
294
  page: s,
306
295
  type: C,
@@ -310,7 +299,7 @@ function fn({
310
299
  type: C,
311
300
  originalElement: c
312
301
  }) : null
313
- } : null, p = {
302
+ } : null, b = {
314
303
  current: 1,
315
304
  pageSize: 10,
316
305
  size: "default",
@@ -321,18 +310,18 @@ function fn({
321
310
  ...f(l),
322
311
  ...d || {}
323
312
  };
324
- return (r = t.value) != null && r.showTotal || (p.showTotal = (s) => `\u5171${s < p.pageSize ? 1 : Math.ceil(s / p.pageSize)}\u9875 ${s}\u6761\u8BB0\u5F55`), p;
313
+ return (r = t.value) != null && r.showTotal || (b.showTotal = (s) => `\u5171${s < b.pageSize ? 1 : Math.ceil(s / b.pageSize)}\u9875 ${s}\u6761\u8BB0\u5F55`), b;
325
314
  });
326
- function i(h) {
327
- const d = f(o);
315
+ function o(h) {
316
+ const d = f(i);
328
317
  Object.assign(l, {
329
318
  ...d || {},
330
319
  ...h
331
320
  });
332
321
  }
333
322
  return {
334
- getPaginationInfo: o,
335
- setPagination: i
323
+ getPaginationInfo: i,
324
+ setPagination: o
336
325
  };
337
326
  }
338
327
  function hn(e, a) {
@@ -356,21 +345,21 @@ function hn(e, a) {
356
345
  deep: !0,
357
346
  immediate: !0
358
347
  });
359
- const o = (r, s) => {
348
+ const i = (r, s) => {
360
349
  e.value && (s ? r != null && r[e.value] && (t.value.push(r[e.value]), l.value.push(r)) : (t.value = t.value.filter((C) => C !== r[e.value]), l.value = l.value.filter((C) => C[e.value] !== r[e.value])));
361
- }, i = () => {
350
+ }, o = () => {
362
351
  a.value && a.value.onChange(t.value, l.value);
363
352
  };
364
353
  return {
365
354
  selectedKey: t,
366
- selectRowKey: o,
355
+ selectRowKey: i,
367
356
  selectAllRowKey: (r, s, C) => {
368
357
  e.value && (r ? s.map((c) => (t.value.every((y) => y !== (c == null ? void 0 : c[e.value])) && c != null && c[e.value] && (t.value.push(c[e.value]), l.value.push(c)), c)) : C.map((c) => (t.value.some((y) => y === (c == null ? void 0 : c[e.value])) && (t.value = t.value.filter((y) => y !== c[e.value]), l.value = l.value.filter((y) => y[e.value] !== c[e.value])), c)));
369
358
  },
370
359
  removeRowKeys: (r) => {
371
- t.value = t.value.filter((s) => !r.includes(s)), l.value = l.value.filter((s) => !r.includes(s == null ? void 0 : s[e.value || ""])), i();
360
+ t.value = t.value.filter((s) => !r.includes(s)), l.value = l.value.filter((s) => !r.includes(s == null ? void 0 : s[e.value || ""])), o();
372
361
  },
373
- changeRowKey: i,
362
+ changeRowKey: o,
374
363
  syncSelectedRows: (r) => {
375
364
  if (e.value && t.value.length !== l.value.length) {
376
365
  const s = l.value.map((c) => c[e.value]), C = t.value.filter((c) => !s.includes(c));
@@ -382,109 +371,109 @@ function hn(e, a) {
382
371
  };
383
372
  }
384
373
  function vn(e, a) {
385
- const t = a || 0, l = N(), o = N(e);
386
- o.value = e;
387
- function i() {
374
+ const t = a || 0, l = N(), i = N(e);
375
+ i.value = e;
376
+ function o() {
388
377
  l.value && clearTimeout(l.value);
389
378
  }
390
379
  async function h(...d) {
391
- var p;
392
- i(), l.value = (p = d[0]) != null && p.immediate ? await o.value(...d) : setTimeout(async () => {
393
- await o.value(...d);
380
+ var b;
381
+ o(), l.value = (b = d[0]) != null && b.immediate ? await i.value(...d) : setTimeout(async () => {
382
+ await i.value(...d);
394
383
  }, t);
395
384
  }
396
- return Jt(i), {
397
- cancel: i,
385
+ return Jt(o), {
386
+ cancel: o,
398
387
  run: h
399
388
  };
400
389
  }
401
390
  function mn(e) {
402
- const a = T(() => e.polling), t = T(() => e.request), l = T(() => e.postData), o = T(() => e.debounceTime), i = T(() => e.dataSource);
391
+ const a = T(() => e.polling), t = T(() => e.request), l = T(() => e.postData), i = T(() => e.debounceTime), o = T(() => e.dataSource);
403
392
  return {
404
393
  polling: a,
405
394
  request: t,
406
395
  postData: l,
407
- debounceTime: o,
408
- dataSource: i
396
+ debounceTime: i,
397
+ dataSource: o
409
398
  };
410
399
  }
411
- function gn({ polling: e, request: a, postData: t, dataSource: l, waitRequest: o, debounceTime: i }, { columns: h, getLoading: d, setLoading: p, setColumns: r, removeRowKeys: s, syncSelectedRows: C, formParamsRef: c, setPagination: y, getPaginationInfo: S, onBeforeSearchSubmit: g }, x) {
412
- const F = N(), w = N(!0), R = N(!1), M = N(!1), I = N([]), Y = N(), B = vn(async (P) => {
400
+ function gn({ polling: e, request: a, postData: t, dataSource: l, waitRequest: i, debounceTime: o }, { columns: h, getLoading: d, setLoading: b, setColumns: r, removeRowKeys: s, syncSelectedRows: C, formParamsRef: c, setPagination: y, getPaginationInfo: S, onBeforeSearchSubmit: g }, w) {
401
+ const F = N(), x = N(!0), R = N(!1), M = N(!1), I = N([]), Y = N(), B = vn(async (P) => {
413
402
  Y.value && clearTimeout(Y.value);
414
- const j = await b(P), K = Ht(e.value, j);
403
+ const z = await p(P), K = Ht(e.value, z);
415
404
  K && !F.value && (Y.value = setTimeout(() => {
416
405
  B.run({ ...P, isPolling: K });
417
406
  }, Math.max(K, 2e3)));
418
- }, i.value || 20);
407
+ }, o.value || 20);
419
408
  et(() => {
420
409
  F.value = !0, clearTimeout(Y.value);
421
410
  }), Ft(() => {
422
411
  F.value = !0, clearTimeout(Y.value);
423
412
  }), G(() => e.value, () => {
424
413
  e.value ? B.run({ isPolling: !0 }) : clearTimeout(Y.value);
425
- }, { immediate: !0 }), G(() => [o.value, l.value, c], () => {
426
- a.value ? (!w.value || !e.value) && B.run({ isPolling: !1 }) : L(l.value || []);
414
+ }, { immediate: !0 }), G(() => [i.value, l.value, c], () => {
415
+ a.value ? (!x.value || !e.value) && B.run({ isPolling: !1 }) : L(l.value || []);
427
416
  }, {
428
417
  deep: !0,
429
418
  immediate: !0
430
419
  });
431
420
  const X = T(() => {
432
- const P = f(h).filter((j) => j.show || j.show === void 0);
421
+ const P = f(h).filter((z) => z.show || z.show === void 0);
433
422
  return !f(I) || !P || P.length === 0 ? [] : f(I);
434
423
  }), n = T(() => f(I).some((P) => P.children && P.children.length > 0));
435
424
  function v(P) {
436
425
  M.value = P;
437
426
  }
438
- function D(P, j, K) {
439
- B.run({ pagination: P, filters: j, sorter: K, isPolling: !1 }), x("change", P, j, K);
427
+ function D(P, z, K) {
428
+ B.run({ pagination: P, filters: z, sorter: K, isPolling: !1 }), w("change", P, z, K);
440
429
  }
441
- const O = (P, j) => {
442
- L(P), y(j);
443
- }, b = async (P = {}) => {
444
- var fe, pe;
445
- const { pagination: j, filters: K = {}, sorter: le = {}, removeKeys: de = [], isPolling: be = !1 } = P;
446
- if (!f(a) || !xe(f(a)) || f(o) && d.value || R.value)
430
+ const O = (P, z) => {
431
+ L(P), y(z);
432
+ }, p = async (P = {}) => {
433
+ var fe, be;
434
+ const { pagination: z, filters: K = {}, sorter: le = {}, removeKeys: de = [], isPolling: pe = !1 } = P;
435
+ if (!f(a) || !we(f(a)) || f(i) && d.value || R.value)
447
436
  return l.value || [];
448
- if (R.value = !0, !be || f(o) || w.value ? p(!0) : v(!0), f(o)) {
449
- w.value = !1, R.value = !1;
437
+ if (R.value = !0, !pe || f(i) || x.value ? b(!0) : v(!0), f(i)) {
438
+ x.value = !1, R.value = !1;
450
439
  return;
451
440
  }
452
- j && y(j);
441
+ z && y(z);
453
442
  try {
454
443
  let Q = {};
455
- if (re(j) && !j || re(S))
444
+ if (re(z) && !z || re(S))
456
445
  Q = {};
457
446
  else {
458
- const { current: z = 1, pageSize: ae = 10, total: W } = f(S) || {};
459
- Q.pageNum = Wt({ current: z, pageSize: ae, total: W }, de.length), de.length && s(de), Q.pageSize = ae;
447
+ const { current: j = 1, pageSize: ae = 10, total: A } = f(S) || {};
448
+ Q.pageNum = At({ current: j, pageSize: ae, total: A }, de.length), de.length && s(de), Q.pageSize = ae;
460
449
  }
461
- (ze(le) ? [le] : le).forEach((z) => {
462
- const ae = (z == null ? void 0 : z.columnKey) || (z == null ? void 0 : z.field);
463
- z && (z == null ? void 0 : z.order) ? r(f(h).map((W) => (W.dataIndex === ae ? W.sortOrder = z == null ? void 0 : z.order : W.sortOrder = null, W))) : z && r(f(h).map((W) => (W.dataIndex === ae && (W.sortOrder = null), W)));
450
+ (je(le) ? [le] : le).forEach((j) => {
451
+ const ae = (j == null ? void 0 : j.columnKey) || (j == null ? void 0 : j.field);
452
+ j && (j == null ? void 0 : j.order) ? r(f(h).map((A) => (A.dataIndex === ae ? A.sortOrder = j == null ? void 0 : j.order : A.sortOrder = null, A))) : j && r(f(h).map((A) => (A.dataIndex === ae && (A.sortOrder = null), A)));
464
453
  });
465
454
  let he = {
466
455
  ...Q || {},
467
456
  ...P.params,
468
457
  ...c
469
458
  };
470
- g && xe(g) && (he = await g(he, le, K));
459
+ g && we(g) && (he = await g(he, le, K));
471
460
  let q = [];
472
461
  const ie = await ((fe = f(a)) == null ? void 0 : fe(he, le, K));
473
- return R.value = !1, ie && ie.success ? (q = ie.data || [], f(t) && xe(f(t)) && (q = await ((pe = f(t)) == null ? void 0 : pe(q))), C(q), O(q || [], {
462
+ return R.value = !1, ie && ie.success ? (q = ie.data || [], f(t) && we(f(t)) && (q = await ((be = f(t)) == null ? void 0 : be(q))), C(q), O(q || [], {
474
463
  total: ie.total || (q == null ? void 0 : q.length) || 0
475
464
  }), q) : [];
476
465
  } catch (Q) {
477
- I.value === void 0 && L([]), x("requestError", Q);
466
+ I.value === void 0 && L([]), w("requestError", Q);
478
467
  } finally {
479
- w.value = !1, p(!1);
468
+ x.value = !1, b(!1);
480
469
  }
481
470
  return [];
482
471
  };
483
472
  function L(P) {
484
- I.value = At(H(P), f(S.value));
473
+ I.value = Wt(H(P), f(S.value));
485
474
  }
486
- function Te({ key: P, params: j }) {
487
- I.value = I.value.map((K) => P && j[P] === K[P] ? { ...K, ...j } : K);
475
+ function Te({ key: P, params: z }) {
476
+ I.value = I.value.map((K) => P && z[P] === K[P] ? { ...K, ...z } : K);
488
477
  }
489
478
  return {
490
479
  getDataSourceRef: X,
@@ -493,7 +482,7 @@ function gn({ polling: e, request: a, postData: t, dataSource: l, waitRequest: o
493
482
  changeDataValue: Te,
494
483
  handleTableChange: D,
495
484
  reload: async (P) => {
496
- f(a) ? await B.run({ ...P, isPolling: !1 }) : x("reload");
485
+ f(a) ? await B.run({ ...P, isPolling: !1 }) : w("reload");
497
486
  }
498
487
  };
499
488
  }
@@ -501,51 +490,51 @@ function yn(e) {
501
490
  const a = {};
502
491
  return e.forEach((t) => {
503
492
  let l = t.initialValue;
504
- const o = ["select"], i = ["date", "time", "dateRange"];
505
- !l && o.includes(t.valueType) ? l = void 0 : !l && i.includes(t.valueType) ? l = null : l || (l = ""), t.name === "dateRange" ? (a[t.rangeStartName || "start"] = l ? l[0] : null, a[t.rangeEndName || "end"] = l ? l[1] : null) : t.name && (a[t.name] = l);
493
+ const i = ["select"], o = ["date", "time", "dateRange"];
494
+ !l && i.includes(t.valueType) ? l = void 0 : !l && o.includes(t.valueType) ? l = null : l || (l = ""), t.name === "dateRange" ? (a[t.rangeStartName || "start"] = l ? l[0] : null, a[t.rangeEndName || "end"] = l ? l[1] : null) : t.name && (a[t.name] = l);
506
495
  }), a;
507
496
  }
508
- function bn({ search: e, searchMap: a, params: t, columns: l }) {
509
- const o = ue({}), i = ue({}), h = N([]), d = T(() => !!e.value.showSearch);
497
+ function pn({ search: e, searchMap: a, params: t, columns: l }) {
498
+ const i = ue({}), o = ue({}), h = N([]), d = T(() => !!e.value.showSearch);
510
499
  tt(() => {
511
- p("all");
500
+ b("all");
512
501
  }), G(() => t.value, () => {
513
- p("params");
502
+ b("params");
514
503
  }, {
515
504
  deep: !0
516
505
  }), G(() => a.value, () => {
517
- p("searchMap");
506
+ b("searchMap");
518
507
  }, {
519
508
  deep: !0
520
509
  }), G(() => l.value, () => {
521
- p("columns");
510
+ b("columns");
522
511
  }, {
523
512
  deep: !0
524
513
  });
525
- const p = (s) => {
514
+ const b = (s) => {
526
515
  var c;
527
516
  const C = [];
528
517
  if ((s === "all" || s === "searchMap") && (a.value.forEach((y) => C.push(y)), h.value = H(C)), (s === "all" || s === "columns") && ((c = l.value) == null ? void 0 : c.length) && (l.value && l.value.forEach((y) => {
529
518
  y.searchConfig && C.push(y.searchConfig);
530
519
  }), h.value = H(C)), s === "all" || s === "searchMap" || s === "columns") {
531
520
  const y = yn(C);
532
- Object.assign(i, { ...y });
521
+ Object.assign(o, { ...y });
533
522
  for (const S in y)
534
- o[S] || (o[S] = y[S]);
523
+ i[S] || (i[S] = y[S]);
535
524
  }
536
- (s === "all" || s === "params" && !d.value) && Object.assign(o, t.value);
525
+ (s === "all" || s === "params" && !d.value) && Object.assign(i, t.value);
537
526
  };
538
527
  function r(s) {
539
- Object.assign(o, s);
528
+ Object.assign(i, s);
540
529
  }
541
- return { formDataRef: h, formParamsRef: o, defaultParamsRef: i, setFormParams: r };
530
+ return { formDataRef: h, formParamsRef: i, defaultParamsRef: o, setFormParams: r };
542
531
  }
543
- function pn({ columns: e, columnsState: a, changeColumns: t }) {
544
- const l = N(void 0), o = ue({}), i = ue({}), h = ue({}), d = N([]);
532
+ function bn({ columns: e, columnsState: a, changeColumns: t }) {
533
+ const l = N(void 0), i = ue({}), o = ue({}), h = ue({}), d = N([]);
545
534
  G(() => e.value, () => {
546
535
  var s;
547
536
  (s = f(e)) == null || s.forEach(({ show: C, key: c, fixed: y }, S) => {
548
- const g = at(c, S);
537
+ const g = ut(c, S);
549
538
  g && (h[g] = { show: C === void 0 ? !0 : C, fixed: y });
550
539
  });
551
540
  }, {
@@ -563,20 +552,20 @@ function pn({ columns: e, columnsState: a, changeColumns: t }) {
563
552
  ...(C = f(a)) == null ? void 0 : C.value,
564
553
  ...f(h)
565
554
  };
566
- Object.assign(o, s), Object.assign(i, s);
555
+ Object.assign(i, s), Object.assign(o, s);
567
556
  });
568
- function p(s, C) {
569
- l.value = C, Object.assign(o, s), t == null || t(o, C === "fixed");
557
+ function b(s, C) {
558
+ l.value = C, Object.assign(i, s), t == null || t(i, C === "fixed");
570
559
  }
571
560
  function r(s) {
572
561
  d.value = s;
573
562
  }
574
563
  return {
575
- columnsMap: o,
564
+ columnsMap: i,
576
565
  operationType: l,
577
- setColumnsMap: p,
566
+ setColumnsMap: b,
578
567
  sortKeyColumns: d,
579
- cacheColumnsMap: i,
568
+ cacheColumnsMap: o,
580
569
  setSortKeyColumns: r
581
570
  };
582
571
  }
@@ -588,49 +577,49 @@ function Cn(e) {
588
577
  autoScroll: l
589
578
  };
590
579
  }
591
- function Sn({ scroll: e, columns: a, breakpoint: t, draggabled: l, autoScroll: o, neverScroll: i }) {
580
+ function Sn({ scroll: e, columns: a, breakpoint: t, draggabled: l, autoScroll: i, neverScroll: o }) {
592
581
  const h = N([]), d = N([]);
593
582
  G([
594
583
  () => e.value,
595
584
  () => a.value,
596
585
  () => t.value,
597
586
  () => l.value,
598
- () => o.value,
599
- () => i.value
587
+ () => i.value,
588
+ () => o.value
600
589
  ], () => {
601
590
  h.value = H(s(f(a))), d.value = H(s(f(a)));
602
591
  }, {
603
592
  deep: !0,
604
593
  immediate: !0
605
594
  });
606
- const p = T(() => {
607
- const S = r(f(h).filter((F) => F.fixed === "left")), g = r(f(h).filter((F) => F.fixed !== "left" && F.fixed !== "right")), x = r(f(h).filter((F) => F.fixed === "right"));
595
+ const b = T(() => {
596
+ const S = r(f(h).filter((F) => F.fixed === "left")), g = r(f(h).filter((F) => F.fixed !== "left" && F.fixed !== "right")), w = r(f(h).filter((F) => F.fixed === "right"));
608
597
  return [
609
598
  ...S,
610
599
  ...g,
611
- ...x
600
+ ...w
612
601
  ];
613
602
  });
614
603
  function r(S) {
615
- return S.sort((g, x) => _t(g, x, "order"));
604
+ return S.sort((g, w) => _t(g, w, "order", 0));
616
605
  }
617
606
  function s(S) {
618
- return H(S).map((g, x) => {
607
+ return H(S).map((g, w) => {
619
608
  var F;
620
- if (g.dataIndex === "action" || x === S.length - 1 ? g.resizable = !1 : g.resizable = re(g.resizable) ? g.resizable : !!(ut(g.width) && f(l)), !g.width || f(i))
609
+ if (g.dataIndex === "action" || w === S.length - 1 ? g.resizable = !1 : g.resizable = re(g.resizable) ? g.resizable : !!(ot(g.width) && f(l)), !g.width || f(o))
621
610
  return g;
622
- if (g.dataIndex === "action" && f(o))
611
+ if (g.dataIndex === "action" && f(i))
623
612
  if (((F = f(e)) == null ? void 0 : F.x) || !f(t))
624
613
  g.width = g.width || 100, g.fixed = "right";
625
614
  else {
626
- const w = f(a).find((R) => R.dataIndex === g.dataIndex);
627
- g.width = (w == null ? void 0 : w.width) || "", g.fixed = w == null ? void 0 : w.fixed;
615
+ const x = f(a).find((R) => R.dataIndex === g.dataIndex);
616
+ g.width = (x == null ? void 0 : x.width) || "", g.fixed = x == null ? void 0 : x.fixed;
628
617
  }
629
618
  return g;
630
619
  });
631
620
  }
632
621
  function C(S, g) {
633
- h.value = h.value.map((x) => (x.uuid === g.uuid && (x.width = S), x));
622
+ h.value = h.value.map((w) => (w.uuid === g.uuid && (w.width = S), w));
634
623
  }
635
624
  function c(S) {
636
625
  if (S.length <= 0) {
@@ -641,56 +630,56 @@ function Sn({ scroll: e, columns: a, breakpoint: t, draggabled: l, autoScroll: o
641
630
  }
642
631
  function y(S) {
643
632
  let g = H(a.value);
644
- g = g.map((x) => {
645
- var w, R, M;
646
- const F = x.key ? {
647
- show: (w = S[x.key]) == null ? void 0 : w.show,
648
- fixed: (R = S[x.key]) == null ? void 0 : R.fixed,
649
- order: (M = S[x.key]) == null ? void 0 : M.order
633
+ g = g.map((w) => {
634
+ var x, R, M;
635
+ const F = w.key ? {
636
+ show: (x = S[w.key]) == null ? void 0 : x.show,
637
+ fixed: (R = S[w.key]) == null ? void 0 : R.fixed,
638
+ order: (M = S[w.key]) == null ? void 0 : M.order
650
639
  } : {};
651
640
  return {
652
- ...x,
641
+ ...w,
653
642
  ...F
654
643
  };
655
644
  }), c(g);
656
645
  }
657
646
  return {
658
647
  breakpoint: t,
659
- getProColumns: p,
648
+ getProColumns: b,
660
649
  cacheProColumns: d,
661
650
  setColumns: c,
662
651
  changeColumns: y,
663
652
  resizeColumnWidth: C
664
653
  };
665
654
  }
666
- function xn(e) {
667
- const a = T(() => e.scroll), t = T(() => e.autoScroll), l = T(() => e.modalScroll), o = T(() => e.neverScroll), i = T(() => e.rowSelection), h = T(() => e.scrollBreakpoint);
655
+ function wn(e) {
656
+ const a = T(() => e.scroll), t = T(() => e.autoScroll), l = T(() => e.modalScroll), i = T(() => e.neverScroll), o = T(() => e.rowSelection), h = T(() => e.scrollBreakpoint);
668
657
  return {
669
658
  scroll: a,
670
- neverScroll: o,
671
- rowSelection: i,
659
+ neverScroll: i,
660
+ rowSelection: o,
672
661
  autoScroll: t,
673
662
  modalScroll: l,
674
663
  scrollBreakpoint: h
675
664
  };
676
665
  }
677
- function wn({ scroll: e, columns: a, autoScroll: t, modalScroll: l, neverScroll: o, rowSelection: i, screensRef: h, innerWidth: d, scrollBreakpoint: p }) {
666
+ function xn({ scroll: e, columns: a, autoScroll: t, modalScroll: l, neverScroll: i, rowSelection: o, screensRef: h, innerWidth: d, scrollBreakpoint: b }) {
678
667
  const r = T(() => {
679
668
  var c, y, S;
680
- return f(p) ? ut(f(p)) ? d.value > f(p) : qt(f(p)) ? (c = h.value) == null ? void 0 : c[f(p)] : (y = h.value) == null ? void 0 : y.xl : (S = h.value) == null ? void 0 : S.xl;
669
+ return f(b) ? ot(f(b)) ? d.value > f(b) : qt(f(b)) ? (c = h.value) == null ? void 0 : c[f(b)] : (y = h.value) == null ? void 0 : y.xl : (S = h.value) == null ? void 0 : S.xl;
681
670
  }), s = T(() => {
682
671
  let c = 0;
683
- const y = f(i) ? 60 : 0, S = 150, g = H(f(a));
684
- g.forEach((w) => {
685
- c += Number.parseInt(w.width) || 0;
672
+ const y = f(o) ? 60 : 0, S = 150, g = H(f(a));
673
+ g.forEach((x) => {
674
+ c += Number.parseInt(x.width) || 0;
686
675
  });
687
- const F = g.filter((w) => !Reflect.has(w, "width")).length;
676
+ const F = g.filter((x) => !Reflect.has(x, "width")).length;
688
677
  return F !== 0 && (c += F * S), y && (c += y), c;
689
678
  });
690
679
  return { getScrollRef: T(() => {
691
680
  var y;
692
681
  const { xl: c } = h.value;
693
- return f(o) ? {} : f(e) && Object.keys(f(e)).length ? f(e) : f(l) ? {
682
+ return f(i) ? {} : f(e) && Object.keys(f(e)).length ? f(e) : f(l) ? {
694
683
  y: ((y = f(e)) == null ? void 0 : y.y) || (c ? 400 : 235)
695
684
  } : f(t) ? r.value ? {} : re(r.value) ? { x: f(s) } : {} : {};
696
685
  }), breakpoint: r };
@@ -705,29 +694,29 @@ function kn(e, a) {
705
694
  });
706
695
  function l() {
707
696
  Object.keys(e).map((h) => {
708
- o(h, e[h]);
697
+ i(h, e[h]);
709
698
  });
710
- const i = a.find((h) => h.valueType === "dateRange");
711
- i && o(i.name || "", e[i.rangeStartName || "start"] ? [
712
- e[i.rangeStartName || "start"],
713
- e[i.rangeEndName || "end"]
699
+ const o = a.find((h) => h.valueType === "dateRange");
700
+ o && i(o.name || "", e[o.rangeStartName || "start"] ? [
701
+ e[o.rangeStartName || "start"],
702
+ e[o.rangeEndName || "end"]
714
703
  ] : []);
715
704
  }
716
- function o(i, h) {
717
- t[i] = h;
705
+ function i(o, h) {
706
+ t[o] = h;
718
707
  }
719
708
  return {
720
709
  formState: t,
721
710
  resetFormState: l,
722
- changeFormState: o
711
+ changeFormState: i
723
712
  };
724
713
  }
725
714
  const {
726
715
  useBreakpoint: Fn
727
- } = je, {
716
+ } = ze, {
728
717
  MonthPicker: Dn,
729
718
  RangePicker: On
730
- } = lt, rt = we({
719
+ } = lt, rt = xe({
731
720
  name: "ProTableForm",
732
721
  props: {
733
722
  search: ne.search,
@@ -746,11 +735,11 @@ const {
746
735
  slots: t,
747
736
  expose: l
748
737
  }) {
749
- const o = Fn(), {
750
- formState: i,
738
+ const i = Fn(), {
739
+ formState: o,
751
740
  resetFormState: h,
752
741
  changeFormState: d
753
- } = kn(e.defaultParams || {}, e.searchMap || []), p = N(!1), r = T(() => !!e.search.showSearch), s = T(() => e.search.showReset === void 0 ? r.value : e.search.showReset), C = [{
742
+ } = kn(e.defaultParams || {}, e.searchMap || []), b = N(!1), r = T(() => !!e.search.showSearch), s = T(() => e.search.showReset === void 0 ? r.value : e.search.showReset), C = [{
754
743
  value: "xxl",
755
744
  span: 4
756
745
  }, {
@@ -770,27 +759,27 @@ const {
770
759
  span: 1
771
760
  }], c = T(() => y(e.search.span));
772
761
  G(() => e.search.defaultCollapsed, (n) => {
773
- p.value = p.value || !!n;
762
+ b.value = b.value || !!n;
774
763
  });
775
764
  const y = (n) => {
776
765
  let v = 4;
777
766
  for (let D = 0; D < C.length; D += 1) {
778
767
  const O = C[D].value;
779
- if (o.value[O]) {
768
+ if (i.value[O]) {
780
769
  v = (n == null ? void 0 : n[O]) || (e.modal ? 3 : C[D].span);
781
770
  break;
782
771
  }
783
772
  }
784
773
  return v;
785
774
  }, S = (n) => {
786
- p.value = n;
775
+ b.value = n;
787
776
  }, g = (n, v, D) => (n + 1) % v === 0 ? {
788
777
  ...D,
789
778
  marginRight: 0
790
779
  } : {
791
780
  ...D,
792
781
  marginRight: "2%"
793
- }, x = (n, v) => {
782
+ }, w = (n, v) => {
794
783
  var D, O;
795
784
  switch (v.valueType) {
796
785
  case "text":
@@ -815,16 +804,16 @@ const {
815
804
  d(v.name || "", n ? V(n).format(v.valueFormat || "HH:mm:ss") : v.initialValue || null);
816
805
  break;
817
806
  }
818
- e.search.showSearch || v.valueType === "text" || (v.valueType === "treeSelect" || v.valueType, w());
807
+ e.search.showSearch || v.valueType === "text" || (v.valueType === "treeSelect" || v.valueType, x());
819
808
  }, F = () => {
820
- const n = H(i), v = e.searchMap.find((b) => b.valueType === "text") || "", D = e.searchMap.find((b) => b.valueType === "dateRange") || "", O = e.searchMap.find((b) => b.valueType === "treeSelect") || "";
821
- return v && (n[v.name] = i[v.name] || v.initialValue || ""), D && (n[D.rangeStartName || "start"] = n[D.name] ? n[D.name][0] : "", n[D.rangeEndName || "end"] = n[D.name] ? n[D.name][1] : "", delete n[D.name]), O && (Ee(i[O.name]) && (n[O.name] = i[O.name].length ? i[O.name].map((b) => b[O.valueKey === "text" ? "label" : "value"]).join() : ""), O && Ee(n[O.name]) && (n[O.name] = n[O.name].length ? n[O.name].map((b) => b[O.valueKey === "text" ? "label" : "value"]) : "")), n;
822
- }, w = (n = !1, v) => {
809
+ const n = H(o), v = e.searchMap.find((p) => p.valueType === "text") || "", D = e.searchMap.find((p) => p.valueType === "dateRange") || "", O = e.searchMap.find((p) => p.valueType === "treeSelect") || "";
810
+ return v && (n[v.name] = o[v.name] || v.initialValue || ""), D && (n[D.rangeStartName || "start"] = n[D.name] ? n[D.name][0] : "", n[D.rangeEndName || "end"] = n[D.name] ? n[D.name][1] : "", delete n[D.name]), O && (Ee(o[O.name]) && (n[O.name] = o[O.name].length ? o[O.name].map((p) => p[O.valueKey === "text" ? "label" : "value"]).join() : ""), O && Ee(n[O.name]) && (n[O.name] = n[O.name].length ? n[O.name].map((p) => p[O.valueKey === "text" ? "label" : "value"]) : "")), n;
811
+ }, x = (n = !1, v) => {
823
812
  Mt(() => {
824
813
  (!r.value || n) && a("search", F(), !!v);
825
814
  });
826
815
  }, R = (n = !0) => {
827
- h(), w(!0, n);
816
+ h(), x(!0, n);
828
817
  };
829
818
  l({
830
819
  getFormState: () => F(),
@@ -838,7 +827,7 @@ const {
838
827
  }), r.value && u(Je, {
839
828
  loading: e.loading,
840
829
  type: "primary",
841
- onClick: () => w(!0)
830
+ onClick: () => x(!0)
842
831
  }, {
843
832
  default: () => [e.search.searchText || "\u67E5\u8BE2"]
844
833
  })]
@@ -866,11 +855,11 @@ const {
866
855
  style: {
867
856
  width: "100%"
868
857
  },
869
- value: i[n.name],
858
+ value: o[n.name],
870
859
  placeholder: n.placeholder || "\u8BF7\u8F93\u5165",
871
860
  allowClear: n.allowClear || n.allowClear === !1 ? n.allowClear : !0,
872
- onChange: (b) => x(b.target.value, n),
873
- onSearch: (b) => w()
861
+ onChange: (p) => w(p.target.value, n),
862
+ onSearch: (p) => x()
874
863
  }, n.field || {}), null);
875
864
  break;
876
865
  case "select":
@@ -878,20 +867,20 @@ const {
878
867
  style: {
879
868
  width: "100%"
880
869
  },
881
- value: n.loading ? void 0 : i[n.name],
870
+ value: n.loading ? void 0 : o[n.name],
882
871
  optionFilterProp: "label",
883
872
  placeholder: n.placeholder || "\u8BF7\u9009\u62E9",
884
873
  showSearch: n.showSearch,
885
874
  allowClear: n.allowClear || n.allowClear === !1 ? n.allowClear : !0,
886
- getPopupContainer: (b) => b && b.parentNode ? b.parentNode : b,
875
+ getPopupContainer: (p) => p && p.parentNode ? p.parentNode : p,
887
876
  notFoundContent: n.loading === void 0 ? void 0 : n.loading ? u(Pe, {
888
877
  size: "small"
889
878
  }, null) : void 0,
890
- onChange: (b) => x(b, n)
879
+ onChange: (p) => w(p, n)
891
880
  }, n.field || {}), {
892
881
  default: () => {
893
- var b;
894
- return [((b = n.valueEnum) == null ? void 0 : b.length) || n.valueEnum.map((L) => u(Xe.Option, {
882
+ var p;
883
+ return [((p = n.valueEnum) == null ? void 0 : p.length) || n.valueEnum.map((L) => u(Xe.Option, {
895
884
  key: L.value,
896
885
  value: L.value
897
886
  }, {
@@ -905,15 +894,15 @@ const {
905
894
  style: {
906
895
  width: "100%"
907
896
  },
908
- value: i[n.name],
897
+ value: o[n.name],
909
898
  placeholder: n.placeholder || "\u8BF7\u9009\u62E9",
910
899
  allowClear: n.allowClear || n.allowClear === !1 ? n.allowClear : !0,
911
900
  treeData: n.valueEnum,
912
- getPopupContainer: (b) => b && b.parentNode ? b.parentNode : b,
901
+ getPopupContainer: (p) => p && p.parentNode ? p.parentNode : p,
913
902
  notFoundContent: n.loading === void 0 ? void 0 : n.loading ? u(Pe, {
914
903
  size: "small"
915
904
  }, null) : void 0,
916
- onChange: (b) => x(b, n)
905
+ onChange: (p) => w(p, n)
917
906
  }, n.field || {}), null);
918
907
  break;
919
908
  case "date":
@@ -921,14 +910,14 @@ const {
921
910
  style: {
922
911
  width: "100%"
923
912
  },
924
- value: i[n.name] ? V(i[n.name], n.valueFormat || "YYYY-MM-DD") : void 0,
925
- getPopupContainer: (b) => b && b.parentNode ? b.parentNode : b,
913
+ value: o[n.name] ? V(o[n.name], n.valueFormat || "YYYY-MM-DD") : void 0,
914
+ getPopupContainer: (p) => p && p.parentNode ? p.parentNode : p,
926
915
  placeholder: n.placeholder || "\u8BF7\u9009\u62E9",
927
916
  allowClear: n.allowClear || n.allowClear === !1 ? n.allowClear : !0,
928
917
  format: n.valueFormat || "YYYY-MM-DD",
929
918
  showTime: n.showTime,
930
919
  showToday: n.showToday || !0,
931
- onChange: (b) => x(b, n)
920
+ onChange: (p) => w(p, n)
932
921
  }, n.field || {}), null);
933
922
  break;
934
923
  case "dateMonth":
@@ -936,10 +925,10 @@ const {
936
925
  style: {
937
926
  width: "100%"
938
927
  },
939
- value: i[n.name] ? V(i[n.name], n.valueFormat || "YYYY-MM") : void 0,
940
- getPopupContainer: (b) => b && b.parentNode ? b.parentNode : b,
928
+ value: o[n.name] ? V(o[n.name], n.valueFormat || "YYYY-MM") : void 0,
929
+ getPopupContainer: (p) => p && p.parentNode ? p.parentNode : p,
941
930
  placeholder: n.placeholder || "\u8BF7\u9009\u62E9",
942
- onChange: (b) => x(b, n)
931
+ onChange: (p) => w(p, n)
943
932
  }, n.field || {}), null);
944
933
  break;
945
934
  case "dateRange":
@@ -947,12 +936,12 @@ const {
947
936
  style: {
948
937
  width: "100%"
949
938
  },
950
- value: (O = i[n.name]) != null && O.length ? [V(i[n.name][0], n.valueFormat || "YYYY-MM-DD HH:mm:ss"), V(i[n.name][1], n.valueFormat || "YYYY-MM-DD HH:mm:ss")] : void 0,
951
- getPopupContainer: (b) => b && b.parentNode ? b.parentNode : b,
939
+ value: (O = o[n.name]) != null && O.length ? [V(o[n.name][0], n.valueFormat || "YYYY-MM-DD HH:mm:ss"), V(o[n.name][1], n.valueFormat || "YYYY-MM-DD HH:mm:ss")] : void 0,
940
+ getPopupContainer: (p) => p && p.parentNode ? p.parentNode : p,
952
941
  placeholder: n.placeholder || ["\u5F00\u59CB\u65E5\u671F", "\u7ED3\u675F\u65E5\u671F"],
953
942
  format: n.valueFormat || "YYYY-MM-DD HH:mm:ss",
954
943
  showTime: n.showTime,
955
- onChange: (b) => x(b, n)
944
+ onChange: (p) => w(p, n)
956
945
  }, n.field || {}), null);
957
946
  break;
958
947
  case "time":
@@ -960,13 +949,13 @@ const {
960
949
  style: {
961
950
  width: "100%"
962
951
  },
963
- value: i[n.name] ? V(i[n.name], n.valueFormat || "HH:mm:ss") : void 0,
964
- getPopupContainer: (b) => b && b.parentNode ? b.parentNode : b,
952
+ value: o[n.name] ? V(o[n.name], n.valueFormat || "HH:mm:ss") : void 0,
953
+ getPopupContainer: (p) => p && p.parentNode ? p.parentNode : p,
965
954
  placeholder: n.placeholder || "\u8BF7\u9009\u62E9",
966
955
  allowClear: n.allowClear || n.allowClear === !1 ? n.allowClear : !0,
967
956
  use12Hours: n.use12Hours,
968
957
  format: n.valueFormat || "HH:mm:ss",
969
- onChange: (b) => x(b, n)
958
+ onChange: (p) => w(p, n)
970
959
  }, n.field || {}), null);
971
960
  break;
972
961
  }
@@ -982,10 +971,10 @@ const {
982
971
  var v;
983
972
  const n = [...e.searchMap, ...((v = t.default) == null ? void 0 : v.call(t)) || []];
984
973
  return n.map((D, O) => {
985
- const b = {
974
+ const p = {
986
975
  width: `${(100 - (c.value - 1) * 2) / c.value}%`
987
- }, L = g(O, c.value, b);
988
- return n.length < c.value || p.value ? u(Me, null, [B({
976
+ }, L = g(O, c.value, p);
977
+ return n.length < c.value || b.value ? u(Me, null, [B({
989
978
  formItemStyle: L,
990
979
  item: D
991
980
  }), O === n.length - 1 && I({
@@ -993,8 +982,8 @@ const {
993
982
  flex: 1,
994
983
  justifyContent: "flex-end"
995
984
  },
996
- advanced: p.value,
997
- showAdvanced: p.value
985
+ advanced: b.value,
986
+ showAdvanced: b.value
998
987
  })]) : u(Me, null, [O < c.value - 1 && B({
999
988
  formItemStyle: L,
1000
989
  item: D
@@ -1029,8 +1018,8 @@ const {
1029
1018
  rt.inheritAttrs = !1;
1030
1019
  function Mn(e, a) {
1031
1020
  for (var t = Ie({}, e), l = 0; l < a.length; l += 1) {
1032
- var o = a[l];
1033
- delete t[o];
1021
+ var i = a[l];
1022
+ delete t[i];
1034
1023
  }
1035
1024
  return t;
1036
1025
  }
@@ -1047,10 +1036,10 @@ const Fe = ({
1047
1036
  treeKey: t,
1048
1037
  fixed: l
1049
1038
  }, {
1050
- slots: o
1039
+ slots: i
1051
1040
  }) => {
1052
1041
  const {
1053
- cacheColumns: i,
1042
+ cacheColumns: o,
1054
1043
  settingsAction: h
1055
1044
  } = ce();
1056
1045
  return a ? u(J, {
@@ -1059,10 +1048,10 @@ const Fe = ({
1059
1048
  default: () => {
1060
1049
  var d;
1061
1050
  return [u("span", {
1062
- onClick: (p) => {
1051
+ onClick: (b) => {
1063
1052
  var y, S;
1064
- p.stopPropagation(), p.preventDefault();
1065
- const r = ((y = f(i).find((g) => g.uuid === t)) == null ? void 0 : y.key) || "", s = (h == null ? void 0 : h.columnsMap[r]) || {};
1053
+ b.stopPropagation(), b.preventDefault();
1054
+ const r = ((y = f(o).find((g) => g.uuid === t)) == null ? void 0 : y.key) || "", s = (h == null ? void 0 : h.columnsMap[r]) || {};
1066
1055
  if (typeof s.disable == "boolean" ? s.disable : (S = s.disable) == null ? void 0 : S.icon)
1067
1056
  return;
1068
1057
  const c = {
@@ -1074,7 +1063,7 @@ const Fe = ({
1074
1063
  };
1075
1064
  h == null || h.setColumnsMap(c, "fixed");
1076
1065
  }
1077
- }, [(d = o.default) == null ? void 0 : d.call(o)])];
1066
+ }, [(d = i.default) == null ? void 0 : d.call(i)])];
1078
1067
  }
1079
1068
  }) : null;
1080
1069
  }, Pn = ({
@@ -1082,12 +1071,12 @@ const Fe = ({
1082
1071
  title: a,
1083
1072
  className: t,
1084
1073
  fixed: l,
1085
- autoScroll: o
1074
+ autoScroll: i
1086
1075
  }) => {
1087
1076
  var r;
1088
1077
  const {
1089
- cacheColumns: i
1090
- } = ce(), h = ((r = f(i).find((s) => s.uuid === e)) == null ? void 0 : r.key) || "", d = T(() => h === "action" && (o == null ? void 0 : o.value)), p = u("span", {
1078
+ cacheColumns: o
1079
+ } = ce(), h = ((r = f(o).find((s) => s.uuid === e)) == null ? void 0 : r.key) || "", d = T(() => h === "action" && (i == null ? void 0 : i.value)), b = u("span", {
1091
1080
  class: `${t}-list-item-option`
1092
1081
  }, [u(Fe, {
1093
1082
  treeKey: e,
@@ -1116,8 +1105,8 @@ const Fe = ({
1116
1105
  key: e
1117
1106
  }, [u("div", {
1118
1107
  class: `${t}-list-item-title`
1119
- }, [a]), p]);
1120
- }, De = we({
1108
+ }, [a]), b]);
1109
+ }, De = xe({
1121
1110
  props: {
1122
1111
  list: Array,
1123
1112
  keys: Array,
@@ -1131,90 +1120,90 @@ const Fe = ({
1131
1120
  }
1132
1121
  },
1133
1122
  setup(e) {
1134
- const a = N(Ne().uuid(15)), t = T(() => e.list && e.list.length > 0), l = N([]), o = N([]), {
1135
- cacheColumns: i,
1123
+ const a = N(Ne().uuid(15)), t = T(() => e.list && e.list.length > 0), l = N([]), i = N([]), {
1124
+ cacheColumns: o,
1136
1125
  slots: h,
1137
1126
  settingsAction: d
1138
- } = ce(), p = (y, S) => y.map(({
1127
+ } = ce(), b = (y, S) => y.map(({
1139
1128
  key: g,
1140
- children: x,
1129
+ children: w,
1141
1130
  uuid: F,
1142
- ...w
1131
+ ...x
1143
1132
  }) => {
1144
1133
  var Y;
1145
1134
  const R = (d == null ? void 0 : d.columnsMap[g || "null"]) || {
1146
1135
  show: !0
1147
1136
  };
1148
1137
  let M = !1;
1149
- R.show !== !1 && (S == null ? void 0 : S.show) !== !1 && !x && (M = !0);
1138
+ R.show !== !1 && (S == null ? void 0 : S.show) !== !1 && !w && (M = !0);
1150
1139
  const I = {
1151
1140
  key: F || "",
1152
- ...Mn(w, ["dataIndex"]),
1141
+ ...Mn(x, ["dataIndex"]),
1153
1142
  checked: M,
1154
1143
  selectable: !1,
1155
1144
  disabled: R.disable === !0,
1156
1145
  disableCheckbox: typeof R.disable == "boolean" ? R.disable : (Y = R.disable) == null ? void 0 : Y.checkbox,
1157
1146
  isLeaf: !0
1158
1147
  };
1159
- return x && (I.children = p(x, R)), I;
1148
+ return w && (I.children = b(w, R)), I;
1160
1149
  });
1161
1150
  oe(() => {
1162
- const y = p(e.list || []);
1163
- l.value = y, o.value = y.filter((S) => S.checked).map((S) => S.key), (d == null ? void 0 : d.operationType.value) === "fixed" && (a.value = Ne().uuid(15));
1151
+ const y = b(e.list || []);
1152
+ l.value = y, i.value = y.filter((S) => S.checked).map((S) => S.key), (d == null ? void 0 : d.operationType.value) === "fixed" && (a.value = Ne().uuid(15));
1164
1153
  });
1165
1154
  const r = ge((y, S, g) => {
1166
1155
  var X, n;
1167
- const x = ((X = f(i).find((v) => v.uuid === y)) == null ? void 0 : X.key) || "", F = ((n = f(i).find((v) => v.uuid === S)) == null ? void 0 : n.key) || "", w = {
1156
+ const w = ((X = f(o).find((v) => v.uuid === y)) == null ? void 0 : X.key) || "", F = ((n = f(o).find((v) => v.uuid === S)) == null ? void 0 : n.key) || "", x = {
1168
1157
  ...d == null ? void 0 : d.columnsMap
1169
- }, R = [...d.sortKeyColumns.value], M = R.findIndex((v) => v === x), I = R.findIndex((v) => v === F), Y = g > M;
1158
+ }, R = [...d.sortKeyColumns.value], M = R.findIndex((v) => v === w), I = R.findIndex((v) => v === F), Y = g > M;
1170
1159
  if (M < 0)
1171
1160
  return;
1172
1161
  const B = R[M];
1173
1162
  R.splice(M, 1), g === 0 ? R.unshift(B) : R.splice(Y ? I : I + 1, 0, B), R.forEach((v, D) => {
1174
- w[v] = {
1175
- ...w[v] || {},
1163
+ x[v] = {
1164
+ ...x[v] || {},
1176
1165
  order: D
1177
1166
  };
1178
- }), d == null || d.setColumnsMap(w, "drop"), d == null || d.setSortKeyColumns(R);
1167
+ }), d == null || d.setColumnsMap(x, "drop"), d == null || d.setSortKeyColumns(R);
1179
1168
  }), s = ge((y) => {
1180
1169
  var R;
1181
- const S = y.node.key, g = ((R = f(i).find((M) => M.uuid === S)) == null ? void 0 : R.key) || "", F = {
1170
+ const S = y.node.key, g = ((R = f(o).find((M) => M.uuid === S)) == null ? void 0 : R.key) || "", F = {
1182
1171
  ...(d == null ? void 0 : d.columnsMap[g]) || {}
1183
1172
  };
1184
1173
  F.show = y.checked;
1185
- const w = {
1174
+ const x = {
1186
1175
  ...d == null ? void 0 : d.columnsMap,
1187
1176
  [g]: F
1188
1177
  };
1189
- d == null || d.setColumnsMap(w, "show");
1178
+ d == null || d.setColumnsMap(x, "show");
1190
1179
  }), C = (y) => {
1191
- const S = f(i).find((g) => g.uuid === y.key);
1180
+ const S = f(o).find((g) => g.uuid === y.key);
1192
1181
  return y.title || Pt(h, "headerCell", {
1193
1182
  title: S.title,
1194
1183
  column: S
1195
1184
  }, () => [S.title]);
1196
1185
  }, c = () => {
1197
1186
  var y, S;
1198
- return u(jt, {
1187
+ return u(zt, {
1199
1188
  key: a.value,
1200
1189
  draggable: e.draggable && !!((y = l.value) != null && y.length) && ((S = l.value) == null ? void 0 : S.length) > 1,
1201
1190
  checkable: e.checkable,
1202
1191
  blockNode: !0,
1203
1192
  showLine: !1,
1204
- checkedKeys: o.value,
1193
+ checkedKeys: i.value,
1205
1194
  height: 280,
1206
1195
  onDrop: (g) => {
1207
- const x = g.node.key, F = g.dragNode.key, {
1208
- dropPosition: w,
1196
+ const w = g.node.key, F = g.dragNode.key, {
1197
+ dropPosition: x,
1209
1198
  dropToGap: R
1210
- } = g, M = w === -1 || !R ? w + 1 : w;
1211
- r(F, x, M);
1199
+ } = g, M = x === -1 || !R ? x + 1 : x;
1200
+ r(F, w, M);
1212
1201
  },
1213
- onCheck: (g, x) => s(x),
1202
+ onCheck: (g, w) => s(w),
1214
1203
  treeData: l.value
1215
1204
  }, {
1216
1205
  title: (g) => {
1217
- const x = {
1206
+ const w = {
1218
1207
  ...g,
1219
1208
  children: void 0,
1220
1209
  title: C(g),
@@ -1222,8 +1211,8 @@ const Fe = ({
1222
1211
  };
1223
1212
  return u(Pn, _({
1224
1213
  className: e.className
1225
- }, x, {
1226
- treeKey: x.key
1214
+ }, w, {
1215
+ treeKey: w.key
1227
1216
  }), null);
1228
1217
  }
1229
1218
  });
@@ -1238,7 +1227,7 @@ const Fe = ({
1238
1227
  draggable: t,
1239
1228
  checkable: l
1240
1229
  }) => {
1241
- const o = [], i = [], h = [], d = [];
1230
+ const i = [], o = [], h = [], d = [];
1242
1231
  e.forEach((s) => {
1243
1232
  if (s.hideInSetting)
1244
1233
  return;
@@ -1248,24 +1237,24 @@ const Fe = ({
1248
1237
  uuid: y
1249
1238
  } = s;
1250
1239
  if ((c || c === void 0) && y && d.push(y), C === "left") {
1251
- i.push(s);
1240
+ o.push(s);
1252
1241
  return;
1253
1242
  }
1254
1243
  if (C === "right") {
1255
- o.push(s);
1244
+ i.push(s);
1256
1245
  return;
1257
1246
  }
1258
1247
  h.push(s);
1259
1248
  });
1260
- const p = o && o.length > 0, r = i && i.length > 0;
1249
+ const b = i && i.length > 0, r = o && o.length > 0;
1261
1250
  return u("div", {
1262
1251
  class: {
1263
1252
  [`${a}-list`]: !0,
1264
- [`${a}-list-group`]: p || r
1253
+ [`${a}-list-group`]: b || r
1265
1254
  }
1266
1255
  }, [u(De, {
1267
1256
  title: "\u56FA\u5B9A\u5728\u5DE6\u4FA7",
1268
- list: i,
1257
+ list: o,
1269
1258
  keys: d,
1270
1259
  draggable: t,
1271
1260
  checkable: l,
@@ -1276,11 +1265,11 @@ const Fe = ({
1276
1265
  draggable: t,
1277
1266
  checkable: l,
1278
1267
  title: "\u4E0D\u56FA\u5B9A",
1279
- showTitle: r || p,
1268
+ showTitle: r || b,
1280
1269
  className: a
1281
1270
  }, null), u(De, {
1282
1271
  title: "\u56FA\u5B9A\u5728\u53F3\u4FA7",
1283
- list: o,
1272
+ list: i,
1284
1273
  keys: d,
1285
1274
  draggable: t,
1286
1275
  checkable: l,
@@ -1295,35 +1284,35 @@ const Fe = ({
1295
1284
  isPor: !0
1296
1285
  }), {
1297
1286
  columns: l,
1298
- settingsAction: o
1299
- } = ce(), i = ge((c = !0) => {
1287
+ settingsAction: i
1288
+ } = ce(), o = ge((c = !0) => {
1300
1289
  const y = {}, S = (g) => {
1301
1290
  g.forEach(({
1302
- key: x,
1291
+ key: w,
1303
1292
  fixed: F,
1304
- index: w,
1293
+ index: x,
1305
1294
  children: R
1306
1295
  }) => {
1307
- const M = at(x, w);
1296
+ const M = ut(w, x);
1308
1297
  M && (y[M] = {
1309
1298
  show: c,
1310
1299
  fixed: F
1311
1300
  }), R && S(R);
1312
1301
  });
1313
1302
  };
1314
- S(l.value), o == null || o.setColumnsMap(y, "show");
1303
+ S(l.value), i == null || i.setColumnsMap(y, "show");
1315
1304
  }), h = ge((c) => {
1316
- c.target.checked ? i() : i(!1);
1305
+ c.target.checked ? o() : o(!1);
1317
1306
  }), d = ge(() => {
1318
- o == null || o.setColumnsMap(o == null ? void 0 : o.cacheColumnsMap, "fixed");
1319
- }), p = T(() => Object.values(o == null ? void 0 : o.columnsMap).filter((c) => !c || c.show === !1)), r = T(() => f(p).length > 0 && f(p).length !== l.value.length);
1320
- return u(zt, {
1307
+ i == null || i.setColumnsMap(i == null ? void 0 : i.cacheColumnsMap, "fixed");
1308
+ }), b = T(() => Object.values(i == null ? void 0 : i.columnsMap).filter((c) => !c || c.show === !1)), r = T(() => f(b).length > 0 && f(b).length !== l.value.length);
1309
+ return u(jt, {
1321
1310
  arrowPointAtCenter: !0,
1322
1311
  title: u("div", {
1323
1312
  class: `${t}-title`
1324
1313
  }, [u($t, {
1325
1314
  indeterminate: r.value,
1326
- checked: f(p).length === 0 && f(p).length !== l.value.length,
1315
+ checked: f(b).length === 0 && f(b).length !== l.value.length,
1327
1316
  onChange: (c) => h(c)
1328
1317
  }, {
1329
1318
  default: () => [me("\u5217\u5C55\u793A")]
@@ -1349,7 +1338,7 @@ const Fe = ({
1349
1338
  default: () => [u(J, {
1350
1339
  title: "\u5217\u8BBE\u7F6E"
1351
1340
  }, {
1352
- default: () => [u(ot, null, null)]
1341
+ default: () => [u(it, null, null)]
1353
1342
  })]
1354
1343
  });
1355
1344
  }, ct = () => {
@@ -1410,32 +1399,32 @@ function Ze(e) {
1410
1399
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ye(e);
1411
1400
  }
1412
1401
  const {
1413
- useBreakpoint: jn
1414
- } = je;
1415
- function zn(e) {
1402
+ useBreakpoint: zn
1403
+ } = ze;
1404
+ function jn(e) {
1416
1405
  if (ye(e))
1417
1406
  return e;
1418
1407
  if (e) {
1419
1408
  const a = e, {
1420
1409
  icon: t,
1421
1410
  tooltip: l,
1422
- onClick: o,
1423
- key: i
1411
+ onClick: i,
1412
+ key: o
1424
1413
  } = a;
1425
1414
  return t && l ? u(J, {
1426
1415
  title: l
1427
1416
  }, {
1428
1417
  default: () => [u("span", {
1429
- key: i,
1418
+ key: o,
1430
1419
  onClick: () => {
1431
- o && o(i);
1420
+ i && i(o);
1432
1421
  }
1433
1422
  }, [t])]
1434
1423
  }) : t;
1435
1424
  }
1436
1425
  return null;
1437
1426
  }
1438
- const dt = we({
1427
+ const dt = xe({
1439
1428
  props: {
1440
1429
  actions: ne.toolBarBtn,
1441
1430
  settings: [Array],
@@ -1446,13 +1435,13 @@ const dt = we({
1446
1435
  optionsExtra: ne.optionsExtra
1447
1436
  },
1448
1437
  setup(e) {
1449
- const a = jn(), t = T(() => {
1438
+ const a = zn(), t = T(() => {
1450
1439
  var r;
1451
1440
  return !!(e.titleTip || e.headerTitle || ((r = e.actions) == null ? void 0 : r.length));
1452
1441
  }), l = T(() => {
1453
1442
  var r;
1454
1443
  return !!(((r = e.settings) == null ? void 0 : r.length) || e.optionsExtra);
1455
- }), o = T(() => !!(e.titleTip || e.headerTitle)), i = Se(() => {
1444
+ }), i = T(() => !!(e.titleTip || e.headerTitle)), o = Se(() => {
1456
1445
  var s;
1457
1446
  let r;
1458
1447
  return Array.isArray(e.actions) ? ((s = e.actions) == null ? void 0 : s.length) < 1 ? null : u(te, {
@@ -1467,7 +1456,7 @@ const dt = we({
1467
1456
  }) : e.actions;
1468
1457
  }), h = Se(() => !t.value && l.value ? u("div", {
1469
1458
  class: `${e.prefixCls}-left`
1470
- }, null) : o.value ? u(te, {
1459
+ }, null) : i.value ? u(te, {
1471
1460
  class: `${e.prefixCls}-left`
1472
1461
  }, {
1473
1462
  default: () => [u("div", {
@@ -1476,15 +1465,15 @@ const dt = we({
1476
1465
  title: e.titleTipText
1477
1466
  }, {
1478
1467
  default: () => [re(e.titleTip) && e.titleTip ? u(un, null, null) : e.titleTip]
1479
- })]), i.value && u("div", {
1468
+ })]), o.value && u("div", {
1480
1469
  class: `${e.prefixCls}-actions`
1481
- }, [i.value])]
1470
+ }, [o.value])]
1482
1471
  }) : u(te, {
1483
1472
  class: `${e.prefixCls}-left`
1484
1473
  }, {
1485
- default: () => [i.value && u("div", {
1474
+ default: () => [o.value && u("div", {
1486
1475
  class: `${e.prefixCls}-actions`
1487
- }, [i.value])]
1476
+ }, [o.value])]
1488
1477
  })), d = Se(() => {
1489
1478
  let r;
1490
1479
  return l.value ? u(te, {
@@ -1500,7 +1489,7 @@ const dt = we({
1500
1489
  align: "center",
1501
1490
  class: `${e.prefixCls}-setting-items`
1502
1491
  }, Ze(r = e.settings.map((C, c) => {
1503
- const y = zn(C);
1492
+ const y = jn(C);
1504
1493
  return u("div", {
1505
1494
  key: c,
1506
1495
  class: `${e.prefixCls}-setting-item`
@@ -1510,7 +1499,7 @@ const dt = we({
1510
1499
  }) : null];
1511
1500
  }
1512
1501
  }) : null;
1513
- }), p = Se(() => {
1502
+ }), b = Se(() => {
1514
1503
  if (!l.value && !t.value)
1515
1504
  return null;
1516
1505
  const r = {
@@ -1523,7 +1512,7 @@ const dt = we({
1523
1512
  });
1524
1513
  return () => u("div", {
1525
1514
  class: `${e.prefixCls}`
1526
- }, [p.value]);
1515
+ }, [b.value]);
1527
1516
  }
1528
1517
  });
1529
1518
  dt.inheritAttrs = !1;
@@ -1539,7 +1528,7 @@ function $n() {
1539
1528
  },
1540
1529
  setting: {
1541
1530
  text: "\u5217\u8BBE\u7F6E",
1542
- icon: u(ot, null, null)
1531
+ icon: u(it, null, null)
1543
1532
  },
1544
1533
  fullScreen: {
1545
1534
  text: "\u5168\u5C4F",
@@ -1552,8 +1541,8 @@ function Yn(e, a) {
1552
1541
  const l = e[t];
1553
1542
  if (!l)
1554
1543
  return null;
1555
- let o = l === !0 ? a[t] : () => l == null ? void 0 : l();
1556
- if (typeof o != "function" && (o = () => {
1544
+ let i = l === !0 ? a[t] : () => l == null ? void 0 : l();
1545
+ if (typeof i != "function" && (i = () => {
1557
1546
  }), t === "setting")
1558
1547
  return u(Nn, _(e[t], {
1559
1548
  key: t
@@ -1561,16 +1550,16 @@ function Yn(e, a) {
1561
1550
  if (t === "fullScreen")
1562
1551
  return u("span", {
1563
1552
  key: t,
1564
- onClick: o
1553
+ onClick: i
1565
1554
  }, [u(ct, null, null)]);
1566
- const i = $n()[t];
1567
- return i ? u("span", {
1555
+ const o = $n()[t];
1556
+ return o ? u("span", {
1568
1557
  key: t,
1569
- onClick: o
1558
+ onClick: i
1570
1559
  }, [u(J, {
1571
- title: i.text
1560
+ title: o.text
1572
1561
  }, {
1573
- default: () => [i.icon]
1562
+ default: () => [o.icon]
1574
1563
  })]) : null;
1575
1564
  }).filter((t) => t);
1576
1565
  }
@@ -1579,27 +1568,27 @@ function Bn({
1579
1568
  headerTitle: a,
1580
1569
  titleTip: t,
1581
1570
  titleTipText: l,
1582
- options: o,
1583
- optionsExtra: i,
1571
+ options: i,
1572
+ optionsExtra: o,
1584
1573
  settingExtra: h
1585
1574
  }) {
1586
1575
  const d = $e({
1587
1576
  suffixCls: "table-list-toolbar",
1588
1577
  isPor: !0
1589
1578
  }), {
1590
- action: p
1579
+ action: b
1591
1580
  } = ce(), r = T(() => {
1592
1581
  const C = {
1593
- reload: () => p == null ? void 0 : p.reload(),
1582
+ reload: () => b == null ? void 0 : b.reload(),
1594
1583
  density: !0,
1595
1584
  setting: !0,
1596
- fullScreen: () => p == null ? void 0 : p.toggle()
1585
+ fullScreen: () => b == null ? void 0 : b.toggle()
1597
1586
  };
1598
- if (!Object.keys(o || {}).length)
1587
+ if (!Object.keys(i || {}).length)
1599
1588
  return [];
1600
1589
  const c = {
1601
1590
  ...C,
1602
- ...o
1591
+ ...i
1603
1592
  };
1604
1593
  return c.setting !== !1 && h && (c.setting = {}, c.setting.extra = h), Yn(c, {
1605
1594
  ...C
@@ -1608,7 +1597,7 @@ function Bn({
1608
1597
  return u(dt, {
1609
1598
  prefixCls: d,
1610
1599
  actions: e || [],
1611
- optionsExtra: i,
1600
+ optionsExtra: o,
1612
1601
  headerTitle: a,
1613
1602
  settings: f(r),
1614
1603
  titleTip: t,
@@ -1632,9 +1621,9 @@ function Hn(e, a, t) {
1632
1621
  if (!a)
1633
1622
  return e;
1634
1623
  let l = e;
1635
- if (ze(a)) {
1636
- const o = a.node === "a" ? "span" : a.node;
1637
- return u(o, _(a.attr, {
1624
+ if (je(a)) {
1625
+ const i = a.node === "a" ? "span" : a.node;
1626
+ return u(i, _(a.attr, {
1638
1627
  class: [a.class, a.node === "a" ? `${t}-a` : ""],
1639
1628
  onClick: a.click
1640
1629
  }), Vn(e) ? e : {
@@ -1660,13 +1649,13 @@ function Hn(e, a, t) {
1660
1649
  return l;
1661
1650
  }
1662
1651
  const {
1663
- useBreakpoint: Wn
1664
- } = je, An = {
1652
+ useBreakpoint: An
1653
+ } = ze, Wn = {
1665
1654
  reload: !0,
1666
1655
  density: !0,
1667
1656
  setting: !0,
1668
1657
  fullScreen: !0
1669
- }, Oe = we({
1658
+ }, Oe = xe({
1670
1659
  name: "GProTable",
1671
1660
  props: ne,
1672
1661
  emits: ["reset", "reload", "submit", "sizeChange", "expandedRowsChange", "expand", "change", "requestError", "beforeSearchSubmit", "columnsStateChange", "loadingChange"],
@@ -1675,17 +1664,17 @@ const {
1675
1664
  emit: a,
1676
1665
  slots: t,
1677
1666
  attrs: l,
1678
- expose: o
1667
+ expose: i
1679
1668
  }) {
1680
- const i = $e({
1669
+ const o = $e({
1681
1670
  suffixCls: "table",
1682
1671
  isPor: !0
1683
- }), h = Wn(), d = N(window.innerWidth), p = N(), r = N(), s = N(e.waitRequest);
1672
+ }), h = An(), d = N(window.innerWidth), b = N(), r = N(), s = N(e.waitRequest);
1684
1673
  oe(() => s.value = e.waitRequest);
1685
1674
  const {
1686
1675
  toggle: C,
1687
1676
  isFullscreen: c
1688
- } = nt(p), y = T(() => ({
1677
+ } = nt(b), y = T(() => ({
1689
1678
  ...e
1690
1679
  })), S = T(() => {
1691
1680
  var m, k;
@@ -1702,13 +1691,13 @@ const {
1702
1691
  showIndex: e.showIndex
1703
1692
  });
1704
1693
  }), {
1705
- getLoading: x,
1694
+ getLoading: w,
1706
1695
  setLoading: F
1707
1696
  } = cn({
1708
1697
  emit: a,
1709
1698
  loading: U(e, "loading")
1710
1699
  }), {
1711
- sizeRef: w,
1700
+ sizeRef: x,
1712
1701
  setTableSize: R
1713
1702
  } = dn({
1714
1703
  emit: a,
@@ -1720,10 +1709,10 @@ const {
1720
1709
  slots: t,
1721
1710
  props: y,
1722
1711
  pagination: U(e, "pagination")
1723
- }), Y = xn(e), {
1712
+ }), Y = wn(e), {
1724
1713
  getScrollRef: B,
1725
1714
  breakpoint: X
1726
- } = wn({
1715
+ } = xn({
1727
1716
  ...Y,
1728
1717
  innerWidth: d,
1729
1718
  columns: g,
@@ -1732,7 +1721,7 @@ const {
1732
1721
  getProColumns: v,
1733
1722
  cacheProColumns: D,
1734
1723
  setColumns: O,
1735
- changeColumns: b,
1724
+ changeColumns: p,
1736
1725
  resizeColumnWidth: L
1737
1726
  } = Sn({
1738
1727
  ...n,
@@ -1742,20 +1731,20 @@ const {
1742
1731
  }), {
1743
1732
  columnsMap: Te,
1744
1733
  operationType: P,
1745
- setColumnsMap: j,
1734
+ setColumnsMap: z,
1746
1735
  sortKeyColumns: K,
1747
1736
  cacheColumnsMap: le,
1748
1737
  setSortKeyColumns: de
1749
- } = pn({
1738
+ } = bn({
1750
1739
  columns: D,
1751
1740
  columnsState: U(e, "columnsState"),
1752
- changeColumns: b
1741
+ changeColumns: p
1753
1742
  }), {
1754
- formDataRef: be,
1743
+ formDataRef: pe,
1755
1744
  formParamsRef: fe,
1756
- defaultParamsRef: pe,
1745
+ defaultParamsRef: be,
1757
1746
  setFormParams: Q
1758
- } = bn({
1747
+ } = pn({
1759
1748
  search: U(e, "search"),
1760
1749
  searchMap: U(e, "searchMap"),
1761
1750
  params: U(e, "params"),
@@ -1765,9 +1754,9 @@ const {
1765
1754
  changeRowKey: he,
1766
1755
  selectRowKey: q,
1767
1756
  selectAllRowKey: ie,
1768
- syncSelectedRows: z,
1757
+ syncSelectedRows: j,
1769
1758
  removeRowKeys: ae
1770
- } = hn(U(e, "rowKey"), U(e, "rowSelection")), W = mn(e), {
1759
+ } = hn(U(e, "rowKey"), U(e, "rowSelection")), A = mn(e), {
1771
1760
  reload: Re,
1772
1761
  reSetDataList: ft,
1773
1762
  changeDataValue: ht,
@@ -1775,22 +1764,22 @@ const {
1775
1764
  getDataSourceRef: Ke,
1776
1765
  handleTableChange: Le
1777
1766
  } = gn({
1778
- ...W,
1767
+ ...A,
1779
1768
  waitRequest: s
1780
1769
  }, {
1781
- getLoading: x,
1770
+ getLoading: w,
1782
1771
  getPaginationInfo: M,
1783
1772
  setPagination: I,
1784
1773
  removeRowKeys: ae,
1785
- syncSelectedRows: z,
1774
+ syncSelectedRows: j,
1786
1775
  setLoading: F,
1787
1776
  setColumns: O,
1788
1777
  columns: v,
1789
1778
  formParamsRef: fe,
1790
1779
  onBeforeSearchSubmit: e.onBeforeSearchSubmit
1791
1780
  }, a), vt = T(() => e.options ? {
1792
- ...An,
1793
- ...H(ze(e.options) ? e.options : {})
1781
+ ...Wn,
1782
+ ...H(je(e.options) ? e.options : {})
1794
1783
  } : {});
1795
1784
  tt(() => {
1796
1785
  window.addEventListener("resize", Ve);
@@ -1805,9 +1794,9 @@ const {
1805
1794
  ...l,
1806
1795
  ...e,
1807
1796
  virtualScroll: S.value,
1808
- size: f(w),
1797
+ size: f(x),
1809
1798
  scroll: f(B),
1810
- loading: !!f(x),
1799
+ loading: !!f(w),
1811
1800
  columns: ke(f(v).filter((E) => E.show || E.show === void 0)),
1812
1801
  pagination: ke(f(M)),
1813
1802
  dataSource: m
@@ -1816,15 +1805,15 @@ const {
1816
1805
  }), mt = T(() => {
1817
1806
  var m;
1818
1807
  return [{
1819
- [`${i}`]: !0,
1808
+ [`${o}`]: !0,
1820
1809
  [`${l.class}`]: l.class,
1821
- [`${i}-no-scroll`]: !Object.keys(((m = He.value) == null ? void 0 : m.scroll) || {}).length,
1822
- [`${i}-table-tree`]: Be.value,
1823
- [`${i}-full-screen`]: c.value
1810
+ [`${o}-no-scroll`]: !Object.keys(((m = He.value) == null ? void 0 : m.scroll) || {}).length,
1811
+ [`${o}-table-tree`]: Be.value,
1812
+ [`${o}-full-screen`]: c.value
1824
1813
  }];
1825
1814
  });
1826
1815
  Rn({
1827
- tableSize: w,
1816
+ tableSize: x,
1828
1817
  columns: v,
1829
1818
  cacheColumns: g,
1830
1819
  action: {
@@ -1836,15 +1825,15 @@ const {
1836
1825
  autoScroll: U(e, "autoScroll"),
1837
1826
  columnsMap: Te,
1838
1827
  operationType: P,
1839
- setColumnsMap: j,
1828
+ setColumnsMap: z,
1840
1829
  sortKeyColumns: K,
1841
1830
  cacheColumnsMap: le,
1842
1831
  setSortKeyColumns: de
1843
1832
  },
1844
1833
  setPagination: I,
1845
- changeColumns: b,
1834
+ changeColumns: p,
1846
1835
  slots: t
1847
- }), o({
1836
+ }), i({
1848
1837
  formRef: () => ({
1849
1838
  formParams: fe,
1850
1839
  getFormState: () => {
@@ -1858,7 +1847,7 @@ const {
1858
1847
  }),
1859
1848
  actionRef: () => ({
1860
1849
  pageParams: M.value,
1861
- getLoadingStatus: x.value,
1850
+ getLoadingStatus: w.value,
1862
1851
  reload: Re,
1863
1852
  reloadAndRest: async (m) => {
1864
1853
  s.value = !0, I({
@@ -1875,29 +1864,29 @@ const {
1875
1864
  const gt = (m) => {
1876
1865
  const k = {};
1877
1866
  return Object.keys(m).map((E) => (Ln.includes(E) || (k[E] = m[E]), E)), k;
1878
- }, We = T(() => {
1867
+ }, Ae = T(() => {
1879
1868
  var Z;
1880
1869
  let m;
1881
1870
  const k = f(y).direction === "rtl" ? "bottomLeft" : "right", E = (Z = f(M)) == null ? void 0 : Z.position;
1882
1871
  if (E !== null && Array.isArray(E)) {
1883
- const se = E.find((ee) => ee.indexOf("top") !== -1), $ = E.find((ee) => ee.indexOf("bottom") !== -1), A = E.every((ee) => `${ee}` == "none");
1884
- !se && !$ && !A && (m = k), se && (m = se.toLowerCase().replace("top", "")), $ && (m = $.toLowerCase().replace("bottom", ""));
1872
+ const se = E.find((ee) => ee.indexOf("top") !== -1), $ = E.find((ee) => ee.indexOf("bottom") !== -1), W = E.every((ee) => `${ee}` == "none");
1873
+ !se && !$ && !W && (m = k), se && (m = se.toLowerCase().replace("top", "")), $ && (m = $.toLowerCase().replace("bottom", ""));
1885
1874
  } else
1886
1875
  m = k;
1887
1876
  return m;
1888
- }), Ae = async (m) => {
1877
+ }), We = async (m) => {
1889
1878
  e.search.showSearch ? (Q({
1890
1879
  ...m,
1891
1880
  ...e.params || {}
1892
1881
  }), await Re()) : Q(m);
1893
1882
  }, yt = async (m, k) => {
1894
- k ? (a("reset", m), e.request && await Ae(m)) : e.request ? (a("submit", m), await Ae(m)) : a("submit", m);
1883
+ k ? (a("reset", m), e.request && await We(m)) : e.request ? (a("submit", m), await We(m)) : a("submit", m);
1895
1884
  }, _e = (m, k = {}, E = {}) => {
1896
1885
  I({
1897
1886
  current: m.current,
1898
1887
  pageSize: m.pageSize
1899
1888
  }), Le(m, k, E);
1900
- }, bt = (m, k) => {
1889
+ }, pt = (m, k) => {
1901
1890
  var E;
1902
1891
  I({
1903
1892
  current: m,
@@ -1907,14 +1896,14 @@ const {
1907
1896
  pageSize: k,
1908
1897
  total: M.value && ((E = M.value) == null ? void 0 : E.total) || 0
1909
1898
  }, {}, {});
1910
- }, pt = (m) => {
1899
+ }, bt = (m) => {
1911
1900
  a("expandedRowsChange", m);
1912
1901
  }, Ct = (m, k) => {
1913
1902
  a("expand", m, k);
1914
- }, St = (m, k) => L(m, k), xt = (m, k, E) => {
1903
+ }, St = (m, k) => L(m, k), wt = (m, k, E) => {
1915
1904
  const Z = E.align === "center" ? "top" : E.align === "left" || !E.align ? "topLeft" : "topRight";
1916
1905
  return k && E.copyable ? u(Lt.Paragraph, {
1917
- class: `${i}-copyable`,
1906
+ class: `${o}-copyable`,
1918
1907
  style: {
1919
1908
  margin: "0",
1920
1909
  width: "100%",
@@ -1927,7 +1916,7 @@ const {
1927
1916
  placement: Z
1928
1917
  }, {
1929
1918
  default: () => [u("div", {
1930
- class: `${i}-ellipsis`
1919
+ class: `${o}-ellipsis`
1931
1920
  }, [m])]
1932
1921
  })]
1933
1922
  }) : k && !E.copyable ? u(J, {
@@ -1935,11 +1924,11 @@ const {
1935
1924
  placement: Z
1936
1925
  }, {
1937
1926
  default: () => [Be.value ? m : u("div", {
1938
- class: `${i}-ellipsis`
1927
+ class: `${o}-ellipsis`
1939
1928
  }, [m])]
1940
1929
  }) : m;
1941
- }, wt = () => {
1942
- const m = it(t, e, "customize");
1930
+ }, xt = () => {
1931
+ const m = at(t, e, "customize");
1943
1932
  return m ? m(Ke.value) : null;
1944
1933
  }, Tt = (m, k, E) => u(Kn, {
1945
1934
  headerTitle: m,
@@ -1954,34 +1943,34 @@ const {
1954
1943
  var Z, se;
1955
1944
  const m = ve(t, e, "headerTitle"), k = ve(t, e, "titleTip"), E = ve(t, e, "toolBarBtn");
1956
1945
  return u("div", {
1957
- ref: ($) => p.value = $,
1946
+ ref: ($) => b.value = $,
1958
1947
  class: mt.value
1959
1948
  }, [u("div", {
1960
1949
  class: "gx-pro-table-content"
1961
- }, [(!!be.value.length || !!((Z = t.search) != null && Z.call(t))) && u(rt, {
1950
+ }, [(!!pe.value.length || !!((Z = t.search) != null && Z.call(t))) && u(rt, {
1962
1951
  ref: r,
1963
1952
  search: e.search,
1964
1953
  modal: e.modalScroll,
1965
- searchMap: be.value,
1966
- prefixCls: i,
1967
- loading: !!f(x),
1954
+ searchMap: pe.value,
1955
+ prefixCls: o,
1956
+ loading: !!f(w),
1968
1957
  onSearch: yt,
1969
- defaultParams: pe
1958
+ defaultParams: be
1970
1959
  }, {
1971
1960
  default: t.search ? () => {
1972
1961
  var $;
1973
1962
  return ($ = t.search) == null ? void 0 : $.call(t);
1974
1963
  } : null
1975
1964
  }), !S.value && Tt(m, E, k), ((se = e.customize) != null ? se : t.customize) ? u(Pe, {
1976
- spinning: !!f(x)
1965
+ spinning: !!f(w)
1977
1966
  }, {
1978
- default: () => [wt(), u(Bt, _({
1967
+ default: () => [xt(), u(Bt, _({
1979
1968
  class: {
1980
1969
  ["ant-table-pagination"]: !0,
1981
- [`ant-table-pagination-${We.value}`]: We.value
1970
+ [`ant-table-pagination-${Ae.value}`]: Ae.value
1982
1971
  }
1983
1972
  }, ke(f(M)), {
1984
- onChange: bt
1973
+ onChange: pt
1985
1974
  }), null)]
1986
1975
  }) : u(Kt, _(He.value, {
1987
1976
  style: e.tableStyle || void 0,
@@ -1989,7 +1978,7 @@ const {
1989
1978
  rowKey: ($) => $[e.rowKey || "sortIndex"],
1990
1979
  transformCellText: ({
1991
1980
  text: $,
1992
- column: A
1981
+ column: W
1993
1982
  }) => {
1994
1983
  const ee = Ee($) ? $ == null ? void 0 : $[0] : $;
1995
1984
  if (ye(ee))
@@ -1997,8 +1986,8 @@ const {
1997
1986
  const {
1998
1987
  value: Rt,
1999
1988
  success: kt
2000
- } = Ut(ee, (A == null ? void 0 : A.columnEmptyText) || (e == null ? void 0 : e.columnEmptyText)), qe = Hn(Rt, A == null ? void 0 : A.valueType, i);
2001
- return A != null && A.ellipsis ? xt(qe, kt, A) : qe;
1989
+ } = Ut(ee, (W == null ? void 0 : W.columnEmptyText) || (e == null ? void 0 : e.columnEmptyText)), qe = Hn(Rt, W == null ? void 0 : W.valueType, o);
1990
+ return W != null && W.ellipsis ? wt(qe, kt, W) : qe;
2002
1991
  },
2003
1992
  rowSelection: e.rowSelection ? {
2004
1993
  ...Ge(e.rowSelection, ["onSelect", "onSelectAll", "onChange", "selectedRowKeys"]),
@@ -2008,7 +1997,7 @@ const {
2008
1997
  onChange: he
2009
1998
  } : void 0,
2010
1999
  onChange: _e,
2011
- onExpandedRowsChange: pt,
2000
+ onExpandedRowsChange: bt,
2012
2001
  onExpand: Ct,
2013
2002
  onResizeColumn: St
2014
2003
  }), {