From ae0761a444067ac39c69ea0ed6548bffde4e524d Mon Sep 17 00:00:00 2001 From: kev1nzh_ark Date: Sun, 19 Sep 2021 13:02:40 +0800 Subject: [PATCH] feat(upload) fix upload-file-list method (#1102) --- src/upload/src/UploadFileList.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/upload/src/UploadFileList.tsx b/src/upload/src/UploadFileList.tsx index 0c8ec5590ea..ad2d7816fe5 100644 --- a/src/upload/src/UploadFileList.tsx +++ b/src/upload/src/UploadFileList.tsx @@ -46,9 +46,7 @@ export default defineComponent({ /> )) - const createUploadFileList = ( - isImageCardTypeRef: ComputedRef - ): VNode => + const createUploadFileList = (): VNode => isImageCardTypeRef.value ? ( {{ default: createFileList }} ) : ( @@ -68,7 +66,7 @@ export default defineComponent({ ]} style={[cssVarsRef.value, fileListStyle as CSSProperties]} > - {createUploadFileList(isImageCardTypeRef)} + {createUploadFileList()} {isImageCardTypeRef.value && {slots}} )