elementui el-tree 树节点颜色修改

Posted on 2021-08-17 16:26  zkx4213  阅读(1914)  评论(0编辑  收藏  举报
/* el-tree 设置鼠标移上去显示的颜色 */
#modelTree .el-tree-node__content:hover {
background-color: #65a19f !important;
}

/* 点击节点时的选中颜色 */
#modelTree .el-tree-node.is-current > .el-tree-node__content {
background-color: #65a19f !important;
}

/* 右键点击时的选中颜色 */
#modelTree .el-tree-node:focus>.el-tree-node__content{
background: #65a19f !important;
}

Copyright © 2024 zkx4213
Powered by .NET 9.0 on Kubernetes