浏览代码

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

fujunwen 4 年之前
父节点
当前提交
fa291f41d1
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      src/utils/ganttChart/GanttChart_day.js
  2. 1 0
      src/utils/ganttChart/GanttChart_month.js

+ 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()
 }