import{d as m,V as h,r as a,u as _,h as g,o as v,i as k,j as x,dg as y,ac as b}from"./index-9PRMimni.js";const R=m({__name:"EmptyItem",props:{data:{type:Object,required:!0}},setup(s){const c=s,{t:n}=h(),u=[{label:n("hsqe.planner.assignedReport"),key:"assignedReport"},{label:n("hsqe.planner.edit"),key:"edit"},{label:n("hsqe.planner.extension"),key:"extension"},{label:n("hsqe.planner.cancel"),key:"cancel"},{label:n("hsqe.planner.auditLog"),key:"auditLog"}],t=a(!1),r=_(),l=a(0),o=a(0);function i(e){t.value=!1,r.info(`${e}-这个是你点击的菜单吧？`)}function p(e){e.preventDefault(),console.log("props",c.data),t.value=!1,b().then(()=>{t.value=!0,l.value=e.clientX,o.value=e.clientY})}function d(){t.value=!1}return(e,q)=>{const f=y;return v(),g("div",null,[k("div",{class:"w-full h-full bg-red-400 block",onContextmenu:p},null,32),x(f,{placement:"bottom-start",onSelect:i,trigger:"manual",x:l.value,y:o.value,options:u,show:t.value,"on-clickoutside":d},null,8,["x","y","show"])])}}});export{R as default};
