import{c as _}from"./conf.a6a301e5.js";import{g as f,d as y}from"./menu.5caae388.js";import{T as k}from"./table.ce855193.js";import v from"./menu-modal.113536a9.js";import{u as C,r as m,a3 as g,a as M,b0 as h,o as b,b as x,e as l,f as r,cI as P}from"./index.ab0d47a4.js";import{_ as R}from"./_plugin-vue_export-helper.cdc0426e.js";import"./default.76e08716.js";import"./index.49a4d642.js";import"./KeyCode.99f746d5.js";import"./index.58d81b67.js";import"./useState.01763bb3.js";import"./useFlexGapSupport.f5eec5c4.js";import"./index.9c196d1a.js";import"./index.b2c65497.js";import"./index.0857d90f.js";import"./index.b49a664b.js";import"./index.5ec54e89.js";import"./index.cef07818.js";import"./index.8c51b797.js";import"./index.9914bffc.js";import"./index.0e96b1ad.js";import"./index.ced49a81.js";import"./iconUtil.60568eec.js";import"./index.9923b5dc.js";import"./Password.ee3cd4fa.js";import"./useModal.67c34fed.js";const T={class:"user"},w={__name:"menu",setup(B){C().$subscribe((t,o)=>{o.isPush&&(a(),o.isPush=!1)});const i=m([]);function a(){f().then(t=>i.value=t.data)}g(()=>{a()});const s=m(),e=M({title:"",type:""}),n=()=>{e.title="\u65B0\u589E\u83DC\u5355",e.type="create",s.value.showModal=!0},p=t=>{e.title="\u7F16\u8F91\u83DC\u5355",e.type="update",s.value.openModal(t)},c=async t=>{const o=await y(t.id);P(o),a()},{title:u,type:d}=h(e);return(t,o)=>(b(),x("div",T,[l(k,{columns:r(_),"data-source":i.value,"page-name":"menu","list-title":"\u83DC\u5355\u5217\u8868",onCreateClick:n,onUpdateClick:p,onDeleteClick:c},null,8,["columns","data-source"]),l(v,{ref_key:"modalRef",ref:s,"modal-title":r(u),"modal-type":r(d)},null,8,["modal-title","modal-type"])]))}},at=R(w,[["__scopeId","data-v-0d3d3491"]]);export{at as default};
