mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-24 10:20:19 +08:00
[bugfix] ImagePreview: index NaN (#2146)
This commit is contained in:
parent
b567a2a563
commit
1a53683353
@ -20,7 +20,7 @@ const initInstance = () => {
|
|||||||
document.body.appendChild(instance.$el);
|
document.body.appendChild(instance.$el);
|
||||||
};
|
};
|
||||||
|
|
||||||
const ImagePreview = (images, startPosition) => {
|
const ImagePreview = (images, startPosition = 0) => {
|
||||||
/* istanbul ignore if */
|
/* istanbul ignore if */
|
||||||
if (isServer) {
|
if (isServer) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user