2
0
mirror of https://github.com/tenrok/vue-ganttastic.git synced 2026-06-25 15:40:34 +03:00

Can listen to contextmenu bar events using

@contextmenu-bar on g-ganttc-chart
Bumped npm package version
This commit is contained in:
Marko Zunic
2020-03-18 12:07:27 +01:00
parent b192927acc
commit 69b213f902
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "vue-ganttastic", "name": "vue-ganttastic",
"version": "0.9.3", "version": "0.9.4",
"description": "A simple and customizable Gantt chart component for Vue.js", "description": "A simple and customizable Gantt chart component for Vue.js",
"main": "./dist/index.js", "main": "./dist/index.js",
"scripts": { "scripts": {
+4
View File
@@ -151,6 +151,10 @@ export default {
this.onBarEvent(e, this) this.onBarEvent(e, this)
}, },
onContextmenu(e){
this.onBarEvent(e, this)
},
onMousedown(e){ onMousedown(e){
e.preventDefault() e.preventDefault()
if(e.button === 2 || this.barConfig.immobile){ if(e.button === 2 || this.barConfig.immobile){