1:传值 隔代传值通过v-bind = “$attrs”.
2:传方法 v-on=“$listeners” 就可以在子组件调用父组件的方法 ,this.$emit("methodsFromParent")
3:子传父 slot
孩子: <slot name="aa" :foo="‘fooooooooo‘"></slot>
爹 :
vue技能总结
原文:https://www.cnblogs.com/binglove/p/14615400.html