@gopowerteam/table-render 0.0.160 → 0.0.161

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,23 +1,23 @@
1
- var $e = Object.defineProperty;
2
- var Oe = (e, t, r) => t in e ? $e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var $ = (e, t, r) => (Oe(e, typeof t != "symbol" ? t + "" : t, r), r);
4
- import { ref as g, getCurrentInstance as F, onMounted as A, onUpdated as je, reactive as Le, createVNode as f, Fragment as W, createTextVNode as Y, getCurrentScope as Re, onScopeDispose as Ee, unref as qe, readonly as se, computed as j, watchEffect as Pe, watch as Ye, h as ze, render as Ae, defineComponent as B, isVNode as Be, mergeProps as fe, nextTick as re, withDirectives as De, resolveDirective as Ie } from "vue";
5
- import { Button as q, Tag as Ve, Dropdown as ne, Message as Fe, Descriptions as We, DescriptionsItem as He, Divider as Ke, Space as ae, Pagination as Ne, Transfer as Ue, Table as Ge } from "@arco-design/web-vue";
1
+ var Oe = Object.defineProperty;
2
+ var $e = (e, t, r) => t in e ? Oe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var O = (e, t, r) => ($e(e, typeof t != "symbol" ? t + "" : t, r), r);
4
+ import { ref as g, getCurrentInstance as H, onMounted as A, onUpdated as je, reactive as Le, createVNode as f, Fragment as I, createTextVNode as Y, getCurrentScope as Re, onScopeDispose as qe, unref as Ee, readonly as se, computed as j, watchEffect as Pe, watch as Ye, h as ze, render as Ae, defineComponent as B, isVNode as Be, mergeProps as fe, nextTick as re, withDirectives as De, resolveDirective as Ve } from "vue";
5
+ import { Button as E, Tag as Fe, Dropdown as ne, Message as He, Descriptions as Ie, DescriptionsItem as Ke, Divider as We, Space as ae, Pagination as Ne, Transfer as Ue, Table as Ge } from "@arco-design/web-vue";
6
6
  import { useModal as D, onSubmit as Ze, ModalProvider as Je } from "@gopowerteam/modal-render";
7
7
  import * as Qe from "exceljs";
8
- import I from "dayjs";
8
+ import V from "dayjs";
9
9
  import { FormRender as oe } from "@gopowerteam/form-render";
10
10
  import { TableRenderResolver as xr } from "./resolver.mjs";
11
11
  function Xe(e, t, r) {
12
- const [u, ...a] = t.index ? t.index.split(".").reverse() : [t.key], n = a.reverse().reduce((l, i) => l == null ? void 0 : l[i], e);
13
- n[u] = r;
12
+ const [l, ...a] = t.index ? t.index.split(".").reverse() : [t.key], n = a.reverse().reduce((u, c) => u == null ? void 0 : u[c], e);
13
+ n[l] = r;
14
14
  }
15
15
  function pe(e) {
16
16
  const t = g([]), r = (a) => {
17
- const n = e.filter((l) => l.formatter);
18
- return n.length > 0 ? a.map((l) => (n.forEach((i) => {
19
- i.formatter && Xe(l, i, i.formatter(l));
20
- }), l)) : a;
17
+ const n = e.filter((u) => u.formatter);
18
+ return n.length > 0 ? a.map((u) => (n.forEach((c) => {
19
+ c.formatter && Xe(u, c, c.formatter(u));
20
+ }), u)) : a;
21
21
  };
22
22
  return [t, (a) => {
23
23
  t.value = r(a);
@@ -31,31 +31,31 @@ function et(e) {
31
31
  }));
32
32
  }
