From 59e2f072c289ac26303803847d2ce13087399c8a Mon Sep 17 00:00:00 2001 From: veveue Date: Sat, 25 May 2019 16:34:38 +0800 Subject: [PATCH] upload disabled remove --- components/upload/Upload.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/upload/Upload.tsx b/components/upload/Upload.tsx index 0751b2e6ff..1564fb6cbc 100644 --- a/components/upload/Upload.tsx +++ b/components/upload/Upload.tsx @@ -238,7 +238,7 @@ class Upload extends React.Component { }; renderUploadList = (locale: UploadLocale) => { - const { showUploadList, listType, onPreview, previewFile } = this.props; + const { showUploadList, listType, onPreview, previewFile, disabled } = this.props; const { showRemoveIcon, showPreviewIcon } = showUploadList as any; return ( { previewFile={previewFile} onPreview={onPreview} onRemove={this.handleManualRemove} - showRemoveIcon={showRemoveIcon} + showRemoveIcon={!disabled && showRemoveIcon} showPreviewIcon={showPreviewIcon} locale={{ ...locale, ...this.props.locale }} />