vue @keyup.enter无法检测enter事件,加上修饰符号即可 @keyup.enter.native
- <Input type="password" v-model="password" placeholder="password" @keyup.enter.native="handleSubmit()">
- <Icon type="ios-locked-outline" slot="prepend"></Icon>
- </Input>
原文地址:https://www.cnblogs.com/popodashijian/p/9081408.html
时间: 2024-10-13 19:25:14