import{_ as p,d,aO as f,x as m,y as _,r as h,o,G as C,D as v,c as l,F as b,E as g,C as R,L as k,m as x}from"./index.js";import{h as y}from"./index.5eaa637e.js";const L=["onClick"],E=d({__name:"role-list",props:{currentRole:{type:Object,required:!0}},emits:["changeCurrentRole"],setup(c,{emit:t}){const i=f(),s=m([]);async function u(){const{code:n,data:a,message:r}=await y({size:100});i({code:n,message:r,handler:()=>{s.value=a.list,t("changeCurrentRole",x(s)[0])}})}return _(()=>u()),(n,a)=>{const r=h("ElScrollbar");return o(),C(r,{class:"border-r border-#dcdfe6"},{default:v(()=>[(o(!0),l(b,null,g(s.value,e=>(o(),l("div",{class:R(["px-1 py-0.5 m-1.5 hover:color-blue hover:bg-#f7f7f7 cursor-pointer duration-200",c.currentRole.id===e.id&&"color-blue bg-#f7f7f7"]),key:e.id,onClick:()=>t("changeCurrentRole",e)},k(e.role_name),11,L))),128))]),_:1})}}});var D=p(E,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/interest/processPermission/components/role-list.vue"]]);export{D as default};
