父组件:

<template>
     <addcz @closecz="closecz"></addcz>
</template>

<script>
export default {
  components: {
      addcz
   },
     methods: {
        closecz(){
              this.czpanel = false
        }
    }

}
</script>

子组件:

<script>
    export default {
        methods: {
          submit_add() {
               //代码逻辑
                   this.$emit('closecz')
      },
    }
</script>    
Logo

前往低代码交流专区

更多推荐