Vue组件传值

父组件调用

<ymy-graphic-info :flag="tableData" :pictureId="pictures" :voiceId="voices" :pictureInfo="info" :words="words" :videoId="videoIds"></ymy-graphic-info>
子组件传值
props:['flag','pictureId','voiceId','pictureInfo','words','videoId'],
父组件data绑定
 tableData:[
{date:'09月20日'}
],
// tableData:[],
pictures:[
{id:1}
],
voices:[
{id:111}
],
videoIds:[
{id:1111}
],
info:true,
words:false,
posted @ 2017-10-09 09:57  卢春艳  阅读(153)  评论(0编辑  收藏  举报