ant-design-vue/components/tabs/TabBar.vue
tangjinzhou 350001ea14 fix
2017-12-01 12:21:43 +08:00

35 lines
590 B
Vue

<script>
import TabBarMixin from './TabBarMixin'
function noop () {
}
export default {
mixins: [TabBarMixin],
name: 'TabBar',
props: {
prefixCls: {
default: 'ant-tabs',
type: String,
},
tabBarPosition: {
default: 'top',
type: String,
},
disabled: Boolean,
onKeyDown: {
default: noop,
type: Function,
},
onTabClick: {
default: noop,
type: Function,
},
activeKey: String,
panels: Array,
},
render (h) {
const tabs = this.getTabs(h)
return this.getRootNode(tabs, h)
},
}
</script>