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