drawer-U-H21ptE.js 1.3 KB

1
  1. 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,ag as g,aB as w,ar as D,aE as B}from"./vue-vendor-Be68asQ6.js";import{B as _,u as h}from"./index-swd_UZfO.js";import{a as $}from"./index-BFfnEkVs.js";import"./antd-vue-vendor-DcqS7Wvq.js";import"./index-BZ_MXCtW.js";import"./index-BIPzXG41.js";import"./index-CXEQnmRq.js";import"./useTimeout-Ca5eqGu-.js";import"./vxe-table-vendor-DHF2TRpV.js";import"./useIntersectionObserver-Bl62RIZ4.js";const k=u({name:"tableDrawer",components:{BasicDrawer:_},emits:["success","register"],setup(o,{emit:a}){const r=f(!0),[i,{setDrawerProps:s,closeDrawer:c}]=h(e=>m(null,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 D(),w(t,B(o.$attrs,{onRegister:o.registerDrawer,showFooter:"",title:o.getTitle,width:"500px",onOk:o.handleSubmit}),null,16,["onRegister","title","onOk"])}const F=$(k,[["render",y]]);export{F as default};