浏览器底部抬升,滚动条没有及时展示,导致部分信息被隐藏。
后来查询代码,发现是flex:1;的外层div高度设置有误,应该设置的矮一些。
<div class="flex flex-1" style="margin: 10px 0px 30px 0; height: calc(100% - 20px);">
<template>
<div class="orgManagement flex flex-y-column maxHt">
<div style="
background: #ffffff;
min-width: 1020px;
padding: 20px 20px 0 10px;
"
>
<ISearchForm
ref="searchForm"
:fields="pageData.queryFields"
@search="searchList(1)"
>
</ISearchForm>
</div>
<div class="flex flex-1" style="margin: 10px 0px 30px 0; height: calc(100% - 20px);">
<div class="bg-white maxHt" style="padding: 20px; min-width: 350px; overflow: scroll;">
<el-tree
v-loading="treeLoading"
:data="treeData"
default-expand-all
node-key="id"
ref="tree"
highlight-current
:expand-on-click-node="false"
:props="defaultProps"
@node-click="handleNodeClick"
>
最后改为如下,就可以了。
<div class="flex flex-1" style="margin: 10px 0px 30px 0; height: calc(100% - 120px);">