mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-04 08:59:40 +08:00
33 lines
404 B
Markdown
33 lines
404 B
Markdown
# 拖拽上传
|
|
|
|
- order: 4
|
|
|
|
样式简单一些。
|
|
|
|
---
|
|
|
|
````jsx
|
|
import { Upload, Icon } from 'antd';
|
|
const Dragger = Upload.Dragger;
|
|
|
|
const props = {
|
|
name: 'file',
|
|
showUploadList: false,
|
|
action: '/upload.do'
|
|
};
|
|
|
|
ReactDOM.render(
|
|
<Dragger {...props}>
|
|
<Icon type="plus" />
|
|
</Dragger>,
|
|
mountNode
|
|
);
|
|
````
|
|
|
|
````css
|
|
#components-upload-demo-drag-simple {
|
|
width: 246px;
|
|
height: 146px;
|
|
}
|
|
````
|