You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/vc-tabs/src/TabBar.jsx

23 lines
616 B

import TabBarRootNode from './TabBarRootNode';
import TabBarTabsNode from './TabBarTabsNode';
import SaveRef from './SaveRef';
import { getAttrs, getListeners } from '../../_util/props-util';
export default {
name: 'TabBar',
inheritAttrs: false,
render() {
const props = getAttrs(this);
const listeners = getListeners(this);
return (
<SaveRef
children={saveRef => (
<TabBarRootNode saveRef={saveRef} {...{ props, on: listeners }}>
<TabBarTabsNode saveRef={saveRef} {...{ props, on: listeners }} />
</TabBarRootNode>
)}
/>
);
},
};