From dcdd7fb414a5337c5724f90aa3bb99d360f02dbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AF=B8=E5=B2=B3?= Date: Wed, 10 Apr 2019 17:44:39 +0800 Subject: [PATCH] fix(Tree): Switcher loading icon and checkbox should be vertical align when @tree-title-height is modified, close #15955 (#15962) --- components/tree/style/index.less | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/components/tree/style/index.less b/components/tree/style/index.less index 30388a919a..f3ae2d6c1d 100644 --- a/components/tree/style/index.less +++ b/components/tree/style/index.less @@ -73,7 +73,7 @@ left: 0; display: inline-block; width: 24px; - height: 24px; + height: @tree-title-height; color: @primary-color; font-size: 14px; transform: none; @@ -120,13 +120,16 @@ } span { &.@{tree-prefix-cls}-checkbox { - margin: 4px 4px 0 2px; + top: initial; + height: @tree-title-height; + margin: 0 4px 0 2px; + padding: ((@tree-title-height - 16px) / 2) 0; } &.@{tree-prefix-cls}-switcher, &.@{tree-prefix-cls}-iconEle { display: inline-block; width: 24px; - height: 24px; + height: @tree-title-height; margin: 0; line-height: @tree-title-height; text-align: center;