image preview

This commit is contained in:
cookfront
2017-04-01 11:43:26 +08:00
parent fbf4a93424
commit 780f900f5c
3 changed files with 10 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
<template>
<transition name="image-fade">
<div class="zan-image-preview" ref="previewContainer" v-show="value" @click="handlePreviewClick">
<zan-swipe>
<zan-swipe :show-indicators="false">
<zan-swipe-item v-for="item in images">
<img class="zan-image-preview__image" :src="item" alt="" :class="{
'zan-image-preview__image--center': true