[new feature] ImagePreview: add swipe-duration prop (#3963)

This commit is contained in:
drafish
2019-07-25 19:01:01 +08:00
committed by neverland
parent dc0e71556b
commit f52890cfd6
5 changed files with 12 additions and 0 deletions

View File

@@ -38,6 +38,10 @@ export default createComponent({
type: Boolean,
default: true
},
swipeDuration: {
type: Number,
default: 500
},
overlay: {
type: Boolean,
default: true
@@ -267,6 +271,7 @@ export default createComponent({
<Swipe
ref="swipe"
loop={this.loop}
duration={this.swipeDuration}
indicatorColor="white"
initialSwipe={this.startPosition}
showIndicators={this.showIndicators}