Commit 5507bef6 by cwq0219

菜单图标-自定义

1 parent 41b609ef
Showing 37 changed files with 40 additions and 23 deletions
......@@ -196,14 +196,21 @@
color: $theme-aside-item-color;
background: $theme-aside-item-background-color;
i {
color: $theme-aside-item-color;
color: $active-i-color;
}
img {
opacity: 0.6;
margin-right: 5px;
}
&:hover {
color: $theme-aside-item-color-hover;
fill: $theme-aside-item-color-hover;
background: $theme-aside-item-background-color-hover;
i {
color: $active-i-color;
color: $theme-aside-item-color;
}
img {
opacity: 1;
}
}
&:focus {
......@@ -219,7 +226,10 @@
fill: $theme-aside-item-color-active;
background: $theme-aside-item-background-color-active;
i {
color: $active-i-color;
color: $theme-aside-item-color;
}
img {
opacity: 1;
}
}
// &:nth-child(1).is-active {
......@@ -236,7 +246,11 @@
color: $theme-aside-item-color;
background: $theme-aside-item-background-color;
i {
color: $theme-aside-item-color;
color: $active-i-color;
}
img {
opacity: 0.6;
margin-right: 5px;
}
.el-submenu__icon-arrow {
color: $theme-aside-item-color;
......@@ -245,7 +259,10 @@
color: $theme-aside-item-color-hover;
background: $theme-aside-item-background-color-hover;
i {
color: $active-i-color;
color: $theme-aside-item-color;
}
img {
opacity: 1;
}
.el-submenu__icon-arrow {
color: $theme-aside-item-color-hover;
......
......@@ -5,7 +5,7 @@ export function elMenuItem(createElement, menu) {
createElement('i', { attrs: { class: `el-icon-${menu.icon}` } })
] : [],
...menu.icon === undefined & !menu.iconSvg ? [
createElement('i', { attrs: { class: 'fa fa-file-o' } })
createElement('img', { attrs: { src: '../menuIcon/' + menu.path.slice(1) + '.png' } })
] : [],
...menu.iconSvg ? [
createElement('d2-icon-svg', { props: { name: menu.iconSvg } })
......@@ -21,7 +21,7 @@ export function elSubmenu(createElement, menu) {
createElement('i', { slot: 'title', attrs: { class: `el-icon-${menu.icon}` } })
] : [],
...menu.icon === undefined & !menu.iconSvg ? [
createElement('i', { slot: 'title', attrs: { class: 'fa fa-file-o' } })
createElement('img', { slot: 'title', attrs: { src: '../menuIcon/' + menu.path.slice(1) + '.png' } })
] : [],
...menu.iconSvg ? [
createElement('d2-icon-svg', { slot: 'title', props: { name: menu.iconSvg } })
......
......@@ -21,7 +21,7 @@ const frameIn = [{
export const home = {
path: '/index',
name: 'index',
icon: 's-home',
// icon: 's-home',
meta: {
title: '总览',
authId: '907',
......@@ -61,7 +61,7 @@ export const resources = {
'902': {
path: '/flowManage',
name: 'flowManage',
icon: 's-goods',
// icon: 's-goods',
meta: {
title: '流量管理',
authId: '902',
......@@ -92,7 +92,7 @@ export const resources = {
'90202': {
path: '/recordList',
name: 'recordList',
icon: 'document',
// icon: 'document',
meta: {
title: '预录信息',
authId: '90202',
......@@ -194,7 +194,7 @@ export const resources = {
'903': {
path: '/goods',
name: 'goods',
icon: 's-goods',
// icon: 's-goods',
meta: {
title: '产品管理',
authId: '903',
......@@ -205,7 +205,7 @@ export const resources = {
'90301': {
path: '/product',
name: 'product',
icon: 'document',
// icon: 'document',
meta: {
title: '素材管理',
authId: '90301',
......@@ -262,7 +262,7 @@ export const resources = {
'90302': {
path: '/commodity',
name: 'commodity',
icon: 'document',
// icon: 'document',
meta: {
title: '升级系列',
authId: '90302',
......@@ -332,7 +332,7 @@ export const resources = {
'90306': {
path: '/coupons',
name: 'coupons',
icon: 'document',
// icon: 'document',
meta: {
title: '发券宝',
authId: '90306',
......@@ -370,7 +370,7 @@ export const resources = {
'904': {
path: '/orderManage',
name: 'orderManage',
icon: 's-goods',
// icon: 's-goods',
meta: {
title: '订单管理',
authId: '904',
......@@ -419,7 +419,7 @@ export const resources = {
'905': {
path: '/financeManage',
name: 'financeManage',
icon: 's-goods',
// icon: 's-goods',
meta: {
title: '财务管理',
authId: '905',
......@@ -430,7 +430,7 @@ export const resources = {
'90501': {
path: '/financeList',
name: 'financeList',
icon: 's-goods',
// icon: 's-goods',
meta: {
title: '财务列表',
authId: '90501',
......@@ -468,7 +468,7 @@ export const resources = {
'90503': {
path: '/onlineAccountList',
name: 'onlineAccountList',
icon: 's-goods',
// icon: 's-goods',
meta: {
title: '线上分账列表',
authId: '90503',
......@@ -507,7 +507,7 @@ export const resources = {
'906': {
path: '/systemConfig',
name: 'systemConfig',
icon: 's-tools',
// icon: 's-tools',
meta: {
title: '系统设置',
authId: '906',
......@@ -518,7 +518,7 @@ export const resources = {
'90601': {
path: '/personalInfo',
name: 'personalInfo',
icon: 'user-solid',
// icon: 'user-solid',
meta: {
title: '个人信息',
authId: '90601',
......@@ -530,7 +530,7 @@ export const resources = {
'90603': {
path: '/merchantManage',
name: 'merchantManage',
icon: 'user-solid',
// icon: 'user-solid',
meta: {
title: '商户管理',
authId: '90603',
......@@ -603,7 +603,7 @@ export const resources = {
'90606': {
path: '/accountList',
name: 'accountList',
icon: 'user-solid',
// icon: 'user-solid',
meta: {
title: '虚拟对公账户',
authId: '90606',
......@@ -642,7 +642,7 @@ export const resources = {
'90602': {
path: '/serviceStore',
name: 'serviceStore',
icon: 'office-building',
// icon: 'office-building',
meta: {
title: '服务4s店',
authId: '90602',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!