/* empty css                  *//* empty css               *//* empty css                  *//* empty css                  *//* empty css                             *//* empty css                 */import{d as y,c as o,a as c,a5 as i,b as n,x as m,f as v,w as r,ak as w,F as u,h as p,ai as x,o as l,E as b,u as g,s as E,t as B,X as D,W as S,_ as R}from"./index-hZHbf6Qq.js";/* empty css                                                              */const U={class:"search-bar"},Y={class:"search-row"},C={key:0,class:"search-row"},I={class:"label"},N=y({__name:"index",props:{form:{},filters:{default:()=>[]},showDateRange:{type:Boolean,default:!0}},setup(e){return(d,s)=>{const f=b,h=v,_=x,V=D,k=S;return l(),o("div",U,[c("div",Y,[n(h,{modelValue:e.form.keyword,"onUpdate:modelValue":s[0]||(s[0]=a=>e.form.keyword=a),placeholder:"搜索",clearable:"",style:{width:"200px"}},{prefix:r(()=>[n(f,null,{default:r(()=>[n(g(E))]),_:1})]),_:1},8,["modelValue"]),e.showDateRange?(l(),m(_,{key:0,modelValue:e.form.dateRange,"onUpdate:modelValue":s[1]||(s[1]=a=>e.form.dateRange=a),type:"daterange","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"YYYY-MM-DD",style:{width:"260px"}},null,8,["modelValue"])):i("",!0)]),e.filters.length>0||d.$slots.extra?(l(),o("div",C,[(l(!0),o(u,null,p(e.filters,a=>(l(),o("div",{class:"filter-item",key:a.field},[c("span",I,B(a.label),1),n(k,{modelValue:e.form[a.field],"onUpdate:modelValue":t=>e.form[a.field]=t,placeholder:"请选择",clearable:"",style:{width:"100px"}},{default:r(()=>[(l(!0),o(u,null,p(a.options,t=>(l(),m(V,{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]))),128)),w(d.$slots,"extra",{},void 0,!0)])):i("",!0)])}}}),j=R(N,[["__scopeId","data-v-1910e0d0"]]);export{j as S};
