// 代码所在页面就是 父组件
<son-component value="aaaa">
<template slot-scope="v">
<slot-component :value="v.name"/>
</template>
</son-component>
//
<test12 value="aaaa">
<template slot-scope="v">
<my-txt :value="v.name"/>
</template>
</test12>
网友评论