vue nesting in multi-layer assembly props pass value

Such as: three nested.

Parent component => = subassembly> grandchildren

1. Parent reference component subassembly component11, isShow pass values ​​to the subassembly component11 

 

2. The subassembly receiving treatment with props value of parent element, a method wherein a trigger subassembly or assembly Sun Sun directly change component values ​​may be used. (See the third focus point)

 

3. Sun subcomponent assembly accepts the values ​​passed over by variables, changing isShowqq this value reached isShow modify this worthy effect.

 

 

Guess you like

Origin www.cnblogs.com/taobozhangwen/p/11716945.html