el-tree highlight-current
时间: 2023-10-07 15:10:04 浏览: 128
highlight
el-tree的highlight-current属性是用于启用或禁用当前节点高亮显示的功能。当highlight-current属性被设置为true时,el-tree组件将会高亮显示当前被选中的节点。这可以通过在el-tree组件中设置highlight-current属性为true来实现:
<el-tree :highlight-current="true"></el-tree>
在这个例子中,el-tree组件被设置为启用highlight-current属性,这样就可以实现节点的高亮显示。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [el-tree 实现节点高亮](https://blog.csdn.net/weixin_28898107/article/details/129881583)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [el-tree 默认选中并高亮显示](https://blog.csdn.net/zhengzzzzz/article/details/125557451)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文