子组件创建方法通过this.$emit()传方法给父组件 传数据的话this.$emit('child2',this.data) 父组件通过v-on自定义事件监听传过来的再赋值一个方法,接收数据hide(data){}