Element: 关于 input 如何绑定enter事件

Created on 1 Mar 2017  ·  2Comments  ·  Source: ElemeFE/element

尝试了以下如下代码

      <el-input
        class="mobile"
        v-model="mobile"
        placeholder="输入手机号查询"
        @keyup.enter="foo">
      </el-input>

无效,按 回车 无效,能有办法生效吗?在guide中的input介绍中没有看到

Most helpful comment

提 issue 前请仔细阅读 FAQ,第一条就写清楚了。

All 2 comments

他们的input组件没有实现keyup事件,

https://github.com/ElemeFE/element/blob/dev/packages/input/src/input.vue

提 issue 前请仔细阅读 FAQ,第一条就写清楚了。

Was this page helpful?
0 / 5 - 0 ratings