import{_ as L}from"./MenuForm.vue_vue_type_style_index_0_sctep_true_lang-MC3Dk96F.js";import{d as R,r as s,c as B,o as D,a7 as F,l as r,ds as N,w as n,j as o,H as S,B as V,p as m,a8 as $}from"./index-9PRMimni.js";const T=R({__name:"CreateDrawer",props:{title:{type:String,default:"添加顶级菜单"},width:{type:Number,default:580},permissionList:{type:Array}},emits:["change"],setup(a,{expose:c,emit:p}){const _=p,i=s(),f=a,t=s(!1),d=s(!1),w=s("right");function g(){t.value=!0}function l(){t.value=!1}function h(){i.value?.formSubmit()}function y(){i.value?.handleReset()}function C(){l(),_("change")}return c({openDrawer:g,closeDrawer:l}),(j,e)=>{const u=V,b=S,k=$,v=F;return D(),B(v,{show:r(t),"onUpdate:show":e[0]||(e[0]=x=>N(t)?t.value=x:null),width:a.width,placement:r(w)},{default:n(()=>[o(k,{title:a.title,closable:""},{footer:n(()=>[o(b,null,{default:n(()=>[o(u,{type:"primary",loading:r(d),onClick:h},{default:n(()=>e[1]||(e[1]=[m("提交")])),_:1},8,["loading"]),o(u,{onClick:y},{default:n(()=>e[2]||(e[2]=[m("重置")])),_:1})]),_:1})]),default:n(()=>[o(L,{ref_key:"menuFormRef",ref:i,permissionList:f.permissionList,onChange:C},null,8,["permissionList"])]),_:1},8,["title"])]),_:1},8,["show","width","placement"])}}});export{T as _};
