From 9aacd375903d264cd990d35ab12999ad593dc586 Mon Sep 17 00:00:00 2001 From: Wugaoliang Date: Wed, 11 Nov 2020 13:56:56 +0800 Subject: [PATCH] fix: #1293 --- components/form/Item.js | 8 +------- docs/demo/form/section-align.jsx | 12 +----------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/components/form/Item.js b/components/form/Item.js index e8882de98..485ba0b77 100644 --- a/components/form/Item.js +++ b/components/form/Item.js @@ -305,8 +305,6 @@ const FormItem = (props) => { obj['hi-form-item--validating'] = validating obj['hi-form-item--required'] = isRequired() || required const _labelWidth = labelWidth() - const contentWidth = - formProps.labelPosition !== 'top' && rectCont && rectCont.width ? rectCont.width - _labelWidth : '100%' return (
{label || label === '' ? ( @@ -317,11 +315,7 @@ const FormItem = (props) => { ) : ( )} -
+
{renderChildren()}
diff --git a/docs/demo/form/section-align.jsx b/docs/demo/form/section-align.jsx index 2448905db..82a302777 100644 --- a/docs/demo/form/section-align.jsx +++ b/docs/demo/form/section-align.jsx @@ -44,18 +44,8 @@ const code = [ }} /> - +