ant-design/components/upload/demo/drag-simple.md

33 lines
404 B
Markdown
Raw Normal View History

# 拖拽上传
- order: 4
样式简单一些。
---
````jsx
import { Upload, Icon } from 'antd';
const Dragger = Upload.Dragger;
const props = {
name: 'file',
2015-11-03 16:58:41 +08:00
showUploadList: false,
2015-08-31 21:26:34 +08:00
action: '/upload.do'
};
2015-10-20 16:47:55 +08:00
ReactDOM.render(
<Dragger {...props}>
2015-10-02 16:52:34 +08:00
<Icon type="plus" />
</Dragger>,
mountNode
);
````
2015-11-04 12:00:49 +08:00
````css
#components-upload-demo-drag-simple {
width: 246px;
2015-11-13 16:09:39 +08:00
height: 146px;
}
2015-11-04 12:00:49 +08:00
````