Files
filecodebox/fcb-fronted/dist/assets/AdminView-e98758bc.js
T
2023-08-15 00:16:26 +08:00

2 lines
19 KiB
Python

import{e as I,_ as H,w as we,h as j,a as X,r as me,v as Re,T as qe,b as ye,D as Ge,L as Ue,M as Je,E as Se,x as ee,B as xe,N as Ke,j as he,m as Qe}from"./base-f7494360.js";import"./el-tooltip-4ed993c7.js";import{E as $e}from"./el-popper-06f9553a.js";import{b as B,t as le,i as Ee,c as Ye,a as Ze}from"./focus-trap-ee1f8527.js";import{d as g,m as k,J as Y,w as A,E as w,V as Te,a5 as Xe,s as $,T as Be,Q as et,B as d,p as N,D as z,H as Me,A as re,r as E,a as _e,l as oe,I as be,o as Ce,R as Ne,h as M,i as G,b as tt,v as nt,F as ue,a0 as ke,Y as ot,f as st,n as at,S as lt,a2 as Pe,y as ge,x as Oe,z as Ae,e as te,q as rt}from"./index-86483aed.js";import{f as ut}from"./vnode-5b74de92.js";const se=function(e,o,...n){let s;o.includes("mouse")||o.includes("click")?s="MouseEvents":o.includes("key")?s="KeyboardEvent":s="HTMLEvents";const t=document.createEvent(s);return t.initEvent(o,...n),e.dispatchEvent(t),e},it=g({name:"ElCollapseTransition"}),ct=g({...it,setup(e){const o=I("collapse-transition"),n=t=>{t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom},s={beforeEnter(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0},enter(t){t.dataset.oldOverflow=t.style.overflow,t.scrollHeight!==0?t.style.maxHeight=`${t.scrollHeight}px`:t.style.maxHeight=0,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom,t.style.overflow="hidden"},afterEnter(t){t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow},enterCancelled(t){n(t)},beforeLeave(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.maxHeight=`${t.scrollHeight}px`,t.style.overflow="hidden"},leave(t){t.scrollHeight!==0&&(t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0)},afterLeave(t){n(t)},leaveCancelled(t){n(t)}};return(t,p)=>(k(),Y(Be,Te({name:$(o).b()},Xe(s)),{default:A(()=>[w(t.$slots,"default")]),_:3},16,["name"]))}});var ae=H(ct,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);ae.install=e=>{e.component(ae.name,ae)};const dt=ae,pt=g({name:"ElContainer"}),mt=g({...pt,props:{direction:{type:String}},setup(e){const o=e,n=et(),s=I("container"),t=d(()=>o.direction==="vertical"?!0:o.direction==="horizontal"?!1:n&&n.default?n.default().some(i=>{const m=i.type.name;return m==="ElHeader"||m==="ElFooter"}):!1);return(p,i)=>(k(),N("section",{class:z([$(s).b(),$(s).is("vertical",$(t))])},[w(p.$slots,"default")],2))}});var vt=H(mt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const ft=g({name:"ElAside"}),ht=g({...ft,props:{width:{type:String,default:null}},setup(e){const o=e,n=I("aside"),s=d(()=>o.width?n.cssVarBlock({width:o.width}):{});return(t,p)=>(k(),N("aside",{class:z($(n).b()),style:Me($(s))},[w(t.$slots,"default")],6))}});var ze=H(ht,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const bt=g({name:"ElFooter"}),gt=g({...bt,props:{height:{type:String,default:null}},setup(e){const o=e,n=I("footer"),s=d(()=>o.height?n.cssVarBlock({height:o.height}):{});return(t,p)=>(k(),N("footer",{class:z($(n).b()),style:Me($(s))},[w(t.$slots,"default")],6))}});var He=H(gt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const yt=g({name:"ElHeader"}),Mt=g({...yt,props:{height:{type:String,default:null}},setup(e){const o=e,n=I("header"),s=d(()=>o.height?n.cssVarBlock({height:o.height}):{});return(t,p)=>(k(),N("header",{class:z($(n).b()),style:Me($(s))},[w(t.$slots,"default")],6))}});var Le=H(Mt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const _t=g({name:"ElMain"}),Ct=g({..._t,setup(e){const o=I("main");return(n,s)=>(k(),N("main",{class:z($(o).b())},[w(n.$slots,"default")],2))}});var De=H(Ct,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const kt=we(vt,{Aside:ze,Footer:He,Header:Le,Main:De});j(ze);j(He);const It=j(Le),xt=j(De);let Et=class{constructor(o,n){this.parent=o,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(o){o===this.subMenuItems.length?o=0:o<0&&(o=this.subMenuItems.length-1),this.subMenuItems[o].focus(),this.subIndex=o}addListeners(){const o=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",s=>{let t=!1;switch(s.code){case B.down:{this.gotoSubIndex(this.subIndex+1),t=!0;break}case B.up:{this.gotoSubIndex(this.subIndex-1),t=!0;break}case B.tab:{se(o,"mouseleave");break}case B.enter:case B.space:{t=!0,s.currentTarget.click();break}}return t&&(s.preventDefault(),s.stopPropagation()),!1})})}},wt=class{constructor(o,n){this.domNode=o,this.submenu=null,this.submenu=null,this.init(n)}init(o){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${o}-menu`);n&&(this.submenu=new Et(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",o=>{let n=!1;switch(o.code){case B.down:{se(o.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case B.up:{se(o.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case B.tab:{se(o.currentTarget,"mouseleave");break}case B.enter:case B.space:{n=!0,o.currentTarget.click();break}}n&&o.preventDefault()})}},St=class{constructor(o,n){this.domNode=o,this.init(n)}init(o){const n=this.domNode.childNodes;Array.from(n).forEach(s=>{s.nodeType===1&&new wt(s,o)})}};const $t=g({name:"ElMenuCollapseTransition",setup(){const e=I("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,s){X(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",s()},onAfterEnter(n){me(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),Re(n,e.m("collapse"))?(me(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),X(n,e.m("collapse"))):(X(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),me(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){X(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function Tt(e,o,n,s,t,p){return k(),Y(Be,Te({mode:"out-in"},e.listeners),{default:A(()=>[w(e.$slots,"default")]),_:3},16)}var Bt=H($t,[["render",Tt],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function Ve(e,o){const n=d(()=>{let t=e.parent;const p=[o.value];for(;t.type.name!=="ElMenu";)t.props.index&&p.unshift(t.props.index),t=t.parent;return p});return{parentMenu:d(()=>{let t=e.parent;for(;t&&!["ElMenu","ElSubMenu"].includes(t.type.name);)t=t.parent;return t}),indexPath:n}}function Nt(e){return d(()=>{const n=e.backgroundColor;return n?new qe(n).shade(20).toString():""})}const Fe=(e,o)=>{const n=I("menu");return d(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":Nt(e).value||"","active-color":e.activeTextColor||"",level:`${o}`}))},Pt=ye({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},teleported:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:ee},expandOpenIcon:{type:ee},collapseCloseIcon:{type:ee},collapseOpenIcon:{type:ee}}),ne="ElSubMenu";var Ie=g({name:ne,props:Pt,setup(e,{slots:o,expose:n}){Ge({from:"popper-append-to-body",replacement:"teleported",scope:ne,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},d(()=>e.popperAppendToBody!==void 0));const s=ke(),{indexPath:t,parentMenu:p}=Ve(s,d(()=>e.index)),i=I("menu"),m=I("sub-menu"),r=re("rootMenu");r||le(ne,"can not inject root menu");const v=re(`subMenu:${p.value.uid}`);v||le(ne,"can not inject sub menu");const h=E({}),b=E({});let x;const L=E(!1),ie=E(),Z=E(null),V=d(()=>a.value==="horizontal"&&F.value?"bottom-start":"right-start"),R=d(()=>a.value==="horizontal"&&F.value||a.value==="vertical"&&!r.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?T.value?e.expandOpenIcon:e.expandCloseIcon:Ue:e.collapseCloseIcon&&e.collapseOpenIcon?T.value?e.collapseOpenIcon:e.collapseCloseIcon:Je),F=d(()=>v.level===0),U=d(()=>{var c;const f=(c=e.teleported)!=null?c:e.popperAppendToBody;return f===void 0?F.value:f}),ce=d(()=>r.props.collapse?`${i.namespace.value}-zoom-in-left`:`${i.namespace.value}-zoom-in-top`),de=d(()=>a.value==="horizontal"&&F.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),T=d(()=>r.openedMenus.includes(e.index)),W=d(()=>{let c=!1;return Object.values(h.value).forEach(f=>{f.active&&(c=!0)}),Object.values(b.value).forEach(f=>{f.active&&(c=!0)}),c}),J=d(()=>r.props.backgroundColor||""),K=d(()=>r.props.activeTextColor||""),q=d(()=>r.props.textColor||""),a=d(()=>r.props.mode),l=_e({index:e.index,indexPath:t,active:W}),u=Fe(r.props,v.level+1),_=d(()=>a.value!=="horizontal"?{color:q.value}:{borderBottomColor:W.value?r.props.activeTextColor?K.value:"":"transparent",color:W.value?K.value:q.value}),y=()=>{var c,f,C;return(C=(f=(c=Z.value)==null?void 0:c.popperRef)==null?void 0:f.popperInstanceRef)==null?void 0:C.destroy()},P=c=>{c||y()},D=()=>{r.props.menuTrigger==="hover"&&r.props.mode==="horizontal"||r.props.collapse&&r.props.mode==="vertical"||e.disabled||r.handleSubMenuClick({index:e.index,indexPath:t.value,active:W.value})},O=(c,f=e.showTimeout)=>{var C;c.type!=="focus"&&(r.props.menuTrigger==="click"&&r.props.mode==="horizontal"||!r.props.collapse&&r.props.mode==="vertical"||e.disabled||(v.mouseInChild.value=!0,x==null||x(),{stop:x}=xe(()=>{r.openMenu(e.index,t.value)},f),U.value&&((C=p.value.vnode.el)==null||C.dispatchEvent(new MouseEvent("mouseenter")))))},S=(c=!1)=>{var f,C;r.props.menuTrigger==="click"&&r.props.mode==="horizontal"||!r.props.collapse&&r.props.mode==="vertical"||(x==null||x(),v.mouseInChild.value=!1,{stop:x}=xe(()=>!L.value&&r.closeMenu(e.index,t.value),e.hideTimeout),U.value&&c&&((f=s.parent)==null?void 0:f.type.name)==="ElSubMenu"&&((C=v.handleMouseleave)==null||C.call(v,!0)))};oe(()=>r.props.collapse,c=>P(!!c));{const c=C=>{b.value[C.index]=C},f=C=>{delete b.value[C.index]};be(`subMenu:${s.uid}`,{addSubMenu:c,removeSubMenu:f,handleMouseleave:S,mouseInChild:L,level:v.level+1})}return n({opened:T}),Ce(()=>{r.addSubMenu(l),v.addSubMenu(l)}),Ne(()=>{v.removeSubMenu(l),r.removeSubMenu(l)}),()=>{var c;const f=[(c=o.title)==null?void 0:c.call(o),M(Se,{class:m.e("icon-arrow"),style:{transform:T.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&r.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>G(R.value)?M(s.appContext.components[R.value]):M(R.value)})],C=r.isMenuPopup?M($e,{ref:Z,visible:T.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:V.value,teleported:U.value,fallbackPlacements:de.value,transition:ce.value,gpuAcceleration:!1},{content:()=>{var Q;return M("div",{class:[i.m(a.value),i.m("popup-container"),e.popperClass],onMouseenter:pe=>O(pe,100),onMouseleave:()=>S(!0),onFocus:pe=>O(pe,100)},[M("ul",{class:[i.b(),i.m("popup"),i.m(`popup-${V.value}`)],style:u.value},[(Q=o.default)==null?void 0:Q.call(o)])])},default:()=>M("div",{class:m.e("title"),style:[_.value,{backgroundColor:J.value}],onClick:D},f)}):M(ue,{},[M("div",{class:m.e("title"),style:[_.value,{backgroundColor:J.value}],ref:ie,onClick:D},f),M(dt,{},{default:()=>{var Q;return tt(M("ul",{role:"menu",class:[i.b(),i.m("inline")],style:u.value},[(Q=o.default)==null?void 0:Q.call(o)]),[[nt,T.value]])}})]);return M("li",{class:[m.b(),m.is("active",W.value),m.is("opened",T.value),m.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:T.value,onMouseenter:O,onMouseleave:()=>S(!0),onFocus:O},[C])}}});const Ot=ye({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:he(Array),default:()=>Qe([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperEffect:{type:String,values:["dark","light"],default:"dark"}}),ve=e=>Array.isArray(e)&&e.every(o=>G(o)),At={close:(e,o)=>G(e)&&ve(o),open:(e,o)=>G(e)&&ve(o),select:(e,o,n,s)=>G(e)&&ve(o)&&st(n)&&(s===void 0||s instanceof Promise)};var zt=g({name:"ElMenu",props:Ot,emits:At,setup(e,{emit:o,slots:n,expose:s}){const t=ke(),p=t.appContext.config.globalProperties.$router,i=E(),m=I("menu"),r=I("sub-menu"),v=E(-1),h=E(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),b=E(e.defaultActive),x=E({}),L=E({}),ie=d(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),Z=()=>{const a=b.value&&x.value[b.value];if(!a||e.mode==="horizontal"||e.collapse)return;a.indexPath.forEach(u=>{const _=L.value[u];_&&V(u,_.indexPath)})},V=(a,l)=>{h.value.includes(a)||(e.uniqueOpened&&(h.value=h.value.filter(u=>l.includes(u))),h.value.push(a),o("open",a,l))},R=a=>{const l=h.value.indexOf(a);l!==-1&&h.value.splice(l,1)},F=(a,l)=>{R(a),o("close",a,l)},U=({index:a,indexPath:l})=>{h.value.includes(a)?F(a,l):V(a,l)},ce=a=>{(e.mode==="horizontal"||e.collapse)&&(h.value=[]);const{index:l,indexPath:u}=a;if(!(Ee(l)||Ee(u)))if(e.router&&p){const _=a.route||l,y=p.push(_).then(P=>(P||(b.value=l),P));o("select",l,u,{index:l,indexPath:u,route:_},y)}else b.value=l,o("select",l,u,{index:l,indexPath:u})},de=a=>{const l=x.value,u=l[a]||b.value&&l[b.value]||l[e.defaultActive];u?b.value=u.index:b.value=a},T=()=>{var a,l;if(!i.value)return-1;const u=Array.from((l=(a=i.value)==null?void 0:a.childNodes)!=null?l:[]).filter(c=>c.nodeName!=="#comment"&&(c.nodeName!=="#text"||c.nodeValue)),_=64,y=Number.parseInt(getComputedStyle(i.value).paddingLeft,10),P=Number.parseInt(getComputedStyle(i.value).paddingRight,10),D=i.value.clientWidth-y-P;let O=0,S=0;return u.forEach((c,f)=>{O+=c.offsetWidth||0,O<=D-_&&(S=f+1)}),S===u.length?-1:S},W=(a,l=33.34)=>{let u;return()=>{u&&clearTimeout(u),u=setTimeout(()=>{a()},l)}};let J=!0;const K=()=>{const a=()=>{v.value=-1,at(()=>{v.value=T()})};J?a():W(a)(),J=!1};oe(()=>e.defaultActive,a=>{x.value[a]||(b.value=""),de(a)}),oe(()=>e.collapse,a=>{a&&(h.value=[])}),oe(x.value,Z);let q;ot(()=>{e.mode==="horizontal"&&e.ellipsis?q=Ye(i,K).stop:q==null||q()});{const a=y=>{L.value[y.index]=y},l=y=>{delete L.value[y.index]};be("rootMenu",_e({props:e,openedMenus:h,items:x,subMenus:L,activeIndex:b,isMenuPopup:ie,addMenuItem:y=>{x.value[y.index]=y},removeMenuItem:y=>{delete x.value[y.index]},addSubMenu:a,removeSubMenu:l,openMenu:V,closeMenu:F,handleMenuItemClick:ce,handleSubMenuClick:U})),be(`subMenu:${t.uid}`,{addSubMenu:a,removeSubMenu:l,mouseInChild:E(!1),level:0})}return Ce(()=>{e.mode==="horizontal"&&new St(t.vnode.el,m.namespace.value)}),s({open:l=>{const{indexPath:u}=L.value[l];u.forEach(_=>V(_,u))},close:R,handleResize:K}),()=>{var a,l;let u=(l=(a=n.default)==null?void 0:a.call(n))!=null?l:[];const _=[];if(e.mode==="horizontal"&&i.value){const D=ut(u),O=v.value===-1?D:D.slice(0,v.value),S=v.value===-1?[]:D.slice(v.value);S!=null&&S.length&&e.ellipsis&&(u=O,_.push(M(Ie,{index:"sub-menu-more",class:r.e("hide-arrow")},{title:()=>M(Se,{class:r.e("icon-more")},{default:()=>M(Ke)}),default:()=>S})))}const y=Fe(e,0),P=M("ul",{key:String(e.collapse),role:"menubar",ref:i,style:y.value,class:{[m.b()]:!0,[m.m(e.mode)]:!0,[m.m("collapse")]:e.collapse}},[...u,..._]);return e.collapseTransition&&e.mode==="vertical"?M(Bt,()=>P):P}}});const Ht=ye({index:{type:he([String,null]),default:null},route:{type:he([String,Object])},disabled:Boolean}),Lt={click:e=>G(e.index)&&Array.isArray(e.indexPath)},fe="ElMenuItem",Dt=g({name:fe,components:{ElTooltip:$e},props:Ht,emits:Lt,setup(e,{emit:o}){const n=ke(),s=re("rootMenu"),t=I("menu"),p=I("menu-item");s||le(fe,"can not inject root menu");const{parentMenu:i,indexPath:m}=Ve(n,lt(e,"index")),r=re(`subMenu:${i.value.uid}`);r||le(fe,"can not inject sub menu");const v=d(()=>e.index===s.activeIndex),h=_e({index:e.index,indexPath:m,active:v}),b=()=>{e.disabled||(s.handleMenuItemClick({index:e.index,indexPath:m.value,route:e.route}),o("click",h))};return Ce(()=>{r.addSubMenu(h),s.addMenuItem(h)}),Ne(()=>{r.removeSubMenu(h),s.removeMenuItem(h)}),{parentMenu:i,rootMenu:s,active:v,nsMenu:t,nsMenuItem:p,handleClick:b}}});function Vt(e,o,n,s,t,p){const i=Pe("el-tooltip");return k(),N("li",{class:z([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:o[0]||(o[0]=(...m)=>e.handleClick&&e.handleClick(...m))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(k(),Y(i,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:A(()=>[w(e.$slots,"title")]),default:A(()=>[ge("div",{class:z(e.nsMenu.be("tooltip","trigger"))},[w(e.$slots,"default")],2)]),_:3},8,["effect"])):(k(),N(ue,{key:1},[w(e.$slots,"default"),w(e.$slots,"title")],64))],2)}var We=H(Dt,[["render",Vt],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const Ft={title:String},Wt="ElMenuItemGroup",jt=g({name:Wt,props:Ft,setup(){return{ns:I("menu-item-group")}}});function Rt(e,o,n,s,t,p){return k(),N("li",{class:z(e.ns.b())},[ge("div",{class:z(e.ns.e("title"))},[e.$slots.title?w(e.$slots,"title",{key:1}):(k(),N(ue,{key:0},[Oe(Ae(e.title),1)],64))],2),ge("ul",null,[w(e.$slots,"default")])],2)}var je=H(jt,[["render",Rt],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const qt=we(zt,{MenuItem:We,MenuItemGroup:je,SubMenu:Ie}),Gt=j(We);j(je);j(Ie);const nn=g({__name:"AdminView",setup(e){const o=Ze(),n=E([{name:"文件管理",path:"/admin"},{name:"系统设置",path:"/admin/setting"},{name:"关于我们",path:"/admin/about"}]);return console.log(o.value),(s,t)=>{const p=Gt,i=qt,m=It,r=Pe("router-view"),v=xt,h=kt;return k(),Y(h,{style:{height:"100vh",width:"100vw",position:"relative","user-select":"none"}},{default:A(()=>[te(m,null,{default:A(()=>[te(i,{mode:"horizontal",router:"","default-active":"/admin"},{default:A(()=>[(k(!0),N(ue,null,rt(n.value,b=>(k(),Y(p,{index:b.path,key:b.path},{default:A(()=>[Oe(Ae(b.name),1)]),_:2},1032,["index"]))),128))]),_:1})]),_:1}),te(v,null,{default:A(()=>[te(r)]),_:1})]),_:1})}}});export{nn as default};