@vue-ui-kit/ant 2.2.0 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { toValue as Ql, watch as Ue, defineComponent as fe, createVNode as N, computed as U, resolveComponent as ae, createElementBlock as q, openBlock as $, createElementVNode as ue, mergeProps as G, unref as T, createSlots as nt, withCtx as Y, createBlock as z, createCommentVNode as ie, createTextVNode as _e, ref as X, toRefs as Kt, resolveDynamicComponent as Tr, normalizeProps as Or, Fragment as ne, renderList as le, reactive as wt, useAttrs as Kr, onMounted as Ui, onBeforeUnmount as yo, toDisplayString as Me, normalizeClass as Yr, normalizeStyle as ei, renderSlot as bt, guardReactiveProps as jl, mergeModels as ec, useModel as tc, watchEffect as vs, useSlots as ic, nextTick as Ni } from "vue";
2
- import { TreeSelect as Lr, TimePicker as xs, Slider as rc, Rate as sc, Mentions as ac, Checkbox as oc, Cascader as ms, AutoComplete as wo, RangePicker as ps, DatePicker as ys, Select as ws, InputNumber as Es, Textarea as Cs, Input as bs, TypographyParagraph as nc, CheckboxGroup as _s, Switch as lc, RadioGroup as Rs, Button as ge, Dropdown as Eo, Form as qi, Row as Wr, message as at, Modal as Co, Spin as bo, Table as cc, Pagination as hc, Tabs as dc, TabPane as uc, Menu as fc, MenuItem as gc } from "ant-design-vue";
2
+ import { TreeSelect as Lr, TimePicker as xs, Slider as rc, Rate as sc, Mentions as ac, Checkbox as oc, Cascader as ms, AutoComplete as wo, RangePicker as ps, DatePicker as ys, Select as ws, InputNumber as Es, Textarea as Cs, Input as bs, TypographyParagraph as nc, CheckboxGroup as _s, Switch as lc, RadioGroup as Rs, Button as ge, Dropdown as Eo, Form as qi, Row as Pr, message as at, Modal as Co, Spin as bo, Table as cc, Pagination as hc, Tabs as dc, TabPane as uc, Menu as fc, MenuItem as gc } from "ant-design-vue";
3
3
  import * as vc from "@ant-design/icons-vue";
4
4
  import { InfoCircleOutlined as Is, DownOutlined as _o, MoreOutlined as xc } from "@ant-design/icons-vue";
5
5
  var mc = {
@@ -14,7 +14,7 @@ var mc = {
14
14
  },
15
15
  parseDateFormat: "yyyy-MM-dd HH:mm:ss",
16
16
  firstDayOfWeek: 1
17
- }, Pe = mc;
17
+ }, We = mc;
18
18
  function pc(r, e, t) {
19
19
  if (r)
20
20
  if (r.forEach)
@@ -66,7 +66,7 @@ function kc(r, e) {
66
66
  return s;
67
67
  };
68
68
  }
