import{_ as e}from"./index-B5zmPfFG.js";import{q as a,r as l,c as r,D as s,v as o,u as t,h as u}from"./vendor-core-Di0OO4oJ.js";const m=a({__name:"role-search",props:{modelValue:{}},emits:["update:modelValue","search","reset"],setup(a,{emit:m}){const n=a,d=m,c=l(),p=r({get:()=>n.modelValue,set:e=>d("update:modelValue",e)}),i={};l([{label:"启用",value:!0},{label:"禁用",value:!1}]);const v=r(()=>[{label:"关键词",key:"keyword",type:"input",placeholder:"请输入角色名称",clearable:!0}]),h=()=>{var e;null==(e=c.value)||e.reset(),d("reset")},V=()=>{d("search",p.value)};return(a,l)=>{const r=e;return o(),s(r,{ref_key:"searchBarRef",ref:c,modelValue:t(p),"onUpdate:modelValue":l[0]||(l[0]=e=>u(p)?p.value=e:null),items:t(v),rules:i,onReset:h,onSearch:V},null,8,["modelValue","items"])}}});export{m as _};
