import{shallowRef as f,ref as i,watchEffect as u}from"vue";function o(t){const a=f(!1),l=i({});return u(()=>{if(!t.value){a.value=!1,l.value={};return}let e={matchInputWidth:!0,limit:50};t.value&&typeof t.value=="object"&&(e={...e,...t.value}),e.limit<=0&&delete e.limit,a.value=!0,l.value=e}),{showSearch:a,searchConfig:l}}export{o as default};
