var t=function(){function t(t){this.t=[],this.i=[],this.h=!1,this.s={x:0,y:0},this.o=document.createElement("div"),this.u=t;var i=this.o,h=this.t;i.style.minWidth="100px",i.style.minHeight="200px",i.style.background="white",i.style.position="fixed",h.push({title:"右键菜单_1",v:function(t){}}),h.push({title:"右键菜单_2",v:function(t){alert(2)}})}return t.prototype.l=function(){for(var t=this.t,i=this.o,h=i.lastElementChild;h;)i.removeChild(h),h=i.lastElementChild;for(var n=0;n<t.length;n++){var s=document.createElement("div"),a=t[n];s.innerHTML=a.title,i.appendChild(s)}},t.prototype.open=function(t){var i=this.o,h=this.u,n=t.pageX,s=t.pageY;this.s={x:n,y:s},i.style.left=n+"px",i.style.top=s+"px",this.l(),h.p.appendChild(i)},t.prototype.close=function(){var t=this.o;this.u;t.remove()},t}();export default t;