From 9b7adc185942f6466b954d14534217aa56b7a66e Mon Sep 17 00:00:00 2001 From: thinkasany <480968828@qq.com> Date: Fri, 20 Sep 2024 11:51:25 +0800 Subject: [PATCH] demo(form): improve layout demo (#50933) --- .../__snapshots__/demo-extend.test.ts.snap | 14 +++++++------- .../__tests__/__snapshots__/demo.test.tsx.snap | 14 +++++++------- components/form/demo/layout.tsx | 9 +-------- 3 files changed, 15 insertions(+), 22 deletions(-) diff --git a/components/form/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/form/__tests__/__snapshots__/demo-extend.test.ts.snap index fab07074b4..290d4ad9eb 100644 --- a/components/form/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/form/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -8819,7 +8819,7 @@ exports[`renders components/form/demo/layout.tsx extend context correctly 1`] = class="ant-row ant-form-item-row" >
{ setFormLayout(layout); }; - const formItemLayout = - formLayout === 'horizontal' ? { labelCol: { span: 4 }, wrapperCol: { span: 14 } } : null; - - const buttonItemLayout = - formLayout === 'horizontal' ? { wrapperCol: { span: 14, offset: 4 } } : null; - return (
{ - +