2 lines
4.2 KiB
Java
2 lines
4.2 KiB
Java
import f from"./BasicTable-C6eG0bgK.js";import b from"./TableAction-BiXnWkvt.js";import"./TableImg.vue_vue_type_style_index_0_lang-65ZOQtFn.js";import{u as h}from"./useTable-DbHE4FHE.js";import{c as g}from"./system-nmurLO6d.js";import"./index-D9GWo192.js";import{R as C,s as T,c as w}from"./RoleDrawer-EiutnVVg.js";import{a as _}from"./useDrawer-BDPywy9W.js";import{e as R,C as D,z as S,f as i,A as n,K as e,E as B}from"./vue-vendor-DNhG1Cve.js";import{au as k}from"./index-X7Y8jykP.js";import"./BasicTable.vue_vue_type_style_index_0_lang-B9DxrWas.js";import"./BasicForm-ClUSoD_-.js";import"./helper-DcLcf4v6.js";import"./index-BzChaRPg.js";import"./useAppInject-DPZGPcR3.js";import"./emoji-mart-vue-fast-R0uJEDq-.js";import"./BasicForm.vue_vue_type_style_index_0_lang-B29PWQy0.js";import"./index-DO7ZhK45.js";import"./index-ByCwbQDV.js";import"./index-Upeu4GGa.js";import"./index-C4wWpZeQ.js";import"./useTimeout-D5AmIBZw.js";import"./index-M9QP6cvf.js";import"./Skeleton-CimgOdM7.js";import"./useScrollTo-0FPEw5-K.js";import"./useIntersectionObserver-BGOgyKyu.js";import"./index-saD4h7VJ.js";import"./useBreakpoint-DXhPW7nV.js";import"./useEventListener-BRXjwk7A.js";import"./breakpointEnum-BhAg6bcX.js";import"./uniqBy--vsL0WVB.js";import"./index-BDvqZ5j4.js";import"./BasicModal-xH56XuRZ.js";import"./ModalHeader-Sr8KwhJJ.js";import"./useWindowSizeFn-C-0M9_Ul.js";import"./index-CuWaQdlK.js";import"./useForm-D61zovon.js";import"./injectionKey-DPVn4AgL.js";import"./index-DSsDi_fL.js";import"./Group-UHkub2tu.js";import"./Checkbox-Dbxs4we4.js";import"./index-BuONesFs.js";import"./FormOutlined-Y84itqS0.js";import"./useTableContext-CncNVXgp.js";import"./index-DTjkSGYl.js";import"./eagerComputed-BTlOruLW.js";import"./fromPairs-Dx9PT-t0.js";import"./useMaxLevel-DE205ncc.js";import"./index-CfNJyBRj.js";import"./dropdown-jkliuVyN.js";import"./index-DfHu-LAS.js";import"./Group-DBzJABA_.js";import"./RadioButton-DRBix2Fq.js";import"./index-C7ckZv9Z.js";import"./DirectoryTree-nk_YTTIy.js";import"./FolderOpenOutlined-SzIPA7z0.js";import"./index-Cl-8Hzo4.js";import"./scrollTo-D49dA-9c.js";import"./operationUnit-vCu2co3e.js";import"./index-C69VKHba.js";import"./index-DklMb9Qc.js";import"./UpOutlined-B1UMbtrP.js";import"./index-DsixALRt.js";import"./dayjs-jnKD3YGS.js";import"./index-aCD42OrZ.js";import"./quarterOfYear-BU2sPnff.js";import"./index-J2mOtM3w.js";import"./dayjs-ALi1pEeb.js";import"./clickOutside-DHfwTU6R.js";import"./onMountedOrActivated-DhSdLlqP.js";import"./throttle-De_jAmBh.js";import"./uuid-CODpppBC.js";import"./sortable.esm-DJNoJSdJ.js";import"./RedoOutlined-Cq2g4Slp.js";import"./index-CeNCCWzL.js";import"./TableAction.vue_vue_type_style_index_0_lang-BIWZ0bGo.js";import"./index-fAAIzD3j.js";import"./index-DfX9t4DO.js";import"./isNumeric-DjvBa-1E.js";import"./ArrowLeftOutlined-B3JgaWh-.js";import"./index-DZJwICFr.js";import"./index-Bzmv9Ie7.js";import"./bem-CTsBfXqP.js";import"./props-Cc-8EPhZ.js";import"./useContextMenu-BncvQCmV.js";import"./difference-CGvbIcA7.js";const y=R({name:"system-demorole",components:{BasicTable:f,RoleDrawer:C,TableAction:b},setup(){const[o,{openDrawer:t}]=_(),[a,{reload:s}]=h({title:"角色列表",api:g,columns:w,formConfig:{labelWidth:120,schemas:T},useSearchForm:!0,showTableSetting:!0,bordered:!0,showIndexColumn:!1,actionColumn:{width:80,title:"操作",dataIndex:"action",slots:{customRender:"action"},fixed:void 0}});function l(){t(!0,{isUpdate:!1})}function c(r){t(!0,{record:r,isUpdate:!0})}function m(r){}function p(){s()}return{registerTable:a,registerDrawer:o,handleCreate:l,handleEdit:c,handleDelete:m,handleSuccess:p}}});function A(o,t,a,s,l,c){const m=e("a-button"),p=e("TableAction"),r=e("BasicTable"),u=e("RoleDrawer");return S(),D("div",null,[i(r,{onRegister:o.registerTable},{tableTitle:n(()=>[i(m,{type:"primary",onClick:o.handleCreate},{default:n(()=>[...t[0]||(t[0]=[B(" 新增角色 ",-1)])]),_:1},8,["onClick"])]),action:n(({record:d})=>[i(p,{actions:[{icon:"clarity:note-edit-line",onClick:o.handleEdit.bind(null,d)},{icon:"ant-design:delete-outlined",color:"error",popConfirm:{title:"是否确认删除",confirm:o.handleDelete.bind(null,d)}}]},null,8,["actions"])]),_:1},8,["onRegister"]),i(u,{onRegister:o.registerDrawer,onSuccess:o.handleSuccess},null,8,["onRegister","onSuccess"])])}const at=k(y,[["render",A]]);export{at as default};
|