@gopowerteam/table-render 0.0.152 → 0.0.154

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/es/index.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  var Oe = Object.defineProperty;
2
2
  var Re = (e, t, r) => t in e ? Oe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var M = (e, t, r) => (Re(e, typeof t != "symbol" ? t + "" : t, r), r);
4
- import { ref as g, getCurrentInstance as F, onMounted as z, onUpdated as Ee, reactive as je, createVNode as s, Fragment as K, createTextVNode as q, getCurrentScope as $e, onScopeDispose as Le, unref as Pe, readonly as fe, computed as R, watchEffect as qe, watch as Ye, h as ze, render as Ae, defineComponent as A, isVNode as Be, mergeProps as se, nextTick as re, withDirectives as De, resolveDirective as Ie } from "vue";
5
- import { Button as L, Tag as Ve, Dropdown as ne, Message as Fe, Descriptions as Ke, DescriptionsItem as We, Divider as He, Space as ae, Pagination as Ne, Transfer as Ue, Table as Ge } from "@arco-design/web-vue";
6
- import { useModal as B, onSubmit as Je, ModalProvider as Qe } from "@gopowerteam/modal-render";
3
+ var _ = (e, t, r) => (Re(e, typeof t != "symbol" ? t + "" : t, r), r);
4
+ import { ref as g, getCurrentInstance as F, onMounted as A, onUpdated as $e, reactive as Ee, createVNode as s, Fragment as K, createTextVNode as Y, getCurrentScope as je, onScopeDispose as Le, unref as Pe, readonly as fe, computed as E, watchEffect as qe, watch as Ye, h as ze, render as Ae, defineComponent as B, isVNode as Be, mergeProps as se, nextTick as re, withDirectives as De, resolveDirective as Ie } from "vue";
5
+ import { Button as P, Tag as Ve, Dropdown as ne, Message as Fe, Descriptions as Ke, DescriptionsItem as We, Divider as He, Space as ae, Pagination as Ne, Transfer as Ue, Table as Ge } from "@arco-design/web-vue";
6
+ import { useModal as D, onSubmit as Je, ModalProvider as Qe } from "@gopowerteam/modal-render";
7
7
  import * as Xe from "exceljs";
8
- import D from "dayjs";
8
+ import I from "dayjs";
9
9
  import { FormRender as oe } from "@gopowerteam/form-render";
10
- import { TableRenderResolver as Cr } from "./resolver.mjs";
10
+ import { TableRenderResolver as xr } from "./resolver.mjs";
11
11
  function Ze(e, t, r) {
12
12
  const [u, ...a] = t.index ? t.index.split(".").reverse() : [t.key], n = a.reverse().reduce((l, c) => l == null ? void 0 : l[c], e);
13
13
  n[u] = r;
@@ -30,14 +30,14 @@ function et(e) {
30
30
  ...typeof t.form == "boolean" ? {} : t.form
31
31
  }));
32
32
  }
