diff --git a/packages/semi-ui/upload/fileCard.tsx b/packages/semi-ui/upload/fileCard.tsx index 6a3d0556e1..63ab1e9e17 100644 --- a/packages/semi-ui/upload/fileCard.tsx +++ b/packages/semi-ui/upload/fileCard.tsx @@ -161,8 +161,7 @@ class FileCard extends BaseComponent { [`${prefixCls}-picture-file-card-show-pointer`]: typeof onPreviewClick !== 'undefined', [`${prefixCls}-picture-file-card-error`]: status === strings.FILE_STATUS_UPLOAD_FAIL, [`${prefixCls}-picture-file-card-uploading`]: showProgress, - [`${prefixCls}-picture-file-card-custom-thumbnail`]: customThumbnail - + [`${prefixCls}-picture-file-card-custom-thumbnail`]: customThumbnail && picHeight && picWidth }); const retry = (
this.onRetry(e)}>