(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2398"],{NFo4:function(t,n,e){"use strict";e.r(n);var i={name:"Index",data:function(){return{}},methods:{init:function(t,n,e){var i=document.querySelector("#contextmenu"),c=document.body.clientHeight-e.clientY;console.log(document.body.clientHeight,e.clientY,c),i.style.top=c<150?e.clientY-120+"px":c>750?e.clientY-170+"px":e.clientY-190+"px",i.style.left=e.clientX-200+"px",document.addEventListener("click",this.foo)},foo:function(){this.$emit("foo")},handleOne:function(){this.$emit("handleOne")},handleTwo:function(){this.$emit("handleTwo")},handleThree:function(){this.$emit("handleThree")}}},c=(e("re+R"),e("KHd+")),o=Object(c.a)(i,function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"contextmenu",attrs:{id:"contextmenu"}},[e("div",{staticClass:"contextmenu__item",on:{click:function(n){t.handleOne()}}},[t._v("菜单一")]),t._v(" "),e("div",{staticClass:"contextmenu__item",on:{click:function(n){t.handleTwo()}}},[t._v("菜单二")]),t._v(" "),e("div",{staticClass:"contextmenu__item",on:{click:function(n){t.handleThree()}}},[t._v("菜单三")])])},[],!1,null,"2dab984f",null);o.options.__file="contextButton.vue";n.default=o.exports},j7vM:function(t,n,e){},"re+R":function(t,n,e){"use strict";var i=e("j7vM");e.n(i).a}}]);