Now there is A、B、C Three components , Nesting with each other , Form father and son and grandchildren .
Now I want to put A The data transmitted by the component is transmitted to C, How to do ?
( Don't want to use props The reason is that A I didn't write the component , I can't control )
// A.vue
<div>
<b :name="1" :data="[1,2,3]"></b>
</div>
// B.vue
<div>
<c ...$attrs></c> // How to leave it intact A The data from the component is transmitted to c ...$attrs It should be the wrong way of writing
</div>