2
0
mirror of https://github.com/tenrok/vue-ganttastic.git synced 2026-06-19 03:00:33 +03:00

fix: incorrect refs

This commit is contained in:
yicone
2021-02-23 18:49:04 +08:00
parent b9d89468bf
commit 389d2eedcd
+4 -1
View File
@@ -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) })
},