vue 父组件传值到子组件

父组件内容  引入组件
<v-foot ref ="footListName" father-list="footListName"></v-foot>
定义footListName
 
that.footListName = that.$refs.footListName.footListName
在点击事件中   重新给值footListName (that.$refs.footListName)是子组件的元素,that.$refs.footListName.footListName之后的footListName的是子组件的数据,重新赋值
 
 
以上均为父组件的内容;
 
 
 
 
数据渲染定义
posted @ 2018-12-12 15:32  嘉煠  阅读(261)  评论(0编辑  收藏  举报