<div class="isTree">
<el-tree></el-tree>
</div>
<style lang="scss">
.isTree{
width: 100%;
height: 100%;
overflow: auto;
.el-tree{
display: inline-block;
min-width: 100%;
}
}
</style>
2.0:
<style lang="scss">
.isTree{
width: 100%;
height: 100%;
overflow: auto;
.el-tree>.el-tree-node {
display: inline-block;
min-width: 100%;
}
}
</style>
3.0
.isTree{
width: 95%;
height: 100%;
overflow: auto;
.el-tree>.el-tree-node {
display: inline-block;
min-width: 100%;
}
}