[Improvement] simplify inner tag name (#395)

This commit is contained in:
neverland
2017-12-08 14:56:50 +08:00
committed by GitHub
parent 2cc5767a99
commit 3208d1bb3d
37 changed files with 199 additions and 199 deletions
+6 -6
View File
@@ -7,11 +7,11 @@
@touchend="onTouchEnd"
@touchcancel="onTouchEnd"
>
<van-swipe :initialSwipe="startPosition">
<van-swipe-item v-for="(item, index) in images" :key="index">
<swipe :initialSwipe="startPosition">
<swipe-item v-for="(item, index) in images" :key="index">
<img class="van-image-preview__image" :src="item" >
</van-swipe-item>
</van-swipe>
</swipe-item>
</swipe>
</div>
</template>
@@ -26,8 +26,8 @@ export default {
mixins: [Popup],
components: {
[Swipe.name]: Swipe,
[SwipeItem.name]: SwipeItem
Swipe,
SwipeItem
},
props: {