🐛 fix: menu

This commit is contained in:
libin 2023-04-01 18:23:05 +08:00
parent 8a43251fa0
commit 984b3bcab1
3 changed files with 4 additions and 15 deletions

View File

@ -12,12 +12,8 @@
:unique-opened="uniqueOpened"
mode="vertical"
>
<template v-for="route in routes">
<vab-side-bar-item
:key="route.path"
:full-path="route.path"
:item="route"
/>
<template v-for="route in routes" :key="route.path">
<vab-side-bar-item :full-path="route.path" :item="route" />
</template>
</el-menu>
</el-scrollbar>
@ -126,10 +122,7 @@
.el-menu-item,
.el-submenu__title {
height: $base-menu-item-height;
overflow: hidden;
line-height: $base-menu-item-height;
text-overflow: ellipsis;
white-space: nowrap;
vertical-align: middle;
}

View File

@ -5,7 +5,7 @@
/* stylelint-disable */
@charset "utf-8";
//框架默认主题色
$base-color-default: #0187fb;
$base-color-default: #409eff;
//默认层级
$base-z-index: 999;
//横向布局纵向布局时菜单背景色

View File

@ -178,13 +178,9 @@ module.exports = {
productionSourceMap: false,
css: {
requireModuleExtension: true,
sourceMap: true,
sourceMap: false,
loaderOptions: {
scss: {
/*sass-loader 8.0语法 */
//prependData: '@import "~@/styles/variables.scss";',
/*sass-loader 9.0写法感谢github用户 shaonialife*/
additionalData(content, loaderContext) {
const { resourcePath, rootContext } = loaderContext
const relativePath = path.relative(rootContext, resourcePath)