From b12549cff7ddc5cb7f7b9e989d8c2d606b4386a9 Mon Sep 17 00:00:00 2001 From: pointhalo Date: Mon, 15 Jul 2024 19:24:59 +0800 Subject: [PATCH] style: fix upload renderThumbnail img width & height --- packages/semi-ui/upload/fileCard.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)}>