<!-- 樹狀結構圖 -->
<el-tree
:data="partmentdate"
:props="defaultProps"
@node-click="handleNodeClick2"
highlight-current="true"
default-expand-all
></el-tree></div
可以更改默認樣式:
背景色-選中后的顯示
>>> .el-tree-node:focus>.el-tree-node__content { background-color: #5daaf0; }
鼠標移動上去效果
>>> .el-tree-node__content { &:hover { // background: #89c2f7; background: #eff7ff; } }
具體字體樣式修改:
>>> .el-tree-node__label {
width: auto;
margin-top: 12px;
font-size: 18px;
color: #999;
line-height: 35px;
height:50px;
letter-spacing: 1px;
}


