import{o as e,a as t,f as n,w as o,g as s,t as a,u as i,h as l,e as c,F as p,i as r,r as d,P as u}from"./vendor-edc0678f.js";import{_ as v,b as y}from"./index-4c745ab9.js";const h={class:"popup"},f={key:1},m=["innerHTML"],w=v({__name:"index",props:{show:{type:Boolean,default:!1},close:{type:Boolean,default:!0},title:{type:String},content:{type:Object},direction:{type:String,default:"center"}},emits:["handelClose"],setup(v,{emit:w}){let k=v,_=w;const g=()=>{_("handelClose",!1)};return(w,_)=>{const C=y,b=u;return e(),t("div",null,[n(b,{show:i(k).show,"onUpdate:show":_[0]||(_[0]=e=>i(k).show=e),round:"","transition-appear":!0,onClickOverlay:g,position:v.direction},{default:o(()=>[s("div",h,[s("p",null,a(i(k).title),1),i(k).close?(e(),l(C,{key:0,class:"closeSvg",name:"guanbi",onClick:g})):c("",!0),i(k).content?(e(),t("div",f,[(e(!0),t(p,null,r(v.content,(n,o)=>(e(),t("div",{key:o,class:"popupContent"},[n.content?(e(),t("div",{key:0,class:"content1",innerHTML:n.content},null,8,m)):c("",!0)]))),128))])):c("",!0),d(w.$slots,"content2",{},void 0,!0)])]),_:3},8,["show","position"])])}}},[["__scopeId","data-v-bf61d259"]]);export{w as P};
