mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 01:14:50 +08:00
修复表格滚动高度
This commit is contained in:
@@ -677,8 +677,7 @@ const Crontab = ({ headerStyle, isPhone }: any) => {
|
||||
|
||||
setTimeout(() => {
|
||||
if (selectedRowIds.length === 0 || selectedIds.length === 0) {
|
||||
const offset = isPhone ? 40 : 0;
|
||||
setTableScrollHeight(getTableScroll() - offset);
|
||||
setTableScrollHeight(getTableScroll());
|
||||
}
|
||||
});
|
||||
};
|
||||
@@ -762,9 +761,8 @@ const Crontab = ({ headerStyle, isPhone }: any) => {
|
||||
|
||||
useEffect(() => {
|
||||
setPageSize(parseInt(localStorage.getItem('pageSize') || '20'));
|
||||
const offset = isPhone ? 40 : 0;
|
||||
setTimeout(() => {
|
||||
setTableScrollHeight(getTableScroll() - offset);
|
||||
setTableScrollHeight(getTableScroll());
|
||||
});
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user