mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-18 02:14:32 +08:00
修复表格初次获取滚动高度
This commit is contained in:
Vendored
+3
-1
@@ -438,7 +438,9 @@ const Env = ({ headerStyle, isPhone, theme }: any) => {
|
||||
|
||||
useEffect(() => {
|
||||
const offset = isPhone ? 40 : 0;
|
||||
setTableScrollHeight(getTableScroll({ extraHeight: 87 }) - offset);
|
||||
setTimeout(() => {
|
||||
setTableScrollHeight(getTableScroll({ extraHeight: 87 }) - offset);
|
||||
});
|
||||
}, []);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user