element 组件的话 利用 @keyup.enter.native="handleSearch" 绑定 搜索事件 非 element-UI 组件,直接 @keyup.enter 就可以。 相关文章: