Commit 5507bef6 by cwq0219

菜单图标-自定义

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