子组件
export default defineComponent({
components: {...},
props: {...},
emits: ["player-play"],
setup(props,context) {
const play = () => {
...
context.emit('player-play', 附带的数据);
...
}
}
})
父组件
<a-map-topo-play :visible="amapTopoPlay" @player-play="playerPlay"/>