[new feature] Tabs: add nav-left、nav-right slots (#2828)

This commit is contained in:
neverland
2019-02-23 19:19:03 +08:00
committed by GitHub
parent 4bdb1841fa
commit ac76ca0b40
5 changed files with 57 additions and 6 deletions

View File

@@ -425,8 +425,10 @@ export default sfc({
class={[bem('wrap', { scrollable }), { 'van-hairline--top-bottom': type === 'line' }]}
>
<div ref="nav" class={bem('nav', [type])} style={this.navStyle}>
{this.slots('nav-left')}
{type === 'line' && <div class={bem('line')} style={this.lineStyle} />}
{Nav}
{this.slots('nav-right')}
</div>
</div>
<div ref="content" class={bem('content', { animated })}>