element 组件的话

利用 

@keyup.enter.native="handleSearch"
绑定 搜索事件

el-input键盘事件(空格搜索)

 

非 element-UI 组件,直接 @keyup.enter 就可以。

相关文章:

  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-11
  • 2022-02-01
猜你喜欢
  • 2022-02-22
  • 2022-12-23
  • 2022-12-23
  • 2021-03-31
  • 2022-12-23
  • 2021-05-09
相关资源
相似解决方案