import{R as m}from"./RoleDrawerStores.Bmochpay.js";import{R as p}from"./RoleUsersStores.D6nDYbwL.js";import{h as u}from"./api.B3kiuYtw.js";import{E as _}from"./index.CL7yl-Wb.js";import{a as d,aj as f,J as i,o as c,u as o}from"./vue.D1BjjNmv.js";const k=d({__name:"RoleUsers",setup(R){const r=m(),t=p(),l=(n,e,a)=>{u(r.$state.roleId,{direction:e,movedKeys:a}).then(s=>{r.set_state(s.data),_({message:s.msg,type:"success"})})};return(n,e)=>{const a=f("el-transfer");return c(),i(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{k as default};
