[bugfix] Area: fix test cases (#1392)

This commit is contained in:
neverland
2018-07-03 23:59:13 +08:00
committed by GitHub
parent 7f4ad6a28d
commit 541299ccd5
4 changed files with 72 additions and 36 deletions

View File

@@ -144,7 +144,7 @@ export default create({
},
setIndex(index, userAction) {
index = this.adjustIndex(index);
index = this.adjustIndex(index) || 0;
this.offset = -index * this.itemHeight;
if (index !== this.currentIndex) {