vue中form表单监听回车事件

  <Form ref="formInline" inline :label-width="70" @keyup.enter.native="queryFun(true)">
          <FormItem label="颜色名称">
            <Input type="text" v-model="formInline.username" style=" 162px;"></Input>
          </FormItem>
</Form>
 
queryFun(){
  //获取数据
}
原文地址:https://www.cnblogs.com/wssdx/p/12156229.html