33
- function yr(e) {
33
+ function hr(e) {
34
34
  const t = F(), r = g();
35
35
  function u() {
36
36
  var n, l;
37
37
  const a = (l = (n = t == null ? void 0 : t.proxy) == null ? void 0 : n.$refs) == null ? void 0 : l[e];
38
38
  a && (r.value = a);
39
39
  }
40
- return z(u), Ee(u), r;
40
+ return A(u), $e(u), r;
41
41
  }
42
42
  function tt(e) {
43
43
  return (t, r) => e[t](r);
@@ -49,13 +49,13 @@ class V {
49
49
  * @param size
50
50
  */
51
51
  constructor(t = 1, r = 10) {
52
- M(this, "data", je({
52
+ _(this, "data", Ee({
53
53
  index: 1,
54
54
  size: 10,
55
55
  total: 0
56
56
  }));
57
- M(this, "pageSizeOpts", [10, 20, 30, 40, 50]);
58
- M(this, "pageLayouts", ["PrevJump", "PrevPage", "JumpNumber", "NextPage", "NextJump", "Sizes", "FullJump", "Total"]);
57
+ _(this, "pageSizeOpts", [10, 20, 30, 40, 50]);
58
+ _(this, "pageLayouts", ["PrevJump", "PrevPage", "JumpNumber", "NextPage", "NextJump", "Sizes", "FullJump", "Total"]);
59
59
  this.pageIndex = t, this.pageSize = r;
60
60
  }
61
61
  get pageIndex() {
@@ -103,18 +103,18 @@ class V {
103
103
  }
104
104
  }
105
105
  const rt = Symbol.for("RenderColumnType");
106
- function x(e, t, r) {
106
+ function k(e, t, r) {
107
107
  return t.$type = e, t.$disableColumnMode = r == null ? void 0 : r.disableColumnMode, t.$disableViewMode = r == null ? void 0 : r.disableViewMode, t;
108
108
  }
109
109
  function S(e, t) {
110
110
  return t.index ? t.index.split(".").reduce((r, u) => r == null ? void 0 : r[u], e) : [t.key].reduce((r, u) => r == null ? void 0 : r[u], e);
111
111
  }
112
- function Y(e) {
112
+ function z(e) {
113
113
  return !!e && (typeof e == "object" || typeof e == "function") && typeof e.then == "function";
114
114
  }
115
115
  function nt(e) {
116
- return x("button", (r, u, a) => {
117
- const n = B(), l = Array.isArray(e) ? e : "buttons" in e ? e.buttons : [e], c = (f, d) => typeof f == "function" ? f(r) : f === void 0 ? d : f;
116
+ return k("button", (r, u, a) => {
117
+ const n = D(), l = Array.isArray(e) ? e : "buttons" in e ? e.buttons : [e], c = (f, d) => typeof f == "function" ? f(r) : f === void 0 ? d : f;
118
118
  async function m(f) {
119
119
  if (await (f.confirm === !0 ? new Promise((o) => {
120
120
  n.confirm({
@@ -125,12 +125,12 @@ function nt(e) {
125
125
  });
126
126
  }) : Promise.resolve(!0)) && (f != null && f.onClick)) {
127
127
  const o = f.onClick(r);
128
- Y(o) && f.autoReload !== !1 && o.then(() => {
128
+ z(o) && f.autoReload !== !1 && o.then(() => {
129
129
  a != null && a.emits && (a == null || a.emits("reload"));
130
- }), !Y(o) && f.autoReload === !0 && a != null && a.emits && (a == null || a.emits("reload"));
130
+ }), !z(o) && f.autoReload === !0 && a != null && a.emits && (a == null || a.emits("reload"));
131
131
  }
132
132
  }
133
- return s(K, null, [l.filter((f) => c(f.visiable, !0)).map((f) => s(L, {
133
+ return s(K, null, [l.filter((f) => c(f.visiable, !0)).map((f) => s(P, {
134
134
  onClick: () => m(f),
135
135
  type: f.type || "text",
136
136
  shape: f.shape,
@@ -178,7 +178,7 @@ function lt(e) {
178
178
  const l = t(Number(n));
179
179
  return e != null && e.thousands ? r(l) : l;
180
180
  };
181
- return x("dict", (n, l) => {
181
+ return k("dict", (n, l) => {
182
182
  const c = S(n, l);
183
183
  return s("div", null, [typeof (e == null ? void 0 : e.prefix) == "string" ? s("span", null, [e.prefix]) : typeof (e == null ? void 0 : e.prefix) == "function" ? s("span", null, [e.prefix()]) : void 0, s("span", {
184
184
  class: "currency_value"
@@ -188,7 +188,7 @@ function lt(e) {
188
188
  var ut = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ct = { exports: {} };
189
189
  (function(e, t) {
190
190
  (function(r, u) {
191
- e.exports = u(D);
191
+ e.exports = u(I);
192
192
  })(ut, function(r) {
193
193
  function u(l) {
194
194
  return l && typeof l == "object" && "default" in l ? l : {
@@ -242,7 +242,7 @@ var ut = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
242
242
  return a.default.locale(n, null, !0), n;
243
243
  });
244
244
  })(ct);
245
- D.locale("zh-cn");
245
+ I.locale("zh-cn");
246
246
  const it = {
247
247
  date: "YYYY-MM-DD",
248
248
  datetime: "YYYY-MM-DD HH:mm:ss",
@@ -250,8 +250,8 @@ const it = {
250
250
  week: "ddd"
251
251
  };
252
252
  function dt(e) {
253
- return x("date", (r, u) => {
254
- const a = S(r, u), n = typeof (e == null ? void 0 : e.format) == "function" ? e == null ? void 0 : e.format() : it[(e == null ? void 0 : e.format) || "datetime"], l = D(a);
253
+ return k("date", (r, u) => {
254
+ const a = S(r, u), n = typeof (e == null ? void 0 : e.format) == "function" ? e == null ? void 0 : e.format() : it[(e == null ? void 0 : e.format) || "datetime"], l = I(a);
255
255
  return s("span", null, [l.isValid() && l.format(n)]);
256
256
  });
257
257
  }
@@ -269,7 +269,7 @@ function ot(e) {
269
269
  }
270
270
  function mt(e) {
271
271
  const t = st(e), r = ot(e);
272
- return x("dict", (a, n) => {
272
+ return k("dict", (a, n) => {
273
273
  const l = S(a, n);
274
274
  return r ? s(Ve, {
275
275
  color: r === !0 ? void 0 : r
@@ -279,7 +279,7 @@ function mt(e) {
279
279
  });
280
280
  }
281
281
  function yt(e) {
282
- const t = B();
282
+ const t = D();
283
283
  async function r(a, n) {
284
284
  a.confirm && !await new Promise((c, m) => {
285
285
  t.open("confirm", {
@@ -290,12 +290,12 @@ function yt(e) {
290
290
  });
291
291
  }) || a.onClick(n);
292
292
  }
293
- return x("dropdown", (a, n) => {
293
+ return k("dropdown", (a, n) => {
294
294
  const l = e.options.filter((c) => typeof c.visiable == "function" ? c.visiable(a) : c.visiable !== !1);
295
295
  return s(ne, {
296
296
  trigger: (e == null ? void 0 : e.trigger) || "click"
297
297
  }, {
298
- default: () => s(L, {
298
+ default: () => s(P, {
299
299
  disabled: l.length === 0,
300
300
  type: "text"
301
301
  }, {
@@ -309,12 +309,12 @@ function yt(e) {
309
309
  });
310
310
  });
311
311
  }
312
- const bt = {
312
+ const ht = {
313
313
  size: 30
314
314
  };
315
- function ht(e) {
315
+ function bt(e) {
316
316
  e = {
317
- ...bt,
317
+ ...ht,
318
318
  ...e || {}
319
319
  };
320
320
  function t(a, n) {
@@ -329,7 +329,7 @@ function ht(e) {
329
329
  const n = document.getElementById(`IMAGE_${a}_PREVIEW`);
330
330
  n == null || n.remove();
331
331
  }
332
- return x("image", (a, n, l) => {
332
+ return k("image", (a, n, l) => {
333
333
  const c = S(a, n), m = Math.random().toString(32).slice(2).toUpperCase(), f = {
334
334
  maxWidth: "100%",
335
335
  maxHeight: "100%",
@@ -340,10 +340,10 @@ function ht(e) {
340
340
  }, d = `${n.index || n.key}_parsed`;
341
341
  if (e != null && e.parse) {
342
342
  const o = e == null ? void 0 : e.parse(c, a);
343
- Y(o) ? o.then((y) => a[d] = y ?? "") : a[d] = o ?? "";
343
+ z(o) ? o.then((y) => a[d] = y ?? "") : a[d] = o ?? "";
344
344
  }
345
345
  if (e != null && e.parse && !a[d] === void 0)
346
- return s("div", null, [q("Loading...")]);
346
+ return s("div", null, [Y("Loading...")]);
347
347
  {
348
348
  const o = a[d] || c;
349
349
  return o ? s("div", {
@@ -365,9 +365,9 @@ function ht(e) {
365
365
  });
366
366
  }
367
367
  function W(e) {
368
- return $e() ? (Le(e), !0) : !1;
368
+ return je() ? (Le(e), !0) : !1;
369
369
  }
370
- function _(e) {
370
+ function O(e) {
371
371
  return typeof e == "function" ? e() : Pe(e);
372
372
  }
373
373
  const H = typeof window < "u" && typeof document < "u";
@@ -405,7 +405,7 @@ function kt(e, t, r = {}) {
405
405
  function m(...f) {
406
406
  l(), a.value = !0, n = setTimeout(() => {
407
407
  a.value = !1, n = null, e(...f);
408
- }, _(t));
408
+ }, O(t));
409
409
  }
410
410
  return u && (a.value = !0, H && m()), W(c), {
411
411
  isPending: fe(a),
@@ -415,7 +415,7 @@ function kt(e, t, r = {}) {
415
415
  }
416
416
  function St(e) {
417
417
  var t;
418
- const r = _(e);
418
+ const r = O(e);
419
419
  return (t = r == null ? void 0 : r.$el) != null ? t : r;
420
420
  }
421
421
  const N = H ? window : void 0, me = H ? window.navigator : void 0;
@@ -426,14 +426,14 @@ function ye(...e) {
426
426
  Array.isArray(r) || (r = [r]), Array.isArray(u) || (u = [u]);
427
427
  const n = [], l = () => {
428
428
  n.forEach((d) => d()), n.length = 0;
429
- }, c = (d, o, y, h) => (d.addEventListener(o, y, h), () => d.removeEventListener(o, y, h)), m = Ye(
430
- () => [St(t), _(a)],
429
+ }, c = (d, o, y, b) => (d.addEventListener(o, y, b), () => d.removeEventListener(o, y, b)), m = Ye(
430
+ () => [St(t), O(a)],
431
431
  ([d, o]) => {
432
432
  if (l(), !d)
433
433
  return;
434
434
  const y = wt(o) ? { ...o } : o;
435
435
  n.push(
436
- ...r.flatMap((h) => u.map((C) => c(d, h, C, y)))
436
+ ...r.flatMap((b) => u.map((v) => c(d, b, v, y)))
437
437
  );
438
438
  },
439
439
  { immediate: !0, flush: "post" }
@@ -444,15 +444,15 @@ function ye(...e) {
444
444
  }
445
445
  function Tt() {
446
446
  const e = g(!1), t = F();
447
- return t && z(() => {
447
+ return t && A(() => {
448
448
  e.value = !0;
449
449
  }, t), e;
450
450
  }
451
451
  function U(e) {
452
452
  const t = Tt();
453
- return R(() => (t.value, !!e()));
453
+ return E(() => (t.value, !!e()));
454
454
  }
455
- function $(e, t = {}) {
455
+ function L(e, t = {}) {
456
456
  const { window: r = N } = t, u = U(() => r && "matchMedia" in r && typeof r.matchMedia == "function");
457
457
  let a;
458
458
  const n = g(!1), l = (f) => {
@@ -460,7 +460,7 @@ function $(e, t = {}) {
460
460
  }, c = () => {
461
461
  a && ("removeEventListener" in a ? a.removeEventListener("change", l) : a.removeListener(l));
462
462
  }, m = qe(() => {
463
- u.value && (c(), a = r.matchMedia(_(e)), "addEventListener" in a ? a.addEventListener("change", l) : a.addListener(l), n.value = a.matches);
463
+ u.value && (c(), a = r.matchMedia(O(e)), "addEventListener" in a ? a.addEventListener("change", l) : a.addListener(l), n.value = a.matches);
464
464
  });
465
465
  return W(() => {
466
466
  m(), c(), a = void 0;
@@ -468,33 +468,33 @@ function $(e, t = {}) {
468
468
  }
469
469
  function Mt(e, t = {}) {
470
470
  function r(d, o) {
471
- let y = _(e[_(d)]);
471
+ let y = O(e[O(d)]);
472
472
  return o != null && (y = xt(y, o)), typeof y == "number" && (y = `${y}px`), y;
473
473
  }
474
474
  const { window: u = N, strategy: a = "min-width" } = t;
475
475
  function n(d) {
476
476
  return u ? u.matchMedia(d).matches : !1;
477
477
  }
478
- const l = (d) => $(() => `(min-width: ${r(d)})`, t), c = (d) => $(() => `(max-width: ${r(d)})`, t), m = Object.keys(e).reduce((d, o) => (Object.defineProperty(d, o, {
478
+ const l = (d) => L(() => `(min-width: ${r(d)})`, t), c = (d) => L(() => `(max-width: ${r(d)})`, t), m = Object.keys(e).reduce((d, o) => (Object.defineProperty(d, o, {
479
479
  get: () => a === "min-width" ? l(o) : c(o),
480
480
  enumerable: !0,
481
481
  configurable: !0
482
482
  }), d), {});
483
483
  function f() {
484
484
  const d = Object.keys(e).map((o) => [o, l(o)]);
485
- return R(() => d.filter(([, o]) => o.value).map(([o]) => o));
485
+ return E(() => d.filter(([, o]) => o.value).map(([o]) => o));
486
486
  }
487
487
  return Object.assign(m, {
488
488
  greaterOrEqual: l,
489
489
  smallerOrEqual: c,
490
490
  greater(d) {
491
- return $(() => `(min-width: ${r(d, 0.1)})`, t);
491
+ return L(() => `(min-width: ${r(d, 0.1)})`, t);
492
492
  },
493
493
  smaller(d) {
494
- return $(() => `(max-width: ${r(d, -0.1)})`, t);
494
+ return L(() => `(max-width: ${r(d, -0.1)})`, t);
495
495
  },
496
496
  between(d, o) {
497
- return $(() => `(min-width: ${r(d)}) and (max-width: ${r(o, -0.1)})`, t);
497
+ return L(() => `(min-width: ${r(d)}) and (max-width: ${r(o, -0.1)})`, t);
498
498
  },
499
499
  isGreater(d) {
500
500
  return n(`(min-width: ${r(d, 0.1)})`);
@@ -514,7 +514,7 @@ function Mt(e, t = {}) {
514
514
  current: f,
515
515
  active() {
516
516
  const d = f();
517
- return R(() => d.value.length === 0 ? "" : d.value.at(-1));
517
+ return E(() => d.value.length === 0 ? "" : d.value.at(-1));
518
518
  }
519
519
  });
520
520
  }
@@ -550,32 +550,32 @@ function _t(e = {}) {
550
550
  source: u,
551
551
  copiedDuring: a = 1500,
552
552
  legacy: n = !1
553
- } = e, l = U(() => t && "clipboard" in t), c = ue("clipboard-read"), m = ue("clipboard-write"), f = R(() => l.value || n), d = g(""), o = g(!1), y = kt(() => o.value = !1, a);
554
- function h() {
555
- l.value && E(c.value) ? t.clipboard.readText().then((w) => {
553
+ } = e, l = U(() => t && "clipboard" in t), c = ue("clipboard-read"), m = ue("clipboard-write"), f = E(() => l.value || n), d = g(""), o = g(!1), y = kt(() => o.value = !1, a);
554
+ function b() {
555
+ l.value && T(c.value) ? t.clipboard.readText().then((w) => {
556
556
  d.value = w;
557
- }) : d.value = I();
557
+ }) : d.value = R();
558
558
  }
559
- f.value && r && ye(["copy", "cut"], h);
560
- async function C(w = _(u)) {
561
- f.value && w != null && (l.value && E(m.value) ? await t.clipboard.writeText(w) : k(w), d.value = w, o.value = !0, y.start());
559
+ f.value && r && ye(["copy", "cut"], b);
560
+ async function v(w = O(u)) {
561
+ f.value && w != null && (l.value && T(m.value) ? await t.clipboard.writeText(w) : C(w), d.value = w, o.value = !0, y.start());
562
562
  }
563
- function k(w) {
564
- const v = document.createElement("textarea");
565
- v.value = w ?? "", v.style.position = "absolute", v.style.opacity = "0", document.body.appendChild(v), v.select(), document.execCommand("copy"), v.remove();
563
+ function C(w) {
564
+ const x = document.createElement("textarea");
565
+ x.value = w ?? "", x.style.position = "absolute", x.style.opacity = "0", document.body.appendChild(x), x.select(), document.execCommand("copy"), x.remove();
566
566
  }
567
- function I() {
568
- var w, v, O;
569
- return (O = (v = (w = document == null ? void 0 : document.getSelection) == null ? void 0 : w.call(document)) == null ? void 0 : v.toString()) != null ? O : "";
567
+ function R() {
568
+ var w, x, $;
569
+ return ($ = (x = (w = document == null ? void 0 : document.getSelection) == null ? void 0 : w.call(document)) == null ? void 0 : x.toString()) != null ? $ : "";
570
570
  }
571
- function E(w) {
571
+ function T(w) {
572
572
  return w === "granted" || w === "prompt";
573
573
  }
574
574
  return {
575
575
  isSupported: f,
576
576
  text: d,
577
577
  copied: o,
578
- copy: C
578
+ copy: v
579
579
  };
580
580
  }
581
581
  const Ot = " ";
@@ -585,38 +585,41 @@ function Rt(e) {
585
585
  function ce(e, t) {
586
586
  return e == null ? void 0 : e.replace(/\*/g, "M").replace(/\B(?=(?:\S{4})+$)/g, t ?? Ot).replace(/M/g, "*");
587
587
  }
588
- function Et(e) {
588
+ function $t(e) {
589
589
  const t = _t();
590
- return x("phone", (u, a) => {
591
- const n = Math.random().toString(36).slice(2), l = S(u, a), c = ce(Rt(l), e == null ? void 0 : e.separator), m = ce(l, e == null ? void 0 : e.separator);
592
- function f() {
593
- window.focus(), t.copy(l).then(() => {
590
+ return k("phone", (u, a) => {
591
+ const n = Math.random().toString(36).slice(2), l = "__table__column_phone__", c = S(u, a), m = ce(Rt(c), e == null ? void 0 : e.separator), f = ce(c, e == null ? void 0 : e.separator);
592
+ function d() {
593
+ window.focus(), t.copy(c).then(() => {
594
594
  Fe.success({
595
595
  content: "复制成功",
596
596
  duration: 1e3
597
597
  });
598
598
  });
599
599
  }
600
- function d() {
601
- const C = document.getElementById(n);
602
- C && (C.innerHTML = m);
603
- }
604
600
  function o() {
605
- window.open(`tel:${l}`, "_blank");
601
+ const C = document.getElementById(n), R = document.querySelectorAll(`.${l}`);
602
+ R.length > 0 && R.forEach((T) => {
603
+ T.innerHTML = m;
604
+ }), C && (C.innerHTML = f);
606
605
  }
607
- const y = 16, h = `cursor:pointer;width:${y}px;height:${y}px;`;
606
+ function y() {
607
+ window.open(`tel:${c}`, "_blank");
608
+ }
609
+ const b = 16, v = `cursor:pointer;width:${b}px;height:${b}px;`;
608
610
  return s("div", {
609
611
  style: "display:flex;align-items:center;gap:4px;"
610
612
  }, [s("div", {
613
+ class: l,
611
614
  id: n,
612
615
  style: "use-select:none;font-family: monospace;cursor:pointer;font-variant-numeric: tabular-nums;padding-right: 2px;"
613
- }, [e != null && e.safe ? c : m]), (e == null ? void 0 : e.safe) && (e == null ? void 0 : e.allowPreview) && s("i", {
616
+ }, [e != null && e.safe ? m : f]), (e == null ? void 0 : e.safe) && (e == null ? void 0 : e.allowPreview) && s("i", {
614
617
  title: "显示完整号码",
615
- style: h,
616
- onClick: d
618
+ style: v,
619
+ onClick: o
617
620
  }, [s("svg", {
618
- width: y,
619
- height: y,
621
+ width: b,
622
+ height: b,
620
623
  viewBox: "0 0 48 48",
621
624
  fill: "none",
622
625
  xmlns: "http://www.w3.org/2000/svg"
@@ -633,12 +636,12 @@ function Et(e) {
633
636
  "stroke-width": "4",
634
637
  "stroke-linejoin": "round"
635
638
  }, null)])]), (e == null ? void 0 : e.allowDial) && s("i", {
636
- style: h,
639
+ style: v,
637
640
  title: "拨出号码",
638
- onClick: o
641
+ onClick: y
639
642
  }, [s("svg", {
640
- width: y,
641
- height: y,
643
+ width: b,
644
+ height: b,
642
645
  viewBox: "0 0 48 48",
643
646
  fill: "none",
644
647
  xmlns: "http://www.w3.org/2000/svg"
@@ -661,12 +664,12 @@ function Et(e) {
661
664
  "stroke-width": "4",
662
665
  "stroke-linejoin": "round"
663
666
  }, null)])]), (e == null ? void 0 : e.allowCopy) && s("i", {
664
- style: h,
667
+ style: v,
665
668
  title: "复制号码",
666
- onClick: f
669
+ onClick: d
667
670
  }, [s("svg", {
668
- width: y,
669
- height: y,
671
+ width: b,
672
+ height: b,
670
673
  viewBox: "0 0 48 48",
671
674
  fill: "none",
672
675
  xmlns: "http://www.w3.org/2000/svg"
@@ -685,11 +688,11 @@ function Et(e) {
685
688
  }, null)])])]);
686
689
  });
687
690
  }
688
- function jt(e) {
689
- return x("render", (r) => e(r));
691
+ function Et(e) {
692
+ return k("render", (r) => e(r));
690
693
  }
691
- function $t(e) {
692
- return x("tag", (r, u) => {
694
+ function jt(e) {
695
+ return k("tag", (r, u) => {
693
696
  const a = (e == null ? void 0 : e.maxCount) || 5, n = e != null && e.formatter ? e.formatter(r) : S(r, u), l = (e == null ? void 0 : e.textColors) || ["#F87335"], c = (e == null ? void 0 : e.backgroundColors) || ["#FFF4E8"], m = n.length > a, f = e == null ? void 0 : e.minWidth;
694
697
  return s("div", {
695
698
  style: {
@@ -697,7 +700,7 @@ function $t(e) {
697
700
  flexWrap: "wrap"
698
701
  }
699
702
  }, [n.slice(0, a).map((d, o) => {
700
- const y = typeof l == "function" ? l(d, o) : l[o % l.length], h = typeof c == "function" ? c(d, o) : c[o % c.length];
703
+ const y = typeof l == "function" ? l(d, o) : l[o % l.length], b = typeof c == "function" ? c(d, o) : c[o % c.length];
701
704
  return s("span", {
702
705
  style: {
703
706
  minWidth: f ? `${f}px` : "unset",
@@ -707,7 +710,7 @@ function $t(e) {
707
710
  border: `solid 2px ${e != null && e.border ? y : "transparent"}`,
708
711
  borderRadius: `${(e == null ? void 0 : e.radius) || 0}px`,
709
712
  color: y,
710
- backgroundColor: h
713
+ backgroundColor: b
711
714
  }
712
715
  }, [d]);
713
716
  }), m && "..."]);
@@ -741,32 +744,47 @@ function Yt(e, t) {
741
744
  return u && (r += `color:${u};`), a && (r += `font-size:${a};`), r;
742
745
  }
743
746
  function zt(e) {
744
- return x("text", (r, u) => {
747
+ return k("text", (r, u) => {
745
748
  const a = Lt(e || {}, u, r), n = Yt(e || {}, r);
746
749
  return s("span", {
747
750
  style: n
748
751
  }, [a]);
749
752
  });
750
753
  }
751
- function At() {
754
+ function At(e) {
755
+ const t = (e == null ? void 0 : e.backgroundColor) ?? "#f5f5f5", r = (e == null ? void 0 : e.foregroundColor) ?? "#1677ff", u = (e == null ? void 0 : e.showText) ?? !0, a = (e == null ? void 0 : e.textColor) ?? "#000";
756
+ return k("progress", (l, c) => {
757
+ var y;
758
+ const m = S(l, c), f = (e == null ? void 0 : e.precision) ?? 0, d = Math.min(Math.max(((y = e == null ? void 0 : e.format) == null ? void 0 : y.call(e, m)) ?? m, 0), 1), o = u ? `${(d * 100).toFixed(f)}%` : "";
759
+ return s("div", {
760
+ style: `background-color:${t};position:relative;min-height: 20px;text-align: center;border-radius: 2px;overflow:hidden;`
761
+ }, [s("div", {
762
+ style: `background-color: ${r};position:absolute;left:0;top:0;right;0;width: ${o};height: 100%;`
763
+ }, null), u && s("div", {
764
+ style: `position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:${a}`
765
+ }, [o])]);
766
+ });
767
+ }
768
+ function Bt() {
752
769
  return {
753
770
  dropdown: yt,
754
771
  text: zt,
755
772
  dict: mt,
756
- tag: $t,
757
- render: jt,
758
- phone: Et,
759
- image: ht,
773
+ tag: jt,
774
+ render: Et,
775
+ phone: $t,
776
+ image: bt,
760
777
  currency: lt,
761
778
  date: dt,
762
- button: nt
779
+ button: nt,
780
+ progress: At
763
781
  };
764
782
  }
765
783
  function G(e, t) {
766
784
  if (!(e != null && e.render))
767
785
  return;
768
786
  const r = e.render({
769
- ...At()
787
+ ...Bt()
770
788
  // ...(Table?.$override?.table || {}),
771
789
  });
772
790
  return {
@@ -791,10 +809,10 @@ function de({
791
809
  const l = e.map((c) => ({
792
810
  ...t || {},
793
811
  ...c
794
- })).map((c) => It(c, u, a, n)).filter(Boolean);
795
- return Dt(l, r);
812
+ })).map((c) => Vt(c, u, a, n)).filter(Boolean);
813
+ return It(l, r);
796
814
  }
797
- function Bt(e, t) {
815
+ function Dt(e, t) {
798
816
  const r = [], u = (n) => {
799
817
  if ("children" in n && (n.children = n.children.map(u)), "key" in n) {
800
818
  const l = t.find((c) => {
@@ -814,12 +832,12 @@ function Bt(e, t) {
814
832
  }), t.splice(n, 0, a);
815
833
  }
816
834
  }
817
- function Dt(e, t = []) {
835
+ function It(e, t = []) {
818
836
  return t.forEach((r) => {
819
- Bt(r, e);
837
+ Dt(r, e);
820
838
  }), e;
821
839
  }
822
- function It(e, t, r, u) {
840
+ function Vt(e, t, r, u) {
823
841
  const {
824
842
  render: a,
825
843
  disableColumnMode: n
@@ -846,10 +864,10 @@ function It(e, t, r, u) {
846
864
  render: a
847
865
  };
848
866
  }
849
- function Vt() {
867
+ function Ft() {
850
868
  return new Xe.Workbook();
851
869
  }
852
- function Ft(e, t = "Sheet1") {
870
+ function Kt(e, t = "Sheet1") {
853
871
  return e.addWorksheet(t, {
854
872
  headerFooter: {
855
873
  firstHeader: "",
@@ -857,29 +875,29 @@ function Ft(e, t = "Sheet1") {
857
875
  }
858
876
  });
859
877
  }
860
- function Kt(e, t) {
878
+ function Wt(e, t) {
861
879
  e.columns = t;
862
880
  }
863
- function Wt(e, t) {
881
+ function Ht(e, t) {
864
882
  e.addRows(t);
865
883
  }
866
- async function Ht({
884
+ async function Nt({
867
885
  columns: e,
868
886
  rows: t,
869
887
  filename: r
870
888
  }) {
871
- const u = Vt(), a = Ft(u);
872
- Kt(a, e), Wt(a, t);
889
+ const u = Ft(), a = Kt(u);
890
+ Wt(a, e), Ht(a, t);
873
891
  const n = await u.xlsx.writeBuffer(), l = new Blob([n]);
874
- Nt(l, r || `${D().format("YYYY-MM-DD HH:mm:ss")}.xlsx`);
892
+ Ut(l, r || `${I().format("YYYY-MM-DD HH:mm:ss")}.xlsx`);
875
893
  }
876
- function Nt(e, t) {
894
+ function Ut(e, t) {
877
895
  const r = document.createElement("a");
878
896
  r.download = t || "download", r.href = URL.createObjectURL(e), r.click(), setTimeout(() => {
879
897
  URL.revokeObjectURL(r.href);
880
898
  }, 1e3);
881
899
  }
882
- function Ut(e, t) {
900
+ function Gt(e, t) {
883
901
  const r = {};
884
902
  return e.filter((a) => a.exportable !== !1).map((a) => ({
885
903
  options: a,
@@ -905,7 +923,7 @@ function Ut(e, t) {
905
923
  r[a.options.key] = l();
906
924
  }), r;
907
925
  }
908
- function Gt(e) {
926
+ function Jt(e) {
909
927
  switch (!0) {
910
928
  case typeof e == "number":
911
929
  return e / 6;
@@ -915,31 +933,31 @@ function Gt(e) {
915
933
  return 30;
916
934
  }
917
935
  }
918
- function Jt(e, t, r) {
936
+ function Qt(e, t, r) {
919
937
  const u = e.filter((n) => n.exportable !== !1).map((n) => {
920
938
  var l, c;
921
939
  return {
922
940
  key: n.key,
923
941
  header: ((l = n.exportable) == null ? void 0 : l.header) || n.title,
924
- width: ((c = n.exportable) == null ? void 0 : c.width) || Gt(n.width)
942
+ width: ((c = n.exportable) == null ? void 0 : c.width) || Jt(n.width)
925
943
  };
926
- }), a = t.map((n) => Ut(e, n));
927
- Ht({
944
+ }), a = t.map((n) => Gt(e, n));
945
+ Nt({
928
946
  columns: u,
929
947
  rows: a,
930
948
  filename: r
931
949
  });
932
950
  }
933
- function Qt() {
951
+ function Xt() {
934
952
  return {
935
- exportExcel: Jt
953
+ exportExcel: Qt
936
954
  };
937
955
  }
938
956
  class J {
939
957
  constructor(t) {
940
- M(this, "sort", {});
941
- M(this, "defaultSort", {});
942
- M(this, "before", (t) => {
958
+ _(this, "sort", {});
959
+ _(this, "defaultSort", {});
960
+ _(this, "before", (t) => {
943
961
  t.paramsQuery = {
944
962
  ...t.paramsQuery || {},
945
963
  sort: this.stringify(this.sort)
@@ -978,8 +996,8 @@ class J {
978
996
  return typeof t != "object" ? [] : (t instanceof J && (t = t.sort), Object.entries(t).map(([r, u]) => `${r},${u}`));
979
997
  }
980
998
  }
981
- const Xt = 300;
982
- function Zt(e) {
999
+ const Zt = 300;
1000
+ function pt(e) {
983
1001
  const t = e, r = t == null ? void 0 : t.querySelector(".arco-scrollbar-container.arco-table-body");
984
1002
  if (!r)
985
1003
  return;
@@ -987,7 +1005,7 @@ function Zt(e) {
987
1005
  r.addEventListener("mousedown", () => {
988
1006
  console.log("mousedown"), u = setTimeout(() => {
989
1007
  u && (r.style.cursor = "grab", r.style.userSelect = "none", a = !0);
990
- }, Xt);
1008
+ }, Zt);
991
1009
  }), r.addEventListener("mouseup", () => {
992
1010
  clearTimeout(u), u && (u = void 0, a = !1, r.style.cursor = "", r.style.userSelect = "", n = void 0);
993
1011
  }), r.addEventListener("mousemove", (l) => {
@@ -1000,10 +1018,10 @@ function Zt(e) {
1000
1018
  }
1001
1019
  });
1002
1020
  }
1003
- function pt(e) {
1021
+ function er(e) {
1004
1022
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Be(e);
1005
1023
  }
1006
- const er = /* @__PURE__ */ A({
1024
+ const tr = /* @__PURE__ */ B({
1007
1025
  props: {
1008
1026
  record: {
1009
1027
  type: Object,
@@ -1057,7 +1075,7 @@ const er = /* @__PURE__ */ A({
1057
1075
  r.value = Math.floor(l.offsetWidth / e.minWidth);
1058
1076
  }
1059
1077
  }
1060
- return z(() => {
1078
+ return A(() => {
1061
1079
  a();
1062
1080
  }), () => {
1063
1081
  let n;
@@ -1068,7 +1086,7 @@ const er = /* @__PURE__ */ A({
1068
1086
  bordered: !0,
1069
1087
  align: "left",
1070
1088
  layout: e.layout
1071
- }, pt(n = u.map((l) => s(We, {
1089
+ }, er(n = u.map((l) => s(We, {
1072
1090
  label: l.options.title
1073
1091
  }, {
1074
1092
  default: () => {
@@ -1083,7 +1101,7 @@ const er = /* @__PURE__ */ A({
1083
1101
  };
1084
1102
  }
1085
1103
  });
1086
- function tr(e, t, {
1104
+ function rr(e, t, {
1087
1105
  tableForm: r,
1088
1106
  tableEvents: u
1089
1107
  }) {
@@ -1102,21 +1120,21 @@ function tr(e, t, {
1102
1120
  }, [s("div", {
1103
1121
  class: "built-in"
1104
1122
  }, [s(ae, null, {
1105
- default: () => [e.refreshable && s(L, {
1123
+ default: () => [e.refreshable && s(P, {
1106
1124
  type: "primary",
1107
1125
  onClick: () => u("reload")
1108
1126
  }, {
1109
- default: () => [q("刷新")]
1110
- }), e.exportable && s(L, {
1127
+ default: () => [Y("刷新")]
1128
+ }), e.exportable && s(P, {
1111
1129
  type: "primary",
1112
1130
  onClick: () => u("export")
1113
1131
  }, {
1114
- default: () => [q("导出")]
1115
- }), e.collapsable && s(L, {
1132
+ default: () => [Y("导出")]
1133
+ }), e.collapsable && s(P, {
1116
1134
  type: "primary",
1117
1135
  onClick: () => u("collapse")
1118
1136
  }, {
1119
- default: () => [q("显示")]
1137
+ default: () => [Y("显示")]
1120
1138
  })]
1121
1139
  })]), s("div", {
1122
1140
  class: "customs"
@@ -1125,7 +1143,7 @@ function tr(e, t, {
1125
1143
  })])])]) : () => {
1126
1144
  };
1127
1145
  }
1128
- function rr(e, t, {
1146
+ function nr(e, t, {
1129
1147
  tableForm: r,
1130
1148
  tableEvents: u,
1131
1149
  formInstance: a
@@ -1142,7 +1160,7 @@ function rr(e, t, {
1142
1160
  }, e.formOptions), null)]) : () => {
1143
1161
  };
1144
1162
  }
1145
- function nr(e, t, {
1163
+ function ar(e, t, {
1146
1164
  tableSource: r
1147
1165
  }) {
1148
1166
  const u = g([]);
@@ -1182,9 +1200,9 @@ function nr(e, t, {
1182
1200
  t.emit("update:radio-key", d), t.emit("update:radio-row", o);
1183
1201
  break;
1184
1202
  case "checkbox":
1185
- t.emit("update:checkbox-keys", f), t.emit("update:checkbox-rows", f.map((h) => {
1186
- var C;
1187
- return r.value.find((k) => k[e.rowKey] === h) || ((C = e.checkboxRows) == null ? void 0 : C.find((k) => k[e.rowKey] === h));
1203
+ t.emit("update:checkbox-keys", f), t.emit("update:checkbox-rows", f.map((b) => {
1204
+ var v;
1205
+ return r.value.find((C) => C[e.rowKey] === b) || ((v = e.checkboxRows) == null ? void 0 : v.find((C) => C[e.rowKey] === b));
1188
1206
  }));
1189
1207
  break;
1190
1208
  }
@@ -1206,7 +1224,7 @@ function nr(e, t, {
1206
1224
  reloadSelection: n
1207
1225
  };
1208
1226
  }
1209
- function ar(e, t, {
1227
+ function lr(e, t, {
1210
1228
  pageService: r,
1211
1229
  tableEvents: u
1212
1230
  }) {
@@ -1245,7 +1263,7 @@ function ar(e, t, {
1245
1263
  }, null)]) : () => {
1246
1264
  };
1247
1265
  }
1248
- const lr = /* @__PURE__ */ A({
1266
+ const ur = /* @__PURE__ */ B({
1249
1267
  props: {
1250
1268
  collapsedColumns: {
1251
1269
  type: Array,
@@ -1253,7 +1271,7 @@ const lr = /* @__PURE__ */ A({
1253
1271
  }
1254
1272
  },
1255
1273
  setup(e) {
1256
- const t = B(), r = g(e.collapsedColumns.map((a) => ({
1274
+ const t = D(), r = g(e.collapsedColumns.map((a) => ({
1257
1275
  label: a.title,
1258
1276
  value: a.key,
1259
1277
  disabled: !1
@@ -1279,7 +1297,7 @@ const lr = /* @__PURE__ */ A({
1279
1297
  default: () => [De(s("template", null, null), [[Ie("slot"), "source"]])]
1280
1298
  })]);
1281
1299
  }
1282
- }), ur = /* @__PURE__ */ A({
1300
+ }), cr = /* @__PURE__ */ B({
1283
1301
  props: {
1284
1302
  value: {
1285
1303
  type: Object,
@@ -1295,7 +1313,7 @@ const lr = /* @__PURE__ */ A({
1295
1313
  }
1296
1314
  },
1297
1315
  setup(e) {
1298
- const t = B();
1316
+ const t = D();
1299
1317
  function r(u) {
1300
1318
  e.onSubmit && e.onSubmit(u), t.close(u);
1301
1319
  }
@@ -1308,7 +1326,7 @@ const lr = /* @__PURE__ */ A({
1308
1326
  onSubmit: r
1309
1327
  }, null)]);
1310
1328
  }
1311
- }), cr = /* @__PURE__ */ A({
1329
+ }), ir = /* @__PURE__ */ B({
1312
1330
  props: {
1313
1331
  // 数据主键
1314
1332
  rowKey: {
@@ -1447,12 +1465,12 @@ const lr = /* @__PURE__ */ A({
1447
1465
  },
1448
1466
  expose: ["preview", "export", "edit", "reload", "tableSource", "formSource", "update:radio-key", "update:radio-row", "update:checkbox-keys", "update:checkbox-rows", "formInstance", "resetSelection", "reloadSelection", "reloadColumns", "change"],
1449
1467
  setup(e, t) {
1450
- const r = Math.random().toString(32).slice(2).toUpperCase(), u = g(), a = g(), n = g(), l = g(), [c, m] = pe(e.columns), f = g(!1), d = e.form ?? et(e.columns), o = C(), y = I(), h = g(e.columns.map((i) => ({
1468
+ const r = Math.random().toString(32).slice(2).toUpperCase(), u = g(), a = g(), n = g(), l = g(), [c, m] = pe(e.columns), f = g(!1), d = e.form ?? et(e.columns), o = v(), y = R(), b = g(e.columns.map((i) => ({
1451
1469
  key: i.key,
1452
1470
  title: i.title,
1453
1471
  collapsed: !!i.collapsed
1454
1472
  })));
1455
- function C() {
1473
+ function v() {
1456
1474
  switch (!0) {
1457
1475
  case (typeof e.pageable == "string" && e.pageable === "server"):
1458
1476
  return new V();
@@ -1464,7 +1482,7 @@ const lr = /* @__PURE__ */ A({
1464
1482
  return new V(e.pageable.index, e.pageable.size);
1465
1483
  }
1466
1484
  }
1467
- const k = (() => {
1485
+ const C = (() => {
1468
1486
  switch (!0) {
1469
1487
  case typeof e.pageable == "string":
1470
1488
  return e.pageable;
@@ -1474,8 +1492,8 @@ const lr = /* @__PURE__ */ A({
1474
1492
  return "server";
1475
1493
  }
1476
1494
  })();
1477
- function I() {
1478
- const i = e.columns.find((b) => !!b.sortable);
1495
+ function R() {
1496
+ const i = e.columns.find((h) => !!h.sortable);
1479
1497
  if (i || e.sortable)
1480
1498
  return new J({
1481
1499
  ...e.sortable || {},
@@ -1484,46 +1502,46 @@ const lr = /* @__PURE__ */ A({
1484
1502
  } : {}
1485
1503
  });
1486
1504
  }
1487
- function E(i) {
1505
+ function T(i) {
1488
1506
  const {
1489
- exportExcel: b
1490
- } = Qt();
1491
- b((i == null ? void 0 : i.columns) || e.columns, (i == null ? void 0 : i.source) || c.value, (i == null ? void 0 : i.filename) || (typeof e.exportable == "object" ? e.exportable.filename : void 0));
1507
+ exportExcel: h
1508
+ } = Xt();
1509
+ h((i == null ? void 0 : i.columns) || e.columns, (i == null ? void 0 : i.source) || c.value, (i == null ? void 0 : i.filename) || (typeof e.exportable == "object" ? e.exportable.filename : void 0));
1492
1510
  }
1493
1511
  function w(i) {
1494
- let b;
1512
+ let h;
1495
1513
  switch (!0) {
1496
1514
  case !!(i != null && i.key):
1497
- b = c.value.find((T) => T[e.rowKey] === (i == null ? void 0 : i.key));
1515
+ h = c.value.find((M) => M[e.rowKey] === (i == null ? void 0 : i.key));
1498
1516
  break;
1499
1517
  case !!(i != null && i.record):
1500
- b = i == null ? void 0 : i.record;
1518
+ h = i == null ? void 0 : i.record;
1501
1519
  break;
1502
1520
  }
1503
- if (!b)
1521
+ if (!h)
1504
1522
  throw new Error("未找到需要预览的数据");
1505
- return n.value.open(er, {
1506
- record: b,
1523
+ return n.value.open(tr, {
1524
+ record: h,
1507
1525
  columns: e.columns
1508
1526
  }, {
1509
1527
  title: (i == null ? void 0 : i.title) || "详情",
1510
1528
  mode: (i == null ? void 0 : i.mode) || "dialog"
1511
1529
  });
1512
1530
  }
1513
- function v(i) {
1514
- let b;
1531
+ function x(i) {
1532
+ let h;
1515
1533
  switch (!0) {
1516
1534
  case !!(i != null && i.key):
1517
- b = c.value.find((T) => T[e.rowKey] === (i == null ? void 0 : i.key));
1535
+ h = c.value.find((M) => M[e.rowKey] === (i == null ? void 0 : i.key));
1518
1536
  break;
1519
1537
  case !!(i != null && i.record):
1520
- b = i == null ? void 0 : i.record;
1538
+ h = i == null ? void 0 : i.record;
1521
1539
  break;
1522
1540
  }
1523
- if (!b)
1541
+ if (!h)
1524
1542
  throw new Error("未找到需要编辑的数据");
1525
- return n.value.open(ur, {
1526
- value: b,
1543
+ return n.value.open(cr, {
1544
+ value: h,
1527
1545
  form: i == null ? void 0 : i.form,
1528
1546
  onSubmit: i.onSubmit
1529
1547
  }, {
@@ -1533,86 +1551,86 @@ const lr = /* @__PURE__ */ A({
1533
1551
  form: "form"
1534
1552
  });
1535
1553
  }
1536
- function O(i) {
1554
+ function $(i) {
1537
1555
  var p, ee;
1538
1556
  if (!e.dataLoad)
1539
1557
  return Promise.reject();
1540
1558
  i != null && i.reset && (o && o.reset(), y && y.reset(), (p = u.value) == null || p.resetSorters());
1541
- const b = {
1559
+ const h = {
1542
1560
  ...((ee = a.value) == null ? void 0 : ee.formSource) || {}
1543
1561
  };
1544
- Object.keys(b).forEach((te) => {
1545
- [null, void 0, ""].includes(b[te]) && delete b[te];
1562
+ Object.keys(h).forEach((te) => {
1563
+ [null, void 0, ""].includes(h[te]) && delete h[te];
1546
1564
  });
1547
- const T = e.dataLoad({
1548
- form: b,
1565
+ const M = e.dataLoad({
1566
+ form: h,
1549
1567
  page: o,
1550
1568
  sort: y,
1551
1569
  update: m
1552
1570
  });
1553
- return Y(T) ? (f.value = !0, Promise.resolve(T).finally(() => {
1571
+ return z(M) ? (f.value = !0, Promise.resolve(M).finally(() => {
1554
1572
  f.value = !1;
1555
- }), T) : Promise.resolve();
1573
+ }), M) : Promise.resolve();
1556
1574
  }
1557
- function be() {
1558
- n.value.open(lr, {
1559
- collapsedColumns: h.value
1575
+ function he() {
1576
+ n.value.open(ur, {
1577
+ collapsedColumns: b.value
1560
1578
  }, {
1561
1579
  title: "显示列",
1562
1580
  size: "small",
1563
1581
  footer: !0
1564
1582
  }).then((i) => {
1565
- h.value = i;
1583
+ b.value = i;
1566
1584
  });
1567
1585
  }
1568
- const he = (i, {
1569
- type: b
1586
+ const be = (i, {
1587
+ type: h
1570
1588
  }) => {
1571
- switch (b) {
1589
+ switch (h) {
1572
1590
  case "drag": {
1573
1591
  m(i), t.emit("change", i);
1574
1592
  break;
1575
1593
  }
1576
1594
  }
1577
1595
  }, j = tt({
1578
- reload: O,
1596
+ reload: $,
1579
1597
  preview: w,
1580
- export: E,
1581
- edit: v,
1582
- collapse: be
1598
+ export: T,
1599
+ edit: x,
1600
+ collapse: he
1583
1601
  });
1584
- function ge(i, b) {
1585
- !y || k === "client" || (b ? y.update(i, b === "descend" ? "desc" : "asc") : y.remove(i), j("reload"));
1602
+ function ge(i, h) {
1603
+ !y || C === "client" || (h ? y.update(i, h === "descend" ? "desc" : "asc") : y.remove(i), j("reload"));
1586
1604
  }
1587
1605
  const Q = g(de({
1588
1606
  columns: e.columns,
1589
1607
  columnsOptions: e.columnsOptions,
1590
1608
  columnsGroups: e.columnsGroups,
1591
- pageMode: k,
1592
- collapsedColumns: h,
1609
+ pageMode: C,
1610
+ collapsedColumns: b,
1593
1611
  events: j
1594
- })), P = {
1612
+ })), q = {
1595
1613
  tableEvents: j,
1596
1614
  tableForm: d,
1597
1615
  tableSource: c,
1598
1616
  formInstance: a,
1599
1617
  pageService: o,
1600
1618
  formOptions: e.formOptions
1601
- }, we = rr(e, t, P), ve = tr(e, t, P), Ce = ar(e, t, P), {
1619
+ }, we = nr(e, t, q), ve = rr(e, t, q), Ce = lr(e, t, q), {
1602
1620
  selectedRowKeys: X,
1603
1621
  rowSelection: Z,
1604
1622
  onSelect: xe,
1605
1623
  onSelectAll: ke,
1606
1624
  reloadSelection: Se,
1607
1625
  resetSelection: Te
1608
- } = nr(e, t, P), Me = R(() => ({
1626
+ } = ar(e, t, q), Me = E(() => ({
1609
1627
  rowKey: e.rowKey,
1610
1628
  size: e.size,
1611
1629
  bordered: e.bordered,
1612
1630
  hoverable: e.hoverable,
1613
1631
  stripe: e.stripe,
1614
1632
  scroll: {
1615
- x: e.columns.reduce((i, b) => i += typeof b.width != "number" ? Math.max(b.title.length * 16, 80) : b.width, 0),
1633
+ x: e.columns.reduce((i, h) => i += typeof h.width != "number" ? Math.max(h.title.length * 16, 80) : h.width, 0),
1616
1634
  y: e.height ?? "100%"
1617
1635
  },
1618
1636
  rowSelection: Z,
@@ -1629,13 +1647,13 @@ const lr = /* @__PURE__ */ A({
1629
1647
  columns: e.columns,
1630
1648
  columnsOptions: e.columnsOptions,
1631
1649
  columnsGroups: e.columnsGroups,
1632
- pageMode: k,
1633
- collapsedColumns: h,
1650
+ pageMode: C,
1651
+ collapsedColumns: b,
1634
1652
  events: j
1635
1653
  });
1636
1654
  }
1637
- return z(() => {
1638
- l.value && (l.value.id = `table-${r}`), e.autoLoad && O(), e.grabbable && l.value && Zt(l.value);
1655
+ return A(() => {
1656
+ l.value && (l.value.id = `table-${r}`), e.autoLoad && $(), e.grabbable && l.value && pt(l.value);
1639
1657
  }), {
1640
1658
  tableId: r,
1641
1659
  tableInstance: u,
@@ -1647,17 +1665,17 @@ const lr = /* @__PURE__ */ A({
1647
1665
  tableLoading: f,
1648
1666
  modalInstance: n,
1649
1667
  tableRenderElement: l,
1650
- formSource: fe(R(() => {
1668
+ formSource: fe(E(() => {
1651
1669
  var i;
1652
1670
  return (i = a == null ? void 0 : a.value) == null ? void 0 : i.formSource;
1653
1671
  })),
1654
1672
  formInstance: a,
1655
- reload: O,
1673
+ reload: $,
1656
1674
  preview: w,
1657
- edit: v,
1658
- export: E,
1675
+ edit: x,
1676
+ export: T,
1659
1677
  onSorterChange: ge,
1660
- onTableChange: he,
1678
+ onTableChange: be,
1661
1679
  renders: {
1662
1680
  renderTableForm: we,
1663
1681
  renderTableActions: ve,
@@ -1711,20 +1729,20 @@ const lr = /* @__PURE__ */ A({
1711
1729
  function br(e) {
1712
1730
  return e;
1713
1731
  }
1714
- function hr(e) {
1732
+ function gr(e) {
1715
1733
  return e;
1716
1734
  }
1717
- const gr = {
1735
+ const wr = {
1718
1736
  install(e, t) {
1719
- e.component("TableRender", cr);
1737
+ e.component("TableRender", ir);
1720
1738
  }
1721
1739
  };
1722
1740
  export {
1723
- cr as TableRender,
1724
- Cr as TableRenderResolver,
1725
- gr as default,
1741
+ ir as TableRender,
1742
+ xr as TableRenderResolver,
1743
+ wr as default,
1726
1744
  br as defineColumns,
1727
- hr as defineTableLoad,
1745
+ gr as defineTableLoad,
1728
1746
  tt as useEvents,
1729
- yr as useTable
1747
+ hr as useTable
1730
1748
  };