fix: code style

This commit is contained in:
陈嘉涵
2017-08-25 15:57:38 +08:00
parent 43693fa781
commit e7b1d70900
18 changed files with 64 additions and 80 deletions

View File

@@ -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;
}
},