Browse Source

修复上传组件卡片样式时,新增加上传图片不能预览的问题 (#3706)

pull/3716/head
denzw 8 years ago
committed by 偏右
parent
commit
5fb01c8300
  1. 2
      components/upload/uploadList.tsx

2
components/upload/uploadList.tsx

@ -132,7 +132,7 @@ export default class UploadList extends React.Component<UploadListProps, any> {
<a
href={file.url}
target="_blank" rel="noopener noreferrer"
style={{ pointerEvents: file.url ? '' : 'none' }}
style={{ pointerEvents: file.url || file.thumbUrl ? '' : 'none' }}
onClick={e => this.handlePreview(file, e)}
>
<Icon type="eye-o" />

Loading…
Cancel
Save