Gaode-dfc77056.js 1.07 KB
var c=(e,n,t)=>new Promise((o,r)=>{var i=a=>{try{s(t.next(a))}catch(p){r(p)}},d=a=>{try{s(t.throw(a))}catch(p){r(p)}},s=a=>a.done?o(a.value):Promise.resolve(a.value).then(i,d);s((t=t.apply(e,n)).next())});import{d as f,k as m,o as l,q as u,u as w,_ as h,$ as _,ag as M}from"./vue-5a35c3f5.js";import{u as g}from"./useScript-d37a3874.js";import{_ as v}from"./index.js";import"./antd-6b087f69.js";const y="https://webapi.amap.com/maps?v=2.0&key=d7bb98e7185300250dd5f918c12f484b",k=f({name:"AMap",props:{width:{type:String,default:"100%"},height:{type:String,default:"calc(100vh - 78px)"}},setup(){const e=m(null),{toPromise:n}=g({src:y});function t(){return c(this,null,function*(){yield n(),yield u();const o=w(e);if(!o)return;const r=window.AMap;new r.Map(o,{zoom:11,center:[116.397428,39.90923],viewMode:"3D"})})}return l(()=>{t()}),{wrapRef:e}}});function A(e,n,t,o,r,i){return h(),_("div",{ref:"wrapRef",style:M({height:e.height,width:e.width})},null,4)}const R=v(k,[["render",A],["__file","E:/allcode/erp/test7901/order-erp-front/src/views/demo/charts/map/Gaode.vue"]]);export{R as default};