[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

@@ -14,6 +14,7 @@
</div>
<swipe
ref="swipe"
:loop="loop"
:initial-swipe="startPosition"
:show-indicators="showIndicators"
@change="onChange"
@@ -63,6 +64,10 @@ export default create({
type: Array,
default: () => []
},
loop: {
type: Boolean,
default: true
},
startPosition: {
type: Number,
default: 0