import{_ as e,am as t,o as i,a as n,w as o,f as s,j as a,k as d,n as h,l as p}from"./index-BoIbtAZO.js";const l=e({name:"custom-popup",data:()=>({winWidth:0,winHeight:0,winTop:0,contentHeight:30}),props:{visible:{type:Boolean,require:!0,default:!1},hide:{type:Number,default:0},header:{type:Boolean,default:!0},contentH:{type:Number,default:30}},created(){var e=this;this.contentH&&(this.contentHeight=this.contentH),t({success:function(t){0===e.hide?(e.winWidth=t.screenWidth,e.winHeight=t.screenHeight,e.winTop=0):(e.winWidth=t.windowWidth,e.winHeight=t.windowHeight,e.winTop=t.windowTop)}})},methods:{close(e){this.$emit("onClose")}}},[["render",function(e,t,l,c,r,u){const w=p;return l.visible?(i(),n(w,{key:0,class:"tianditu-popop",style:h({height:r.winHeight+"px",width:r.winWidth+"px",top:r.winTop+"px"})},{default:o((()=>[l.header?(i(),n(w,{key:0,class:"popup-header",onClick:u.close},{default:o((()=>[s(e.$slots,"header",{},void 0,!0)])),_:3},8,["onClick"])):a("",!0),d(w,{style:h({minHeight:r.contentHeight+"vh"}),class:"popup-content fadeInUp animated"},{default:o((()=>[s(e.$slots,"default",{},void 0,!0)])),_:3},8,["style"])])),_:3},8,["style"])):a("",!0)}],["__scopeId","data-v-ad9fd3a8"]]);export{l as _};
