docs: Fix v3 form mig doc

This commit is contained in:
zombiej 2020-03-04 10:26:55 +08:00
parent 92c189f246
commit 55734400cc
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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>