y-design-ssr 1.1.1 → 1.1.3
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/libs/button/index.css +1 -1
- package/libs/button/index.umd.js +2 -2
- package/libs/cell/index.css +1 -1
- package/libs/cell/index.umd.js +2 -2
- package/libs/checkbox/index.css +1 -1
- package/libs/checkbox/index.umd.js +2 -2
- package/libs/checkboxGroup/index.css +1 -1
- package/libs/checkboxGroup/index.umd.js +2 -2
- package/libs/col/index.css +1 -1
- package/libs/col/index.umd.js +2 -2
- package/libs/countDown/index.css +1 -1
- package/libs/countDown/index.umd.js +2 -2
- package/libs/dialog/index.css +1 -1
- package/libs/dialog/index.umd.js +2 -2
- package/libs/dropdown/index.css +1 -1
- package/libs/dropdown/index.umd.js +2 -2
- package/libs/dropdownItem/index.css +1 -1
- package/libs/dropdownItem/index.umd.js +2 -2
- package/libs/empty/index.css +1 -1
- package/libs/empty/index.umd.js +2 -2
- package/libs/form/index.css +1 -1
- package/libs/form/index.umd.js +2 -2
- package/libs/formItem/index.css +1 -1
- package/libs/formItem/index.umd.js +2 -2
- package/libs/icon/index.css +1 -1
- package/libs/icon/index.umd.js +2 -2
- package/libs/index.css +1 -1
- package/libs/index.mjs +127 -125
- package/libs/index.umd.js +2 -2
- package/libs/input/index.css +1 -1
- package/libs/input/index.umd.js +2 -2
- package/libs/layout/index.css +1 -1
- package/libs/layout/index.umd.js +1 -1
- package/libs/list/index.css +1 -1
- package/libs/list/index.umd.js +2 -2
- package/libs/loading/index.css +1 -1
- package/libs/loading/index.umd.js +2 -2
- package/libs/mask/index.css +1 -1
- package/libs/mask/index.umd.js +2 -2
- package/libs/pagination/index.css +1 -1
- package/libs/pagination/index.umd.js +2 -2
- package/libs/popup/index.css +1 -1
- package/libs/popup/index.umd.js +2 -2
- package/libs/progress/index.css +1 -1
- package/libs/progress/index.umd.js +2 -2
- package/libs/pullRefresh/index.css +1 -1
- package/libs/pullRefresh/index.umd.js +2 -2
- package/libs/row/index.css +1 -1
- package/libs/row/index.umd.js +2 -2
- package/libs/slider/index.css +1 -1
- package/libs/slider/index.umd.js +2 -2
- package/libs/stepper/index.css +1 -1
- package/libs/stepper/index.umd.js +2 -2
- package/libs/style/index.css +1 -1
- package/libs/style/index.umd.js +1 -1
- package/libs/swipe/index.css +1 -1
- package/libs/swipe/index.mjs +92 -90
- package/libs/swipe/index.umd.js +2 -2
- package/libs/swipeItem/index.css +1 -1
- package/libs/swipeItem/index.umd.js +1 -1
- package/libs/switch/index.css +1 -1
- package/libs/switch/index.umd.js +1 -1
- package/libs/tabs/index.css +1 -1
- package/libs/tabs/index.mjs +122 -120
- package/libs/tabs/index.umd.js +2 -2
- package/libs/toast/index.css +1 -1
- package/libs/toast/index.umd.js +2 -2
- package/libs/tooltip/index.css +1 -1
- package/libs/tooltip/index.umd.js +2 -2
- package/package.json +1 -1
package/libs/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as B, reactive as F, getCurrentInstance as ne, provide as Vt, isVNode as he, inject as Pt, onUnmounted as ye, computed as
|
|
1
|
+
import { ref as B, reactive as F, getCurrentInstance as ne, provide as Vt, isVNode as he, inject as Pt, onUnmounted as ye, computed as I, defineComponent as z, createVNode as s, watch as j, onMounted as K, nextTick as re, onBeforeUnmount as be, onBeforeUpdate as rt, onUpdated as vn, createTextVNode as gn, Fragment as He, createApp as Se, h as Le, Transition as We, withDirectives as ee, vShow as ge, Teleport as ut, vModelText as _t, mergeProps as Ie, vModelDynamic as pn, resolveDirective as mt, watchEffect as hn, unref as vt } from "vue";
|
|
2
2
|
const yn = {
|
|
3
3
|
"pull-refresh": {
|
|
4
4
|
pulling: "下拉刷新...",
|
|
@@ -80,7 +80,7 @@ const W = (e) => isNaN(Number(e)) && typeof e == "string" ? e : `${e}px`, ht = (
|
|
|
80
80
|
if (t && o) {
|
|
81
81
|
const { children: l, addChild: a, removeChild: i } = t;
|
|
82
82
|
return a(o), ye(() => i(o)), {
|
|
83
|
-
index:
|
|
83
|
+
index: I(() => l.indexOf(o)),
|
|
84
84
|
parent: t
|
|
85
85
|
};
|
|
86
86
|
}
|
|
@@ -107,7 +107,7 @@ const W = (e) => isNaN(Number(e)) && typeof e == "string" ? e : `${e}px`, ht = (
|
|
|
107
107
|
parent: l
|
|
108
108
|
} = de(Ht);
|
|
109
109
|
!e.clonenNode && o && (l == null || l.children.push(o));
|
|
110
|
-
const a =
|
|
110
|
+
const a = I(() => e.clonenNode ? e.index : l == null ? void 0 : l.children.findIndex((n) => n.proxy === (o == null ? void 0 : o.proxy))), i = I(() => {
|
|
111
111
|
const n = `${(l == null ? void 0 : l.itemDetail.size) || 0}px`;
|
|
112
112
|
let r = "auto";
|
|
113
113
|
const c = `${(l == null ? void 0 : l.itemDetail.space) || 0}px`;
|
|
@@ -231,7 +231,7 @@ const W = (e) => isNaN(Number(e)) && typeof e == "string" ? e : `${e}px`, ht = (
|
|
|
231
231
|
if (!e.lazy)
|
|
232
232
|
return;
|
|
233
233
|
const C = r.size + r.space, _ = i.length * C;
|
|
234
|
-
let R = -(c.offset +
|
|
234
|
+
let R = -(c.offset + L.offset) - c.cloneNodeCount * C;
|
|
235
235
|
R < 0 && (R += _);
|
|
236
236
|
const q = R + c.viewportSize;
|
|
237
237
|
for (let Y = 0; Y < i.length; Y++)
|
|
@@ -269,17 +269,17 @@ const W = (e) => isNaN(Number(e)) && typeof e == "string" ? e : `${e}px`, ht = (
|
|
|
269
269
|
if (re(y).catch(() => {
|
|
270
270
|
}), e.touchable && v.value) {
|
|
271
271
|
const C = v.value;
|
|
272
|
-
C.addEventListener("touchstart", X, !1), C.addEventListener("mousedown", X, !1), C.addEventListener("touchmove", le, !1), C.addEventListener("mousemove", le, !1), C.addEventListener("touchend",
|
|
272
|
+
C.addEventListener("touchstart", X, !1), C.addEventListener("mousedown", X, !1), C.addEventListener("touchmove", le, !1), C.addEventListener("mousemove", le, !1), C.addEventListener("touchend", V, !1), C.addEventListener("mouseup", V, !1), C.addEventListener("mouseleave", V, !1), C.addEventListener("touchcancel", V, !1);
|
|
273
273
|
}
|
|
274
274
|
window.addEventListener("resize", y, !1), window.addEventListener("orientationchange", y, !1);
|
|
275
275
|
}), be(() => {
|
|
276
|
-
if (
|
|
276
|
+
if (P(), e.touchable && v.value) {
|
|
277
277
|
const C = v.value;
|
|
278
|
-
C.removeEventListener("touchstart", X, !1), C.removeEventListener("mousedown", X, !1), C.removeEventListener("mousemove", le, !1), C.removeEventListener("touchmove", le, !1), C.removeEventListener("mouseup",
|
|
278
|
+
C.removeEventListener("touchstart", X, !1), C.removeEventListener("mousedown", X, !1), C.removeEventListener("mousemove", le, !1), C.removeEventListener("touchmove", le, !1), C.removeEventListener("mouseup", V, !1), C.removeEventListener("touchend", V, !1), C.removeEventListener("mouseleave", V, !1), C.removeEventListener("touchcancel", V, !1);
|
|
279
279
|
}
|
|
280
280
|
window.removeEventListener("resize", y, !1), window.removeEventListener("orientationchange", y, !1);
|
|
281
281
|
});
|
|
282
|
-
const $ =
|
|
282
|
+
const $ = I(() => {
|
|
283
283
|
let C = 0;
|
|
284
284
|
switch (e.align) {
|
|
285
285
|
case Re.start:
|
|
@@ -295,14 +295,14 @@ const W = (e) => isNaN(Number(e)) && typeof e == "string" ? e : `${e}px`, ht = (
|
|
|
295
295
|
C = 0;
|
|
296
296
|
}
|
|
297
297
|
return C;
|
|
298
|
-
}), f =
|
|
298
|
+
}), f = I(() => e.loop && i.length > 1), S = (C) => {
|
|
299
299
|
const _ = r.size + r.space;
|
|
300
300
|
f.value ? c.offset = -_ * (C + c.cloneNodeCount) + $.value : (c.offset = -_ * C + $.value, e.align !== "center" && (C === 0 && (c.offset = 0), C === i.length - 1 && (c.offset = -_ * C + c.viewportSize - r.size)));
|
|
301
301
|
}, w = () => {
|
|
302
302
|
S(n.value), o("afterChange", n.value);
|
|
303
303
|
}, N = (C) => (i.length + C) % i.length, h = (C, _ = !0) => {
|
|
304
|
-
n.value = N(C), S(C), g(), o("change", n.value), _ ? (
|
|
305
|
-
|
|
304
|
+
n.value = N(C), S(C), g(), o("change", n.value), _ ? (L.transitionEnabled = !0, x.value && x.value.addEventListener("transitionend", () => {
|
|
305
|
+
L.transitionEnabled = !1, w();
|
|
306
306
|
}, {
|
|
307
307
|
once: !0
|
|
308
308
|
})) : w();
|
|
@@ -312,13 +312,13 @@ const W = (e) => isNaN(Number(e)) && typeof e == "string" ? e : `${e}px`, ht = (
|
|
|
312
312
|
h(n.value + 1, C);
|
|
313
313
|
};
|
|
314
314
|
let k = null;
|
|
315
|
-
const
|
|
315
|
+
const P = () => {
|
|
316
316
|
e.autoplayTime && k && clearInterval(k);
|
|
317
317
|
}, O = () => {
|
|
318
318
|
e.autoplayTime && i.length > 1 && (k && clearInterval(k), k = setInterval(() => {
|
|
319
319
|
T();
|
|
320
320
|
}, Number(e.autoplayTime)));
|
|
321
|
-
},
|
|
321
|
+
}, L = F({
|
|
322
322
|
// 拖拽中
|
|
323
323
|
isDragging: !1,
|
|
324
324
|
// 是否首次拖动
|
|
@@ -332,41 +332,43 @@ const W = (e) => isNaN(Number(e)) && typeof e == "string" ? e : `${e}px`, ht = (
|
|
|
332
332
|
// 开始拖动时间
|
|
333
333
|
startTime: /* @__PURE__ */ new Date(),
|
|
334
334
|
// 是否在执行动画
|
|
335
|
-
transitionEnabled: !1
|
|
335
|
+
transitionEnabled: !1,
|
|
336
|
+
// 当前次拖拽不满足翻页条件
|
|
337
|
+
isDissatisfy: !1
|
|
336
338
|
}), X = (C) => {
|
|
337
|
-
if (
|
|
339
|
+
if (L.transitionEnabled)
|
|
338
340
|
return;
|
|
339
341
|
let _ = 0, R = 0;
|
|
340
|
-
"touches" in C ? (_ = C.touches[0].clientX, R = C.touches[0].clientY) : (_ = C.clientX, R = C.clientY),
|
|
342
|
+
"touches" in C ? (_ = C.touches[0].clientX, R = C.touches[0].clientY) : (_ = C.clientX, R = C.clientY), L.startX = _, L.startY = R, L.isDragging = !0, L.isFirstTouch = !0, L.startTime = /* @__PURE__ */ new Date(), P();
|
|
341
343
|
}, le = (C) => {
|
|
342
|
-
if (!
|
|
344
|
+
if (!L.isDragging)
|
|
343
345
|
return;
|
|
344
346
|
let _ = 0, R = 0;
|
|
345
347
|
"touches" in C ? (_ = C.touches[0].clientX, R = C.touches[0].clientY) : (_ = C.clientX, R = C.clientY);
|
|
346
|
-
const q = _ -
|
|
347
|
-
if (
|
|
348
|
-
|
|
348
|
+
const q = _ - L.startX, Y = R - L.startY;
|
|
349
|
+
if (L.isFirstTouch && (L.isFirstTouch = !1, Math.abs(q) < Math.abs(Y) !== e.vertical)) {
|
|
350
|
+
L.isDragging = !1;
|
|
349
351
|
return;
|
|
350
352
|
}
|
|
351
|
-
C.preventDefault(),
|
|
352
|
-
percent:
|
|
353
|
-
offset:
|
|
354
|
-
});
|
|
355
|
-
},
|
|
356
|
-
if (!
|
|
353
|
+
C.preventDefault(), L.offset = e.vertical ? Y : q, g(), o("dragging", {
|
|
354
|
+
percent: L.offset / (r.size + r.space),
|
|
355
|
+
offset: L.offset
|
|
356
|
+
}), L.isDissatisfy = !1;
|
|
357
|
+
}, V = () => {
|
|
358
|
+
if (!L.isDragging)
|
|
357
359
|
return;
|
|
358
|
-
|
|
359
|
-
const _ = (/* @__PURE__ */ new Date()).getTime() -
|
|
360
|
-
H() && (Math.abs(
|
|
361
|
-
}, A =
|
|
360
|
+
L.isDragging = !1;
|
|
361
|
+
const _ = (/* @__PURE__ */ new Date()).getTime() - L.startTime.getTime();
|
|
362
|
+
H() && (Math.abs(L.offset) > A.value || Math.abs(L.offset) / _ > 0.5) ? (L.offset > 0 ? E() : T(), L.offset = 0, L.isDissatisfy = !1) : (L.offset = 0, L.isDissatisfy = !0), O();
|
|
363
|
+
}, A = I(() => ht(e.minSwipeDistance, r.size + r.space)), H = () => {
|
|
362
364
|
if (f.value)
|
|
363
365
|
return !0;
|
|
364
|
-
const C =
|
|
366
|
+
const C = L.offset > 0 ? n.value - 1 : n.value + 1;
|
|
365
367
|
return C >= 0 && C < i.length;
|
|
366
|
-
}, ue =
|
|
367
|
-
const C =
|
|
368
|
-
return e.vertical ? (_.transform = `translate3d(0, ${C}px, 0)`, _.transitionDuration =
|
|
369
|
-
}), Z =
|
|
368
|
+
}, ue = I(() => {
|
|
369
|
+
const C = L.isDragging && !e.isFollowHand ? c.offset : c.offset + L.offset, _ = {};
|
|
370
|
+
return e.vertical ? (_.transform = `translate3d(0, ${C}px, 0)`, _.transitionDuration = L.transitionEnabled ? `${e.duration}ms` : "0ms") : (_.transform = `translate3d(${C}px, 0, 0)`, _.transitionDuration = L.transitionEnabled || L.isDissatisfy ? `${e.duration}ms` : "0ms"), L.isDragging && (_.transition = "none"), e.vertical && (_.flexDirection = "column"), e.autoHeight && (_.display = "block", _.whiteSpace = "nowrap"), _;
|
|
371
|
+
}), Z = I(() => ["y-swipe__dots", `y-swipe__dots--${e.dotsPosition || (e.vertical ? Qe.left : Qe.bottom)}`]);
|
|
370
372
|
l({
|
|
371
373
|
moveTo: h,
|
|
372
374
|
next: T,
|
|
@@ -448,14 +450,14 @@ const W = (e) => isNaN(Number(e)) && typeof e == "string" ? e : `${e}px`, ht = (
|
|
|
448
450
|
setup(e) {
|
|
449
451
|
const {
|
|
450
452
|
parent: t
|
|
451
|
-
} = de(ct), o =
|
|
453
|
+
} = de(ct), o = I(() => [{
|
|
452
454
|
"y-el--clickable": !e.disabled
|
|
453
455
|
}, yt({
|
|
454
456
|
scrollable: e.scrollable,
|
|
455
457
|
disabled: e.disabled
|
|
456
458
|
}), yt(`${(t == null ? void 0 : t.props.size) || "middle"}`, {
|
|
457
459
|
active: e.active
|
|
458
|
-
}), t == null ? void 0 : t.props.titleClass, e.active ? t == null ? void 0 : t.props.titleActiveClass : ""]), l =
|
|
460
|
+
}), t == null ? void 0 : t.props.titleClass, e.active ? t == null ? void 0 : t.props.titleActiveClass : ""]), l = I(() => ({
|
|
459
461
|
...t == null ? void 0 : t.props.titleStyle,
|
|
460
462
|
...e.active ? {
|
|
461
463
|
...t == null ? void 0 : t.props.titleActiveStyle
|
|
@@ -557,29 +559,29 @@ const [Je, je] = M("tabs"), ct = Je, _n = /* @__PURE__ */ z({
|
|
|
557
559
|
}) {
|
|
558
560
|
const {
|
|
559
561
|
initProvide: a
|
|
560
|
-
} = we(ct), i = B(!1), n = F([]), r = B(), c =
|
|
562
|
+
} = we(ct), i = B(!1), n = F([]), r = B(), c = I(() => n.length > e.titleScrollThreshold), v = (k) => n.findIndex((P) => (P.$props ? P.$props.name : "") === k), x = B(e.initName ? v(e.initName) : e.initIndex), d = (k) => {
|
|
561
563
|
x.value = k;
|
|
562
|
-
const
|
|
563
|
-
|
|
564
|
+
const P = r.value;
|
|
565
|
+
P && (P == null || P.moveTo(k, e.changeWithAnimation));
|
|
564
566
|
};
|
|
565
567
|
l({
|
|
566
568
|
scrollToByIndex: (k) => {
|
|
567
569
|
d(k);
|
|
568
570
|
},
|
|
569
571
|
scrollToByName: (k) => {
|
|
570
|
-
const
|
|
571
|
-
d(
|
|
572
|
+
const P = v(k);
|
|
573
|
+
d(P);
|
|
572
574
|
}
|
|
573
575
|
});
|
|
574
|
-
const b = B([]), m = B(), p = (k) => (
|
|
575
|
-
b.value[k] =
|
|
576
|
+
const b = B([]), m = B(), p = (k) => (P) => {
|
|
577
|
+
b.value[k] = P;
|
|
576
578
|
}, y = (k) => {
|
|
577
579
|
const {
|
|
578
|
-
title:
|
|
580
|
+
title: P,
|
|
579
581
|
name: O,
|
|
580
|
-
disabled:
|
|
582
|
+
disabled: L
|
|
581
583
|
} = n[k].$props || {};
|
|
582
|
-
x.value !== k && (o(
|
|
584
|
+
x.value !== k && (o(L ? "disabledClick" : "click", k, P, O), !L && d(k));
|
|
583
585
|
}, $ = async () => {
|
|
584
586
|
await re(() => {
|
|
585
587
|
if (!c.value || !m.value)
|
|
@@ -587,7 +589,7 @@ const [Je, je] = M("tabs"), ct = Je, _n = /* @__PURE__ */ z({
|
|
|
587
589
|
const k = m.value;
|
|
588
590
|
if (!k || !b.value[x.value])
|
|
589
591
|
return;
|
|
590
|
-
const
|
|
592
|
+
const P = b.value[x.value].$el, O = P.offsetLeft - (k.offsetWidth - P.offsetWidth) / 2 - k.scrollLeft;
|
|
591
593
|
k.scrollBy({
|
|
592
594
|
left: O,
|
|
593
595
|
behavior: "smooth"
|
|
@@ -604,21 +606,21 @@ const [Je, je] = M("tabs"), ct = Je, _n = /* @__PURE__ */ z({
|
|
|
604
606
|
await re(() => {
|
|
605
607
|
if (!b.value || b.value.length === 0)
|
|
606
608
|
return;
|
|
607
|
-
const k = x.value >= b.value.length ? 0 : x.value,
|
|
609
|
+
const k = x.value >= b.value.length ? 0 : x.value, P = b.value[k].$el, O = P.offsetLeft + P.offsetWidth / 2;
|
|
608
610
|
f.transform = `translateX(${O}px) translateX(-50%)`, i.value && (f.transition = `all ${e.duration}ms ease-out`), i.value = !0;
|
|
609
611
|
});
|
|
610
612
|
}, w = (k) => {
|
|
611
613
|
const {
|
|
612
|
-
title:
|
|
614
|
+
title: P,
|
|
613
615
|
name: O
|
|
614
616
|
} = n[k].$props || {};
|
|
615
|
-
o("change", k,
|
|
617
|
+
o("change", k, P, O), x.value = k;
|
|
616
618
|
}, N = (k) => {
|
|
617
619
|
const {
|
|
618
|
-
title:
|
|
620
|
+
title: P,
|
|
619
621
|
name: O
|
|
620
622
|
} = n[k].$props || {};
|
|
621
|
-
o("afterChange", k,
|
|
623
|
+
o("afterChange", k, P, O), x.value = k;
|
|
622
624
|
}, h = F({
|
|
623
625
|
children: n,
|
|
624
626
|
activeIndex: x,
|
|
@@ -648,10 +650,10 @@ const [Je, je] = M("tabs"), ct = Je, _n = /* @__PURE__ */ z({
|
|
|
648
650
|
[e.size]: e.size,
|
|
649
651
|
[e.align]: e.align
|
|
650
652
|
})
|
|
651
|
-
}, [n.length > 0 && n.map((
|
|
652
|
-
title:
|
|
653
|
-
disabled:
|
|
654
|
-
"title-slot":
|
|
653
|
+
}, [n.length > 0 && n.map((P, O) => s(bt, {
|
|
654
|
+
title: P.title,
|
|
655
|
+
disabled: P.disabled,
|
|
656
|
+
"title-slot": P.$slots.title,
|
|
655
657
|
key: O,
|
|
656
658
|
ref: p(O),
|
|
657
659
|
active: x.value === O,
|
|
@@ -809,13 +811,13 @@ const [Dn] = M("tab"), On = /* @__PURE__ */ z({
|
|
|
809
811
|
emit: t,
|
|
810
812
|
slots: o
|
|
811
813
|
}) {
|
|
812
|
-
const l = B(), a = B(0), i = B(0), n = B(""), r = Fn(), c =
|
|
814
|
+
const l = B(), a = B(0), i = B(0), n = B(""), r = Fn(), c = I(() => Array.isArray(e.modelValue)), v = (h) => {
|
|
813
815
|
const {
|
|
814
816
|
min: E,
|
|
815
817
|
max: T,
|
|
816
818
|
step: k
|
|
817
|
-
} = e,
|
|
818
|
-
return Math.round(
|
|
819
|
+
} = e, P = Math.max(E, Math.min(h, T));
|
|
820
|
+
return Math.round(P / k) * k;
|
|
819
821
|
}, x = (h) => {
|
|
820
822
|
if (h.stopPropagation(), e.disabled)
|
|
821
823
|
return;
|
|
@@ -824,33 +826,33 @@ const [Dn] = M("tab"), On = /* @__PURE__ */ z({
|
|
|
824
826
|
modelValue: T
|
|
825
827
|
} = e, {
|
|
826
828
|
left: k,
|
|
827
|
-
width:
|
|
828
|
-
} = l.value.getBoundingClientRect(), O = h.clientX - k,
|
|
829
|
+
width: P
|
|
830
|
+
} = l.value.getBoundingClientRect(), O = h.clientX - k, L = Math.floor(E + O / P * y.value);
|
|
829
831
|
if (c.value) {
|
|
830
|
-
const X = T[0], le = T[1],
|
|
831
|
-
|
|
832
|
+
const X = T[0], le = T[1], V = (X + le) / 2;
|
|
833
|
+
L <= V ? u([L, le]) : u([X, L]);
|
|
832
834
|
} else
|
|
833
|
-
u(
|
|
835
|
+
u(L);
|
|
834
836
|
}, d = (h) => h[0] > h[1] ? [h[1], h[0]] : h, g = (h, E) => JSON.stringify(h) === JSON.stringify(E), u = (h, E) => {
|
|
835
837
|
let T = 0;
|
|
836
838
|
c.value ? T = d(h).map(v) : T = v(h), t("update:modelValue", T), typeof E > "u" && !g(a.value, i.value) && t("change", T);
|
|
837
|
-
}, b =
|
|
839
|
+
}, b = I(() => {
|
|
838
840
|
const {
|
|
839
841
|
modelValue: h,
|
|
840
842
|
min: E
|
|
841
843
|
} = e;
|
|
842
844
|
let T = null;
|
|
843
845
|
return c.value ? T = Math.floor((v(h[1]) - v(h[0])) * 100 / y.value) : T = Math.floor((v(h) - E) * 100 / y.value), `${T}%`;
|
|
844
|
-
}), m =
|
|
846
|
+
}), m = I(() => {
|
|
845
847
|
const {
|
|
846
848
|
modelValue: h,
|
|
847
849
|
min: E
|
|
848
850
|
} = e;
|
|
849
851
|
return c.value ? `${Math.floor((v(h[0]) - E) * 100 / y.value)}%` : "0%";
|
|
850
|
-
}), p =
|
|
852
|
+
}), p = I(() => ({
|
|
851
853
|
left: b.value,
|
|
852
854
|
transition: n.value === "moving" ? "none" : `${e.transitionTime}ms ease-in-out`
|
|
853
|
-
})), y =
|
|
855
|
+
})), y = I(() => e.max - e.min), $ = (h) => {
|
|
854
856
|
e.disabled || (r.start(h), n.value = "startMove", i.value = e.modelValue, c.value ? a.value = [...i.value] : a.value = i.value);
|
|
855
857
|
}, f = (h, E) => {
|
|
856
858
|
if (e.disabled)
|
|
@@ -858,19 +860,19 @@ const [Dn] = M("tab"), On = /* @__PURE__ */ z({
|
|
|
858
860
|
r.move(h), n.value === "startMove" && t("drag-start"), n.value = "moving";
|
|
859
861
|
const {
|
|
860
862
|
width: T
|
|
861
|
-
} = l.value.getBoundingClientRect(), k = r.deltaX.value,
|
|
862
|
-
Array.isArray(a.value) && Array.isArray(i.value) ? E === "left" ? i.value[0] = a.value[0] +
|
|
863
|
+
} = l.value.getBoundingClientRect(), k = r.deltaX.value, P = Math.floor(k / T * y.value);
|
|
864
|
+
Array.isArray(a.value) && Array.isArray(i.value) ? E === "left" ? i.value[0] = a.value[0] + P : i.value[1] = a.value[1] + P : i.value = a.value + P, u(i.value, !0);
|
|
863
865
|
}, S = () => {
|
|
864
866
|
e.disabled || (n.value === "moving" && (u(i.value), t("drag-end")), n.value = "endMove");
|
|
865
867
|
}, w = (h) => {
|
|
866
|
-
let E = "", T = {}, k = 0,
|
|
868
|
+
let E = "", T = {}, k = 0, P = G("button-wrapper");
|
|
867
869
|
return h === 0 ? (E = "left", T = {
|
|
868
870
|
left: m.value,
|
|
869
871
|
backgroundColor: Array.isArray(e.buttonBgColor) ? e.buttonBgColor[0] : e.buttonBgColor
|
|
870
|
-
}, k = e.modelValue[h],
|
|
872
|
+
}, k = e.modelValue[h], P = G("button-wrapper", "left")) : h === 1 ? (E = "right", k = e.modelValue[h], T = {
|
|
871
873
|
left: `${parseInt(b.value) + parseInt(m.value)}%`,
|
|
872
874
|
backgroundColor: Array.isArray(e.buttonBgColor) ? e.buttonBgColor[1] : e.buttonBgColor
|
|
873
|
-
},
|
|
875
|
+
}, P = G("button-wrapper", "right")) : (k = e.modelValue, T = {
|
|
874
876
|
left: b.value,
|
|
875
877
|
backgroundColor: e.buttonBgColor
|
|
876
878
|
}), s("div", {
|
|
@@ -878,7 +880,7 @@ const [Dn] = M("tab"), On = /* @__PURE__ */ z({
|
|
|
878
880
|
"aria-valuemin": e.min,
|
|
879
881
|
"aria-valuemax": e.max,
|
|
880
882
|
"aria-valuenow": k,
|
|
881
|
-
class:
|
|
883
|
+
class: P,
|
|
882
884
|
onTouchstart: $,
|
|
883
885
|
onTouchmove: (O) => f(O, E),
|
|
884
886
|
onTouchend: S,
|
|
@@ -890,7 +892,7 @@ const [Dn] = M("tab"), On = /* @__PURE__ */ z({
|
|
|
890
892
|
class: G("inner-button"),
|
|
891
893
|
style: T
|
|
892
894
|
}, null)]);
|
|
893
|
-
}, N =
|
|
895
|
+
}, N = I(() => Array((e.max - e.min) / e.step).fill({}).map((E, T) => ({
|
|
894
896
|
position: `${T * e.step}%`
|
|
895
897
|
})));
|
|
896
898
|
return () => {
|
|
@@ -1139,16 +1141,16 @@ const Yn = D(Un), [jn, fe] = M("loading"), Xn = {
|
|
|
1139
1141
|
emit: o,
|
|
1140
1142
|
expose: l
|
|
1141
1143
|
}) {
|
|
1142
|
-
const a = B(0), i = B(!1), n = B("normal"), r = B(), c = B(), v = B(), x = B([]), d = B(0), g = B(0), u = B([]), b =
|
|
1144
|
+
const a = B(0), i = B(!1), n = B("normal"), r = B(), c = B(), v = B(), x = B([]), d = B(0), g = B(0), u = B([]), b = I(() => Sn(e.height) ? `${e.height}px` : e.height), m = I(() => u.value.length ? u.value[u.value.length - 1].bottom : 0), p = I(() => {
|
|
1143
1145
|
if (e.virtual) {
|
|
1144
|
-
const
|
|
1145
|
-
return S.value.slice(
|
|
1146
|
+
const V = d.value - y.value, A = g.value + $.value;
|
|
1147
|
+
return S.value.slice(V, A);
|
|
1146
1148
|
}
|
|
1147
1149
|
return S.value;
|
|
1148
|
-
}), y =
|
|
1149
|
-
n.value !== "loading" && (n.value = "loading", o("load", (
|
|
1150
|
+
}), y = I(() => Math.min(d.value, e.bufferScale * f.value)), $ = I(() => Math.min(e.dataSource.length - g.value, e.bufferScale * f.value)), f = I(() => Math.ceil(a.value / parseInt(String(e.itemHeight)))), S = I(() => e.dataSource.map((V, A) => (V[e.keyName] = A, V))), w = () => i.value ? document.documentElement.scrollTop || document.body.scrollTop : r.value.scrollTop, N = () => i.value ? document.documentElement.scrollHeight : r.value.scrollHeight, h = () => {
|
|
1151
|
+
n.value !== "loading" && (n.value = "loading", o("load", (V) => {
|
|
1150
1152
|
if (n.value === "loading")
|
|
1151
|
-
switch (
|
|
1153
|
+
switch (V) {
|
|
1152
1154
|
case "error":
|
|
1153
1155
|
n.value = "error";
|
|
1154
1156
|
break;
|
|
@@ -1162,7 +1164,7 @@ const Yn = D(Un), [jn, fe] = M("loading"), Xn = {
|
|
|
1162
1164
|
}, E = () => {
|
|
1163
1165
|
n.value === "normal" && N() - w() - a.value <= e.loadOffset && h();
|
|
1164
1166
|
}, T = () => {
|
|
1165
|
-
u.value = S.value.map((
|
|
1167
|
+
u.value = S.value.map((V, A) => {
|
|
1166
1168
|
const H = parseInt(String(e.itemHeight));
|
|
1167
1169
|
return {
|
|
1168
1170
|
index: A,
|
|
@@ -1173,26 +1175,26 @@ const Yn = D(Un), [jn, fe] = M("loading"), Xn = {
|
|
|
1173
1175
|
});
|
|
1174
1176
|
}, k = () => {
|
|
1175
1177
|
T();
|
|
1176
|
-
for (let
|
|
1177
|
-
u.value[
|
|
1178
|
-
},
|
|
1179
|
-
let H = 0, ue =
|
|
1178
|
+
for (let V = 1; V < u.value.length; V++)
|
|
1179
|
+
u.value[V].top = u.value[V - 1].bottom, u.value[V].bottom = u.value[V].top + u.value[V].height;
|
|
1180
|
+
}, P = (V, A) => {
|
|
1181
|
+
let H = 0, ue = V.length - 1, Z = -1;
|
|
1180
1182
|
for (; H <= ue; ) {
|
|
1181
|
-
const ae = Math.floor((H + ue) / 2), oe =
|
|
1183
|
+
const ae = Math.floor((H + ue) / 2), oe = V[ae].bottom;
|
|
1182
1184
|
if (oe === A)
|
|
1183
1185
|
return ae + 1;
|
|
1184
1186
|
oe < A ? H = ae + 1 : oe > A && ((Z === -1 || Z > ae) && (Z = ae), ue = ae - 1);
|
|
1185
1187
|
}
|
|
1186
1188
|
return Z;
|
|
1187
|
-
}, O = (
|
|
1189
|
+
}, O = (V) => P(u.value, V), L = () => {
|
|
1188
1190
|
if (E(), e.virtual) {
|
|
1189
|
-
const
|
|
1190
|
-
X(
|
|
1191
|
+
const V = w();
|
|
1192
|
+
X(V);
|
|
1191
1193
|
}
|
|
1192
|
-
}, X = (
|
|
1194
|
+
}, X = (V) => {
|
|
1193
1195
|
if (!c.value)
|
|
1194
1196
|
return;
|
|
1195
|
-
const A =
|
|
1197
|
+
const A = V || 0;
|
|
1196
1198
|
if (e.dynamicItemHeight) {
|
|
1197
1199
|
d.value = O(A), g.value = d.value + f.value;
|
|
1198
1200
|
const H = u.value[d.value - y.value].top ? u.value[d.value - y.value].top : 0;
|
|
@@ -1205,8 +1207,8 @@ const Yn = D(Un), [jn, fe] = M("loading"), Xn = {
|
|
|
1205
1207
|
}, le = () => {
|
|
1206
1208
|
if (!c.value || !v.value)
|
|
1207
1209
|
return;
|
|
1208
|
-
const
|
|
1209
|
-
|
|
1210
|
+
const V = c.value.children;
|
|
1211
|
+
V && V.length > 0 && [...V].forEach((A) => {
|
|
1210
1212
|
if (A instanceof HTMLDivElement) {
|
|
1211
1213
|
const H = A.getBoundingClientRect(), {
|
|
1212
1214
|
height: ue
|
|
@@ -1224,16 +1226,16 @@ const Yn = D(Un), [jn, fe] = M("loading"), Xn = {
|
|
|
1224
1226
|
checkIsScrollToBottom: E,
|
|
1225
1227
|
loadData: h
|
|
1226
1228
|
}), K(() => {
|
|
1227
|
-
e.height !== "auto" ? (i.value = !1, a.value = r.value.clientHeight) : e.height === "auto" && (i.value = !0, a.value = document.documentElement.clientHeight, document.addEventListener("scroll",
|
|
1229
|
+
e.height !== "auto" ? (i.value = !1, a.value = r.value.clientHeight) : e.height === "auto" && (i.value = !0, a.value = document.documentElement.clientHeight, document.addEventListener("scroll", L)), e.virtual && (T(), X()), e.immediateCheck && E();
|
|
1228
1230
|
}), vn(async () => {
|
|
1229
|
-
var
|
|
1231
|
+
var V, A;
|
|
1230
1232
|
if (e.virtual && e.dynamicItemHeight) {
|
|
1231
|
-
if (await re(), !((A = (
|
|
1233
|
+
if (await re(), !((A = (V = c.value) == null ? void 0 : V.children) != null && A.length))
|
|
1232
1234
|
return;
|
|
1233
1235
|
le();
|
|
1234
1236
|
}
|
|
1235
1237
|
}), ye(() => {
|
|
1236
|
-
i.value && document.removeEventListener("scroll",
|
|
1238
|
+
i.value && document.removeEventListener("scroll", L);
|
|
1237
1239
|
}), () => s("div", {
|
|
1238
1240
|
ref: r,
|
|
1239
1241
|
class: `${se()} ${e.virtual ? se({
|
|
@@ -1242,7 +1244,7 @@ const Yn = D(Un), [jn, fe] = M("loading"), Xn = {
|
|
|
1242
1244
|
style: {
|
|
1243
1245
|
height: b.value
|
|
1244
1246
|
},
|
|
1245
|
-
onScroll:
|
|
1247
|
+
onScroll: L
|
|
1246
1248
|
}, [e.virtual && s("div", {
|
|
1247
1249
|
ref: v,
|
|
1248
1250
|
class: se("phantom"),
|
|
@@ -1252,14 +1254,14 @@ const Yn = D(Un), [jn, fe] = M("loading"), Xn = {
|
|
|
1252
1254
|
}, null), s("div", {
|
|
1253
1255
|
ref: c,
|
|
1254
1256
|
class: se("content")
|
|
1255
|
-
}, [p.value.map((
|
|
1257
|
+
}, [p.value.map((V) => {
|
|
1256
1258
|
var A;
|
|
1257
1259
|
return s("div", {
|
|
1258
1260
|
ref: x,
|
|
1259
1261
|
class: se("item"),
|
|
1260
|
-
"data-index":
|
|
1262
|
+
"data-index": V._index
|
|
1261
1263
|
}, [(A = t.default) == null ? void 0 : A.call(t, {
|
|
1262
|
-
item:
|
|
1264
|
+
item: V
|
|
1263
1265
|
})]);
|
|
1264
1266
|
})]), n.value === "loading" && s("div", {
|
|
1265
1267
|
class: se({
|
|
@@ -1540,14 +1542,14 @@ const xe = D(nl), ll = {
|
|
|
1540
1542
|
parent: a
|
|
1541
1543
|
} = de(Xt), i = a === null ? Pe().parent : null;
|
|
1542
1544
|
a && a.allItemNames.push(e.name);
|
|
1543
|
-
const n = (m, p = null) =>
|
|
1545
|
+
const n = (m, p = null) => I(() => a && a.props[m] !== null ? a.props[m] : Object.keys(e).includes(m) ? e[m] : p), r = n("disabled"), c = n("square"), v = n("checkedColor"), x = n("horizontal", !1), d = I(() => a ? a.props.modelValue.includes(e.name) : e.modelValue), g = (m) => {
|
|
1544
1546
|
var p;
|
|
1545
1547
|
r.value || typeof m < "u" && d.value === m || ((p = a == null ? void 0 : a.onItemChange) == null || p.call(a, e.name), o("update:modelValue", !e.modelValue), o("change", !e.modelValue));
|
|
1546
1548
|
};
|
|
1547
1549
|
l({
|
|
1548
1550
|
toggle: g
|
|
1549
1551
|
});
|
|
1550
|
-
const u =
|
|
1552
|
+
const u = I(() => ["mini", "small", "middle", "large"].includes(e.size.toString() || (i == null ? void 0 : i.getProp("size"))) ? null : W(e.size)), b = I(() => {
|
|
1551
1553
|
const m = {};
|
|
1552
1554
|
return u.value && (m.width = u.value, m.height = u.value), d.value && v.value && (m.backgroundColor = v.value), m;
|
|
1553
1555
|
});
|
|
@@ -1630,12 +1632,12 @@ const sl = D(ol), [cl, wt] = M("switch"), dl = /* @__PURE__ */ z({
|
|
|
1630
1632
|
}) {
|
|
1631
1633
|
const {
|
|
1632
1634
|
parent: o
|
|
1633
|
-
} = Pe(), l =
|
|
1635
|
+
} = Pe(), l = I(() => e.modelValue === e.activeValue), a = () => {
|
|
1634
1636
|
if (!e.disabled && !e.readonly) {
|
|
1635
1637
|
const n = l.value ? e.inactiveValue : e.activeValue;
|
|
1636
1638
|
t("update:modelValue", n), t("change", n);
|
|
1637
1639
|
}
|
|
1638
|
-
}, i =
|
|
1640
|
+
}, i = I(() => {
|
|
1639
1641
|
switch (e.size || (o == null ? void 0 : o.getProp("size")) || "middle") {
|
|
1640
1642
|
case "large":
|
|
1641
1643
|
return "34px";
|
|
@@ -1725,7 +1727,7 @@ const fl = D(dl), ml = (e, t, o, l) => {
|
|
|
1725
1727
|
}) {
|
|
1726
1728
|
const a = ne();
|
|
1727
1729
|
let i = 0, n = 0, r = 0, c = null;
|
|
1728
|
-
const v = B(0), x = B(0), d = B(U.DEFUALT), g =
|
|
1730
|
+
const v = B(0), x = B(0), d = B(U.DEFUALT), g = I(() => {
|
|
1729
1731
|
var w;
|
|
1730
1732
|
const S = [...((w = a == null ? void 0 : a.proxy) == null ? void 0 : w.$el).childNodes];
|
|
1731
1733
|
return S == null ? void 0 : S.filter((N) => N.nodeType !== 3 || N.nodeValue !== "");
|
|
@@ -2095,14 +2097,14 @@ const Il = D(dt), [Zt, Vl] = M("row"), Qt = Zt, Pl = /* @__PURE__ */ z({
|
|
|
2095
2097
|
const {
|
|
2096
2098
|
children: o,
|
|
2097
2099
|
initProvide: l
|
|
2098
|
-
} = we(Qt), a =
|
|
2100
|
+
} = we(Qt), a = I(() => {
|
|
2099
2101
|
const n = [[]];
|
|
2100
2102
|
let r = 0;
|
|
2101
2103
|
return o.forEach((c, v) => {
|
|
2102
2104
|
var x;
|
|
2103
2105
|
r += Number((x = c.proxy) == null ? void 0 : x.span), r > 24 ? (n.push([v]), r -= 24) : n[n.length - 1].push(v);
|
|
2104
2106
|
}), n;
|
|
2105
|
-
}), i =
|
|
2107
|
+
}), i = I(() => {
|
|
2106
2108
|
const n = Number(e.gutter), r = [];
|
|
2107
2109
|
return n && a.value.forEach((c) => {
|
|
2108
2110
|
const v = n * (c.length - 1) / c.length;
|
|
@@ -2161,7 +2163,7 @@ const _l = D(Pl), [zl, Ml] = M("col"), Dl = /* @__PURE__ */ z({
|
|
|
2161
2163
|
const {
|
|
2162
2164
|
parent: o,
|
|
2163
2165
|
index: l
|
|
2164
|
-
} = de(Qt), a =
|
|
2166
|
+
} = de(Qt), a = I(() => {
|
|
2165
2167
|
if (!o)
|
|
2166
2168
|
return {};
|
|
2167
2169
|
const {
|
|
@@ -2727,7 +2729,7 @@ const tt = D(na), [la, Et, Tt] = M("popup"), aa = {
|
|
|
2727
2729
|
slots: t,
|
|
2728
2730
|
emit: o
|
|
2729
2731
|
}) {
|
|
2730
|
-
const l =
|
|
2732
|
+
const l = I(() => {
|
|
2731
2733
|
const {
|
|
2732
2734
|
position: n,
|
|
2733
2735
|
borderRadius: r,
|
|
@@ -2760,7 +2762,7 @@ const tt = D(na), [la, Et, Tt] = M("popup"), aa = {
|
|
|
2760
2762
|
};
|
|
2761
2763
|
}), a = (n) => {
|
|
2762
2764
|
o("clickMask", n), e.isCloseOnClickMask && (i.value = !1);
|
|
2763
|
-
}, i =
|
|
2765
|
+
}, i = I({
|
|
2764
2766
|
get: () => e.modelValue,
|
|
2765
2767
|
set: (n) => o("update:modelValue", n)
|
|
2766
2768
|
});
|
|
@@ -2879,7 +2881,7 @@ const ft = D(oa), [ia, Me, Bt] = M("stepper"), ra = /* @__PURE__ */ z({
|
|
|
2879
2881
|
}) {
|
|
2880
2882
|
const {
|
|
2881
2883
|
parent: l
|
|
2882
|
-
} = Pe(), a = B(e.modelValue), i =
|
|
2884
|
+
} = Pe(), a = B(e.modelValue), i = I(() => e.size || (l == null ? void 0 : l.getProp("size"))), n = I(() => e.modelValue <= e.min || e.disabled), r = I(() => e.modelValue >= e.max || e.disabled), c = (m) => {
|
|
2883
2885
|
let p = e.integer;
|
|
2884
2886
|
return m.toString().replace(/([^0-9\.\-])/g, "").replace(/\./g, (y) => p ? "" : (p = !0, y)).replace(/\-/g, (y, $) => $ === 0 ? "-" : "");
|
|
2885
2887
|
}, v = (m) => {
|
|
@@ -3142,10 +3144,10 @@ const da = D(ca), on = "form-item", [fa, De, ma] = M(on), va = Dt(on), ga = /* @
|
|
|
3142
3144
|
return e[S];
|
|
3143
3145
|
const w = l && l.props;
|
|
3144
3146
|
return w && w[S] || null;
|
|
3145
|
-
}, v =
|
|
3147
|
+
}, v = I(() => {
|
|
3146
3148
|
const S = l && l.props.rules, w = e.rules || (S == null ? void 0 : S[e.prop]);
|
|
3147
3149
|
return wn(w) ? [w] : w;
|
|
3148
|
-
}), x =
|
|
3150
|
+
}), x = I(() => v.value && v.value.some((S) => S.required)), d = I(() => i.value ? i.value.proxy.modelValue : null), g = I(() => c("showError") && n.value), u = (S, w) => !(w.required && (i.value && i.value.exposed && typeof i.value.exposed.isRequired < "u" && !i.value.exposed.isRequired || !(Array.isArray(S) ? S.length : S)) || w.pattern && bn(S) && !w.pattern.test(S)), b = (S, w) => {
|
|
3149
3151
|
const {
|
|
3150
3152
|
message: N
|
|
3151
3153
|
} = w;
|
|
@@ -3306,7 +3308,7 @@ const pa = D(ga), [ha, ya] = M("input"), ba = 13, Sa = /* @__PURE__ */ z({
|
|
|
3306
3308
|
}), be(() => {
|
|
3307
3309
|
a && a.remove(), a = null;
|
|
3308
3310
|
});
|
|
3309
|
-
const g =
|
|
3311
|
+
const g = I({
|
|
3310
3312
|
get: () => e.modelValue,
|
|
3311
3313
|
set: (u) => t("update:modelValue", u)
|
|
3312
3314
|
});
|
|
@@ -3379,7 +3381,7 @@ const wa = D(Sa), nt = 1e3, lt = 60 * nt, at = 60 * lt, Lt = 24 * at, [xa] = M("
|
|
|
3379
3381
|
emit: o,
|
|
3380
3382
|
expose: l
|
|
3381
3383
|
}) {
|
|
3382
|
-
const a = B(), i = B(!1), n = B(Number(e.time)), r = B(0), c =
|
|
3384
|
+
const a = B(), i = B(!1), n = B(Number(e.time)), r = B(0), c = I(() => p(n.value));
|
|
3383
3385
|
K(() => {
|
|
3384
3386
|
e.autoStart && v();
|
|
3385
3387
|
});
|
|
@@ -3554,7 +3556,7 @@ const [Na, te] = M("dialog"), Ea = {
|
|
|
3554
3556
|
}, x = (g, u, b) => {
|
|
3555
3557
|
let m = Number(g.substring(0, g.length - 2));
|
|
3556
3558
|
return m /= u || 2, b ? `${b(m)}px` : `${m}px`;
|
|
3557
|
-
}, d =
|
|
3559
|
+
}, d = I({
|
|
3558
3560
|
get: () => e.modelValue,
|
|
3559
3561
|
set: (g) => t("update:modelValue", g)
|
|
3560
3562
|
});
|
|
@@ -3589,7 +3591,7 @@ const [Na, te] = M("dialog"), Ea = {
|
|
|
3589
3591
|
teleport: T
|
|
3590
3592
|
}), {
|
|
3591
3593
|
default: () => {
|
|
3592
|
-
var k,
|
|
3594
|
+
var k, P, O, L;
|
|
3593
3595
|
return [((k = o.img) == null ? void 0 : k.call(o)) || h && s("div", {
|
|
3594
3596
|
class: te("img", {
|
|
3595
3597
|
circle: E
|
|
@@ -3611,7 +3613,7 @@ const [Na, te] = M("dialog"), Ea = {
|
|
|
3611
3613
|
style: {
|
|
3612
3614
|
height: E ? x(W(g), 4, (X) => X + 20) : "24px"
|
|
3613
3615
|
}
|
|
3614
|
-
}, null), ((
|
|
3616
|
+
}, null), ((P = o.title) == null ? void 0 : P.call(o)) || s("div", {
|
|
3615
3617
|
class: te("title"),
|
|
3616
3618
|
style: {
|
|
3617
3619
|
textAlign: b
|
|
@@ -3623,7 +3625,7 @@ const [Na, te] = M("dialog"), Ea = {
|
|
|
3623
3625
|
style: {
|
|
3624
3626
|
textAlign: p
|
|
3625
3627
|
}
|
|
3626
|
-
}, [((O = o.default) == null ? void 0 : O.call(o)) || m]), ((
|
|
3628
|
+
}, [((O = o.default) == null ? void 0 : O.call(o)) || m]), ((L = o.footer) == null ? void 0 : L.call(o)) || s("div", {
|
|
3627
3629
|
class: te("footer"),
|
|
3628
3630
|
style: {
|
|
3629
3631
|
paddingTop: f || w ? "20px" : "0px"
|
|
@@ -3989,14 +3991,14 @@ const Oa = D(za), Te = (e, t, o) => ({
|
|
|
3989
3991
|
emit: t,
|
|
3990
3992
|
slots: o
|
|
3991
3993
|
}) {
|
|
3992
|
-
const l =
|
|
3994
|
+
const l = I(() => {
|
|
3993
3995
|
const {
|
|
3994
3996
|
pageCount: n,
|
|
3995
3997
|
totalItems: r,
|
|
3996
3998
|
itemsPerPage: c
|
|
3997
3999
|
} = e, v = Number(n) || Math.ceil(Number(r) / Number(c));
|
|
3998
4000
|
return Math.max(1, v);
|
|
3999
|
-
}), a =
|
|
4001
|
+
}), a = I(() => {
|
|
4000
4002
|
const n = [], r = l.value, c = Number(e.showPageSize), {
|
|
4001
4003
|
modelValue: v,
|
|
4002
4004
|
forceEllipses: x,
|
|
@@ -4124,7 +4126,7 @@ const Fa = D(Wa), [dn, Oe] = M("dropdown"), fn = dn, Ha = {
|
|
|
4124
4126
|
const l = `dropdown-${Math.ceil(Math.random() * 100)}`, a = B(), i = B(null), n = B(0), {
|
|
4125
4127
|
initProvide: r,
|
|
4126
4128
|
children: c
|
|
4127
|
-
} = we(fn), v =
|
|
4129
|
+
} = we(fn), v = I(() => c.some((w) => w.exposed.state.showPopup)), x = I(() => e.swipeThreshold && c.length > Number(e.swipeThreshold)), d = I(() => v.value && e.zIndex ? {
|
|
4128
4130
|
zIndex: Number(e.zIndex) + 1
|
|
4129
4131
|
} : {}), g = (w) => w.tagName !== "HTML" && w.tagName !== "BODY" && w.nodeType === 1, u = (w, N = window) => {
|
|
4130
4132
|
let h = w;
|