Browse Source

修复甘特图拖动切换之后 鼠标Hover背景消失问题

fujunwen 4 years ago
parent
commit
fa291f41d1

+ 1 - 0
src/utils/ganttChart/GanttChart_day.js

@@ -72,6 +72,7 @@ export function GanttChartDay(options) {
  */
 GanttChartDay.prototype.changeTasks = function(_tasks) {
     this.tasks = _tasks
+    this.hoverEl = null;
     this.forceRefreshGraph()
 }
 

+ 1 - 0
src/utils/ganttChart/GanttChart_month.js

@@ -131,6 +131,7 @@ GanttChartMonth.prototype.forceRefreshGraph = function() {
     })
     this.todayTimeLineEl = null
     this.gCanvas.destroy()
+    this.hoverEl = null;
     this.initDrawingReady()
 }