mirror of
https://github.com/tenrok/vue-ganttastic.git
synced 2026-06-21 08:30:37 +03:00
Can listen to contextmenu bar events using
@contextmenu-bar on g-ganttc-chart Bumped npm package version
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vue-ganttastic",
|
||||
"version": "0.9.3",
|
||||
"version": "0.9.4",
|
||||
"description": "A simple and customizable Gantt chart component for Vue.js",
|
||||
"main": "./dist/index.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -151,6 +151,10 @@ export default {
|
||||
this.onBarEvent(e, this)
|
||||
},
|
||||
|
||||
onContextmenu(e){
|
||||
this.onBarEvent(e, this)
|
||||
},
|
||||
|
||||
onMousedown(e){
|
||||
e.preventDefault()
|
||||
if(e.button === 2 || this.barConfig.immobile){
|
||||
|
||||
Reference in New Issue
Block a user