mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
fix: code style
This commit is contained in:
@@ -61,27 +61,27 @@ export default {
|
||||
}).on('autoPlay', function(dist, isEnd) {
|
||||
scroll.movePage(dist.x, isEnd);
|
||||
});
|
||||
this.dummy = dummy
|
||||
this.dummy = dummy;
|
||||
},
|
||||
|
||||
watch: {
|
||||
swipes(value) {
|
||||
if (this.autoPlay && value.length > 1) {
|
||||
this.dummy.initMove()
|
||||
this.dummy.initMove();
|
||||
} else {
|
||||
this.dummy.clearMove()
|
||||
this.dummy.clearMove();
|
||||
}
|
||||
this.scroll.update();
|
||||
return value
|
||||
return value;
|
||||
},
|
||||
|
||||
autoPlay(value) {
|
||||
if (value && this.swipes.length > 1) {
|
||||
this.dummy.initMove()
|
||||
this.dummy.initMove();
|
||||
} else {
|
||||
this.dummy.clearMove()
|
||||
this.dummy.clearMove();
|
||||
}
|
||||
return value
|
||||
return value;
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user