vue-插槽 slot

子组件放置

<slot name="body"></slot>
 
父组件
<template v-slot:body>
     <p>商品添加成功!</p>
</template>
 

posted on 2020-04-22 17:16  秃了头也不退休  阅读(183)  评论(0编辑  收藏  举报

导航