Vue 给组件绑定原生事件
只要在 点击事件加native就行了
<child @click.native="handle"></child>
子组件触发父组件,在触发
Vue.component('child',{
template:`<div >child</div>`,
})
只要在 点击事件加native就行了
<child @click.native="handle"></child>
子组件触发父组件,在触发
Vue.component('child',{
template:`<div >child</div>`,
})