Skip to content

Commit

Permalink
fix: upload scope slot and named slot known errors
Browse files Browse the repository at this point in the history
for details, see: #391
  • Loading branch information
qiqingfu committed Nov 21, 2020
1 parent cb2ce78 commit 7cc9b1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/upload/src/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
:handlePreview="onPreview"
v-if="listType === 'picture-card' && showFileList"
>
<template v-slot:file="props">
<template v-if="$slots.file" #default="props">
<slot name="file" :file="props.file"></slot>
</template>
</UploadList>
Expand Down Expand Up @@ -85,7 +85,7 @@
:handlePreview="onPreview"
v-if="listType !== 'picture-card' && showFileList"
>
<template v-slot:file="props">
<template v-if="$slots.file" #default="props">
<slot name="file" :file="props.file"></slot>
</template>
</UploadList>
Expand Down

0 comments on commit 7cc9b1d

Please sign in to comment.