mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-29 18:57:36 +08:00
Image: don't show image-viewer when preview is false (#18967)
This commit is contained in:
parent
624c1e90ff
commit
bc7dcc6281
@ -217,6 +217,10 @@
|
||||
}
|
||||
},
|
||||
clickHandler() {
|
||||
// don't show viewer when preview is false
|
||||
if (!this.preview) {
|
||||
return;
|
||||
}
|
||||
// prevent body scroll
|
||||
prevOverflow = document.body.style.overflow;
|
||||
document.body.style.overflow = 'hidden';
|
||||
|
Loading…
Reference in New Issue
Block a user