el-tree固定高度加滾動條


<div class="tree mt10">
                <el-tree
                  :data="date"
                  show-checkbox
                  node-key="moduldCode"
                  ref="tree"
                  :check-strictly="false"
                  :highlight-current="true"
                  :check-on-click-node="true"
                  :accordion="true"
                  :default-checked-keys="[checkedkey]"
                  :default-expanded-keys="checkedkey"
                  :filter-node-method="filterNode"
                  :props="defaultProps"
                  :default-expand-all="true"
                  @check-change="parentModules"
                  @node-click="clickTree"
                ></el-tree>
              </div>
<style  lang="scss"  scoped>
.el-tree {
  min-width: 100%;
  display: inline-block;
}
.tree {
//   overflow-y: auto;
//   overflow-x: scroll;
  overflow:auto;
  max-height: 200px;
  /*width:200px;*/
//   border: 1px solid blue;
}
</style>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM