parent component:
< Dialog: dialogFormVisible = "dialogObj" @ Close= "dialogCloseUpdate" ref= "dailog" > < / Dialog >
methods: {
dialogCloseUpdate () {
alert (1)
},
dialogCloseAdd () {
alert (1)
}
}
subcomponents:
methods: {
update () {
this.$emit("Close", data)
},
add() {
this.$emit(?, data)
}
}
as above, I want to call the dialogCloseAdd () method of the parent component in add (). Ask the Great God for advice