[improvement] ImagePreview: add show-index prop (#1889)
This commit is contained in:
@@ -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,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 = [
|
||||
|
||||
Reference in New Issue
Block a user