import{d as f,r as d,o as v,p as c,e as m,f as A,g as t,w as l,aY as r,u as a,E as p,y as C,R as F,S as D,_ as h}from"./index.0308b213.js";const i=n=>(F("data-v-1d318aa8"),n=n(),D(),n),x={class:"content"},y=i(()=>t("p",null,"\u7ECF\u7EAC\u5EA6",-1)),B=i(()=>t("span",null,"\u7EB5:",-1)),S=i(()=>t("span",{style:{"margin-left":"5px"}},"\u6A2A:",-1)),w={style:{"align-items":"start"}},M=i(()=>t("p",null,"\u5730\u5740",-1)),V=f({props:{config:null},emits:["update:config"],setup(n,{emit:E}){const _=n;d("113.23"),d("23.16"),d("\u5E7F\u5DDE\u5E02"),v(()=>{console.log("\u5730\u56FE\u914D\u7F6E\u9879\u51FA\u6765\u4E86!!!!")});const g=()=>{const o=e.value.coordinate.latitude&&e.value.coordinate.longitude,u=e.value.coordinate.address;if(o&&u){p.error("\u7ECF\u7EAC\u5EA6\u548C\u5730\u5740\u53EA\u80FD\u6DFB\u52A0\u4E00\u4E2A");return}if(!o&&!u){p.error("\u8BF7\u586B\u5199\u597D\u7ECF\u7EAC\u5EA6");return}e.value.coordinate.address=u?e.value.coordinate.address:"",e.value.coordinate.latitude=o?String(e.value.coordinate.latitude):"",e.value.coordinate.longitude=o?String(e.value.coordinate.longitude):""};let e=d({coordinate:{longitude:"113.23",latitude:"23.16",address:"\u5E7F\u5DDE\u5E02"}});return c(()=>_.config,o=>{o&&(console.log(o),C(()=>{e.value=o,console.log(e.value)}))},{immediate:!0}),c(e.value,o=>{o&&E("update:config",o)}),(o,u)=>(m(),A("div",x,[t("div",null,[y,t("div",null,[B,l(t("input",{type:"number","onUpdate:modelValue":u[0]||(u[0]=s=>a(e).coordinate.latitude=s)},null,512),[[r,a(e).coordinate.latitude]]),S,l(t("input",{type:"number","onUpdate:modelValue":u[1]||(u[1]=s=>a(e).coordinate.longitude=s)},null,512),[[r,a(e).coordinate.longitude]])])]),t("div",w,[M,l(t("textarea",{name:"",id:"",cols:"25",rows:"8",style:{resize:"none"},"onUpdate:modelValue":u[2]||(u[2]=s=>a(e).coordinate.address=s)},"\u4E0A\u6D77\u5E02",512),[[r,a(e).coordinate.address]])]),t("div",{class:"fr"},[t("button",{onClick:g},"\u786E\u8BA4\u4FEE\u6539")])]))}});const I=h(V,[["__scopeId","data-v-1d318aa8"]]);export{I as default};
