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-CJ4Xt1FM.js";import{_ as $}from"./index-Cy4uayzW.js";import"./antd-vue-vendor-CahNzUUa.js";import"./index-Bdn0r8CG.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useTimeout-gJpgadD6.js";import"./vxe-table-vendor-Cdi8WfTx.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};
