mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-13 07:39:10 +08:00
34 lines
459 B
Markdown
34 lines
459 B
Markdown
# 拖拽上传
|
|
|
|
- order: 2
|
|
|
|
样式简单一些。
|
|
|
|
---
|
|
|
|
````jsx
|
|
var Dragger = antd.Upload.Dragger;
|
|
|
|
var props = {
|
|
name: 'file',
|
|
action: '/upload.do',
|
|
data: {},
|
|
accept: '',
|
|
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>
|