父传子

1.属性绑定 props

2.$parent

3.

子组件传值给父组件

1.$emit

2.ref

4.可以使用provide + inject

父组件
图片说明
子组件
图片说明

使用状态管理工具,例如Vuex