Files
qhmes/web-dist/js/Google-qYQXjRb1.js
2026-06-16 18:19:57 +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{useScript as m}from"./useScript-C72wCufT.js";import{e as f,o as g,r as u,n as d,u as w,C as h,z as _,T as y}from"./vue-vendor-DNhG1Cve.js";import{au as M}from"./index-X7Y8jykP.js";import"./emoji-mart-vue-fast-R0uJEDq-.js";const k="https://maps.googleapis.com/maps/api/js?key=AIzaSyBQWrGwj4gAzKndcbwD5favT9K0wgty_0&signed_in=true",z=f({name:"GoogleMap",props:{width:{type:String,default:"100%"},height:{type:String,default:"calc(100vh - 78px)"}},setup(){const t=u(null),{toPromise:s}=m({src:k});function e(){return l(this,null,function*(){yield s(),yield d();const a=w(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 g(()=>{e()}),{wrapRef:t}}});function S(t,s,e,a,n,r){return _(),h("div",{ref:"wrapRef",style:y({height:t.height,width:t.width})},null,4)}const G=M(z,[["render",S]]);export{G as default};