vue使用elementUI的el-input监听回车事件
由于elementUI对input进一步进行封装,直接@keyup.enter是没有响应的。使用方法是在事件后面脚上.native<el-input type="password" v-model="form.pwd" @keyup.enter.native="submitForm()" placeholder="
·
由于elementUI对input进一步进行封装,直接@keyup.enter是没有响应的。
使用方法是在事件后面脚上.native
<el-input type="password" v-model="form.pwd" @keyup.enter.native="submitForm()" placeholder="Please enter your password"></el-input>
更多推荐
已为社区贡献8条内容
所有评论(0)