import b from"./BaseConfig.0466b450.js";import{d as x,r as h,p as m,c as s,e as _,f as c,h as o,i as u,u as l,A as B,m as p,g as k,y as A}from"./index.0308b213.js";const D={class:"location-search-config"},v=p("\u5426"),y=p("\u662F"),N={key:0},U=k("p",null,"\u672C\u7EC4\u4EF6\u53EA\u5728diy\u9875\u9762\u663E\u793A \u5728\u9996\u9875\u4E0D\u663E\u793A",-1),j=x({props:{config:null},emits:["update:config"],setup(C,{emit:f}){const F=C;let e=h({placeholder:"",status:0,textColor:"#C6C6C6",bgColor:"#FFFFFF"});return m(()=>F.config,t=>{t&&A(()=>{e.value.placeholder=t.placeholder,e.value.status=t.status||0,e.value.textColor=t.textColor||"#C6C6C6",e.value.bgColor=t.bgColor||"#FFFFFF"})},{immediate:!0}),m(e.value,t=>{f("update:config",t)}),(t,a)=>{const r=s("el-radio"),V=s("el-radio-group"),d=s("el-form-item"),g=s("el-input"),i=s("el-color-picker"),E=s("el-form");return _(),c("div",D,[o(b,{title:"\u641C\u7D22\u6846",desc:"\u7528\u4E8E\u641C\u7D22\u5E97\u94FA\u4FE1\u606F, \u5904\u4E8E\u9875\u9762\u7684\u6700\u9876\u90E8"},{default:u(()=>[o(E,null,{default:u(()=>[o(d,{label:"\u662F\u5426\u542F\u7528diy\u641C\u7D22\u6846"},{default:u(()=>[o(V,{modelValue:l(e).status,"onUpdate:modelValue":a[0]||(a[0]=n=>l(e).status=n)},{default:u(()=>[o(r,{label:0},{default:u(()=>[v]),_:1}),o(r,{label:1},{default:u(()=>[y]),_:1})]),_:1},8,["modelValue"])]),_:1}),+l(e).status==1?(_(),c("div",N,[o(d,{label:"\u641C\u7D22\u6846\u63D0\u793A\u5185\u5BB9"},{default:u(()=>[o(g,{modelValue:l(e).placeholder,"onUpdate:modelValue":a[1]||(a[1]=n=>l(e).placeholder=n)},null,8,["modelValue"])]),_:1}),o(d,{label:"\u6587\u5B57\u989C\u8272"},{default:u(()=>[o(i,{modelValue:l(e).textColor,"onUpdate:modelValue":a[2]||(a[2]=n=>l(e).textColor=n)},null,8,["modelValue"])]),_:1}),o(d,{label:"\u80CC\u666F\u989C\u8272"},{default:u(()=>[o(i,{modelValue:l(e).bgColor,"onUpdate:modelValue":a[3]||(a[3]=n=>l(e).bgColor=n)},null,8,["modelValue"])]),_:1}),U])):B("",!0)]),_:1})]),_:1})])}}});export{j as _};
