父组件 <slot name="haha" :data="data"/> 子组件 <template slot="haha" slot-scope="{ data }"> {{data}} </template>
方式应该很多哦,比如直接放到slot标签的属性上面