From e0f57e72e01ecee9b2aba153d9d6bab288d27762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=8F=E5=8F=B3?= Date: Sun, 24 May 2020 16:31:38 +0800 Subject: [PATCH] fix: Card slow perfermance when use with react-split (#24425) close #23654 --- components/card/style/index.less | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/card/style/index.less b/components/card/style/index.less index 5469b8d2f0b2..b81d0e677f3c 100644 --- a/components/card/style/index.less +++ b/components/card/style/index.less @@ -14,7 +14,6 @@ position: relative; background: @card-background; border-radius: @card-radius; - transition: all 0.3s; &-rtl { direction: rtl; @@ -22,6 +21,8 @@ &-hoverable { cursor: pointer; + transition: box-shadow 0.3s, border-color 0.3s; + &:hover { border-color: @card-hoverable-hover-border; box-shadow: @card-shadow;