import{_ as e}from"./logo-9754eb61.js";import{_ as a,r as n,o as t,c as s,w as o,a as l,b as i,d as u,F as c,e as d,t as m,p as r,f as p,g}from"./index-ea5b20ee.js";const h={name:"AppSider",data:()=>({collapsed:!0,current:"menu_1",menu:{menu_1:{icon:"icon-fengche",title:"框架",pageName:"Framework",params:{}},menu_2:{icon:"icon-niudan",title:"系统",pageName:"Os",params:{}},menu_3:{icon:"icon-xiangji",title:"硬件",pageName:"Hardware",params:{}},menu_4:{icon:"icon-liuxing",title:"特效",pageName:"Effect",params:{}}}}),created(){},mounted(){this.menuHandle()},methods:{menuHandle(e){console.log("sider menu e:",e),this.current=e?e.key:this.current,console.log("sider menu current:",this.current);const a=this.menu[this.current];console.log("[home] load linkInfo:",a),this.$router.push({name:a.pageName,params:a.params})},changeMenu(e){console.log("sider menu e:",e)}}},f=(e=>(r("data-v-a4dde330"),e=e(),p(),e))((()=>g("div",{class:"logo"},[g("img",{class:"pic-logo",src:e})],-1)));const _=a(h,[["render",function(e,a,r,p,g,h){const _=n("icon-font"),y=n("a-menu-item"),k=n("a-menu"),w=n("a-layout-sider"),N=n("router-view"),v=n("a-layout-content"),x=n("a-layout");return t(),s(x,{id:"app-layout-sider"},{default:o((()=>[l(w,{modelValue:g.collapsed,"onUpdate:modelValue":a[0]||(a[0]=e=>g.collapsed=e),theme:"light",class:"layout-sider",width:"100"},{default:o((()=>[f,l(k,{class:"menu-item",theme:"light",mode:"inline",selectedKeys:[g.current],onClick:h.menuHandle},{default:o((()=>[(t(!0),i(c,null,u(g.menu,((e,a)=>(t(),s(y,{key:a},{default:o((()=>[l(_,{type:e.icon},null,8,["type"]),d(" "+m(e.title),1)])),_:2},1024)))),128))])),_:1},8,["selectedKeys","onClick"])])),_:1},8,["modelValue"]),l(x,null,{default:o((()=>[l(v,{class:"layout-content"},{default:o((()=>[l(N)])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-a4dde330"]]);export{_ as default};
