mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
chore: Fix demo lint
This commit is contained in:
parent
c75bbbd13d
commit
5229d69bdc
@ -122,17 +122,13 @@ class AliyunOSSUpload extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
class FormPage extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<Form labelCol={{ span: 4 }}>
|
||||
<Form.Item label="Photos" name="photos">
|
||||
<AliyunOSSUpload />
|
||||
</Form.Item>
|
||||
</Form>
|
||||
);
|
||||
}
|
||||
}
|
||||
const FormPage = () => (
|
||||
<Form labelCol={{ span: 4 }}>
|
||||
<Form.Item label="Photos" name="photos">
|
||||
<AliyunOSSUpload />
|
||||
</Form.Item>
|
||||
</Form>
|
||||
);
|
||||
|
||||
ReactDOM.render(<FormPage />, mountNode);
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user