var m=(o,a,r)=>new Promise((i,s)=>{var c=e=>{try{n(r.next(e))}catch(p){s(p)}},t=e=>{try{n(r.throw(e))}catch(p){s(p)}},n=e=>e.done?i(e.value):Promise.resolve(e.value).then(c,t);n((r=r.apply(o,a)).next())});import{d as u,f,e as l,u as d,U as g,a2 as w,ad as D,ag as _}from"./vue-vendor-CxLCUzY4.js";import{u as B,B as h}from"./index-qSr7C5NQ.js";import{_ as $}from"./index-CYriLmQo.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./index-CxQILSKV.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useTimeout-DC8132dd.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./useIntersectionObserver-FVRzwlSd.js";const k=u({name:"tableDrawer",components:{BasicDrawer:h},emits:["success","register"],setup(o,{emit:a}){const r=f(!0),[i,{setDrawerProps:s,closeDrawer:c}]=B(e=>m(this,null,function*(){s({confirmLoading:!1}),r.value=!!(e!=null&&e.isUpdate)})),t=l(()=>d(r)?"编辑角色":"新增角色");function n(){return m(this,null,function*(){try{s({confirmLoading:!0}),c(),a("success")}finally{s({confirmLoading:!1})}})}return{registerDrawer:i,getTitle:t,handleSubmit:n}}});function y(o,a,r,i,s,c){const t=g("BasicDrawer");return w(),D(t,_(o.$attrs,{onRegister:o.registerDrawer,showFooter:"",title:o.getTitle,width:"500px",onOk:o.handleSubmit}),null,16,["onRegister","title","onOk"])}const j=$(k,[["render",y]]);export{j as default};
