el-tree 选中节点高亮颜色调整

/* .filter-tree .el-tree-node.is-current {
  background-color: rgb(54 9 9) !important;
} */

.filter-tree .el-tree-node:focus > .el-tree-node__content {
  background-color: #ccc !important;
}

不知道为什么上面那种方法不行,网上看到的下面的,可以的,就是style要是全局的,所以在el-tree加了个class  filter-tree

posted @ 2022-02-19 15:31  仓鼠爱画方格子  阅读(2026)  评论(0)    收藏  举报