父组件直接修改子组件的值
<List ref='child'></List>
this.$refs.child.xxx = 'yyyy';

子组件直接修改父组件的值
子组件中可以使用:this.$parent.xxx去修改
this.$parent可以找到父组件
this.$root可以找到根组件

父组件直接修改子组件的值
<List ref='child'></List>
this.$refs.child.xxx = 'yyyy';

子组件直接修改父组件的值
子组件中可以使用:this.$parent.xxx去修改
this.$parent可以找到父组件
this.$root可以找到根组件
