fix(Tree): Switcher loading icon and checkbox should be vertical align when @tree-title-height is modified, close #15955 (#15962)

This commit is contained in:
诸岳 2019-04-10 17:44:39 +08:00 committed by zombieJ
parent c9b7fecb7d
commit dcdd7fb414

View File

@ -73,7 +73,7 @@
left: 0; left: 0;
display: inline-block; display: inline-block;
width: 24px; width: 24px;
height: 24px; height: @tree-title-height;
color: @primary-color; color: @primary-color;
font-size: 14px; font-size: 14px;
transform: none; transform: none;
@ -120,13 +120,16 @@
} }
span { span {
&.@{tree-prefix-cls}-checkbox { &.@{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}-switcher,
&.@{tree-prefix-cls}-iconEle { &.@{tree-prefix-cls}-iconEle {
display: inline-block; display: inline-block;
width: 24px; width: 24px;
height: 24px; height: @tree-title-height;
margin: 0; margin: 0;
line-height: @tree-title-height; line-height: @tree-title-height;
text-align: center; text-align: center;