From 592d2b3c29459ef67e9e4c51d970b12c31009d28 Mon Sep 17 00:00:00 2001
From: tangjinzhou <21251118@zju.edu.cn>
Date: Wed, 12 Dec 2018 21:32:56 +0800
Subject: [PATCH] Delete tabBar.jsx
---
components/tabs/tabBar.jsx | 58 --------------------------------------
1 file changed, 58 deletions(-)
delete mode 100644 components/tabs/tabBar.jsx
diff --git a/components/tabs/tabBar.jsx b/components/tabs/tabBar.jsx
deleted file mode 100644
index 70a76b9ba..000000000
--- a/components/tabs/tabBar.jsx
+++ /dev/null
@@ -1,58 +0,0 @@
-import Icon from '../icon'
-import ScrollableInkTabBar from '../vc-tabs/src/ScrollableInkTabBar'
-import { cloneElement } from '../_util/vnode'
-
-const TabBar = {
- functional: true,
- render (h, context) {
- const {
- tabBarStyle,
- animated = true,
- renderTabBar,
- tabBarExtraContent,
- tabPosition,
- prefixCls,
- } = context.props
- const inkBarAnimated = typeof animated === 'object' ? animated.inkBar : animated
-
- const isVertical = tabPosition === 'left' || tabPosition === 'right'
- const prevIconType = isVertical ? 'up' : 'left'
- const nextIconType = isVertical ? 'down' : 'right'
- const prevIcon = (
-
-
-
- )
- const nextIcon = (
-
-
-
- )
-
- const renderProps = {
- props: {
- ...context.props,
- inkBarAnimated,
- extraContent: tabBarExtraContent,
- prevIcon,
- nextIcon,
- },
- style: tabBarStyle,
- on: {
- ...context.listeners,
- },
- }
-
- let RenderTabBar
-
- if (renderTabBar) {
- RenderTabBar = renderTabBar(renderProps, ScrollableInkTabBar)
- } else {
- RenderTabBar =
- }
-
- return cloneElement(RenderTabBar, renderProps)
- },
-}
-
-export default TabBar