From 9380621850759b8fe716487e921b4d95a0ee372c Mon Sep 17 00:00:00 2001 From: undefined Date: Sun, 1 Nov 2020 18:06:40 +0800 Subject: [PATCH] fix: layout vertical not work #3075 --- components/form/style/index.less | 10 ++++++++++ 1 file changed, 10 insertions(+) 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,