【发布时间】:2019-04-12 07:10:12
【问题描述】:
我有一个带有特定插槽的组件。
<v-split-container ref="splitContainer" class="panel-panel">
<template slot="left">
Test
</template>
<template slot="right">
<router-view></router-view> //Show Compontent A
</template>
<template slot="bottom"> //Slot B
Hello
</template>
</v-split-container>
我可以从组件 A 中通过调用组件内部的函数来更改插槽 B 的内容吗?
【问题讨论】: