Skip to content

Commit 0eb9a75

Browse files
committed
committing before pulling changes
1 parent 8353f4f commit 0eb9a75

File tree

6 files changed

+16
-1
lines changed

6 files changed

+16
-1
lines changed

package-lock.json

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"localforage": "^1.7.3",
1717
"mousetrap": "^1.6.3",
1818
"quasar": "^1.0.0",
19+
"vue-custom-context-menu": "^3.0.1",
1920
"vue-draggable-resizable": "^2.0.0-rc2",
2021
"vue-multiselect": "^2.1.6",
2122
"vued3tree": "^3.7.1"

src/components/ComponentDisplay.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<template>
22
<div class="component-display">
3+
<context-menu ref="component-options">
4+
<context-menu-item>Add a Child</context-menu-item>
5+
</context-menu>
36
<VueDraggableResizable
47
class-name="component-box"
58
v-for="componentData in activeRouteArray"
@@ -14,6 +17,7 @@
1417
@dragging="onDrag"
1518
@resizing="onResize"
1619
@dblclick.native="onDoubleClick(componentData)"
20+
@contextmenu.native.prevent="'component-options'"
1721
>
1822
<h3>{{ componentData.componentName }}</h3>
1923
</VueDraggableResizable>
@@ -22,11 +26,13 @@
2226
<script>
2327
import { mapState, mapActions } from 'vuex'
2428
import VueDraggableResizable from 'vue-draggable-resizable'
29+
import VCCM from 'vue-custom-context-menu'
2530
2631
export default {
2732
name: 'ComponentDisplay',
2833
components: {
29-
VueDraggableResizable
34+
VueDraggableResizable,
35+
VCCM,
3036
},
3137
data () {
3238
return {
@@ -79,6 +85,9 @@ export default {
7985
onDoubleClick (compData) {
8086
this.setActiveComponent(compData.componentName)
8187
this.activeComponentData.isActive = true
88+
},
89+
onRightClick () {
90+
alert('Holy fucc, u right clicc')
8291
}
8392
}
8493
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)