mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-02 04:08:10 +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() {
|
clickHandler() {
|
||||||
|
// don't show viewer when preview is false
|
||||||
|
if (!this.preview) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// prevent body scroll
|
// prevent body scroll
|
||||||
prevOverflow = document.body.style.overflow;
|
prevOverflow = document.body.style.overflow;
|
||||||
document.body.style.overflow = 'hidden';
|
document.body.style.overflow = 'hidden';
|
||||||
|
Loading…
Reference in New Issue
Block a user