由于elementUI对input进一步进行封装,直接@keyup.enter是没有响应的。

使用方法是在事件后面脚上.native

<el-input type="password" v-model="form.pwd" @keyup.enter.native="submitForm()" placeholder="Please enter your password"></el-input>

Logo

前往低代码交流专区

更多推荐