父组件:
<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>