|
|
@ -25,7 +25,7 @@ export default {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
setMenu: function(top, left) {
|
|
|
|
setMenu(top, left) {
|
|
|
|
let largestHeight =
|
|
|
|
let largestHeight =
|
|
|
|
window.innerHeight - this.$refs.menu.offsetHeight - 25;
|
|
|
|
window.innerHeight - this.$refs.menu.offsetHeight - 25;
|
|
|
|
let largestWidth = window.innerWidth - this.$refs.menu.offsetWidth - 25;
|
|
|
|
let largestWidth = window.innerWidth - this.$refs.menu.offsetWidth - 25;
|
|
|
@ -35,11 +35,11 @@ export default {
|
|
|
|
this.left = left + "px";
|
|
|
|
this.left = left + "px";
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
closeMenu: function() {
|
|
|
|
closeMenu() {
|
|
|
|
this.showMenu = false;
|
|
|
|
this.showMenu = false;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
openMenu: function(e) {
|
|
|
|
openMenu(e) {
|
|
|
|
this.showMenu = true;
|
|
|
|
this.showMenu = true;
|
|
|
|
this.$nextTick(
|
|
|
|
this.$nextTick(
|
|
|
|
function() {
|
|
|
|
function() {
|
|
|
|