<el-form-item label="邮箱" prop="email">

    <el-input v-model="Form.email" @keyup.native.enter="focusNext('mobile')"></el-input>

</el-form-item>

<el-form-item label="手机" prop="mobile">

    <el-input v-model.number="Form.mobile" ref="mobile"></el-input>

</el-form-item>

 

//下面的写在methods里

focusNext(nextRef) {

    this.$refs[nextRef].focus()

}

Logo

前往低代码交流专区

更多推荐