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

This commit is contained in:
denzw 2016-11-03 13:43:34 +08:00 committed by 偏右
parent 01ddb398c7
commit 5fb01c8300

View File

@ -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" />