ant-design/components/upload/demo/drag-simple.md
afc163 42708fe45d Refractor upload API
1. Remove limit urlResolver and onRemove
2. Remove onSuccess onProgress onError
3. Add onChange
4. Add fileList and defaultFileList props
2015-09-01 00:55:49 +08:00

416 B

拖拽上传

  • order: 4

样式简单一些。


var Dragger = antd.Upload.Dragger;

var props = {
  name: 'file',
  action: '/upload.do'
};

React.render(
  <Dragger {...props}>
    <i className="anticon anticon-plus"></i>
  </Dragger>,
  document.getElementById('components-upload-demo-drag-simple')
);