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

32 lines
439 B
Markdown
Raw Normal View History

# 拖拽上传
- order: 4
样式简单一些。
---
````jsx
import { Upload, Icon } from 'antd';
const Dragger = Upload.Dragger;
const props = {
name: 'file',
uploadList: 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>,
document.getElementById('components-upload-demo-drag-simple')
);
````
<style>
#components-upload-demo-drag-simple {
width: 246px;
}
</style>