[improvement] ImagePreview: add loop prop (#2103)

This commit is contained in:
neverland
2018-11-18 10:03:45 +08:00
committed by GitHub
parent 10f0604ad0
commit 0dbf1c5ee2
4 changed files with 11 additions and 3 deletions

View File

@@ -5,11 +5,12 @@ import { isServer } from '../utils';
let instance;
const defaultConfig = {
value: true,
images: [],
loop: true,
value: true,
showIndex: true,
showIndicators: false,
startPosition: 0
startPosition: 0,
showIndicators: false
};
const initInstance = () => {