69
- var Pr = kc, Hc = Pr, Nc = Hc("keys", 1), Ze = Nc, Fc = Ro, Bc = ni, Kc = ve;
69
+ var Wr = kc, Hc = Wr, Nc = Hc("keys", 1), Ze = Nc, Fc = Ro, Bc = ni, Kc = ve;
70
70
  function fr(r, e) {
71
71
  var t = r.__proto__.constructor;
72
72
  return e ? new t(e) : new t();
@@ -111,10 +111,10 @@ function Io(r, e) {
111
111
  function Yc(r, e) {
112
112
  return r && Io(r, e);
113
113
  }
114
- var Xr = Yc, Wc = ve, Pc = Ze, Xc = Q, zc = Xr, Ss = Object.assign;
114
+ var Xr = Yc, Pc = ve, Wc = Ze, Xc = Q, zc = Xr, Ss = Object.assign;
115
115
  function Ts(r, e, t) {
116
116
  for (var i = e.length, s, a = 1; a < i; a++)
117
- s = e[a], Wc(Pc(e[a]), t ? function(o) {
117
+ s = e[a], Pc(Wc(e[a]), t ? function(o) {
118
118
  r[o] = zc(s[o], t);
119
119
  } : function(o) {
120
120
  r[o] = s[o];
@@ -131,7 +131,7 @@ var Vc = function(r) {
131
131
  return Ss ? Ss.apply(Object, e) : Ts(r, e);
132
132
  }
133
133
  return r;
134
- }, Ee = Vc, So = Pe, Gc = ve, Uc = ce, qc = xe, Zc = Ee, Ke = function() {
134
+ }, Ee = Vc, So = We, Gc = ve, Uc = ce, qc = xe, Zc = Ee, Ke = function() {
135
135
  };
136
136
  function Jc() {
137
137
  Gc(arguments, function(r) {
@@ -177,7 +177,7 @@ function oh(r, e) {
177
177
  return ah(t) ? e : t[r];
178
178
  };
179
179
  }
180
- var Wt = oh, nh = ce, lh = xe, ch = Wt;
180
+ var Pt = oh, nh = ce, lh = xe, ch = Pt;
181
181
  function hh(r, e, t) {
182
182
  var i = {};
183
183
  if (r)
@@ -193,11 +193,11 @@ var dh = hh;
193
193
  function uh(r) {
194
194
  return r ? r.constructor === Object : !1;
195
195
  }
196
- var Pt = uh;
196
+ var Wt = uh;
197
197
  function fh(r) {
198
198
  return r !== "__proto__" && r !== "constructor";
199
199
  }
200
- var $o = fh, Os = Q, Ls = Pt, gh = xe, vh = ce, xh = $o;
200
+ var $o = fh, Os = Q, Ls = Wt, gh = xe, vh = ce, xh = $o;
201
201
  function Do(r, e) {
202
202
  return Ls(r) && Ls(e) || Os(r) && Os(e) ? (vh(e, function(t, i) {
203
203
  xh(i) && (r[i] = gh(e) ? t : Do(r[i], t));
@@ -260,7 +260,7 @@ function Lh(r, e) {
260
260
  }
261
261
  return Ds(r, e);
262
262
  }
263
- var ko = Lh, Ms = ce, $h = Xt, Dh = xe, Mh = Wt;
263
+ var ko = Lh, Ms = ce, $h = Xt, Dh = xe, Mh = Pt;
264
264
  function Ah(r, e, t) {
265
265
  var i = [];
266
266
  if (e) {
@@ -287,7 +287,7 @@ function Bh() {
287
287
  e = e.concat(Fh(r[t]));
288
288
  return Nh(e);
289
289
  }
290
- var Kh = Bh, Yh = "undefined", Ne = Yh, Wh = Ne, Ph = Yt, Xh = Ph(Wh), Xe = Xh, zh = Je, Vh = Xe;
290
+ var Kh = Bh, Yh = "undefined", Ne = Yh, Ph = Ne, Wh = Yt, Xh = Wh(Ph), Xe = Xh, zh = Je, Vh = Xe;
291
291
  function Gh(r) {
292
292
  return zh(r) || Vh(r);
293
293
  }
@@ -319,7 +319,7 @@ function id(r, e) {
319
319
  return t;
320
320
  }
321
321
  }
322
- var li = ed, As = ve, rd = Vr, ks = It, Hs = Q, sd = xe, ad = Pt, Ns = Xe, od = Je, nd = Qe, ld = li, cd = Wt, hd = "asc", dd = "desc";
322
+ var li = ed, As = ve, rd = Vr, ks = It, Hs = Q, sd = xe, ad = Wt, Ns = Xe, od = Je, nd = Qe, ld = li, cd = Pt, hd = "asc", dd = "desc";
323
323
  function $r(r, e) {
324
324
  return Ns(r) ? 1 : od(r) ? Ns(e) ? -1 : 1 : r && r.localeCompare ? r.localeCompare(e) : r > e ? 1 : -1;
325
325
  }
@@ -361,7 +361,7 @@ var Ur = gd, vd = Ur, xd = vd, md = xd;
361
361
  function pd(r, e) {
362
362
  return r >= e ? r : (r = r >> 0) + Math.round(Math.random() * ((e || 9) - r));
363
363
  }
364
- var Bo = pd, yd = Pr, wd = yd("values", 0), zt = wd, Ed = Bo, Cd = zt;
364
+ var Bo = pd, yd = Wr, wd = yd("values", 0), zt = wd, Ed = Bo, Cd = zt;
365
365
  function bd(r) {
366
366
  for (var e, t = [], i = Cd(r), s = i.length - 1; s >= 0; s--)
367
367
  e = s > 0 ? Ed(0, s) : 0, t.push(i[e]), i.splice(e, 1);
@@ -407,7 +407,7 @@ function Dd(r, e, t) {
407
407
  return i;
408
408
  }
409
409
  var Md = Dd, Ad = Zi, kd = Ad("", 0, 2, !0), Hd = kd, Nd = Zi, Fd = Nd("find", 1, 3, !0), Bd = Fd, Kd = Q, Yd = zt;
410
- function Wd(r, e, t) {
410
+ function Pd(r, e, t) {
411
411
  if (r) {
412
412
  Kd(r) || (r = Yd(r));
413
413
  for (var i = r.length - 1; i >= 0; i--)
@@ -415,7 +415,7 @@ function Wd(r, e, t) {
415
415
  return r[i];
416
416
  }
417
417
  }
418
- var Pd = Wd, Xd = Ze;
418
+ var Wd = Pd, Xd = Ze;
419
419
  function zd(r, e, t) {
420
420
  if (r) {
421
421
  var i, s, a = 0, o = null, n = t, l = arguments.length > 2, h = Xd(r);
@@ -449,11 +449,11 @@ function Jd(r, e) {
449
449
  i = r.length ? [r] : r;
450
450
  return i;
451
451
  }
452
- var Qd = Jd, jd = It, eu = Wt;
452
+ var Qd = Jd, jd = It, eu = Pt;
453
453
  function tu(r, e) {
454
454
  return jd(r, eu(e));
455
455
  }
456
- var Wo = tu, iu = xe, Bs = Qe, ru = li, su = ve;
456
+ var Po = tu, iu = xe, Bs = Qe, ru = li, su = ve;
457
457
  function au(r) {
458
458
  return function(e, t) {
459
459
  if (e && e.length) {
@@ -465,9 +465,9 @@ function au(r) {
465
465
  return i;
466
466
  };
467
467
  }
468
- var Po = au, ou = Po, nu = ou(function(r, e) {
468
+ var Wo = au, ou = Wo, nu = ou(function(r, e) {
469
469
  return r < e;
470
- }), Xo = nu, lu = Wo, cu = Xo;
470
+ }), Xo = nu, lu = Po, cu = Xo;
471
471
  function hu(r) {
472
472
  var e, t, i, s = [];
473
473
  if (r && r.length)
@@ -533,8 +533,8 @@ var Uo = Tu, Ou = Q, Lu = zr, $u = Lo;
533
533
  function Du(r, e, t) {
534
534
  return r && (Ou(r) ? Lu : $u)(r, e, t);
535
535
  }
536
- var qo = Du, Mu = Yt, Au = Mu("object"), Ji = Au, ku = Uo, Hu = Pt, Nu = Ji, Fu = Q, Bu = Je, Ku = Ee, Yu = ni;
537
- function Wu(r, e, t) {
536
+ var qo = Du, Mu = Yt, Au = Mu("object"), Ji = Au, ku = Uo, Hu = Wt, Nu = Ji, Fu = Q, Bu = Je, Ku = Ee, Yu = ni;
537
+ function Pu(r, e, t) {
538
538
  if (r) {
539
539
  var i, s = arguments.length > 1 && (Bu(e) || !Nu(e)), a = s ? t : e;
540
540
  if (Hu(r))
@@ -554,7 +554,7 @@ function Wu(r, e, t) {
554
554
  }
555
555
  return r;
556
556
  }
557
- var Zo = Wu, Pu = Uo, Xu = xe, zu = Q, Vu = ce, Gu = ve, Uu = qo, qu = Zo, Zu = Qe;
557
+ var Zo = Pu, Wu = Uo, Xu = xe, zu = Q, Vu = ce, Gu = ve, Uu = qo, qu = Zo, Zu = Qe;
558
558
  function Ju(r) {
559
559
  return function(e, t) {
560
560
  return t === r;
@@ -569,14 +569,14 @@ function Qu(r, e, t) {
569
569
  }), zu(r) ? Uu(i, function(a, o) {
570
570
  s.push(r[a]), r.splice(a, 1);
571
571
  }) : (s = {}, Gu(i, function(a) {
572
- s[a] = r[a], Pu(r, a);
572
+ s[a] = r[a], Wu(r, a);
573
573
  })), s;
574
574
  }
575
575
  return qu(r);
576
576
  }
577
577
  return r;
578
578
  }
579
- var Jo = Qu, ju = Pe, Ks = Su, ef = Ur, tf = Xr, rf = Qe, Dr = ce, sf = Jo, af = Ee;
579
+ var Jo = Qu, ju = We, Ks = Su, ef = Ur, tf = Xr, rf = Qe, Dr = ce, sf = Jo, af = Ee;
580
580
  function of(r, e) {
581
581
  Dr(r, function(t) {
582
582
  t[e] && !t[e].length && sf(t, e);
@@ -590,7 +590,7 @@ function nf(r, e) {
590
590
  x = w[s], d ? (g = {}, g[d] = w) : g = w, m = w[a], f[x] = f[x] || [], g[s] = x, g[a] = m, x === m && (m = null, Ks("warn", "Error infinite Loop. key=" + x + " parentKey=" + x)), f[m] = f[m] || [], f[m].push(g), g[o] = f[x], n && (g[n] = f[x]), (!i || i && rf(m)) && (v[m] || u.push(g));
591
591
  }), i && of(r, o), u;
592
592
  }
593
- var lf = nf, cf = Pe, hf = ve, df = Ee;
593
+ var lf = nf, cf = We, hf = ve, df = Ee;
594
594
  function Qo(r, e, t, i) {
595
595
  var s = i.key, a = i.parentKey, o = i.children, n = i.data, l = i.updated, h = i.clear;
596
596
  return hf(t, function(d) {
@@ -671,7 +671,7 @@ var on = Af, kf = Yt, Hf = kf("number"), ze = Hf, Nf = ze;
671
671
  function Ff(r) {
672
672
  return Nf(r) && isNaN(r);
673
673
  }
674
- var Bf = Ff, Kf = Yt, Yf = Kf("string"), je = Yf, Wf = oi, Pf = Wf("Date"), ht = Pf, Xf = parseInt, ci = Xf;
674
+ var Bf = Ff, Kf = Yt, Yf = Kf("string"), je = Yf, Pf = oi, Wf = Pf("Date"), ht = Wf, Xf = parseInt, ci = Xf;
675
675
  function zf(r) {
676
676
  return Date.UTC(r.y, r.M || 0, r.d || 1, r.H || 0, r.m || 0, r.s || 0, r.S || 0);
677
677
  }
@@ -686,13 +686,13 @@ function hi(r) {
686
686
  function Jf(r) {
687
687
  return r < 10 ? r * 100 : r < 100 ? r * 10 : r;
688
688
  }
689
- function Ws(r) {
689
+ function Ps(r) {
690
690
  return isNaN(r) ? r : Fi(r);
691
691
  }
692
- var Mt = hi(2), kt = hi("1,2"), nn = hi("1,7"), ln = hi("3,4"), cn = ".{1}", Zt = cn + kt, hn = "(([zZ])|([-+]\\d{2}:?\\d{2}))", Ps = [ln, Zt, Zt, Zt, Zt, Zt, cn + nn, hn], Mr = [];
693
- for (var gr = Ps.length - 1; gr >= 0; gr--) {
692
+ var Mt = hi(2), kt = hi("1,2"), nn = hi("1,7"), ln = hi("3,4"), cn = ".{1}", Zt = cn + kt, hn = "(([zZ])|([-+]\\d{2}:?\\d{2}))", Ws = [ln, Zt, Zt, Zt, Zt, Zt, cn + nn, hn], Mr = [];
693
+ for (var gr = Ws.length - 1; gr >= 0; gr--) {
694
694
  for (var Xs = "", Et = 0; Et < gr + 1; Et++)
695
- Xs += Ps[Et];
695
+ Xs += Ws[Et];
696
696
  Mr.push(new RegExp("^" + Xs + "$"));
697
697
  }
698
698
  function Qf(r) {
@@ -759,7 +759,7 @@ function ig(r, e) {
759
759
  if (qf(r)) {
760
760
  var i = e ? eg(r, e) : Qf(r);
761
761
  if (i.y)
762
- return i.M && (i.M = Ws(i.M) - 1), i.S && (i.S = Jf(Ws(i.S.substring(0, 3)))), i.Z ? tg(i) : new Date(i.y, i.M || 0, i.d || 1, i.H || 0, i.m || 0, i.s || 0, i.S || 0);
762
+ return i.M && (i.M = Ps(i.M) - 1), i.S && (i.S = Jf(Ps(i.S.substring(0, 3)))), i.Z ? tg(i) : new Date(i.y, i.M || 0, i.d || 1, i.H || 0, i.m || 0, i.s || 0, i.S || 0);
763
763
  }
764
764
  }
765
765
  return /* @__PURE__ */ new Date("");
@@ -829,7 +829,7 @@ var Mg = Dg, Ag = Q, kg = Je, Hg = function(r) {
829
829
  function Kg(r) {
830
830
  return !Bg(r) && !isNaN(r) && !Ng(r) && !Fg(r);
831
831
  }
832
- var Yg = Kg, Wg = Yt, Pg = Wg("boolean"), pn = Pg, Xg = oi, zg = Xg("RegExp"), qr = zg, Vg = oi, Gg = Vg("Error"), yn = Gg;
832
+ var Yg = Kg, Pg = Yt, Wg = Pg("boolean"), pn = Wg, Xg = oi, zg = Xg("RegExp"), qr = zg, Vg = oi, Gg = Vg("Error"), yn = Gg;
833
833
  function Ug(r) {
834
834
  return r ? r.constructor === TypeError : !1;
835
835
  }
@@ -888,12 +888,12 @@ function Yv(r) {
888
888
  return -1;
889
889
  };
890
890
  }
891
- var bn = Yv, Wv = bn, Pv = Wv(function(r, e, t) {
891
+ var bn = Yv, Pv = bn, Wv = Pv(function(r, e, t) {
892
892
  for (var i = 0, s = r.length; i < s; i++)
893
893
  if (e.call(t, r[i], i, r))
894
894
  return i;
895
895
  return -1;
896
- }), Jr = Pv, Gs = ze, Us = Q, qs = je, Xv = qr, zv = ht, Vv = pn, Gv = Xe, Zs = Ze, Uv = Ao;
896
+ }), Jr = Wv, Gs = ze, Us = Q, qs = je, Xv = qr, zv = ht, Vv = pn, Gv = Xe, Zs = Ze, Uv = Ao;
897
897
  function _n(r, e, t, i, s, a, o) {
898
898
  if (r === e)
899
899
  return !0;
@@ -943,7 +943,7 @@ var nx = ox, lx = En, cx = ht, hx = Q, dx = qr, ux = yn, fx = Je;
943
943
  function gx(r) {
944
944
  return fx(r) ? "null" : lx(r) ? "symbol" : cx(r) ? "date" : hx(r) ? "array" : dx(r) ? "regexp" : ux(r) ? "error" : typeof r;
945
945
  }
946
- var vx = gx, xx = Pe, mx = Qe;
946
+ var vx = gx, xx = We, mx = Qe;
947
947
  function px(r) {
948
948
  return "" + (mx(r) ? "" : r) + xx.keyId++;
949
949
  }
@@ -952,7 +952,7 @@ var yx = px, wx = bn, Ex = wx(function(r, e, t) {
952
952
  if (e.call(t, r[i], i, r))
953
953
  return i;
954
954
  return -1;
955
- }), Cx = Ex, bx = Pt, _x = je;
955
+ }), Cx = Ex, bx = Wt, _x = je;
956
956
  function Rx(r) {
957
957
  if (bx(r))
958
958
  return r;
@@ -967,7 +967,7 @@ var Ix = Rx, Sx = Qe;
967
967
  function Tx(r) {
968
968
  return Sx(r) ? "" : JSON.stringify(r);
969
969
  }
970
- var Ox = Tx, Lx = Pr, $x = Lx("entries", 2), Dx = $x, Mx = xe, Ax = Q, kx = ce, Hx = Jr;
970
+ var Ox = Tx, Lx = Wr, $x = Lx("entries", 2), Dx = $x, Mx = xe, Ax = Q, kx = ce, Hx = Jr;
971
971
  function Nx(r, e) {
972
972
  return function(t, i) {
973
973
  var s, a, o = {}, n = [], l = this, h = arguments, d = h.length;
@@ -983,7 +983,7 @@ function Nx(r, e) {
983
983
  }), o;
984
984
  };
985
985
  }
986
- var Tn = Nx, Fx = Tn, Bx = Fx(1, 0), Kx = Bx, Yx = Tn, Wx = Yx(0, 1), Px = Wx, Xx = zt;
986
+ var Tn = Nx, Fx = Tn, Bx = Fx(1, 0), Kx = Bx, Yx = Tn, Px = Yx(0, 1), Wx = Px, Xx = zt;
987
987
  function zx(r) {
988
988
  return Xx(r)[0];
989
989
  }
@@ -1036,7 +1036,7 @@ function sm(r, e, t) {
1036
1036
  function ra(r) {
1037
1037
  return r === "__proto__" || r === "constructor" || r === "prototype";
1038
1038
  }
1039
- var am = sm, om = wn, nm = Ji, lm = xe, cm = Wt, hm = ce;
1039
+ var am = sm, om = wn, nm = Ji, lm = xe, cm = Pt, hm = ce;
1040
1040
  function dm(r) {
1041
1041
  return function() {
1042
1042
  return om(r);
@@ -1073,7 +1073,7 @@ function Cm(r, e) {
1073
1073
  }
1074
1074
  return r;
1075
1075
  }
1076
- var bm = Cm, _m = Po, Rm = _m(function(r, e) {
1076
+ var bm = Cm, _m = Wo, Rm = _m(function(r, e) {
1077
1077
  return r > e;
1078
1078
  }), Im = Rm;
1079
1079
  function Sm(r) {
@@ -1122,9 +1122,9 @@ function km(r) {
1122
1122
  return s;
1123
1123
  };
1124
1124
  }
1125
- var Qr = km, Hm = Qr, Nm = Hm("round"), jr = Nm, Fm = Qr, Bm = Fm("ceil"), Mn = Bm, Km = Qr, Ym = Km("floor"), An = Ym, Wm = Qe, Pm = ze, Xm = dt;
1125
+ var Qr = km, Hm = Qr, Nm = Hm("round"), jr = Nm, Fm = Qr, Bm = Fm("ceil"), Mn = Bm, Km = Qr, Ym = Km("floor"), An = Ym, Pm = Qe, Wm = ze, Xm = dt;
1126
1126
  function zm(r) {
1127
- return Pm(r) ? Xm(r) : "" + (Wm(r) ? "" : r);
1127
+ return Wm(r) ? Xm(r) : "" + (Pm(r) ? "" : r);
1128
1128
  }
1129
1129
  var pe = zm, Vm = jr, Gm = pe, Um = di, qm = $n;
1130
1130
  function Zm(r, e) {
@@ -1132,7 +1132,7 @@ function Zm(r, e) {
1132
1132
  var t = Gm(Vm(r, e)), i = t.split("."), s = i[0], a = i[1] || "", o = e - a.length;
1133
1133
  return e ? o > 0 ? s + "." + a + Um("0", o) : s + qm(a, Math.abs(o)) : s;
1134
1134
  }
1135
- var es = Zm, Jm = Pe, Qm = jr, jm = Mn, ep = An, tp = ze, ip = pe, rp = es, sp = dt, ap = Ee;
1135
+ var es = Zm, Jm = We, Qm = jr, jm = Mn, ep = An, tp = ze, ip = pe, rp = es, sp = dt, ap = Ee;
1136
1136
  function op(r, e) {
1137
1137
  var t = ap({}, Jm.commafyOptions, e), i = t.digits, s = tp(r), a, o, n, l, h;
1138
1138
  return s ? (a = (t.ceil ? jm : t.floor ? ep : Qm)(r, i), o = sp(i ? rp(a, i) : a).split("."), l = o[0], h = o[1], n = l && a < 0, n && (l = l.substring(1, l.length))) : (a = ip(r).replace(/,/g, ""), o = a ? [a] : [], l = o[0]), o.length ? (n ? "-" : "") + l.replace(new RegExp("(?=(?!(\\b))(.{" + (t.spaceNumber || 3) + "})+$)", "g"), t.separator || ",") + (h ? "." + h : "") : a;
@@ -1188,11 +1188,11 @@ var fi = Fp, Bp = 864e5, Vt = Bp;
1188
1188
  function Kp(r) {
1189
1189
  return r.getMonth();
1190
1190
  }
1191
- var ir = Kp, Yp = ht, Wp = Se;
1192
- function Pp(r) {
1193
- return Yp(r) && !isNaN(Wp(r));
1191
+ var ir = Kp, Yp = ht, Pp = Se;
1192
+ function Wp(r) {
1193
+ return Yp(r) && !isNaN(Pp(r));
1194
1194
  }
1195
- var Te = Pp, ya = ui, Xp = tr, zp = Vt, Vp = fi, wa = Se, Ea = ir, Gp = me, Up = Te, qp = ze;
1195
+ var Te = Wp, ya = ui, Xp = tr, zp = Vt, Vp = fi, wa = Se, Ea = ir, Gp = me, Up = Te, qp = ze;
1196
1196
  function Fn(r, e, t) {
1197
1197
  var i = e && !isNaN(e) ? e : 0;
1198
1198
  if (r = Gp(r), Up(r)) {
@@ -1243,7 +1243,7 @@ var Kn = Bn;
1243
1243
  function g0(r) {
1244
1244
  return r.toUpperCase();
1245
1245
  }
1246
- var Yn = g0, v0 = Vt, x0 = v0 * 7, Wn = x0, m0 = Pe, pr = Vt, p0 = Wn, y0 = Se, w0 = me, E0 = Te, Ra = ze;
1246
+ var Yn = g0, v0 = Vt, x0 = v0 * 7, Pn = x0, m0 = We, pr = Vt, p0 = Pn, y0 = Se, w0 = me, E0 = Te, Ra = ze;
1247
1247
  function C0(r, e, t, i) {
1248
1248
  if (r = w0(r), E0(r)) {
1249
1249
  var s = Ra(t), a = Ra(i), o = y0(r);
@@ -1258,7 +1258,7 @@ function C0(r, e, t, i) {
1258
1258
  }
1259
1259
  return r;
1260
1260
  }
1261
- var Pn = C0, b0 = Pe, Si = Vt, _0 = Wn, R0 = ze, I0 = Xt, S0 = me, T0 = Te, Ia = Pn, O0 = Ln, L0 = It, Ti = Se, $0 = L0(O0(0, 7), function(r) {
1261
+ var Wn = C0, b0 = We, Si = Vt, _0 = Pn, R0 = ze, I0 = Xt, S0 = me, T0 = Te, Ia = Wn, O0 = Ln, L0 = It, Ti = Se, $0 = L0(O0(0, 7), function(r) {
1262
1262
  return [(r + 1) % 7, (r + 2) % 7, (r + 3) % 7];
1263
1263
  });
1264
1264
  function Sa(r, e) {
@@ -1302,16 +1302,16 @@ var F0 = N0, B0 = Se, K0 = F0;
1302
1302
  function Y0(r) {
1303
1303
  return B0(K0(r));
1304
1304
  }
1305
- var W0 = Y0, P0 = Vt, X0 = ui, Ta = W0, z0 = rr, V0 = me, G0 = Te;
1305
+ var P0 = Y0, W0 = Vt, X0 = ui, Ta = P0, z0 = rr, V0 = me, G0 = Te;
1306
1306
  function U0(r) {
1307
- return r = V0(r), G0(r) ? Math.floor((Ta(r) - Ta(z0(r, 0, X0))) / P0) + 1 : NaN;
1307
+ return r = V0(r), G0(r) ? Math.floor((Ta(r) - Ta(z0(r, 0, X0))) / W0) + 1 : NaN;
1308
1308
  }
1309
1309
  var Vn = U0, q0 = pe, Z0 = Xe, J0 = di;
1310
1310
  function Q0(r, e, t) {
1311
1311
  var i = q0(r);
1312
1312
  return e = e >> 0, t = Z0(t) ? " " : "" + t, i.padStart ? i.padStart(e, t) : e > i.length ? (e -= i.length, e > t.length && (t += J0(t, e / t.length)), t.slice(0, e) + i) : i;
1313
1313
  }
1314
- var Gn = Q0, Jt = Pe, j0 = Yn, e1 = fi, Oa = ir, t1 = me, i1 = zn, r1 = Vn, s1 = Ee, a1 = Te, o1 = xe, Be = Gn;
1314
+ var Gn = Q0, Jt = We, j0 = Yn, e1 = fi, Oa = ir, t1 = me, i1 = zn, r1 = Vn, s1 = Ee, a1 = Te, o1 = xe, Be = Gn;
1315
1315
  function it(r, e, t, i) {
1316
1316
  var s = e[t];
1317
1317
  return s ? o1(s) ? s(i, t, r) : s[i] : i;
@@ -1431,11 +1431,11 @@ function N1(r, e) {
1431
1431
  return l;
1432
1432
  }
1433
1433
  var F1 = N1, B1 = pe, K1 = Xe, Y1 = di;
1434
- function W1(r, e, t) {
1434
+ function P1(r, e, t) {
1435
1435
  var i = B1(r);
1436
1436
  return e = e >> 0, t = K1(t) ? " " : "" + t, i.padEnd ? i.padEnd(e, t) : e > i.length ? (e -= i.length, e > t.length && (t += Y1(t, e / t.length)), i + t.slice(0, e)) : i;
1437
1437
  }
1438
- var P1 = W1, X1 = pe, z1 = di;
1438
+ var W1 = P1, X1 = pe, z1 = di;
1439
1439
  function V1(r, e) {
1440
1440
  return z1(X1(r), e);
1441
1441
  }
@@ -1523,7 +1523,7 @@ function Iy(r, e, t) {
1523
1523
  var i = Ry(r), s = arguments.length;
1524
1524
  return s > 1 && (s > 2 ? i.substring(0, t).indexOf(e) === t - 1 : i.indexOf(e) === i.length - 1);
1525
1525
  }
1526
- var Sy = Iy, Ty = Pe, Oy = pe, Ly = Qn, $y = li;
1526
+ var Sy = Iy, Ty = We, Oy = pe, Ly = Qn, $y = li;
1527
1527
  function Dy(r, e, t) {
1528
1528
  return Oy(r).replace((t || Ty).tmplRE || /\{{2}([.\w[\]\s]+)\}{2}/g, function(i, s) {
1529
1529
  return $y(e, Ly(s));
@@ -1550,15 +1550,15 @@ function Ky(r, e) {
1550
1550
  return t || (i = r.apply(e, Ba(arguments).concat(s)), t = !0), i;
1551
1551
  };
1552
1552
  }
1553
- var Yy = Ky, Wy = Tt;
1554
- function Py(r, e, t) {
1553
+ var Yy = Ky, Py = Tt;
1554
+ function Wy(r, e, t) {
1555
1555
  var i = 0, s = [];
1556
1556
  return function() {
1557
1557
  var a = arguments;
1558
- i++, i <= r && s.push(a[0]), i >= r && e.apply(t, [s].concat(Wy(a)));
1558
+ i++, i <= r && s.push(a[0]), i >= r && e.apply(t, [s].concat(Py(a)));
1559
1559
  };
1560
1560
  }
1561
- var Xy = Py, zy = Tt;
1561
+ var Xy = Wy, zy = Tt;
1562
1562
  function Vy(r, e, t) {
1563
1563
  var i = 0, s = [];
1564
1564
  return t = t || this, function() {
@@ -1632,7 +1632,7 @@ function ow(r) {
1632
1632
  e = i.split("="), t[Ka(e[0])] = Ka(e[1] || "");
1633
1633
  }), t;
1634
1634
  }
1635
- var ol = ow, nw = encodeURIComponent, nl = nw, Bi = nl, ll = ce, cl = Q, hl = Je, lw = Xe, dl = Pt;
1635
+ var ol = ow, nw = encodeURIComponent, nl = nw, Bi = nl, ll = ce, cl = Q, hl = Je, lw = Xe, dl = Wt;
1636
1636
  function ul(r, e, t) {
1637
1637
  var i, s = [];
1638
1638
  return ll(r, function(a, o) {
@@ -1650,7 +1650,7 @@ function fw() {
1650
1650
  return Oi ? Oi.origin || Oi.protocol + "//" + Oi.host : "";
1651
1651
  }
1652
1652
  var fl = fw, Ya = sr, gw = ol, vw = fl;
1653
- function Wa(r) {
1653
+ function Pa(r) {
1654
1654
  return gw(r.split("?")[1] || "");
1655
1655
  }
1656
1656
  function xw(r) {
@@ -1669,12 +1669,12 @@ function xw(r) {
1669
1669
  return t = l || "", s.port = t.replace(":", ""), s.hostname = n, s.host = n + t, "/";
1670
1670
  }).replace(/(#.*)/, function(o, n) {
1671
1671
  return s.hash = n.length > 1 ? n : "", "";
1672
- }), e = s.hash.match(/#((.*)\?|(.*))/), s.pathname = s.path.replace(/(\?|#.*).*/, ""), s.origin = s.protocol + "//" + s.host, s.hashKey = e && (e[2] || e[1]) || "", s.hashQuery = Wa(s.hash), s.searchQuery = Wa(s.search), s;
1672
+ }), e = s.hash.match(/#((.*)\?|(.*))/), s.pathname = s.path.replace(/(\?|#.*).*/, ""), s.origin = s.protocol + "//" + s.host, s.hashKey = e && (e[2] || e[1]) || "", s.hashQuery = Pa(s.hash), s.searchQuery = Pa(s.search), s;
1673
1673
  }
1674
- var gl = xw, Pa = sr, mw = fl, pw = vn;
1674
+ var gl = xw, Wa = sr, mw = fl, pw = vn;
1675
1675
  function yw() {
1676
- if (Pa) {
1677
- var r = Pa.pathname, e = pw(r, "/") + 1;
1676
+ if (Wa) {
1677
+ var r = Wa.pathname, e = pw(r, "/") + 1;
1678
1678
  return mw() + (e === r.length ? r : r.substring(0, e));
1679
1679
  }
1680
1680
  return "";
@@ -1683,7 +1683,7 @@ var ww = yw, Xa = sr, Ew = gl;
1683
1683
  function Cw() {
1684
1684
  return Xa ? Ew(Xa.href) : {};
1685
1685
  }
1686
- var bw = Cw, vl = Pe, Er = Zr, za = al, Va = nl, _w = Q, Ga = Ji, xl = ht, Rw = Xe, Iw = Xt, Sw = Ze, Ki = Ee, Cr = ve, Tw = ji, Li = Se, Ow = rr, Lw = gi, $w = Kn;
1686
+ var bw = Cw, vl = We, Er = Zr, za = al, Va = nl, _w = Q, Ga = Ji, xl = ht, Rw = Xe, Iw = Xt, Sw = Ze, Ki = Ee, Cr = ve, Tw = ji, Li = Se, Ow = rr, Lw = gi, $w = Kn;
1687
1687
  function Ua(r, e) {
1688
1688
  var t = parseFloat(e), i = Tw(), s = Li(i);
1689
1689
  switch (r) {
@@ -1796,14 +1796,14 @@ function Fw() {
1796
1796
  }
1797
1797
  return o;
1798
1798
  }
1799
- var Bw = Fw, pl = jc, ja = Ee, Kw = ni, Yw = Lo, Ww = dh, Pw = ph, Xw = It, zw = Mo, Vw = Ao, Gw = ko, Uw = ve, qw = zr, Zw = Ho, Jw = Kh, Qw = Vr, jw = md, e2 = Ur, t2 = Ko, i2 = Id, r2 = Tt, s2 = Md, a2 = Hd, o2 = Xt, n2 = Bd, l2 = Pd, c2 = Vd, h2 = qd, d2 = Qd, u2 = fu, f2 = zo, g2 = mu, v2 = wu, x2 = Wo, m2 = Ru, p2 = lf, y2 = ff, w2 = mf, E2 = tn, C2 = _f, b2 = Sf, _2 = Df, R2 = an, I2 = on, S2 = He, T2 = Q, O2 = Je, L2 = Bf, $2 = Xe, D2 = xe, M2 = Ji, A2 = je, k2 = Pt, H2 = fn, N2 = ht, F2 = Qe, B2 = ce, K2 = dg, Y2 = vg, W2 = bg, P2 = vn, X2 = Ze, z2 = zt, V2 = Xr, G2 = xn, U2 = qo, q2 = Jo, Z2 = Zo, J2 = Mg, Q2 = Yg, j2 = mn, eE = pn, tE = ze, iE = qr, rE = yn, sE = qg, aE = wn, oE = En, nE = iv, lE = ov, cE = dv, hE = xv, dE = wv, uE = _v, fE = Tv, gE = Dv, vE = Hv, xE = rx, mE = Sn, pE = nx, yE = vx, wE = yx, EE = Jr, CE = Cx, bE = Ix, _E = Ox, RE = Dx, IE = Kx, SE = Px, TE = Vx, OE = qx, LE = jx, $E = li, DE = am, ME = On, AE = xm, kE = Ln, HE = bm, NE = Bo, FE = Xo, BE = Im, KE = np, YE = jr, WE = Mn, PE = An, XE = es, zE = dp, VE = St, GE = dt, UE = mp, qE = wp, ZE = ts, JE = Rp, QE = Nn, jE = kp, eC = rr, tC = o0, iC = gi, rC = Kn, sC = me, aC = Un, oC = qn, nC = m1, lC = Te, cC = y1, hC = Pn, dC = Vn, uC = zn, fC = C1, gC = T1, vC = k1, xC = F1, mC = P1, pC = Gn, yC = G1, wC = Qn, EC = Zn, CC = Jn, bC = ly, _C = uy, RC = py, IC = Ey, SC = _y, TC = Sy, OC = sl, LC = ky, eo = pe, $C = Ny, DC = Wt, MC = By, AC = Yy, kC = Xy, HC = Gy, NC = Zy, FC = jy, BC = iw, KC = ol, YC = hw, WC = gl, PC = ww, XC = bw, zC = Aw, VC = Bw;
1799
+ var Bw = Fw, pl = jc, ja = Ee, Kw = ni, Yw = Lo, Pw = dh, Ww = ph, Xw = It, zw = Mo, Vw = Ao, Gw = ko, Uw = ve, qw = zr, Zw = Ho, Jw = Kh, Qw = Vr, jw = md, e2 = Ur, t2 = Ko, i2 = Id, r2 = Tt, s2 = Md, a2 = Hd, o2 = Xt, n2 = Bd, l2 = Wd, c2 = Vd, h2 = qd, d2 = Qd, u2 = fu, f2 = zo, g2 = mu, v2 = wu, x2 = Po, m2 = Ru, p2 = lf, y2 = ff, w2 = mf, E2 = tn, C2 = _f, b2 = Sf, _2 = Df, R2 = an, I2 = on, S2 = He, T2 = Q, O2 = Je, L2 = Bf, $2 = Xe, D2 = xe, M2 = Ji, A2 = je, k2 = Wt, H2 = fn, N2 = ht, F2 = Qe, B2 = ce, K2 = dg, Y2 = vg, P2 = bg, W2 = vn, X2 = Ze, z2 = zt, V2 = Xr, G2 = xn, U2 = qo, q2 = Jo, Z2 = Zo, J2 = Mg, Q2 = Yg, j2 = mn, eE = pn, tE = ze, iE = qr, rE = yn, sE = qg, aE = wn, oE = En, nE = iv, lE = ov, cE = dv, hE = xv, dE = wv, uE = _v, fE = Tv, gE = Dv, vE = Hv, xE = rx, mE = Sn, pE = nx, yE = vx, wE = yx, EE = Jr, CE = Cx, bE = Ix, _E = Ox, RE = Dx, IE = Kx, SE = Wx, TE = Vx, OE = qx, LE = jx, $E = li, DE = am, ME = On, AE = xm, kE = Ln, HE = bm, NE = Bo, FE = Xo, BE = Im, KE = np, YE = jr, PE = Mn, WE = An, XE = es, zE = dp, VE = St, GE = dt, UE = mp, qE = wp, ZE = ts, JE = Rp, QE = Nn, jE = kp, eC = rr, tC = o0, iC = gi, rC = Kn, sC = me, aC = Un, oC = qn, nC = m1, lC = Te, cC = y1, hC = Wn, dC = Vn, uC = zn, fC = C1, gC = T1, vC = k1, xC = F1, mC = W1, pC = Gn, yC = G1, wC = Qn, EC = Zn, CC = Jn, bC = ly, _C = uy, RC = py, IC = Ey, SC = _y, TC = Sy, OC = sl, LC = ky, eo = pe, $C = Ny, DC = Pt, MC = By, AC = Yy, kC = Xy, HC = Gy, NC = Zy, FC = jy, BC = iw, KC = ol, YC = hw, PC = gl, WC = ww, XC = bw, zC = Aw, VC = Bw;
1800
1800
  ja(pl, {
1801
1801
  // object
1802
1802
  assign: ja,
1803
1803
  objectEach: Kw,
1804
1804
  lastObjectEach: Yw,
1805
- objectMap: Ww,
1806
- merge: Pw,
1805
+ objectMap: Pw,
1806
+ merge: Ww,
1807
1807
  // array
1808
1808
  uniq: Zw,
1809
1809
  union: Jw,
@@ -1880,8 +1880,8 @@ ja(pl, {
1880
1880
  getType: yE,
1881
1881
  uniqueId: wE,
1882
1882
  getSize: G2,
1883
- indexOf: W2,
1884
- lastIndexOf: P2,
1883
+ indexOf: P2,
1884
+ lastIndexOf: W2,
1885
1885
  findIndexOf: EE,
1886
1886
  findLastIndexOf: CE,
1887
1887
  toStringJSON: bE,
@@ -1913,8 +1913,8 @@ ja(pl, {
1913
1913
  max: FE,
1914
1914
  commafy: KE,
1915
1915
  round: YE,
1916
- ceil: WE,
1917
- floor: PE,
1916
+ ceil: PE,
1917
+ floor: WE,
1918
1918
  toFixed: XE,
1919
1919
  toNumber: VE,
1920
1920
  toNumberString: GE,
@@ -1973,9 +1973,9 @@ ja(pl, {
1973
1973
  // url
1974
1974
  unserialize: KC,
1975
1975
  serialize: YC,
1976
- parseUrl: WC,
1976
+ parseUrl: PC,
1977
1977
  // web
1978
- getBaseURL: PC,
1978
+ getBaseURL: WC,
1979
1979
  locat: XC,
1980
1980
  browse: VC,
1981
1981
  cookie: zC
@@ -2468,48 +2468,52 @@ const pt = "-", Ht = {
2468
2468
  }
2469
2469
  };
2470
2470
  }, Sl = (r, e, t) => {
2471
- var i;
2472
- return r.dropdowns && r.dropdowns.length > 0 && r.dropdowns.filter((s) => {
2473
- var a;
2474
- return !((a = s.hiddenIf) != null && a.call(s, e));
2471
+ var i, s;
2472
+ return r.dropdowns && r.dropdowns.length > 0 && r.dropdowns.filter((a) => {
2473
+ var o;
2474
+ return !((o = a.hiddenIf) != null && o.call(a, e));
2475
2475
  }).length > 0 ? N(Eo, {
2476
2476
  getPopupContainer: t ?? (() => document.querySelector(".p-wrapper"))
2477
2477
  }, {
2478
- default: () => N(ge, G(I.omit(r, ["dynamicClassName", "content", "getContent", "icon", "clickEvt", "dropdowns"]), {
2479
- icon: r.icon ? N(ye, {
2480
- icon: r.icon
2481
- }, null) : N(ye, {
2482
- icon: "DownOutlined"
2483
- }, null)
2484
- }), {
2485
- default: () => {
2486
- var s;
2487
- return [r.content || (((s = r == null ? void 0 : r.getContent) == null ? void 0 : s.call(r, e)) ?? "")];
2488
- }
2489
- }),
2478
+ default: () => {
2479
+ var a;
2480
+ return N(ge, G(I.omit(r, ["dynamicClassName", "content", "getContent", "icon", "clickEvt", "dropdowns", "getProps"]), {
2481
+ icon: r.icon ? N(ye, {
2482
+ icon: r.icon
2483
+ }, null) : N(ye, {
2484
+ icon: "DownOutlined"
2485
+ }, null)
2486
+ }, ((a = r.getProps) == null ? void 0 : a.call(r, e)) ?? {}), {
2487
+ default: () => {
2488
+ var o;
2489
+ return [r.content || (((o = r == null ? void 0 : r.getContent) == null ? void 0 : o.call(r, e)) ?? "")];
2490
+ }
2491
+ });
2492
+ },
2490
2493
  overlay: () => {
2491
- var s;
2494
+ var a;
2492
2495
  return N("div", {
2493
- class: `dropdown-wrapper ${((s = r == null ? void 0 : r.dynamicClassName) == null ? void 0 : s.call(r, e)) ?? ""}`
2494
- }, [r.dropdowns.filter((a) => {
2495
- var o;
2496
- return !((o = a.hiddenIf) != null && o.call(a, e));
2497
- }).map((a) => Sl(a, e, t))]);
2496
+ class: `dropdown-wrapper ${((a = r == null ? void 0 : r.dynamicClassName) == null ? void 0 : a.call(r, e)) ?? ""}`
2497
+ }, [r.dropdowns.filter((o) => {
2498
+ var n;
2499
+ return !((n = o.hiddenIf) != null && n.call(o, e));
2500
+ }).map((o) => Sl(o, e, t))]);
2498
2501
  }
2499
2502
  }) : N(ge, G({
2500
2503
  class: ((i = r == null ? void 0 : r.dynamicClassName) == null ? void 0 : i.call(r, e)) || ""
2501
- }, I.omit(r, ["dynamicClassName", "content", "getContent", "icon", "clickEvt", "dropdowns"]), {
2504
+ }, I.omit(r, ["dynamicClassName", "content", "getContent", "icon", "clickEvt", "dropdowns", "getProps"]), {
2502
2505
  disabled: !!r.dropdowns && r.dropdowns.length > 0 || r.disabled,
2503
2506
  icon: r.icon ? N(ye, {
2504
2507
  icon: r.icon
2505
- }, null) : null,
2508
+ }, null) : null
2509
+ }, ((s = r.getProps) == null ? void 0 : s.call(r, e)) ?? {}, {
2506
2510
  onClick: () => {
2507
2511
  r != null && r.clickEvt && r.clickEvt(e);
2508
2512
  }
2509
2513
  }), {
2510
2514
  default: () => {
2511
- var s;
2512
- return [r.content || (((s = r == null ? void 0 : r.getContent) == null ? void 0 : s.call(r, e)) ?? "")];
2515
+ var a;
2516
+ return [r.content || (((a = r == null ? void 0 : r.getContent) == null ? void 0 : a.call(r, e)) ?? "")];
2513
2517
  }
2514
2518
  });
2515
2519
  }, Ar = {
@@ -3261,7 +3265,7 @@ const pt = "-", Ht = {
3261
3265
  model: T(o)
3262
3266
  }, f.value, { onSubmit: n }), {
3263
3267
  default: Y(() => [
3264
- N(T(Wr), { gutter: [6, 12] }, {
3268
+ N(T(Pr), { gutter: [6, 12] }, {
3265
3269
  default: Y(() => [
3266
3270
  ($(!0), q(ne, null, le(T(a), (w, C) => ($(), z(rs, {
3267
3271
  key: `_col_${w.field || C}`,
@@ -3331,7 +3335,7 @@ const Yi = at.warning, vb = { key: 0 }, xb = {
3331
3335
  },
3332
3336
  emits: ["toolbarButtonClick", "toolbarToolClick", "pick", "resetQuery"],
3333
3337
  setup(r, { expose: e, emit: t }) {
3334
- var tt, be, Le, qt, W;
3338
+ var tt, be, Le, qt, P;
3335
3339
  const i = r, {
3336
3340
  formConfig: s,
3337
3341
  pageConfig: a,
@@ -3362,7 +3366,7 @@ const Yi = at.warning, vb = { key: 0 }, xb = {
3362
3366
  }).catch(() => {
3363
3367
  at.error("删除失败");
3364
3368
  }).finally(() => {
3365
- f.table = !1, f.toolbar = !1, _.multiDelete = !1;
3369
+ f.table = !1, f.toolbar = !1, b.multiDelete = !1;
3366
3370
  });
3367
3371
  }) : at.warn("请选择要删除的数据"));
3368
3372
  break;
@@ -3372,7 +3376,7 @@ const Yi = at.warning, vb = { key: 0 }, xb = {
3372
3376
  return ti(o.value ?? [], (D) => {
3373
3377
  D.slots && D.slots.title && (D.field || (D.field = "__holder__" + L.length), L.push(D));
3374
3378
  }), L;
3375
- }), S = X(), H = X(), B = X(qe()), b = X(qe()), _ = wt(
3379
+ }), S = X(), H = X(), B = X(qe()), _ = X(qe()), b = wt(
3376
3380
  [
3377
3381
  ...(((be = (tt = i.toolbarConfig) == null ? void 0 : tt.buttons) == null ? void 0 : be.map((L) => L.code)) ?? []).filter((L) => L),
3378
3382
  ...(((qt = (Le = i.toolbarConfig) == null ? void 0 : Le.tools) == null ? void 0 : qt.map((L) => L.code)) ?? []).filter((L) => L)
@@ -3381,9 +3385,9 @@ const Yi = at.warning, vb = { key: 0 }, xb = {
3381
3385
  {}
3382
3386
  )
3383
3387
  ), R = (L, D) => {
3384
- _[L] = D;
3388
+ b[L] = D;
3385
3389
  }, O = () => {
3386
- b.value = qe();
3390
+ _.value = qe();
3387
3391
  }, p = I.debounce(O, 100), k = U(() => {
3388
3392
  const L = [];
3389
3393
  return ti(o.value ?? [], (D) => {
@@ -3391,8 +3395,8 @@ const Yi = at.warning, vb = { key: 0 }, xb = {
3391
3395
  }), L;
3392
3396
  }), A = wt({
3393
3397
  page: 1,
3394
- size: ((W = a.value) == null ? void 0 : W.pageSize) ?? 10
3395
- }), V = X(0), Z = X(0), P = X([]), J = U(
3398
+ size: ((P = a.value) == null ? void 0 : P.pageSize) ?? 10
3399
+ }), V = X(0), Z = X(0), W = X([]), J = U(
3396
3400
  () => l.value && l.value.ajax ? a.value ? "pagination" : "list" : "bad"
3397
3401
  ), ee = Kr(), re = t, et = U(
3398
3402
  () => C.value.filter(
@@ -3400,14 +3404,14 @@ const Yi = at.warning, vb = { key: 0 }, xb = {
3400
3404
  )
3401
3405
  ), Ot = (L) => {
3402
3406
  re("toolbarButtonClick", {
3403
- data: P.value,
3407
+ data: W.value,
3404
3408
  code: L,
3405
3409
  selectedKeys: w.value,
3406
3410
  records: et.value
3407
3411
  }), y(L);
3408
3412
  }, Ce = I.debounce(Ot, 100), ut = ({ key: L }) => Ce(L), oe = (L) => {
3409
3413
  re("toolbarToolClick", {
3410
- data: P.value,
3414
+ data: W.value,
3411
3415
  code: L,
3412
3416
  selectedKeys: w.value,
3413
3417
  records: et.value
@@ -3446,7 +3450,7 @@ const Yi = at.warning, vb = { key: 0 }, xb = {
3446
3450
  j,
3447
3451
  l.value.response
3448
3452
  );
3449
- $e ? (P.value = $e, V.value++) : he ? (P.value = he, Z.value = xt ?? he.length, V.value++) : (P.value = [], V.value++, Fe && at.warn(Fe)), L(P.value);
3453
+ $e ? (W.value = $e, V.value++) : he ? (W.value = he, Z.value = xt ?? he.length, V.value++) : (W.value = [], V.value++, Fe && at.warn(Fe)), L(W.value);
3450
3454
  }).catch((j) => {
3451
3455
  console.error("fetchData error", j), L([]);
3452
3456
  }).finally(() => {
@@ -3478,7 +3482,7 @@ const Yi = at.warning, vb = { key: 0 }, xb = {
3478
3482
  selectedRowKeys: w.value,
3479
3483
  onChange: (L) => {
3480
3484
  w.value = L;
3481
- const D = i.rowKey ?? "id", j = C.value.map((he) => he[D]), xt = L.filter((he) => !j.includes(he)).map((he) => P.value.find((Fe) => Fe[D] === he)).filter((he) => !!he);
3485
+ const D = i.rowKey ?? "id", j = C.value.map((he) => he[D]), xt = L.filter((he) => !j.includes(he)).map((he) => W.value.find((Fe) => Fe[D] === he)).filter((he) => !!he);
3482
3486
  C.value = [...C.value, ...xt];
3483
3487
  },
3484
3488
  getCheckboxProps: d.value.getCheckboxProps
@@ -3565,7 +3569,7 @@ const Yi = at.warning, vb = { key: 0 }, xb = {
3565
3569
  model: Oe.value
3566
3570
  }, Ci.value, { onSubmit: bi }), {
3567
3571
  default: Y(() => [
3568
- N(T(Wr), { gutter: [6, 12] }, {
3572
+ N(T(Pr), { gutter: [6, 12] }, {
3569
3573
  default: Y(() => [
3570
3574
  ($(!0), q(ne, null, le(T(s).items, (F, De) => ($(), z(rs, {
3571
3575
  key: `_col_${F.field || De}`,
@@ -3607,7 +3611,7 @@ const Yi = at.warning, vb = { key: 0 }, xb = {
3607
3611
  type: F.type,
3608
3612
  size: F.size ?? "middle",
3609
3613
  disabled: T(n).disabled || F.disabled,
3610
- loading: f.toolbar || !!F.code && _[F.code],
3614
+ loading: f.toolbar || !!F.code && b[F.code],
3611
3615
  danger: F.danger,
3612
3616
  shape: F.shape,
3613
3617
  ghost: F.ghost,
@@ -3630,7 +3634,7 @@ const Yi = at.warning, vb = { key: 0 }, xb = {
3630
3634
  type: F.type,
3631
3635
  size: F.size ?? "middle",
3632
3636
  disabled: T(n).disabled || F.disabled,
3633
- loading: f.toolbar || !!F.code && _[F.code],
3637
+ loading: f.toolbar || !!F.code && b[F.code],
3634
3638
  danger: F.danger,
3635
3639
  shape: F.shape,
3636
3640
  ghost: F.ghost,
@@ -3659,7 +3663,7 @@ const Yi = at.warning, vb = { key: 0 }, xb = {
3659
3663
  ghost: F.ghost,
3660
3664
  block: F.block,
3661
3665
  onClick: (mt) => T(lr)(F.code),
3662
- loading: f.toolbar || !!F.code && _[F.code]
3666
+ loading: f.toolbar || !!F.code && b[F.code]
3663
3667
  }, {
3664
3668
  default: Y(() => [
3665
3669
  F.icon ? ($(), z(T(ye), {
@@ -3677,12 +3681,12 @@ const Yi = at.warning, vb = { key: 0 }, xb = {
3677
3681
  }, [
3678
3682
  (gs = T(d)) != null && gs.multiple && T(d).showCount ? ($(), q("div", wb, " 已选:" + Me(w.value.length), 1)) : ie("", !0),
3679
3683
  ($(), z(T(cc), G({
3680
- key: b.value + "_table",
3684
+ key: _.value + "_table",
3681
3685
  "row-key": L.rowKey ?? "id",
3682
3686
  ref_key: "tableEl",
3683
3687
  ref: H,
3684
3688
  columns: Ge(T(o) ?? []).map((F) => T(is)(F)),
3685
- "data-source": P.value,
3689
+ "data-source": W.value,
3686
3690
  loading: f.table,
3687
3691
  pagination: yi.value
3688
3692
  }, Ei.value, {
@@ -3696,7 +3700,7 @@ const Yi = at.warning, vb = { key: 0 }, xb = {
3696
3700
  name: "headerCell",
3697
3701
  fn: Y(({ column: F }) => [
3698
3702
  E.value.some((De) => F.key && De.field === F.key) ? ($(), z(T(ub), {
3699
- key: b.value + "_title_" + V.value + "_slot_" + F.key,
3703
+ key: _.value + "_title_" + V.value + "_slot_" + F.key,
3700
3704
  column: E.value.find((De) => F.key && De.field === F.key)
3701
3705
  }, null, 8, ["column"])) : ie("", !0)
3702
3706
  ]),
@@ -3706,12 +3710,12 @@ const Yi = at.warning, vb = { key: 0 }, xb = {
3706
3710
  name: "bodyCell",
3707
3711
  fn: Y(({ column: F, record: De, index: mt }) => [
3708
3712
  k.value.some((ur) => F.key && ur.field === F.key) ? ($(), z(T(Rl), {
3709
- key: b.value + "_cell_" + V.value + "_slot_" + F.key,
3713
+ key: _.value + "_cell_" + V.value + "_slot_" + F.key,
3710
3714
  column: k.value.find((ur) => F.key && ur.field === F.key),
3711
3715
  "default-handler": { pick: cr, setLoadings: v },
3712
3716
  row: De,
3713
3717
  "row-index": mt,
3714
- "table-data": P.value
3718
+ "table-data": W.value
3715
3719
  }, null, 8, ["column", "default-handler", "row", "row-index", "table-data"])) : ie("", !0)
3716
3720
  ]),
3717
3721
  key: "1"
@@ -4249,14 +4253,14 @@ class as extends Hl {
4249
4253
  if (this.cellType === "footer") {
4250
4254
  let H = l, B = n;
4251
4255
  if (typeof s == "function") {
4252
- const b = s, { backgroundColor: _, color: R, font: O } = b({
4256
+ const _ = s, { backgroundColor: b, color: R, font: O } = _({
4253
4257
  row: this.row,
4254
4258
  rowIndex: this.rowIndex,
4255
4259
  colIndex: this.colIndex,
4256
4260
  column: this.column,
4257
4261
  value: this.getValue()
4258
4262
  }) || {};
4259
- _ && (H = _), R && (B = R), O && (this.drawTextFont = O);
4263
+ b && (H = b), R && (B = R), O && (this.drawTextFont = O);
4260
4264
  }
4261
4265
  this.drawCellSkyBgColor = "transparent", this.drawCellBgColor = H, this.drawTextColor = B;
4262
4266
  return;
@@ -4271,7 +4275,7 @@ class as extends Hl {
4271
4275
  u && m && (m.rowKey === this.rowKey && (g = f), m.rowIndex >= C && m.rowIndex <= y && (g = f)), h && w && (w.rowKey === this.rowKey && (g = d), w.rowIndex >= C && w.rowIndex <= y && (g = d)), this.drawCellSkyBgColor = g;
4272
4276
  let E = e, S = o;
4273
4277
  if (this.ctx.database.getReadonly(this.rowKey, this.key) || (E = t, S = a), v && (this.rowIndex % 2 ? E = x : E = e), typeof i == "function") {
4274
- const H = i, { backgroundColor: B, color: b, font: _ } = H({
4278
+ const H = i, { backgroundColor: B, color: _, font: b } = H({
4275
4279
  row: this.row,
4276
4280
  rowIndex: this.rowIndex,
4277
4281
  colIndex: this.colIndex,
@@ -4279,7 +4283,7 @@ class as extends Hl {
4279
4283
  isHasChanged: this.isHasChanged,
4280
4284
  value: this.getValue()
4281
4285
  }) || {};
4282
- B && (E = B), b && (S = b), _ && (this.drawTextFont = _);
4286
+ B && (E = B), _ && (S = _), b && (this.drawTextFont = b);
4283
4287
  }
4284
4288
  this.drawCellBgColor = E, this.drawTextColor = S;
4285
4289
  }
@@ -5623,10 +5627,10 @@ class Db {
5623
5627
  }
5624
5628
  ]
5625
5629
  };
5626
- let m = t, w = t, C = n, y = n, E = [], S = 0, H = 0, B = 0, b = 0;
5630
+ let m = t, w = t, C = n, y = n, E = [], S = 0, H = 0, B = 0, _ = 0;
5627
5631
  if (d !== 1 && x) {
5628
- b = f;
5629
- const _ = l.reduce((R, O) => {
5632
+ _ = f;
5633
+ const b = l.reduce((R, O) => {
5630
5634
  const p = this.getItemValue(s, O) ?? "";
5631
5635
  return `${R}${p}`;
5632
5636
  }, "");
@@ -5635,7 +5639,7 @@ class Db {
5635
5639
  const V = this.getItemValue(O, A) ?? "";
5636
5640
  return `${k}${V}`;
5637
5641
  }, "");
5638
- if (_ === p)
5642
+ if (b === p)
5639
5643
  m = R;
5640
5644
  else
5641
5645
  break;
@@ -5645,7 +5649,7 @@ class Db {
5645
5649
  const V = this.getItemValue(O, A) ?? "";
5646
5650
  return `${k}${V}`;
5647
5651
  }, "");
5648
- if (_ === p)
5652
+ if (b === p)
5649
5653
  w = R;
5650
5654
  else
5651
5655
  break;
@@ -5668,37 +5672,37 @@ class Db {
5668
5672
  }
5669
5673
  if (v !== 1 && g) {
5670
5674
  B = u;
5671
- for (let _ = n - 1; _ >= 0; _--) {
5672
- const R = this.getColumnByColIndex(_);
5675
+ for (let b = n - 1; b >= 0; b--) {
5676
+ const R = this.getColumnByColIndex(b);
5673
5677
  if (!R)
5674
5678
  break;
5675
5679
  const O = this.getItemValue(s, i), p = this.getItemValue(s, R.key);
5676
5680
  if (O === p && h.includes(R.key))
5677
- C = _;
5681
+ C = b;
5678
5682
  else
5679
5683
  break;
5680
5684
  }
5681
- for (let _ = n; _ <= this.ctx.maxColIndex; _++) {
5682
- const R = this.getColumnByColIndex(_);
5685
+ for (let b = n; b <= this.ctx.maxColIndex; b++) {
5686
+ const R = this.getColumnByColIndex(b);
5683
5687
  if (!R)
5684
5688
  break;
5685
5689
  const O = this.getItemValue(s, i), p = this.getItemValue(s, R.key);
5686
5690
  if (O === p && h.includes(R.key))
5687
- y = _;
5691
+ y = b;
5688
5692
  else
5689
5693
  break;
5690
5694
  }
5691
- for (let _ = C; _ < n; _++) {
5692
- const R = this.getColumnByColIndex(_);
5695
+ for (let b = C; b < n; b++) {
5696
+ const R = this.getColumnByColIndex(b);
5693
5697
  if (!R)
5694
5698
  break;
5695
5699
  H += R.width || 100;
5696
5700
  }
5697
- for (let _ = C; _ <= y; _++) {
5698
- const R = this.getColumnByColIndex(_);
5701
+ for (let b = C; b <= y; b++) {
5702
+ const R = this.getColumnByColIndex(b);
5699
5703
  if (!R)
5700
5704
  break;
5701
- b += R.width || 100, E.push({
5705
+ _ += R.width || 100, E.push({
5702
5706
  rowKey: s,
5703
5707
  key: R.key,
5704
5708
  value: this.getItemValue(s, R.key),
@@ -5712,7 +5716,7 @@ class Db {
5712
5716
  rowspan: d,
5713
5717
  colspan: v,
5714
5718
  height: B,
5715
- width: b,
5719
+ width: _,
5716
5720
  offsetTop: S,
5717
5721
  offsetLeft: H,
5718
5722
  dataList: E
@@ -6140,32 +6144,32 @@ class Hb {
6140
6144
  let S = this.wrapText(e, C, o.cacheTextKey), H = Math.min(S.length, Math.max(E, 1));
6141
6145
  v === "auto" && x ? H = S.length : typeof v == "number" && v < H && v !== 1 ? H = v : (v === 1 && (S = [e], H = 1), v === "auto" && E === 1 && (S = [e], H = 1));
6142
6146
  let B = i + u;
6143
- const b = Math.round(H * w);
6144
- f === "middle" ? B = i + (a - b) / 2 : f === "bottom" && (B = i + a - b - u);
6145
- let _ = t + u + g;
6146
- h === "center" ? _ = t + s / 2 : h === "right" && (_ = t + s - u - m);
6147
+ const _ = Math.round(H * w);
6148
+ f === "middle" ? B = i + (a - _) / 2 : f === "bottom" && (B = i + a - _ - u);
6149
+ let b = t + u + g;
6150
+ h === "center" ? b = t + s / 2 : h === "right" && (b = t + s - u - m);
6147
6151
  for (let R = 0; R < S.length; R++) {
6148
6152
  const O = S[R], p = B + R * w;
6149
6153
  if (this.ctx.textBaseline = "top", R === H - 1) {
6150
6154
  const k = S.slice(R).join(""), { _text: A, ellipsis: V } = this.handleEllipsis(k, s, u, l);
6151
- this.ctx.fillText(A, _, p), y = V;
6155
+ this.ctx.fillText(A, b, p), y = V;
6152
6156
  break;
6153
6157
  }
6154
- this.ctx.fillText(O, _, p);
6158
+ this.ctx.fillText(O, b, p);
6155
6159
  }
6156
6160
  if (o.textCallback && S.length) {
6157
6161
  const R = S.reduce((V, Z) => Math.max(V, this.ctx.measureText(Z).width), 0), O = Math.round(R);
6158
- let p = _, k = _ + O;
6159
- h === "center" ? (p = _ - O / 2, k = _ + O / 2) : h === "right" && (p = _ - O, k = _);
6162
+ let p = b, k = b + O;
6163
+ h === "center" ? (p = b - O / 2, k = b + O / 2) : h === "right" && (p = b - O, k = b);
6160
6164
  const A = {
6161
- x: _,
6165
+ x: b,
6162
6166
  y: B,
6163
6167
  width: O,
6164
- height: b,
6168
+ height: _,
6165
6169
  left: p,
6166
6170
  right: k,
6167
6171
  top: B,
6168
- bottom: B + b
6172
+ bottom: B + _
6169
6173
  };
6170
6174
  o.textCallback(A);
6171
6175
  }
@@ -7182,7 +7186,7 @@ class ho {
7182
7186
  }), this.ctx.scrollerFocus = this.isFocus;
7183
7187
  }
7184
7188
  }
7185
- class Wb {
7189
+ class Pb {
7186
7190
  // 垂直滚动定时器
7187
7191
  constructor(e) {
7188
7192
  c(this, "ctx"), c(this, "verticalScrollbar"), c(this, "horizontalScrollbar"), c(this, "mousedownHeader", !1), c(this, "adjustPositionX", ""), c(this, "adjustPositionY", ""), c(this, "timerX", 0), c(this, "timerY", 0), this.ctx = e, this.verticalScrollbar = new ho(e, "vertical"), this.horizontalScrollbar = new ho(e, "horizontal"), this.ctx.on("wheel", (t) => this.onWheel(t)), this.ctx.on("mousedown", (t) => this.onMouseDown(t)), this.ctx.on("mousemove", (t) => this.onMouseMove(t)), this.ctx.on("mouseup", () => this.onMouseUp()), this.ctx.on("touchmove", (t) => this.onTouchmove(t)), this.ctx.on("touchstart", (t) => {
@@ -7282,7 +7286,7 @@ class Wb {
7282
7286
  e && (this.adjustPositionX = "", this.timerX && (clearInterval(this.timerX), this.timerX = 0)), t && (this.adjustPositionY = "", this.timerY && (clearInterval(this.timerY), this.timerY = 0));
7283
7287
  }
7284
7288
  }
7285
- class Pb {
7289
+ class Wb {
7286
7290
  constructor(e, t) {
7287
7291
  c(this, "root"), c(this, "key"), c(this, "childrenKey"), this.root = e, this.key = (t == null ? void 0 : t.key) || "key", this.childrenKey = (t == null ? void 0 : t.childrenKey) || "children";
7288
7292
  }
@@ -7407,7 +7411,7 @@ class Xb {
7407
7411
  if (this.dragingCell && this.dragTarget) {
7408
7412
  const e = (h, d = {}) => (h.forEach((u, f) => {
7409
7413
  u.children && e(u.children, d), d[u.key] = f;
7410
- }), d), t = this.ctx.database.getColumns(), i = Hi(t, ki(t)), s = new Pb(i, {
7414
+ }), d), t = this.ctx.database.getColumns(), i = Hi(t, ki(t)), s = new Wb(i, {
7411
7415
  key: "key",
7412
7416
  // 节点唯一标识字段(对应我们之前的field)
7413
7417
  childrenKey: "children"
@@ -7720,18 +7724,18 @@ class zb {
7720
7724
  a ? this.visibleHeight = E - g : this.visibleHeight = E, this.data.length || (this.height = this.visibleHeight), this.ctx.body.x = this.x, this.ctx.body.y = this.y, this.ctx.body.width = this.width, this.ctx.body.height = this.height, this.ctx.body.visibleWidth = this.visibleWidth, this.ctx.body.visibleHeight = this.visibleHeight, this.ctx.body.data = v;
7721
7725
  const S = window.devicePixelRatio || 1, H = this.ctx.stageWidth * S, B = this.ctx.stageHeight * S;
7722
7726
  e.width = Math.round(H), e.height = Math.round(B);
7723
- const b = this.data.length ? "not-empty" : "empty";
7727
+ const _ = this.data.length ? "not-empty" : "empty";
7724
7728
  this.ctx.emit("emptyChange", {
7725
- isEmpty: b,
7726
- type: b,
7729
+ isEmpty: _,
7730
+ type: _,
7727
7731
  headerHeight: t.height,
7728
7732
  bodyHeight: this.height,
7729
7733
  footerHeight: g,
7730
7734
  width: this.width,
7731
7735
  height: this.data.length ? 0 : l + g
7732
7736
  });
7733
- const _ = Math.round(e.width / S * 1e4) / 1e4, R = Math.round(e.height / S * 1e4) / 1e4;
7734
- this.ctx.canvasElement.setAttribute("style", `height:${R}px;width:${_}px;`), this.ctx.paint.scale(S);
7737
+ const b = Math.round(e.width / S * 1e4) / 1e4, R = Math.round(e.height / S * 1e4) / 1e4;
7738
+ this.ctx.canvasElement.setAttribute("style", `height:${R}px;width:${b}px;`), this.ctx.paint.scale(S);
7735
7739
  }
7736
7740
  // 调整行的高度
7737
7741
  initResizeRow() {
@@ -8324,16 +8328,16 @@ class Gb {
8324
8328
  for (let y = 0; y <= o.length - 1; y++) {
8325
8329
  const E = o[y].length;
8326
8330
  for (let S = 0; S <= E - 1; S++) {
8327
- const H = y + t, B = S + i, b = o[y][S], _ = this.ctx.database.getItemValueForRowIndexAndColIndex(
8331
+ const H = y + t, B = S + i, _ = o[y][S], b = this.ctx.database.getItemValueForRowIndexAndColIndex(
8328
8332
  H,
8329
8333
  B
8330
8334
  );
8331
- if (_) {
8332
- const { rowKey: R, key: O } = _;
8335
+ if (b) {
8336
+ const { rowKey: R, key: O } = b;
8333
8337
  this.ctx.database.getReadonly(R, O) || (s.add(R), m.push({
8334
8338
  rowKey: R,
8335
8339
  key: O,
8336
- value: b,
8340
+ value: _,
8337
8341
  row: {}
8338
8342
  //内部有设置
8339
8343
  }));
@@ -8438,11 +8442,11 @@ class Gb {
8438
8442
  const { drawX: g, drawY: m, width: w, height: C, fixed: y } = i, E = a - g + 1, S = i.drawX + w - (t - s) + 1;
8439
8443
  let H = o.height - m, B = C;
8440
8444
  B > l.visibleHeight && (B = l.visibleHeight);
8441
- let b = 0;
8442
- f && (v === "top" ? H = o.height + n.height - m : b = n.visibleHeight);
8443
- const _ = m + B - (e - b - u);
8445
+ let _ = 0;
8446
+ f && (v === "top" ? H = o.height + n.height - m : _ = n.visibleHeight);
8447
+ const b = m + B - (e - _ - u);
8444
8448
  let R = h, O = d;
8445
- S > 0 && !y ? R = Math.floor(h + S) : E > 0 && !y && (R = Math.floor(h - E)), H > 0 ? O = Math.floor(d - H) : _ > 0 && (O = Math.floor(d + _)), (Math.abs(h - R) > 2 || Math.abs(d - O) > 2) && (this.ctx.adjustPositioning = !0, this.ctx.emit("adjustBoundaryPosition", i), this.ctx.setScroll(R, O));
8449
+ S > 0 && !y ? R = Math.floor(h + S) : E > 0 && !y && (R = Math.floor(h - E)), H > 0 ? O = Math.floor(d - H) : b > 0 && (O = Math.floor(d + b)), (Math.abs(h - R) > 2 || Math.abs(d - O) > 2) && (this.ctx.adjustPositioning = !0, this.ctx.emit("adjustBoundaryPosition", i), this.ctx.setScroll(R, O));
8446
8450
  }
8447
8451
  destroy() {
8448
8452
  }
@@ -8501,16 +8505,16 @@ class Ub {
8501
8505
  if (E < m || H < C)
8502
8506
  return;
8503
8507
  o = [Math.max(m, E), Math.min(w, S)], n = [Math.max(C, H), Math.min(y, B)];
8504
- const { BEFORE_SET_AUTOFILL_METHOD: b } = this.ctx.config;
8505
- if (typeof b == "function") {
8506
- const _ = b({
8508
+ const { BEFORE_SET_AUTOFILL_METHOD: _ } = this.ctx.config;
8509
+ if (typeof _ == "function") {
8510
+ const b = _({
8507
8511
  focusCell: this.ctx.focusCell,
8508
8512
  xArr: o,
8509
8513
  yArr: n
8510
8514
  });
8511
- if (!_)
8515
+ if (!b)
8512
8516
  return;
8513
- o = _.xArr, n = _.yArr;
8517
+ o = b.xArr, n = b.yArr;
8514
8518
  }
8515
8519
  this.ctx.autofill.xArr = o, this.ctx.autofill.yArr = n, this.ctx.emit("setAutofill", this.ctx.autofill), this.ctx.emit("draw");
8516
8520
  }
@@ -8581,7 +8585,7 @@ class Ub {
8581
8585
  destroy() {
8582
8586
  }
8583
8587
  }
8584
- const Ft = Math.min, Ct = Math.max, Wi = Math.round, Ai = Math.floor, Ye = (r) => ({
8588
+ const Ft = Math.min, Ct = Math.max, Pi = Math.round, Ai = Math.floor, Ye = (r) => ({
8585
8589
  x: r,
8586
8590
  y: r
8587
8591
  }), qb = {
@@ -8622,10 +8626,10 @@ function Qb(r, e, t) {
8622
8626
  t === void 0 && (t = !1);
8623
8627
  const i = xi(r), s = ls(r), a = ns(s);
8624
8628
  let o = s === "x" ? i === (t ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
8625
- return e.reference[a] > e.floating[a] && (o = Pi(o)), [o, Pi(o)];
8629
+ return e.reference[a] > e.floating[a] && (o = Wi(o)), [o, Wi(o)];
8626
8630
  }
8627
8631
  function jb(r) {
8628
- const e = Pi(r);
8632
+ const e = Wi(r);
8629
8633
  return [Nr(r), e, Nr(e)];
8630
8634
  }
8631
8635
  function Nr(r) {
@@ -8649,7 +8653,7 @@ function r_(r, e, t, i) {
8649
8653
  let a = i_(_t(r), t === "start", i);
8650
8654
  return s && (a = a.map((o) => o + "-" + s), e && (a = a.concat(a.map(Nr)))), a;
8651
8655
  }
8652
- function Pi(r) {
8656
+ function Wi(r) {
8653
8657
  return r.replace(/left|right|bottom|top/g, (e) => qb[e]);
8654
8658
  }
8655
8659
  function s_(r) {
@@ -8865,14 +8869,14 @@ const o_ = (r) => ({
8865
8869
  }, v = ls(s), x = ns(v), g = await o.getDimensions(h), m = v === "y", w = m ? "top" : "left", C = m ? "bottom" : "right", y = m ? "clientHeight" : "clientWidth", E = a.reference[x] + a.reference[v] - f[v] - a.floating[x], S = f[v] - a.reference[v], H = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(h));
8866
8870
  let B = H ? H[y] : 0;
8867
8871
  (!B || !await (o.isElement == null ? void 0 : o.isElement(H))) && (B = n.floating[y] || a.floating[x]);
8868
- const b = E / 2 - S / 2, _ = B / 2 - g[x] / 2 - 1, R = Ft(u[w], _), O = Ft(u[C], _), p = R, k = B - g[x] - O, A = B / 2 - g[x] / 2 + b, V = Hr(p, A, k), Z = !l.arrow && xi(s) != null && A !== V && a.reference[x] / 2 - (A < p ? R : O) - g[x] / 2 < 0, P = Z ? A < p ? A - p : A - k : 0;
8872
+ const _ = E / 2 - S / 2, b = B / 2 - g[x] / 2 - 1, R = Ft(u[w], b), O = Ft(u[C], b), p = R, k = B - g[x] - O, A = B / 2 - g[x] / 2 + _, V = Hr(p, A, k), Z = !l.arrow && xi(s) != null && A !== V && a.reference[x] / 2 - (A < p ? R : O) - g[x] / 2 < 0, W = Z ? A < p ? A - p : A - k : 0;
8869
8873
  return {
8870
- [v]: f[v] + P,
8874
+ [v]: f[v] + W,
8871
8875
  data: {
8872
8876
  [v]: V,
8873
- centerOffset: A - V - P,
8877
+ centerOffset: A - V - W,
8874
8878
  ...Z && {
8875
- alignmentOffset: P
8879
+ alignmentOffset: W
8876
8880
  }
8877
8881
  },
8878
8882
  reset: Z
@@ -8902,23 +8906,23 @@ const o_ = (r) => ({
8902
8906
  } = vi(r, e);
8903
8907
  if ((t = a.arrow) != null && t.alignmentOffset)
8904
8908
  return {};
8905
- const w = _t(s), C = ot(n), y = _t(n) === n, E = await (l.isRTL == null ? void 0 : l.isRTL(h.floating)), S = f || (y || !g ? [Pi(n)] : jb(n)), H = x !== "none";
8909
+ const w = _t(s), C = ot(n), y = _t(n) === n, E = await (l.isRTL == null ? void 0 : l.isRTL(h.floating)), S = f || (y || !g ? [Wi(n)] : jb(n)), H = x !== "none";
8906
8910
  !f && H && S.push(...r_(n, g, x, E));
8907
- const B = [n, ...S], b = await Yl(e, m), _ = [];
8911
+ const B = [n, ...S], _ = await Yl(e, m), b = [];
8908
8912
  let R = ((i = a.flip) == null ? void 0 : i.overflows) || [];
8909
- if (d && _.push(b[w]), u) {
8913
+ if (d && b.push(_[w]), u) {
8910
8914
  const A = Qb(s, o, E);
8911
- _.push(b[A[0]], b[A[1]]);
8915
+ b.push(_[A[0]], _[A[1]]);
8912
8916
  }
8913
8917
  if (R = [...R, {
8914
8918
  placement: s,
8915
- overflows: _
8916
- }], !_.every((A) => A <= 0)) {
8919
+ overflows: b
8920
+ }], !b.every((A) => A <= 0)) {
8917
8921
  var O, p;
8918
8922
  const A = (((O = a.flip) == null ? void 0 : O.index) || 0) + 1, V = B[A];
8919
8923
  if (V && (!(u === "alignment" && C !== ot(V)) || // We leave the current main axis only if every placement on that axis
8920
8924
  // overflows the main axis.
8921
- R.every((P) => ot(P.placement) === C ? P.overflows[0] > 0 : !0)))
8925
+ R.every((W) => ot(W.placement) === C ? W.overflows[0] > 0 : !0)))
8922
8926
  return {
8923
8927
  data: {
8924
8928
  index: A,
@@ -8928,12 +8932,12 @@ const o_ = (r) => ({
8928
8932
  placement: V
8929
8933
  }
8930
8934
  };
8931
- let Z = (p = R.filter((P) => P.overflows[0] <= 0).sort((P, J) => P.overflows[1] - J.overflows[1])[0]) == null ? void 0 : p.placement;
8935
+ let Z = (p = R.filter((W) => W.overflows[0] <= 0).sort((W, J) => W.overflows[1] - J.overflows[1])[0]) == null ? void 0 : p.placement;
8932
8936
  if (!Z)
8933
8937
  switch (v) {
8934
8938
  case "bestFit": {
8935
8939
  var k;
8936
- const P = (k = R.filter((J) => {
8940
+ const W = (k = R.filter((J) => {
8937
8941
  if (H) {
8938
8942
  const ee = ot(J.placement);
8939
8943
  return ee === C || // Create a bias to the `y` side axis due to horizontal
@@ -8942,7 +8946,7 @@ const o_ = (r) => ({
8942
8946
  }
8943
8947
  return !0;
8944
8948
  }).map((J) => [J.placement, J.overflows.filter((ee) => ee > 0).reduce((ee, re) => ee + re, 0)]).sort((J, ee) => J[1] - ee[1])[0]) == null ? void 0 : k[0];
8945
- P && (Z = P);
8949
+ W && (Z = W);
8946
8950
  break;
8947
8951
  }
8948
8952
  case "initialPlacement":
@@ -9070,7 +9074,7 @@ function ar() {
9070
9074
  return typeof window < "u";
9071
9075
  }
9072
9076
  function Gt(r) {
9073
- return Wl(r) ? (r.nodeName || "").toLowerCase() : "#document";
9077
+ return Pl(r) ? (r.nodeName || "").toLowerCase() : "#document";
9074
9078
  }
9075
9079
  function we(r) {
9076
9080
  var e;
@@ -9078,15 +9082,15 @@ function we(r) {
9078
9082
  }
9079
9083
  function Ve(r) {
9080
9084
  var e;
9081
- return (e = (Wl(r) ? r.ownerDocument : r.document) || window.document) == null ? void 0 : e.documentElement;
9085
+ return (e = (Pl(r) ? r.ownerDocument : r.document) || window.document) == null ? void 0 : e.documentElement;
9082
9086
  }
9083
- function Wl(r) {
9087
+ function Pl(r) {
9084
9088
  return ar() ? r instanceof Node || r instanceof we(r).Node : !1;
9085
9089
  }
9086
9090
  function Ae(r) {
9087
9091
  return ar() ? r instanceof Element || r instanceof we(r).Element : !1;
9088
9092
  }
9089
- function We(r) {
9093
+ function Pe(r) {
9090
9094
  return ar() ? r instanceof HTMLElement || r instanceof we(r).HTMLElement : !1;
9091
9095
  }
9092
9096
  function vo(r) {
@@ -9123,7 +9127,7 @@ function cs(r) {
9123
9127
  }
9124
9128
  function y_(r) {
9125
9129
  let e = ct(r);
9126
- for (; We(e) && !Bt(e); ) {
9130
+ for (; Pe(e) && !Bt(e); ) {
9127
9131
  if (cs(e))
9128
9132
  return e;
9129
9133
  if (or(e))
@@ -9163,14 +9167,14 @@ function ct(r) {
9163
9167
  );
9164
9168
  return vo(e) ? e.host : e;
9165
9169
  }
9166
- function Pl(r) {
9170
+ function Wl(r) {
9167
9171
  const e = ct(r);
9168
- return Bt(e) ? r.ownerDocument ? r.ownerDocument.body : r.body : We(e) && mi(e) ? e : Pl(e);
9172
+ return Bt(e) ? r.ownerDocument ? r.ownerDocument.body : r.body : Pe(e) && mi(e) ? e : Wl(e);
9169
9173
  }
9170
9174
  function ai(r, e, t) {
9171
9175
  var i;
9172
9176
  e === void 0 && (e = []), t === void 0 && (t = !0);
9173
- const s = Pl(r), a = s === ((i = r.ownerDocument) == null ? void 0 : i.body), o = we(s);
9177
+ const s = Wl(r), a = s === ((i = r.ownerDocument) == null ? void 0 : i.body), o = we(s);
9174
9178
  if (a) {
9175
9179
  const n = Fr(o);
9176
9180
  return e.concat(o, o.visualViewport || [], mi(s) ? s : [], n && t ? ai(n) : []);
@@ -9183,7 +9187,7 @@ function Fr(r) {
9183
9187
  function Xl(r) {
9184
9188
  const e = ke(r);
9185
9189
  let t = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
9186
- const s = We(r), a = s ? r.offsetWidth : t, o = s ? r.offsetHeight : i, n = Wi(t) !== a || Wi(i) !== o;
9190
+ const s = Pe(r), a = s ? r.offsetWidth : t, o = s ? r.offsetHeight : i, n = Pi(t) !== a || Pi(i) !== o;
9187
9191
  return n && (t = a, i = o), {
9188
9192
  width: t,
9189
9193
  height: i,
@@ -9195,14 +9199,14 @@ function ds(r) {
9195
9199
  }
9196
9200
  function Nt(r) {
9197
9201
  const e = ds(r);
9198
- if (!We(e))
9202
+ if (!Pe(e))
9199
9203
  return Ye(1);
9200
9204
  const t = e.getBoundingClientRect(), {
9201
9205
  width: i,
9202
9206
  height: s,
9203
9207
  $: a
9204
9208
  } = Xl(e);
9205
- let o = (a ? Wi(t.width) : t.width) / i, n = (a ? Wi(t.height) : t.height) / s;
9209
+ let o = (a ? Pi(t.width) : t.width) / i, n = (a ? Pi(t.height) : t.height) / s;
9206
9210
  return (!o || !Number.isFinite(o)) && (o = 1), (!n || !Number.isFinite(n)) && (n = 1), {
9207
9211
  x: o,
9208
9212
  y: n
@@ -9270,8 +9274,8 @@ function b_(r) {
9270
9274
  scrollLeft: 0,
9271
9275
  scrollTop: 0
9272
9276
  }, h = Ye(1);
9273
- const d = Ye(0), u = We(i);
9274
- if ((u || !u && !a) && ((Gt(i) !== "body" || mi(o)) && (l = nr(i)), We(i))) {
9277
+ const d = Ye(0), u = Pe(i);
9278
+ if ((u || !u && !a) && ((Gt(i) !== "body" || mi(o)) && (l = nr(i)), Pe(i))) {
9275
9279
  const v = Rt(i);
9276
9280
  h = Nt(i), d.x = v.x + i.clientLeft, d.y = v.y + i.clientTop;
9277
9281
  }
@@ -9314,7 +9318,7 @@ function I_(r, e) {
9314
9318
  }
9315
9319
  const S_ = /* @__PURE__ */ new Set(["absolute", "fixed"]);
9316
9320
  function T_(r, e) {
9317
- const t = Rt(r, !0, e === "fixed"), i = t.top + r.clientTop, s = t.left + r.clientLeft, a = We(r) ? Nt(r) : Ye(1), o = r.clientWidth * a.x, n = r.clientHeight * a.y, l = s * a.x, h = i * a.y;
9321
+ const t = Rt(r, !0, e === "fixed"), i = t.top + r.clientTop, s = t.left + r.clientLeft, a = Pe(r) ? Nt(r) : Ye(1), o = r.clientWidth * a.x, n = r.clientHeight * a.y, l = s * a.x, h = i * a.y;
9318
9322
  return {
9319
9323
  width: o,
9320
9324
  height: n,
@@ -9387,7 +9391,7 @@ function $_(r) {
9387
9391
  };
9388
9392
  }
9389
9393
  function D_(r, e, t) {
9390
- const i = We(e), s = Ve(e), a = t === "fixed", o = Rt(r, !0, a, e);
9394
+ const i = Pe(e), s = Ve(e), a = t === "fixed", o = Rt(r, !0, a, e);
9391
9395
  let n = {
9392
9396
  scrollLeft: 0,
9393
9397
  scrollTop: 0
@@ -9414,7 +9418,7 @@ function Sr(r) {
9414
9418
  return ke(r).position === "static";
9415
9419
  }
9416
9420
  function mo(r, e) {
9417
- if (!We(r) || ke(r).position === "fixed")
9421
+ if (!Pe(r) || ke(r).position === "fixed")
9418
9422
  return null;
9419
9423
  if (e)
9420
9424
  return e(r);
@@ -9425,7 +9429,7 @@ function Ul(r, e) {
9425
9429
  const t = we(r);
9426
9430
  if (or(r))
9427
9431
  return t;
9428
- if (!We(r)) {
9432
+ if (!Pe(r)) {
9429
9433
  let s = ct(r);
9430
9434
  for (; s && !Bt(s); ) {
9431
9435
  if (Ae(s) && !Sr(s))
@@ -10338,7 +10342,7 @@ class po {
10338
10342
  }), e.remove();
10339
10343
  }
10340
10344
  }
10341
- class W_ {
10345
+ class P_ {
10342
10346
  constructor(e) {
10343
10347
  c(this, "ctx"), c(this, "contextMenuEl"), c(this, "currentDOMTreeMenu"), c(this, "isCustom", !1), this.ctx = e, this.ctx.contextMenuElement ? (this.contextMenuEl = this.ctx.contextMenuElement, this.contextMenuEl.className = "e-virt-table-main-menu", this.isCustom = !0) : (this.contextMenuEl = document.createElement("div"), this.isCustom = !1), this.ctx.containerElement.appendChild(this.contextMenuEl), this.init();
10344
10348
  }
@@ -10380,19 +10384,19 @@ class W_ {
10380
10384
  onClick: (C, y) => {
10381
10385
  const { xArr: E } = this.ctx.selector, [S, H] = E;
10382
10386
  if (y === "fixedLeft" || y === "fixedRight" || y === "fixedNone") {
10383
- const B = this.ctx.header.allCellHeaders.filter((b) => b.colIndex >= S && b.colIndex <= H).filter((b) => b.level === 0).filter((b) => !b.column.fixedDisabled).map((b) => b.key);
10387
+ const B = this.ctx.header.allCellHeaders.filter((_) => _.colIndex >= S && _.colIndex <= H).filter((_) => _.level === 0).filter((_) => !_.column.fixedDisabled).map((_) => _.key);
10384
10388
  this.ctx.database.setCustomHeaderFixedData(
10385
10389
  B,
10386
10390
  y === "fixedLeft" ? "left" : y === "fixedRight" ? "right" : ""
10387
10391
  ), this.hide();
10388
10392
  } else if (y === "hide") {
10389
- const B = this.ctx.header.leafCellHeaders.filter((b) => b.colIndex >= S && b.colIndex <= H).filter((b) => !b.children.length).filter((b) => !b.column.hideDisabled).map((b) => b.key);
10393
+ const B = this.ctx.header.leafCellHeaders.filter((_) => _.colIndex >= S && _.colIndex <= H).filter((_) => !_.children.length).filter((_) => !_.column.hideDisabled).map((_) => _.key);
10390
10394
  B.length > 0 && this.ctx.database.setCustomHeaderHideData(B, !0), this.hide();
10391
10395
  } else if (y !== "visible") if (y.startsWith("visible_")) {
10392
10396
  const B = y.replace("visible_", "");
10393
10397
  this.ctx.database.setCustomHeaderHideData([B], !1), this.currentDOMTreeMenu && this.currentDOMTreeMenu.removeSubMenuItem(y);
10394
- const b = this.ctx.database.getColumns();
10395
- si(b).filter((_) => _.hide).length === 0 && this.hide();
10398
+ const _ = this.ctx.database.getColumns();
10399
+ si(_).filter((b) => b.hide).length === 0 && this.hide();
10396
10400
  } else y === "resetHeader" && (this.ctx.database.resetCustomHeader(), this.hide());
10397
10401
  }
10398
10402
  }), this.positionMenu(t);
@@ -10449,7 +10453,7 @@ class W_ {
10449
10453
  this.hide(), (e = this.contextMenuEl) == null || e.remove();
10450
10454
  }
10451
10455
  }
10452
- class P_ {
10456
+ class W_ {
10453
10457
  constructor(e) {
10454
10458
  if (c(this, "ctx"), c(this, "loadingEl"), this.ctx = e, this.ctx.loadingElement)
10455
10459
  this.loadingEl = this.ctx.loadingElement;
@@ -10487,7 +10491,7 @@ class X_ {
10487
10491
  a,
10488
10492
  o
10489
10493
  );
10490
- this.ctx = new Yb(n, this.options), this.header = new Xb(this.ctx), this.footer = new Vb(this.ctx), this.body = new zb(this.ctx), this.scroller = new Wb(this.ctx), this.selector = new Gb(this.ctx), this.autofill = new Ub(this.ctx), this.tooltip = new F_(this.ctx), this.empty = new K_(this.ctx), this.editor = new B_(this.ctx), this.overlayer = new Y_(this.ctx), this.contextMenu = new W_(this.ctx), this.loading = new P_(this.ctx), this.ctx.on("draw", () => {
10494
+ this.ctx = new Yb(n, this.options), this.header = new Xb(this.ctx), this.footer = new Vb(this.ctx), this.body = new zb(this.ctx), this.scroller = new Pb(this.ctx), this.selector = new Gb(this.ctx), this.autofill = new Ub(this.ctx), this.tooltip = new F_(this.ctx), this.empty = new K_(this.ctx), this.editor = new B_(this.ctx), this.overlayer = new Y_(this.ctx), this.contextMenu = new P_(this.ctx), this.loading = new W_(this.ctx), this.ctx.on("draw", () => {
10491
10495
  this.draw();
10492
10496
  }), this.ctx.on("drawView", () => {
10493
10497
  this.draw(!0);
@@ -10830,7 +10834,7 @@ const z_ = /* @__PURE__ */ fe((r, {
10830
10834
  },
10831
10835
  ...k
10832
10836
  ), B = (p) => {
10833
- var k, A, V, Z, P;
10837
+ var k, A, V, Z, W;
10834
10838
  if ((k = p.slots) != null && k.default && I.isFunction((A = p.slots) == null ? void 0 : A.default))
10835
10839
  return (J) => {
10836
10840
  var ee, re;
@@ -10841,7 +10845,7 @@ const z_ = /* @__PURE__ */ fe((r, {
10841
10845
  });
10842
10846
  };
10843
10847
  if ((V = p.slots) != null && V.default && I.isString((Z = p.slots) == null ? void 0 : Z.default))
10844
- return `slot:${(P = p.slots) == null ? void 0 : P.default}`;
10848
+ return `slot:${(W = p.slots) == null ? void 0 : W.default}`;
10845
10849
  if (p.cellRender && p.cellRender.name)
10846
10850
  return (J) => {
10847
10851
  var ee, re;
@@ -10857,29 +10861,29 @@ const z_ = /* @__PURE__ */ fe((r, {
10857
10861
  {}
10858
10862
  );
10859
10863
  };
10860
- }, b = (p) => {
10864
+ }, _ = (p) => {
10861
10865
  var k, A;
10862
10866
  if ((k = p.slots) != null && k.title && I.isFunction((A = p.slots) == null ? void 0 : A.title))
10863
10867
  return (V) => {
10864
- var Z, P;
10865
- return (P = (Z = p.slots) == null ? void 0 : Z.title) == null ? void 0 : P.call(Z, { column: p });
10868
+ var Z, W;
10869
+ return (W = (Z = p.slots) == null ? void 0 : Z.title) == null ? void 0 : W.call(Z, { column: p });
10866
10870
  };
10867
- }, _ = (p) => {
10868
- var k, A, V, Z, P, J, ee;
10871
+ }, b = (p) => {
10872
+ var k, A, V, Z, W, J, ee;
10869
10873
  return (k = p.slots) != null && k.edit && (p.field || p.key) && I.isFunction((A = p.slots) == null ? void 0 : A.edit) ? w[`__slot:${p.field || p.key}`] = p : (V = p.editRender) != null && V.name && (p.field || p.key) && (C[p.field || p.key] = p.editRender), {
10870
10874
  ...I.omit(p, ["formatter"]),
10871
10875
  key: p.key || p.field || qe(),
10872
10876
  formatter: I.isString(p.formatter) ? H(E(p.formatter)) : I.isArray(p.formatter) && I.isString(p.formatter[0]) ? H(E(p.formatter[0]), ...p.formatter.slice(1)) : I.isFunction(p.formatter) ? H(p.formatter) : void 0,
10873
- editorType: p.editorType ?? ((Z = p.slots) != null && Z.edit && (p.field || p.key) && I.isFunction((P = p.slots) == null ? void 0 : P.edit) ? `__slot:${p.field || p.key}` : (J = p.editRender) != null && J.name ? p.editRender.name : void 0),
10877
+ editorType: p.editorType ?? ((Z = p.slots) != null && Z.edit && (p.field || p.key) && I.isFunction((W = p.slots) == null ? void 0 : W.edit) ? `__slot:${p.field || p.key}` : (J = p.editRender) != null && J.name ? p.editRender.name : void 0),
10874
10878
  render: B(p),
10875
- renderHeader: b(p),
10876
- children: (ee = p.children) == null ? void 0 : ee.map((re) => _(re))
10879
+ renderHeader: _(p),
10880
+ children: (ee = p.children) == null ? void 0 : ee.map((re) => b(re))
10877
10881
  };
10878
10882
  };
10879
10883
  Ui(() => {
10880
10884
  d.value && (l = new X_(d.value, {
10881
10885
  config: n.value.config,
10882
- columns: a.columns.map((p) => _(p)),
10886
+ columns: a.columns.map((p) => b(p)),
10883
10887
  data: a.data,
10884
10888
  footerData: a.footerData,
10885
10889
  emptyElement: f.value || void 0,
@@ -10919,7 +10923,7 @@ const z_ = /* @__PURE__ */ fe((r, {
10919
10923
  ), _l(
10920
10924
  () => a.columns,
10921
10925
  (p, k) => {
10922
- I.isEqual(p, k) || l == null || l.loadColumns(p.map((A) => _(A)));
10926
+ I.isEqual(p, k) || l == null || l.loadColumns(p.map((A) => b(A)));
10923
10927
  },
10924
10928
  { deep: !0 }
10925
10929
  ), Ue(
@@ -10950,7 +10954,7 @@ const z_ = /* @__PURE__ */ fe((r, {
10950
10954
  const A = ae("a-empty"), V = ae("a-spin");
10951
10955
  return $(), z(V, { spinning: p.loading }, {
10952
10956
  default: Y(() => {
10953
- var Z, P, J, ee, re, et, Ot;
10957
+ var Z, W, J, ee, re, et, Ot;
10954
10958
  return [
10955
10959
  ue("div", {
10956
10960
  ref_key: "eVirtTableRef",
@@ -10983,7 +10987,7 @@ const z_ = /* @__PURE__ */ fe((r, {
10983
10987
  style: ei(y.value),
10984
10988
  "render-table-params": {
10985
10989
  data: a.data,
10986
- row: (P = x.value) == null ? void 0 : P.row,
10990
+ row: (W = x.value) == null ? void 0 : W.row,
10987
10991
  rowIndex: ((J = x.value) == null ? void 0 : J.rowIndex) ?? -1,
10988
10992
  field: ((ee = x.value) == null ? void 0 : ee.key) ?? "",
10989
10993
  title: ((et = (re = x.value) == null ? void 0 : re.column) == null ? void 0 : et.title) ?? ""
@@ -11091,7 +11095,7 @@ const z_ = /* @__PURE__ */ fe((r, {
11091
11095
  }), E = wt({
11092
11096
  page: 1,
11093
11097
  size: ((yi = n.value) == null ? void 0 : yi.pageSize) ?? 10
11094
- }), S = X(0), H = X(0), B = X([]), b = X(), _ = X(), R = X(), O = X(), p = X(500), k = X({}), A = (M) => {
11098
+ }), S = X(0), H = X(0), B = X([]), _ = X(), b = X(), R = X(), O = X(), p = X(500), k = X({}), A = (M) => {
11095
11099
  k.value[E.page] = M;
11096
11100
  }, V = wt(
11097
11101
  [
@@ -11103,7 +11107,7 @@ const z_ = /* @__PURE__ */ fe((r, {
11103
11107
  )
11104
11108
  ), Z = (M, K) => {
11105
11109
  V[M] = K;
11106
- }, P = (M) => {
11110
+ }, W = (M) => {
11107
11111
  I.isObject(M) ? (Object.prototype.hasOwnProperty.call(M, "toolbar") && (y.toolbar = M.toolbar), Object.prototype.hasOwnProperty.call(M, "form") && (y.form = M.form), Object.prototype.hasOwnProperty.call(M, "table") && (y.table = M.table)) : I.isBoolean(M) && (y.form = M, y.toolbar = M, y.table = M);
11108
11112
  }, J = U(
11109
11113
  () => I.uniq(
@@ -11145,7 +11149,7 @@ const z_ = /* @__PURE__ */ fe((r, {
11145
11149
  }), $t(M);
11146
11150
  }, lr = I.debounce(oe, 100), Oe = () => new Promise((M) => {
11147
11151
  if (w.value !== "bad") {
11148
- P({ table: !0, form: !0 });
11152
+ W({ table: !0, form: !0 });
11149
11153
  const { ajax: K } = d.value;
11150
11154
  K.query({
11151
11155
  form: g.value,
@@ -11159,7 +11163,7 @@ const z_ = /* @__PURE__ */ fe((r, {
11159
11163
  }).catch((te) => {
11160
11164
  console.error("fetchData error", te), M([]);
11161
11165
  }).finally(() => {
11162
- P({ table: !1, form: !1 });
11166
+ W({ table: !1, form: !1 });
11163
11167
  });
11164
11168
  }
11165
11169
  }), cr = (M, K) => (E.page = M, E.size = K, Oe()), ft = () => (E.page = 1, k.value = {}, Oe()), Lt = I.debounce(Oe, 160), pi = (M, K) => (Object.assign(g.value, M), E.page = 1, K ? Promise.resolve() : Lt()), hr = (M, K) => (g.value = M, E.page = 1, K ? Promise.resolve() : Lt()), $t = (M) => {
@@ -11170,12 +11174,12 @@ const z_ = /* @__PURE__ */ fe((r, {
11170
11174
  title: "警告",
11171
11175
  content: "确认删除选中的数据吗?"
11172
11176
  }).then(() => {
11173
- P({ table: !0, toolbar: !0 }), K.multiDelete(re.value).then(() => {
11177
+ W({ table: !0, toolbar: !0 }), K.multiDelete(re.value).then(() => {
11174
11178
  fb("删除成功"), ft();
11175
11179
  }).catch(() => {
11176
11180
  gb("删除失败");
11177
11181
  }).finally(() => {
11178
- P({ table: !1, toolbar: !1 }), V.multiDelete = !1;
11182
+ W({ table: !1, toolbar: !1 }), V.multiDelete = !1;
11179
11183
  });
11180
11184
  }) : Yi("请选择要删除的数据"));
11181
11185
  break;
@@ -11238,13 +11242,13 @@ const z_ = /* @__PURE__ */ fe((r, {
11238
11242
  passQuery: pi,
11239
11243
  forcePassQuery: hr
11240
11244
  },
11241
- $canvasTable: U(() => _.value),
11245
+ $canvasTable: U(() => b.value),
11242
11246
  selectedRowKeys: re,
11243
11247
  setBtnLoading: Z,
11244
11248
  selectedRecords: J,
11245
- $form: U(() => b.value),
11249
+ $form: U(() => _.value),
11246
11250
  getFormData: () => g.value,
11247
- setLoadings: P,
11251
+ setLoadings: W,
11248
11252
  resizeTable: vt
11249
11253
  }), (M, K) => {
11250
11254
  var be, Le, qt;
@@ -11255,7 +11259,7 @@ const z_ = /* @__PURE__ */ fe((r, {
11255
11259
  class: "h-full p-wrapper flex flex-col gap-8px overflow-y-auto"
11256
11260
  }, T(s)), [
11257
11261
  w.value === "bad" ? ($(), q("div", V_, "请检查配置")) : ($(), q(ne, { key: 1 }, [
11258
- (Le = (be = T(o)) == null ? void 0 : be.items) != null && Le.some((W) => W.field && W.itemRender) ? ($(), q("div", {
11262
+ (Le = (be = T(o)) == null ? void 0 : be.items) != null && Le.some((P) => P.field && P.itemRender) ? ($(), q("div", {
11259
11263
  key: 0,
11260
11264
  class: "p-pane p-form-wrapper",
11261
11265
  ref_key: "pFormWrapper",
@@ -11268,16 +11272,16 @@ const z_ = /* @__PURE__ */ fe((r, {
11268
11272
  ($(), z(T(qi), G({
11269
11273
  key: x.value,
11270
11274
  ref_key: "formEl",
11271
- ref: b,
11275
+ ref: _,
11272
11276
  model: g.value
11273
11277
  }, C.value, { onSubmit: ee }), {
11274
11278
  default: Y(() => [
11275
- N(T(Wr), { gutter: [6, 12] }, {
11279
+ N(T(Pr), { gutter: [6, 12] }, {
11276
11280
  default: Y(() => [
11277
- ($(!0), q(ne, null, le(T(o).items, (W, L) => ($(), z(rs, {
11278
- key: `_col_${W.field || L}`,
11281
+ ($(!0), q(ne, null, le(T(o).items, (P, L) => ($(), z(rs, {
11282
+ key: `_col_${P.field || L}`,
11279
11283
  "form-data": g.value,
11280
- item: W,
11284
+ item: P,
11281
11285
  onReset: K[0] || (K[0] = (D) => gt(i.lazyReset))
11282
11286
  }, null, 8, ["form-data", "item"]))), 128))
11283
11287
  ]),
@@ -11292,12 +11296,12 @@ const z_ = /* @__PURE__ */ fe((r, {
11292
11296
  ], 512)) : ie("", !0),
11293
11297
  T(h) ? ($(), q("div", G_, [
11294
11298
  ue("div", U_, [
11295
- T(h).buttons && T(h).buttons.length > 0 ? ($(!0), q(ne, { key: 0 }, le(T(h).buttons, (W, L) => ($(), q(ne, { key: L }, [
11296
- W.dropdowns && W.dropdowns.length ? ($(), z(tt, { key: 0 }, {
11299
+ T(h).buttons && T(h).buttons.length > 0 ? ($(!0), q(ne, { key: 0 }, le(T(h).buttons, (P, L) => ($(), q(ne, { key: L }, [
11300
+ P.dropdowns && P.dropdowns.length ? ($(), z(tt, { key: 0 }, {
11297
11301
  overlay: Y(() => [
11298
11302
  N(Ge, { onClick: ut }, {
11299
11303
  default: Y(() => [
11300
- ($(!0), q(ne, null, le(W.dropdowns, (D) => ($(), z(te, {
11304
+ ($(!0), q(ne, null, le(P.dropdowns, (D) => ($(), z(te, {
11301
11305
  key: D.code
11302
11306
  }, {
11303
11307
  default: Y(() => [
@@ -11311,69 +11315,69 @@ const z_ = /* @__PURE__ */ fe((r, {
11311
11315
  ]),
11312
11316
  default: Y(() => [
11313
11317
  N(T(ge), {
11314
- type: W.type,
11315
- size: W.size ?? "middle",
11316
- disabled: T(h).disabled || W.disabled,
11317
- loading: y.toolbar || !!W.code && V[W.code],
11318
- danger: W.danger,
11319
- shape: W.shape,
11320
- ghost: W.ghost,
11321
- block: W.block
11318
+ type: P.type,
11319
+ size: P.size ?? "middle",
11320
+ disabled: T(h).disabled || P.disabled,
11321
+ loading: y.toolbar || !!P.code && V[P.code],
11322
+ danger: P.danger,
11323
+ shape: P.shape,
11324
+ ghost: P.ghost,
11325
+ block: P.block
11322
11326
  }, {
11323
11327
  default: Y(() => [
11324
- W.icon ? ($(), z(T(ye), {
11328
+ P.icon ? ($(), z(T(ye), {
11325
11329
  key: 0,
11326
- icon: W.icon
11330
+ icon: P.icon
11327
11331
  }, null, 8, ["icon"])) : ie("", !0),
11328
- _e(" " + Me(W.content) + " ", 1),
11332
+ _e(" " + Me(P.content) + " ", 1),
11329
11333
  N(T(_o))
11330
11334
  ]),
11331
11335
  _: 2
11332
11336
  }, 1032, ["type", "size", "disabled", "loading", "danger", "shape", "ghost", "block"])
11333
11337
  ]),
11334
11338
  _: 2
11335
- }, 1024)) : W.code ? ($(), z(T(ge), {
11339
+ }, 1024)) : P.code ? ($(), z(T(ge), {
11336
11340
  key: 1,
11337
- type: W.type,
11338
- size: W.size ?? "middle",
11339
- disabled: T(h).disabled || W.disabled,
11340
- loading: y.toolbar || !!W.code && V[W.code],
11341
- danger: W.danger,
11342
- shape: W.shape,
11343
- ghost: W.ghost,
11344
- block: W.block,
11345
- onClick: (D) => T(Ce)(W.code)
11341
+ type: P.type,
11342
+ size: P.size ?? "middle",
11343
+ disabled: T(h).disabled || P.disabled,
11344
+ loading: y.toolbar || !!P.code && V[P.code],
11345
+ danger: P.danger,
11346
+ shape: P.shape,
11347
+ ghost: P.ghost,
11348
+ block: P.block,
11349
+ onClick: (D) => T(Ce)(P.code)
11346
11350
  }, {
11347
11351
  default: Y(() => [
11348
- W.icon ? ($(), z(T(ye), {
11352
+ P.icon ? ($(), z(T(ye), {
11349
11353
  key: 0,
11350
- icon: W.icon
11354
+ icon: P.icon
11351
11355
  }, null, 8, ["icon"])) : ie("", !0),
11352
- _e(" " + Me(W.content), 1)
11356
+ _e(" " + Me(P.content), 1)
11353
11357
  ]),
11354
11358
  _: 2
11355
11359
  }, 1032, ["type", "size", "disabled", "loading", "danger", "shape", "ghost", "block", "onClick"])) : ($(), q("div", q_))
11356
11360
  ], 64))), 128)) : ie("", !0)
11357
11361
  ]),
11358
11362
  ue("span", Z_, [
11359
- T(h).tools && T(h).tools.length > 0 ? ($(!0), q(ne, { key: 0 }, le(T(h).tools, (W, L) => ($(), z(T(ge), {
11363
+ T(h).tools && T(h).tools.length > 0 ? ($(!0), q(ne, { key: 0 }, le(T(h).tools, (P, L) => ($(), z(T(ge), {
11360
11364
  key: L,
11361
- type: W.type,
11362
- size: W.size ?? "middle",
11363
- disabled: T(h).disabled || W.disabled,
11364
- danger: W.danger,
11365
- shape: W.shape,
11366
- ghost: W.ghost,
11367
- block: W.block,
11368
- onClick: (D) => T(lr)(W.code),
11369
- loading: y.toolbar || !!W.code && V[W.code]
11365
+ type: P.type,
11366
+ size: P.size ?? "middle",
11367
+ disabled: T(h).disabled || P.disabled,
11368
+ danger: P.danger,
11369
+ shape: P.shape,
11370
+ ghost: P.ghost,
11371
+ block: P.block,
11372
+ onClick: (D) => T(lr)(P.code),
11373
+ loading: y.toolbar || !!P.code && V[P.code]
11370
11374
  }, {
11371
11375
  default: Y(() => [
11372
- W.icon ? ($(), z(T(ye), {
11376
+ P.icon ? ($(), z(T(ye), {
11373
11377
  key: 0,
11374
- icon: W.icon
11378
+ icon: P.icon
11375
11379
  }, null, 8, ["icon"])) : ie("", !0),
11376
- _e(" " + Me(W.content), 1)
11380
+ _e(" " + Me(P.content), 1)
11377
11381
  ]),
11378
11382
  _: 2
11379
11383
  }, 1032, ["type", "size", "disabled", "danger", "shape", "ghost", "block", "onClick", "loading"]))), 128)) : ie("", !0)
@@ -11383,7 +11387,7 @@ const z_ = /* @__PURE__ */ fe((r, {
11383
11387
  (qt = T(f)) != null && qt.selectable && T(f).showCount ? ($(), q("div", Q_, " 已选:" + Me(re.value.length), 1)) : ie("", !0),
11384
11388
  N(Zl, {
11385
11389
  ref_key: "canvasTableRef",
11386
- ref: _,
11390
+ ref: b,
11387
11391
  columns: dr.value,
11388
11392
  config: {
11389
11393
  ...m.value.config,
@@ -11393,7 +11397,7 @@ const z_ = /* @__PURE__ */ fe((r, {
11393
11397
  loading: y.table,
11394
11398
  onSelectionChange: A
11395
11399
  }, nt({ _: 2 }, [
11396
- le(M.$slots, (W, L) => ({
11400
+ le(M.$slots, (P, L) => ({
11397
11401
  name: L,
11398
11402
  fn: Y((D) => [
11399
11403
  bt(M.$slots, L, Or(jl(D)))
@@ -11492,7 +11496,8 @@ const z_ = /* @__PURE__ */ fe((r, {
11492
11496
  props: /* @__PURE__ */ ec({
11493
11497
  getFormSetting: { type: Function },
11494
11498
  title: {},
11495
- tabLabel: { type: [String, Function] },
11499
+ tabLabel: {},
11500
+ getTabLabel: { type: Function },
11496
11501
  editAble: { type: Boolean },
11497
11502
  showAdd: { type: Boolean },
11498
11503
  collapsible: { type: Boolean },
@@ -11514,9 +11519,9 @@ const z_ = /* @__PURE__ */ fe((r, {
11514
11519
  }),
11515
11520
  emits: ["update:modelValue"],
11516
11521
  setup(r, { expose: e }) {
11517
- const t = qi.useForm, i = X(), s = r, a = X(), o = tc(r, "modelValue"), n = X(0), l = X([]), h = X([]), d = (b) => {
11518
- n.value = b;
11519
- }, u = U(() => s.max ?? 1 / 0), f = (b) => {
11522
+ const t = qi.useForm, i = X(), s = r, a = X(), o = tc(r, "modelValue"), n = X(0), l = X([]), h = X([]), d = (_) => {
11523
+ n.value = _;
11524
+ }, u = U(() => s.max ?? 1 / 0), f = (_) => {
11520
11525
  (s.createItem ?? (() => Promise.resolve({})))({ list: o.value }).then((R) => {
11521
11526
  var O;
11522
11527
  o.value = [
@@ -11525,43 +11530,46 @@ const z_ = /* @__PURE__ */ fe((r, {
11525
11530
  ...R,
11526
11531
  __index: (((O = I.max(o.value, (p) => p.__index ?? -1)) == null ? void 0 : O.__index) ?? -1) + 1
11527
11532
  }
11528
- ], n.value = b;
11533
+ ], n.value = _;
11529
11534
  });
11530
11535
  }, v = s.itemMenus ?? [
11531
11536
  { content: "复制", code: "copy" },
11532
11537
  { content: "删除", code: "delete" }
11533
- ], x = (b) => {
11534
- var _, R, O, p, k, A;
11535
- return ((k = (p = (O = (R = (_ = b == null ? void 0 : b.parentElement) == null ? void 0 : _.parentElement) == null ? void 0 : R.parentElement) == null ? void 0 : O.parentElement) == null ? void 0 : p.parentElement) == null ? void 0 : k.parentElement) ?? ((A = a.value) == null ? void 0 : A.$el) ?? document.body;
11536
- }, g = U(() => s.forceRender || o.value.length <= 5), m = (b) => {
11538
+ ], x = (_) => {
11539
+ var b, R, O, p, k, A;
11540
+ return ((k = (p = (O = (R = (b = _ == null ? void 0 : _.parentElement) == null ? void 0 : b.parentElement) == null ? void 0 : R.parentElement) == null ? void 0 : O.parentElement) == null ? void 0 : p.parentElement) == null ? void 0 : k.parentElement) ?? ((A = a.value) == null ? void 0 : A.$el) ?? document.body;
11541
+ }, g = U(() => s.forceRender || o.value.length <= 5), m = (_) => {
11537
11542
  var R;
11538
- const _ = (R = o.value.find((O, p) => p === b)) == null ? void 0 : R.__index;
11539
- se(_) && (l.value = l.value.filter((O) => O !== _));
11543
+ const b = (R = o.value.find((O, p) => p === _)) == null ? void 0 : R.__index;
11544
+ se(b) && (l.value = l.value.filter((O) => O !== b));
11540
11545
  }, w = () => {
11541
11546
  Ni().then(() => {
11542
- var b, _;
11543
- m(n.value), (_ = (b = h.value[n.value]) == null ? void 0 : b.$form) == null || _.validate();
11547
+ var _, b;
11548
+ m(n.value), (b = (_ = h.value[n.value]) == null ? void 0 : _.$form) == null || b.validate();
11544
11549
  });
11545
- }, C = (b) => typeof s.tabLabel == "function" ? s.tabLabel(b) : s.tabLabel;
11550
+ }, C = (_, b) => {
11551
+ var R;
11552
+ return ((R = s.getTabLabel) == null ? void 0 : R.call(s, _, b)) ?? `${s.tabLabel} ${s.keepSerial ? b + 1 : (_.__index ?? 0) + 1}`;
11553
+ };
11546
11554
  Ue(
11547
11555
  () => o.value,
11548
11556
  () => {
11549
11557
  if (!s.keepSerial) {
11550
- const b = o.value.filter((_) => !se(_.__index));
11551
- b.length > 0 && b.forEach((_) => {
11558
+ const _ = o.value.filter((b) => !se(b.__index));
11559
+ _.length > 0 && _.forEach((b) => {
11552
11560
  var R;
11553
- _.__index = (((R = I.max(o.value, (O) => O.__index ?? -1)) == null ? void 0 : R.__index) ?? -1) + 1;
11561
+ b.__index = (((R = I.max(o.value, (O) => O.__index ?? -1)) == null ? void 0 : R.__index) ?? -1) + 1;
11554
11562
  });
11555
11563
  }
11556
11564
  },
11557
11565
  { immediate: !0 }
11558
11566
  );
11559
- const y = ({ key: b }, _, R) => {
11567
+ const y = ({ key: _ }, b, R) => {
11560
11568
  var O;
11561
11569
  if (s.menuHandler && I.isFunction(s.menuHandler))
11562
- s.menuHandler({ code: I.toString(b), data: _, index: R });
11570
+ s.menuHandler({ code: I.toString(_), data: b, index: R });
11563
11571
  else
11564
- switch (b) {
11572
+ switch (_) {
11565
11573
  case "delete":
11566
11574
  o.value = o.value.filter((p, k) => k !== R), Ni(() => {
11567
11575
  h.value = h.value.filter((p) => !!p), R <= n.value && n.value > 0 && n.value--;
@@ -11575,7 +11583,7 @@ const z_ = /* @__PURE__ */ fe((r, {
11575
11583
  o.value = [
11576
11584
  ...o.value,
11577
11585
  I.clone({
11578
- ...I.omit(_, ["id", "__index"]),
11586
+ ...I.omit(b, ["id", "__index"]),
11579
11587
  __index: (((O = I.max(o.value, (p) => p.__index ?? -1)) == null ? void 0 : O.__index) ?? -1) + 1
11580
11588
  })
11581
11589
  ];
@@ -11588,35 +11596,35 @@ const z_ = /* @__PURE__ */ fe((r, {
11588
11596
  const S = I.debounce(m, 50);
11589
11597
  vs(() => {
11590
11598
  var R;
11591
- const b = o.value.map((O, p) => l.value.includes(O.__index) ? p : void 0).filter(se), _ = (R = i.value) == null ? void 0 : R.$el;
11592
- _ && _.querySelectorAll(
11599
+ const _ = o.value.map((O, p) => l.value.includes(O.__index) ? p : void 0).filter(se), b = (R = i.value) == null ? void 0 : R.$el;
11600
+ b && b.querySelectorAll(
11593
11601
  ":scope >.ant-tabs-nav>.ant-tabs-nav-wrap>.ant-tabs-nav-list>.ant-tabs-tab>.ant-tabs-tab-btn"
11594
11602
  ).forEach((p, k) => {
11595
- b.includes(k) ? p.classList.add("p-error-group-tab") : p.classList.remove("p-error-group-tab");
11603
+ _.includes(k) ? p.classList.add("p-error-group-tab") : p.classList.remove("p-error-group-tab");
11596
11604
  });
11597
11605
  }), e({
11598
11606
  collapse: () => {
11599
- var b, _;
11600
- (_ = (b = a.value) == null ? void 0 : b.collapse) == null || _.call(b);
11607
+ var _, b;
11608
+ (b = (_ = a.value) == null ? void 0 : _.collapse) == null || b.call(_);
11601
11609
  },
11602
11610
  expand: () => {
11603
- var b, _;
11604
- (_ = (b = a.value) == null ? void 0 : b.expand) == null || _.call(b);
11611
+ var _, b;
11612
+ (b = (_ = a.value) == null ? void 0 : _.expand) == null || b.call(_);
11605
11613
  },
11606
11614
  activeKey: U(() => n.value),
11607
11615
  setActiveKey: d,
11608
11616
  validateAll: () => {
11609
- const b = g.value ? h.value.map((_) => {
11617
+ const _ = g.value ? h.value.map((b) => {
11610
11618
  var R;
11611
- return (R = _.$form) == null ? void 0 : R.validate();
11619
+ return (R = b.$form) == null ? void 0 : R.validate();
11612
11620
  }) : o.value.map(
11613
- (_) => {
11621
+ (b) => {
11614
11622
  var R;
11615
- return ((R = t(_, s.getFormSetting(_).rules)) == null ? void 0 : R.validate()) ?? Promise.resolve();
11623
+ return ((R = t(b, s.getFormSetting(b).rules)) == null ? void 0 : R.validate()) ?? Promise.resolve();
11616
11624
  }
11617
11625
  );
11618
- return Promise.allSettled(b).then((_) => {
11619
- if (l.value = _.map(
11626
+ return Promise.allSettled(_).then((b) => {
11627
+ if (l.value = b.map(
11620
11628
  (R, O) => {
11621
11629
  var p;
11622
11630
  return R.status === "rejected" && typeof ((p = o.value[O]) == null ? void 0 : p.__index) == "number" ? o.value[O].__index : void 0;
@@ -11625,55 +11633,55 @@ const z_ = /* @__PURE__ */ fe((r, {
11625
11633
  const R = l.value[0], O = o.value.findIndex((p) => p.__index === R);
11626
11634
  O !== -1 && (n.value = O);
11627
11635
  }
11628
- return l.value.length ? Promise.reject({ error_indexes: l.value, results: _ }) : Promise.resolve(_);
11636
+ return l.value.length ? Promise.reject({ error_indexes: l.value, results: b }) : Promise.resolve(b);
11629
11637
  });
11630
11638
  },
11631
- validate: async (b, _) => {
11639
+ validate: async (_, b) => {
11632
11640
  var O, p, k;
11633
- const R = o.value.findIndex((A) => A.__index === b);
11641
+ const R = o.value.findIndex((A) => A.__index === _);
11634
11642
  try {
11635
11643
  return await (g.value ? ((p = (O = h.value[R]) == null ? void 0 : O.$form) == null ? void 0 : p.validate()) ?? Promise.resolve() : ((k = t(
11636
11644
  o.value[R],
11637
11645
  s.getFormSetting(o.value[R]).rules
11638
- )) == null ? void 0 : k.validate()) ?? Promise.resolve()), l.value = l.value.filter((A) => A !== b), Promise.resolve();
11646
+ )) == null ? void 0 : k.validate()) ?? Promise.resolve()), l.value = l.value.filter((A) => A !== _), Promise.resolve();
11639
11647
  } catch (A) {
11640
- return !l.value.includes(b) && !_ && (l.value = [...l.value, b]), Promise.reject(A);
11648
+ return !l.value.includes(_) && !b && (l.value = [...l.value, _]), Promise.reject(A);
11641
11649
  }
11642
11650
  },
11643
- validateFields: async (b, _, R) => {
11651
+ validateFields: async (_, b, R) => {
11644
11652
  var V, Z;
11645
- const O = o.value.findIndex((P) => P.__index === b), k = s.getFormSetting(o.value[O]).rules, A = t(o.value[O], k);
11653
+ const O = o.value.findIndex((W) => W.__index === _), k = s.getFormSetting(o.value[O]).rules, A = t(o.value[O], k);
11646
11654
  try {
11647
- return await (g.value ? ((Z = (V = h.value[O]) == null ? void 0 : V.$form) == null ? void 0 : Z.validateFields(_)) ?? Promise.resolve() : Promise.allSettled(
11648
- _.map(
11649
- (P) => A.validateField(
11650
- P,
11651
- o.value[O][P],
11652
- k[P] ?? []
11655
+ return await (g.value ? ((Z = (V = h.value[O]) == null ? void 0 : V.$form) == null ? void 0 : Z.validateFields(b)) ?? Promise.resolve() : Promise.allSettled(
11656
+ b.map(
11657
+ (W) => A.validateField(
11658
+ W,
11659
+ o.value[O][W],
11660
+ k[W] ?? []
11653
11661
  )
11654
11662
  )
11655
11663
  )), Promise.resolve();
11656
- } catch (P) {
11657
- return !l.value.includes(b) && !R && (l.value = [...l.value, b]), Promise.reject(P);
11664
+ } catch (W) {
11665
+ return !l.value.includes(_) && !R && (l.value = [...l.value, _]), Promise.reject(W);
11658
11666
  }
11659
11667
  }
11660
11668
  });
11661
- const H = ic(), B = U(() => Object.keys(H).filter((b) => b.startsWith("group-")).map((b) => ({
11662
- original: b,
11663
- target: b.replace("group-", "")
11669
+ const H = ic(), B = U(() => Object.keys(H).filter((_) => _.startsWith("group-")).map((_) => ({
11670
+ original: _,
11671
+ target: _.replace("group-", "")
11664
11672
  })));
11665
- return (b, _) => {
11673
+ return (_, b) => {
11666
11674
  const R = ae("a-spin");
11667
11675
  return $(), z(e4, {
11668
11676
  ref_key: "rootRef",
11669
11677
  ref: a,
11670
- title: b.title,
11678
+ title: _.title,
11671
11679
  size: "small",
11672
- collapsible: b.collapsible,
11673
- "default-collapsed": b.defaultCollapsed
11680
+ collapsible: _.collapsible,
11681
+ "default-collapsed": _.defaultCollapsed
11674
11682
  }, nt({
11675
11683
  default: Y(() => [
11676
- b.loading ? ($(), z(R, {
11684
+ _.loading ? ($(), z(R, {
11677
11685
  key: 0,
11678
11686
  class: "w-full"
11679
11687
  })) : ($(), z(T(dc), {
@@ -11682,18 +11690,18 @@ const z_ = /* @__PURE__ */ fe((r, {
11682
11690
  ref: i,
11683
11691
  type: "editable-card",
11684
11692
  activeKey: n.value,
11685
- "onUpdate:activeKey": _[1] || (_[1] = (O) => n.value = O),
11693
+ "onUpdate:activeKey": b[1] || (b[1] = (O) => n.value = O),
11686
11694
  "hide-add": "",
11687
11695
  onChange: w
11688
11696
  }, {
11689
11697
  rightExtra: Y(() => [
11690
- bt(b.$slots, "rightExtra", {}, () => [
11691
- b.showAdd && o.value.length < u.value ? ($(), z(T(ge), {
11698
+ bt(_.$slots, "rightExtra", {}, () => [
11699
+ _.showAdd && o.value.length < u.value ? ($(), z(T(ge), {
11692
11700
  key: 0,
11693
11701
  type: "link",
11694
- onClick: _[0] || (_[0] = (O) => f(o.value.length))
11702
+ onClick: b[0] || (b[0] = (O) => f(o.value.length))
11695
11703
  }, {
11696
- default: Y(() => _[2] || (_[2] = [
11704
+ default: Y(() => b[2] || (b[2] = [
11697
11705
  _e(" + 新增 ", -1)
11698
11706
  ])),
11699
11707
  _: 1,
@@ -11704,13 +11712,13 @@ const z_ = /* @__PURE__ */ fe((r, {
11704
11712
  default: Y(() => [
11705
11713
  ($(!0), q(ne, null, le(o.value, (O, p) => ($(), z(T(uc), {
11706
11714
  key: p,
11707
- tab: `${C(O)} ${b.keepSerial ? p + 1 : (O.__index ?? 0) + 1}`,
11715
+ tab: C(O, p),
11708
11716
  "force-render": g.value
11709
11717
  }, {
11710
11718
  closeIcon: Y(() => {
11711
11719
  var k;
11712
11720
  return [
11713
- b.editAble && ((k = T(v)) != null && k.length) ? ($(), z(T(Eo), {
11721
+ _.editAble && ((k = T(v)) != null && k.length) ? ($(), z(T(Eo), {
11714
11722
  key: 0,
11715
11723
  "get-popup-container": x
11716
11724
  }, {
@@ -11750,7 +11758,7 @@ const z_ = /* @__PURE__ */ fe((r, {
11750
11758
  ref: h,
11751
11759
  key: p,
11752
11760
  source: O,
11753
- "get-form-setting": b.getFormSetting,
11761
+ "get-form-setting": _.getFormSetting,
11754
11762
  onFocusCapture: (k) => T(S)(p),
11755
11763
  onClickCapture: (k) => T(S)(p)
11756
11764
  }, null, 8, ["source", "get-form-setting", "onFocusCapture", "onClickCapture"]))
@@ -11766,7 +11774,7 @@ const z_ = /* @__PURE__ */ fe((r, {
11766
11774
  le(B.value, (O) => ({
11767
11775
  name: O.target,
11768
11776
  fn: Y(() => [
11769
- bt(b.$slots, O.original)
11777
+ bt(_.$slots, O.original)
11770
11778
  ])
11771
11779
  }))
11772
11780
  ]), 1032, ["title", "collapsible", "default-collapsed"]);