y-design-ssr 0.1.2 → 0.2.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/README.md +12 -1
- package/libs/button/index.css +1 -0
- package/libs/button/index.mjs +152 -0
- package/libs/button/index.umd.js +2 -0
- package/libs/button/package.json +5 -0
- package/libs/cell/index.css +1 -0
- package/libs/cell/index.mjs +231 -0
- package/libs/cell/index.umd.js +2 -0
- package/libs/cell/package.json +5 -0
- package/libs/checkbox/index.css +1 -0
- package/libs/checkbox/index.mjs +248 -0
- package/libs/checkbox/index.umd.js +2 -0
- package/libs/checkbox/package.json +5 -0
- package/libs/checkboxGroup/index.css +1 -0
- package/libs/checkboxGroup/index.mjs +173 -0
- package/libs/checkboxGroup/index.umd.js +2 -0
- package/libs/checkboxGroup/package.json +5 -0
- package/libs/col/index.css +1 -0
- package/libs/col/index.mjs +134 -0
- package/libs/col/index.umd.js +2 -0
- package/libs/col/package.json +5 -0
- package/libs/countdown/index.css +1 -0
- package/libs/countdown/index.mjs +117 -0
- package/libs/countdown/index.umd.js +2 -0
- package/libs/countdown/package.json +5 -0
- package/libs/dialog/index.css +1 -0
- package/libs/dialog/index.mjs +952 -0
- package/libs/dialog/index.umd.js +2 -0
- package/libs/dialog/package.json +5 -0
- package/libs/empty/index.css +1 -0
- package/libs/empty/index.mjs +86 -0
- package/libs/empty/index.umd.js +2 -0
- package/libs/empty/package.json +5 -0
- package/libs/form/index.css +1 -0
- package/libs/form/index.mjs +213 -0
- package/libs/form/index.umd.js +2 -0
- package/libs/form/package.json +5 -0
- package/libs/formItem/index.css +1 -0
- package/libs/formItem/index.mjs +216 -0
- package/libs/formItem/index.umd.js +2 -0
- package/libs/formItem/package.json +5 -0
- package/libs/icon/index.css +1 -0
- package/libs/icon/index.mjs +131 -0
- package/libs/icon/index.umd.js +2 -0
- package/libs/icon/package.json +5 -0
- package/libs/index.css +1 -154
- package/libs/index.mjs +41 -41
- package/libs/index.umd.js +2 -1
- package/libs/input/index.css +1 -0
- package/libs/input/index.mjs +177 -0
- package/libs/input/index.umd.js +2 -0
- package/libs/input/package.json +5 -0
- package/libs/layout/index.css +1 -0
- package/libs/layout/index.mjs +212 -0
- package/libs/layout/index.umd.js +2 -0
- package/libs/layout/package.json +5 -0
- package/libs/list/index.css +1 -0
- package/libs/list/index.mjs +384 -0
- package/libs/list/index.umd.js +2 -0
- package/libs/list/package.json +5 -0
- package/libs/loading/index.css +1 -0
- package/libs/loading/index.mjs +237 -0
- package/libs/loading/index.umd.js +2 -0
- package/libs/loading/package.json +5 -0
- package/libs/mask/index.css +1 -0
- package/libs/mask/index.mjs +134 -0
- package/libs/mask/index.umd.js +2 -0
- package/libs/mask/package.json +5 -0
- package/libs/popup/index.css +1 -0
- package/libs/popup/index.mjs +276 -0
- package/libs/popup/index.umd.js +2 -0
- package/libs/popup/package.json +5 -0
- package/libs/progress/index.css +1 -0
- package/libs/progress/index.mjs +244 -0
- package/libs/progress/index.umd.js +2 -0
- package/libs/progress/package.json +5 -0
- package/libs/pullrefresh/index.css +1 -0
- package/libs/pullrefresh/index.mjs +166 -0
- package/libs/pullrefresh/index.umd.js +2 -0
- package/libs/pullrefresh/package.json +5 -0
- package/libs/row/index.css +1 -0
- package/libs/row/index.mjs +139 -0
- package/libs/row/index.umd.js +2 -0
- package/libs/row/package.json +5 -0
- package/libs/slider/index.css +1 -0
- package/libs/slider/index.mjs +251 -0
- package/libs/slider/index.umd.js +2 -0
- package/libs/slider/package.json +5 -0
- package/libs/stepper/index.css +1 -0
- package/libs/stepper/index.mjs +183 -0
- package/libs/stepper/index.umd.js +2 -0
- package/libs/stepper/package.json +5 -0
- package/libs/swipe/index.css +1 -0
- package/libs/swipe/index.mjs +414 -0
- package/libs/swipe/index.umd.js +2 -0
- package/libs/swipe/package.json +5 -0
- package/libs/swipeItem/index.css +1 -0
- package/libs/swipeItem/index.mjs +89 -0
- package/libs/swipeItem/index.umd.js +2 -0
- package/libs/swipeItem/package.json +5 -0
- package/libs/switch/index.css +1 -0
- package/libs/switch/index.mjs +135 -0
- package/libs/switch/index.umd.js +2 -0
- package/libs/switch/package.json +5 -0
- package/libs/tab/index.mjs +124 -0
- package/libs/tab/index.umd.js +1 -0
- package/libs/tab/package.json +5 -0
- package/libs/tabs/index.css +1 -0
- package/libs/tabs/index.mjs +673 -0
- package/libs/tabs/index.umd.js +2 -0
- package/libs/tabs/package.json +5 -0
- package/libs/toast/index.css +1 -0
- package/libs/toast/index.mjs +231 -0
- package/libs/toast/index.umd.js +2 -0
- package/libs/toast/package.json +5 -0
- package/libs/tooltip/index.css +1 -0
- package/libs/tooltip/index.mjs +272 -0
- package/libs/tooltip/index.umd.js +2 -0
- package/libs/tooltip/package.json +5 -0
- package/libs/types/{button → components/button}/index.d.ts +1 -0
- package/libs/types/{button → components/button}/src/button.d.ts +1 -1
- package/libs/types/{cell → components/cell}/src/cell.d.ts +1 -1
- package/libs/types/{dialog → components/dialog}/src/dialog.d.ts +1 -1
- package/libs/types/{loading → components/loading}/src/loading.d.ts +1 -1
- package/libs/types/{popup → components/popup}/src/popup.d.ts +1 -1
- package/libs/types/{row → components/row}/src/row.d.ts +1 -1
- package/libs/types/{switch → components/switch}/src/switch.d.ts +1 -1
- package/libs/types/{toast → components/toast}/src/toast.d.ts +1 -1
- package/libs/types/index.d.ts +27 -27
- package/package.json +6 -6
- package/libs/component-props.json +0 -1
- package/libs/demo/button.json +0 -1
- package/libs/demo/cell.json +0 -1
- package/libs/demo/checkbox.json +0 -1
- package/libs/demo/countdown.json +0 -1
- package/libs/demo/dialog.json +0 -1
- package/libs/demo/empty.json +0 -1
- package/libs/demo/form.json +0 -1
- package/libs/demo/icon.json +0 -1
- package/libs/demo/input.json +0 -1
- package/libs/demo/layout.json +0 -1
- package/libs/demo/list.json +0 -1
- package/libs/demo/loading.json +0 -1
- package/libs/demo/mask.json +0 -1
- package/libs/demo/popup.json +0 -1
- package/libs/demo/progress.json +0 -1
- package/libs/demo/pullrefresh.json +0 -1
- package/libs/demo/slider.json +0 -1
- package/libs/demo/stepper.json +0 -1
- package/libs/demo/style.json +0 -1
- package/libs/demo/swipe.json +0 -1
- package/libs/demo/switch.json +0 -1
- package/libs/demo/tabs.json +0 -1
- package/libs/demo/toast.json +0 -1
- package/libs/demo/tooltip.json +0 -1
- package/libs/index.fa0c1ff.js +0 -2
- package/libs/index.fa0c1ff.js.LICENSE.txt +0 -19
- package/libs/index.html +0 -1
- package/libs/runtime.bfd6297.js +0 -1
- package/libs/style.css +0 -1
- package/libs/vendor.025080b.js +0 -2
- package/libs/vendor.025080b.js.LICENSE.txt +0 -5
- /package/libs/types/{cell → components/cell}/index.d.ts +0 -0
- /package/libs/types/{checkbox → components/checkbox}/index.d.ts +0 -0
- /package/libs/types/{checkbox → components/checkbox}/src/checkbox.d.ts +0 -0
- /package/libs/types/{checkboxGroup → components/checkboxGroup}/index.d.ts +0 -0
- /package/libs/types/{checkboxGroup → components/checkboxGroup}/src/checkboxGroup.d.ts +0 -0
- /package/libs/types/{checkboxGroup → components/checkboxGroup}/src/constants.d.ts +0 -0
- /package/libs/types/{col → components/col}/index.d.ts +0 -0
- /package/libs/types/{col → components/col}/src/col.d.ts +0 -0
- /package/libs/types/{countdown → components/countdown}/index.d.ts +0 -0
- /package/libs/types/{countdown → components/countdown}/src/count-down.d.ts +0 -0
- /package/libs/types/{dialog → components/dialog}/index.d.ts +0 -0
- /package/libs/types/{dialog → components/dialog}/src/create.d.ts +0 -0
- /package/libs/types/{empty → components/empty}/index.d.ts +0 -0
- /package/libs/types/{empty → components/empty}/src/empty.d.ts +0 -0
- /package/libs/types/{empty → components/empty}/src/utils.d.ts +0 -0
- /package/libs/types/{form → components/form}/index.d.ts +0 -0
- /package/libs/types/{form → components/form}/src/constants.d.ts +0 -0
- /package/libs/types/{form → components/form}/src/form.d.ts +0 -0
- /package/libs/types/{formItem → components/formItem}/index.d.ts +0 -0
- /package/libs/types/{formItem → components/formItem}/src/formItem.d.ts +0 -0
- /package/libs/types/{icon → components/icon}/index.d.ts +0 -0
- /package/libs/types/{icon → components/icon}/src/icon.d.ts +0 -0
- /package/libs/types/{input → components/input}/index.d.ts +0 -0
- /package/libs/types/{input → components/input}/src/input.d.ts +0 -0
- /package/libs/types/{list → components/list}/index.d.ts +0 -0
- /package/libs/types/{list → components/list}/src/list.d.ts +0 -0
- /package/libs/types/{loading → components/loading}/index.d.ts +0 -0
- /package/libs/types/{loading → components/loading}/src/create.d.ts +0 -0
- /package/libs/types/{loading → components/loading}/src/directive.d.ts +0 -0
- /package/libs/types/{mask → components/mask}/index.d.ts +0 -0
- /package/libs/types/{mask → components/mask}/src/mask.d.ts +0 -0
- /package/libs/types/{popup → components/popup}/index.d.ts +0 -0
- /package/libs/types/{progress → components/progress}/index.d.ts +0 -0
- /package/libs/types/{progress → components/progress}/src/progress.d.ts +0 -0
- /package/libs/types/{pullrefresh → components/pullrefresh}/index.d.ts +0 -0
- /package/libs/types/{pullrefresh → components/pullrefresh}/src/pullrefresh.d.ts +0 -0
- /package/libs/types/{pullrefresh → components/pullrefresh}/src/utils.d.ts +0 -0
- /package/libs/types/{row → components/row}/index.d.ts +0 -0
- /package/libs/types/{row → components/row}/src/constants.d.ts +0 -0
- /package/libs/types/{slider → components/slider}/index.d.ts +0 -0
- /package/libs/types/{slider → components/slider}/src/slider.d.ts +0 -0
- /package/libs/types/{stepper → components/stepper}/index.d.ts +0 -0
- /package/libs/types/{stepper → components/stepper}/src/stepper.d.ts +0 -0
- /package/libs/types/{swipe → components/swipe}/index.d.ts +0 -0
- /package/libs/types/{swipe → components/swipe}/src/constants.d.ts +0 -0
- /package/libs/types/{swipe → components/swipe}/src/swipe.d.ts +0 -0
- /package/libs/types/{swipeItem → components/swipeItem}/index.d.ts +0 -0
- /package/libs/types/{swipeItem → components/swipeItem}/src/swipeItem.d.ts +0 -0
- /package/libs/types/{switch → components/switch}/index.d.ts +0 -0
- /package/libs/types/{tab → components/tab}/index.d.ts +0 -0
- /package/libs/types/{tab → components/tab}/src/tab.d.ts +0 -0
- /package/libs/types/{tabs → components/tabs}/index.d.ts +0 -0
- /package/libs/types/{tabs → components/tabs}/src/constants.d.ts +0 -0
- /package/libs/types/{tabs → components/tabs}/src/tabs.d.ts +0 -0
- /package/libs/types/{tabs → components/tabs}/src/title.d.ts +0 -0
- /package/libs/types/{toast → components/toast}/index.d.ts +0 -0
- /package/libs/types/{toast → components/toast}/src/create.d.ts +0 -0
- /package/libs/types/{tooltip → components/tooltip}/index.d.ts +0 -0
- /package/libs/types/{tooltip → components/tooltip}/src/constants.d.ts +0 -0
- /package/libs/types/{tooltip → components/tooltip}/src/direactive.d.ts +0 -0
- /package/libs/types/{tooltip → components/tooltip}/src/popper.d.ts +0 -0
- /package/libs/types/{tooltip → components/tooltip}/src/tooltip.d.ts +0 -0
package/libs/index.mjs
CHANGED
|
@@ -12,7 +12,7 @@ const En = {
|
|
|
12
12
|
}
|
|
13
13
|
}, Nt = L("zh-CN"), Et = F({
|
|
14
14
|
"zh-CN": En
|
|
15
|
-
}),
|
|
15
|
+
}), Xt = {
|
|
16
16
|
text() {
|
|
17
17
|
return Et[Nt.value];
|
|
18
18
|
},
|
|
@@ -22,7 +22,7 @@ const En = {
|
|
|
22
22
|
add(e = {}) {
|
|
23
23
|
Object.assign(Et, e);
|
|
24
24
|
}
|
|
25
|
-
}, Ie = (e) => (t) => Object.prototype.toString.call(t) === `[object ${e}]`,
|
|
25
|
+
}, Ie = (e) => (t) => Object.prototype.toString.call(t) === `[object ${e}]`, Yt = Ie("Function"), Ln = Ie("String"), Bn = Ie("Number"), Vn = Ie("Object"), In = Ie("Promise"), ot = (e, t) => t ? typeof t == "string" ? ` ${e}--${t}` : Array.isArray(t) ? t.reduce((a, l) => a + ot(e, l), "") : Object.keys(t).reduce(
|
|
26
26
|
(a, l) => a + (t[l] ? ot(e, l) : ""),
|
|
27
27
|
""
|
|
28
28
|
) : "", zn = (e) => (t, a) => {
|
|
@@ -31,7 +31,7 @@ const En = {
|
|
|
31
31
|
}, An = () => (e, t) => t ? `${ot(`y-${e}`, t)}` : `y-${e}`, P = (e) => {
|
|
32
32
|
const t = `y-${e}`;
|
|
33
33
|
return [t, zn(t), An()];
|
|
34
|
-
}, qt = (e) =>
|
|
34
|
+
}, qt = (e) => Xt.text()[e];
|
|
35
35
|
var Gt = /* @__PURE__ */ ((e) => (e.Mini = "mini", e.Small = "small", e.Middle = "middle", e.Large = "large", e))(Gt || {}), Ct = /* @__PURE__ */ ((e) => (e.Top = "top", e.Middle = "middle", e.Bottom = "bottom", e))(Ct || {});
|
|
36
36
|
const _ = (e) => isNaN(Number(e)) && typeof e == "string" ? e : `${e}px`, Lt = (e, t) => typeof e == "string" && e.includes("%") && e.includes("%") ? t * Number(e.replace(/%/g, "")) / 100 : Number(e), Mn = (e) => {
|
|
37
37
|
switch (e) {
|
|
@@ -235,11 +235,11 @@ const _n = {
|
|
|
235
235
|
const $ = r.size + r.space, A = i.length * $;
|
|
236
236
|
let R = -(d.offset + I.offset) - d.cloneNodeCount * $;
|
|
237
237
|
R < 0 && (R += A);
|
|
238
|
-
const
|
|
238
|
+
const Y = R + d.viewportSize;
|
|
239
239
|
for (let W = 0; W < i.length; W++)
|
|
240
240
|
if (!s.list[W]) {
|
|
241
241
|
const K = $ * W, ae = K + r.size;
|
|
242
|
-
(K >= R && K <
|
|
242
|
+
(K >= R && K < Y || ae > R && ae < Y || K < R && ae > Y) && (s.list[W] = !0);
|
|
243
243
|
}
|
|
244
244
|
}, s = F({
|
|
245
245
|
list: m()
|
|
@@ -271,13 +271,13 @@ const _n = {
|
|
|
271
271
|
if (ce(p).catch(() => {
|
|
272
272
|
}), e.touchable && f.value) {
|
|
273
273
|
const $ = f.value;
|
|
274
|
-
$.addEventListener("touchstart",
|
|
274
|
+
$.addEventListener("touchstart", X, !1), $.addEventListener("mousedown", X, !1), $.addEventListener("touchmove", te, !1), $.addEventListener("mousemove", te, !1), $.addEventListener("touchend", B, !1), $.addEventListener("mouseup", B, !1), $.addEventListener("mouseleave", B, !1), $.addEventListener("touchcancel", B, !1);
|
|
275
275
|
}
|
|
276
276
|
window.addEventListener("resize", p, !1), window.addEventListener("orientationchange", p, !1);
|
|
277
277
|
}), Be(() => {
|
|
278
278
|
if (V(), e.touchable && f.value) {
|
|
279
279
|
const $ = f.value;
|
|
280
|
-
$.removeEventListener("touchstart",
|
|
280
|
+
$.removeEventListener("touchstart", X, !1), $.removeEventListener("mousedown", X, !1), $.removeEventListener("mousemove", te, !1), $.removeEventListener("touchmove", te, !1), $.removeEventListener("mouseup", B, !1), $.removeEventListener("touchend", B, !1), $.removeEventListener("mouseleave", B, !1), $.removeEventListener("touchcancel", B, !1);
|
|
281
281
|
}
|
|
282
282
|
window.removeEventListener("resize", p, !1), window.removeEventListener("orientationchange", p, !1);
|
|
283
283
|
});
|
|
@@ -335,7 +335,7 @@ const _n = {
|
|
|
335
335
|
startTime: /* @__PURE__ */ new Date(),
|
|
336
336
|
// 是否在执行动画
|
|
337
337
|
transitionEnabled: !1
|
|
338
|
-
}),
|
|
338
|
+
}), X = ($) => {
|
|
339
339
|
if (I.transitionEnabled)
|
|
340
340
|
return;
|
|
341
341
|
let A = 0, R = 0;
|
|
@@ -345,12 +345,12 @@ const _n = {
|
|
|
345
345
|
return;
|
|
346
346
|
let A = 0, R = 0;
|
|
347
347
|
"touches" in $ ? (A = $.touches[0].clientX, R = $.touches[0].clientY) : (A = $.clientX, R = $.clientY);
|
|
348
|
-
const
|
|
349
|
-
if (I.isFirstTouch && (I.isFirstTouch = !1, Math.abs(
|
|
348
|
+
const Y = A - I.startX, W = R - I.startY;
|
|
349
|
+
if (I.isFirstTouch && (I.isFirstTouch = !1, Math.abs(Y) < Math.abs(W) !== e.vertical)) {
|
|
350
350
|
I.isDragging = !1;
|
|
351
351
|
return;
|
|
352
352
|
}
|
|
353
|
-
$.preventDefault(), I.offset = e.vertical ? W :
|
|
353
|
+
$.preventDefault(), I.offset = e.vertical ? W : Y, y(), a("dragging", {
|
|
354
354
|
percent: I.offset / (r.size + r.space),
|
|
355
355
|
offset: I.offset
|
|
356
356
|
});
|
|
@@ -408,17 +408,17 @@ const _n = {
|
|
|
408
408
|
ref: x
|
|
409
409
|
}, [Array(d.cloneNodeCount).fill("").map((A, R) => {
|
|
410
410
|
var K, ae, ye;
|
|
411
|
-
const
|
|
411
|
+
const Y = N(R - d.cloneNodeCount), W = (ye = (K = i[Y]) == null ? void 0 : (ae = K.slots).default) == null ? void 0 : ye.call(ae);
|
|
412
412
|
return W ? c(ue, {
|
|
413
413
|
clonenNode: W,
|
|
414
|
-
index:
|
|
414
|
+
index: Y
|
|
415
415
|
}, null) : null;
|
|
416
416
|
}), ($ = t.default) == null ? void 0 : $.call(t), Array(d.cloneNodeCount).fill("").map((A, R) => {
|
|
417
417
|
var K, ae, ye;
|
|
418
|
-
const
|
|
418
|
+
const Y = N(R), W = (ye = (K = i[Y]) == null ? void 0 : (ae = K.slots).default) == null ? void 0 : ye.call(ae);
|
|
419
419
|
return W ? c(ue, {
|
|
420
420
|
clonenNode: W,
|
|
421
|
-
index:
|
|
421
|
+
index: Y
|
|
422
422
|
}, null) : null;
|
|
423
423
|
})]), t.dots ? t.dots() : le()]);
|
|
424
424
|
};
|
|
@@ -727,14 +727,14 @@ Fe.install = (e) => {
|
|
|
727
727
|
const { name: t } = Fe;
|
|
728
728
|
e.component(t, Fe);
|
|
729
729
|
};
|
|
730
|
-
const It = 10,
|
|
730
|
+
const It = 10, Xn = (e, t) => e > t && e > It ? "horizontal" : t > e && t > It ? "vertical" : "", Yn = (e, t) => Math.abs(e) > Math.abs(t) ? e > 0 ? "right" : "left" : t > 0 ? "bottom" : "top", qn = () => {
|
|
731
731
|
const e = L(0), t = L(0), a = L(0), l = L(0), o = L(0), i = L(0), n = L(""), r = L(""), d = () => n.value === "vertical", f = () => n.value === "horizontal", x = () => {
|
|
732
732
|
a.value = 0, l.value = 0, o.value = 0, i.value = 0, n.value = "", r.value = "";
|
|
733
733
|
};
|
|
734
734
|
return {
|
|
735
735
|
move: (s) => {
|
|
736
736
|
const S = s.touches[0];
|
|
737
|
-
a.value = S.clientX < 0 ? 0 : S.clientX - e.value, l.value = S.clientY - t.value, o.value = Math.abs(a.value), i.value = Math.abs(l.value), n.value || (n.value =
|
|
737
|
+
a.value = S.clientX < 0 ? 0 : S.clientX - e.value, l.value = S.clientY - t.value, o.value = Math.abs(a.value), i.value = Math.abs(l.value), n.value || (n.value = Xn(o.value, i.value)), r.value = Yn(a.value, l.value);
|
|
738
738
|
},
|
|
739
739
|
start: (s) => {
|
|
740
740
|
x(), e.value = s.touches[0].clientX, t.value = s.touches[0].clientY;
|
|
@@ -830,8 +830,8 @@ const It = 10, Yn = (e, t) => e > t && e > It ? "horizontal" : t > e && t > It ?
|
|
|
830
830
|
width: V
|
|
831
831
|
} = l.value.getBoundingClientRect(), D = b.clientX - w, I = Math.floor(k + D / V * p.value);
|
|
832
832
|
if (d.value) {
|
|
833
|
-
const
|
|
834
|
-
I <= B ? s([I, te]) : s([
|
|
833
|
+
const X = E[0], te = E[1], B = (X + te) / 2;
|
|
834
|
+
I <= B ? s([I, te]) : s([X, I]);
|
|
835
835
|
} else
|
|
836
836
|
s(I);
|
|
837
837
|
}, m = (b) => b[0] > b[1] ? [b[1], b[0]] : b, y = (b, k) => JSON.stringify(b) === JSON.stringify(k), s = (b, k) => {
|
|
@@ -1194,9 +1194,9 @@ const [Kn, fe] = P("loading"), Zn = {
|
|
|
1194
1194
|
}, D = (B) => V(s.value, B), I = () => {
|
|
1195
1195
|
if (k(), e.virtual) {
|
|
1196
1196
|
const B = T();
|
|
1197
|
-
|
|
1197
|
+
X(B);
|
|
1198
1198
|
}
|
|
1199
|
-
},
|
|
1199
|
+
}, X = (B) => {
|
|
1200
1200
|
if (!d.value)
|
|
1201
1201
|
return;
|
|
1202
1202
|
const O = B || 0;
|
|
@@ -1231,7 +1231,7 @@ const [Kn, fe] = P("loading"), Zn = {
|
|
|
1231
1231
|
checkIsScrollToBottom: k,
|
|
1232
1232
|
loadData: b
|
|
1233
1233
|
}), Q(() => {
|
|
1234
|
-
e.height !== "auto" ? (i.value = !1, o.value = r.value.clientHeight) : e.height === "auto" && (i.value = !0, o.value = document.documentElement.clientHeight, document.addEventListener("scroll", I)), e.virtual && (E(),
|
|
1234
|
+
e.height !== "auto" ? (i.value = !1, o.value = r.value.clientHeight) : e.height === "auto" && (i.value = !0, o.value = document.documentElement.clientHeight, document.addEventListener("scroll", I)), e.virtual && (E(), X()), e.immediateCheck && k();
|
|
1235
1235
|
}), Cn(async () => {
|
|
1236
1236
|
var B, O;
|
|
1237
1237
|
if (e.virtual && e.dynamicItemHeight) {
|
|
@@ -1616,7 +1616,7 @@ Ue.install = (e) => {
|
|
|
1616
1616
|
const { name: t } = Ue;
|
|
1617
1617
|
e.component(t, Ue);
|
|
1618
1618
|
};
|
|
1619
|
-
const [ol, zt] = P("switch"),
|
|
1619
|
+
const [ol, zt] = P("switch"), Xe = /* @__PURE__ */ M({
|
|
1620
1620
|
name: ol,
|
|
1621
1621
|
props: {
|
|
1622
1622
|
size: {
|
|
@@ -1702,9 +1702,9 @@ const [ol, zt] = P("switch"), Ye = /* @__PURE__ */ M({
|
|
|
1702
1702
|
};
|
|
1703
1703
|
}
|
|
1704
1704
|
});
|
|
1705
|
-
|
|
1706
|
-
const { name: t } =
|
|
1707
|
-
e.component(t,
|
|
1705
|
+
Xe.install = (e) => {
|
|
1706
|
+
const { name: t } = Xe;
|
|
1707
|
+
e.component(t, Xe);
|
|
1708
1708
|
};
|
|
1709
1709
|
const il = (e, t, a, l) => {
|
|
1710
1710
|
const o = Math.abs(e - a), i = Math.abs(t - l), n = Math.sqrt(o * o + i * i);
|
|
@@ -1722,7 +1722,7 @@ const il = (e, t, a, l) => {
|
|
|
1722
1722
|
let U = /* @__PURE__ */ function(e) {
|
|
1723
1723
|
return e.DEFUALT = "normal", e.PULLING = "pulling", e.LOOSING = "loosing", e.LOADING = "loading", e.SUCCESS = "success", e.FAILED = "failed", e;
|
|
1724
1724
|
}({});
|
|
1725
|
-
const cl = (e) => e < 60 ? 1 : 1 - (e - 60) / 600,
|
|
1725
|
+
const cl = (e) => e < 60 ? 1 : 1 - (e - 60) / 600, Ye = /* @__PURE__ */ M({
|
|
1726
1726
|
name: ul,
|
|
1727
1727
|
props: {
|
|
1728
1728
|
pullingText: {
|
|
@@ -1832,9 +1832,9 @@ const cl = (e) => e < 60 ? 1 : 1 - (e - 60) / 600, Xe = /* @__PURE__ */ M({
|
|
|
1832
1832
|
};
|
|
1833
1833
|
}
|
|
1834
1834
|
});
|
|
1835
|
-
|
|
1836
|
-
const { name: t } =
|
|
1837
|
-
e.component(t,
|
|
1835
|
+
Ye.install = (e) => {
|
|
1836
|
+
const { name: t } = Ye;
|
|
1837
|
+
e.component(t, Ye);
|
|
1838
1838
|
};
|
|
1839
1839
|
const [dl, me, fl] = P("cell"), qe = /* @__PURE__ */ M({
|
|
1840
1840
|
name: dl,
|
|
@@ -3200,7 +3200,7 @@ const hn = "form-item", [Ol, Oe, Rl] = P(hn), _l = qt(hn), tt = /* @__PURE__ */
|
|
|
3200
3200
|
const {
|
|
3201
3201
|
message: N
|
|
3202
3202
|
} = T;
|
|
3203
|
-
return
|
|
3203
|
+
return Yt(N) ? N(g, T) : N;
|
|
3204
3204
|
}, v = (g) => g.reduce((T, N) => T.then(() => {
|
|
3205
3205
|
if (n.value)
|
|
3206
3206
|
return null;
|
|
@@ -3499,7 +3499,7 @@ lt.install = (e) => {
|
|
|
3499
3499
|
function jl(e) {
|
|
3500
3500
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Le(e);
|
|
3501
3501
|
}
|
|
3502
|
-
const [
|
|
3502
|
+
const [Xl, J] = P("dialog"), Yl = {
|
|
3503
3503
|
// 控制显示
|
|
3504
3504
|
modelValue: {
|
|
3505
3505
|
type: Boolean,
|
|
@@ -3571,11 +3571,11 @@ const [Yl, J] = P("dialog"), Xl = {
|
|
|
3571
3571
|
default: "body"
|
|
3572
3572
|
}
|
|
3573
3573
|
}, ke = /* @__PURE__ */ M({
|
|
3574
|
-
name:
|
|
3574
|
+
name: Xl,
|
|
3575
3575
|
directives: {
|
|
3576
3576
|
loading: an
|
|
3577
3577
|
},
|
|
3578
|
-
props:
|
|
3578
|
+
props: Yl,
|
|
3579
3579
|
emits: ["update:modelValue", "cancel", "confirm"],
|
|
3580
3580
|
setup(e, {
|
|
3581
3581
|
emit: t,
|
|
@@ -3599,7 +3599,7 @@ const [Yl, J] = P("dialog"), Xl = {
|
|
|
3599
3599
|
beforeClose: S
|
|
3600
3600
|
} = e;
|
|
3601
3601
|
if (s)
|
|
3602
|
-
if (
|
|
3602
|
+
if (Yt(S)) {
|
|
3603
3603
|
l[y] = !0;
|
|
3604
3604
|
const v = S(y);
|
|
3605
3605
|
In(v) ? v.then((p) => {
|
|
@@ -3669,7 +3669,7 @@ const [Yl, J] = P("dialog"), Xl = {
|
|
|
3669
3669
|
class: J("container")
|
|
3670
3670
|
}, [c("div", {
|
|
3671
3671
|
style: {
|
|
3672
|
-
height: k ? x(_(y), 4, (
|
|
3672
|
+
height: k ? x(_(y), 4, (X) => X + 20) : "24px"
|
|
3673
3673
|
}
|
|
3674
3674
|
}, null), ((V = a.title) == null ? void 0 : V.call(a)) || c("div", {
|
|
3675
3675
|
class: J("title"),
|
|
@@ -3989,7 +3989,7 @@ at.install = (e) => {
|
|
|
3989
3989
|
const $n = [
|
|
3990
3990
|
// 组件
|
|
3991
3991
|
se,
|
|
3992
|
-
|
|
3992
|
+
Xt,
|
|
3993
3993
|
We,
|
|
3994
3994
|
_e,
|
|
3995
3995
|
Fe,
|
|
@@ -3998,8 +3998,8 @@ const $n = [
|
|
|
3998
3998
|
ue,
|
|
3999
3999
|
je,
|
|
4000
4000
|
Ue,
|
|
4001
|
-
Ye,
|
|
4002
4001
|
Xe,
|
|
4002
|
+
Ye,
|
|
4003
4003
|
qe,
|
|
4004
4004
|
et,
|
|
4005
4005
|
tt,
|
|
@@ -4043,13 +4043,13 @@ export {
|
|
|
4043
4043
|
Ce as Mask,
|
|
4044
4044
|
Te as Popup,
|
|
4045
4045
|
Qe as Progress,
|
|
4046
|
-
|
|
4046
|
+
Ye as Pullrefresh,
|
|
4047
4047
|
Ge as Row,
|
|
4048
4048
|
He as Slider,
|
|
4049
4049
|
Je as Stepper,
|
|
4050
4050
|
we as Swipe,
|
|
4051
4051
|
ue as SwipeItem,
|
|
4052
|
-
|
|
4052
|
+
Xe as Switch,
|
|
4053
4053
|
Fe as Tab,
|
|
4054
4054
|
_e as Tabs,
|
|
4055
4055
|
at as Tooltip,
|
|
@@ -4057,6 +4057,6 @@ export {
|
|
|
4057
4057
|
ea as default,
|
|
4058
4058
|
sn as empty,
|
|
4059
4059
|
ln as loadingDirective,
|
|
4060
|
-
|
|
4060
|
+
Xt as locale,
|
|
4061
4061
|
xn as tooltipDirective
|
|
4062
4062
|
};
|