2017-11-21 11:15:41 +00:00
|
|
|
<template>
|
|
|
|
<div>
|
2017-11-22 07:05:53 +00:00
|
|
|
<Tabs v-model="activeKey">
|
|
|
|
<span slot="tabBarExtraContent">kkk</span>
|
2017-11-21 11:15:41 +00:00
|
|
|
<TabPane pKey="test1" tab="tab1">hello</TabPane>
|
|
|
|
<TabPane pKey="test2" tab="tab2">world</TabPane>
|
|
|
|
</Tabs>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
import { Tabs } from 'antd'
|
|
|
|
export default {
|
2017-11-22 07:05:53 +00:00
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
activeKey: 'test1',
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
tabBarExtraContent (h) {
|
|
|
|
return h('span', 'hhhh')
|
|
|
|
},
|
|
|
|
},
|
2017-11-21 11:15:41 +00:00
|
|
|
components: {
|
|
|
|
Tabs,
|
|
|
|
TabPane: Tabs.TabPane,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|