Commit a20c2e88 authored by 萌萌哒SAKURA酱's avatar 萌萌哒SAKURA酱

🐛 Fixing a bug.Fixed sidebar

parent 38e97227
This diff is collapsed.
......@@ -10,6 +10,7 @@
text-color="rgba(255,255,255,0.7)"
:collapse="keyCollapse">
<sidebar-item :menu="menu"
first
:screen="screen"
:props="website.menu.props"
:collapse="keyCollapse"></sidebar-item>
......
......@@ -15,7 +15,7 @@
<template slot="title">
<i :class="item[iconKey]"></i>
<span slot="title"
:class="{'el-menu--display':collapse}">{{item[labelKey]}}</span>
:class="{'el-menu--display':collapse&&first}">{{item[labelKey]}}</span>
</template>
<template v-for="(child,cindex) in item[childrenKey]">
<el-menu-item :index="child[pathKey],cindex"
......@@ -55,6 +55,10 @@ export default {
screen: {
type: Number
},
first: {
type: Boolean,
default: false
},
props: {
type: Object,
default: () => { return {} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment