Add dragged handler
This commit is contained in:
parent
1604f5b4aa
commit
a1ee90df33
1 changed files with 7 additions and 3 deletions
|
@ -24,6 +24,7 @@
|
||||||
:push-on-overlap="true"
|
:push-on-overlap="true"
|
||||||
row-label-width="0"
|
row-label-width="0"
|
||||||
:grid="true"
|
:grid="true"
|
||||||
|
@dragend-bar="dragged($event)"
|
||||||
>
|
>
|
||||||
<g-gantt-row
|
<g-gantt-row
|
||||||
v-for="(t, k) in theTasks"
|
v-for="(t, k) in theTasks"
|
||||||
|
@ -43,9 +44,9 @@
|
||||||
}]"
|
}]"
|
||||||
:highlight-on-hover="true"
|
:highlight-on-hover="true"
|
||||||
>
|
>
|
||||||
<template #bar-label="{bar}">
|
<!-- <template #bar-label="{bar}">-->
|
||||||
<span>{{bar.label}}</span>
|
<!-- <span>{{ bar.label }}</span>-->
|
||||||
</template>
|
<!-- </template>-->
|
||||||
</g-gantt-row>
|
</g-gantt-row>
|
||||||
</g-gantt-chart>
|
</g-gantt-chart>
|
||||||
|
|
||||||
|
@ -524,6 +525,9 @@ export default {
|
||||||
this.error(e, this)
|
this.error(e, this)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
dragged(e) {
|
||||||
|
console.log(e)
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue