摘要: 组件插槽的作用 父组件向子组件传递内容 组件插槽的基本用法 1、插槽位置 创建一个新的组件,在组件模板中预留插槽 Vue.component('alert-box', { template: ` <div class="demo-alert-box"> <strong>ERROR!</strong> 阅读全文
posted @ 2020-12-18 13:08 黎沐不吃香菜 阅读(140) 评论(0) 推荐(0)