Skip to content

请问在vue3中该如何在子组件中判断emit注册的方法父组件是否传入呢? #8092

Discussion options

You must be logged in to vote

你可以参考v-model的原理在结合一下jsx中的写法推导出 @change =>onChange

demo

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@tiandaixin
Comment options

@chenxch
Comment options

@dywedzfc
Comment options

@baiwusanyu-c
Comment options

Answer selected by tiandaixin
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants