Vue-Cli组件传值—root、children、parent 1.$root this.$root() //获取当前实例的根节点全部实例 父子组件都可用 2.$children this.$children() //获取当前组件的所有子组件实例 针对父组件 3.$parent this.$parent() //获取当前组件的父组件实例 针对子组件