import{d as P,o as A,r as N,p as V,c as n,e as s,f as c,h as t,i as u,u as d,g as m,F as g,j as C,m as a,y as $,_ as j}from"./index.0308b213.js";const I=a("\u5426"),L=a("\u662F"),M=a("\u5206\u949F\u63A5\u5355 "),q={style:{"margin-top":"10px",display:"flex","align-items":"center"}},z=a("\u8DD1\u817F\u7C7B\u578B "),G=a("\u5220\u9664"),H={style:{"margin-top":"10px",display:"flex","align-items":"center"}},J=a("\u8DD1\u817F\u63CF\u8FF0 "),K=a("\u5220\u9664"),O=P({props:{config:null},emits:["update:config"],setup(k,{emit:h}){const v=k;A(()=>{console.log("\u5730\u56FE\u914D\u7F6E\u9879\u51FA\u6765\u4E86!!!!")});let o=N({coordinate:{map:1,time:1,type:[{id:1,title:"\u5E2E\u6211\u9001",interlinkage:""},{id:2,title:"\u5E2E\u6211\u53D6",interlinkage:""},{id:3,title:"1\u5BF91\u76F4\u9001",interlinkage:""},{id:4,title:"\u5E2E\u6211\u4E70",interlinkage:""}],describe:[{id:1,title:"\u53D6\u5FEB\u9012"},{id:2,title:"\u9001\u9C9C\u82B1"},{id:3,title:"\u9001\u751F\u9C9C"},{id:4,title:"\u9001\u6570\u7801"}]}});V(()=>v.config,e=>{e&&(console.log(e),$(()=>{o.value=e,console.log(o.value)}))},{immediate:!0}),V(o.value,e=>{e&&h("update:config",e)});const E=e=>{o.value.coordinate.type.splice(e,1)},b=e=>{o.value.coordinate.describe.splice(e,1)},B=()=>{const e={id:Date.now(),title:"",interlinkage:""};o.value.coordinate.type.push(e)},D=()=>{const e={id:Date.now(),title:""};o.value.coordinate.describe.push(e)};return(e,r)=>{const f=n("el-radio"),U=n("el-radio-group"),w=n("el-form-item"),T=n("el-input-number"),y=n("CirclePlus"),x=n("el-icon"),p=n("el-input"),F=n("el-button");return s(),c(g,null,[t(w,{label:"\u662F\u5426\u542F\u7528\u5730\u56FE"},{default:u(()=>[t(U,{modelValue:d(o).coordinate.map,"onUpdate:modelValue":r[0]||(r[0]=l=>d(o).coordinate.map=l)},{default:u(()=>[t(f,{label:0},{default:u(()=>[I]),_:1}),t(f,{label:1},{default:u(()=>[L]),_:1})]),_:1},8,["modelValue"])]),_:1}),m("div",null,[t(T,{modelValue:d(o).coordinate.time,"onUpdate:modelValue":r[1]||(r[1]=l=>d(o).coordinate.time=l),min:1,max:100},null,8,["modelValue"]),M]),m("div",q,[z,t(x,{onClick:B,style:{cursor:"pointer","margin-left":"10px"}},{default:u(()=>[t(y)]),_:1})]),(s(!0),c(g,null,C(d(o).coordinate.type,(l,_)=>(s(),c("div",{key:l.id,style:{display:"flex","margin-top":"10px"}},[t(p,{type:"text",modelValue:l.title,"onUpdate:modelValue":i=>l.title=i,style:{"margin-right":"10px",width:"150px"}},null,8,["modelValue","onUpdate:modelValue"]),t(p,{type:"text",modelValue:l.interlinkage,"onUpdate:modelValue":i=>l.interlinkage=i,style:{"margin-right":"10px"},placeholder:"\u70B9\u51FB\u53BB\u4E0B\u5355\u8DF3\u8F6C\u94FE\u63A5"},null,8,["modelValue","onUpdate:modelValue"]),t(F,{type:"danger",plain:"",onClick:i=>E(_)},{default:u(()=>[G]),_:2},1032,["onClick"])]))),128)),m("div",H,[J,t(x,{onClick:D,style:{cursor:"pointer","margin-left":"10px"}},{default:u(()=>[t(y)]),_:1})]),(s(!0),c(g,null,C(d(o).coordinate.describe,(l,_)=>(s(),c("div",{key:l.id,style:{display:"flex","margin-top":"10px"}},[t(p,{type:"text",modelValue:l.title,"onUpdate:modelValue":i=>l.title=i,style:{"margin-right":"10px"}},null,8,["modelValue","onUpdate:modelValue"]),t(F,{type:"danger",plain:"",onClick:i=>b(_)},{default:u(()=>[K]),_:2},1032,["onClick"])]))),128))],64)}}});const R=j(O,[["__scopeId","data-v-dc16e961"]]);export{R as default};
