From d20b5fe9f5db703ea0beef13e65e245a66eccd77 Mon Sep 17 00:00:00 2001 From: zombiej Date: Tue, 13 Nov 2018 16:04:24 +0800 Subject: [PATCH] update rc-tabs to fix 2 issue: 1. fix non-transform support env ink bar not correct 2. fix tabBarGutter not work in vertical mode. ref #12968 --- components/tabs/style/index.less | 5 +++-- package.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/components/tabs/style/index.less b/components/tabs/style/index.less index 5bc9b85278..8b650f49d1 100644 --- a/components/tabs/style/index.less +++ b/components/tabs/style/index.less @@ -305,6 +305,7 @@ .@{tab-prefix-cls}-ink-bar { width: 2px; + top: 0; left: auto; height: auto; bottom: auto; @@ -385,12 +386,12 @@ .@{tab-prefix-cls}-top .@{tab-prefix-cls}-ink-bar-animated, .@{tab-prefix-cls}-bottom .@{tab-prefix-cls}-ink-bar-animated { - transition: transform .3s @ease-in-out, width .3s @ease-in-out; + transition: transform .3s @ease-in-out, width .3s @ease-in-out, left .3s @ease-in-out; } .@{tab-prefix-cls}-left .@{tab-prefix-cls}-ink-bar-animated, .@{tab-prefix-cls}-right .@{tab-prefix-cls}-ink-bar-animated { - transition: transform .3s @ease-in-out, height .3s @ease-in-out; + transition: transform .3s @ease-in-out, height .3s @ease-in-out, top .3s @ease-in-out; } .no-flex, diff --git a/package.json b/package.json index 7fcbedf0d6..d4837e46b2 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,7 @@ "rc-steps": "~3.3.0", "rc-switch": "~1.8.0", "rc-table": "~6.3.4", - "rc-tabs": "~9.4.6", + "rc-tabs": "~9.5.1", "rc-time-picker": "~3.4.0", "rc-tooltip": "~3.7.3", "rc-tree": "~1.14.6",