mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 13:47:02 +08:00
456 B
456 B
拖拽上传
- order: 4
样式简单一些。
import { Upload, Icon } from 'antd';
const Dragger = Upload.Dragger;
const props = {
name: 'file',
showUploadList: false,
action: '/upload.do'
};
ReactDOM.render(
<Dragger {...props}>
<Icon type="plus" />
</Dragger>,
document.getElementById('components-upload-demo-drag-simple')
);
#components-upload-demo-drag-simple {
width: 246px;
height: 146px;
}