如果用原生的 input ,直接用 @keyup.enter,如果使用了element ui ,则要用@keyup.enter.native ,element ui 对input 进行了封装,所以原事件
转载于:https://my.oschina.net/u/2262481/blog/3073444
博客介绍了输入框回车事件的使用差异。原生input使用@keyup.enter,而使用Element UI时,因它对input进行了封装,需用@keyup.enter.native。
如果用原生的 input ,直接用 @keyup.enter,如果使用了element ui ,则要用@keyup.enter.native ,element ui 对input 进行了封装,所以原事件
转载于:https://my.oschina.net/u/2262481/blog/3073444
839
1139

被折叠的 条评论
为什么被折叠?