
:highlight-current="highlightBd"
            
            
              html
              
              
            
          
           <el-tree
            :data="deptOptions"
            :props="defaultProps"
            :highlight-current="highlightBd"
            :expand-on-click-node="false"
            :filter-node-method="filterNode"
            ref="tree"
            @node-click="handleNodeClick"
          />
            
            
              css
              
              
            
          
          <style scoped lang='scss'>
/* 改变被点击节点背景颜色,字体颜色 */
::v-deep .el-tree-node:focus > .el-tree-node__content {
  background-color: #4186FF !important;
  color: #fff !important;
}
/*节点失焦时的背景颜色*/
::v-deep .el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content{
  background-color: #4186FF !important;
  color: #fff !important;
}
</style>