pb-sxp-ui 1.19.20 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -14
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +2 -2
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +1 -14
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +2 -2
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/hooks/useVisibleHeight.js +1 -14
- package/lib/core/hooks/useVisibleHeight.js +1 -14
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -10371,7 +10371,7 @@ function useVisibleHeight() {
|
|
|
10371
10371
|
const h = screenHeight >= 900 ? screenHeight * 0.8 : screenHeight * 0.79;
|
|
10372
10372
|
// 当内容高度占屏幕高度90%以上时,使用按比例计算的高度
|
|
10373
10373
|
// 否则使用实际内容高度
|
|
10374
|
-
const isRatio = ratio >= threshold;
|
|
10374
|
+
const isRatio = ratio >= threshold && ratio !== 1;
|
|
10375
10375
|
const finalHeight = isRatio ? Math.round(h) : visibleHeight;
|
|
10376
10376
|
const b = screenHeight - Math.round(h);
|
|
10377
10377
|
if (isRatio) {
|
|
@@ -10399,19 +10399,6 @@ function useVisibleHeight() {
|
|
|
10399
10399
|
else {
|
|
10400
10400
|
setBottomHeight(0);
|
|
10401
10401
|
}
|
|
10402
|
-
if ('fundebug' in window) {
|
|
10403
|
-
const systemInfo = {
|
|
10404
|
-
ratio,
|
|
10405
|
-
h,
|
|
10406
|
-
finalHeight,
|
|
10407
|
-
visibleHeight,
|
|
10408
|
-
screenHeight,
|
|
10409
|
-
isInstagram,
|
|
10410
|
-
isFacebook,
|
|
10411
|
-
ua
|
|
10412
|
-
};
|
|
10413
|
-
window === null || window === void 0 ? void 0 : window.fundebug.notify('Collect_Info', 'resize', { metaData: { systemInfo, otherInfo: {} } });
|
|
10414
|
-
}
|
|
10415
10402
|
setVisibleHeight(finalHeight);
|
|
10416
10403
|
}, [getVisibleContentHeight]);
|
|
10417
10404
|
React.useEffect(() => {
|