From a1e180da8c754aae8c20228cf02b5c287eee51fd Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sat, 17 Apr 2021 08:42:18 +0800 Subject: [PATCH] fix: inline-form span layout not work #3862 --- components/form/style/index.less | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/components/form/style/index.less b/components/form/style/index.less index afd1fa952..e2d1cfe1f 100644 --- a/components/form/style/index.less +++ b/components/form/style/index.less @@ -362,8 +362,11 @@ form { //== Inline Form .@{form-prefix-cls}-inline { + display: flex; + flex-wrap: wrap; .@{form-prefix-cls}-item { - display: inline-block; + flex: none; + flex-wrap: nowrap; margin-right: 16px; margin-bottom: 0; @@ -376,6 +379,9 @@ form { display: inline-block; vertical-align: top; } + > .@{form-prefix-cls}-item-label { + flex: none; + } } .@{form-prefix-cls}-text {