You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
443 B

# 拖拽上传
- order: 4
样式简单一些。
---
````jsx
import { Upload, Icon } from 'antd';
const Dragger = Upload.Dragger;
const props = {
name: 'file',
showUploadList: false,
9 years ago
action: '/upload.do'
};
9 years ago
ReactDOM.render(
<Dragger {...props}>
<Icon type="plus" />
</Dragger>,
document.getElementById('components-upload-demo-drag-simple')
);
````
<style>
#components-upload-demo-drag-simple {
width: 246px;
}
</style>