@vue-ui-kit/ant 1.8.6 → 1.9.0

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,4 +1,4 @@
1
- import { defineComponent as ee, createVNode as _, watch as Mr, computed as W, resolveComponent as H, openBlock as C, createElementBlock as G, mergeProps as O, unref as $, createSlots as Rr, withCtx as E, createBlock as P, createCommentVNode as X, createElementVNode as Te, createTextVNode as Pe, toRefs as or, ref as U, resolveDynamicComponent as cl, normalizeProps as Lt, Fragment as he, renderList as Oe, reactive as Tr, useAttrs as vl, onMounted as fl, onBeforeUnmount as pl, toDisplayString as nr, normalizeClass as gl, mergeModels as ml, useModel as hl, watchEffect as Bt, renderSlot as $l, nextTick as Kt } from "vue";
1
+ import { defineComponent as ee, createVNode as _, watch as Mr, computed as W, resolveComponent as H, openBlock as C, createElementBlock as L, mergeProps as O, unref as $, createSlots as Rr, withCtx as E, createBlock as P, createCommentVNode as X, createElementVNode as Te, createTextVNode as Pe, toRefs as or, ref as U, resolveDynamicComponent as cl, normalizeProps as Lt, Fragment as he, renderList as Oe, reactive as Tr, useAttrs as vl, onMounted as fl, onBeforeUnmount as pl, toDisplayString as nr, normalizeClass as gl, mergeModels as ml, useModel as hl, watchEffect as Bt, renderSlot as $l, nextTick as Kt } from "vue";
2
2
  import { Button as j, RadioGroup as qt, AutoComplete as On, Switch as dl, CheckboxGroup as Vt, TypographyParagraph as yl, TreeSelect as pt, Input as Zt, Textarea as Jt, InputNumber as Qt, Select as Xt, DatePicker as Ht, RangePicker as jt, Cascader as ea, Checkbox as _l, Mentions as Cl, Rate as Dl, Slider as Sl, TimePicker as ra, Dropdown as Pn, Form as yt, Row as An, message as be, Modal as xn, Spin as kl, Table as wl, Card as bl, Tabs as Tl, TabPane as El, Menu as Fl, MenuItem as Nl } from "ant-design-vue";
3
3
  import * as Il from "@ant-design/icons-vue";
4
4
  import { InfoCircleOutlined as ta, DownOutlined as Ml, MoreOutlined as Rl } from "@ant-design/icons-vue";
@@ -43,13 +43,13 @@ var ur = Ll, Bl = A, Kl = V, ql = ur;
43
43
  function Vl(e, r, a) {
44
44
  return e && (Bl(e) ? Kl : ql)(e, r, a);
45
45
  }
46
- var L = Vl;
46
+ var B = Vl;
47
47
  function Zl(e) {
48
48
  return function(r) {
49
49
  return typeof r === e;
50
50
  };
51
51
  }
