@keyup.enter.native
组件没有内置keyup事件,所以给组件绑定原生事件 需要加上.native修饰符来给子组件传递事件。
例如 想在某个组件的根元素上监听一个原生事件。可以使用 .native 修饰 v-on :
<my-component v-on:click.native="doTheThing"></my-component>
@keyup.enter.native
组件没有内置keyup事件,所以给组件绑定原生事件 需要加上.native修饰符来给子组件传递事件。
例如 想在某个组件的根元素上监听一个原生事件。可以使用 .native 修饰 v-on :
<my-component v-on:click.native="doTheThing"></my-component>