打赏

2019年11月20日

摘要: 简而言之,作用域插槽就是让插槽内容能够访问子组件中的数据。 案例如下:有CurUser组件 <template> <span> <!-- 在slot 元素上绑定user,让父组件插槽能够访问 --> <slot :user="user"></slot> </span> </template> <sc 阅读全文
posted @ 2019-11-20 23:27 jlyuan 阅读(337) 评论(0) 推荐(0) 编辑

导航