mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 17:44:35 +08:00
docs: fix errors in example code (#28677)
This commit is contained in:
parent
7def9de31d
commit
b53a4b51ce
@ -116,7 +116,7 @@ If you don't want to use the Item style, you can use `noStyle` prop to remove it
|
||||
|
||||
```jsx
|
||||
// antd v3
|
||||
const Demo = ({ form: { setFieldsValue } }) => {
|
||||
const Demo = ({ form: { getFieldDecorator } }) => {
|
||||
return <Form>{getFieldDecorator('username')(<Input />)}</Form>;
|
||||
};
|
||||
|
||||
|
@ -118,7 +118,7 @@ class Demo extends React.Component {
|
||||
|
||||
```jsx
|
||||
// antd v3
|
||||
const Demo = ({ form: { setFieldsValue } }) => {
|
||||
const Demo = ({ form: { getFieldDecorator } }) => {
|
||||
return <Form>{getFieldDecorator('username')(<Input />)}</Form>;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user