mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
parent
4f52d7f964
commit
077443696b
@ -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"
|
||||
|
@ -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…
Reference in New Issue
Block a user