[improvement] ImagePreview: add fade transition (#2196)

This commit is contained in:
neverland
2018-12-01 08:46:42 +08:00
committed by GitHub
parent 66c940d672
commit d14f9cb5dc
3 changed files with 41 additions and 37 deletions
+3 -1
View File
@@ -1,7 +1,9 @@
import Vue from 'vue';
import ImagePreview from '..';
import ImagePreviewVue from '../ImagePreview';
import { mount, trigger, triggerDrag } from '../../../test/utils';
import { mount, trigger, triggerDrag, transitionStub } from '../../../test/utils';
transitionStub();
function triggerZoom(el, x, y) {
trigger(el, 'touchstart', 0, 0, { x, y });