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.
23 lines
616 B
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>
|
|
)}
|
|
/>
|
|
);
|
|
},
|
|
};
|