feat[Menu]: menu icon support el-icon

This commit is contained in:
花裤衩
2020-06-15 17:11:28 +08:00
parent 5c87772025
commit e2fd7c7528
3 changed files with 32 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ import Layout from '@/layout'
* meta : {
roles: ['admin','editor'] control the page roles (you can set multiple roles)
title: 'title' the name show in sidebar and breadcrumb (recommend set)
icon: 'svg-name' the icon show in the sidebar
icon: 'svg-name'/'el-icon-x' the icon show in the sidebar
breadcrumb: false if set false, the item will hidden in breadcrumb(default is true)
activeMenu: '/example/list' if set path, the sidebar will highlight the path you set
}
@@ -60,7 +60,7 @@ export const constantRoutes = [
component: Layout,
redirect: '/example/table',
name: 'Example',
meta: { title: 'Example', icon: 'example' },
meta: { title: 'Example', icon: 'el-icon-s-help' },
children: [
{
path: 'table',