lanjianrong пре 4 година
родитељ
комит
6aa0775db9
2 измењених фајлова са 5 додато и 4 уклоњено
  1. 3 3
      src/components/Table/src/hooks/useTableScroll.ts
  2. 2 1
      src/global.less

+ 3 - 3
src/components/Table/src/hooks/useTableScroll.ts

@@ -107,10 +107,10 @@ export function useTableScroll({
     }
     calcTableHeight(dataSource || _dataSource)
   }
-  const { run: debounceRedoHeight } = useDebounceFn(redoHeight, { wait: 180 })
+  const { run: debounceRedoHeight } = useDebounceFn(redoHeight, { wait: 80 })
 
-  // Greater than animation time 180
-  useWindowSizeFn(() => debounceRedoHeight(), 180)
+  // Greater than animation time 80
+  useWindowSizeFn(() => debounceRedoHeight(), 80)
 
   useUpdateLayoutEffect(() => {
     debounceRedoHeight()

+ 2 - 1
src/global.less

@@ -10,7 +10,8 @@ body,
 }
 
 .ant-layout {
-  min-height: 100vh;
+  max-height: 100vh;
+  overflow-y: hidden;
 }
 
 // .ant-menu-submenu-selected .ant-menu-submenu-title {