mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 11:40:04 +08:00
459 B
459 B
拖拽上传
- order: 2
样式简单一些。
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')
);