vue组件封装使用所有父级的插槽

<template v-for="(index, name) in $slots" :slot="name">
   <slot :name="name" />
 </template>
posted @ 2023-06-01 10:55  吃饭七分饱  阅读(31)  评论(0编辑  收藏  举报