mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-06-10 15:19:14 +08:00
51 lines
1.4 KiB
Plaintext
51 lines
1.4 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`should change close icon position when using close-icon-position prop 1`] = `
|
|
<i class="van-badge__wrapper van-icon van-icon-clear van-image-preview__close-icon van-image-preview__close-icon--top-left"
|
|
role="button"
|
|
>
|
|
</i>
|
|
`;
|
|
|
|
exports[`should change close icon when using close-icon prop 1`] = `
|
|
<i class="van-badge__wrapper van-icon van-icon-success van-image-preview__close-icon van-image-preview__close-icon--top-right"
|
|
role="button"
|
|
>
|
|
</i>
|
|
`;
|
|
|
|
exports[`should render cover slot correctly 1`] = `
|
|
<transition-stub class="van-image-preview__overlay">
|
|
<div class="van-overlay">
|
|
</div>
|
|
</transition-stub>
|
|
<transition-stub>
|
|
<div class="van-popup van-popup--center van-image-preview">
|
|
<div class="van-swipe van-image-preview__swipe">
|
|
<div style="width: 0px; transition-duration: 500ms; transform: translateX(0px);"
|
|
class="van-swipe__track"
|
|
>
|
|
</div>
|
|
</div>
|
|
<div class="van-image-preview__index">
|
|
1 / 0
|
|
</div>
|
|
<div class="van-image-preview__cover">
|
|
Custom Cover
|
|
</div>
|
|
</div>
|
|
</transition-stub>
|
|
`;
|
|
|
|
exports[`should render index slot correctly 1`] = `
|
|
<div class="van-image-preview__index">
|
|
Custom Index: 0
|
|
</div>
|
|
`;
|
|
|
|
exports[`should swipe to currect index after calling the swipeTo method 1`] = `
|
|
<div class="van-image-preview__index">
|
|
3 / 3
|
|
</div>
|
|
`;
|