Merge branch 'master' of https://github.com/vueComponent/ant-design
commit
13d5f32bd8
|
@ -177,7 +177,6 @@ export default {
|
||||||
activeKey: stateActiveKey,
|
activeKey: stateActiveKey,
|
||||||
destroyInactiveTabPane,
|
destroyInactiveTabPane,
|
||||||
onChange: setActiveKey,
|
onChange: setActiveKey,
|
||||||
key: 'tabContent',
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
const tabBarProps = {
|
const tabBarProps = {
|
||||||
|
@ -189,17 +188,22 @@ export default {
|
||||||
tabBarPosition: tabBarPosition,
|
tabBarPosition: tabBarPosition,
|
||||||
onTabClick: handleTabClick,
|
onTabClick: handleTabClick,
|
||||||
activeKey: stateActiveKey,
|
activeKey: stateActiveKey,
|
||||||
key: 'tabBar',
|
|
||||||
},
|
},
|
||||||
style: this.tabBarProps.style || {},
|
style: this.tabBarProps.style || {},
|
||||||
}
|
}
|
||||||
const contents = [
|
const contents = [
|
||||||
<ScrollableInkTabBar {...tabBarProps}>
|
<ScrollableInkTabBar
|
||||||
|
{...tabBarProps}
|
||||||
|
key='tabBar'
|
||||||
|
>
|
||||||
{$slots.tabBarExtraContent ? <template slot='extraContent'>
|
{$slots.tabBarExtraContent ? <template slot='extraContent'>
|
||||||
{$slots.tabBarExtraContent}
|
{$slots.tabBarExtraContent}
|
||||||
</template> : null}
|
</template> : null}
|
||||||
</ScrollableInkTabBar>,
|
</ScrollableInkTabBar>,
|
||||||
<TabContent {...tabContentProps}>
|
<TabContent
|
||||||
|
{...tabContentProps}
|
||||||
|
key='tabContent'
|
||||||
|
>
|
||||||
{$slots.default}
|
{$slots.default}
|
||||||
</TabContent>,
|
</TabContent>,
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue