import React from 'react'; import TabsCommon from './tabs-common'; import TabsExpand from './tabs-expand'; import TabsNumber from './tabs-number'; import TabsScroll from './tabs-scroll'; import TabsHub from './tabs-hub'; import connect from "../connect"; export interface Props { type: | 'common' // 普通tabs | 'scroll' // 滚动tabs | 'expand' // 下拉tabs | 'number' // 带数字tabs | 'hub'; // tabsHub } /** * 标签列表 */ const Tabs: React.FC = ({ type, ...otherProps }) => { if (type === 'common') return ; if (type === 'scroll') return ; if (type === 'expand') return ; if (type === 'number') return ; if (type === 'hub') return ; return null; }; export default connect(Tabs, {}, { 'common': (TabsCommon as any).default, 'scroll': (TabsScroll as any).default, 'expand': (TabsExpand as any).default, 'number': (TabsNumber as any).default, 'hub': (TabsHub as any).default, });