升级element版本 修改icon

This commit is contained in:
piexlmax
2021-12-10 19:07:15 +08:00
parent 255dba330d
commit 8791206a5c
33 changed files with 1402 additions and 924 deletions
@@ -1,7 +1,9 @@
<template>
<el-sub-menu ref="subMenu" :index="routerInfo.name">
<template #title>
<i :class="'el-icon-'+routerInfo.meta.icon" />
<el-icon>
<component :is="routerInfo.meta.icon" />
</el-icon>
<span>{{ routerInfo.meta.title }}</span>
</template>
<slot />
@@ -1,8 +1,10 @@
<template>
<el-menu-item :index="routerInfo.name" :route="{parameters:routerInfo.parameters}">
<i :class="'el-icon-'+routerInfo.meta.icon" />
<el-icon>
<component :is="routerInfo.meta.icon" />
</el-icon>
<template #title>
<span>{{ routerInfo.meta.title }}</span>
<span class="gva-menu-item-title">{{ routerInfo.meta.title }}</span>
</template>
</el-menu-item>
</template>
@@ -20,3 +22,8 @@ export default {
}
}
</script>
<style lang="scss" scoped>
.gva-menu-item-title {
min-width: 160px;
}
</style>