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} />;
}
if (type === 'drag') {
let dragUploadingClass = this.state.fileList.some((file) => {
return file.status === 'uploading';
}) ? `${prefixCls}-drag-uploading` : '';
let dragUploadingClass = this.state.fileList.some(file => file.status === 'uploading')
? `${prefixCls}-drag-uploading` : '';
let draggingClass = this.state.dragState === 'dragover'
? `${prefixCls}-drag-hover` : '';

Loading…
Cancel
Save