text: import{B as b}from"./TableImg.513742d5.js";import{T as j}from"./BasicForm.0ba2e15f.js";import{u as f}from"./useTable.6e5baa13.js";import{d as x}from"./system.a847d282.js";import{u as h}from"./index.b78cb146.js";import{M as C,c as g,s as T}from"./MenuDrawer.c12a616b.js";import{_ as w}from"./index.e84e956c.js";import{A as _,a0 as n,B as D,D as S,w as t,a6 as d,$ as F,ae as B}from"./vendor.5879c5ca.js";/* empty css                *//* empty css              */import"./useForm.696aa965.js";import"./index.ea14bdae.js";/* empty css                *//* empty css                */import"./useWindowSizeFn.6a6adedd.js";import"./useContentViewHeight.ccc8749b.js";/* empty css                *//* empty css                *//* empty css               */import"./uuid.2b29000c.js";import"./index.c505e96f.js";/* empty css               */import"./useSortable.a10c06e7.js";/* empty css                *//* empty css                *//* empty css               *//* empty css               */import"./index.8b70aabd.js";/* empty css                *//* empty css                *//* empty css                */import"./download.e6dbd100.js";import"./base64Conver.bb012c73.js";import"./index.e83a4b09.js";/* empty css               */const M=_({name:"MenuManagement",components:{BasicTable:b,MenuDrawer:C,TableAction:j},setup(){const[e,{openDrawer:s}]=h(),[u,{reload:m,expandAll:l}]=f({title:"\u83DC\u5355\u5217\u8868",api:x,columns:g,formConfig:{labelWidth:120,schemas:T},isTreeTable:!0,pagination:!1,striped:!1,useSearchForm:!0,showTableSetting:!0,bordered:!0,showIndexColumn:!1,canResize:!1,actionColumn:{width:80,title:"\u64CD\u4F5C",dataIndex:"action",slots:{customRender:"action"},fixed:void 0}});function p(){s(!0,{isUpdate:!1})}function i(o){s(!0,{record:o,isUpdate:!0})}function a(o){console.log(o)}function r(){m()}function c(){F(l)}return{registerTable:u,registerDrawer:e,handleCreate:p,handleEdit:i,handleDelete:a,handleSuccess:r,onFetchSuccess:c}}}),k=B(" \u65B0\u589E\u83DC\u5355 ");function v(e,s,u,m,l,p){const i=n("a-button"),a=n("TableAction"),r=n("BasicTable"),c=n("MenuDrawer");return D(),S("div",null,[t(r,{onRegister:e.registerTable,onFetchSuccess:e.onFetchSuccess},{toolbar:d(()=>[t(i,{type:"primary",onClick:e.handleCreate},{default:d(()=>[k]),_:1},8,["onClick"])]),action:d(({record:o})=>[t(a,{actions:[{icon:"clarity:note-edit-line",onClick:e.handleEdit.bind(null,o)},{icon:"ant-design:delete-outlined",color:"error",popConfirm:{title:"\u662F\u5426\u786E\u8BA4\u5220\u9664",confirm:e.handleDelete.bind(null,o)}}]},null,8,["actions"])]),_:1},8,["onRegister","onFetchSuccess"]),t(c,{onRegister:e.registerDrawer,onSuccess:e.handleSuccess},null,8,["onRegister","onSuccess"])])}var le=w(M,[["render",v]]);export{le as default};
  