pull/9/head
tangjinzhou 2017-12-14 10:13:30 +08:00
parent 37b40bcd38
commit 55048539c5
1 changed files with 8 additions and 4 deletions

View File

@ -177,7 +177,6 @@ export default {
activeKey: stateActiveKey,
destroyInactiveTabPane,
onChange: setActiveKey,
key: 'tabContent',
},
}
const tabBarProps = {
@ -189,17 +188,22 @@ export default {
tabBarPosition: tabBarPosition,
onTabClick: handleTabClick,
activeKey: stateActiveKey,
key: 'tabBar',
},
style: this.tabBarProps.style || {},
}
const contents = [
<ScrollableInkTabBar {...tabBarProps}>
<ScrollableInkTabBar
{...tabBarProps}
key='tabBar'
>
{$slots.tabBarExtraContent ? <template slot='extraContent'>
{$slots.tabBarExtraContent}
</template> : null}
</ScrollableInkTabBar>,
<TabContent {...tabContentProps}>
<TabContent
{...tabContentProps}
key='tabContent'
>
{$slots.default}
</TabContent>,
]