会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
惠鹏曦
博客园
首页
新随笔
联系
订阅
管理
2022年5月12日
vue3 slot三种插槽使用,与作用域插槽传值
摘要: 一,默认插槽和具名插槽 // 子组件 <template> // 匿名插槽 <slot/> // 具名插槽 <slot name='title'/> </template> // 父组件 <!-- 具名插槽 --> <template #default> <div class="tab-header
阅读全文
posted @ 2022-05-12 16:28 惠鹏曦
阅读(1707)
评论(0)
推荐(1)
编辑
公告