import{_ as u,d,bs as i,w as m,x as f,o as c,G as v,l as o,aq as y,bX as q,bw as R}from"./index.js";const V=d({__name:"addr-query",props:{modelValue:{type:String,required:!1},level:{type:Number,required:!1}},emits:["change"],setup(t,{expose:p,emit:s}){const a=i(t,"modelValue"),l=m(null);return f(()=>{a.value&&l.value.initalData(a.value)}),p({initialData:n=>l.value.initalData(n)}),(n,e)=>(c(),v(o(R),{modelValue:o(a),"onUpdate:modelValue":e[0]||(e[0]=r=>y(a)?a.value=r:null),"is-root":"",ref_key:"RemoteSelectRef",ref:l,style:{width:"100%"},api:o(q),"request-prop":"name","response-label-prop":"search_name","response-val-prop":"code",onItemChange:e[1]||(e[1]=r=>s("change",r)),onClear:e[2]||(e[2]=r=>s("change")),"pro-data":()=>({level:t.level||2})},null,8,["modelValue","api","pro-data"]))}});var _=u(V,[["__file","C:/Users/Administrator/Desktop/projects/purchase-vue3/src/components/BasicForm/src/fields/addr-query.vue"]]);export{_ as A};
