pb-sxp-ui 1.19.11 → 1.19.12
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 +5 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -26
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +4 -4
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +5 -26
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +4 -4
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/index.js +2 -2
- package/es/core/hooks/useVisibleHeight.js +2 -1
- package/lib/core/components/SxpPageRender/index.js +2 -2
- package/lib/core/hooks/useVisibleHeight.js +2 -1
- package/package.json +1 -1
|
@@ -234,8 +234,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
234
234
|
return safeAreaBottom;
|
|
235
235
|
};
|
|
236
236
|
const height = useMemo(() => {
|
|
237
|
-
return
|
|
238
|
-
}, [minusHeight,
|
|
237
|
+
return visibleHeight - minusHeight - tagHeight - getHeightWithSafeArea2();
|
|
238
|
+
}, [minusHeight, visibleHeight, tagHeight, getHeightWithSafeArea2]);
|
|
239
239
|
const visList = useMemo(() => {
|
|
240
240
|
var _a;
|
|
241
241
|
const list = activeIndex === 0 && !waterFallData && !isEditor && !isDiyH5
|
|
@@ -17,7 +17,8 @@ export const useVisibleHeight = () => {
|
|
|
17
17
|
return height;
|
|
18
18
|
};
|
|
19
19
|
const updateHeight = useCallback(() => {
|
|
20
|
-
|
|
20
|
+
var _a;
|
|
21
|
+
const height = ((_a = document === null || document === void 0 ? void 0 : document.documentElement) === null || _a === void 0 ? void 0 : _a.clientHeight) || (window === null || window === void 0 ? void 0 : window.innerHeight);
|
|
21
22
|
setVisibleHeight(height);
|
|
22
23
|
}, []);
|
|
23
24
|
useEffect(() => {
|
|
@@ -237,8 +237,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
237
237
|
return safeAreaBottom;
|
|
238
238
|
};
|
|
239
239
|
const height = (0, react_1.useMemo)(() => {
|
|
240
|
-
return
|
|
241
|
-
}, [minusHeight,
|
|
240
|
+
return visibleHeight - minusHeight - tagHeight - getHeightWithSafeArea2();
|
|
241
|
+
}, [minusHeight, visibleHeight, tagHeight, getHeightWithSafeArea2]);
|
|
242
242
|
const visList = (0, react_1.useMemo)(() => {
|
|
243
243
|
var _a;
|
|
244
244
|
const list = activeIndex === 0 && !waterFallData && !isEditor && !isDiyH5
|
|
@@ -20,7 +20,8 @@ const useVisibleHeight = () => {
|
|
|
20
20
|
return height;
|
|
21
21
|
};
|
|
22
22
|
const updateHeight = (0, react_1.useCallback)(() => {
|
|
23
|
-
|
|
23
|
+
var _a;
|
|
24
|
+
const height = ((_a = document === null || document === void 0 ? void 0 : document.documentElement) === null || _a === void 0 ? void 0 : _a.clientHeight) || (window === null || window === void 0 ? void 0 : window.innerHeight);
|
|
24
25
|
setVisibleHeight(height);
|
|
25
26
|
}, []);
|
|
26
27
|
(0, react_1.useEffect)(() => {
|