Showing
3 changed files
with
4 additions
and
4 deletions
... | ... | @@ -47,7 +47,7 @@ |
47 | 47 | transformFile?: (file: File) => string | Blob | Promise<string | Blob | File>; |
48 | 48 | api: (file: string | Blob | Promise<string | Blob | File>) => Promise<FileItem>; |
49 | 49 | overFileLimitHiddenUploadEntry?: boolean; |
50 | - beforeUpload: (file: File, fileList: File[]) => boolean; | |
50 | + beforeUpload?: (file: File, fileList: File[]) => boolean; | |
51 | 51 | }>(), |
52 | 52 | { |
53 | 53 | fileList: () => [], |
... | ... | @@ -146,7 +146,7 @@ |
146 | 146 | :remove="handleRemove" |
147 | 147 | > |
148 | 148 | <Spin |
149 | - v-if="!(fileList.length >= getMaxFileLimit) || overFileLimitHiddenUploadEntry" | |
149 | + v-if="!(fileList.length >= getMaxFileLimit && overFileLimitHiddenUploadEntry)" | |
150 | 150 | :spinning="loading" |
151 | 151 | > |
152 | 152 | <div class="w-full h-full flex flex-col justify-center content-center"> | ... | ... |