fix(Form.Item): label text align not correct when media less than xs and span not 24 (#20836)

This commit is contained in:
骗你是小猫咪 2020-01-13 10:32:32 +08:00 committed by 二货机器人
parent c2abac1dac
commit 5a81182678

View File

@ -20,6 +20,12 @@
}
}
.make-vertical-layout() {
.@{form-prefix-cls}-item .@{form-prefix-cls}-item-label {
.make-vertical-layout-label();
}
}
.@{form-prefix-cls}-vertical {
.@{form-item-prefix-cls} {
flex-direction: column;
@ -34,6 +40,7 @@
}
@media (max-width: @screen-xs-max) {
.make-vertical-layout();
.@{ant-prefix}-col-xs-24.@{form-item-prefix-cls}-label {
.make-vertical-layout-label();
}