mirror of
https://github.com/tenrok/vue-ganttastic.git
synced 2026-06-23 22:40:33 +03:00
fix: playground
This commit is contained in:
+1
-1
@@ -188,7 +188,7 @@ export default {
|
|||||||
let movedBars = didSnapBack ? new Set() : this.movedBarsInDrag
|
let movedBars = didSnapBack ? new Set() : this.movedBarsInDrag
|
||||||
// Magnetic suction
|
// Magnetic suction
|
||||||
if (movedBars.size && this.isMagnetic) {
|
if (movedBars.size && this.isMagnetic) {
|
||||||
let { left, right, move } = action
|
let { left, right/*, move*/ } = action
|
||||||
|
|
||||||
movedBars.forEach((bar) => {
|
movedBars.forEach((bar) => {
|
||||||
if (this.timeaxisMode === 'month_days') {
|
if (this.timeaxisMode === 'month_days') {
|
||||||
|
|||||||
+2
-2
@@ -14,6 +14,8 @@
|
|||||||
:row-label-width="`${rowLabelWidth}%`"
|
:row-label-width="`${rowLabelWidth}%`"
|
||||||
:row-height="rowHeight"
|
:row-height="rowHeight"
|
||||||
:theme="selectedTheme"
|
:theme="selectedTheme"
|
||||||
|
barStartKey="myStart"
|
||||||
|
barEndKey="myEnd"
|
||||||
@dragend-bar="onDragend($event)"
|
@dragend-bar="onDragend($event)"
|
||||||
>
|
>
|
||||||
<template v-for="row in rowList">
|
<template v-for="row in rowList">
|
||||||
@@ -22,8 +24,6 @@
|
|||||||
:label="row.label"
|
:label="row.label"
|
||||||
:bars="row.barList"
|
:bars="row.barList"
|
||||||
:highlight-on-hover="highlightOnHover"
|
:highlight-on-hover="highlightOnHover"
|
||||||
bar-start-key="myStart"
|
|
||||||
bar-end-key="myEnd"
|
|
||||||
>
|
>
|
||||||
<template #bar-label="{ bar }">
|
<template #bar-label="{ bar }">
|
||||||
<span>{{ bar.label }}</span>
|
<span>{{ bar.label }}</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user