el-popover触发过快怎么办
时间: 2023-08-16 07:16:56 浏览: 161
如果el-popover触发过快,可以通过设置open-delay属性来延迟弹出的时间。在你提供的代码中,可以修改open-delay的值来调整延迟的时间。例如,将open-delay的值设置为1000,表示延迟1秒后才会弹出el-popover。具体的代码修改如下:
<el-popover ref="popperHeart" placement="bottom" width="720" trigger="hover" :open-delay="1000">
// 弹出内容
</el-popover>
这样设置之后,当鼠标hover到触发元素上时,会延迟1秒后才会弹出el-popover,避免了触发过快的问题。
#### 引用[.reference_title]
- *1* *2* [el-popover 初始弹出位置不准确,及el-popover超出屏幕问题](https://blog.csdn.net/weixin_37739550/article/details/125757697)[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* [el-input触发 el-popover银行弹窗封装](https://blog.csdn.net/qq_53026081/article/details/130009065)[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 ]
阅读全文