Skip to content

解决 Element UI el-tree 组件宽度超出父元素滚动条无效问题

Published: at 03:31 AMSuggest Changes

问题

如题

解决

::v-deep {
  .el-tree {
    overflow: auto
  }
  .el-tree-node__content {
    align-self: baseline;
  }
  .el-tree>.el-tree-node{
    min-width:100%;
    display: inline-block;
  }
}

参考文章

https://www.jianshu.com/p/d9ed857ddd4d https://blog.csdn.net/my_bo/article/details/112348546


Previous Post
Element el-tree 组件搜索高亮
Next Post
ESLint Variable 'data' is already declared in the upper scope. 错误解决