[Improvement] ImagePreview: remove unused code (#986)

This commit is contained in:
neverland 2018-05-04 15:43:51 +08:00 committed by GitHub
parent af6f7c0d0b
commit 61e895789a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,6 @@
v-show="value" v-show="value"
:class="b()" :class="b()"
@touchstart="onTouchStart" @touchstart="onTouchStart"
@touchmove.prevent="touchMove"
@touchend="onTouchEnd" @touchend="onTouchEnd"
@touchcancel="onTouchEnd" @touchcancel="onTouchEnd"
> >
@ -20,12 +19,11 @@ import create from '../utils/create';
import Popup from '../mixins/popup'; import Popup from '../mixins/popup';
import Swipe from '../swipe'; import Swipe from '../swipe';
import SwipeItem from '../swipe-item'; import SwipeItem from '../swipe-item';
import Touch from '../mixins/touch';
export default create({ export default create({
name: 'image-preview', name: 'image-preview',
mixins: [Popup, Touch], mixins: [Popup],
components: { components: {
Swipe, Swipe,
@ -51,9 +49,8 @@ export default create({
}, },
methods: { methods: {
onTouchStart(event) { onTouchStart() {
this.touchStartTime = new Date(); this.touchStartTime = new Date();
this.touchStart(event);
}, },
onTouchEnd(event) { onTouchEnd(event) {