@fox-js/foxui 4.0.1-27 → 4.0.1-28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +3 -3
- package/dist/index.esm.js +7 -9
- package/dist/index.umd.js +3 -3
- package/dist/locale/index.esm.js +1 -1
- package/dist/locale/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import Vt from "@fox-js/validator";
|
|
|
3
3
|
import { Left as Kn, RectUp as Vs, CircleClose as mt, Close as yn, ArrowRight as zn, JoySmile as Ds, Loading as Ct, Checklist as Is, Date as aa, CheckNormal as Yo, CheckChecked as xs, Checked as Xo, CheckDisabled as qs, Loading1 as Es, StarFillN as Ps, Search2 as Ms, MoreH as Bs, Uploader as Os, Right as Qo, Image as Ls, ImageError as Rs, ArrowUp2 as sa, ArrowDown2 as ia, Check as ra, Minus as Fs, Plus as Ks, Tips as ua, Photograph as zs, Failure as ca, Del as da, Link as Hs, Top as Us, Success as js, Service as Ws, Notice as Ys, DownArrow as fa, TriangleUp as Xs, TriangleDown as Qs, Location as Gs, Location2 as Zs, Edit as Js, Fabulous as _s, Comment as ei, MoreX as ti } from "@fox-js/icons-vue";
|
|
4
4
|
import { useFoxI18n as Te } from "@fox-js/i18n";
|
|
5
5
|
/*!
|
|
6
|
-
* @fox-js/foxui-base v4.0.0
|
|
6
|
+
* @fox-js/foxui-base v4.0.0 Thu Feb 29 2024 00:07:21 GMT+0800 (中国标准时间)
|
|
7
7
|
*/
|
|
8
8
|
const vn = window, ni = typeof window < "u";
|
|
9
9
|
function oi() {
|
|
@@ -1458,9 +1458,7 @@ function Ii(e, t, o) {
|
|
|
1458
1458
|
if (!l)
|
|
1459
1459
|
return;
|
|
1460
1460
|
let a = l[o];
|
|
1461
|
-
a && (Array.isArray(a) || (a = [a]),
|
|
1462
|
-
t.setRule(s);
|
|
1463
|
-
}));
|
|
1461
|
+
a && (Array.isArray(a) || (a = [a]), t.setRule(a));
|
|
1464
1462
|
}
|
|
1465
1463
|
function et(e, t, o) {
|
|
1466
1464
|
const l = Re()?.proxy, a = t ?? "", s = De(Qe, null), i = tl(l, s, a, o);
|
|
@@ -1918,8 +1916,8 @@ function Oi(e = 0, t = 0) {
|
|
|
1918
1916
|
pageLayout: {
|
|
1919
1917
|
width: "100%",
|
|
1920
1918
|
height: "100%",
|
|
1921
|
-
headerHeight:
|
|
1922
|
-
footerHeight:
|
|
1919
|
+
headerHeight: -1,
|
|
1920
|
+
footerHeight: -1
|
|
1923
1921
|
}
|
|
1924
1922
|
};
|
|
1925
1923
|
}
|
|
@@ -2674,7 +2672,7 @@ const Yi = (e, t, o, n = !1) => ({
|
|
|
2674
2672
|
};
|
|
2675
2673
|
if (s && i) {
|
|
2676
2674
|
const T = ht(l.padding ?? i.headerPadding);
|
|
2677
|
-
return Object.assign(A, T), m && (i.headerHeight = m), i.headerHeight > 0 && (A.height = i.headerHeight), A.safeAreaTop = i.safeAreaTop === -1 ? 0 : i.safeAreaTop, A.safeAreaTop > 0 && (A.top = A.safeAreaTop + (T.top ?? 0), A.height
|
|
2675
|
+
return Object.assign(A, T), m && (i.headerHeight = m), i.headerHeight > 0 && (A.height = i.headerHeight), A.safeAreaTop = i.safeAreaTop === -1 ? 0 : i.safeAreaTop, A.safeAreaTop > 0 && (A.top = A.safeAreaTop + (T.top ?? 0), A.height && A.height > 0 && (A.height = A.height + A.safeAreaTop)), A;
|
|
2678
2676
|
}
|
|
2679
2677
|
if (m && (A.height = m), l.padding) {
|
|
2680
2678
|
const T = ht(l.padding);
|
|
@@ -2872,7 +2870,7 @@ function Ji(e, t, o = !1) {
|
|
|
2872
2870
|
};
|
|
2873
2871
|
if (a && s) {
|
|
2874
2872
|
const y = ht(n.padding ?? s.footerPadding);
|
|
2875
|
-
return Object.assign(g, y), r && (s.footerHeight = r), s.footerHeight > 0 && (g.height = s.footerHeight), g.safeAreaBottom = s.safeAreaBottom === -1 ? 0 : s.safeAreaBottom, g.safeAreaBottom > 0 && (g.
|
|
2873
|
+
return Object.assign(g, y), r && (s.footerHeight = r), s.footerHeight > 0 && (g.height = s.footerHeight), g.safeAreaBottom = s.safeAreaBottom === -1 ? 0 : s.safeAreaBottom, g.safeAreaBottom > 0 && (g.bottom = g.safeAreaBottom + (y.bottom ?? 0), g.height && g.height > 0 && (g.height = g.height + g.safeAreaBottom)), g;
|
|
2876
2874
|
}
|
|
2877
2875
|
if (r && (g.height = r), n.padding) {
|
|
2878
2876
|
const y = ht(n.padding);
|
|
@@ -16941,7 +16939,7 @@ const { componentName: Nb, create: Vb, scope: Db } = _("pull-refresh"), Ib = Vb(
|
|
|
16941
16939
|
if (y()) {
|
|
16942
16940
|
a.move(C);
|
|
16943
16941
|
const { deltaY: V } = a;
|
|
16944
|
-
a.isVertical() && V.value > 0 && r.isPullRefresh && (C.preventDefault(), g(v(V.value)));
|
|
16942
|
+
a.isVertical() && V.value > 0 && r.isPullRefresh && (C.cancelable && C.preventDefault(), g(v(V.value)));
|
|
16945
16943
|
}
|
|
16946
16944
|
}, b = () => {
|
|
16947
16945
|
r.isPullRefresh && y() && a.deltaY.value && (r.status === "loosing" ? (g(+e.headHeight, !0), t("update:modelValue", !0), Me(() => t("refresh"))) : g(0)), setTimeout(() => {
|