Home > front end > Vue how parent component to subcomponents subcomponents by value
Vue how parent component to subcomponents subcomponents by value
Time:09-26
The parent component to the child components, then child components in the props things directly to his children
CodePudding user response:
Two father and son, don't know can directly pass, try it yourself
CodePudding user response:
Father: & lt; A @ click="afClick" ref="aF" & gt; AfClick () { This $refs. AF. Prop (' values') } Son: prop (res) { //res is to obtain the value of the }