1 |
- var c=(n,p,r)=>new Promise((a,s)=>{var l=t=>{try{e(r.next(t))}catch(o){s(o)}},i=t=>{try{e(r.throw(t))}catch(o){s(o)}},e=t=>t.done?a(t.value):Promise.resolve(t.value).then(l,i);e((r=r.apply(n,p)).next())});import{u as h,__tla as d}from"./useScript-ab5d4580.js";import{d as _,r as m,n as f,p as w,u as y,_ as g,o as v,l as B,q as M,__tla as x}from"./index-b5895273.js";let u,F=Promise.all([(()=>{try{return d}catch(n){}})(),(()=>{try{return x}catch(n){}})()]).then(()=>c(void 0,null,function*(){const n="https://api.map.baidu.com/getscript?v=3.0&ak=OaBvYmKX3pjF7YFUFeeBCeGdy9Zp7xB2&services=&t=20210201100830&s=1",p=_({name:"BaiduMap",props:{width:{type:String,default:"100%"},height:{type:String,default:"calc(100vh - 78px)"}},setup(){const a=m(null),{toPromise:s}=h({src:n});function l(){return c(this,null,function*(){yield s(),yield w();const i=y(a);if(!i)return;const e=window.BMap,t=new e.Map(i),o=new e.Point(116.404,39.915);t.centerAndZoom(o,15),t.enableScrollWheelZoom(!0)})}return f(()=>{l()}),{wrapRef:a}}});function r(a,s,l,i,e,t){return v(),B("div",{ref:"wrapRef",style:M({height:a.height,width:a.width})},null,4)}u=g(p,[["render",r]])}));export{F as __tla,u as default};
|