摘要: vue2: <template v-for="(_, name) in $scopedSlots" v-slot:[name]="data"> <slot :name="name" v-bind="data"/> </template> vue3: <template v-for="name in 阅读全文
posted @ 2023-07-03 11:26 yuhui_yin 阅读(387) 评论(0) 推荐(0) 编辑