mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
修复上传组件卡片样式时,新增加上传图片不能预览的问题 (#3706)
This commit is contained in:
parent
01ddb398c7
commit
5fb01c8300
@ -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…
Reference in New Issue
Block a user