Rodney Chen
2024-05-09 a340c8f451865656db12fa50fe9cad888f65dd5b
1
var l=(o,p,e)=>new Promise((a,s)=>{var i=t=>{try{r(e.next(t))}catch(c){s(c)}},n=t=>{try{r(e.throw(t))}catch(c){s(c)}},r=t=>t.done?a(t.value):Promise.resolve(t.value).then(i,n);r((e=e.apply(o,p)).next())});import{u as d}from"./useScript-67586b5e.js";import{d as m,k as u,o as h,q as w,u as _,_ as y,$ as g,af as M}from"./vue-1631514e.js";import{_ as b,__tla as v}from"./index-f0df2f76.js";import"./antd-057b41b1.js";let f,k=Promise.all([(()=>{try{return v}catch(o){}})()]).then(()=>l(void 0,null,function*(){const o="https://webapi.amap.com/maps?v=2.0&key=d7bb98e7185300250dd5f918c12f484b",p=m({name:"AMap",props:{width:{type:String,default:"100%"},height:{type:String,default:"calc(100vh - 78px)"}},setup(){const a=u(null),{toPromise:s}=d({src:o});function i(){return l(this,null,function*(){yield s(),yield w();const n=_(a);if(!n)return;const r=window.AMap;new r.Map(n,{zoom:11,center:[116.397428,39.90923],viewMode:"3D"})})}return h(()=>{i()}),{wrapRef:a}}});function e(a,s,i,n,r,t){return y(),g("div",{ref:"wrapRef",style:M({height:a.height,width:a.width})},null,4)}f=b(p,[["render",e]])}));export{k as __tla,f as default};