mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
fix(Calendar): incorrect day offset (#5452)
This commit is contained in:
@@ -30,8 +30,7 @@ export default createComponent({
|
||||
},
|
||||
|
||||
offset() {
|
||||
const day = this.date.getDay();
|
||||
return day > 0 ? day - 1 : 6;
|
||||
return this.date.getDay();
|
||||
},
|
||||
|
||||
totalDay() {
|
||||
|
Reference in New Issue
Block a user