Parcourir la source

fix: #9570 采集器 修复左侧树高度问题

jackhoo_98 il y a 3 ans
Parent
commit
13bacb0931
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/pages/DataCollect/Collector/components/Tree/index.tsx

+ 1 - 1
src/pages/DataCollect/Collector/components/Tree/index.tsx

@@ -154,7 +154,7 @@ export default observer((props: Props) => {
             style={{ overflow: 'hidden' }}
             className={styles['data-collect-tree']}
             showIcon
-            height={500}
+            height={document.body.clientHeight < 1000 ? document.body.clientHeight * 0.7 : 650}
             selectedKeys={TreeModel.selectedKeys}
             defaultExpandAll
             autoExpandParent