Skip to content

Commit

Permalink
Fixed set today bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhe committed Jan 4, 2018
1 parent 624ed1c commit e980b2f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/calendar.vue
Expand Up @@ -791,16 +791,13 @@ export default {
// 遍历当前日找到选中
this.days.forEach(v => {
let day=v.find(vv => {
return vv.day==this.day
return vv.day==this.day && !vv.disabled
})
if(day!=undefined){
if(day!=undefined ){
day.selected=true
}
})
this.$forceUpdate()
},
// 日期补零
zeroPad(n){
Expand Down

0 comments on commit e980b2f

Please sign in to comment.