vue中使用了elementUI中的按鈕 @mouseenter @mouseleave沒有反應

【Vue中的坑】Vue中的@mouseenter,@mouseleave沒反應?
在開發中想實現鼠標懸浮,然後發現事件不由被出發

下面就簡單的說一下如何避免這種情況

如果沒有反應可以加一個native, 即可

@mouseenter.native=“enter”

如果你是在其他標籤上使用,那就不需要注意啦,直接使用就好

@mouseenter=“enter()”

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章