Просмотр исходного кода

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

jackhoo_98 3 лет назад
Родитель
Сommit
13bacb0931
1 измененных файлов с 1 добавлено и 1 удалено
  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