mirror of
https://github.com/tenrok/vue-ganttastic.git
synced 2026-06-25 07:30: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:
+1
-1
@@ -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": {
|
||||||
|
|||||||
@@ -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){
|
||||||
|
|||||||
Reference in New Issue
Block a user