[improvement] Tabs: jsx (#2665)

This commit is contained in:
neverland
2019-02-01 17:58:06 +08:00
committed by GitHub
parent c010ee22ac
commit 7ee383129c
6 changed files with 265 additions and 170 deletions

View File

@@ -60,7 +60,7 @@ export default sfc({
const slots = this.$slots;
return (
<div v-show={this.selected || this.parent.animated} class={bem('pane')}>
{this.inited && slots.default}
{this.inited ? slots.default : h()}
{slots.title && <div ref="title">{slots.title}</div>}
</div>
);