Vue 组件 emit事件,JSX获取

 

    //组件 JSX语法

  components:{
    diglog,
    testCom:{
      props:{},
      render(h){
//子组件this.$emit('getVlaue',this.digput)
        return () 
             
      },
      methods:{
        handleCom(val){
           console.log(val);
        },
      },
    },
  },

你可能感兴趣的:(Vue 组件 emit事件,JSX获取)