vue组件传参

1、父组件给子组件传参

父组件:xxx="yyy" 例如

<product-list-one :productsChild='productsFather'></product-list-one>
子组件:props:["xxx"] 例如:
props:["productsChild"], 使用方式同data
posted @ 2020-05-17 22:10  严直抗打的黄小白  阅读(201)  评论(0)    收藏  举报