import{d as x,a as v,g as a,z as i,k as r,w as t,e,c as T,F as C,y as F,l as d,f as B,t as f,O as N,s as S,_ as g}from"./index-CUnFTKV2.js";import{T as K}from"./task-DlYETVMU.js";const L=x({__name:"TaskSearchForm",emits:["search","reset"],setup(U,{emit:y}){const l=v({keyword:"",type:void 0}),m=y,c=()=>{m("search",{...l})},k=()=>{l.keyword="",l.type=void 0,m("reset")};return(z,o)=>{const b=a("el-option"),h=a("el-select"),s=a("el-form-item"),w=a("el-input"),_=a("el-icon"),u=a("el-button"),V=a("el-form");return r(),i(V,{model:l,inline:"",class:"search-form"},{default:t(()=>[e(s,{label:"任务分类"},{default:t(()=>[e(h,{modelValue:l.type,"onUpdate:modelValue":o[0]||(o[0]=n=>l.type=n),placeholder:"全部分类",clearable:"",style:{width:"140px"}},{default:t(()=>[(r(!0),T(C,null,F(d(K),(n,p)=>(r(),i(b,{key:p,label:n,value:Number(p)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(s,{label:"关键词"},{default:t(()=>[e(w,{modelValue:l.keyword,"onUpdate:modelValue":o[1]||(o[1]=n=>l.keyword=n),placeholder:"请输入任务标题",clearable:"",style:{width:"200px"},onKeyup:B(c,["enter"])},null,8,["modelValue"])]),_:1}),e(s,null,{default:t(()=>[e(u,{type:"primary",onClick:c},{default:t(()=>[e(_,null,{default:t(()=>[e(d(N))]),_:1}),o[2]||(o[2]=f("搜索 ",-1))]),_:1}),e(u,{onClick:k},{default:t(()=>[e(_,null,{default:t(()=>[e(d(S))]),_:1}),o[3]||(o[3]=f("重置 ",-1))]),_:1})]),_:1})]),_:1},8,["model"])}}}),O=g(L,[["__scopeId","data-v-cb826775"]]);export{O as default};
