mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-21 01:02:59 +08:00
fix(components): [upload] always display upload trigger (#9607)
This commit is contained in:
parent
ebc1e969e6
commit
86538e441d
@ -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"
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user