Files
qhmes/deploy-qhmes/frontend/js/Google-Dvh-u3E_.js
2026-05-15 11:34:12 +08:00

2 lines
1.1 KiB
Java

var l=(t,s,e)=>new Promise((a,n)=>{var r=o=>{try{p(e.next(o))}catch(c){n(c)}},i=o=>{try{p(e.throw(o))}catch(c){n(c)}},p=o=>o.done?a(o.value):Promise.resolve(o.value).then(r,i);p((e=e.apply(t,s)).next())});import{d as m,o as f,f as d,n as g,u,ar as w,as as h,aB as _}from"./vue-vendor-C7Zq48Yl.js";import{useScript as y}from"./useScript-DHPKH1A9.js";import{d as M}from"./index-BI6CMai0.js";import"./antd-vue-vendor-BPnV8VqP.js";import"./vxe-table-vendor-B88kchpX.js";const k="https://maps.googleapis.com/maps/api/js?key=AIzaSyBQWrGwj4gAzKndcbwD5favT9K0wgty_0&signed_in=true",S=m({name:"GoogleMap",props:{width:{type:String,default:"100%"},height:{type:String,default:"calc(100vh - 78px)"}},setup(){const t=d(null),{toPromise:s}=y({src:k});function e(){return l(this,null,function*(){yield s(),yield g();const a=u(t);if(!a)return;const n=window.google,r={lat:116.404,lng:39.915},i=new n.maps.Map(a,{zoom:4,center:r});new n.maps.Marker({position:r,map:i,title:"Hello World!"})})}return f(()=>{e()}),{wrapRef:t}}});function z(t,s,e,a,n,r){return h(),w("div",{ref:"wrapRef",style:_({height:t.height,width:t.width})},null,4)}const R=M(S,[["render",z]]);export{R as default};