你可以使用插槽作用域:https://cn.vuejs.org/v2/guide/components-slots.html
首先在组件模板中:
<slot name="modal-footer" :okHandle="okHandle">
<input type="button" value="确定" @click="okHandle" />
<input type="reset" value="重置" @click="chong" />
<input type="button" value="取消"@click="cancelHandle" />
</slot>
然后在具体调用的时候:
<div slot="modal-footer" slot-scope="fns">
<input type="button" value="确定" @click="fns.okHandle" />
<input type="reset" value="重置" />
<input type="button" value="返回" />
</div>
<!-- 如果把这里内容插入组件插槽里,事件怎么触发???? -->