el-tree plus scroll bar
Ⅰ. el-tree
The vertical scroll bar only needs to add height
a limit height, and the horizontal scroll bar needs to write its own style
Ⅱ. The method is as follows:
- Add a class to el-tree: flow-tree
- Write the following style in the style, other style writing methods may appear stuck when folding nodes
/deep/.el-tree {
width: 100%;
overflow: scroll;
}
/deep/.el-tree>.el-tree-node {
display: inline-block;
min-width: 100%;
}