Skip to content

Commit 9380621

Browse files
author
undefined
committed
fix: layout vertical not work #3075
1 parent 7651862 commit 9380621

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

components/form/style/index.less

+10
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,16 @@ form {
290290
}
291291
}
292292

293+
.@{form-prefix-cls}-vertical {
294+
.@{form-prefix-cls}-item {
295+
flex-direction: column;
296+
297+
&-label > label {
298+
height: auto;
299+
}
300+
}
301+
}
302+
293303
.@{form-prefix-cls}-vertical .@{form-prefix-cls}-item-label,
294304
// when labelCol is 24, it is a vertical form
295305
.@{ant-prefix}-col-24.@{form-prefix-cls}-item-label,

0 commit comments

Comments
 (0)