diff --git a/src/components/Images.vue b/src/components/Images.vue index a4e12a1f9..e028a7600 100644 --- a/src/components/Images.vue +++ b/src/components/Images.vue @@ -154,7 +154,10 @@ export default { }, imgStyle() { if (this.zoomRatio === 1) { - return {} + return { + height: this.zoomHeight + 'px', + width: this.zoomWidth + 'px', + } } return { marginTop: Math.round(this.shiftY * 2) + 'px',