Vue 组件 emit事件,JSX获取

    //组件 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);
        },
      },
    },
  },
ss-
发布了21 篇原创文章 · 获赞 7 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/month_ss_815/article/details/104656230
今日推荐