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/pb-ui.js
CHANGED
|
@@ -10364,7 +10364,7 @@
|
|
|
10364
10364
|
const h = screenHeight >= 900 ? screenHeight * 0.8 : screenHeight * 0.79;
|
|
10365
10365
|
// 当内容高度占屏幕高度90%以上时,使用按比例计算的高度
|
|
10366
10366
|
// 否则使用实际内容高度
|
|
10367
|
-
const isRatio = ratio >= threshold;
|
|
10367
|
+
const isRatio = ratio >= threshold && ratio !== 1;
|
|
10368
10368
|
const finalHeight = isRatio ? Math.round(h) : visibleHeight;
|
|
10369
10369
|
const b = screenHeight - Math.round(h);
|
|
10370
10370
|
if (isRatio) {
|
|
@@ -10392,19 +10392,6 @@
|
|
|
10392
10392
|
else {
|
|
10393
10393
|
setBottomHeight(0);
|
|
10394
10394
|
}
|
|
10395
|
-
if ('fundebug' in window) {
|
|
10396
|
-
const systemInfo = {
|
|
10397
|
-
ratio,
|
|
10398
|
-
h,
|
|
10399
|
-
finalHeight,
|
|
10400
|
-
visibleHeight,
|
|
10401
|
-
screenHeight,
|
|
10402
|
-
isInstagram,
|
|
10403
|
-
isFacebook,
|
|
10404
|
-
ua
|
|
10405
|
-
};
|
|
10406
|
-
window === null || window === void 0 ? void 0 : window.fundebug.notify('Collect_Info', 'resize', { metaData: { systemInfo, otherInfo: {} } });
|
|
10407
|
-
}
|
|
10408
10395
|
setVisibleHeight(finalHeight);
|
|
10409
10396
|
}, [getVisibleContentHeight]);
|
|
10410
10397
|
React.useEffect(() => {
|