| | |
| | | <template> |
| | | <div :class="{'has-logo':showLogo}" :style="{ backgroundColor: settings.sideTheme === 'theme-dark' ? variables.menuBackground : variables.menuLightBackground }"> |
| | | <div |
| | | :class="{ 'has-logo': showLogo }" |
| | | :style="{ |
| | | backgroundColor: |
| | | settings.sideTheme === 'theme-dark' |
| | | ? variables.menuBackground |
| | | : variables.menuLightBackground, |
| | | }" |
| | | > |
| | | <logo v-if="showLogo" :collapse="isCollapse" /> |
| | | <el-scrollbar :class="settings.sideTheme" wrap-class="scrollbar-wrapper"> |
| | | <el-menu |
| | | :default-active="activeMenu" |
| | | :collapse="isCollapse" |
| | | :background-color="settings.sideTheme === 'theme-dark' ? variables.menuBackground : variables.menuLightBackground" |
| | | :text-color="settings.sideTheme === 'theme-dark' ? variables.menuColor : variables.menuLightColor" |
| | | :unique-opened="true" |
| | | :active-text-color="settings.theme" |
| | | :collapse-transition="false" |
| | | mode="vertical" |
| | | > |
| | |
| | | }, |
| | | isCollapse() { |
| | | return !this.sidebar.opened; |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |