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

34 lines
459 B
Markdown
Raw Normal View History

# 拖拽上传
2015-08-31 18:13:16 +08:00
- order: 3
样式简单一些。
---
````jsx
var Dragger = antd.Upload.Dragger;
var props = {
name: 'file',
action: '/upload.do',
data: {},
accept: '',
2015-08-27 15:57:25 +08:00
uploadTip: ''
};
React.render(
<Dragger {...props}>
<i className="anticon anticon-plus"></i>
</Dragger>,
document.getElementById('components-upload-demo-drag-simple')
);
````
<style>
#components-upload-demo-drag-simple {
width: 246px;
height: 146px;
}
</style>