关于Vue使用Element-UI的<el-autocomplete>的坑
作者:互联网
标签:<el-autocomplete>
问题:@keydown.enter事件触发不了
解决:@keydown.native.enter
原因:element-ui自身封装了一层input标签之后,把原来的事件隐藏了,加上.native可以监听到组件根元素的原生事件
转自:https://blog.csdn.net/weixin_30609287/article/details/97191681
标签:Vue,标签,keydown,Element,UI,事件,enter,csdn,native 来源: https://www.cnblogs.com/woyujiezhen/p/12499581.html