鍍金池/ 問答/HTML/ vue中的@mouseenter為什么沒反應(yīng)

vue中的@mouseenter為什么沒反應(yīng)

<el-button type="primary" size="small" @click="cardSearch" @mouseenter="abc">搜索</el-button>

項(xiàng)目使用的是餓了么的UI框架element-ui,這個按鈕組件為什么click事件有效,但是mouseenter事件卻沒有反應(yīng)?

回答
編輯回答
乖乖噠

這個是餓了么框架內(nèi)部把一些方法禁止了 你試試這樣寫@mouseenter.native = "abc"

2017年11月14日 18:18