<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>

el-tree固定高度加滚动条

 

相关文章:

  • 2022-12-23
  • 2021-07-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-10
  • 2021-12-08
  • 2021-07-21
  • 2021-08-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案