abl-ui 0.4.24 → 0.4.26

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/lib/abl-ui.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openBlock as c, createElementBlock as u, normalizeStyle as E, renderSlot as R, createElementVNode as r, normalizeClass as A, createTextVNode as Q, toDisplayString as H, createCommentVNode as I, createStaticVNode as Lt, Fragment as Y, renderList as ae, createVNode as de, useSlots as Ke, ref as x, provide as xe, onMounted as Ne, watch as ne, withDirectives as J, vShow as te, defineComponent as zt, toRefs as Te, computed as D, inject as Be, reactive as Ie, unref as se, createBlock as oe, TransitionGroup as al, withCtx as ie, resolveDynamicComponent as ct, pushScopeId as ge, popScopeId as ye, createApp as nl, getCurrentInstance as Ge, onBeforeUnmount as Je, onUpdated as rt, onBeforeMount as At, Teleport as Ze, Transition as me, withModifiers as K, watchEffect as ut, nextTick as _e, mergeProps as we, useAttrs as ol, createSlots as sl, vModelDynamic as il, normalizeProps as gt, withKeys as It, vModelText as Rt, toRaw as yt, onUnmounted as cl } from "vue";
1
+ import { openBlock as c, createElementBlock as u, normalizeStyle as E, renderSlot as R, createElementVNode as r, normalizeClass as A, createTextVNode as Q, toDisplayString as H, createCommentVNode as I, createStaticVNode as Lt, Fragment as Y, renderList as ae, createVNode as de, useSlots as Ke, ref as w, provide as xe, onMounted as Ne, watch as ne, withDirectives as J, vShow as te, defineComponent as zt, toRefs as Te, computed as D, inject as Be, reactive as Ie, unref as se, createBlock as oe, TransitionGroup as al, withCtx as ie, resolveDynamicComponent as ct, pushScopeId as ge, popScopeId as ye, createApp as nl, getCurrentInstance as Ge, onBeforeUnmount as Je, onUpdated as rt, onBeforeMount as At, Teleport as Ze, Transition as me, withModifiers as K, watchEffect as ut, nextTick as _e, mergeProps as we, useAttrs as ol, createSlots as sl, vModelDynamic as il, normalizeProps as gt, withKeys as It, vModelText as Rt, toRaw as yt, onUnmounted as cl } from "vue";
2
2
  const ee = (e, a) => {
3
3
  const t = e.__vccOpts || e;
4
4
  for (const [l, n] of a)
@@ -159,7 +159,7 @@ const Cl = { class: "abl-tabs" }, Sl = {
159
159
  props: {
160
160
  name: "abl-tabs",
161
161
  modelValue: {
162
- type: String,
162
+ type: [String, Number],
163
163
  default: ""
164
164
  },
165
165
  color: {
@@ -174,30 +174,30 @@ const Cl = { class: "abl-tabs" }, Sl = {
174
174
  emits: ["tabClick", "update:modelValue"],
175
175
  setup(e, { emit: a }) {
176
176
  var y;
177
- const t = a, l = Ke(), n = e, i = x({}), o = x(), s = x([]), d = x(), f = x(0), h = x(!1), v = x(!1), p = x(!0);
177
+ const t = a, l = Ke(), n = e, i = w({}), o = w(), s = w([]), d = w(), f = w(0), h = w(!1), v = w(!1), p = w(!0);
178
178
  (y = l.default()) == null || y.map(({ props: b, children: V }) => {
179
179
  if (b) {
180
- const { title: B, value: C, icon: w, afterIcon: k } = b;
180
+ const { title: B, value: C, icon: $, afterIcon: k } = b;
181
181
  s.value.push({
182
182
  title: B,
183
183
  value: C,
184
- icon: w,
184
+ icon: $,
185
185
  afterIcon: k
186
186
  });
187
187
  } else
188
188
  (V == null ? void 0 : V.length) > 0 && Array.isArray(V) && (V == null || V.map((B) => {
189
- const { title: C, value: w, icon: k, afterIcon: F } = B.props;
189
+ const { title: C, value: $, icon: k, afterIcon: F } = B.props;
190
190
  s.value.push({
191
191
  title: C,
192
- value: w,
192
+ value: $,
193
193
  icon: k,
194
194
  afterIcon: F
195
195
  });
196
196
  }));
197
197
  }), xe("active", f);
198
198
  const g = (b, V) => {
199
- var C, w;
200
- const B = h.value ? ((C = b == null ? void 0 : b.target) == null ? void 0 : C.offsetLeft) + 10 : (w = b == null ? void 0 : b.target) == null ? void 0 : w.offsetLeft;
199
+ var C;
200
+ const B = (C = b == null ? void 0 : b.target) == null ? void 0 : C.offsetLeft;
201
201
  i.value = {
202
202
  transform: `translateX(${B}px)`,
203
203
  width: b.target.clientWidth + "px"
@@ -213,28 +213,28 @@ const Cl = { class: "abl-tabs" }, Sl = {
213
213
  b.scrollLeft > 0 && (b.scrollLeft -= V);
214
214
  };
215
215
  Ne(() => {
216
- $();
216
+ x();
217
217
  });
218
- const $ = () => {
218
+ const x = () => {
219
219
  if (!o.value)
220
220
  return;
221
221
  let b = 0;
222
- s.value.map((w, k) => {
223
- w.value == n.modelValue && (b = k);
222
+ s.value.map(($, k) => {
223
+ $.value == n.modelValue && (b = k);
224
224
  });
225
- const V = o.value[b], B = h.value ? V.offsetLeft + 10 : V == null ? void 0 : V.offsetLeft;
225
+ const V = o.value[b], B = V == null ? void 0 : V.offsetLeft;
226
226
  i.value = {
227
227
  transform: `translateX(${B}px)`,
228
228
  width: V.clientWidth + "px"
229
229
  };
230
230
  const C = document.getElementById("tab-hidden");
231
- (C == null ? void 0 : C.scrollWidth) - 2 > (C == null ? void 0 : C.clientWidth) ? h.value = !0 : h.value = !1, C.addEventListener("scroll", function(w) {
231
+ (C == null ? void 0 : C.scrollWidth) - 2 > (C == null ? void 0 : C.clientWidth) ? h.value = !0 : h.value = !1, C.addEventListener("scroll", function($) {
232
232
  var k, F, z;
233
- ((k = w.target) == null ? void 0 : k.scrollLeft) + ((F = w.target) == null ? void 0 : F.offsetWidth) >= ((z = w.target) == null ? void 0 : z.scrollWidth) - 1 && (p.value = !1, B.value = !0), w.target.scrollLeft == 0 && (p.value = !0, B.value = !1);
233
+ ((k = $.target) == null ? void 0 : k.scrollLeft) + ((F = $.target) == null ? void 0 : F.offsetWidth) >= ((z = $.target) == null ? void 0 : z.scrollWidth) - 1 && (p.value = !1, B.value = !0), $.target.scrollLeft == 0 && (p.value = !0, B.value = !1);
234
234
  });
235
235
  };
236
236
  return ne(() => n.modelValue, async () => {
237
- f.value = n.modelValue, $();
237
+ f.value = n.modelValue, x();
238
238
  }, {
239
239
  immediate: !0
240
240
  }), (b, V) => {
@@ -242,7 +242,7 @@ const Cl = { class: "abl-tabs" }, Sl = {
242
242
  return c(), u("div", Cl, [
243
243
  r("div", Sl, [
244
244
  J(r("i", {
245
- class: A([v.value ? "" : "left-disable", "iconfont-abl icon-abl-youjiantou1"]),
245
+ class: A([v.value ? "" : "left-disable", "iconfont-abl icon-abl-youjiantou1 arrow"]),
246
246
  onClick: _
247
247
  }, null, 2), [
248
248
  [te, h.value]
@@ -254,7 +254,7 @@ const Cl = { class: "abl-tabs" }, Sl = {
254
254
  ref_for: !0,
255
255
  ref_key: "tabs",
256
256
  ref: o,
257
- onClick: (w) => g(w, C.value)
257
+ onClick: ($) => g($, C.value)
258
258
  }, [
259
259
  C.icon ? (c(), u("i", {
260
260
  key: 0,
@@ -265,26 +265,26 @@ const Cl = { class: "abl-tabs" }, Sl = {
265
265
  key: 1,
266
266
  class: A(["iconfont-abl tab-icon-after", C.afterIcon])
267
267
  }, null, 2)) : I("", !0)
268
- ], 10, Vl))), 128))
268
+ ], 10, Vl))), 128)),
269
+ (B = i.value) != null && B.width ? (c(), u("div", {
270
+ key: 0,
271
+ class: "bottom-line",
272
+ style: E(i.value)
273
+ }, [
274
+ r("div", {
275
+ class: "bottom-line-inner",
276
+ style: E({ "background-color": n.color })
277
+ }, null, 4),
278
+ e.arrow ? (c(), u("div", Ll, [
279
+ r("i", {
280
+ class: "iconfont-abl icon-abl-top",
281
+ style: E({ color: n.color })
282
+ }, null, 4)
283
+ ])) : I("", !0)
284
+ ], 4)) : I("", !0)
269
285
  ]),
270
- (B = i.value) != null && B.width ? (c(), u("div", {
271
- key: 0,
272
- class: "bottom-line",
273
- style: E(i.value)
274
- }, [
275
- r("div", {
276
- class: "bottom-line-inner",
277
- style: E({ "background-color": n.color })
278
- }, null, 4),
279
- e.arrow ? (c(), u("div", Ll, [
280
- r("i", {
281
- class: "iconfont-abl icon-abl-top",
282
- style: E({ color: n.color })
283
- }, null, 4)
284
- ])) : I("", !0)
285
- ], 4)) : I("", !0),
286
286
  J(r("i", {
287
- class: A([p.value ? "" : "right-disable", "iconfont-abl icon-abl-youjiantou"]),
287
+ class: A([p.value ? "" : "right-disable", "iconfont-abl icon-abl-youjiantou arrow"]),
288
288
  onClick: m
289
289
  }, null, 2), [
290
290
  [te, h.value]
@@ -300,7 +300,7 @@ const Cl = { class: "abl-tabs" }, Sl = {
300
300
  ]);
301
301
  };
302
302
  }
303
- }, Al = /* @__PURE__ */ ee(zl, [["__scopeId", "data-v-db642242"]]), Il = {
303
+ }, Al = /* @__PURE__ */ ee(zl, [["__scopeId", "data-v-2c205f63"]]), Il = {
304
304
  name: "AblSwitch"
305
305
  }, Rl = /* @__PURE__ */ zt({
306
306
  ...Il,
@@ -452,11 +452,11 @@ const Nl = {
452
452
  __name: "pane",
453
453
  props: {
454
454
  title: {
455
- type: String,
455
+ type: [String, Number],
456
456
  default: ""
457
457
  },
458
458
  value: {
459
- type: String,
459
+ type: [String, Number],
460
460
  default: ""
461
461
  },
462
462
  icon: {
@@ -578,7 +578,7 @@ const De = (e) => (ge("data-v-278b4efc"), e = e(), ye(), e), Dl = ["onMouseenter
578
578
  },
579
579
  emits: ["click", "close"],
580
580
  setup(e, { expose: a, emit: t }) {
581
- const l = e, n = x(), i = x([]), o = x([]), s = x([]), d = x(null), f = t, h = x(), v = D(() => i.value.every((z) => !z));
581
+ const l = e, n = w(), i = w([]), o = w([]), s = w([]), d = w(null), f = t, h = w(), v = D(() => i.value.every((z) => !z));
582
582
  ne(v, (z, N) => {
583
583
  !N && z && (n.value = nt(() => {
584
584
  s.value = [], i.value = [];
@@ -598,7 +598,7 @@ const De = (e) => (ge("data-v-278b4efc"), e = e(), ye(), e), Dl = ["onMouseenter
598
598
  i.value[z] && (i.value[z] = !1, s.value[z].onClose && s.value[z].onClose(), f("close"));
599
599
  }, d.value));
600
600
  }
601
- function $(z) {
601
+ function x(z) {
602
602
  const N = s.value.findIndex((L) => L.id === z), U = s.value.length - 1, q = s.value[U];
603
603
  q.top !== void 0 ? h.value = typeof q.top == "number" ? `${q.top}px` : q.top : h.value = typeof l.top == "number" ? `${l.top}px` : l.top, i.value[N] = !0, q.duration !== null ? (d.value = q.duration || l.duration, o.value[N] = nt(() => {
604
604
  i.value[N] = !1, s.value[N].onClose && s.value[N].onClose(), f("close");
@@ -633,7 +633,7 @@ const De = (e) => (ge("data-v-278b4efc"), e = e(), ye(), e), Dl = ["onMouseenter
633
633
  let N = b(z, "success");
634
634
  return s.value.push(N), y(), N.id;
635
635
  }
636
- function w(z) {
636
+ function $(z) {
637
637
  let N = b(z, "error");
638
638
  return s.value.push(N), y(), N.id;
639
639
  }
@@ -649,10 +649,10 @@ const De = (e) => (ge("data-v-278b4efc"), e = e(), ye(), e), Dl = ["onMouseenter
649
649
  open: V,
650
650
  info: B,
651
651
  success: C,
652
- error: w,
652
+ error: $,
653
653
  warning: k,
654
654
  loading: F,
655
- close: $
655
+ close: x
656
656
  }), (z, N) => (c(), u("div", {
657
657
  class: "abl-message",
658
658
  style: E(`top: ${h.value};`)
@@ -1332,7 +1332,7 @@ const Ea = async (e, a, t) => {
1332
1332
  } = _t(f, l, d), p = l, g = {}, m = 0;
1333
1333
  for (let _ = 0; _ < s.length; _++) {
1334
1334
  const {
1335
- name: $,
1335
+ name: x,
1336
1336
  fn: y
1337
1337
  } = s[_], {
1338
1338
  x: b,
@@ -1355,8 +1355,8 @@ const Ea = async (e, a, t) => {
1355
1355
  });
1356
1356
  h = b ?? h, v = V ?? v, g = {
1357
1357
  ...g,
1358
- [$]: {
1359
- ...g[$],
1358
+ [x]: {
1359
+ ...g[x],
1360
1360
  ...B
1361
1361
  }
1362
1362
  }, C && m <= 50 && (m++, typeof C == "object" && (C.placement && (p = C.placement), C.rects && (f = C.rects === !0 ? await o.getElementRects({
@@ -1392,8 +1392,8 @@ async function Tt(e, a) {
1392
1392
  elementContext: v = "floating",
1393
1393
  altBoundary: p = !1,
1394
1394
  padding: g = 0
1395
- } = Fe(a, e), m = Pt(g), $ = s[p ? v === "floating" ? "reference" : "floating" : v], y = Ye(await i.getClippingRect({
1396
- element: (t = await (i.isElement == null ? void 0 : i.isElement($))) == null || t ? $ : $.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
1395
+ } = Fe(a, e), m = Pt(g), x = s[p ? v === "floating" ? "reference" : "floating" : v], y = Ye(await i.getClippingRect({
1396
+ element: (t = await (i.isElement == null ? void 0 : i.isElement(x))) == null || t ? x : x.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
1397
1397
  boundary: f,
1398
1398
  rootBoundary: h,
1399
1399
  strategy: d
@@ -1441,9 +1441,9 @@ const Oa = (e) => ({
1441
1441
  const v = Pt(h), p = {
1442
1442
  x: t,
1443
1443
  y: l
1444
- }, g = ft(n), m = dt(g), _ = await o.getDimensions(f), $ = g === "y", y = $ ? "top" : "left", b = $ ? "bottom" : "right", V = $ ? "clientHeight" : "clientWidth", B = i.reference[m] + i.reference[g] - p[g] - i.floating[m], C = p[g] - i.reference[g], w = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(f));
1445
- let k = w ? w[V] : 0;
1446
- (!k || !await (o.isElement == null ? void 0 : o.isElement(w))) && (k = s.floating[V] || i.floating[m]);
1444
+ }, g = ft(n), m = dt(g), _ = await o.getDimensions(f), x = g === "y", y = x ? "top" : "left", b = x ? "bottom" : "right", V = x ? "clientHeight" : "clientWidth", B = i.reference[m] + i.reference[g] - p[g] - i.floating[m], C = p[g] - i.reference[g], $ = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(f));
1445
+ let k = $ ? $[V] : 0;
1446
+ (!k || !await (o.isElement == null ? void 0 : o.isElement($))) && (k = s.floating[V] || i.floating[m]);
1447
1447
  const F = B / 2 - C / 2, z = k / 2 - _[m] / 2 - 1, N = Re(v[y], z), U = Re(v[b], z), q = N, L = k - _[m] - U, P = k / 2 - _[m] / 2 + F, X = ot(q, P, L), Z = !d.arrow && He(n) != null && P !== X && i.reference[m] / 2 - (P < q ? N : U) - _[m] / 2 < 0, M = Z ? P < q ? P - q : P - L : 0;
1448
1448
  return {
1449
1449
  [g]: p[g] + M,
@@ -1477,17 +1477,17 @@ const Oa = (e) => ({
1477
1477
  fallbackStrategy: g = "bestFit",
1478
1478
  fallbackAxisSideDirection: m = "none",
1479
1479
  flipAlignment: _ = !0,
1480
- ...$
1480
+ ...x
1481
1481
  } = Fe(e, a);
1482
1482
  if ((t = i.arrow) != null && t.alignmentOffset)
1483
1483
  return {};
1484
1484
  const y = Ve(n), b = Ve(s) === s, V = await (d.isRTL == null ? void 0 : d.isRTL(f.floating)), B = p || (b || !_ ? [Xe(s)] : Ia(s));
1485
1485
  !p && m !== "none" && B.push(...Ma(s, _, m, V));
1486
- const C = [s, ...B], w = await Tt(a, $), k = [];
1486
+ const C = [s, ...B], $ = await Tt(a, x), k = [];
1487
1487
  let F = ((l = i.flip) == null ? void 0 : l.overflows) || [];
1488
- if (h && k.push(w[y]), v) {
1488
+ if (h && k.push($[y]), v) {
1489
1489
  const q = Aa(n, o, V);
1490
- k.push(w[q[0]], w[q[1]]);
1490
+ k.push($[q[0]], $[q[1]]);
1491
1491
  }
1492
1492
  if (F = [...F, {
1493
1493
  placement: n,
@@ -1592,11 +1592,11 @@ const Da = function(e) {
1592
1592
  mainAxis: i = !0,
1593
1593
  crossAxis: o = !1,
1594
1594
  limiter: s = {
1595
- fn: ($) => {
1595
+ fn: (x) => {
1596
1596
  let {
1597
1597
  x: y,
1598
1598
  y: b
1599
- } = $;
1599
+ } = x;
1600
1600
  return {
1601
1601
  x: y,
1602
1602
  y: b
@@ -1610,11 +1610,11 @@ const Da = function(e) {
1610
1610
  }, h = await Tt(a, d), v = Qe(Ve(n)), p = Ot(v);
1611
1611
  let g = f[p], m = f[v];
1612
1612
  if (i) {
1613
- const $ = p === "y" ? "top" : "left", y = p === "y" ? "bottom" : "right", b = g + h[$], V = g - h[y];
1613
+ const x = p === "y" ? "top" : "left", y = p === "y" ? "bottom" : "right", b = g + h[x], V = g - h[y];
1614
1614
  g = ot(b, g, V);
1615
1615
  }
1616
1616
  if (o) {
1617
- const $ = v === "y" ? "top" : "left", y = v === "y" ? "bottom" : "right", b = m + h[$], V = m - h[y];
1617
+ const x = v === "y" ? "top" : "left", y = v === "y" ? "bottom" : "right", b = m + h[x], V = m - h[y];
1618
1618
  m = ot(b, m, V);
1619
1619
  }
1620
1620
  const _ = s.fn({
@@ -1770,8 +1770,8 @@ function Le(e, a, t, l) {
1770
1770
  const p = re(i), g = l && he(l) ? re(l) : l;
1771
1771
  let m = p, _ = m.frameElement;
1772
1772
  for (; _ && l && g !== m; ) {
1773
- const $ = Ae(_), y = _.getBoundingClientRect(), b = fe(_), V = y.left + (_.clientLeft + parseFloat(b.paddingLeft)) * $.x, B = y.top + (_.clientTop + parseFloat(b.paddingTop)) * $.y;
1774
- d *= $.x, f *= $.y, h *= $.x, v *= $.y, d += V, f += B, m = re(_), _ = m.frameElement;
1773
+ const x = Ae(_), y = _.getBoundingClientRect(), b = fe(_), V = y.left + (_.clientLeft + parseFloat(b.paddingLeft)) * x.x, B = y.top + (_.clientTop + parseFloat(b.paddingTop)) * x.y;
1774
+ d *= x.x, f *= x.y, h *= x.x, v *= x.y, d += V, f += B, m = re(_), _ = m.frameElement;
1775
1775
  }
1776
1776
  }
1777
1777
  return Ye({
@@ -1997,17 +1997,17 @@ function on(e, a) {
1997
1997
  } = e.getBoundingClientRect();
1998
1998
  if (s || a(), !v || !p)
1999
1999
  return;
2000
- const g = qe(h), m = qe(n.clientWidth - (f + v)), _ = qe(n.clientHeight - (h + p)), $ = qe(f), b = {
2001
- rootMargin: -g + "px " + -m + "px " + -_ + "px " + -$ + "px",
2000
+ const g = qe(h), m = qe(n.clientWidth - (f + v)), _ = qe(n.clientHeight - (h + p)), x = qe(f), b = {
2001
+ rootMargin: -g + "px " + -m + "px " + -_ + "px " + -x + "px",
2002
2002
  threshold: Se(0, Re(1, d)) || 1
2003
2003
  };
2004
2004
  let V = !0;
2005
2005
  function B(C) {
2006
- const w = C[0].intersectionRatio;
2007
- if (w !== d) {
2006
+ const $ = C[0].intersectionRatio;
2007
+ if ($ !== d) {
2008
2008
  if (!V)
2009
2009
  return o();
2010
- w ? o(!1, w) : l = setTimeout(() => {
2010
+ $ ? o(!1, $) : l = setTimeout(() => {
2011
2011
  o(!1, 1e-7);
2012
2012
  }, 100);
2013
2013
  }
@@ -2050,10 +2050,10 @@ function sn(e, a, t, l) {
2050
2050
  })), t();
2051
2051
  }), f && !d && g.observe(f), g.observe(a));
2052
2052
  let m, _ = d ? Le(e) : null;
2053
- d && $();
2054
- function $() {
2053
+ d && x();
2054
+ function x() {
2055
2055
  const y = Le(e);
2056
- _ && (y.x !== _.x || y.y !== _.y || y.width !== _.width || y.height !== _.height) && t(), _ = y, m = requestAnimationFrame($);
2056
+ _ && (y.x !== _.x || y.y !== _.y || y.width !== _.width || y.height !== _.height) && t(), _ = y, m = requestAnimationFrame(x);
2057
2057
  }
2058
2058
  return t(), () => {
2059
2059
  var y;
@@ -2128,10 +2128,10 @@ const fn = ["data-side"], Yt = {
2128
2128
  }
2129
2129
  },
2130
2130
  setup(e, { expose: a }) {
2131
- const t = e, l = x(), n = D(() => {
2131
+ const t = e, l = w(), n = D(() => {
2132
2132
  const L = [cn(), rn(), Da(10)];
2133
2133
  return t.showArrow && L.push(un({ element: l.value })), L;
2134
- }), i = x(t.placement), o = x(t.strategy), s = x(t.hover), d = x("auto"), f = x(), h = x(), v = x(), p = x({}), g = {
2134
+ }), i = w(t.placement), o = w(t.strategy), s = w(t.hover), d = w("auto"), f = w(), h = w(), v = w(), p = w({}), g = {
2135
2135
  x: h,
2136
2136
  y: v,
2137
2137
  placement: i,
@@ -2139,31 +2139,31 @@ const fn = ["data-side"], Yt = {
2139
2139
  middlewareData: p
2140
2140
  };
2141
2141
  let m = null;
2142
- const _ = x(!1), $ = x(), y = x(
2142
+ const _ = w(!1), x = w(), y = w(
2143
2143
  (L) => {
2144
- $.value = L && L.nextElementSibling || null;
2144
+ x.value = L && L.nextElementSibling || null;
2145
2145
  }
2146
2146
  ), b = () => {
2147
2147
  _.value = !0;
2148
2148
  }, V = () => _.value = !1, B = () => {
2149
- $.value && _e(() => {
2150
- $.value.addEventListener("click", w);
2151
- const L = $.value.getBoundingClientRect();
2152
- t.widthAuto && (d.value = L != null && L.width ? (L == null ? void 0 : L.width) + "px" : "auto"), s.value && ($.value.addEventListener("mouseover", b, { capture: !0 }), $.value.addEventListener("mouseout", V, { capture: !0 }));
2149
+ x.value && _e(() => {
2150
+ x.value.addEventListener("click", $);
2151
+ const L = x.value.getBoundingClientRect();
2152
+ t.widthAuto && (d.value = L != null && L.width ? (L == null ? void 0 : L.width) + "px" : "auto"), s.value && (x.value.addEventListener("mouseover", b, { capture: !0 }), x.value.addEventListener("mouseout", V, { capture: !0 }));
2153
2153
  });
2154
2154
  }, C = () => {
2155
- $.value && ($.value.removeEventListener("click", w), s.value && ($.value.removeEventListener("mouseover", b, { capture: !0 }), $.value.removeEventListener("mouseout", V, { capture: !0 })));
2155
+ x.value && (x.value.removeEventListener("click", $), s.value && (x.value.removeEventListener("mouseover", b, { capture: !0 }), x.value.removeEventListener("mouseout", V, { capture: !0 })));
2156
2156
  };
2157
2157
  Ne(() => {
2158
2158
  B(), ut(() => {
2159
2159
  q();
2160
2160
  });
2161
- }), ne($, (L, P) => {
2161
+ }), ne(x, (L, P) => {
2162
2162
  P && C(), L && B();
2163
2163
  }, { immediate: !0 }), rt(() => {
2164
2164
  C(), B();
2165
2165
  });
2166
- const w = (L) => {
2166
+ const $ = (L) => {
2167
2167
  t.shouldStopPropagation && L.stopPropagation(), b(), setTimeout(() => {
2168
2168
  document.addEventListener("mousedown", k, { once: !0 });
2169
2169
  }, 0);
@@ -2178,9 +2178,9 @@ const fn = ["data-side"], Yt = {
2178
2178
  top: (L == null ? void 0 : L.y) + "px"
2179
2179
  };
2180
2180
  }), U = async () => {
2181
- if (!(!$.value || !f.value))
2181
+ if (!(!x.value || !f.value))
2182
2182
  try {
2183
- const L = await dn($.value, f.value, {
2183
+ const L = await dn(x.value, f.value, {
2184
2184
  middleware: se(n),
2185
2185
  placement: se(i),
2186
2186
  strategy: se(o)
@@ -2193,9 +2193,9 @@ const fn = ["data-side"], Yt = {
2193
2193
  }
2194
2194
  };
2195
2195
  async function q() {
2196
- if (!(!$.value || !f.value))
2196
+ if (!(!x.value || !f.value))
2197
2197
  try {
2198
- await _e(), m = sn($.value, f.value, U);
2198
+ await _e(), m = sn(x.value, f.value, U);
2199
2199
  } catch (L) {
2200
2200
  console.error("Error updating position:", L);
2201
2201
  }
@@ -2345,7 +2345,7 @@ const fn = ["data-side"], Yt = {
2345
2345
  type: String,
2346
2346
  default: ""
2347
2347
  }
2348
- }, o = ol(), s = x(), d = (g, m) => m.reduce((_, $) => (_[$] = g[$], _), {}), f = D(() => ({ ...o, ...d(t, Object.keys(i)) }));
2348
+ }, o = ol(), s = w(), d = (g, m) => m.reduce((_, x) => (_[x] = g[x], _), {}), f = D(() => ({ ...o, ...d(t, Object.keys(i)) }));
2349
2349
  function h() {
2350
2350
  s.value.update();
2351
2351
  }
@@ -2435,7 +2435,7 @@ const lt = (e) => (ge("data-v-bc247383"), e = e(), ye(), e), vn = ["onClick"], m
2435
2435
  },
2436
2436
  emits: ["update:modelValue", "change", "hoverChange"],
2437
2437
  setup(e, { emit: a }) {
2438
- const t = e, l = x(t.modelValue), n = x();
2438
+ const t = e, l = w(t.modelValue), n = w();
2439
2439
  ne(
2440
2440
  () => t.modelValue,
2441
2441
  (p) => {
@@ -2557,7 +2557,7 @@ const Bn = {
2557
2557
  },
2558
2558
  emits: ["update:modelValue", "change"],
2559
2559
  setup(e, { emit: a }) {
2560
- const t = e, l = x(0), n = () => (l.value++, l.value), i = a, o = (s) => {
2560
+ const t = e, l = w(0), n = () => (l.value++, l.value), i = a, o = (s) => {
2561
2561
  i("update:modelValue", s), i("change", s);
2562
2562
  };
2563
2563
  return xe(
@@ -2619,9 +2619,9 @@ const Ln = { class: "abl-collapse__title" }, zn = { key: 0 }, An = { class: "ico
2619
2619
  },
2620
2620
  emits: ["change"],
2621
2621
  setup(e, { emit: a }) {
2622
- const t = x(), l = e, n = Be("getChildIndex"), i = n == null ? void 0 : n();
2623
- x(null);
2624
- const o = Be("CollapseKey", void 0), s = D(() => o.modelValue), d = D(() => o.iconType), f = D(() => Array.isArray(s.value) ? s.value.includes(l.name) : s.value === l.name), h = x(f.value ? "auto" : "0px"), v = () => {
2622
+ const t = w(), l = e, n = Be("getChildIndex"), i = n == null ? void 0 : n();
2623
+ w(null);
2624
+ const o = Be("CollapseKey", void 0), s = D(() => o.modelValue), d = D(() => o.iconType), f = D(() => Array.isArray(s.value) ? s.value.includes(l.name) : s.value === l.name), h = w(f.value ? "auto" : "0px"), v = () => {
2625
2625
  if (f.value)
2626
2626
  if (Array.isArray(s.value)) {
2627
2627
  const m = s.value.filter((_) => _ !== l.name);
@@ -2653,7 +2653,7 @@ const Ln = { class: "abl-collapse__title" }, zn = { key: 0 }, An = { class: "ico
2653
2653
  class: A(["abl-collapse-item", f.value && "abl-collapse-item__expand", e.isBorder && se(i) > 1 && "abl-collapse-item__border"])
2654
2654
  }, [
2655
2655
  r("div", {
2656
- onClick: _[0] || (_[0] = ($) => v(!f.value)),
2656
+ onClick: _[0] || (_[0] = (x) => v(!f.value)),
2657
2657
  class: A(["abl-collapse-item__title", { "abl-collapse-item__disabled": e.disabled }]),
2658
2658
  style: E({ background: e.background })
2659
2659
  }, [
@@ -2941,13 +2941,13 @@ const Un = /* @__PURE__ */ r("div", {
2941
2941
  },
2942
2942
  emits: ["update:modelValue"],
2943
2943
  setup(e, { emit: a }) {
2944
- const t = Ge(), l = e, n = D(() => l.previewSrcList.length), i = x(Array(n.value).fill(!1)), o = x(l.initialIndex), s = x(1), d = x(0), f = x(0), h = x(0), v = x(0), p = x(0), g = a, m = (L) => {
2944
+ const t = Ge(), l = e, n = D(() => l.previewSrcList.length), i = w(Array(n.value).fill(!1)), o = w(l.initialIndex), s = w(1), d = w(0), f = w(0), h = w(0), v = w(0), p = w(0), g = a, m = (L) => {
2945
2945
  t && (t.appContext.config.globalProperties.$lockCount = L || 0);
2946
2946
  }, _ = () => {
2947
2947
  document.body.style.overflow = "hidden", document.body.style.touchAction = "none";
2948
2948
  const L = t.appContext.config.globalProperties.$lockCount || 0;
2949
2949
  m(L + 1);
2950
- }, $ = () => {
2950
+ }, x = () => {
2951
2951
  t.appContext.config.globalProperties.$lockCount > 0 && m((t.appContext.config.globalProperties.$lockCount || 0) - 1), (t.appContext.config.globalProperties.$lockCount || 0) <= 0 && (document.body.style.overflow = "", document.body.style.touchAction = "");
2952
2952
  };
2953
2953
  ne(() => l.modelValue, (L) => {
@@ -2978,7 +2978,7 @@ const Un = /* @__PURE__ */ r("div", {
2978
2978
  o.value = (o.value - 1 + n.value) % n.value;
2979
2979
  }, C = () => {
2980
2980
  s.value + l.zoomRate > l.maxScale ? s.value = l.maxScale : s.value = y(s.value, l.zoomRate);
2981
- }, w = () => {
2981
+ }, $ = () => {
2982
2982
  s.value - l.zoomRate < l.minScale ? s.value = l.minScale : s.value = y(s.value, -l.zoomRate);
2983
2983
  }, k = () => {
2984
2984
  p.value -= 90;
@@ -3003,7 +3003,7 @@ const Un = /* @__PURE__ */ r("div", {
3003
3003
  const P = L.deltaY * l.zoomRate * 0.1;
3004
3004
  s.value === l.minScale && P > 0 || s.value === l.maxScale && P < 0 || (s.value - P < l.minScale ? s.value = l.minScale : s.value - P > l.maxScale ? s.value = l.maxScale : s.value = y(s.value, -P));
3005
3005
  }, q = () => {
3006
- $(), g("update:modelValue", !1);
3006
+ x(), g("update:modelValue", !1);
3007
3007
  };
3008
3008
  return (L, P) => (c(), oe(Ze, { to: "body" }, [
3009
3009
  de(me, { name: "mask" }, {
@@ -3101,7 +3101,7 @@ const Un = /* @__PURE__ */ r("div", {
3101
3101
  r("div", so, [
3102
3102
  r("i", {
3103
3103
  class: "abl-icon",
3104
- onClick: K(w, ["stop"])
3104
+ onClick: K($, ["stop"])
3105
3105
  }, co),
3106
3106
  r("i", {
3107
3107
  class: "abl-icon",
@@ -3178,8 +3178,8 @@ const yo = { class: "abl-image-wrap" }, bo = ["src"], _o = ["src"], Qt = {
3178
3178
  }
3179
3179
  },
3180
3180
  setup(e, { expose: a }) {
3181
- const t = e, l = x(!1), n = x(!1), i = x(null);
3182
- x("");
3181
+ const t = e, l = w(!1), n = w(!1), i = w(null);
3182
+ w("");
3183
3183
  const o = () => {
3184
3184
  l.value = !0;
3185
3185
  }, s = () => {
@@ -3356,7 +3356,7 @@ const So = /* @__PURE__ */ r("svg", {
3356
3356
  }, Bo, 6));
3357
3357
  }
3358
3358
  }, Lo = (e) => {
3359
- const a = x(null), t = (l) => {
3359
+ const a = w(null), t = (l) => {
3360
3360
  const { target: n } = l;
3361
3361
  a.value.contains(n) || e(l);
3362
3362
  };
@@ -3428,9 +3428,9 @@ const zo = (e) => (ge("data-v-b0efe321"), e = e(), ye(), e), Ao = ["onClick"], I
3428
3428
  emits: ["open", "close"],
3429
3429
  setup(e, { emit: a }) {
3430
3430
  var C;
3431
- const t = a, l = Ke(), n = typeof window < "u" && typeof document < "u", i = e, o = x([]);
3432
- (C = l.default()) == null || C.forEach((w) => {
3433
- const { props: k } = w;
3431
+ const t = a, l = Ke(), n = typeof window < "u" && typeof document < "u", i = e, o = w([]);
3432
+ (C = l.default()) == null || C.forEach(($) => {
3433
+ const { props: k } = $;
3434
3434
  if (k) {
3435
3435
  const { title: F, disabled: z } = k;
3436
3436
  o.value.push({
@@ -3439,32 +3439,32 @@ const zo = (e) => (ge("data-v-b0efe321"), e = e(), ye(), e), Ao = ["onClick"], I
3439
3439
  });
3440
3440
  }
3441
3441
  });
3442
- const s = x(), d = x(), f = x(!1), h = x(0), v = x(""), p = x(!1), g = (w) => typeof w == "number" ? w + "px" : w;
3442
+ const s = w(), d = w(), f = w(!1), h = w(0), v = w(""), p = w(!1), g = ($) => typeof $ == "number" ? $ + "px" : $;
3443
3443
  ne(
3444
3444
  () => f.value,
3445
- (w) => {
3446
- n && (w ? document.body.classList.add("abl-overflow-hidden") : document.body.classList.remove("abl-overflow-hidden"));
3445
+ ($) => {
3446
+ n && ($ ? document.body.classList.add("abl-overflow-hidden") : document.body.classList.remove("abl-overflow-hidden"));
3447
3447
  },
3448
3448
  {
3449
3449
  deep: !0,
3450
3450
  immediate: !0
3451
3451
  }
3452
3452
  );
3453
- const m = (w, k) => {
3453
+ const m = ($, k) => {
3454
3454
  if (!o.value[k].disabled) {
3455
3455
  if (k === v.value && i.closeOnClickSelf) {
3456
- $(), setTimeout(() => {
3456
+ x(), setTimeout(() => {
3457
3457
  d.value.children[k].style.display = "none";
3458
3458
  }, i.duration);
3459
3459
  return;
3460
3460
  }
3461
3461
  p.value = !0, _(k);
3462
3462
  }
3463
- }, _ = async (w) => {
3464
- await y(), f.value = !0, v.value = w, Array.from(d.value.children).map((k, F) => {
3465
- F === w ? d.value.children[F].style.display = "block" : d.value.children[F].style.display = "none";
3463
+ }, _ = async ($) => {
3464
+ await y(), f.value = !0, v.value = $, Array.from(d.value.children).map((k, F) => {
3465
+ F === $ ? d.value.children[F].style.display = "block" : d.value.children[F].style.display = "none";
3466
3466
  }), t("open", v.value);
3467
- }, $ = () => {
3467
+ }, x = () => {
3468
3468
  f.value = !1, v.value = 99999, setTimeout(() => {
3469
3469
  p.value = !1;
3470
3470
  }, 300);
@@ -3472,20 +3472,20 @@ const zo = (e) => (ge("data-v-b0efe321"), e = e(), ye(), e), Ao = ["onClick"], I
3472
3472
  var F;
3473
3473
  if (!n)
3474
3474
  return;
3475
- const { top: w, bottom: k } = (F = s == null ? void 0 : s.value) == null ? void 0 : F.getBoundingClientRect();
3475
+ const { top: $, bottom: k } = (F = s == null ? void 0 : s.value) == null ? void 0 : F.getBoundingClientRect();
3476
3476
  k > 0 && (h.value = k - 1);
3477
3477
  }, b = () => {
3478
- i.closeOnClickMask && $();
3478
+ i.closeOnClickMask && x();
3479
3479
  }, V = Ie({
3480
3480
  ...Te(i),
3481
- onClose: $,
3481
+ onClose: x,
3482
3482
  current: v
3483
3483
  }), B = Lo(() => {
3484
- p.value && $();
3484
+ p.value && x();
3485
3485
  });
3486
3486
  return xe(Eo, V), Ne(() => {
3487
3487
  y();
3488
- }), (w, k) => (c(), u("div", {
3488
+ }), ($, k) => (c(), u("div", {
3489
3489
  class: "abl-dropdown",
3490
3490
  ref_key: "root",
3491
3491
  ref: B
@@ -3547,7 +3547,7 @@ const zo = (e) => (ge("data-v-b0efe321"), e = e(), ye(), e), Ao = ["onClick"], I
3547
3547
  ref_key: "childrenRef",
3548
3548
  ref: d
3549
3549
  }, [
3550
- R(w.$slots, "default", {}, void 0, !0)
3550
+ R($.$slots, "default", {}, void 0, !0)
3551
3551
  ], 544), [
3552
3552
  [te, f.value]
3553
3553
  ])
@@ -3606,8 +3606,8 @@ const To = (e) => (ge("data-v-046e593c"), e = e(), ye(), e), Do = ["active"], Fo
3606
3606
  },
3607
3607
  emits: ["update:modelValue", "change"],
3608
3608
  setup(e, { emit: a }) {
3609
- const t = Be(qo), l = x(!1);
3610
- t != null && t.activeColor || x("#2979ff"), t != null && t.inactiveColor || x("#606266");
3609
+ const t = Be(qo), l = w(!1);
3610
+ t != null && t.activeColor || w("#2979ff"), t != null && t.inactiveColor || w("#606266");
3611
3611
  const n = e, i = a, o = (s) => {
3612
3612
  t == null || t.onClose(), i("update:modelValue", s), i("change", s);
3613
3613
  };
@@ -3714,7 +3714,7 @@ const Zo = {
3714
3714
  },
3715
3715
  emits: ["update:modelValue", "focus", "blur", "clear"],
3716
3716
  setup(e, { expose: a, emit: t }) {
3717
- const l = e, n = t, i = x(), o = x(l.autofocus), s = x(!0), d = x(l.type), f = x(!1), h = D({
3717
+ const l = e, n = t, i = w(), o = w(l.autofocus), s = w(!0), d = w(l.type), f = w(!1), h = D({
3718
3718
  get: () => l.modelValue,
3719
3719
  set: (y) => {
3720
3720
  n("update:modelValue", y);
@@ -3731,7 +3731,7 @@ const Zo = {
3731
3731
  function _() {
3732
3732
  f.value = l.clearable && h.value;
3733
3733
  }
3734
- function $() {
3734
+ function x() {
3735
3735
  f.value = !1;
3736
3736
  }
3737
3737
  return a({
@@ -3754,7 +3754,7 @@ const Zo = {
3754
3754
  r("div", {
3755
3755
  class: A(["abl-input__wrapper", { "is-focus": o.value }]),
3756
3756
  onMouseenter: _,
3757
- onMouseleave: $
3757
+ onMouseleave: x
3758
3758
  }, [
3759
3759
  y.$slots.prefix || e.prefixIcon ? (c(), u("span", Qo, [
3760
3760
  R(y.$slots, "prefix", {}, void 0, !0),
@@ -3966,7 +3966,7 @@ const ht = (e) => (ge("data-v-28ab900b"), e = e(), ye(), e), hs = { class: "abl-
3966
3966
  },
3967
3967
  emits: ["update:fileList", "change", "remove"],
3968
3968
  setup(e, { emit: a }) {
3969
- const t = e, l = x([]), n = x(1), i = x(Array(t.maxCount).fill(!1)), o = x(), s = x();
3969
+ const t = e, l = w([]), n = w(1), i = w(Array(t.maxCount).fill(!1)), o = w(), s = w();
3970
3970
  ut(() => {
3971
3971
  d();
3972
3972
  });
@@ -3974,62 +3974,62 @@ const ht = (e) => (ge("data-v-28ab900b"), e = e(), ye(), e), hs = { class: "abl-
3974
3974
  l.value = [...t.fileList], l.value.length > t.maxCount && l.value.splice(t.maxCount), t.disabled ? n.value = l.value.length : l.value.length < t.maxCount ? n.value = t.fileList.length + 1 : n.value = t.maxCount;
3975
3975
  }
3976
3976
  const f = (B) => {
3977
- const C = /\.(jpg|jpeg|png|gif|webp)$/i, w = /^data:image/;
3978
- return C.test(B) || w.test(B);
3977
+ const C = /\.(jpg|jpeg|png|gif|webp)$/i, $ = /^data:image/;
3978
+ return C.test(B) || $.test(B);
3979
3979
  }, h = (B, C) => {
3980
3980
  var k;
3981
- const w = (k = B.dataTransfer) == null ? void 0 : k.files;
3982
- if (w != null && w.length) {
3983
- const F = w.length;
3981
+ const $ = (k = B.dataTransfer) == null ? void 0 : k.files;
3982
+ if ($ != null && $.length) {
3983
+ const F = $.length;
3984
3984
  for (let z = 0; z < F && C + z <= t.maxCount; z++)
3985
- m(w[z], C + z);
3985
+ m($[z], C + z);
3986
3986
  o.value[C].value = "";
3987
3987
  }
3988
3988
  }, v = (B) => {
3989
3989
  o.value[B].click();
3990
3990
  }, p = (B, C) => {
3991
- const w = B.target.files;
3992
- if (w != null && w.length) {
3993
- const k = w.length;
3991
+ const $ = B.target.files;
3992
+ if ($ != null && $.length) {
3993
+ const k = $.length;
3994
3994
  for (let F = 0; F < k && C + F < t.maxCount; F++)
3995
- m(w[F], C + F);
3995
+ m($[F], C + F);
3996
3996
  o.value[C].value = "";
3997
3997
  }
3998
3998
  }, g = a, m = function(B, C) {
3999
- t.beforeUpload(B) ? (t.maxCount > n.value && n.value++, t.uploadMode === "base64" && (i.value[C] = !0, _(B, C)), t.uploadMode === "custom" && (i.value[C] = !0, $(B, C))) : _e(() => {
3999
+ t.beforeUpload(B) ? (t.maxCount > n.value && n.value++, t.uploadMode === "base64" && (i.value[C] = !0, _(B, C)), t.uploadMode === "custom" && (i.value[C] = !0, x(B, C))) : _e(() => {
4000
4000
  V(t.errorInfo);
4001
4001
  });
4002
4002
  }, _ = (B, C) => {
4003
- var w = new FileReader();
4004
- w.readAsDataURL(B), w.onloadstart = function(k) {
4003
+ var $ = new FileReader();
4004
+ $.readAsDataURL(B), $.onloadstart = function(k) {
4005
4005
  console.log("开始读取 onloadstart:", k);
4006
- }, w.onabort = function(k) {
4006
+ }, $.onabort = function(k) {
4007
4007
  console.log("读取中止 onabort:", k);
4008
- }, w.onerror = function(k) {
4008
+ }, $.onerror = function(k) {
4009
4009
  console.log("读取错误 onerror:", k);
4010
- }, w.onprogress = function(k) {
4010
+ }, $.onprogress = function(k) {
4011
4011
  k.loaded === k.total && (i.value[C] = !1);
4012
- }, w.onload = function(k) {
4012
+ }, $.onload = function(k) {
4013
4013
  var F, z;
4014
4014
  t.isUrl ? l.value.push({
4015
4015
  name: B.name,
4016
4016
  url: (F = k.target) == null ? void 0 : F.result
4017
4017
  }) : l.value.push((z = k.target) == null ? void 0 : z.result), g("update:fileList", l.value), g("change", l.value);
4018
- }, w.onloadend = function(k) {
4018
+ }, $.onloadend = function(k) {
4019
4019
  console.log("读取结束 onloadend:", k);
4020
4020
  };
4021
- }, $ = (B, C) => {
4022
- t.customRequest(B).then((w) => {
4023
- l.value.push(w), g("update:fileList", l.value), g("change", l.value);
4024
- }).catch((w) => {
4025
- t.maxCount > 1 && (n.value = l.value.length + 1), V(w);
4021
+ }, x = (B, C) => {
4022
+ t.customRequest(B).then(($) => {
4023
+ l.value.push($), g("update:fileList", l.value), g("change", l.value);
4024
+ }).catch(($) => {
4025
+ t.maxCount > 1 && (n.value = l.value.length + 1), V($);
4026
4026
  }).finally(() => {
4027
4027
  i.value[C] = !1;
4028
4028
  });
4029
4029
  }, y = (B, C) => {
4030
4030
  if (f(C)) {
4031
- const w = l.value.slice(0, B).filter((k) => !f(t.isUrl ? k.url : k));
4032
- s.value[B - w.length].onPreview();
4031
+ const $ = l.value.slice(0, B).filter((k) => !f(t.isUrl ? k.url : k));
4032
+ s.value[B - $.length].onPreview();
4033
4033
  } else
4034
4034
  window.open(C);
4035
4035
  }, b = (B) => {
@@ -4040,9 +4040,9 @@ const ht = (e) => (ge("data-v-28ab900b"), e = e(), ye(), e), hs = { class: "abl-
4040
4040
  Nt({ type: "error", text: B, duration: 1e3, top: 100 });
4041
4041
  };
4042
4042
  return (B, C) => (c(), u("div", hs, [
4043
- (c(!0), u(Y, null, ae(n.value, (w) => (c(), u("div", {
4043
+ (c(!0), u(Y, null, ae(n.value, ($) => (c(), u("div", {
4044
4044
  class: "abl-upload-item",
4045
- key: w
4045
+ key: $
4046
4046
  }, [
4047
4047
  r("div", gs, [
4048
4048
  J(r("div", {
@@ -4051,8 +4051,8 @@ const ht = (e) => (ge("data-v-28ab900b"), e = e(), ye(), e), hs = { class: "abl-
4051
4051
  }, ["stop", "prevent"])),
4052
4052
  onDragover: C[2] || (C[2] = K(() => {
4053
4053
  }, ["stop", "prevent"])),
4054
- onDrop: K((k) => e.disabled ? () => !1 : h(k, w - 1), ["stop", "prevent"]),
4055
- onClick: (k) => e.disabled ? () => !1 : v(w - 1)
4054
+ onDrop: K((k) => e.disabled ? () => !1 : h(k, $ - 1), ["stop", "prevent"]),
4055
+ onClick: (k) => e.disabled ? () => !1 : v($ - 1)
4056
4056
  }, [
4057
4057
  r("input", {
4058
4058
  ref_for: !0,
@@ -4063,7 +4063,7 @@ const ht = (e) => (ge("data-v-28ab900b"), e = e(), ye(), e), hs = { class: "abl-
4063
4063
  }, ["stop"])),
4064
4064
  accept: e.accept,
4065
4065
  multiple: e.multiple,
4066
- onChange: (k) => p(k, w - 1),
4066
+ onChange: (k) => p(k, $ - 1),
4067
4067
  style: { display: "none" }
4068
4068
  }, null, 40, bs),
4069
4069
  r("div", null, [
@@ -4075,7 +4075,7 @@ const ht = (e) => (ge("data-v-28ab900b"), e = e(), ye(), e), hs = { class: "abl-
4075
4075
  ])
4076
4076
  ])
4077
4077
  ], 42, ys), [
4078
- [te, !i.value[w - 1] && !l.value[w - 1]]
4078
+ [te, !i.value[$ - 1] && !l.value[$ - 1]]
4079
4079
  ]),
4080
4080
  J(r("div", xs, [
4081
4081
  de(tl, {
@@ -4085,30 +4085,30 @@ const ht = (e) => (ge("data-v-28ab900b"), e = e(), ye(), e), hs = { class: "abl-
4085
4085
  size: "small"
4086
4086
  }, null, 8, ["tip"])
4087
4087
  ], 512), [
4088
- [te, i.value[w - 1]]
4088
+ [te, i.value[$ - 1]]
4089
4089
  ]),
4090
- l.value[w - 1] ? (c(), u("div", $s, [
4091
- f(e.isUrl ? l.value[w - 1].url : l.value[w - 1]) ? (c(), oe(Qt, {
4090
+ l.value[$ - 1] ? (c(), u("div", $s, [
4091
+ f(e.isUrl ? l.value[$ - 1].url : l.value[$ - 1]) ? (c(), oe(Qt, {
4092
4092
  key: 0,
4093
4093
  ref_for: !0,
4094
4094
  ref_key: "imageRef",
4095
4095
  ref: s,
4096
4096
  bordered: !1,
4097
4097
  width: "82",
4098
- src: e.isUrl ? l.value[w - 1].url : l.value[w - 1],
4099
- previewSrcList: [e.isUrl ? l.value[w - 1].url : l.value[w - 1]],
4100
- name: e.isUrl ? l.value[w - 1].name : ""
4098
+ src: e.isUrl ? l.value[$ - 1].url : l.value[$ - 1],
4099
+ previewSrcList: [e.isUrl ? l.value[$ - 1].url : l.value[$ - 1]],
4100
+ name: e.isUrl ? l.value[$ - 1].name : ""
4101
4101
  }, null, 8, ["src", "previewSrcList", "name"])) : I("", !0),
4102
4102
  r("div", ks, [
4103
4103
  r("a", {
4104
4104
  class: "m-icon",
4105
4105
  title: "preview",
4106
- onClick: (k) => y(w - 1, e.isUrl ? l.value[w - 1].url : l.value[w - 1])
4106
+ onClick: (k) => y($ - 1, e.isUrl ? l.value[$ - 1].url : l.value[$ - 1])
4107
4107
  }, Bs, 8, Cs),
4108
4108
  J(r("a", {
4109
4109
  class: "m-icon",
4110
4110
  title: "delete",
4111
- onClick: K((k) => b(w - 1), ["prevent", "stop"])
4111
+ onClick: K((k) => b($ - 1), ["prevent", "stop"])
4112
4112
  }, zs, 8, Vs), [
4113
4113
  [te, !e.disabled]
4114
4114
  ])
@@ -4195,14 +4195,14 @@ const Rs = { class: "abl-select-warpper-content" }, Ms = { class: "abl-select-ha
4195
4195
  pure: !0,
4196
4196
  trigger: "click",
4197
4197
  transitionName: "abl-select-menu"
4198
- }), h = x(""), v = x(), p = x(null), g = x(""), m = x(), _ = x(o.modelValue), $ = x(!1), y = D(() => {
4198
+ }), h = w(""), v = w(), p = w(null), g = w(""), m = w(), _ = w(o.modelValue), x = w(!1), y = D(() => {
4199
4199
  var O;
4200
4200
  return { width: (((O = v.value) == null ? void 0 : O.getBoundingClientRect().width) || 0) + "px" };
4201
4201
  }), b = Ie({
4202
4202
  list: o == null ? void 0 : o.options
4203
- }), V = x(!1), B = x(
4203
+ }), V = w(!1), B = w(
4204
4204
  o.search && g.value === "focus" && V.value
4205
- ), C = D(() => o.disabled), w = x(""), k = x([]), F = () => (l == null ? void 0 : l.default) && (l == null ? void 0 : l.default()) || [], z = () => {
4205
+ ), C = D(() => o.disabled), $ = w(""), k = w([]), F = () => (l == null ? void 0 : l.default) && (l == null ? void 0 : l.default()) || [], z = () => {
4206
4206
  var M;
4207
4207
  try {
4208
4208
  l.default && (b.list = [], (M = l.default()) == null || M.map((O) => {
@@ -4251,7 +4251,7 @@ const Rs = { class: "abl-select-warpper-content" }, Ms = { class: "abl-select-ha
4251
4251
  });
4252
4252
  const N = (M) => {
4253
4253
  if (!B.value)
4254
- w.value = "";
4254
+ $.value = "";
4255
4255
  else {
4256
4256
  const O = s.filter((j) => {
4257
4257
  let le = M.target.value.toLowerCase();
@@ -4284,9 +4284,9 @@ const Rs = { class: "abl-select-warpper-content" }, Ms = { class: "abl-select-ha
4284
4284
  var M;
4285
4285
  (M = p.value) == null || M.focus(), !B.value && g.value === "focus" && k.value.length > 0 && (k.value.pop(), d("change", yt(k.value)));
4286
4286
  }, P = () => {
4287
- $.value = !1, g.value = "blur", w.value = "";
4287
+ x.value = !1, g.value = "blur", $.value = "";
4288
4288
  }, X = () => {
4289
- b.list = s, $.value = !0;
4289
+ b.list = s, x.value = !0;
4290
4290
  }, Z = () => {
4291
4291
  d("update:modelValue", ""), d("change", ""), k.value.splice(0, k.value.length);
4292
4292
  };
@@ -4396,14 +4396,14 @@ const Rs = { class: "abl-select-warpper-content" }, Ms = { class: "abl-select-ha
4396
4396
  class: A(["abl-select-input-focus", B.value ? "abl-select-input-search" : ""]),
4397
4397
  ref_key: "inputFocus",
4398
4398
  ref: p,
4399
- "onUpdate:modelValue": O[1] || (O[1] = (j) => w.value = j),
4399
+ "onUpdate:modelValue": O[1] || (O[1] = (j) => $.value = j),
4400
4400
  onFocus: O[2] || (O[2] = (j) => X()),
4401
4401
  onInput: N,
4402
4402
  placeholder: h.value
4403
4403
  }, null, 42, Es), [
4404
- [Rt, w.value]
4404
+ [Rt, $.value]
4405
4405
  ]),
4406
- $.value ? I("", !0) : J((c(), u("span", {
4406
+ x.value ? I("", !0) : J((c(), u("span", {
4407
4407
  key: 0,
4408
4408
  class: "abl-select-placeholder",
4409
4409
  style: E({ "line-height": e.height })
@@ -4482,7 +4482,7 @@ const Ws = {
4482
4482
  }
4483
4483
  },
4484
4484
  setup(e) {
4485
- const a = e, t = x(a.col), l = x(), n = x(), i = x(), o = x(), s = x([]), d = D(() => s.value.length);
4485
+ const a = e, t = w(a.col), l = w(), n = w(), i = w(), o = w(), s = w([]), d = D(() => s.value.length);
4486
4486
  ut(() => {
4487
4487
  l.value && (a.bordered ? n.value = Array.from(l.value.children).filter((p) => p.className === "abl-desc-item-bordered") : n.value = Array.from(l.value.children).filter((p) => p.className === "abl-desc-item"));
4488
4488
  }, { flush: "post" }), ne(n, (p) => {
@@ -4501,16 +4501,16 @@ const Ws = {
4501
4501
  return;
4502
4502
  const m = p.length;
4503
4503
  let _ = [];
4504
- for (let $ = 0; $ < m; $++) {
4504
+ for (let x = 0; x < m; x++) {
4505
4505
  const y = {
4506
- span: Math.min(p[$].dataset.span, g),
4507
- element: p[$]
4506
+ span: Math.min(p[x].dataset.span, g),
4507
+ element: p[x]
4508
4508
  };
4509
- h(_) < g ? (y.span = Math.min(y.span, g - h(_)), $ === m - 1 && (y.span = g - h(_)), _.push(y), $ === m - 1 && s.value.push(_)) : (s.value.push(_), _ = [y], $ === m - 1 && (y.span = g, s.value.push(_)));
4509
+ h(_) < g ? (y.span = Math.min(y.span, g - h(_)), x === m - 1 && (y.span = g - h(_)), _.push(y), x === m - 1 && s.value.push(_)) : (s.value.push(_), _ = [y], x === m - 1 && (y.span = g, s.value.push(_)));
4510
4510
  }
4511
4511
  a.bordered ? _e(() => {
4512
- s.value.forEach(($, y) => {
4513
- $.forEach((b) => {
4512
+ s.value.forEach((x, y) => {
4513
+ x.forEach((b) => {
4514
4514
  const V = Array.from(b.element.children), B = V[0].cloneNode(!0);
4515
4515
  B.colSpan = 1, v(B, a.labelStyle), v(B, JSON.parse(b.element.dataset.labelStyle));
4516
4516
  const C = V[1].cloneNode(!0);
@@ -4518,11 +4518,11 @@ const Ws = {
4518
4518
  });
4519
4519
  });
4520
4520
  }) : _e(() => {
4521
- p.forEach(($, y) => {
4522
- const b = Array.from($.children), V = b[0];
4523
- v(V, a.labelStyle), v(V, JSON.parse($.dataset.labelStyle));
4521
+ p.forEach((x, y) => {
4522
+ const b = Array.from(x.children), V = b[0];
4523
+ v(V, a.labelStyle), v(V, JSON.parse(x.dataset.labelStyle));
4524
4524
  const B = b[1];
4525
- v(B, a.contentStyle), v(B, JSON.parse($.dataset.contentStyle)), i.value[y].appendChild($);
4525
+ v(B, a.contentStyle), v(B, JSON.parse(x.dataset.contentStyle)), i.value[y].appendChild(x);
4526
4526
  });
4527
4527
  });
4528
4528
  }
@@ -4571,12 +4571,12 @@ const Ws = {
4571
4571
  }))), 128)) : I("", !0)
4572
4572
  ])) : (c(), u("tbody", Us, [
4573
4573
  (c(!0), u(Y, null, ae(s.value, (m, _) => (c(), u("tr", { key: _ }, [
4574
- (c(!0), u(Y, null, ae(m, ($, y) => (c(), u("td", {
4574
+ (c(!0), u(Y, null, ae(m, (x, y) => (c(), u("td", {
4575
4575
  ref_for: !0,
4576
4576
  ref_key: "cols",
4577
4577
  ref: i,
4578
4578
  class: "abl-item-td",
4579
- colspan: $.span,
4579
+ colspan: x.span,
4580
4580
  key: y
4581
4581
  }, null, 8, Xs))), 128))
4582
4582
  ]))), 128))
@@ -4649,7 +4649,7 @@ function oi(e, a) {
4649
4649
  return e > a && e > Bt ? "horizontal" : a > e && a > Bt ? "vertical" : "";
4650
4650
  }
4651
4651
  function si() {
4652
- const e = x(0), a = x(0), t = x(0), l = x(0), n = x(0), i = x(0), o = x(0), s = x(0), d = x(""), f = () => d.value === "vertical", h = () => d.value === "horizontal", v = () => {
4652
+ const e = w(0), a = w(0), t = w(0), l = w(0), n = w(0), i = w(0), o = w(0), s = w(0), d = w(""), f = () => d.value === "vertical", h = () => d.value === "horizontal", v = () => {
4653
4653
  n.value = 0, i.value = 0, o.value = 0, s.value = 0, d.value = "";
4654
4654
  };
4655
4655
  return {
@@ -4767,14 +4767,14 @@ const ll = (e) => (ge("data-v-f9f5ec36"), e = e(), ye(), e), ci = {
4767
4767
  "update:modelValue"
4768
4768
  ],
4769
4769
  setup(e, { emit: a }) {
4770
- const t = e, l = a, n = x(0);
4770
+ const t = e, l = a, n = w(0);
4771
4771
  let i, o;
4772
- const s = x(), d = x(), f = si();
4773
- x(), x(), x([]);
4772
+ const s = w(), d = w(), f = si();
4773
+ w(), w(), w([]);
4774
4774
  const h = D(() => {
4775
4775
  const { marks: S, max: W, min: T } = t;
4776
4776
  return Object.keys(S).map(parseFloat).sort((ce, pe) => ce - pe).filter((ce) => ce >= +T && ce <= +W);
4777
- }), v = D(() => Number(t.max) - Number(t.min)), p = x([]), g = x(), m = D(() => {
4777
+ }), v = D(() => Number(t.max) - Number(t.min)), p = w([]), g = w(), m = D(() => {
4778
4778
  const S = "abl-range";
4779
4779
  return {
4780
4780
  [S]: !0,
@@ -4788,17 +4788,17 @@ const ll = (e) => (ge("data-v-f9f5ec36"), e = e(), ye(), e), ci = {
4788
4788
  [S]: !0,
4789
4789
  [`${S}-vertical`]: t.vertical
4790
4790
  };
4791
- }), $ = D(() => ({
4791
+ }), x = D(() => ({
4792
4792
  background: t.inactiveColor
4793
4793
  })), y = D(() => ({
4794
4794
  borderColor: t.buttonColor
4795
- })), b = x(!1), V = (S) => !!t.range && Array.isArray(S), B = () => {
4795
+ })), b = w(!1), V = (S) => !!t.range && Array.isArray(S), B = () => {
4796
4796
  const { modelValue: S, min: W } = t;
4797
4797
  return V(S) ? `${(S[1] - S[0]) * 100 / v.value}%` : `${(S - Number(W)) * 100 / v.value}%`;
4798
4798
  }, C = () => {
4799
4799
  const { modelValue: S, min: W } = t;
4800
4800
  return V(S) ? `${(S[0] - Number(W)) * 100 / v.value}%` : "0%";
4801
- }, w = D(() => t.vertical ? {
4801
+ }, $ = D(() => t.vertical ? {
4802
4802
  height: B(),
4803
4803
  top: C(),
4804
4804
  background: t.activeColor,
@@ -4885,7 +4885,7 @@ const ll = (e) => (ge("data-v-f9f5ec36"), e = e(), ye(), e), ci = {
4885
4885
  r("div", {
4886
4886
  ref_key: "root",
4887
4887
  ref: s,
4888
- style: E($.value),
4888
+ style: E(x.value),
4889
4889
  class: A(m.value),
4890
4890
  onClick: K(P, ["stop"])
4891
4891
  }, [
@@ -4904,7 +4904,7 @@ const ll = (e) => (ge("data-v-f9f5ec36"), e = e(), ye(), e), ci = {
4904
4904
  ])) : I("", !0),
4905
4905
  r("div", {
4906
4906
  class: "abl-range-bar",
4907
- style: E(w.value)
4907
+ style: E($.value)
4908
4908
  }, [
4909
4909
  e.range ? (c(), u(Y, { key: 0 }, ae([0, 1], (T) => r("div", {
4910
4910
  key: T,
@@ -5039,16 +5039,16 @@ const gi = { class: "abl-pagination-wrap" }, yi = {
5039
5039
  },
5040
5040
  emits: ["change", "jump", "update:current"],
5041
5041
  setup(e, { emit: a }) {
5042
- const t = e, l = Ke(), n = x(t.current), i = x(!1), o = x(!1), s = D(() => Math.ceil(t.total / t.pageSize)), d = D(() => h(n.value).filter(
5042
+ const t = e, l = Ke(), n = w(t.current), i = w(!1), o = w(!1), s = D(() => Math.ceil(t.total / t.pageSize)), d = D(() => h(n.value).filter(
5043
5043
  (m) => m !== 1 && m !== s.value
5044
5044
  )), f = a;
5045
5045
  ne(n, (m) => {
5046
5046
  f("update:current", m), f("change", m, t.pageSize);
5047
5047
  });
5048
5048
  const h = (m) => {
5049
- var _ = [], $ = Math.floor(t.pagerCount / 2), y = {
5050
- start: m - $,
5051
- end: m + $
5049
+ var _ = [], x = Math.floor(t.pagerCount / 2), y = {
5050
+ start: m - x,
5051
+ end: m + x
5052
5052
  };
5053
5053
  y.start < 1 && (y.end = y.end + (1 - y.start), y.start = 1), y.end > s.value && (y.start = y.start - (y.end - s.value), y.end = s.value), y.start < 1 && (y.start = 1), y.start > 1 ? i.value = !0 : i.value = !1, y.end < s.value ? o.value = !0 : o.value = !1;
5054
5054
  for (let b = y.start; b <= y.end; b++)
@@ -5070,7 +5070,7 @@ const gi = { class: "abl-pagination-wrap" }, yi = {
5070
5070
  e.showTotal ? (c(), u("span", yi, "total " + H(e.total) + " items", 1)) : I("", !0),
5071
5071
  r("div", {
5072
5072
  class: A(["abl-pagination-item", { disabled: n.value === 1 }]),
5073
- onClick: _[0] || (_[0] = ($) => !se(l).itemRender && g(n.value - 1))
5073
+ onClick: _[0] || (_[0] = (x) => !se(l).itemRender && g(n.value - 1))
5074
5074
  }, [
5075
5075
  R(m.$slots, "itemRender", {
5076
5076
  page: n.value === 1 ? 1 : n.value - 1,
@@ -5081,7 +5081,7 @@ const gi = { class: "abl-pagination-wrap" }, yi = {
5081
5081
  ], 2),
5082
5082
  r("div", {
5083
5083
  class: A(["abl-pagination-item", { active: n.value === 1 }]),
5084
- onClick: _[1] || (_[1] = ($) => !se(l).itemRender && g(1))
5084
+ onClick: _[1] || (_[1] = (x) => !se(l).itemRender && g(1))
5085
5085
  }, [
5086
5086
  R(m.$slots, "itemRender", {
5087
5087
  page: 1,
@@ -5097,16 +5097,16 @@ const gi = { class: "abl-pagination-wrap" }, yi = {
5097
5097
  }, xi, 512), [
5098
5098
  [te, i.value && d.value[0] - 1 > 1]
5099
5099
  ]),
5100
- (c(!0), u(Y, null, ae(d.value, ($, y) => (c(), u("div", {
5101
- class: A(["abl-pagination-item", { active: n.value === $ }]),
5100
+ (c(!0), u(Y, null, ae(d.value, (x, y) => (c(), u("div", {
5101
+ class: A(["abl-pagination-item", { active: n.value === x }]),
5102
5102
  key: y,
5103
- onClick: (b) => !se(l).itemRender && g($)
5103
+ onClick: (b) => !se(l).itemRender && g(x)
5104
5104
  }, [
5105
5105
  R(m.$slots, "itemRender", {
5106
- page: $,
5106
+ page: x,
5107
5107
  type: "page"
5108
5108
  }, () => [
5109
- Q(H($), 1)
5109
+ Q(H(x), 1)
5110
5110
  ])
5111
5111
  ], 10, $i))), 128)),
5112
5112
  J(r("div", {
@@ -5118,7 +5118,7 @@ const gi = { class: "abl-pagination-wrap" }, yi = {
5118
5118
  ]),
5119
5119
  J(r("div", {
5120
5120
  class: A(["abl-pagination-item", { active: n.value === s.value }]),
5121
- onClick: _[2] || (_[2] = ($) => !se(l).itemRender && g(s.value))
5121
+ onClick: _[2] || (_[2] = (x) => !se(l).itemRender && g(s.value))
5122
5122
  }, [
5123
5123
  R(m.$slots, "itemRender", {
5124
5124
  page: s.value,
@@ -5131,7 +5131,7 @@ const gi = { class: "abl-pagination-wrap" }, yi = {
5131
5131
  ]),
5132
5132
  r("div", {
5133
5133
  class: A(["abl-pagination-item", { disabled: n.value === s.value }]),
5134
- onClick: _[3] || (_[3] = ($) => !se(l).itemRender && g(n.value + 1))
5134
+ onClick: _[3] || (_[3] = (x) => !se(l).itemRender && g(n.value + 1))
5135
5135
  }, [
5136
5136
  R(m.$slots, "itemRender", {
5137
5137
  page: s.value === n.value ? n.value : n.value + 1,