Google-edd376e4.js
1.16 KB
var c=(e,s,t)=>new Promise((n,a)=>{var r=o=>{try{p(t.next(o))}catch(l){a(l)}},i=o=>{try{p(t.throw(o))}catch(l){a(l)}},p=o=>o.done?n(o.value):Promise.resolve(o.value).then(r,i);p((t=t.apply(e,s)).next())});import{d as m,k as f,o as d,q as g,u,_ as w,$ as h,ag as _}from"./vue-5a35c3f5.js";import{u as y}from"./useScript-d37a3874.js";import{_ as k}from"./index.js";import"./antd-6b087f69.js";const M="https://maps.googleapis.com/maps/api/js?key=AIzaSyBQWrGwj4gAzKndcbwD5favT9K0wgty_0&signed_in=true",v=m({name:"GoogleMap",props:{width:{type:String,default:"100%"},height:{type:String,default:"calc(100vh - 78px)"}},setup(){const e=f(null),{toPromise:s}=y({src:M});function t(){return c(this,null,function*(){yield s(),yield g();const n=u(e);if(!n)return;const a=window.google,r={lat:116.404,lng:39.915},i=new a.maps.Map(n,{zoom:4,center:r});new a.maps.Marker({position:r,map:i,title:"Hello World!"})})}return d(()=>{t()}),{wrapRef:e}}});function S(e,s,t,n,a,r){return w(),h("div",{ref:"wrapRef",style:_({height:e.height,width:e.width})},null,4)}const B=k(v,[["render",S],["__file","E:/allcode/erp/test7901/order-erp-front/src/views/demo/charts/map/Google.vue"]]);export{B as default};