From 389d2eedcd65934ff4b26037cb9b0b4228614995 Mon Sep 17 00:00:00 2001 From: yicone Date: Tue, 23 Feb 2021 18:49:04 +0800 Subject: [PATCH] fix: incorrect refs --- src/GGanttRow.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/GGanttRow.vue b/src/GGanttRow.vue index 2f81a11..64a5d7b 100644 --- a/src/GGanttRow.vue +++ b/src/GGanttRow.vue @@ -118,7 +118,10 @@ export default { this.timeUnit ) let bar = this.bars.find((bar) => - time.isBetween(bar[this.barStart], bar[this.barEnd]) + time.isBetween( + bar[this.ganttChartProps.barStartKey], + bar[this.ganttChartProps.barEndKey] + ) ) this.$emit('drop', { event: e, bar, time: time.format(this.timeFormat) }) },