//组件 JSX语法
components:{
diglog,
testCom:{
props:{},
render(h){
//子组件this.$emit('getVlaue',this.digput)
return (<diglog on-getVlaue={this.handleCom}></diglog>)
},
methods:{
handleCom(val){
console.log(val);
},
},
},
},
Vue 组件 emit事件,JSX获取
猜你喜欢
转载自blog.csdn.net/month_ss_815/article/details/104656230
今日推荐
周排行