diff --git a/components/form/style/index.less b/components/form/style/index.less index b48283774..a61013c74 100644 --- a/components/form/style/index.less +++ b/components/form/style/index.less @@ -290,6 +290,16 @@ form { } } +.@{form-prefix-cls}-vertical { + .@{form-prefix-cls}-item { + flex-direction: column; + + &-label > label { + height: auto; + } + } +} + .@{form-prefix-cls}-vertical .@{form-prefix-cls}-item-label, // when labelCol is 24, it is a vertical form .@{ant-prefix}-col-24.@{form-prefix-cls}-item-label,