52
- var Ve = Zl, Jl = Ve, Ql = Jl("function"), Z = Ql, Xl = L;
52
+ var Ve = Zl, Jl = Ve, Ql = Jl("function"), Z = Ql, Xl = B;
53
53
  function Hl(e, r) {
54
54
  var a = Object[e];
55
55
  return function(t) {
@@ -131,7 +131,7 @@ var su = function(e) {
131
131
  return aa ? aa.apply(Object, r) : na(e, r);
132
132
  }
133
133
  return e;
134
- }, oe = su, Yn = fe, cu = V, vu = L, fu = Z, pu = oe, ce = function() {
134
+ }, oe = su, Yn = fe, cu = V, vu = B, fu = Z, pu = oe, ce = function() {
135
135
  };
136
136
  function gu() {
137
137
  cu(arguments, function(e) {
@@ -177,7 +177,7 @@ function Su(e, r) {
177
177
  return Du(a) ? r : a[e];
178
178
  };
179
179
  }
180
- var Ze = Su, ku = L, wu = Z, bu = Ze;
180
+ var Ze = Su, ku = B, wu = Z, bu = Ze;
181
181
  function Tu(e, r, a) {
182
182
  var t = {};
183
183
  if (e)
@@ -197,7 +197,7 @@ var Je = Fu;
197
197
  function Nu(e) {
198
198
  return e !== "__proto__" && e !== "constructor";
199
199
  }
200
- var Bn = Nu, ia = A, oa = Je, Iu = Z, Mu = L, Ru = Bn;
200
+ var Bn = Nu, ia = A, oa = Je, Iu = Z, Mu = B, Ru = Bn;
201
201
  function Kn(e, r) {
202
202
  return oa(e) && oa(r) || ia(e) && ia(r) ? (Mu(r, function(a, t) {
203
203
  Ru(t) && (e[t] = Iu(r) ? a : Kn(e[t], a));
@@ -208,7 +208,7 @@ var Ou = function(e) {
208
208
  for (var r = arguments, a = r.length, t, n = 1; n < a; n++)
209
209
  t = r[n], t && Kn(e, t);
210
210
  return e;
211
- }, Pu = Ou, Au = L;
211
+ }, Pu = Ou, Au = B;
212
212
  function xu(e, r, a) {
213
213
  var t = [];
214
214
  if (e && arguments.length > 1) {
@@ -260,7 +260,7 @@ function Vu(e, r) {
260
260
  }
261
261
  return ua(e, r);
262
262
  }
263
- var Zn = Vu, sa = L, Zu = Qe, Ju = Z, Qu = Ze;
263
+ var Zn = Vu, sa = B, Zu = Qe, Ju = Z, Qu = Ze;
264
264
  function Xu(e, r, a) {
265
265
  var t = [];
266
266
  if (r) {
@@ -394,7 +394,7 @@ function Vs(e, r, a) {
394
394
  }
395
395
  return t;
396
396
  }
397
- var Ye = Vs, Zs = L;
397
+ var Ye = Vs, Zs = B;
398
398
  function Js(e, r, a) {
399
399
  var t = [];
400
400
  if (e && r) {
@@ -481,7 +481,7 @@ var ni = Tc, Ec = ni;
481
481
  function Fc() {
482
482
  return Ec(arguments);
483
483
  }
484
- var Nc = Fc, Ic = Xe, Mc = L;
484
+ var Nc = Fc, Ic = Xe, Mc = B;
485
485
  function Rc(e, r) {
486
486
  var a = {};
487
487
  return r = r || [], Mc(Ic(e), function(t, n) {
@@ -554,7 +554,7 @@ function iv(e, r, a) {
554
554
  }
555
555
  return e;
556
556
  }
557
- var si = iv, ov = li, lv = Z, uv = A, sv = L, cv = V, vv = ui, fv = si, pv = _e;
557
+ var si = iv, ov = li, lv = Z, uv = A, sv = B, cv = V, vv = ui, fv = si, pv = _e;
558
558
  function gv(e) {
559
559
  return function(r, a) {
560
560
  return a === e;
@@ -576,7 +576,7 @@ function mv(e, r, a) {
576
576
  }
577
577
  return e;
578
578
  }
579
- var ci = mv, hv = fe, ha = Bc, $v = wt, dv = Ct, yv = _e, mt = L, _v = ci, Cv = oe;
579
+ var ci = mv, hv = fe, ha = Bc, $v = wt, dv = Ct, yv = _e, mt = B, _v = ci, Cv = oe;
580
580
  function Dv(e, r) {
581
581
  mt(e, function(a) {
582
582
  a[r] && !a[r].length && _v(a, r);
@@ -584,10 +584,10 @@ function Dv(e, r) {
584
584
  }
585
585
  function Sv(e, r) {
586
586
  var a = Cv({}, hv.treeOptions, r), t = a.strict, n = a.key, i = a.parentKey, o = a.children, l = a.mapChildren, u = a.sortKey, s = a.reverse, v = a.data, c = [], f = {}, y = {}, g, F, w;
587
- return u && (e = $v(dv(e), u), s && (e = e.reverse())), mt(e, function(T) {
588
- g = T[n], y[g] && ha("warn", "Duplicate primary key=" + g), y[g] = !0;
589
- }), mt(e, function(T) {
590
- g = T[n], v ? (F = {}, F[v] = T) : F = T, w = T[i], f[g] = f[g] || [], F[n] = g, F[i] = w, g === w && (w = null, ha("warn", "Error infinite Loop. key=" + g + " parentKey=" + g)), f[w] = f[w] || [], f[w].push(F), F[o] = f[g], l && (F[l] = f[g]), (!t || t && yv(w)) && (y[w] || c.push(F));
587
+ return u && (e = $v(dv(e), u), s && (e = e.reverse())), mt(e, function(b) {
588
+ g = b[n], y[g] && ha("warn", "Duplicate primary key=" + g), y[g] = !0;
589
+ }), mt(e, function(b) {
590
+ g = b[n], v ? (F = {}, F[v] = b) : F = b, w = b[i], f[g] = f[g] || [], F[n] = g, F[i] = w, g === w && (w = null, ha("warn", "Error infinite Loop. key=" + g + " parentKey=" + g)), f[w] = f[w] || [], f[w].push(F), F[o] = f[g], l && (F[l] = f[g]), (!t || t && yv(w)) && (y[w] || c.push(F));
591
591
  }), t && Dv(e, o), c;
592
592
  }
593
593
  var kv = Sv, wv = fe, bv = V, Tv = oe;
@@ -620,7 +620,7 @@ function fi(e, r, a, t, n, i, o, l) {
620
620
  }
621
621
  }
622
622
  }
623
- var Mv = Iv(fi), Rv = Mv, Ov = Ar, Pv = L;
623
+ var Mv = Iv(fi), Rv = Mv, Ov = Ar, Pv = B;
624
624
  function pi(e, r, a, t, n, i, o, l) {
625
625
  var u, s;
626
626
  Pv(r, function(v, c) {
@@ -643,9 +643,9 @@ function Gv(e, r, a, t) {
643
643
  }
644
644
  var Lv = Gv, Bv = Ar, Kv = V, qv = oe;
645
645
  function hi(e, r, a, t, n, i, o, l, u) {
646
- var s, v, c, f, y, g = [], F = u.original, w = u.data, T = u.mapChildren || l, R = u.isEvery;
646
+ var s, v, c, f, y, g = [], F = u.original, w = u.data, b = u.mapChildren || l, R = u.isEvery;
647
647
  return Kv(a, function(d, S) {
648
- s = i.concat(["" + S]), v = o.concat([d]), f = e && !R || t.call(n, d, S, a, s, r, v), y = l && d[l], f || y ? (F ? c = d : (c = qv({}, d), w && (c[w] = d)), c[T] = hi(f, d, d[l], t, n, s, v, l, u), (f || c[T].length) && g.push(c)) : f && g.push(c);
648
+ s = i.concat(["" + S]), v = o.concat([d]), f = e && !R || t.call(n, d, S, a, s, r, v), y = l && d[l], f || y ? (F ? c = d : (c = qv({}, d), w && (c[w] = d)), c[b] = hi(f, d, d[l], t, n, s, v, l, u), (f || c[b].length) && g.push(c)) : f && g.push(c);
649
649
  }), g;
650
650
  }
651
651
  var Vv = Bv(function(e, r, a, t, n, i, o, l) {
@@ -812,7 +812,7 @@ function Af(e, r) {
812
812
  return -1;
813
813
  };
814
814
  }
815
- var bi = Af, xf = bi, Wf = $i, Uf = xf("indexOf", Wf), Yf = Uf, zf = bi, Gf = di, Lf = zf("lastIndexOf", Gf), Ti = Lf, Bf = A, Kf = Ce, qf = L;
815
+ var bi = Af, xf = bi, Wf = $i, Uf = xf("indexOf", Wf), Yf = Uf, zf = bi, Gf = di, Lf = zf("lastIndexOf", Gf), Ti = Lf, Bf = A, Kf = Ce, qf = B;
816
816
  function Vf(e) {
817
817
  var r = 0;
818
818
  return Kf(e) || Bf(e) ? e.length : (qf(e, function() {
@@ -967,7 +967,7 @@ var Lg = Gg, Bg = _e;
967
967
  function Kg(e) {
968
968
  return Bg(e) ? "" : JSON.stringify(e);
969
969
  }
970
- var qg = Kg, Vg = _t, Zg = Vg("entries", 2), Jg = Zg, Qg = Z, Xg = A, Hg = L, jg = Et;
970
+ var qg = Kg, Vg = _t, Zg = Vg("entries", 2), Jg = Zg, Qg = Z, Xg = A, Hg = B, jg = Et;
971
971
  function em(e, r) {
972
972
  return function(a, t) {
973
973
  var n, i, o = {}, l = [], u = this, s = arguments, v = s.length;
@@ -1036,7 +1036,7 @@ function Cm(e, r, a) {
1036
1036
  function Ra(e) {
1037
1037
  return e === "__proto__" || e === "constructor" || e === "prototype";
1038
1038
  }
1039
- var Dm = Cm, Sm = Mi, km = Pr, wm = Z, bm = Ze, Tm = L;
1039
+ var Dm = Cm, Sm = Mi, km = Pr, wm = Z, bm = Ze, Tm = B;
1040
1040
  function Em(e) {
1041
1041
  return function() {
1042
1042
  return Sm(e);
@@ -1165,7 +1165,7 @@ var Zi = Uh, Yh = Zi, Za = Ue;
1165
1165
  function zh(e, r) {
1166
1166
  return Yh(Za(e), Za(r));
1167
1167
  }
1168
- var Gh = zh, tt = Vi, Lh = Z, Bh = A, Kh = L, qh = sr;
1168
+ var Gh = zh, tt = Vi, Lh = Z, Bh = A, Kh = B, qh = sr;
1169
1169
  function Vh(e, r, a) {
1170
1170
  var t = 0;
1171
1171
  return Kh(e && e.length > 2 && Bh(e) ? e.sort() : e, r ? Lh(r) ? function() {
@@ -1277,15 +1277,15 @@ function J1(e, r) {
1277
1277
  if (an(g, n))
1278
1278
  return 1;
1279
1279
  }
1280
- var F = y + _r * 6, w = new Date(v), T = 1;
1280
+ var F = y + _r * 6, w = new Date(v), b = 1;
1281
1281
  if (r(f, w)) {
1282
- for (T = 0, g = u; g < F; g += _r)
1282
+ for (b = 0, g = u; g < F; g += _r)
1283
1283
  if (an(g, n)) {
1284
- T++;
1284
+ b++;
1285
1285
  break;
1286
1286
  }
1287
1287
  }
1288
- return Math.floor((s - y) / z1) + T;
1288
+ return Math.floor((s - y) / z1) + b;
1289
1289
  }
1290
1290
  return NaN;
1291
1291
  };
@@ -1341,7 +1341,7 @@ function w$(e, r, a) {
1341
1341
  return Se(e, o, d, (k >= 0 ? "+" : "-") + se(k, 2, "0") + (S === 1 ? ":" : "") + "00");
1342
1342
  }, w = function(d, S) {
1343
1343
  return se(Se(e, o, d, y$(e, (a ? a.firstDay : null) || tr.firstDayOfWeek)), S, "0");
1344
- }, T = function(d, S) {
1344
+ }, b = function(d, S) {
1345
1345
  return se(Se(e, o, d, _$(e)), S, "0");
1346
1346
  }, R = {
1347
1347
  yyyy: l,
@@ -1364,8 +1364,8 @@ function w$(e, r, a) {
1364
1364
  Z: F,
1365
1365
  WW: w,
1366
1366
  W: w,
1367
- DDD: T,
1368
- D: T,
1367
+ DDD: b,
1368
+ D: b,
1369
1369
  a: function(d) {
1370
1370
  return Se(e, o, d, i);
1371
1371
  },
@@ -1467,7 +1467,7 @@ function Cd(e) {
1467
1467
  });
1468
1468
  };
1469
1469
  }
1470
- var fo = Cd, Dd = vo, Sd = fo, kd = Sd(Dd), wd = kd, gn = vo, bd = fo, Td = L, po = {};
1470
+ var fo = Cd, Dd = vo, Sd = fo, kd = Sd(Dd), wd = kd, gn = vo, bd = fo, Td = B, po = {};
1471
1471
  Td(gn, function(e, r) {
1472
1472
  po[gn[r]] = r;
1473
1473
  });
@@ -1612,7 +1612,7 @@ function Cy(e) {
1612
1612
  r = t.split("="), a[$n(r[0])] = $n(r[1] || "");
1613
1613
  }), a;
1614
1614
  }
1615
- var yo = Cy, Dy = encodeURIComponent, _o = Dy, Nr = _o, Co = L, Do = A, So = ye, Sy = pe, ko = Je;
1615
+ var yo = Cy, Dy = encodeURIComponent, _o = Dy, Nr = _o, Co = B, Do = A, So = ye, Sy = pe, ko = Je;
1616
1616
  function wo(e, r, a) {
1617
1617
  var t, n = [];
1618
1618
  return Co(e, function(i, o) {
@@ -1776,7 +1776,7 @@ function jy() {
1776
1776
  }
1777
1777
  return o;
1778
1778
  }
1779
- var e0 = jy, Io = hu, Nn = oe, r0 = ur, t0 = Ln, a0 = Eu, n0 = Pu, i0 = We, o0 = qn, l0 = Vn, u0 = Zn, s0 = V, c0 = Dt, v0 = Jn, f0 = as, p0 = St, g0 = Os, m0 = wt, h0 = jn, $0 = Ls, d0 = Ye, y0 = Qs, _0 = js, C0 = Qe, D0 = tc, S0 = oc, k0 = sc, w0 = fc, b0 = mc, T0 = Nc, E0 = ni, F0 = Oc, N0 = xc, I0 = ri, M0 = Gc, R0 = kv, O0 = Fv, P0 = Rv, A0 = gi, x0 = Yv, W0 = Lv, U0 = Zv, Y0 = $i, z0 = di, G0 = ie, L0 = A, B0 = ye, K0 = rf, q0 = pe, V0 = Z, Z0 = Pr, J0 = Ce, Q0 = Je, X0 = wi, H0 = Fe, j0 = _e, e_ = L, r_ = Ef, t_ = Mf, a_ = Yf, n_ = Ti, i_ = de, o_ = Xe, l_ = Ct, u_ = Ei, s_ = ui, c_ = ci, v_ = si, f_ = Qf, p_ = np, g_ = Fi, m_ = Ni, h_ = ge, $_ = bt, d_ = Ii, y_ = fp, __ = Mi, C_ = Ri, D_ = yp, S_ = Sp, k_ = Ep, w_ = Rp, b_ = xp, T_ = zp, E_ = Kp, F_ = Jp, N_ = jp, I_ = _g, M_ = Ui, R_ = kg, O_ = Mg, P_ = Ag, A_ = Et, x_ = Ug, W_ = Lg, U_ = qg, Y_ = Jg, z_ = am, G_ = om, L_ = sm, B_ = fm, K_ = hm, q_ = sr, V_ = Dm, Z_ = zi, J_ = Rm, Q_ = Gi, X_ = Ym, H_ = Hn, j_ = ai, eC = Lm, rC = kh, tC = Nt, aC = Ki, nC = qi, iC = It, oC = Eh, lC = Ue, uC = Ne, sC = Oh, cC = xh, vC = Mt, fC = Gh, pC = Ji, gC = Hh, mC = zr, hC = S1, $C = mr, dC = Hi, yC = J, _C = oo, CC = lo, DC = O$, SC = te, kC = A$, wC = ro, bC = no, TC = ao, EC = U$, FC = K$, NC = H$, IC = rd, MC = od, RC = io, OC = cd, PC = co, AC = uo, xC = so, WC = wd, UC = Fd, YC = Pd, zC = Wd, GC = zd, LC = Bd, BC = ho, KC = Hd, In = Q, qC = ey, VC = Ze, ZC = ty, JC = ny, QC = ly, XC = cy, HC = fy, jC = gy, eD = $y, rD = yo, tD = wy, aD = To, nD = Py, iD = Wy, oD = Jy, lD = e0;
1779
+ var e0 = jy, Io = hu, Nn = oe, r0 = ur, t0 = Ln, a0 = Eu, n0 = Pu, i0 = We, o0 = qn, l0 = Vn, u0 = Zn, s0 = V, c0 = Dt, v0 = Jn, f0 = as, p0 = St, g0 = Os, m0 = wt, h0 = jn, $0 = Ls, d0 = Ye, y0 = Qs, _0 = js, C0 = Qe, D0 = tc, S0 = oc, k0 = sc, w0 = fc, b0 = mc, T0 = Nc, E0 = ni, F0 = Oc, N0 = xc, I0 = ri, M0 = Gc, R0 = kv, O0 = Fv, P0 = Rv, A0 = gi, x0 = Yv, W0 = Lv, U0 = Zv, Y0 = $i, z0 = di, G0 = ie, L0 = A, B0 = ye, K0 = rf, q0 = pe, V0 = Z, Z0 = Pr, J0 = Ce, Q0 = Je, X0 = wi, H0 = Fe, j0 = _e, e_ = B, r_ = Ef, t_ = Mf, a_ = Yf, n_ = Ti, i_ = de, o_ = Xe, l_ = Ct, u_ = Ei, s_ = ui, c_ = ci, v_ = si, f_ = Qf, p_ = np, g_ = Fi, m_ = Ni, h_ = ge, $_ = bt, d_ = Ii, y_ = fp, __ = Mi, C_ = Ri, D_ = yp, S_ = Sp, k_ = Ep, w_ = Rp, b_ = xp, T_ = zp, E_ = Kp, F_ = Jp, N_ = jp, I_ = _g, M_ = Ui, R_ = kg, O_ = Mg, P_ = Ag, A_ = Et, x_ = Ug, W_ = Lg, U_ = qg, Y_ = Jg, z_ = am, G_ = om, L_ = sm, B_ = fm, K_ = hm, q_ = sr, V_ = Dm, Z_ = zi, J_ = Rm, Q_ = Gi, X_ = Ym, H_ = Hn, j_ = ai, eC = Lm, rC = kh, tC = Nt, aC = Ki, nC = qi, iC = It, oC = Eh, lC = Ue, uC = Ne, sC = Oh, cC = xh, vC = Mt, fC = Gh, pC = Ji, gC = Hh, mC = zr, hC = S1, $C = mr, dC = Hi, yC = J, _C = oo, CC = lo, DC = O$, SC = te, kC = A$, wC = ro, bC = no, TC = ao, EC = U$, FC = K$, NC = H$, IC = rd, MC = od, RC = io, OC = cd, PC = co, AC = uo, xC = so, WC = wd, UC = Fd, YC = Pd, zC = Wd, GC = zd, LC = Bd, BC = ho, KC = Hd, In = Q, qC = ey, VC = Ze, ZC = ty, JC = ny, QC = ly, XC = cy, HC = fy, jC = gy, eD = $y, rD = yo, tD = wy, aD = To, nD = Py, iD = Wy, oD = Jy, lD = e0;
1780
1780
  Nn(Io, {
1781
1781
  // object
1782
1782
  assign: Nn,
@@ -1960,11 +1960,11 @@ Nn(Io, {
1960
1960
  browse: lD,
1961
1961
  cookie: oD
1962
1962
  });
1963
- var m = Io, K = [];
1963
+ var m = Io, q = [];
1964
1964
  for (var vt = 0; vt < 256; ++vt)
1965
- K.push((vt + 256).toString(16).slice(1));
1965
+ q.push((vt + 256).toString(16).slice(1));
1966
1966
  function uD(e, r = 0) {
1967
- return (K[e[r + 0]] + K[e[r + 1]] + K[e[r + 2]] + K[e[r + 3]] + "-" + K[e[r + 4]] + K[e[r + 5]] + "-" + K[e[r + 6]] + K[e[r + 7]] + "-" + K[e[r + 8]] + K[e[r + 9]] + "-" + K[e[r + 10]] + K[e[r + 11]] + K[e[r + 12]] + K[e[r + 13]] + K[e[r + 14]] + K[e[r + 15]]).toLowerCase();
1967
+ return (q[e[r + 0]] + q[e[r + 1]] + q[e[r + 2]] + q[e[r + 3]] + "-" + q[e[r + 4]] + q[e[r + 5]] + "-" + q[e[r + 6]] + q[e[r + 7]] + "-" + q[e[r + 8]] + q[e[r + 9]] + "-" + q[e[r + 10]] + q[e[r + 11]] + q[e[r + 12]] + q[e[r + 13]] + q[e[r + 14]] + q[e[r + 15]]).toLowerCase();
1968
1968
  }
1969
1969
  var wr, sD = new Uint8Array(16);
1970
1970
  function cD() {
@@ -1986,18 +1986,10 @@ function xe(e, r, a) {
1986
1986
  const fD = (e) => e == null || e === "", z = (e) => !fD(e), $t = (e) => e == null, qe = (e) => !$t(e), pD = (e) => function(r, a, t, n) {
1987
1987
  const i = t || {}, o = i.children || "children";
1988
1988
  return e(null, r, a, n, [], [], o, i);
1989
- }, Mo = (e, r, a, t, n, i, o, l) => {
1990
- let u, s;
1991
- r.forEach((v, c) => {
1992
- u = n.concat(["" + c]), s = i.concat([v]), a.call(t, v, c, r, u, e, s), v && o && (u.push(o), Mo(
1993
- v,
1994
- v[o] || [],
1995
- a,
1996
- t,
1997
- u,
1998
- s,
1999
- o
2000
- ));
1989
+ }, Mo = (e, r, a, t, n, i, o) => {
1990
+ let l, u;
1991
+ r.forEach((s, v) => {
1992
+ l = n.concat(["" + v]), u = i.concat([s]), a.call(t, s, v, r, l, e, u), s && o && (l.push(o), Mo(s, s[o] || [], a, t, l, u, o));
2001
1993
  });
2002
1994
  }, Er = pD(Mo), Ro = {
2003
1995
  form: {
@@ -2235,13 +2227,13 @@ const Rt = (e) => {
2235
2227
  });
2236
2228
  return (c, f) => {
2237
2229
  const y = H("a-form-item-rest"), g = H("a-table"), F = H("a-button");
2238
- return C(), G("div", null, [
2230
+ return C(), L("div", null, [
2239
2231
  _(g, O({ "data-source": o.value }, n.value, {
2240
2232
  columns: l.value.map((w) => $(Rt)(w))
2241
2233
  }), Rr({ _: 2 }, [
2242
2234
  v.value.length > 0 ? {
2243
2235
  name: "bodyCell",
2244
- fn: E(({ column: w, record: T, index: R }) => [
2236
+ fn: E(({ column: w, record: b, index: R }) => [
2245
2237
  _(y, null, {
2246
2238
  default: E(() => [
2247
2239
  v.value.some((d) => w.key && d.field === w.key) ? (C(), P($(Po), {
@@ -2249,7 +2241,7 @@ const Rt = (e) => {
2249
2241
  "row-index": R,
2250
2242
  "default-handler": {},
2251
2243
  column: v.value.find((d) => w.key && d.field === w.key),
2252
- row: T,
2244
+ row: b,
2253
2245
  "table-data": o.value
2254
2246
  }, null, 8, ["row-index", "column", "row", "table-data"])) : X("", !0)
2255
2247
  ]),
@@ -2936,7 +2928,7 @@ const Rt = (e) => {
2936
2928
  renderItemContent: r,
2937
2929
  renderDefault: a
2938
2930
  }) => {
2939
- dt.hasOwnProperty(e) && console.warn(`render ${e} already exists`), dt[e] = {
2931
+ dt.hasOwnProperty(e) && console.warn(`render ${e} already exists, you are trying to override it`), dt[e] = {
2940
2932
  renderItemContent: r,
2941
2933
  renderDefault: a
2942
2934
  };
@@ -3037,9 +3029,9 @@ const Rt = (e) => {
3037
3029
  "wrapper-col": c.item.wrapperCol ?? (c.item.title ? void 0 : { span: 24 })
3038
3030
  }, $(m.omit)(c.item, ["field", "title", "span", "col", "wrapperCol", "itemRender", "forceRequired", "tooltip"])), Rr({
3039
3031
  default: E(() => {
3040
- var T, R;
3032
+ var b, R;
3041
3033
  return [
3042
- (T = c.item.slots) != null && T.default ? (C(), P($(bD), {
3034
+ (b = c.item.slots) != null && b.default ? (C(), P($(bD), {
3043
3035
  key: `_sl_${c.item.field ?? "_"}_${i.value}`,
3044
3036
  "form-data": c.formData,
3045
3037
  item: c.item,
@@ -3052,7 +3044,7 @@ const Rt = (e) => {
3052
3044
  "render-form-params": { data: c.formData, field: c.item.field },
3053
3045
  onDelayTrigger: o,
3054
3046
  onTrigger: l
3055
- }, null, 8, ["default-handler", "item-render", "render-form-params"])) : (C(), G("span", TD))
3047
+ }, null, 8, ["default-handler", "item-render", "render-form-params"])) : (C(), L("span", TD))
3056
3048
  ];
3057
3049
  }),
3058
3050
  _: 2
@@ -3143,29 +3135,29 @@ const Rt = (e) => {
3143
3135
  if (t.customReset)
3144
3136
  t.customReset();
3145
3137
  else {
3146
- const T = {};
3138
+ const b = {};
3147
3139
  Er(l.value, (R) => {
3148
- R.field && R.itemRender ? qe(R.itemRender.defaultValue) ? T[R.field] = R.itemRender.defaultValue : T[R.field] = void 0 : R.field && R.slots && (qe(R.slots.defaultValue) ? T[R.field] = R.slots.defaultValue : T[R.field] = void 0);
3149
- }), Object.assign(u.value, T);
3140
+ R.field && R.itemRender ? qe(R.itemRender.defaultValue) ? b[R.field] = R.itemRender.defaultValue : b[R.field] = void 0 : R.field && R.slots && (qe(R.slots.defaultValue) ? b[R.field] = R.slots.defaultValue : b[R.field] = void 0);
3141
+ }), Object.assign(u.value, b);
3150
3142
  }
3151
3143
  n("reset");
3152
3144
  }, g = W(() => ({
3153
3145
  ...m.omit(o.value, ["items", "data", "model", "labelCol", "wrapperCol"]),
3154
3146
  labelCol: o.value.labelCol,
3155
3147
  wrapperCol: o.value.wrapperCol
3156
- })), F = (T) => {
3148
+ })), F = (b) => {
3157
3149
  var R;
3158
- T && ((R = v.value) == null || R.validateFields(T));
3159
- }, w = (T) => {
3160
- F(T);
3150
+ b && ((R = v.value) == null || R.validateFields(b));
3151
+ }, w = (b) => {
3152
+ F(b);
3161
3153
  };
3162
3154
  return r({
3163
3155
  reset: f,
3164
3156
  $form: W(() => v.value)
3165
- }), (T, R) => $(l).some((d) => {
3157
+ }), (b, R) => $(l).some((d) => {
3166
3158
  var S;
3167
3159
  return d.field && d.itemRender || ((S = d.slots) == null ? void 0 : S.default);
3168
- }) ? (C(), G("div", FD, [
3160
+ }) ? (C(), L("div", FD, [
3169
3161
  (C(), P($(yt), O({
3170
3162
  key: c.value,
3171
3163
  ref_key: "formEl",
@@ -3175,7 +3167,7 @@ const Rt = (e) => {
3175
3167
  default: E(() => [
3176
3168
  _($(An), { gutter: [6, 12] }, {
3177
3169
  default: E(() => [
3178
- (C(!0), G(he, null, Oe($(l), (d, S) => (C(), P(Yo, {
3170
+ (C(!0), L(he, null, Oe($(l), (d, S) => (C(), P(Yo, {
3179
3171
  key: `_col_${S}`,
3180
3172
  "form-data": $(u),
3181
3173
  item: d,
@@ -3269,7 +3261,7 @@ const Go = be.warning, MD = { key: 0 }, RD = {
3269
3261
  m.isObject(p) ? Object.keys(p).forEach((h) => {
3270
3262
  g[h] = p[h];
3271
3263
  }) : m.isBoolean(p) && (g.form = p, g.table = p, g.toolbar = p);
3272
- }, w = U(), T = U(), R = U(500), d = U([]), S = U([]), k = (p) => {
3264
+ }, w = U(), b = U(), R = U(500), d = U([]), S = U([]), k = (p) => {
3273
3265
  const { ajax: h } = v.value;
3274
3266
  switch (p) {
3275
3267
  case "multiDelete":
@@ -3282,17 +3274,17 @@ const Go = be.warning, MD = { key: 0 }, RD = {
3282
3274
  }).catch(() => {
3283
3275
  be.error("删除失败");
3284
3276
  }).finally(() => {
3285
- g.table = !1, g.toolbar = !1, q.multiDelete = !1;
3277
+ g.table = !1, g.toolbar = !1, Y.multiDelete = !1;
3286
3278
  });
3287
3279
  }) : be.warn("请选择要删除的数据"));
3288
3280
  break;
3289
3281
  }
3290
- }, b = W(() => {
3282
+ }, T = W(() => {
3291
3283
  const p = [];
3292
3284
  return Er(u.value ?? [], (h) => {
3293
3285
  h.slots && h.slots.title && (h.field || (h.field = "__holder__" + p.length), p.push(h));
3294
3286
  }), p;
3295
- }), N = U(), I = U(), M = U(xe()), Y = U(xe()), q = Tr(
3287
+ }), N = U(), I = U(), M = U(xe()), G = U(xe()), Y = Tr(
3296
3288
  [
3297
3289
  ...(((Wt = (xt = t.toolbarConfig) == null ? void 0 : xt.buttons) == null ? void 0 : Wt.map((p) => p.code)) ?? []).filter((p) => p),
3298
3290
  ...(((Yt = (Ut = t.toolbarConfig) == null ? void 0 : Ut.tools) == null ? void 0 : Yt.map((p) => p.code)) ?? []).filter((p) => p)
@@ -3301,9 +3293,9 @@ const Go = be.warning, MD = { key: 0 }, RD = {
3301
3293
  {}
3302
3294
  )
3303
3295
  ), ze = (p, h) => {
3304
- q[p] = h;
3296
+ Y[p] = h;
3305
3297
  }, Ko = () => {
3306
- Y.value = xe();
3298
+ G.value = xe();
3307
3299
  }, qo = m.debounce(Ko, 100), Lr = W(() => {
3308
3300
  const p = [];
3309
3301
  return Er(u.value ?? [], (h) => {
@@ -3362,11 +3354,11 @@ const Go = be.warning, MD = { key: 0 }, RD = {
3362
3354
  form: Ge.value,
3363
3355
  page: De
3364
3356
  }).then((x) => {
3365
- const { list: ae, total: Ie, result: B, message: ue } = jo(
3357
+ const { list: ae, total: Ie, result: K, message: ue } = jo(
3366
3358
  x,
3367
3359
  v.value.response
3368
3360
  );
3369
- ae ? (me.value = ae, je.value++) : B ? (me.value = B, Ot.value = Ie ?? B.length, je.value++) : (me.value = [], je.value++, ue && be.warn(ue)), p(me.value);
3361
+ ae ? (me.value = ae, je.value++) : K ? (me.value = K, Ot.value = Ie ?? K.length, je.value++) : (me.value = [], je.value++, ue && be.warn(ue)), p(me.value);
3370
3362
  }).catch((x) => {
3371
3363
  console.error("fetchData error", x), p([]);
3372
3364
  }).finally(() => {
@@ -3398,7 +3390,7 @@ const Go = be.warning, MD = { key: 0 }, RD = {
3398
3390
  selectedRowKeys: d.value,
3399
3391
  onChange: (p) => {
3400
3392
  d.value = p;
3401
- const h = t.rowKey ?? "id", x = S.value.map((B) => B[h]), Ie = p.filter((B) => !x.includes(B)).map((B) => me.value.find((ue) => ue[h] === B)).filter((B) => !!B);
3393
+ const h = t.rowKey ?? "id", x = S.value.map((K) => K[h]), Ie = p.filter((K) => !x.includes(K)).map((K) => me.value.find((ue) => ue[h] === K)).filter((K) => !!K);
3402
3394
  S.value = [...S.value, ...Ie];
3403
3395
  },
3404
3396
  getCheckboxProps: f.value.getCheckboxProps
@@ -3416,8 +3408,8 @@ const Go = be.warning, MD = { key: 0 }, RD = {
3416
3408
  { deep: !0 }
3417
3409
  );
3418
3410
  const er = () => {
3419
- var B, ue;
3420
- const p = (B = w.value) == null ? void 0 : B.parentElement, h = p ? window.getComputedStyle(p).height : "0px", x = T.value ? window.getComputedStyle(T.value).height : "0px", ae = x.includes("px") ? m.toNumber(x.replace("px", "")) : 0, Ie = (ue = f.value) != null && ue.showCount ? 22 : 0;
3411
+ var K, ue;
3412
+ const p = (K = w.value) == null ? void 0 : K.parentElement, h = p ? window.getComputedStyle(p).height : "0px", x = b.value ? window.getComputedStyle(b.value).height : "0px", ae = x.includes("px") ? m.toNumber(x.replace("px", "")) : 0, Ie = (ue = f.value) != null && ue.showCount ? 22 : 0;
3421
3413
  R.value = t.renderY ?? m.toNumber(h.replace("px", "")) - i.value.fitHeight - (t.toolbarConfig ? 30 : 0) - ae - Ie, At.value = m.toNumber(h.replace("px", "")) > 600;
3422
3414
  };
3423
3415
  r({
@@ -3456,19 +3448,19 @@ const Go = be.warning, MD = { key: 0 }, RD = {
3456
3448
  return pl(() => {
3457
3449
  window.removeEventListener("resize", er), Qr.disconnect();
3458
3450
  }), (p, h) => {
3459
- var B, ue, Gt;
3451
+ var K, ue, Gt;
3460
3452
  const x = H("a-menu-item"), ae = H("a-menu"), Ie = H("a-dropdown");
3461
- return C(), G("div", O({
3453
+ return C(), L("div", O({
3462
3454
  ref_key: "boxEl",
3463
3455
  ref: w,
3464
3456
  class: "h-full p-wrapper flex flex-col gap-8px overflow-y-auto"
3465
3457
  }, $(Vo)), [
3466
- Br.value === "bad" ? (C(), G("div", MD, "请检查配置")) : (C(), G(he, { key: 1 }, [
3467
- (ue = (B = $(o)) == null ? void 0 : B.items) != null && ue.some((D) => D.field && D.itemRender) ? (C(), G("div", {
3458
+ Br.value === "bad" ? (C(), L("div", MD, "请检查配置")) : (C(), L(he, { key: 1 }, [
3459
+ (ue = (K = $(o)) == null ? void 0 : K.items) != null && ue.some((D) => D.field && D.itemRender) ? (C(), L("div", {
3468
3460
  key: 0,
3469
3461
  class: "p-pane p-form-wrapper",
3470
3462
  ref_key: "pFormWrapper",
3471
- ref: T
3463
+ ref: b
3472
3464
  }, [
3473
3465
  _($(kl), {
3474
3466
  spinning: g.form
@@ -3483,7 +3475,7 @@ const Go = be.warning, MD = { key: 0 }, RD = {
3483
3475
  default: E(() => [
3484
3476
  _($(An), { gutter: [6, 12] }, {
3485
3477
  default: E(() => [
3486
- (C(!0), G(he, null, Oe($(o).items, (D, ne) => (C(), P(Yo, {
3478
+ (C(!0), L(he, null, Oe($(o).items, (D, ne) => (C(), P(Yo, {
3487
3479
  key: `_col_${ne}`,
3488
3480
  "form-data": Ge.value,
3489
3481
  item: D,
@@ -3499,14 +3491,14 @@ const Go = be.warning, MD = { key: 0 }, RD = {
3499
3491
  _: 1
3500
3492
  }, 8, ["spinning"])
3501
3493
  ], 512)) : X("", !0),
3502
- $(s) ? (C(), G("div", RD, [
3494
+ $(s) ? (C(), L("div", RD, [
3503
3495
  Te("div", OD, [
3504
- $(s).buttons && $(s).buttons.length > 0 ? (C(!0), G(he, { key: 0 }, Oe($(s).buttons, (D, ne) => (C(), G(he, { key: ne }, [
3496
+ $(s).buttons && $(s).buttons.length > 0 ? (C(!0), L(he, { key: 0 }, Oe($(s).buttons, (D, ne) => (C(), L(he, { key: ne }, [
3505
3497
  D.dropdowns && D.dropdowns.length ? (C(), P(Ie, { key: 0 }, {
3506
3498
  overlay: E(() => [
3507
3499
  _(ae, { onClick: Jo }, {
3508
3500
  default: E(() => [
3509
- (C(!0), G(he, null, Oe(D.dropdowns, (Me) => (C(), P(x, {
3501
+ (C(!0), L(he, null, Oe(D.dropdowns, (Me) => (C(), P(x, {
3510
3502
  key: Me.code
3511
3503
  }, {
3512
3504
  default: E(() => [
@@ -3523,7 +3515,7 @@ const Go = be.warning, MD = { key: 0 }, RD = {
3523
3515
  type: D.type,
3524
3516
  size: D.size ?? "middle",
3525
3517
  disabled: $(s).disabled || D.disabled,
3526
- loading: g.toolbar || !!D.code && q[D.code]
3518
+ loading: g.toolbar || !!D.code && Y[D.code]
3527
3519
  }, {
3528
3520
  default: E(() => [
3529
3521
  D.icon ? (C(), P($($e), {
@@ -3542,7 +3534,7 @@ const Go = be.warning, MD = { key: 0 }, RD = {
3542
3534
  type: D.type,
3543
3535
  size: D.size ?? "middle",
3544
3536
  disabled: $(s).disabled || D.disabled,
3545
- loading: g.toolbar || !!D.code && q[D.code],
3537
+ loading: g.toolbar || !!D.code && Y[D.code],
3546
3538
  onClick: (Me) => $(Pt)(D.code)
3547
3539
  }, {
3548
3540
  default: E(() => [
@@ -3553,17 +3545,17 @@ const Go = be.warning, MD = { key: 0 }, RD = {
3553
3545
  Pe(" " + nr(D.content), 1)
3554
3546
  ]),
3555
3547
  _: 2
3556
- }, 1032, ["type", "size", "disabled", "loading", "onClick"])) : (C(), G("div", PD))
3548
+ }, 1032, ["type", "size", "disabled", "loading", "onClick"])) : (C(), L("div", PD))
3557
3549
  ], 64))), 128)) : X("", !0)
3558
3550
  ]),
3559
3551
  Te("span", AD, [
3560
- $(s).tools && $(s).tools.length > 0 ? (C(!0), G(he, { key: 0 }, Oe($(s).tools, (D, ne) => (C(), P($(j), {
3552
+ $(s).tools && $(s).tools.length > 0 ? (C(!0), L(he, { key: 0 }, Oe($(s).tools, (D, ne) => (C(), P($(j), {
3561
3553
  key: ne,
3562
3554
  type: D.type,
3563
3555
  size: D.size ?? "middle",
3564
3556
  disabled: $(s).disabled || D.disabled,
3565
3557
  onClick: (Me) => $(Xo)(D.code),
3566
- loading: g.toolbar || !!D.code && q[D.code]
3558
+ loading: g.toolbar || !!D.code && Y[D.code]
3567
3559
  }, {
3568
3560
  default: E(() => [
3569
3561
  _($($e), {
@@ -3577,9 +3569,9 @@ const Go = be.warning, MD = { key: 0 }, RD = {
3577
3569
  Te("div", {
3578
3570
  class: gl(`p-pane flex-1 ${At.value ? "h-0" : ""} p-${$(y) ?? "inner"}-scroll`)
3579
3571
  }, [
3580
- (Gt = $(f)) != null && Gt.multiple && $(f).showCount ? (C(), G("div", xD, " 已选:" + nr(d.value.length), 1)) : X("", !0),
3572
+ (Gt = $(f)) != null && Gt.multiple && $(f).showCount ? (C(), L("div", xD, " 已选:" + nr(d.value.length), 1)) : X("", !0),
3581
3573
  (C(), P($(wl), O({
3582
- key: Y.value + "_table",
3574
+ key: G.value + "_table",
3583
3575
  "row-key": p.rowKey ?? "id",
3584
3576
  ref_key: "tableEl",
3585
3577
  ref: I,
@@ -3594,12 +3586,12 @@ const Go = be.warning, MD = { key: 0 }, RD = {
3594
3586
  },
3595
3587
  onChange: rl
3596
3588
  }), Rr({ _: 2 }, [
3597
- b.value.length > 0 ? {
3589
+ T.value.length > 0 ? {
3598
3590
  name: "headerCell",
3599
3591
  fn: E(({ column: D }) => [
3600
- b.value.some((ne) => D.key && ne.field === D.key) ? (C(), P($(ND), {
3601
- key: Y.value + "_title_" + je.value + "_slot_" + D.key,
3602
- column: b.value.find((ne) => D.key && ne.field === D.key)
3592
+ T.value.some((ne) => D.key && ne.field === D.key) ? (C(), P($(ND), {
3593
+ key: G.value + "_title_" + je.value + "_slot_" + D.key,
3594
+ column: T.value.find((ne) => D.key && ne.field === D.key)
3603
3595
  }, null, 8, ["column"])) : X("", !0)
3604
3596
  ]),
3605
3597
  key: "0"
@@ -3608,7 +3600,7 @@ const Go = be.warning, MD = { key: 0 }, RD = {
3608
3600
  name: "bodyCell",
3609
3601
  fn: E(({ column: D, record: ne, index: Me }) => [
3610
3602
  Lr.value.some((Xr) => D.key && Xr.field === D.key) ? (C(), P($(Po), {
3611
- key: Y.value + "_cell_" + je.value + "_slot_" + D.key,
3603
+ key: G.value + "_cell_" + je.value + "_slot_" + D.key,
3612
3604
  column: Lr.value.find((Xr) => D.key && Xr.field === D.key),
3613
3605
  "default-handler": { pick: Ho, setLoadings: F },
3614
3606
  row: ne,
@@ -3630,10 +3622,18 @@ const Go = be.warning, MD = { key: 0 }, RD = {
3630
3622
  getFormSetting: { type: Function },
3631
3623
  source: {}
3632
3624
  },
3633
- setup(e) {
3634
- const r = e, { source: a } = or(r), t = W(() => r.getFormSetting(a.value));
3635
- return (n, i) => (C(), P(zo, O(t.value, {
3636
- data: $(a)
3625
+ setup(e, { expose: r }) {
3626
+ const a = e, t = U(), { source: n } = or(a), i = W(() => {
3627
+ var l;
3628
+ return (l = t.value) == null ? void 0 : l.$form;
3629
+ }), o = W(() => a.getFormSetting(n.value));
3630
+ return r({
3631
+ $form: i
3632
+ }), (l, u) => (C(), P(zo, O({
3633
+ ref_key: "formEl",
3634
+ ref: t
3635
+ }, o.value, {
3636
+ data: $(n)
3637
3637
  }), null, 16, ["data"]));
3638
3638
  }
3639
3639
  }), WD = /* @__PURE__ */ ee({
@@ -3682,31 +3682,31 @@ const Go = be.warning, MD = { key: 0 }, RD = {
3682
3682
  return ((k = i.value) == null ? void 0 : k.$el) ?? document.body;
3683
3683
  }, F = W(() => n.forceRender || o.value.length <= 5), w = (k) => {
3684
3684
  var N;
3685
- const b = (N = o.value.find((I, M) => M === k)) == null ? void 0 : N.__index;
3686
- z(b) && (u.value = u.value.filter((I) => I !== b));
3687
- }, T = () => {
3685
+ const T = (N = o.value.find((I, M) => M === k)) == null ? void 0 : N.__index;
3686
+ z(T) && (u.value = u.value.filter((I) => I !== T));
3687
+ }, b = () => {
3688
3688
  Kt().then(() => {
3689
- var k, b;
3690
- w(l.value), (b = (k = s.value[l.value]) == null ? void 0 : k.$form) == null || b.validate();
3689
+ var k, T;
3690
+ w(l.value), (T = (k = s.value[l.value]) == null ? void 0 : k.$form) == null || T.validate();
3691
3691
  });
3692
3692
  };
3693
3693
  Mr(() => o.value, () => {
3694
3694
  if (!n.keepSerial) {
3695
- const k = o.value.filter((b) => !z(b.__index));
3696
- k.length > 0 && k.forEach((b) => {
3695
+ const k = o.value.filter((T) => !z(T.__index));
3696
+ k.length > 0 && k.forEach((T) => {
3697
3697
  var N;
3698
- b.__index = (((N = m.max(o.value, (I) => I.__index ?? -1)) == null ? void 0 : N.__index) ?? -1) + 1;
3698
+ T.__index = (((N = m.max(o.value, (I) => I.__index ?? -1)) == null ? void 0 : N.__index) ?? -1) + 1;
3699
3699
  });
3700
3700
  }
3701
3701
  }, { immediate: !0 });
3702
- const R = ({ key: k }, b, N) => {
3702
+ const R = ({ key: k }, T, N) => {
3703
3703
  var I;
3704
3704
  if (n.menuHandler && m.isFunction(n.menuHandler))
3705
- n.menuHandler({ code: m.toString(k), data: b, index: N });
3705
+ n.menuHandler({ code: m.toString(k), data: T, index: N });
3706
3706
  else
3707
3707
  switch (k) {
3708
3708
  case "delete":
3709
- o.value = o.value.filter((M, Y) => Y !== N), Kt(() => {
3709
+ o.value = o.value.filter((M, G) => G !== N), Kt(() => {
3710
3710
  s.value = s.value.filter((M) => !!M), N <= l.value && l.value > 0 && l.value--;
3711
3711
  });
3712
3712
  break;
@@ -3718,7 +3718,7 @@ const Go = be.warning, MD = { key: 0 }, RD = {
3718
3718
  o.value = [
3719
3719
  ...o.value,
3720
3720
  m.clone({
3721
- ...m.omit(b, ["id", "__index"]),
3721
+ ...m.omit(T, ["id", "__index"]),
3722
3722
  __index: (((I = m.max(o.value, (M) => M.__index ?? -1)) == null ? void 0 : I.__index) ?? -1) + 1
3723
3723
  })
3724
3724
  ];
@@ -3731,42 +3731,42 @@ const Go = be.warning, MD = { key: 0 }, RD = {
3731
3731
  const S = m.debounce(w, 50);
3732
3732
  return Bt(() => {
3733
3733
  var N;
3734
- const k = o.value.map((I, M) => u.value.includes(I.__index) ? M : void 0).filter(z), b = (N = t.value) == null ? void 0 : N.$el;
3735
- b && b.querySelectorAll(":scope >.ant-tabs-nav>.ant-tabs-nav-wrap>.ant-tabs-nav-list>.ant-tabs-tab>.ant-tabs-tab-btn").forEach((M, Y) => {
3736
- k.includes(Y) ? M.classList.add("p-error-group-tab") : M.classList.remove("p-error-group-tab");
3734
+ const k = o.value.map((I, M) => u.value.includes(I.__index) ? M : void 0).filter(z), T = (N = t.value) == null ? void 0 : N.$el;
3735
+ T && T.querySelectorAll(":scope >.ant-tabs-nav>.ant-tabs-nav-wrap>.ant-tabs-nav-list>.ant-tabs-tab>.ant-tabs-tab-btn").forEach((M, G) => {
3736
+ k.includes(G) ? M.classList.add("p-error-group-tab") : M.classList.remove("p-error-group-tab");
3737
3737
  });
3738
3738
  }), r({
3739
3739
  activeKey: W(() => l.value),
3740
3740
  setActiveKey: v,
3741
3741
  validateAll: () => {
3742
- const k = F.value ? s.value.map((b) => {
3742
+ const k = F.value ? s.value.map((T) => {
3743
3743
  var N;
3744
- return (N = b.$form) == null ? void 0 : N.validate();
3745
- }) : o.value.map((b) => {
3744
+ return (N = T.$form) == null ? void 0 : N.validate();
3745
+ }) : o.value.map((T) => {
3746
3746
  var N;
3747
- return ((N = a(b, n.getFormSetting(b).rules)) == null ? void 0 : N.validate()) ?? Promise.resolve();
3747
+ return ((N = a(T, n.getFormSetting(T).rules)) == null ? void 0 : N.validate()) ?? Promise.resolve();
3748
3748
  });
3749
- return Promise.allSettled(k).then((b) => {
3750
- if (u.value = b.map((N, I) => {
3749
+ return Promise.allSettled(k).then((T) => {
3750
+ if (u.value = T.map((N, I) => {
3751
3751
  var M;
3752
3752
  return N.status === "rejected" && typeof ((M = o.value[I]) == null ? void 0 : M.__index) == "number" ? o.value[I].__index : void 0;
3753
3753
  }).filter((N) => typeof N == "number"), !n.lazyErrorMark && u.value.length) {
3754
3754
  const N = u.value[0], I = o.value.findIndex((M) => M.__index === N);
3755
3755
  I !== -1 && (l.value = I);
3756
3756
  }
3757
- return u.value.length ? Promise.reject({ error_indexes: u.value, results: b }) : Promise.resolve(b);
3757
+ return u.value.length ? Promise.reject({ error_indexes: u.value, results: T }) : Promise.resolve(T);
3758
3758
  });
3759
3759
  },
3760
- validate: async (k) => {
3761
- var N, I, M;
3762
- const b = o.value.findIndex((Y) => Y.__index === k);
3760
+ validate: async (k, T) => {
3761
+ var I, M, G;
3762
+ const N = o.value.findIndex((Y) => Y.__index === k);
3763
3763
  try {
3764
- return await (F.value ? ((I = (N = s.value[b]) == null ? void 0 : N.$form) == null ? void 0 : I.validate()) ?? Promise.resolve() : ((M = a(o.value[b], n.getFormSetting(o.value[b]).rules)) == null ? void 0 : M.validate()) ?? Promise.resolve()), u.value = u.value.filter((Y) => Y !== k), Promise.resolve();
3764
+ return await (F.value ? ((M = (I = s.value[N]) == null ? void 0 : I.$form) == null ? void 0 : M.validate()) ?? Promise.resolve() : ((G = a(o.value[N], n.getFormSetting(o.value[N]).rules)) == null ? void 0 : G.validate()) ?? Promise.resolve()), u.value = u.value.filter((Y) => Y !== k), Promise.resolve();
3765
3765
  } catch (Y) {
3766
- return u.value.includes(k) || (u.value = [...u.value, k]), Promise.reject(Y);
3766
+ return !u.value.includes(k) && !T && (u.value = [...u.value, k]), Promise.reject(Y);
3767
3767
  }
3768
3768
  }
3769
- }), (k, b) => {
3769
+ }), (k, T) => {
3770
3770
  const N = H("a-spin");
3771
3771
  return C(), P($(bl), {
3772
3772
  ref_key: "rootRef",
@@ -3784,18 +3784,18 @@ const Go = be.warning, MD = { key: 0 }, RD = {
3784
3784
  ref: t,
3785
3785
  type: "editable-card",
3786
3786
  activeKey: l.value,
3787
- "onUpdate:activeKey": b[1] || (b[1] = (I) => l.value = I),
3787
+ "onUpdate:activeKey": T[1] || (T[1] = (I) => l.value = I),
3788
3788
  "hide-add": "",
3789
- onChange: T
3789
+ onChange: b
3790
3790
  }, {
3791
3791
  rightExtra: E(() => [
3792
3792
  $l(k.$slots, "rightExtra", {}, () => [
3793
3793
  k.showAdd && o.value.length < c.value ? (C(), P($(j), {
3794
3794
  key: 0,
3795
3795
  type: "link",
3796
- onClick: b[0] || (b[0] = (I) => f(o.value.length))
3796
+ onClick: T[0] || (T[0] = (I) => f(o.value.length))
3797
3797
  }, {
3798
- default: E(() => b[2] || (b[2] = [
3798
+ default: E(() => T[2] || (T[2] = [
3799
3799
  Pe(" + 新增 ")
3800
3800
  ])),
3801
3801
  _: 1
@@ -3803,33 +3803,33 @@ const Go = be.warning, MD = { key: 0 }, RD = {
3803
3803
  ])
3804
3804
  ]),
3805
3805
  default: E(() => [
3806
- (C(!0), G(he, null, Oe(o.value, (I, M) => (C(), P($(El), {
3806
+ (C(!0), L(he, null, Oe(o.value, (I, M) => (C(), P($(El), {
3807
3807
  key: M,
3808
3808
  tab: `${k.tabLabel} ${k.keepSerial ? M + 1 : (I.__index ?? 0) + 1}`,
3809
3809
  "force-render": F.value
3810
3810
  }, {
3811
3811
  closeIcon: E(() => {
3812
- var Y;
3812
+ var G;
3813
3813
  return [
3814
- k.editAble && ((Y = $(y)) != null && Y.length) ? (C(), P($(Pn), {
3814
+ k.editAble && ((G = $(y)) != null && G.length) ? (C(), P($(Pn), {
3815
3815
  key: 0,
3816
3816
  "get-popup-container": g
3817
3817
  }, {
3818
3818
  overlay: E(() => [
3819
3819
  _($(Fl), {
3820
- onClick: (q) => $(d)(q, I, M)
3820
+ onClick: (Y) => $(d)(Y, I, M)
3821
3821
  }, {
3822
3822
  default: E(() => [
3823
- (C(!0), G(he, null, Oe($(y).filter(
3824
- (q) => {
3823
+ (C(!0), L(he, null, Oe($(y).filter(
3824
+ (Y) => {
3825
3825
  var ze;
3826
- return ((ze = q.visibleMethod) == null ? void 0 : ze.call(q, { data: I, index: M })) ?? !0;
3826
+ return ((ze = Y.visibleMethod) == null ? void 0 : ze.call(Y, { data: I, index: M })) ?? !0;
3827
3827
  }
3828
- ), (q) => (C(), P($(Nl), {
3829
- key: q.code
3828
+ ), (Y) => (C(), P($(Nl), {
3829
+ key: Y.code
3830
3830
  }, {
3831
3831
  default: E(() => [
3832
- Te("div", null, nr(q.content), 1)
3832
+ Te("div", null, nr(Y.content), 1)
3833
3833
  ]),
3834
3834
  _: 2
3835
3835
  }, 1024))), 128))
@@ -3847,14 +3847,14 @@ const Go = be.warning, MD = { key: 0 }, RD = {
3847
3847
  default: E(() => [
3848
3848
  (C(), P(Bo, {
3849
3849
  ref_for: !0,
3850
- ref: (Y) => {
3851
- Y ? s.value[M] = Y : s.value && (s.value = s.value.filter((q, ze) => ze !== M));
3850
+ ref: (G) => {
3851
+ G ? s.value[M] = G : s.value && (s.value = s.value.filter((Y, ze) => ze !== M));
3852
3852
  },
3853
3853
  key: M,
3854
3854
  source: I,
3855
3855
  "get-form-setting": k.getFormSetting,
3856
- onFocusCapture: (Y) => $(S)(M),
3857
- onClickCapture: (Y) => $(S)(M)
3856
+ onFocusCapture: (G) => $(S)(M),
3857
+ onClickCapture: (G) => $(S)(M)
3858
3858
  }, null, 8, ["source", "get-form-setting", "onFocusCapture", "onClickCapture"]))
3859
3859
  ]),
3860
3860
  _: 2