33
33
  function br(e) {
34
- const t = F(), r = g();
35
- function u() {
36
- var n, l;
37
- const a = (l = (n = t == null ? void 0 : t.proxy) == null ? void 0 : n.$refs) == null ? void 0 : l[e];
34
+ const t = H(), r = g();
35
+ function l() {
36
+ var n, u;
37
+ const a = (u = (n = t == null ? void 0 : t.proxy) == null ? void 0 : n.$refs) == null ? void 0 : u[e];
38
38
  a && (r.value = a);
39
39
  }
40
- return A(u), je(u), r;
40
+ return A(l), je(l), r;
41
41
  }
42
42
  function tt(e) {
43
43
  return (t, r) => e[t](r);
44
44
  }
45
- class V {
45
+ class F {
46
46
  /**
47
47
  * 构造函数
48
48
  * @param index
49
49
  * @param size
50
50
  */
51
51
  constructor(t = 1, r = 10) {
52
- $(this, "data", Le({
52
+ O(this, "data", Le({
53
53
  index: 1,
54
54
  size: 10,
55
55
  total: 0
56
56
  }));
57
- $(this, "pageSizeOpts", [10, 20, 30, 40, 50]);
58
- $(this, "pageLayouts", ["PrevJump", "PrevPage", "JumpNumber", "NextPage", "NextJump", "Sizes", "FullJump", "Total"]);
57
+ O(this, "pageSizeOpts", [10, 20, 30, 40, 50]);
58
+ O(this, "pageLayouts", ["PrevJump", "PrevPage", "JumpNumber", "NextPage", "NextJump", "Sizes", "FullJump", "Total"]);
59
59
  this.pageIndex = t, this.pageSize = r;
60
60
  }
61
61
  get pageIndex() {
@@ -107,38 +107,38 @@ 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 T(e, t) {
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);
110
+ return t.index ? t.index.split(".").reduce((r, l) => r == null ? void 0 : r[l], e) : [t.key].reduce((r, l) => r == null ? void 0 : r[l], e);
111
111
  }
112
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 k("button", (r, u, a) => {
117
- const n = D(), l = Array.isArray(e) ? e : "buttons" in e ? e.buttons : [e], i = (s, d) => typeof s == "function" ? s(r) : s === void 0 ? d : s;
118
- async function o(s) {
119
- if (await (s.confirm === !0 ? new Promise((m) => {
116
+ return k("button", (r, l, a) => {
117
+ const n = D(), u = Array.isArray(e) ? e : "buttons" in e ? e.buttons : [e], c = (i, s) => typeof i == "function" ? i(r) : i === void 0 ? s : i;
118
+ async function o(i) {
119
+ if (await (i.confirm === !0 ? new Promise((m) => {
120
120
  n.confirm({
121
121
  title: "提示信息",
122
- content: s.confirmText ?? "您确定要执行该操作?",
122
+ content: i.confirmText ?? "您确定要执行该操作?",
123
123
  onOk: () => m(!0),
124
124
  onCancel: () => m(!1)
125
125
  });
126
- }) : Promise.resolve(!0)) && (s != null && s.onClick)) {
127
- const m = s.onClick(r);
128
- z(m) && s.autoReload !== !1 && m.then(() => {
126
+ }) : Promise.resolve(!0)) && (i != null && i.onClick)) {
127
+ const m = i.onClick(r);
128
+ z(m) && i.autoReload !== !1 && m.then(() => {
129
129
  a != null && a.emits && (a == null || a.emits("reload"));
130
- }), !z(m) && s.autoReload === !0 && a != null && a.emits && (a == null || a.emits("reload"));
130
+ }), !z(m) && i.autoReload === !0 && a != null && a.emits && (a == null || a.emits("reload"));
131
131
  }
132
132
  }
133
- return f(W, null, [l.filter((s) => i(s.visiable, !0)).map((s) => f(q, {
134
- onClick: () => o(s),
135
- type: s.type || "text",
136
- shape: s.shape,
133
+ return f(I, null, [u.filter((i) => c(i.visiable, !0)).map((i) => f(E, {
134
+ onClick: () => o(i),
135
+ type: i.type || "text",
136
+ shape: i.shape,
137
137
  size: "mini",
138
- disabled: i(s.disabled, !1)
138
+ disabled: c(i.disabled, !1)
139
139
  }, {
140
- icon: s.icon ? () => s.icon(r) : void 0,
141
- default: () => (typeof s.content == "function" ? s.content(r) : s.content) || ""
140
+ icon: i.icon ? () => i.icon(r) : void 0,
141
+ default: () => (typeof i.content == "function" ? i.content(r) : i.content) || ""
142
142
  }))]);
143
143
  }, {
144
144
  disableViewMode: !0
@@ -163,47 +163,47 @@ function lt(e) {
163
163
  return;
164
164
  if ((e == null ? void 0 : e.inputUnit) === (e == null ? void 0 : e.outputUnit))
165
165
  return n;
166
- const l = le[e.inputUnit] / le[e.outputUnit], i = parseFloat((n * l).toFixed(10));
167
- return (e == null ? void 0 : e.precision) === void 0 ? i : i.toFixed(e == null ? void 0 : e.precision);
166
+ const u = le[e.inputUnit] / le[e.outputUnit], c = parseFloat((n * u).toFixed(10));
167
+ return (e == null ? void 0 : e.precision) === void 0 ? c : c.toFixed(e == null ? void 0 : e.precision);
168
168
  }, r = (n) => {
169
169
  if (n == null)
170
170
  return;
171
- const l = n.toString().split(".");
172
- return l[0] = l[0].replace(/\B(?=(\d{3})+(?!\d))/g, ","), l.join(".");
173
- }, u = (n) => {
171
+ const u = n.toString().split(".");
172
+ return u[0] = u[0].replace(/\B(?=(\d{3})+(?!\d))/g, ","), u.join(".");
173
+ }, l = (n) => {
174
174
  if ((e == null ? void 0 : e.zeroString) !== void 0 && Number(n) === 0)
175
175
  return e == null ? void 0 : e.zeroString;
176
176
  if ((e == null ? void 0 : e.nullString) !== void 0 && isNaN(Number(n)))
177
177
  return e == null ? void 0 : e.nullString;
178
- const l = t(Number(n));
179
- return e != null && e.thousands ? r(l) : l;
178
+ const u = t(Number(n));
179
+ return e != null && e.thousands ? r(u) : u;
180
180
  };
181
- return k("dict", (n, l) => {
182
- const i = T(n, l);
181
+ return k("dict", (n, u) => {
182
+ const c = T(n, u);
183
183
  return f("div", null, [typeof (e == null ? void 0 : e.prefix) == "string" ? f("span", null, [e.prefix]) : typeof (e == null ? void 0 : e.prefix) == "function" ? f("span", null, [e.prefix()]) : void 0, f("span", {
184
184
  class: "currency_value"
185
- }, [u(i)]), typeof (e == null ? void 0 : e.suffix) == "string" ? f("span", null, [e.suffix]) : typeof (e == null ? void 0 : e.suffix) == "function" ? f("span", null, [e.suffix()]) : void 0]);
185
+ }, [l(c)]), typeof (e == null ? void 0 : e.suffix) == "string" ? f("span", null, [e.suffix]) : typeof (e == null ? void 0 : e.suffix) == "function" ? f("span", null, [e.suffix()]) : void 0]);
186
186
  });
187
187
  }
188
- var ut = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, it = { exports: {} };
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
- (function(r, u) {
191
- e.exports = u(I);
190
+ (function(r, l) {
191
+ e.exports = l(V);
192
192
  })(ut, function(r) {
193
- function u(l) {
194
- return l && typeof l == "object" && "default" in l ? l : {
195
- default: l
193
+ function l(u) {
194
+ return u && typeof u == "object" && "default" in u ? u : {
195
+ default: u
196
196
  };
197
197
  }
198
- var a = u(r), n = {
198
+ var a = l(r), n = {
199
199
  name: "zh-cn",
200
200
  weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),
201
201
  weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"),
202
202
  weekdaysMin: "日_一_二_三_四_五_六".split("_"),
203
203
  months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),
204
204
  monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
205
- ordinal: function(l, i) {
206
- return i === "W" ? l + "周" : l + "日";
205
+ ordinal: function(u, c) {
206
+ return c === "W" ? u + "周" : u + "日";
207
207
  },
208
208
  weekStart: 1,
209
209
  yearStart: 4,
@@ -234,25 +234,25 @@ var ut = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
234
234
  y: "1 年",
235
235
  yy: "%d 年"
236
236
  },
237
- meridiem: function(l, i) {
238
- var o = 100 * l + i;
237
+ meridiem: function(u, c) {
238
+ var o = 100 * u + c;
239
239
  return o < 600 ? "凌晨" : o < 900 ? "早上" : o < 1100 ? "上午" : o < 1300 ? "中午" : o < 1800 ? "下午" : "晚上";
240
240
  }
241
241
  };
242
242
  return a.default.locale(n, null, !0), n;
243
243
  });
244
- })(it);
245
- I.locale("zh-cn");
246
- const ct = {
244
+ })(ct);
245
+ V.locale("zh-cn");
246
+ const it = {
247
247
  date: "YYYY-MM-DD",
248
248
  datetime: "YYYY-MM-DD HH:mm:ss",
249
249
  time: "HH:mm:ss",
250
250
  week: "ddd"
251
251
  };
252
252
  function dt(e) {
253
- return k("date", (r, u) => {
254
- const a = T(r, u), n = typeof (e == null ? void 0 : e.format) == "function" ? e == null ? void 0 : e.format() : ct[(e == null ? void 0 : e.format) || "datetime"], l = I(a);
255
- return f("span", null, [l.isValid() && l.format(n)]);
253
+ return k("date", (r, l) => {
254
+ const a = T(r, l), n = typeof (e == null ? void 0 : e.format) == "function" ? e == null ? void 0 : e.format() : it[(e == null ? void 0 : e.format) || "datetime"], u = V(a);
255
+ return f("span", null, [u.isValid() && u.format(n)]);
256
256
  });
257
257
  }
258
258
  const st = {
@@ -270,41 +270,41 @@ function ot(e) {
270
270
  function mt(e) {
271
271
  const t = ft(e), r = ot(e);
272
272
  return k("dict", (a, n) => {
273
- const l = T(a, n);
274
- return r ? f(Ve, {
273
+ const u = T(a, n);
274
+ return r ? f(Fe, {
275
275
  color: r === !0 ? void 0 : r
276
276
  }, {
277
- default: () => [t.get(l) || l]
278
- }) : f("span", null, [t.get(l) || l]);
277
+ default: () => [t.get(u) || u]
278
+ }) : f("span", null, [t.get(u) || u]);
279
279
  });
280
280
  }
281
281
  function ht(e) {
282
282
  const t = D();
283
283
  async function r(a, n) {
284
- a.confirm && !await new Promise((i, o) => {
284
+ a.confirm && !await new Promise((c, o) => {
285
285
  t.open("confirm", {
286
286
  title: "确认",
287
287
  content: a.confirmText || "是否确认执行该操作?",
288
- onOk: () => i(!0),
289
- onCancel: () => i(!1)
288
+ onOk: () => c(!0),
289
+ onCancel: () => c(!1)
290
290
  });
291
291
  }) || a.onClick(n);
292
292
  }
293
293
  return k("dropdown", (a, n) => {
294
- const l = e.options.filter((i) => typeof i.visiable == "function" ? i.visiable(a) : i.visiable !== !1);
294
+ const u = e.options.filter((c) => typeof c.visiable == "function" ? c.visiable(a) : c.visiable !== !1);
295
295
  return f(ne, {
296
296
  trigger: (e == null ? void 0 : e.trigger) || "click"
297
297
  }, {
298
- default: () => f(q, {
299
- disabled: l.length === 0,
298
+ default: () => f(E, {
299
+ disabled: u.length === 0,
300
300
  type: "text"
301
301
  }, {
302
302
  default: () => [(e == null ? void 0 : e.content) || "操作"]
303
303
  }),
304
- content: () => l.map((i) => f(ne.Option, {
305
- onClick: () => r(i, a)
304
+ content: () => u.map((c) => f(ne.Option, {
305
+ onClick: () => r(c, a)
306
306
  }, {
307
- default: () => [typeof i.content == "function" ? i.content(a) : i.content]
307
+ default: () => [typeof c.content == "function" ? c.content(a) : c.content]
308
308
  }))
309
309
  });
310
310
  });
@@ -317,39 +317,28 @@ function bt(e) {
317
317
  ...yt,
318
318
  ...e || {}
319
319
  };
320
- function t(a, n) {
321
- var i;
322
- const l = (i = document.getElementById(a)) == null ? void 0 : i.getBoundingClientRect();
323
- if (l) {
324
- const o = new Image(100, 100);
325
- o.id = `IMAGE_${a}_PREVIEW`, o.src = n, o.setAttribute("style", ["position:fixed;", `top:${l.top}px;`, `left:${l.left + l.width}px;`, "min-width:400px;", "height:auto;", "z-index:100;"].join("")), document.body.appendChild(o);
326
- }
320
+ function t() {
327
321
  }
328
- function r(a) {
329
- const n = document.getElementById(`IMAGE_${a}_PREVIEW`);
330
- n == null || n.remove();
331
- }
332
- return k("image", (a, n, l) => {
333
- const i = T(a, n), o = Math.random().toString(32).slice(2).toUpperCase(), s = {
322
+ return k("image", (l, a) => {
323
+ const n = T(l, a), u = Math.random().toString(32).slice(2).toUpperCase(), c = {
334
324
  maxWidth: "100%",
335
325
  maxHeight: "100%",
336
326
  borderRadius: e == null ? void 0 : e.radius,
337
327
  objectFit: "contain",
338
328
  transform: `rotate(${(e == null ? void 0 : e.rotate) || 0}deg)`,
339
- cursor: e != null && e.preview ? "pointer" : "unset"
340
- }, d = `${n.index || n.key}_parsed`;
329
+ cursor: e != null && e.preview ? "zoom-in" : "unset"
330
+ }, o = `${a.index || a.key}_parsed`;
341
331
  if (e != null && e.parse) {
342
- const m = e == null ? void 0 : e.parse(i, a);
343
- z(m) ? m.then((h) => a[d] = h ?? "") : a[d] = m ?? "";
332
+ const i = e == null ? void 0 : e.parse(n, l);
333
+ z(i) ? i.then((s) => l[o] = s ?? "") : l[o] = i ?? "";
344
334
  }
345
- if (e != null && e.parse && !a[d] === void 0)
335
+ if (e != null && e.parse && !l[o] === void 0)
346
336
  return f("div", null, [Y("Loading...")]);
347
337
  {
348
- const m = a[d] || i;
349
- return m ? f("div", {
350
- id: o,
351
- onMouseenter: () => (e == null ? void 0 : e.preview) && !(l != null && l.previewing) && t(o, m),
352
- onMouseleave: () => (e == null ? void 0 : e.preview) && !(l != null && l.previewing) && r(o),
338
+ const i = l[o] || n;
339
+ return i ? f("div", {
340
+ id: u,
341
+ onClick: t,
353
342
  style: {
354
343
  display: "flex",
355
344
  justifyContent: "center",
@@ -358,19 +347,19 @@ function bt(e) {
358
347
  }
359
348
  }, [f("img", {
360
349
  alt: "image",
361
- style: s,
362
- src: m
363
- }, null)]) : f(W, null, null);
350
+ style: c,
351
+ src: i
352
+ }, null)]) : f(I, null, null);
364
353
  }
365
354
  });
366
355
  }
367
- function H(e) {
368
- return Re() ? (Ee(e), !0) : !1;
356
+ function K(e) {
357
+ return Re() ? (qe(e), !0) : !1;
369
358
  }
370
- function O(e) {
371
- return typeof e == "function" ? e() : qe(e);
359
+ function $(e) {
360
+ return typeof e == "function" ? e() : Ee(e);
372
361
  }
373
- const K = typeof window < "u" && typeof document < "u";
362
+ const W = typeof window < "u" && typeof document < "u";
374
363
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
375
364
  const gt = Object.prototype.toString, wt = (e) => gt.call(e) === "[object Object]", vt = () => {
376
365
  };
@@ -380,70 +369,70 @@ function Ct(e) {
380
369
  return t || (t = e()), t;
381
370
  }
382
371
  return r.reset = async () => {
383
- const u = t;
384
- t = void 0, u && await u;
372
+ const l = t;
373
+ t = void 0, l && await l;
385
374
  }, r;
386
375
  }
387
376
  function kt(e, t) {
388
377
  var r;
389
378
  if (typeof e == "number")
390
379
  return e + t;
391
- const u = ((r = e.match(/^-?\d+\.?\d*/)) == null ? void 0 : r[0]) || "", a = e.slice(u.length), n = Number.parseFloat(u) + t;
380
+ const l = ((r = e.match(/^-?\d+\.?\d*/)) == null ? void 0 : r[0]) || "", a = e.slice(l.length), n = Number.parseFloat(l) + t;
392
381
  return Number.isNaN(n) ? e : n + a;
393
382
  }
394
383
  function xt(e, t, r = {}) {
395
384
  const {
396
- immediate: u = !0
385
+ immediate: l = !0
397
386
  } = r, a = g(!1);
398
387
  let n = null;
399
- function l() {
388
+ function u() {
400
389
  n && (clearTimeout(n), n = null);
401
390
  }
402
- function i() {
403
- a.value = !1, l();
391
+ function c() {
392
+ a.value = !1, u();
404
393
  }
405
- function o(...s) {
406
- l(), a.value = !0, n = setTimeout(() => {
407
- a.value = !1, n = null, e(...s);
408
- }, O(t));
394
+ function o(...i) {
395
+ u(), a.value = !0, n = setTimeout(() => {
396
+ a.value = !1, n = null, e(...i);
397
+ }, $(t));
409
398
  }
410
- return u && (a.value = !0, K && o()), H(i), {
399
+ return l && (a.value = !0, W && o()), K(c), {
411
400
  isPending: se(a),
412
401
  start: o,
413
- stop: i
402
+ stop: c
414
403
  };
415
404
  }
416
405
  function St(e) {
417
406
  var t;
418
- const r = O(e);
407
+ const r = $(e);
419
408
  return (t = r == null ? void 0 : r.$el) != null ? t : r;
420
409
  }
421
- const N = K ? window : void 0, me = K ? window.navigator : void 0;
410
+ const N = W ? window : void 0, me = W ? window.navigator : void 0;
422
411
  function he(...e) {
423
- let t, r, u, a;
424
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, u, a] = e, t = N) : [t, r, u, a] = e, !t)
412
+ let t, r, l, a;
413
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, l, a] = e, t = N) : [t, r, l, a] = e, !t)
425
414
  return vt;
426
- Array.isArray(r) || (r = [r]), Array.isArray(u) || (u = [u]);
427
- const n = [], l = () => {
428
- n.forEach((d) => d()), n.length = 0;
429
- }, i = (d, m, h, w) => (d.addEventListener(m, h, w), () => d.removeEventListener(m, h, w)), o = Ye(
430
- () => [St(t), O(a)],
431
- ([d, m]) => {
432
- if (l(), !d)
415
+ Array.isArray(r) || (r = [r]), Array.isArray(l) || (l = [l]);
416
+ const n = [], u = () => {
417
+ n.forEach((s) => s()), n.length = 0;
418
+ }, c = (s, m, h, w) => (s.addEventListener(m, h, w), () => s.removeEventListener(m, h, w)), o = Ye(
419
+ () => [St(t), $(a)],
420
+ ([s, m]) => {
421
+ if (u(), !s)
433
422
  return;
434
423
  const h = wt(m) ? { ...m } : m;
435
424
  n.push(
436
- ...r.flatMap((w) => u.map((S) => i(d, w, S, h)))
425
+ ...r.flatMap((w) => l.map((S) => c(s, w, S, h)))
437
426
  );
438
427
  },
439
428
  { immediate: !0, flush: "post" }
440
- ), s = () => {
441
- o(), l();
429
+ ), i = () => {
430
+ o(), u();
442
431
  };
443
- return H(s), s;
432
+ return K(i), i;
444
433
  }
445
434
  function Mt() {
446
- const e = g(!1), t = F();
435
+ const e = g(!1), t = H();
447
436
  return t && A(() => {
448
437
  e.value = !0;
449
438
  }, t), e;
@@ -452,113 +441,113 @@ function U(e) {
452
441
  const t = Mt();
453
442
  return j(() => (t.value, !!e()));
454
443
  }
455
- function E(e, t = {}) {
456
- const { window: r = N } = t, u = U(() => r && "matchMedia" in r && typeof r.matchMedia == "function");
444
+ function q(e, t = {}) {
445
+ const { window: r = N } = t, l = U(() => r && "matchMedia" in r && typeof r.matchMedia == "function");
457
446
  let a;
458
- const n = g(!1), l = (s) => {
459
- n.value = s.matches;
460
- }, i = () => {
461
- a && ("removeEventListener" in a ? a.removeEventListener("change", l) : a.removeListener(l));
447
+ const n = g(!1), u = (i) => {
448
+ n.value = i.matches;
449
+ }, c = () => {
450
+ a && ("removeEventListener" in a ? a.removeEventListener("change", u) : a.removeListener(u));
462
451
  }, o = Pe(() => {
463
- u.value && (i(), a = r.matchMedia(O(e)), "addEventListener" in a ? a.addEventListener("change", l) : a.addListener(l), n.value = a.matches);
452
+ l.value && (c(), a = r.matchMedia($(e)), "addEventListener" in a ? a.addEventListener("change", u) : a.addListener(u), n.value = a.matches);
464
453
  });
465
- return H(() => {
466
- o(), i(), a = void 0;
454
+ return K(() => {
455
+ o(), c(), a = void 0;
467
456
  }), n;
468
457
  }
469
458
  function Tt(e, t = {}) {
470
- function r(d, m) {
471
- let h = O(e[O(d)]);
459
+ function r(s, m) {
460
+ let h = $(e[$(s)]);
472
461
  return m != null && (h = kt(h, m)), typeof h == "number" && (h = `${h}px`), h;
473
462
  }
474
- const { window: u = N, strategy: a = "min-width" } = t;
475
- function n(d) {
476
- return u ? u.matchMedia(d).matches : !1;
463
+ const { window: l = N, strategy: a = "min-width" } = t;
464
+ function n(s) {
465
+ return l ? l.matchMedia(s).matches : !1;
477
466
  }
478
- const l = (d) => E(() => `(min-width: ${r(d)})`, t), i = (d) => E(() => `(max-width: ${r(d)})`, t), o = Object.keys(e).reduce((d, m) => (Object.defineProperty(d, m, {
479
- get: () => a === "min-width" ? l(m) : i(m),
467
+ const u = (s) => q(() => `(min-width: ${r(s)})`, t), c = (s) => q(() => `(max-width: ${r(s)})`, t), o = Object.keys(e).reduce((s, m) => (Object.defineProperty(s, m, {
468
+ get: () => a === "min-width" ? u(m) : c(m),
480
469
  enumerable: !0,
481
470
  configurable: !0
482
- }), d), {});
483
- function s() {
484
- const d = Object.keys(e).map((m) => [m, l(m)]);
485
- return j(() => d.filter(([, m]) => m.value).map(([m]) => m));
471
+ }), s), {});
472
+ function i() {
473
+ const s = Object.keys(e).map((m) => [m, u(m)]);
474
+ return j(() => s.filter(([, m]) => m.value).map(([m]) => m));
486
475
  }
487
476
  return Object.assign(o, {
488
- greaterOrEqual: l,
489
- smallerOrEqual: i,
490
- greater(d) {
491
- return E(() => `(min-width: ${r(d, 0.1)})`, t);
477
+ greaterOrEqual: u,
478
+ smallerOrEqual: c,
479
+ greater(s) {
480
+ return q(() => `(min-width: ${r(s, 0.1)})`, t);
492
481
  },
493
- smaller(d) {
494
- return E(() => `(max-width: ${r(d, -0.1)})`, t);
482
+ smaller(s) {
483
+ return q(() => `(max-width: ${r(s, -0.1)})`, t);
495
484
  },
496
- between(d, m) {
497
- return E(() => `(min-width: ${r(d)}) and (max-width: ${r(m, -0.1)})`, t);
485
+ between(s, m) {
486
+ return q(() => `(min-width: ${r(s)}) and (max-width: ${r(m, -0.1)})`, t);
498
487
  },
499
- isGreater(d) {
500
- return n(`(min-width: ${r(d, 0.1)})`);
488
+ isGreater(s) {
489
+ return n(`(min-width: ${r(s, 0.1)})`);
501
490
  },
502
- isGreaterOrEqual(d) {
503
- return n(`(min-width: ${r(d)})`);
491
+ isGreaterOrEqual(s) {
492
+ return n(`(min-width: ${r(s)})`);
504
493
  },
505
- isSmaller(d) {
506
- return n(`(max-width: ${r(d, -0.1)})`);
494
+ isSmaller(s) {
495
+ return n(`(max-width: ${r(s, -0.1)})`);
507
496
  },
508
- isSmallerOrEqual(d) {
509
- return n(`(max-width: ${r(d)})`);
497
+ isSmallerOrEqual(s) {
498
+ return n(`(max-width: ${r(s)})`);
510
499
  },
511
- isInBetween(d, m) {
512
- return n(`(min-width: ${r(d)}) and (max-width: ${r(m, -0.1)})`);
500
+ isInBetween(s, m) {
501
+ return n(`(min-width: ${r(s)}) and (max-width: ${r(m, -0.1)})`);
513
502
  },
514
- current: s,
503
+ current: i,
515
504
  active() {
516
- const d = s();
517
- return j(() => d.value.length === 0 ? "" : d.value.at(-1));
505
+ const s = i();
506
+ return j(() => s.value.length === 0 ? "" : s.value.at(-1));
518
507
  }
519
508
  });
520
509
  }
521
510
  function ue(e, t = {}) {
522
511
  const {
523
512
  controls: r = !1,
524
- navigator: u = me
525
- } = t, a = U(() => u && "permissions" in u);
513
+ navigator: l = me
514
+ } = t, a = U(() => l && "permissions" in l);
526
515
  let n;
527
- const l = typeof e == "string" ? { name: e } : e, i = g(), o = () => {
528
- n && (i.value = n.state);
529
- }, s = Ct(async () => {
516
+ const u = typeof e == "string" ? { name: e } : e, c = g(), o = () => {
517
+ n && (c.value = n.state);
518
+ }, i = Ct(async () => {
530
519
  if (a.value) {
531
520
  if (!n)
532
521
  try {
533
- n = await u.permissions.query(l), he(n, "change", o), o();
522
+ n = await l.permissions.query(u), he(n, "change", o), o();
534
523
  } catch {
535
- i.value = "prompt";
524
+ c.value = "prompt";
536
525
  }
537
526
  return n;
538
527
  }
539
528
  });
540
- return s(), r ? {
541
- state: i,
529
+ return i(), r ? {
530
+ state: c,
542
531
  isSupported: a,
543
- query: s
544
- } : i;
532
+ query: i
533
+ } : c;
545
534
  }
546
535
  function _t(e = {}) {
547
536
  const {
548
537
  navigator: t = me,
549
538
  read: r = !1,
550
- source: u,
539
+ source: l,
551
540
  copiedDuring: a = 1500,
552
541
  legacy: n = !1
553
- } = e, l = U(() => t && "clipboard" in t), i = ue("clipboard-read"), o = ue("clipboard-write"), s = j(() => l.value || n), d = g(""), m = g(!1), h = xt(() => m.value = !1, a);
542
+ } = e, u = U(() => t && "clipboard" in t), c = ue("clipboard-read"), o = ue("clipboard-write"), i = j(() => u.value || n), s = g(""), m = g(!1), h = xt(() => m.value = !1, a);
554
543
  function w() {
555
- l.value && v(i.value) ? t.clipboard.readText().then((y) => {
556
- d.value = y;
557
- }) : d.value = L();
544
+ u.value && v(c.value) ? t.clipboard.readText().then((y) => {
545
+ s.value = y;
546
+ }) : s.value = L();
558
547
  }
559
- s.value && r && he(["copy", "cut"], w);
560
- async function S(y = O(u)) {
561
- s.value && y != null && (l.value && v(o.value) ? await t.clipboard.writeText(y) : x(y), d.value = y, m.value = !0, h.start());
548
+ i.value && r && he(["copy", "cut"], w);
549
+ async function S(y = $(l)) {
550
+ i.value && y != null && (u.value && v(o.value) ? await t.clipboard.writeText(y) : x(y), s.value = y, m.value = !0, h.start());
562
551
  }
563
552
  function x(y) {
564
553
  const C = document.createElement("textarea");
@@ -572,33 +561,33 @@ function _t(e = {}) {
572
561
  return y === "granted" || y === "prompt";
573
562
  }
574
563
  return {
575
- isSupported: s,
576
- text: d,
564
+ isSupported: i,
565
+ text: s,
577
566
  copied: m,
578
567
  copy: S
579
568
  };
580
569
  }
581
- const $t = " ";
582
- function Ot(e) {
570
+ const Ot = " ";
571
+ function $t(e) {
583
572
  return e == null ? void 0 : e.replace(/(\d{3})\d*(\d{4})/g, "$1****$2");
584
573
  }
585
- function ie(e, t) {
586
- return e == null ? void 0 : e.replace(/\*/g, "M").replace(/\B(?=(?:\S{4})+$)/g, t ?? $t).replace(/M/g, "*");
574
+ function ce(e, t) {
575
+ return e == null ? void 0 : e.replace(/\*/g, "M").replace(/\B(?=(?:\S{4})+$)/g, t ?? Ot).replace(/M/g, "*");
587
576
  }
588
577
  function jt(e) {
589
578
  const t = _t();
590
- return k("phone", (u, a) => {
591
- const n = `phone_${Math.random().toString(36).slice(2)}`, l = "__table__column_phone__", i = T(u, a), o = 16, s = `cursor:pointer;width:${o}px;height:${o}px;`, d = ie(Ot(i), e == null ? void 0 : e.separator), m = ie(i, e == null ? void 0 : e.separator);
579
+ return k("phone", (l, a) => {
580
+ const n = `phone_${Math.random().toString(36).slice(2)}`, u = "__table__column_phone__", c = T(l, a), o = 16, i = `cursor:pointer;width:${o}px;height:${o}px;`, s = ce($t(c), e == null ? void 0 : e.separator), m = ce(c, e == null ? void 0 : e.separator);
592
581
  function h() {
593
- window.focus(), t.copy(i).then(() => {
594
- Fe.success({
582
+ window.focus(), t.copy(c).then(() => {
583
+ He.success({
595
584
  content: "复制成功",
596
585
  duration: 1e3
597
586
  });
598
587
  });
599
588
  }
600
589
  function w() {
601
- const v = document.querySelectorAll(`.${l}.content`);
590
+ const v = document.querySelectorAll(`.${u}.content`);
602
591
  v.length > 0 && v.forEach((y) => {
603
592
  const C = y;
604
593
  if (C.innerText.includes("****"))
@@ -614,22 +603,22 @@ function jt(e) {
614
603
  }
615
604
  function x() {
616
605
  const v = document.querySelector(`#${n}>.content`), y = !!(v != null && v.innerHTML.includes("****"));
617
- y ? (w(), v && (v.innerHTML = m)) : v && (v.innerHTML = d), S(!y);
606
+ y ? (w(), v && (v.innerHTML = m)) : v && (v.innerHTML = s), S(!y);
618
607
  }
619
608
  function L() {
620
- window.open(`tel:${i}`, "_blank");
609
+ window.open(`tel:${c}`, "_blank");
621
610
  }
622
611
  return f("div", {
623
612
  id: n,
624
613
  style: "display:flex;align-items:center;gap:4px;"
625
614
  }, [f("div", {
626
- "data-encrypt": d,
627
- class: `${l} content`,
615
+ "data-encrypt": s,
616
+ class: `${u} content`,
628
617
  style: "use-select:none;font-family: monospace;cursor:pointer;font-variant-numeric: tabular-nums;padding-right: 2px;"
629
- }, [e != null && e.safe ? d : m]), (e == null ? void 0 : e.safe) && (e == null ? void 0 : e.allowPreview) && f("i", {
618
+ }, [e != null && e.safe ? s : m]), (e == null ? void 0 : e.safe) && (e == null ? void 0 : e.allowPreview) && f("i", {
630
619
  class: "preview-icon",
631
620
  title: "显示完整号码",
632
- style: s,
621
+ style: i,
633
622
  onClick: x
634
623
  }, [f("svg", {
635
624
  width: o,
@@ -650,7 +639,7 @@ function jt(e) {
650
639
  "stroke-width": "4",
651
640
  "stroke-linejoin": "round"
652
641
  }, null)])]), (e == null ? void 0 : e.allowDial) && f("i", {
653
- style: s,
642
+ style: i,
654
643
  title: "拨出号码",
655
644
  onClick: L
656
645
  }, [f("svg", {
@@ -678,7 +667,7 @@ function jt(e) {
678
667
  "stroke-width": "4",
679
668
  "stroke-linejoin": "round"
680
669
  }, null)])]), (e == null ? void 0 : e.allowCopy) && f("i", {
681
- style: s,
670
+ style: i,
682
671
  title: "复制号码",
683
672
  onClick: h
684
673
  }, [f("svg", {
@@ -706,18 +695,18 @@ function Lt(e) {
706
695
  return k("render", (r) => e(r));
707
696
  }
708
697
  function Rt(e) {
709
- return k("tag", (r, u) => {
710
- const a = (e == null ? void 0 : e.maxCount) || 5, n = e != null && e.formatter ? e.formatter(r) : T(r, u), l = (e == null ? void 0 : e.textColors) || ["#F87335"], i = (e == null ? void 0 : e.backgroundColors) || ["#FFF4E8"], o = n.length > a, s = e == null ? void 0 : e.minWidth;
698
+ return k("tag", (r, l) => {
699
+ const a = (e == null ? void 0 : e.maxCount) || 5, n = e != null && e.formatter ? e.formatter(r) : T(r, l), u = (e == null ? void 0 : e.textColors) || ["#F87335"], c = (e == null ? void 0 : e.backgroundColors) || ["#FFF4E8"], o = n.length > a, i = e == null ? void 0 : e.minWidth;
711
700
  return f("div", {
712
701
  style: {
713
702
  display: "flex",
714
703
  flexWrap: "wrap"
715
704
  }
716
- }, [n.slice(0, a).map((d, m) => {
717
- const h = typeof l == "function" ? l(d, m) : l[m % l.length], w = typeof i == "function" ? i(d, m) : i[m % i.length];
705
+ }, [n.slice(0, a).map((s, m) => {
706
+ const h = typeof u == "function" ? u(s, m) : u[m % u.length], w = typeof c == "function" ? c(s, m) : c[m % c.length];
718
707
  return f("span", {
719
708
  style: {
720
- minWidth: s ? `${s}px` : "unset",
709
+ minWidth: i ? `${i}px` : "unset",
721
710
  textAlign: "center",
722
711
  margin: "2px",
723
712
  padding: "2px 5px",
@@ -726,21 +715,21 @@ function Rt(e) {
726
715
  color: h,
727
716
  backgroundColor: w
728
717
  }
729
- }, [d]);
718
+ }, [s]);
730
719
  }), o && "..."]);
731
720
  });
732
721
  }
733
- function ce(e) {
722
+ function ie(e) {
734
723
  if (typeof e == "string")
735
724
  return e;
736
725
  if (typeof e == "number")
737
726
  return `${e}px`;
738
727
  }
739
- function Et(e, t, r) {
740
- var u, a;
741
- return typeof e == "function" ? (u = e(r)) == null ? void 0 : u.toString() : typeof (e == null ? void 0 : e.content) == "function" ? (a = e == null ? void 0 : e.content(r)) == null ? void 0 : a.toString() : typeof (e == null ? void 0 : e.content) == "string" ? e == null ? void 0 : e.content : T(r, t);
728
+ function qt(e, t, r) {
729
+ var l, a;
730
+ return typeof e == "function" ? (l = e(r)) == null ? void 0 : l.toString() : typeof (e == null ? void 0 : e.content) == "function" ? (a = e == null ? void 0 : e.content(r)) == null ? void 0 : a.toString() : typeof (e == null ? void 0 : e.content) == "string" ? e == null ? void 0 : e.content : T(r, t);
742
731
  }
743
- function qt(e, t) {
732
+ function Et(e, t) {
744
733
  if (typeof e != "function") {
745
734
  if (typeof (e == null ? void 0 : e.color) == "function")
746
735
  return e == null ? void 0 : e.color(t);
@@ -750,37 +739,37 @@ function qt(e, t) {
750
739
  }
751
740
  function Pt(e, t) {
752
741
  if (typeof e != "function")
753
- return typeof (e == null ? void 0 : e.size) == "function" ? ce(e == null ? void 0 : e.size(t)) : ce(e == null ? void 0 : e.size);
742
+ return typeof (e == null ? void 0 : e.size) == "function" ? ie(e == null ? void 0 : e.size(t)) : ie(e == null ? void 0 : e.size);
754
743
  }
755
744
  function Yt(e, t) {
756
745
  let r = "";
757
- const u = qt(e, t), a = Pt(e, t);
758
- return u && (r += `color:${u};`), a && (r += `font-size:${a};`), r;
746
+ const l = Et(e, t), a = Pt(e, t);
747
+ return l && (r += `color:${l};`), a && (r += `font-size:${a};`), r;
759
748
  }
760
749
  function zt(e) {
761
- return k("text", (r, u) => {
762
- const a = Et(e || {}, u, r), n = Yt(e || {}, r);
750
+ return k("text", (r, l) => {
751
+ const a = qt(e || {}, l, r), n = Yt(e || {}, r);
763
752
  return f("span", {
764
753
  style: n
765
754
  }, [a]);
766
755
  });
767
756
  }
768
757
  function At(e) {
769
- 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";
770
- return k("progress", (l, i) => {
758
+ const t = (e == null ? void 0 : e.backgroundColor) ?? "#f5f5f5", r = (e == null ? void 0 : e.foregroundColor) ?? "#1677ff", l = (e == null ? void 0 : e.showText) ?? !0, a = (e == null ? void 0 : e.textColor) ?? "#000";
759
+ return k("progress", (u, c) => {
771
760
  var h;
772
- const o = T(l, i), s = (e == null ? void 0 : e.precision) ?? 0, d = Math.min(Math.max(((h = e == null ? void 0 : e.format) == null ? void 0 : h.call(e, o)) ?? o, 0), 1), m = u ? `${(d * 100).toFixed(s)}%` : "";
761
+ const o = T(u, c), i = (e == null ? void 0 : e.precision) ?? 0, s = Math.min(Math.max(((h = e == null ? void 0 : e.format) == null ? void 0 : h.call(e, o)) ?? o, 0), 1), m = l ? `${(s * 100).toFixed(i)}%` : "";
773
762
  return f("div", {
774
763
  style: `background-color:${t};position:relative;min-height: 20px;text-align: center;border-radius: 2px;overflow:hidden;`
775
764
  }, [f("div", {
776
765
  style: `background-color: ${r};position:absolute;left:0;top:0;right;0;width: ${m};height: 100%;`
777
- }, null), u && f("div", {
766
+ }, null), l && f("div", {
778
767
  style: `position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:${a}`
779
768
  }, [m])]);
780
769
  });
781
770
  }
782
771
  function Bt(e) {
783
- return k("serial", (r, u, a) => {
772
+ return k("serial", (r, l, a) => {
784
773
  const n = {
785
774
  color: typeof (e == null ? void 0 : e.color) == "function" ? e.color(r) : e == null ? void 0 : e.color,
786
775
  fontWeight: (e == null ? void 0 : e.weight) || "normal",
@@ -818,9 +807,9 @@ function G(e, t) {
818
807
  });
819
808
  return {
820
809
  render: ({
821
- record: u,
810
+ record: l,
822
811
  rowIndex: a
823
- }) => r(u, e, {
812
+ }) => r(l, e, {
824
813
  ...t || {},
825
814
  rowIndex: a
826
815
  }),
@@ -835,50 +824,50 @@ function de({
835
824
  columns: e,
836
825
  columnsOptions: t,
837
826
  columnsGroups: r,
838
- pageMode: u,
827
+ pageMode: l,
839
828
  collapsedColumns: a,
840
829
  events: n
841
830
  }) {
842
- const l = e.map((i) => ({
831
+ const u = e.map((c) => ({
843
832
  ...t || {},
844
- ...i
845
- })).map((i) => Ft(i, u, a, n)).filter(Boolean);
846
- return Vt(l, r);
847
- }
848
- function It(e, t) {
849
- const r = [], u = (n) => {
850
- if ("children" in n && (n.children = n.children.map(u)), "key" in n) {
851
- const l = t.find((i) => {
833
+ ...c
834
+ })).map((c) => Ht(c, l, a, n)).filter(Boolean);
835
+ return Ft(u, r);
836
+ }
837
+ function Vt(e, t) {
838
+ const r = [], l = (n) => {
839
+ if ("children" in n && (n.children = n.children.map(l)), "key" in n) {
840
+ const u = t.find((c) => {
852
841
  var o;
853
- return ((o = Object.getOwnPropertyDescriptor(i, "key")) == null ? void 0 : o.value) === n.key;
842
+ return ((o = Object.getOwnPropertyDescriptor(c, "key")) == null ? void 0 : o.value) === n.key;
854
843
  });
855
- if (l)
856
- return r.push(l), l;
844
+ if (u)
845
+ return r.push(u), u;
857
846
  }
858
847
  return n;
859
- }, a = u(e);
848
+ }, a = l(e);
860
849
  if (r != null && r.length && a) {
861
- const n = Math.min(...r.map((l) => t.indexOf(l)));
862
- r.forEach((l) => {
863
- const i = t.indexOf(l);
864
- t.splice(i, 1);
850
+ const n = Math.min(...r.map((u) => t.indexOf(u)));
851
+ r.forEach((u) => {
852
+ const c = t.indexOf(u);
853
+ t.splice(c, 1);
865
854
  }), t.splice(n, 0, a);
866
855
  }
867
856
  }
868
- function Vt(e, t = []) {
857
+ function Ft(e, t = []) {
869
858
  return t.forEach((r) => {
870
- It(r, e);
859
+ Vt(r, e);
871
860
  }), e;
872
861
  }
873
- function Ft(e, t, r, u) {
862
+ function Ht(e, t, r, l) {
874
863
  const {
875
864
  render: a,
876
865
  disableColumnMode: n
877
866
  } = G(e, {
878
867
  previewing: !1,
879
- emits: u
868
+ emits: l
880
869
  }) || {};
881
- if (!(n || e.visiable === !1) && !(typeof e.visiable == "function" && e.visiable() === !1) && !r.value.find((l) => l.key === e.key && l.collapsed === !0))
870
+ if (!(n || e.visiable === !1) && !(typeof e.visiable == "function" && e.visiable() === !1) && !r.value.find((u) => u.key === e.key && u.collapsed === !0))
882
871
  return {
883
872
  dataIndex: e.index || e.key,
884
873
  title: e.title,
@@ -897,10 +886,10 @@ function Ft(e, t, r, u) {
897
886
  render: a
898
887
  };
899
888
  }
900
- function Wt() {
889
+ function It() {
901
890
  return new Qe.Workbook();
902
891
  }
903
- function Ht(e, t = "Sheet1") {
892
+ function Kt(e, t = "Sheet1") {
904
893
  return e.addWorksheet(t, {
905
894
  headerFooter: {
906
895
  firstHeader: "",
@@ -908,7 +897,7 @@ function Ht(e, t = "Sheet1") {
908
897
  }
909
898
  });
910
899
  }
911
- function Kt(e, t) {
900
+ function Wt(e, t) {
912
901
  e.columns = t;
913
902
  }
914
903
  function Nt(e, t) {
@@ -919,10 +908,10 @@ async function Ut({
919
908
  rows: t,
920
909
  filename: r
921
910
  }) {
922
- const u = Wt(), a = Ht(u);
923
- Kt(a, e), Nt(a, t);
924
- const n = await u.xlsx.writeBuffer(), l = new Blob([n]);
925
- Gt(l, r || `${I().format("YYYY-MM-DD HH:mm:ss")}.xlsx`);
911
+ const l = It(), a = Kt(l);
912
+ Wt(a, e), Nt(a, t);
913
+ const n = await l.xlsx.writeBuffer(), u = new Blob([n]);
914
+ Gt(u, r || `${V().format("YYYY-MM-DD HH:mm:ss")}.xlsx`);
926
915
  }
927
916
  function Gt(e, t) {
928
917
  const r = document.createElement("a");
@@ -937,23 +926,23 @@ function Zt(e, t) {
937
926
  render: G(a),
938
927
  content: typeof a.exportable == "object" ? a.exportable.content : void 0
939
928
  })).forEach((a) => {
940
- var i;
941
- const n = (i = a.render) == null ? void 0 : i.render, l = () => {
929
+ var c;
930
+ const n = (c = a.render) == null ? void 0 : c.render, u = () => {
942
931
  var o;
943
932
  switch (!0) {
944
933
  case !!a.content:
945
934
  return a.content && a.content(t);
946
935
  case !!n: {
947
- const s = document.createElement("div"), d = ze(() => n && n({
936
+ const i = document.createElement("div"), s = ze(() => n && n({
948
937
  record: t
949
938
  }));
950
- return Ae(d, s), (o = d.el) == null ? void 0 : o.innerText;
939
+ return Ae(s, i), (o = s.el) == null ? void 0 : o.innerText;
951
940
  }
952
941
  default:
953
942
  return T(t, a.options);
954
943
  }
955
944
  };
956
- r[a.options.key] = l();
945
+ r[a.options.key] = u();
957
946
  }), r;
958
947
  }
959
948
  function Jt(e) {
@@ -967,16 +956,16 @@ function Jt(e) {
967
956
  }
968
957
  }
969
958
  function Qt(e, t, r) {
970
- const u = e.filter((n) => n.exportable !== !1).map((n) => {
971
- var l, i;
959
+ const l = e.filter((n) => n.exportable !== !1).map((n) => {
960
+ var u, c;
972
961
  return {
973
962
  key: n.key,
974
- header: ((l = n.exportable) == null ? void 0 : l.header) || n.title,
975
- width: ((i = n.exportable) == null ? void 0 : i.width) || Jt(n.width)
963
+ header: ((u = n.exportable) == null ? void 0 : u.header) || n.title,
964
+ width: ((c = n.exportable) == null ? void 0 : c.width) || Jt(n.width)
976
965
  };
977
966
  }), a = t.map((n) => Zt(e, n));
978
967
  Ut({
979
- columns: u,
968
+ columns: l,
980
969
  rows: a,
981
970
  filename: r
982
971
  });
@@ -988,9 +977,9 @@ function Xt() {
988
977
  }
989
978
  class Z {
990
979
  constructor(t) {
991
- $(this, "sort", {});
992
- $(this, "defaultSort", {});
993
- $(this, "before", (t) => {
980
+ O(this, "sort", {});
981
+ O(this, "defaultSort", {});
982
+ O(this, "before", (t) => {
994
983
  t.paramsQuery = {
995
984
  ...t.paramsQuery || {},
996
985
  sort: this.stringify(this.sort)
@@ -1011,9 +1000,9 @@ class Z {
1011
1000
  * @param key 排序关键字
1012
1001
  */
1013
1002
  remove(t) {
1014
- const r = Object.entries(this.sort).filter(([u]) => u !== t);
1015
- this.sort = {}, r && r.forEach(([u, a]) => {
1016
- this.sort[u] = a;
1003
+ const r = Object.entries(this.sort).filter(([l]) => l !== t);
1004
+ this.sort = {}, r && r.forEach(([l, a]) => {
1005
+ this.sort[l] = a;
1017
1006
  });
1018
1007
  }
1019
1008
  /**
@@ -1026,7 +1015,7 @@ class Z {
1026
1015
  * 转换排序对象为字符串
1027
1016
  */
1028
1017
  stringify(t) {
1029
- return typeof t != "object" ? [] : (t instanceof Z && (t = t.sort), Object.entries(t).map(([r, u]) => `${r},${u}`));
1018
+ return typeof t != "object" ? [] : (t instanceof Z && (t = t.sort), Object.entries(t).map(([r, l]) => `${r},${l}`));
1030
1019
  }
1031
1020
  }
1032
1021
  const pt = 300;
@@ -1034,20 +1023,20 @@ function er(e) {
1034
1023
  const t = e, r = t == null ? void 0 : t.querySelector(".arco-scrollbar-container.arco-table-body");
1035
1024
  if (!r)
1036
1025
  return;
1037
- let u, a = !1, n;
1026
+ let l, a = !1, n;
1038
1027
  r.addEventListener("mousedown", () => {
1039
- u = setTimeout(() => {
1040
- u && (r.style.cursor = "grab", r.style.userSelect = "none", a = !0);
1028
+ l = setTimeout(() => {
1029
+ l && (r.style.cursor = "grab", r.style.userSelect = "none", a = !0);
1041
1030
  }, pt);
1042
1031
  }), r.addEventListener("mouseup", () => {
1043
- clearTimeout(u), u && (u = void 0, a = !1, r.style.cursor = "", r.style.userSelect = "", n = void 0);
1044
- }), r.addEventListener("mousemove", (l) => {
1032
+ clearTimeout(l), l && (l = void 0, a = !1, r.style.cursor = "", r.style.userSelect = "", n = void 0);
1033
+ }), r.addEventListener("mousemove", (u) => {
1045
1034
  if (a)
1046
1035
  if (n === void 0)
1047
- n = l.clientX;
1036
+ n = u.clientX;
1048
1037
  else {
1049
- const i = n - l.clientX;
1050
- n = l.clientX, r.scrollLeft += i;
1038
+ const c = n - u.clientX;
1039
+ n = u.clientX, r.scrollLeft += c;
1051
1040
  }
1052
1041
  });
1053
1042
  }
@@ -1088,7 +1077,7 @@ const rr = /* @__PURE__ */ B({
1088
1077
  }
1089
1078
  },
1090
1079
  setup(e) {
1091
- const t = F(), r = g(0), u = e.columns.filter((n) => typeof n.visiable == "boolean" ? n.visiable : typeof n.visiable == "function" ? n.visiable() : !0).map((n) => ({
1080
+ const t = H(), r = g(0), l = e.columns.filter((n) => typeof n.visiable == "boolean" ? n.visiable : typeof n.visiable == "function" ? n.visiable() : !0).map((n) => ({
1092
1081
  options: n,
1093
1082
  renderer: G(n, {
1094
1083
  previewing: !0
@@ -1096,16 +1085,16 @@ const rr = /* @__PURE__ */ B({
1096
1085
  })).filter(({
1097
1086
  options: n
1098
1087
  }) => {
1099
- var l;
1100
- return !((l = e.exclude) != null && l.includes(n.key));
1088
+ var u;
1089
+ return !((u = e.exclude) != null && u.includes(n.key));
1101
1090
  }).filter(({
1102
1091
  renderer: n
1103
1092
  }) => !(n != null && n.disableViewMode));
1104
1093
  function a() {
1105
1094
  var n;
1106
1095
  if (t) {
1107
- const l = (n = t.proxy) == null ? void 0 : n.$el;
1108
- r.value = Math.floor(l.offsetWidth / e.minWidth);
1096
+ const u = (n = t.proxy) == null ? void 0 : n.$el;
1097
+ r.value = Math.floor(u.offsetWidth / e.minWidth);
1109
1098
  }
1110
1099
  }
1111
1100
  return A(() => {
@@ -1114,19 +1103,19 @@ const rr = /* @__PURE__ */ B({
1114
1103
  let n;
1115
1104
  return f("div", {
1116
1105
  class: "preview-container"
1117
- }, [f(We, {
1106
+ }, [f(Ie, {
1118
1107
  column: r.value,
1119
1108
  bordered: !0,
1120
1109
  align: "left",
1121
1110
  layout: e.layout
1122
- }, tr(n = u.map((l) => f(He, {
1123
- label: l.options.title
1111
+ }, tr(n = l.map((u) => f(Ke, {
1112
+ label: u.options.title
1124
1113
  }, {
1125
1114
  default: () => {
1126
- var i, o;
1127
- return [(i = l.renderer) != null && i.render ? (o = l.renderer) == null ? void 0 : o.render({
1115
+ var c, o;
1116
+ return [(c = u.renderer) != null && c.render ? (o = u.renderer) == null ? void 0 : o.render({
1128
1117
  record: e.record
1129
- }) : T(e.record, l.options)];
1118
+ }) : T(e.record, u.options)];
1130
1119
  }
1131
1120
  }))) ? n : {
1132
1121
  default: () => [n]
@@ -1136,10 +1125,10 @@ const rr = /* @__PURE__ */ B({
1136
1125
  });
1137
1126
  function nr(e, t, {
1138
1127
  tableForm: r,
1139
- tableEvents: u
1128
+ tableEvents: l
1140
1129
  }) {
1141
1130
  const a = e.refreshable || e.exportable || t.slots.actions, n = !!(r != null && r.length) && a;
1142
- return a || n ? () => f(W, null, [n && f(Ke, {
1131
+ return a || n ? () => f(I, null, [n && f(We, {
1143
1132
  margin: 0
1144
1133
  }, null), a && f("div", {
1145
1134
  class: "table-actions",
@@ -1153,19 +1142,19 @@ function nr(e, t, {
1153
1142
  }, [f("div", {
1154
1143
  class: "built-in"
1155
1144
  }, [f(ae, null, {
1156
- default: () => [e.refreshable && f(q, {
1145
+ default: () => [e.refreshable && f(E, {
1157
1146
  type: "primary",
1158
- onClick: () => u("reload")
1147
+ onClick: () => l("reload")
1159
1148
  }, {
1160
1149
  default: () => [Y("刷新")]
1161
- }), e.exportable && f(q, {
1150
+ }), e.exportable && f(E, {
1162
1151
  type: "primary",
1163
- onClick: () => u("export")
1152
+ onClick: () => l("export")
1164
1153
  }, {
1165
1154
  default: () => [Y("导出")]
1166
- }), e.collapsable && f(q, {
1155
+ }), e.collapsable && f(E, {
1167
1156
  type: "primary",
1168
- onClick: () => u("collapse")
1157
+ onClick: () => l("collapse")
1169
1158
  }, {
1170
1159
  default: () => [Y("显示")]
1171
1160
  })]
@@ -1178,7 +1167,7 @@ function nr(e, t, {
1178
1167
  }
1179
1168
  function ar(e, t, {
1180
1169
  tableForm: r,
1181
- tableEvents: u,
1170
+ tableEvents: l,
1182
1171
  formInstance: a
1183
1172
  }) {
1184
1173
  return r != null && r.length ? () => f("div", {
@@ -1187,7 +1176,7 @@ function ar(e, t, {
1187
1176
  form: r,
1188
1177
  ref: (n) => a && (a.value = n),
1189
1178
  searchable: !0,
1190
- onSubmit: () => u("reload", {
1179
+ onSubmit: () => l("reload", {
1191
1180
  reset: !0
1192
1181
  })
1193
1182
  }, e.formOptions), null)]) : () => {
@@ -1196,44 +1185,44 @@ function ar(e, t, {
1196
1185
  function lr(e, t, {
1197
1186
  tableSource: r
1198
1187
  }) {
1199
- const u = g([]);
1188
+ const l = g([]);
1200
1189
  function a() {
1201
- u.value = [], t.emit("update:radio-key", null), t.emit("update:radio-row", null), t.emit("update:checkbox-keys", []), t.emit("update:checkbox-rows", []);
1190
+ l.value = [], t.emit("update:radio-key", null), t.emit("update:radio-row", null), t.emit("update:checkbox-keys", []), t.emit("update:checkbox-rows", []);
1202
1191
  }
1203
1192
  function n() {
1204
1193
  re(() => {
1205
- e.checkboxRows !== void 0 && (u.value = [...e.checkboxRows.map((s) => s[e.rowKey])]), e.checkboxKeys !== void 0 && (u.value = [...e.checkboxKeys]), e.radioKey && (u.value = [e.radioKey]), e.radioRow && (u.value = [e.radioRow[e.rowKey]]);
1194
+ e.checkboxRows !== void 0 && (l.value = [...e.checkboxRows.map((i) => i[e.rowKey])]), e.checkboxKeys !== void 0 && (l.value = [...e.checkboxKeys]), e.radioKey && (l.value = [e.radioKey]), e.radioRow && (l.value = [e.radioRow[e.rowKey]]);
1206
1195
  });
1207
1196
  }
1208
- function l() {
1209
- const s = typeof e.selection == "string" ? {
1197
+ function u() {
1198
+ const i = typeof e.selection == "string" ? {
1210
1199
  type: e.selection
1211
1200
  } : e.selection;
1212
- switch (s == null ? void 0 : s.type) {
1201
+ switch (i == null ? void 0 : i.type) {
1213
1202
  case "radio":
1214
1203
  return {
1215
1204
  title: "选择",
1216
- ...s,
1217
- selectedRowKeys: u.value
1205
+ ...i,
1206
+ selectedRowKeys: l.value
1218
1207
  };
1219
1208
  case "checkbox":
1220
1209
  return {
1221
1210
  showCheckedAll: !0,
1222
- selectedRowKeys: u.value,
1223
- ...s
1211
+ selectedRowKeys: l.value,
1212
+ ...i
1224
1213
  };
1225
1214
  }
1226
1215
  }
1227
- function i(s, d, m) {
1216
+ function c(i, s, m) {
1228
1217
  const {
1229
1218
  type: h
1230
- } = l() || {};
1219
+ } = u() || {};
1231
1220
  switch (h) {
1232
1221
  case "radio":
1233
- t.emit("update:radio-key", d), t.emit("update:radio-row", m);
1222
+ t.emit("update:radio-key", s), t.emit("update:radio-row", m);
1234
1223
  break;
1235
1224
  case "checkbox":
1236
- t.emit("update:checkbox-keys", s), t.emit("update:checkbox-rows", s.map((w) => {
1225
+ t.emit("update:checkbox-keys", i), t.emit("update:checkbox-rows", i.map((w) => {
1237
1226
  var S;
1238
1227
  return r.value.find((x) => x[e.rowKey] === w) || ((S = e.checkboxRows) == null ? void 0 : S.find((x) => x[e.rowKey] === w));
1239
1228
  }));
@@ -1242,16 +1231,16 @@ function lr(e, t, {
1242
1231
  }
1243
1232
  function o() {
1244
1233
  re(() => {
1245
- t.emit("update:checkbox-keys", u.value), t.emit("update:checkbox-rows", u.value.map((s) => {
1246
- var d;
1247
- return r.value.find((m) => m[e.rowKey] === s) || ((d = e.checkboxRows) == null ? void 0 : d.find((m) => m[e.rowKey] === s));
1234
+ t.emit("update:checkbox-keys", l.value), t.emit("update:checkbox-rows", l.value.map((i) => {
1235
+ var s;
1236
+ return r.value.find((m) => m[e.rowKey] === i) || ((s = e.checkboxRows) == null ? void 0 : s.find((m) => m[e.rowKey] === i));
1248
1237
  }));
1249
1238
  });
1250
1239
  }
1251
1240
  return n(), {
1252
- selectedRowKeys: u,
1253
- rowSelection: l(),
1254
- onSelect: i,
1241
+ selectedRowKeys: l,
1242
+ rowSelection: u(),
1243
+ onSelect: c,
1255
1244
  onSelectAll: o,
1256
1245
  resetSelection: a,
1257
1246
  reloadSelection: n
@@ -1259,15 +1248,15 @@ function lr(e, t, {
1259
1248
  }
1260
1249
  function ur(e, t, {
1261
1250
  pageService: r,
1262
- tableEvents: u
1251
+ tableEvents: l
1263
1252
  }) {
1264
- function a(i) {
1265
- r && (r.pageIndex = i, u("reload"));
1253
+ function a(c) {
1254
+ r && (r.pageIndex = c, l("reload"));
1266
1255
  }
1267
- function n(i) {
1268
- r && (r.pageSize = i, u("reload"));
1256
+ function n(c) {
1257
+ r && (r.pageSize = c, l("reload"));
1269
1258
  }
1270
- const l = Tt({
1259
+ const u = Tt({
1271
1260
  mobile: 0,
1272
1261
  tablet: 640,
1273
1262
  desktop: 1024
@@ -1279,24 +1268,24 @@ function ur(e, t, {
1279
1268
  }
1280
1269
  }, [f(Ne, {
1281
1270
  current: r.pageIndex,
1282
- "onUpdate:current": (i) => r.pageIndex = i,
1271
+ "onUpdate:current": (c) => r.pageIndex = c,
1283
1272
  "page-size": r.pageSize,
1284
- "onUpdate:page-size": (i) => r.pageSize = i,
1273
+ "onUpdate:page-size": (c) => r.pageSize = c,
1285
1274
  total: r.total,
1286
1275
  "page-size-options": r.pageSizeOpts,
1287
1276
  "hide-on-single-page": !e.alwayShowPagination,
1288
1277
  "show-total": !0,
1289
1278
  "show-page-size": !0,
1290
- simple: l.smaller("desktop").value,
1291
- onChange: (i) => a(i),
1292
- onPageSizeChange: (i) => n(i),
1279
+ simple: u.smaller("desktop").value,
1280
+ onChange: (c) => a(c),
1281
+ onPageSizeChange: (c) => n(c),
1293
1282
  style: {
1294
1283
  justifyContent: "flex-end"
1295
1284
  }
1296
1285
  }, null)]) : () => {
1297
1286
  };
1298
1287
  }
1299
- const ir = /* @__PURE__ */ B({
1288
+ const cr = /* @__PURE__ */ B({
1300
1289
  props: {
1301
1290
  collapsedColumns: {
1302
1291
  type: Array,
@@ -1308,29 +1297,29 @@ const ir = /* @__PURE__ */ B({
1308
1297
  label: a.title,
1309
1298
  value: a.key,
1310
1299
  disabled: !1
1311
- }))), u = g(e.collapsedColumns.filter((a) => a.collapsed).map((a) => a.key));
1300
+ }))), l = g(e.collapsedColumns.filter((a) => a.collapsed).map((a) => a.key));
1312
1301
  return Ze(() => {
1313
1302
  const a = e.collapsedColumns.map((n) => ({
1314
1303
  key: n.key,
1315
1304
  title: n.title,
1316
- collapsed: u.value.includes(n.key)
1305
+ collapsed: l.value.includes(n.key)
1317
1306
  }));
1318
1307
  t.close(a);
1319
1308
  }), () => f("div", {
1320
1309
  class: "table-collapsed-render"
1321
1310
  }, [f(Ue, {
1322
1311
  data: r.value,
1323
- "default-value": u.value,
1324
- onChange: (a) => u.value = [...a],
1312
+ "default-value": l.value,
1313
+ onChange: (a) => l.value = [...a],
1325
1314
  title: ["显示列", "隐藏列"],
1326
1315
  style: {
1327
1316
  justifyContent: "center"
1328
1317
  }
1329
1318
  }, {
1330
- default: () => [De(f("template", null, null), [[Ie("slot"), "source"]])]
1319
+ default: () => [De(f("template", null, null), [[Ve("slot"), "source"]])]
1331
1320
  })]);
1332
1321
  }
1333
- }), cr = /* @__PURE__ */ B({
1322
+ }), ir = /* @__PURE__ */ B({
1334
1323
  props: {
1335
1324
  value: {
1336
1325
  type: Object,
@@ -1347,8 +1336,8 @@ const ir = /* @__PURE__ */ B({
1347
1336
  },
1348
1337
  setup(e) {
1349
1338
  const t = D();
1350
- function r(u) {
1351
- e.onSubmit && e.onSubmit(u), t.close(u);
1339
+ function r(l) {
1340
+ e.onSubmit && e.onSubmit(l), t.close(l);
1352
1341
  }
1353
1342
  return () => f("div", {
1354
1343
  class: "edit-form-container"
@@ -1498,21 +1487,21 @@ const ir = /* @__PURE__ */ B({
1498
1487
  },
1499
1488
  expose: ["preview", "export", "edit", "reload", "tableSource", "formSource", "update:radio-key", "update:radio-row", "update:checkbox-keys", "update:checkbox-rows", "formInstance", "resetSelection", "reloadSelection", "reloadColumns", "change"],
1500
1489
  setup(e, t) {
1501
- const r = Math.random().toString(32).slice(2).toUpperCase(), u = g(), a = g(), n = g(), l = g(), [i, o] = pe(e.columns), s = g(!1), d = e.form ?? et(e.columns), m = S(), h = L(), w = g(e.columns.map((c) => ({
1502
- key: c.key,
1503
- title: c.title,
1504
- collapsed: !!c.collapsed
1490
+ const r = Math.random().toString(32).slice(2).toUpperCase(), l = g(), a = g(), n = g(), u = g(), [c, o] = pe(e.columns), i = g(!1), s = e.form ?? et(e.columns), m = S(), h = L(), w = g(e.columns.map((d) => ({
1491
+ key: d.key,
1492
+ title: d.title,
1493
+ collapsed: !!d.collapsed
1505
1494
  })));
1506
1495
  function S() {
1507
1496
  switch (!0) {
1508
1497
  case (typeof e.pageable == "string" && e.pageable === "server"):
1509
- return new V();
1498
+ return new F();
1510
1499
  case (typeof e.pageable == "boolean" && e.pageable === !0):
1511
- return new V();
1500
+ return new F();
1512
1501
  case (typeof e.pageable == "object" && !!e.pageable.reset):
1513
1502
  return e.pageable;
1514
1503
  case (typeof e.pageable == "object" && (!!e.pageable.index || !!e.pageable.size)):
1515
- return new V(e.pageable.index, e.pageable.size);
1504
+ return new F(e.pageable.index, e.pageable.size);
1516
1505
  }
1517
1506
  }
1518
1507
  const x = (() => {
@@ -1526,29 +1515,29 @@ const ir = /* @__PURE__ */ B({
1526
1515
  }
1527
1516
  })();
1528
1517
  function L() {
1529
- const c = e.columns.find((b) => !!b.sortable);
1530
- if (c || e.sortable)
1518
+ const d = e.columns.find((b) => !!b.sortable);
1519
+ if (d || e.sortable)
1531
1520
  return new Z({
1532
1521
  ...e.sortable || {},
1533
- ...c ? {
1534
- [c.key]: c.sortable
1522
+ ...d ? {
1523
+ [d.key]: d.sortable
1535
1524
  } : {}
1536
1525
  });
1537
1526
  }
1538
- function v(c) {
1527
+ function v(d) {
1539
1528
  const {
1540
1529
  exportExcel: b
1541
1530
  } = Xt();
1542
- b((c == null ? void 0 : c.columns) || e.columns, (c == null ? void 0 : c.source) || i.value, (c == null ? void 0 : c.filename) || (typeof e.exportable == "object" ? e.exportable.filename : void 0));
1531
+ b((d == null ? void 0 : d.columns) || e.columns, (d == null ? void 0 : d.source) || c.value, (d == null ? void 0 : d.filename) || (typeof e.exportable == "object" ? e.exportable.filename : void 0));
1543
1532
  }
1544
- function y(c) {
1533
+ function y(d) {
1545
1534
  let b;
1546
1535
  switch (!0) {
1547
- case !!(c != null && c.key):
1548
- b = i.value.find((_) => _[e.rowKey] === (c == null ? void 0 : c.key));
1536
+ case !!(d != null && d.key):
1537
+ b = c.value.find((_) => _[e.rowKey] === (d == null ? void 0 : d.key));
1549
1538
  break;
1550
- case !!(c != null && c.record):
1551
- b = c == null ? void 0 : c.record;
1539
+ case !!(d != null && d.record):
1540
+ b = d == null ? void 0 : d.record;
1552
1541
  break;
1553
1542
  }
1554
1543
  if (!b)
@@ -1557,38 +1546,38 @@ const ir = /* @__PURE__ */ B({
1557
1546
  record: b,
1558
1547
  columns: e.columns
1559
1548
  }, {
1560
- title: (c == null ? void 0 : c.title) || "详情",
1561
- mode: (c == null ? void 0 : c.mode) || "dialog"
1549
+ title: (d == null ? void 0 : d.title) || "详情",
1550
+ mode: (d == null ? void 0 : d.mode) || "dialog"
1562
1551
  });
1563
1552
  }
1564
- function C(c) {
1553
+ function C(d) {
1565
1554
  let b;
1566
1555
  switch (!0) {
1567
- case !!(c != null && c.key):
1568
- b = i.value.find((_) => _[e.rowKey] === (c == null ? void 0 : c.key));
1556
+ case !!(d != null && d.key):
1557
+ b = c.value.find((_) => _[e.rowKey] === (d == null ? void 0 : d.key));
1569
1558
  break;
1570
- case !!(c != null && c.record):
1571
- b = c == null ? void 0 : c.record;
1559
+ case !!(d != null && d.record):
1560
+ b = d == null ? void 0 : d.record;
1572
1561
  break;
1573
1562
  }
1574
1563
  if (!b)
1575
1564
  throw new Error("未找到需要编辑的数据");
1576
- return n.value.open(cr, {
1565
+ return n.value.open(ir, {
1577
1566
  value: b,
1578
- form: c == null ? void 0 : c.form,
1579
- onSubmit: c.onSubmit
1567
+ form: d == null ? void 0 : d.form,
1568
+ onSubmit: d.onSubmit
1580
1569
  }, {
1581
- title: (c == null ? void 0 : c.title) || "编辑",
1582
- mode: (c == null ? void 0 : c.mode) || "dialog",
1570
+ title: (d == null ? void 0 : d.title) || "编辑",
1571
+ mode: (d == null ? void 0 : d.mode) || "dialog",
1583
1572
  footer: !0,
1584
1573
  form: "form"
1585
1574
  });
1586
1575
  }
1587
- function M(c) {
1576
+ function M(d) {
1588
1577
  var p, ee;
1589
1578
  if (!e.dataLoad)
1590
1579
  return Promise.reject();
1591
- c != null && c.reset && (m && m.reset(), h && h.reset(), (p = u.value) == null || p.resetSorters());
1580
+ d != null && d.reset && (m && m.reset(), h && h.reset(), (p = l.value) == null || p.resetSorters());
1592
1581
  const b = {
1593
1582
  ...((ee = a.value) == null ? void 0 : ee.formSource) || {}
1594
1583
  };
@@ -1601,27 +1590,27 @@ const ir = /* @__PURE__ */ B({
1601
1590
  sort: h,
1602
1591
  update: o
1603
1592
  });
1604
- return z(_) ? (s.value = !0, Promise.resolve(_).finally(() => {
1605
- s.value = !1;
1593
+ return z(_) ? (i.value = !0, Promise.resolve(_).finally(() => {
1594
+ i.value = !1;
1606
1595
  }), _) : Promise.resolve();
1607
1596
  }
1608
1597
  function ye() {
1609
- n.value.open(ir, {
1598
+ n.value.open(cr, {
1610
1599
  collapsedColumns: w.value
1611
1600
  }, {
1612
1601
  title: "显示列",
1613
1602
  size: "small",
1614
1603
  footer: !0
1615
- }).then((c) => {
1616
- w.value = c;
1604
+ }).then((d) => {
1605
+ w.value = d;
1617
1606
  });
1618
1607
  }
1619
- const be = (c, {
1608
+ const be = (d, {
1620
1609
  type: b
1621
1610
  }) => {
1622
1611
  switch (b) {
1623
1612
  case "drag": {
1624
- o(c), t.emit("change", c);
1613
+ o(d), t.emit("change", d);
1625
1614
  break;
1626
1615
  }
1627
1616
  }
@@ -1632,8 +1621,8 @@ const ir = /* @__PURE__ */ B({
1632
1621
  edit: C,
1633
1622
  collapse: ye
1634
1623
  });
1635
- function ge(c, b) {
1636
- !h || x === "client" || (b ? h.update(c, b === "descend" ? "desc" : "asc") : h.remove(c), R("reload"));
1624
+ function ge(d, b) {
1625
+ !h || x === "client" || (b ? h.update(d, b === "descend" ? "desc" : "asc") : h.remove(d), R("reload"));
1637
1626
  }
1638
1627
  const J = g(de({
1639
1628
  columns: e.columns,
@@ -1644,8 +1633,8 @@ const ir = /* @__PURE__ */ B({
1644
1633
  events: R
1645
1634
  })), P = {
1646
1635
  tableEvents: R,
1647
- tableForm: d,
1648
- tableSource: i,
1636
+ tableForm: s,
1637
+ tableSource: c,
1649
1638
  formInstance: a,
1650
1639
  pageService: m,
1651
1640
  formOptions: e.formOptions
@@ -1663,7 +1652,7 @@ const ir = /* @__PURE__ */ B({
1663
1652
  hoverable: e.hoverable,
1664
1653
  stripe: e.stripe,
1665
1654
  scroll: {
1666
- x: e.columns.reduce((c, b) => c += typeof b.width != "number" ? Math.max(b.title.length * 16, 80) : b.width, 0),
1655
+ x: e.columns.reduce((d, b) => d += typeof b.width != "number" ? Math.max(b.title.length * 16, 80) : b.width, 0),
1667
1656
  y: e.height ?? "100%"
1668
1657
  },
1669
1658
  rowSelection: X,
@@ -1686,21 +1675,21 @@ const ir = /* @__PURE__ */ B({
1686
1675
  });
1687
1676
  }
1688
1677
  return A(() => {
1689
- l.value && (l.value.id = `table-${r}`), e.autoLoad && M(), e.grabbable && l.value && er(l.value);
1678
+ u.value && (u.value.id = `table-${r}`), e.autoLoad && M(), e.grabbable && u.value && er(u.value);
1690
1679
  }), {
1691
1680
  tableId: r,
1692
- tableInstance: u,
1693
- tableSource: i,
1681
+ tableInstance: l,
1682
+ tableSource: c,
1694
1683
  tableOptions: Te,
1695
1684
  tableColumns: J,
1696
1685
  tableEvents: R,
1697
- tableForm: d,
1698
- tableLoading: s,
1686
+ tableForm: s,
1687
+ tableLoading: i,
1699
1688
  modalInstance: n,
1700
- tableRenderElement: l,
1689
+ tableRenderElement: u,
1701
1690
  formSource: se(j(() => {
1702
- var c;
1703
- return (c = a == null ? void 0 : a.value) == null ? void 0 : c.formSource;
1691
+ var d;
1692
+ return (d = a == null ? void 0 : a.value) == null ? void 0 : d.formSource;
1704
1693
  })),
1705
1694
  formInstance: a,
1706
1695
  reload: M,