fix(Calendar): incorrect day offset (#5452)

This commit is contained in:
neverland
2020-01-02 16:37:39 +08:00
committed by GitHub
parent 307a233a88
commit 24254a7d2c
3 changed files with 17 additions and 18 deletions

View File

@@ -30,8 +30,7 @@ export default createComponent({
},
offset() {
const day = this.date.getDay();
return day > 0 ? day - 1 : 6;
return this.date.getDay();
},
totalDay() {