el-image事件
时间: 2023-10-06 15:11:57 浏览: 191
el-image组件中的事件包括点击事件和关闭事件。在前面的引用中提到了一种方法来监听el-image的点击事件。通过在el-image的父级元素上监听点击事件,当点击关闭按钮或蒙层时,可以执行相应的操作。具体做法是通过在dom元素上添加监听器,在点击事件中判断点击的位置是否是关闭按钮或蒙层,并执行相应的逻辑操作。这种方法可以实现el-image的关闭功能。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [element-ui新版本el-image点击事件导致body标签滚动条消失的一个坑](https://blog.csdn.net/jsxg2009/article/details/115244562)[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: 33.333333333333336%"]
- *2* [el-image图片放大后的关闭事件](https://blog.csdn.net/m0_48076809/article/details/129111642)[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: 33.333333333333336%"]
- *3* [详解elementui之el-image-viewer(图片查看器)](https://download.csdn.net/download/weixin_38717156/12937805)[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: 33.333333333333336%"]
[ .reference_list ]
阅读全文