[improvement] ImagePreview: add show-index prop (#1889)

This commit is contained in:
neverland
2018-10-02 21:24:25 +08:00
committed by GitHub
parent 8bd447a130
commit a4bebfbb8d
15 changed files with 84 additions and 21 deletions
@@ -2,6 +2,7 @@
exports[`render image 1`] = `
<div class="van-image-preview">
<div class="van-image-preview__index">1/3</div>
<div class="van-swipe">
<div class="van-swipe__track" style="width: 0px;">
<div class="van-swipe-item" style="width: 0px; height: 100%;">
+1 -1
View File
@@ -1,6 +1,6 @@
import Vue from 'vue';
import ImagePreview from '..';
import ImagePreviewVue from '../image-preview';
import ImagePreviewVue from '../ImagePreview';
import { mount, triggerDrag } from '../../../test/utils';
const images = [