Skip to content

Commit

Permalink
Merge pull request #157 from treadpit/develop
Browse files Browse the repository at this point in the history
fix: #156 & can't cover config of circle mode
  • Loading branch information
todrfu authored Aug 8, 2019
2 parents 80c2396 + cde88f3 commit 4f1a889
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/component/calendar/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,10 +559,10 @@ const conf = {
options || this.todoConfig;
const { todoLabels = [], todoLabelPos, todoLabelColor } = calendar;
const shouldMarkerTodoDay = todoDays.filter(
item => +item.year === curYear && +item.month === curMonth
item => +item.year === +curYear && +item.month === +curMonth
);
let currentMonthTodoLabels = todoLabels.filter(
item => +item.year === curYear && +item.month === curMonth
item => +item.year === +curYear && +item.month === +curMonth
);
shouldMarkerTodoDay.concat(currentMonthTodoLabels).forEach(item => {
let target = {};
Expand All @@ -587,8 +587,9 @@ const conf = {
if (dotColor && dotColor !== todoLabelColor) {
o['calendar.todoLabelColor'] = dotColor;
}
o['calendar.todoLabelCircle'] = false;
} else {
o['calendar.todoLabelCircle'] = circle;
o['calendar.todoLabelCircle'] = true;
}
setData(o);
},
Expand Down

0 comments on commit 4f1a889

Please sign in to comment.