From 9caba0919bed412019e42d054a41f392f3959ae6 Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Thu, 18 May 2023 19:40:35 +0800 Subject: [PATCH] demo: update form demo when layout === inline (#42476) --- components/form/demo/layout.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/form/demo/layout.tsx b/components/form/demo/layout.tsx index 2541bed7fe..82b69be867 100644 --- a/components/form/demo/layout.tsx +++ b/components/form/demo/layout.tsx @@ -1,5 +1,5 @@ -import React, { useState } from 'react'; import { Button, Form, Input, Radio } from 'antd'; +import React, { useState } from 'react'; type LayoutType = Parameters[0]['layout']; @@ -24,7 +24,7 @@ const App: React.FC = () => { form={form} initialValues={{ layout: formLayout }} onValuesChange={onFormLayoutChange} - style={{ maxWidth: 600 }} + style={{ maxWidth: formLayout === 'inline' ? 'none' : 600 }} >