Browse Source

docs: fix Form requiredMark demo

close #29921
pull/29929/head
afc163 4 years ago
parent
commit
077443696b
  1. 4
      components/form/__tests__/__snapshots__/demo.test.js.snap
  2. 4
      components/form/demo/required-mark.md

4
components/form/__tests__/__snapshots__/demo.test.js.snap

@ -3671,7 +3671,7 @@ exports[`renders ./components/form/demo/required-mark.md correctly 1`] = `
>
<label
class="ant-form-item-required-mark-optional"
for="requiredMark"
for="requiredMarkValue"
title="Required Mark"
>
Required Mark
@ -3693,7 +3693,7 @@ exports[`renders ./components/form/demo/required-mark.md correctly 1`] = `
>
<div
class="ant-radio-group ant-radio-group-outline"
id="requiredMark"
id="requiredMarkValue"
>
<label
class="ant-radio-button-wrapper ant-radio-button-wrapper-checked"

4
components/form/demo/required-mark.md

@ -32,11 +32,11 @@ const FormLayoutDemo = () => {
<Form
form={form}
layout="vertical"
initialValues={{ requiredMark }}
initialValues={{ requiredMarkValue: requiredMark }}
onValuesChange={onRequiredTypeChange}
requiredMark={requiredMark}
>
<Form.Item label="Required Mark" name="requiredMark">
<Form.Item label="Required Mark" name="requiredMarkValue">
<Radio.Group>
<Radio.Button value="optional">Optional</Radio.Button>
<Radio.Button value>Required</Radio.Button>

Loading…
Cancel
Save