Skip to content

Commit

Permalink
fix(Uploader): can't get index in delete event #7481
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Nov 3, 2020
1 parent e80d2fe commit c4d0600
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/uploader/PreviewItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default {
props: {
name: String,
item: Object,
index: Number,
imageFit: String,
lazyLoad: Boolean,
deletable: Boolean,
Expand Down
1 change: 1 addition & 0 deletions src/uploader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ export default createComponent({
<PreviewItem
v-slots={{ 'preview-cover': slots['preview-cover'] }}
item={item}
index={index}
onClick={() => {
emit('click-preview', item, getDetail(index));
}}
Expand Down

0 comments on commit c4d0600

Please sign in to comment.