chore: update form demo

This commit is contained in:
afc163 2021-11-05 15:50:03 +08:00
parent ea525727b2
commit 5360722e5c
2 changed files with 29 additions and 39 deletions

View File

@ -8169,9 +8169,6 @@ exports[`renders ./components/form/demo/warning-only.md correctly 1`] = `
autocomplete="off"
class="ant-form ant-form-vertical"
>
<div
style="overflow:hidden"
>
<div
class="ant-row ant-form-item"
>
@ -8206,7 +8203,6 @@ exports[`renders ./components/form/demo/warning-only.md correctly 1`] = `
</div>
</div>
</div>
</div>
<div
class="ant-row ant-form-item"
>

View File

@ -42,19 +42,13 @@ const Demo = () => {
onFinishFailed={onFinishFailed}
autoComplete="off"
>
<div style={{ overflow: 'hidden' }}>
<Form.Item
name="url"
label="URL"
rules={[
{ required: true },
{ type: 'url', warningOnly: true },
{ type: 'string', min: 6 },
]}
rules={[{ required: true }, { type: 'url', warningOnly: true }, { type: 'string', min: 6 }]}
>
<Input placeholder="input placeholder" />
</Form.Item>
</div>
<Form.Item>
<Space>
<Button type="primary" htmlType="submit">