element树形控件 弹出框
时间: 2023-08-26 08:04:43 浏览: 211
element树形控件可以通过el-popover组件实现弹出框功能。在代码中,可以通过设置el-button的@click.prevent事件来控制弹出框的显示。在el-popover组件内部,可以使用visible属性来控制弹出框的可见性。具体地,可以给tree每个元素都设置visible[i属性,在点击每个元素时,通过循环将对应的visible[i设置为true,其他元素的visible[i设置为false。这样可以实现点击元素时只显示其对应的弹出框。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [vue实现带复选框的树形菜单](https://download.csdn.net/download/weixin_38515897/12941620)[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_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [element怎么让树形控件(el-tree)点击只显示自己元素的弹出框(el-popover)](https://blog.csdn.net/q249859693/article/details/124864133)[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_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文