mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
[new feature] ImagePreview: add swipe-duration prop (#3963)
This commit is contained in:
@@ -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}
|
||||
|
Reference in New Issue
Block a user