组件里传值到父级

子组件传父组件:

this.$emit('colorchanhge',n);

父级些个相同名字的方法

父传子组件:

 


原文地址:https://www.cnblogs.com/yixiaoyang-/p/9930203.html