[Improvement] more component use bem mixin (#924)

This commit is contained in:
neverland
2018-04-24 16:31:16 +08:00
committed by GitHub
parent b0f4096e88
commit b48ee8eece
15 changed files with 69 additions and 62 deletions

View File

@@ -1,7 +1,7 @@
<template>
<div
v-show="value"
class="van-image-preview"
:class="b()"
@touchstart="onTouchStart"
@touchmove.prevent="touchMove"
@touchend="onTouchEnd"
@@ -9,7 +9,7 @@
>
<swipe :initial-swipe="startPosition">
<swipe-item v-for="(item, index) in images" :key="index">
<img class="van-image-preview__image" :src="item" >
<img :class="b('image')" :src="item" >
</swipe-item>
</swipe>
</div>