-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[vue] vue自定义事件中父组件怎么接收子组件的多个参数? #468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
vue
vue
Comments
传递一个对象出去 |
this.$emit("eventName",data) |
子组件传递多个参数,父组件用展开运算符获取 |
父组件那边用解构赋值取。。。 |
使用.sync也可以实现传多个参数 |
子组件传递一个对象,父组件用展开运算符获取参数 |
this.$emit("eventName",data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[vue] vue自定义事件中父组件怎么接收子组件的多个参数?
The text was updated successfully, but these errors were encountered: