fix(components): [upload] always display upload trigger (#9607)

This commit is contained in:
zz 2022-09-03 23:21:10 +08:00 committed by GitHub
parent ebc1e969e6
commit 86538e441d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,11 +12,7 @@
<slot name="file" :file="file" />
</template>
<template #append>
<upload-content
v-if="listType === 'picture-card'"
ref="uploadRef"
v-bind="uploadContentProps"
>
<upload-content ref="uploadRef" v-bind="uploadContentProps">
<slot v-if="slots.trigger" name="trigger" />
<slot v-if="!slots.trigger && slots.default" />
</upload-content>
@ -24,7 +20,7 @@
</upload-list>
<upload-content
v-if="listType !== 'picture-card'"
v-if="!isPictureCard || (isPictureCard && !showFileList)"
ref="uploadRef"
v-bind="uploadContentProps"
>