el-tree 添加选中时的颜色(vue)
<el-tree
style="margin-top:15px;"
:data="templates"
:props="templateDataProps"
@current-change="handleNodeClick"
:highlight-current='true'
default-expand-all
:expand-on-click-node="false">
</el-tree>
<!--在 style 标签中自定义颜色 -->
<style>
/* 点击树结构项的选中颜色 */
.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
background-color: #b0c4de;
}
</style>