Browse Source

update upload

pull/520/head
afc163 9 years ago
parent
commit
3797f1adb3
  1. 5
      components/upload/index.jsx

5
components/upload/index.jsx

@ -200,9 +200,8 @@ const AntUpload = React.createClass({
uploadList = <UploadList items={this.state.fileList} onRemove={this.handleManualRemove} />; uploadList = <UploadList items={this.state.fileList} onRemove={this.handleManualRemove} />;
} }
if (type === 'drag') { if (type === 'drag') {
let dragUploadingClass = this.state.fileList.some((file) => { let dragUploadingClass = this.state.fileList.some(file => file.status === 'uploading')
return file.status === 'uploading'; ? `${prefixCls}-drag-uploading` : '';
}) ? `${prefixCls}-drag-uploading` : '';
let draggingClass = this.state.dragState === 'dragover' let draggingClass = this.state.dragState === 'dragover'
? `${prefixCls}-drag-hover` : ''; ? `${prefixCls}-drag-hover` : '';

Loading…
Cancel
Save