vue enter事件无效,加入native

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