Explorar el Código

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

jackhoo_98 hace 3 años
padre
commit
13bacb0931
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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