摘要: 父组件传递自定义事件给子组件,子组件显示调用的两种方式 1.父组件使用 v-bind(:属性传递) 父组件 <child :mockParent="handleParentEvet" ></child> 子组件需接收props props:{ mockParent:{ type: Function 阅读全文
posted @ 2020-09-07 11:35 荣光无限 阅读(4063) 评论(0) 推荐(0) 编辑