From 34e9e122935e6e3c7d747e87529f0f5829ae6803 Mon Sep 17 00:00:00 2001 From: yicone Date: Tue, 2 Feb 2021 18:53:55 +0800 Subject: [PATCH] fix: one day dismissed on month_days mode --- src/GGanttTimeaxis.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GGanttTimeaxis.vue b/src/GGanttTimeaxis.vue index b7cdc63..01cd6ec 100644 --- a/src/GGanttTimeaxis.vue +++ b/src/GGanttTimeaxis.vue @@ -107,7 +107,7 @@ export default { : start.daysInMonth() - start.date() + 1 let widthPercentage = (dayCountOfMonth / this.childPointCount) * 100 let endDay = - start.month() === end.month() ? end.date() : end.daysInMonth() + start.month() === end.month() ? end.date() : start.daysInMonth() this.axisPoints.push( this.getAxisMonthObject(start, widthPercentage, endDay) )