mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Uploader): can't get index in delete event #7481
This commit is contained in:
parent
e80d2fe09c
commit
c4d06005f0
@ -12,6 +12,7 @@ export default {
|
|||||||
props: {
|
props: {
|
||||||
name: String,
|
name: String,
|
||||||
item: Object,
|
item: Object,
|
||||||
|
index: Number,
|
||||||
imageFit: String,
|
imageFit: String,
|
||||||
lazyLoad: Boolean,
|
lazyLoad: Boolean,
|
||||||
deletable: Boolean,
|
deletable: Boolean,
|
||||||
|
@ -238,6 +238,7 @@ export default createComponent({
|
|||||||
<PreviewItem
|
<PreviewItem
|
||||||
v-slots={{ 'preview-cover': slots['preview-cover'] }}
|
v-slots={{ 'preview-cover': slots['preview-cover'] }}
|
||||||
item={item}
|
item={item}
|
||||||
|
index={index}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
emit('click-preview', item, getDetail(index));
|
emit('click-preview', item, getDetail(index));
|
||||||
}}
|
}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user