el-select提交后取消选种
时间: 2023-08-17 18:10:46 浏览: 111
根据提供的引用内容,el-select提交后取消选种的操作可以通过以下方式实现。在代码中,当点击el-select选项时,会触发getCurrentRow方法。在该方法中,如果selectRadio已经有值且与当前选中的选项相同,则将selectRadio置为空,同时将forbidden设置为false,然后通过setTimeout将forbidden重新设置为true。最后,通过$emit方法将回传数据清除。这样就实现了el-select提交后取消选种的功能。\[2\]
#### 引用[.reference_title]
- *1* [vue中实时筛选el-option的内容](https://blog.csdn.net/m0_53912016/article/details/121160027)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [element-UI实现table表格单选及单选点击取消选中](https://blog.csdn.net/weixin_43953518/article/details/116595854)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [vue.js element-ui select选择器 选中对象](https://blog.csdn.net/wangjun5159/article/details/112566080)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文