Which is better for vue to pass parameters to subcomponents?

1. One is to receive it with props under "datas".
2. One is to pass down the method of accessing the child component directly in the parent component, this.$refs.child.show (datas)

which of the above is better? I use 1, and often the request is passed on without coming. What do you suggest?

Feb.28,2021

can be used, but it will be passed on before passing. You need to watch the value you passed in the subcomponent, and then reset it after the request is changed.
in addition, you can also pass, eventBus ($on,$emit)

through the custom event of the build.
Menu