element-ui 中的el-input 添加keyup、keydown、keypress等键盘事件的注意的点
element-ui 中的el-input 按照vue官方API添加键盘事件不生效,这是因为在el-input 的input外边封装了一层div。只要在事件后边加上.native()就可以了<el-input placeholder="请输入内容" @keyup.enter.native="on_filter"></el-input>...
原创
2020-09-24 09:53:03 ·
7197 阅读 ·
0 评论