mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +08:00
docs: Fix v3 form mig doc
This commit is contained in:
parent
92c189f246
commit
55734400cc
@ -102,7 +102,7 @@ class Demo extends React.Component {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<Form ref={formRef}>
|
<Form ref={this.formRef}>
|
||||||
<Form.Item name="username" rules={[{ required: true }]}>
|
<Form.Item name="username" rules={[{ required: true }]}>
|
||||||
<Input />
|
<Input />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
@ -104,7 +104,7 @@ class Demo extends React.Component {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<Form ref={formRef}>
|
<Form ref={this.formRef}>
|
||||||
<Form.Item name="username" rules={[{ required: true }]}>
|
<Form.Item name="username" rules={[{ required: true }]}>
|
||||||
<Input />
|
<Input />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
Loading…
Reference in New Issue
Block a user