零度星河
返回
发布于 更新于 阅读:391 评论:1

element-plus Tree 树形控件自定义选中高亮

el-tree 设置高亮:highlight-current="true" 添加以下样式

  • el-tree 设置高亮:highlight-current="true"
  • 添加以下样式
1
2
3
4
5
6
7
8
9
10
11
12
:deep(.el-tree-node:focus>.el-tree-node__content) {
background-color: transparent !important;
}
:deep(.el-tree-node.is-current > .el-tree-node__content) {
background-color: #e3f4fc !important;
}
:deep(.el-tree-node.is-current > .el-tree-node__content:hover) {
background-color: #e3f4fc !important;
}
:deep(.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content) {
background-color: #e3f4fc !important;
}
评论 (1)
暂无评论 来抢沙发吧~

目录

暂无目录

SpringWonderland

探索 Spring 生态的奇妙世界

2025-05-04 17:20

我的标签

随笔分类

归档

查看完整归档 →