2020-10-13 09:46:52 +00:00
|
|
|
import { defineComponent } from 'vue';
|
2019-01-12 03:33:27 +00:00
|
|
|
import InkTabBarNode from './InkTabBarNode';
|
|
|
|
import TabBarTabsNode from './TabBarTabsNode';
|
|
|
|
import TabBarRootNode from './TabBarRootNode';
|
|
|
|
import ScrollableTabBarNode from './ScrollableTabBarNode';
|
|
|
|
import SaveRef from './SaveRef';
|
2017-11-30 11:11:42 +00:00
|
|
|
|
2020-10-13 09:46:52 +00:00
|
|
|
export default defineComponent({
|
2017-11-30 11:11:42 +00:00
|
|
|
name: 'ScrollableInkTabBar',
|
2018-09-05 13:28:54 +00:00
|
|
|
inheritAttrs: false,
|
2019-01-12 03:33:27 +00:00
|
|
|
render() {
|
2020-06-24 15:45:36 +00:00
|
|
|
const { children: renderTabBarNode } = this.$attrs;
|
2018-09-05 13:28:54 +00:00
|
|
|
return (
|
2019-01-12 03:33:27 +00:00
|
|
|
<SaveRef
|
|
|
|
children={(saveRef, getRef) => (
|
2020-06-23 09:34:41 +00:00
|
|
|
<TabBarRootNode saveRef={saveRef} {...this.$attrs}>
|
|
|
|
<ScrollableTabBarNode saveRef={saveRef} getRef={getRef} {...this.$attrs}>
|
|
|
|
<TabBarTabsNode saveRef={saveRef} {...{ ...this.$attrs, renderTabBarNode }} />
|
|
|
|
<InkTabBarNode saveRef={saveRef} getRef={getRef} {...this.$attrs} />
|
2019-01-12 03:33:27 +00:00
|
|
|
</ScrollableTabBarNode>
|
|
|
|
</TabBarRootNode>
|
|
|
|
)}
|
|
|
|
/>
|
|
|
|
);
|
2017-11-30 11:11:42 +00:00
|
|
|
},
|
2020-10-13 09:46:52 +00:00
|
|
|
});
|