1、加  属性    highlight-current
<el-tree :props="treeProps" :load="loadNode" highlight-current @node-click="clickNode" lazy></el-tree>

2、加样式

<style >

.el-tree-node.is-current > .el-tree-node__content {
background-color: rgb(64, 158, 255) !important;
}

</style>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-09
  • 2021-12-23
  • 2022-12-23
  • 2022-01-15
  • 2021-04-09
猜你喜欢
  • 2022-12-23
  • 2021-09-25
  • 2021-11-05
  • 2022-12-23
  • 2022-12-23
  • 2022-02-01
  • 2022-12-23
相关资源
相似解决方案