vxe-gantt 4.1.14 → 4.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -109,7 +109,9 @@ export default defineVxeComponent({
109
109
  const internalData = createInternalData()
110
110
 
111
111
  const refMaps: GanttViewPrivateRef = {
112
- refElem
112
+ refElem,
113
+ refScrollXHandleElem,
114
+ refScrollYHandleElem
113
115
  }
114
116
 
115
117
  const computeScaleDateList = computed(() => {
@@ -433,7 +435,7 @@ export default defineVxeComponent({
433
435
  const offsetLeftSize = (indexMaps[startStr] || 0) + subtract
434
436
  return {
435
437
  offsetLeftSize,
436
- offsetWidthSize: (indexMaps[endStr] || 0) - offsetLeftSize + addSize + 1
438
+ offsetWidthSize: (indexMaps[endStr] || 0) - offsetLeftSize + addSize
437
439
  }
438
440
  }
439
441
  }
@@ -456,7 +458,7 @@ export default defineVxeComponent({
456
458
  const offsetLeftSize = (indexMaps[startStr] || 0) + subtract
457
459
  return {
458
460
  offsetLeftSize,
459
- offsetWidthSize: (indexMaps[endStr] || 0) - offsetLeftSize + addSize + 1
461
+ offsetWidthSize: (indexMaps[endStr] || 0) - offsetLeftSize + addSize
460
462
  }
461
463
  }
462
464
  }
@@ -479,7 +481,7 @@ export default defineVxeComponent({
479
481
  const offsetLeftSize = (indexMaps[startStr] || 0) + subtract
480
482
  return {
481
483
  offsetLeftSize,
482
- offsetWidthSize: (indexMaps[endStr] || 0) - offsetLeftSize + addSize + 1
484
+ offsetWidthSize: (indexMaps[endStr] || 0) - offsetLeftSize + addSize
483
485
  }
484
486
  }
485
487
  }
@@ -502,7 +504,7 @@ export default defineVxeComponent({
502
504
  const offsetLeftSize = (indexMaps[startStr] || 0) + subtract
503
505
  return {
504
506
  offsetLeftSize,
505
- offsetWidthSize: (indexMaps[endStr] || 0) - offsetLeftSize + addSize + 1
507
+ offsetWidthSize: (indexMaps[endStr] || 0) - offsetLeftSize + addSize
506
508
  }
507
509
  }
508
510
  }
@@ -549,7 +551,7 @@ export default defineVxeComponent({
549
551
  const offsetLeftSize = (indexMaps[startStr] || 0) + subtract
550
552
  return {
551
553
  offsetLeftSize,
552
- offsetWidthSize: (indexMaps[endStr] || 0) - offsetLeftSize + addSize + 1
554
+ offsetWidthSize: (indexMaps[endStr] || 0) - offsetLeftSize + addSize
553
555
  }
554
556
  }
555
557
  }
@@ -572,7 +574,7 @@ export default defineVxeComponent({
572
574
  const offsetLeftSize = (indexMaps[startStr] || 0) + subtract
573
575
  return {
574
576
  offsetLeftSize,
575
- offsetWidthSize: (indexMaps[endStr] || 0) - offsetLeftSize + addSize + 1
577
+ offsetWidthSize: (indexMaps[endStr] || 0) - offsetLeftSize + addSize
576
578
  }
577
579
  }
578
580
  }
@@ -585,7 +587,7 @@ export default defineVxeComponent({
585
587
  let offsetWidthSize = 0
586
588
  if (minViewDate) {
587
589
  offsetLeftSize = (startDate.getTime() - minViewDate.getTime()) / gapTime
588
- offsetWidthSize = ((endDate.getTime() - startDate.getTime()) / gapTime) + 1
590
+ offsetWidthSize = ((endDate.getTime() - startDate.getTime()) / gapTime)
589
591
  }
590
592
  return {
591
593
  offsetLeftSize,
@@ -1778,6 +1778,10 @@ export default defineVxeComponent({
1778
1778
  },
1779
1779
  triggerTaskBarTooltipEvent (evnt, params) {
1780
1780
  const { barTipStore } = reactData
1781
+ const { dragBarRow } = internalData
1782
+ if (dragBarRow) {
1783
+ return
1784
+ }
1781
1785
  const taskBarTooltipOpts = computeTaskBarTooltipOpts.value
1782
1786
  const titleField = computeTitleField.value
1783
1787
  const { contentMethod } = taskBarTooltipOpts