el-dropdown 嵌套 el-dropdown
时间: 2023-10-06 14:08:32 浏览: 214
el-dropdown可以嵌套el-dropdown,这样可以实现多级的下拉菜单。通过在循环生成的下拉框的command事件中传入每一次循环的索引值,可以对当前索引值的下拉框的菜单项进行操作,而不会改变所有生成的下拉框的菜单项。这样就可以实现el-dropdown的嵌套使用。<span class="em">1</span><span class="em">2</span>
#### 引用[.reference_title]
- *1* [vue+element搭建后台小总结 el-dropdown下拉功能](https://download.csdn.net/download/weixin_38573171/12935800)[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* [Element之动态增加表单中嵌套下拉菜单踩坑](https://blog.csdn.net/y_yyyym/article/details/103186039)[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 ]
阅读全文