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