mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[Improvement] ImagePreview: remove unused code (#986)
This commit is contained in:
parent
af6f7c0d0b
commit
61e895789a
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user