|
@@ -28,7 +28,7 @@ export function GanttChartMonth(options) {
|
|
|
// 拖动定时器
|
|
|
this.dragTimer = null;
|
|
|
// 每天的间隔宽度
|
|
|
- this.dayStep = parseInt(this.cWidth/365);
|
|
|
+ this.dayStep = parseInt(this.cWidth/365*2/3);
|
|
|
// 分组标题高度
|
|
|
this.groupTitleHeight = 18;
|
|
|
// 任务矩形高度
|
|
@@ -328,7 +328,7 @@ GanttChartMonth.prototype.drawTimeZone = function() {
|
|
|
let daysCount = moment(`${year}-${i}`).dayOfYear()
|
|
|
timeGroup.addShape('text', {
|
|
|
attrs: {
|
|
|
- x: this.dayStep * daysCount,
|
|
|
+ x: this.dayStep * daysCount + 180,
|
|
|
y: 40,
|
|
|
fontSize: 10,
|
|
|
text: timeText,
|