el-dialog close
时间: 2023-08-08 19:12:20 浏览: 95
el-dialog的close事件是在关闭弹层时触发的。在\[1\]中提到,当关闭弹层时,showDialog的值会变成false,这会触发el-dialog组件的close事件。在\[2\]和\[3\]中,子组件中的el-dialog组件都有一个@close事件,用于在关闭弹层时执行相应的操作。在\[2\]中,close方法会将visible属性更新为false,从而关闭弹层。在\[3\]中,close方法通过emit事件将visible属性更新为false,从而关闭弹层。所以,el-dialog的close事件可以用于关闭弹层。
#### 引用[.reference_title]
- *1* [Element-ui中弹层close事件重置表单数据](https://blog.csdn.net/GZZ__z/article/details/121123023)[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^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [el-dialog打开与关闭的几种方式](https://blog.csdn.net/qq_41520636/article/details/125329708)[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^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文