@everchron/ec-shards 4.4.1 → 4.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ec-shards.common.js +27 -27
- package/dist/ec-shards.common.js.map +1 -1
- package/dist/ec-shards.css +1 -1
- package/dist/ec-shards.umd.js +27 -27
- package/dist/ec-shards.umd.js.map +1 -1
- package/dist/ec-shards.umd.min.js +2 -2
- package/dist/ec-shards.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/context-menu/context-menu.vue +1 -2
- package/src/stories/context-menu/context-menu.stories.js +2 -1
package/package.json
CHANGED
|
@@ -96,7 +96,6 @@ export default {
|
|
|
96
96
|
} else {
|
|
97
97
|
this.top = event.pageY - 2
|
|
98
98
|
}
|
|
99
|
-
|
|
100
99
|
this.opened = true
|
|
101
100
|
},
|
|
102
101
|
|
|
@@ -151,7 +150,7 @@ export default {
|
|
|
151
150
|
padding: 0;
|
|
152
151
|
display: none;
|
|
153
152
|
list-style: none;
|
|
154
|
-
position:
|
|
153
|
+
position: fixed;
|
|
155
154
|
z-index: 1000000;
|
|
156
155
|
border-radius: $border-radius-medium;
|
|
157
156
|
background: rgba(255, 255, 255, 0.94);
|
|
@@ -21,7 +21,7 @@ export const contextMenu = () => ({
|
|
|
21
21
|
<ecs-data-grid-head-cell name="Fourth" :width="200" />
|
|
22
22
|
</template>
|
|
23
23
|
|
|
24
|
-
<ecs-data-grid-row v-for="index in
|
|
24
|
+
<ecs-data-grid-row v-for="index in 60" :key="index" mouse-event="contextmenu" @click="(e) => handleClick(e, index)">
|
|
25
25
|
<ecs-data-grid-cell column="first" :width="200">Right click me</ecs-data-grid-cell>
|
|
26
26
|
<ecs-data-grid-cell column="second" :width="200">Right click me</ecs-data-grid-cell>
|
|
27
27
|
<ecs-data-grid-cell column="third" :width="200">Right click me</ecs-data-grid-cell>
|
|
@@ -63,6 +63,7 @@ export const contextMenu = () => ({
|
|
|
63
63
|
},
|
|
64
64
|
methods: {
|
|
65
65
|
handleClick(event, item) {
|
|
66
|
+
console.log(this.$refs)
|
|
66
67
|
this.$refs.contextMenu.showMenu(event, item)
|
|
67
68
|
}
|
|
68
69
|
},
|