fix(ImagePreview): should reset scale after toggle (#4319)

This commit is contained in:
neverland
2019-09-02 11:51:20 +08:00
committed by GitHub
parent 10db0100bb
commit db7a91d066

View File

@@ -104,6 +104,7 @@ export default createComponent({
watch: {
value() {
this.resetScale();
this.active = this.startPosition;
},
@@ -129,7 +130,6 @@ export default createComponent({
this.doubleClickTimer = setTimeout(() => {
const index = this.active;
this.resetScale();
this.$emit('close', {
index,
url: this.images[index]