From a5e20090d326a77d84e80fb7ef8155c2a656c45c Mon Sep 17 00:00:00 2001 From: Sergey Solodyagin Date: Wed, 6 Oct 2021 22:50:33 +0300 Subject: [PATCH] fix: playground --- src/GGanttChart.vue | 2 +- src/Playground.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GGanttChart.vue b/src/GGanttChart.vue index 47f6c34..00bb0a5 100644 --- a/src/GGanttChart.vue +++ b/src/GGanttChart.vue @@ -188,7 +188,7 @@ export default { let movedBars = didSnapBack ? new Set() : this.movedBarsInDrag // Magnetic suction if (movedBars.size && this.isMagnetic) { - let { left, right, move } = action + let { left, right/*, move*/ } = action movedBars.forEach((bar) => { if (this.timeaxisMode === 'month_days') { diff --git a/src/Playground.vue b/src/Playground.vue index 4fc4748..1a2be11 100644 --- a/src/Playground.vue +++ b/src/Playground.vue @@ -14,6 +14,8 @@ :row-label-width="`${rowLabelWidth}%`" :row-height="rowHeight" :theme="selectedTheme" + barStartKey="myStart" + barEndKey="myEnd" @dragend-bar="onDragend($event)" >