mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-06-10 07:09:16 +08:00
[improvement] Sku: should close image preview when popstate (#4152)
This commit is contained in:
parent
a730a55e3b
commit
a3712f7c5b
@ -368,6 +368,7 @@ export default createComponent({
|
|||||||
ImagePreview({
|
ImagePreview({
|
||||||
images: this.imageList,
|
images: this.imageList,
|
||||||
startPosition: index,
|
startPosition: index,
|
||||||
|
closeOnPopstate: true,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
this.$emit('close-preview', params);
|
this.$emit('close-preview', params);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user