mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 03:11:15 +00:00
[new feature] ImagePreview: add onChange option (#3630)
This commit is contained in:
@@ -228,7 +228,7 @@ export default sfc({
|
||||
}
|
||||
},
|
||||
|
||||
onChange(active) {
|
||||
onSwipeChange(active) {
|
||||
this.resetScale();
|
||||
this.active = active;
|
||||
this.$emit('change', active);
|
||||
@@ -261,7 +261,7 @@ export default sfc({
|
||||
indicatorColor="white"
|
||||
initialSwipe={this.startPosition}
|
||||
showIndicators={this.showIndicators}
|
||||
onChange={this.onChange}
|
||||
onChange={this.onSwipeChange}
|
||||
>
|
||||
{images.map((image, index) => {
|
||||
const props = {
|
||||
|
Reference in New Issue
Block a user