import{R as m,h as p}from"./api.bxrrZdQM.js";import{R as u}from"./RoleUsersStores.D9MWnD_F.js";import{E as _}from"./index.CL7yl-Wb.js";import{a as d,aj as c,J as f,o as i,u as o}from"./vue.D1BjjNmv.js";const $=d({__name:"RoleUsers",setup(R){const r=m(),t=u(),l=(n,e,a)=>{p(r.$state.roleId,{direction:e,movedKeys:a}).then(s=>{r.set_state(s.data),_({message:s.msg,type:"success"})})};return(n,e)=>{const a=c("el-transfer");return i(),f(a,{modelValue:o(t).$state.right_users,"onUpdate:modelValue":e[0]||(e[0]=s=>o(t).$state.right_users=s),filterable:"",titles:["未授权用户","已授权用户"],data:o(t).$state.all_users,props:{key:"id",label:"name"},onChange:l},null,8,["modelValue","data"])}}});export{$ as default};
