mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-04 21:18:14 +08:00
35 lines
590 B
Vue
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>
|