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.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a069-2c1c0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a069-2c1c0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?