mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-18 02:14:32 +08:00
修复表格样式
This commit is contained in:
Vendored
+4
-2
@@ -366,7 +366,8 @@ const Env = ({ headerStyle, isPhone, theme }: any) => {
|
||||
|
||||
setTimeout(() => {
|
||||
if (selectedRowIds.length === 0 || selectedIds.length === 0) {
|
||||
setTableScrollHeight(getTableScroll({ extraHeight: 40 }));
|
||||
const offset = isPhone ? 40 : 0;
|
||||
setTableScrollHeight(getTableScroll({ extraHeight: 127 }) - offset);
|
||||
}
|
||||
});
|
||||
};
|
||||
@@ -435,7 +436,8 @@ const Env = ({ headerStyle, isPhone, theme }: any) => {
|
||||
}, [searchText]);
|
||||
|
||||
useEffect(() => {
|
||||
setTableScrollHeight(getTableScroll({ extraHeight: 40 }));
|
||||
const offset = isPhone ? 40 : 0;
|
||||
setTableScrollHeight(getTableScroll({ extraHeight: 127 }) - offset);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user