diff --git a/src/menu/index.js b/src/menu/index.js index fcb55855..2a618ff8 100644 --- a/src/menu/index.js +++ b/src/menu/index.js @@ -51,39 +51,6 @@ export const menuHeader = [ { path: 'https://segmentfault.com/blog/liyang-note-book', title: 'segmentfault 专栏', icon: 'globe' }, { path: 'http://www.fairyever.com/', title: 'www.fairyever.com', icon: 'globe' } ] - }, - { - title: '空菜单演示', - icon: 'folder-o', - children: [ - { - title: '正在开发 1', - children: [ - { title: '正在开发 1-1' }, - { title: '正在开发 1-2' } - ] - }, - { title: '正在开发 2' }, - { title: '正在开发 3' } - ] - }, - { - title: 'svg 菜单图标', - iconSvg: 'd2-admin', - children: [ - { title: 'add', iconSvg: 'add' }, - { title: 'alarm', iconSvg: 'alarm' }, - { title: 'camera', iconSvg: 'camera' }, - { title: 'history', iconSvg: 'history' }, - { title: 'like', iconSvg: 'like' }, - { title: 'love', iconSvg: 'love' }, - { title: 'message', iconSvg: 'message' }, - { title: 'notice', iconSvg: 'notice' }, - { title: 'search', iconSvg: 'search' }, - { title: 'share', iconSvg: 'share' }, - { title: 'star', iconSvg: 'star' }, - { title: 'user', iconSvg: 'user' } - ] } ] }, diff --git a/src/menu/modules/demo-playground.js b/src/menu/modules/demo-playground.js index f0016932..75037b95 100644 --- a/src/menu/modules/demo-playground.js +++ b/src/menu/modules/demo-playground.js @@ -4,6 +4,39 @@ export default { icon: 'flask', children: (pre => [ { path: `${pre}index`, title: '试验台首页', icon: 'home' }, + { + title: 'svg 菜单图标', + iconSvg: 'd2-admin', + children: [ + { title: 'add', iconSvg: 'add' }, + { title: 'alarm', iconSvg: 'alarm' }, + { title: 'camera', iconSvg: 'camera' }, + { title: 'history', iconSvg: 'history' }, + { title: 'like', iconSvg: 'like' }, + { title: 'love', iconSvg: 'love' }, + { title: 'message', iconSvg: 'message' }, + { title: 'notice', iconSvg: 'notice' }, + { title: 'search', iconSvg: 'search' }, + { title: 'share', iconSvg: 'share' }, + { title: 'star', iconSvg: 'star' }, + { title: 'user', iconSvg: 'user' } + ] + }, + { + title: '空菜单演示', + icon: 'folder-o', + children: [ + { + title: '正在开发 1', + children: [ + { title: '正在开发 1-1' }, + { title: '正在开发 1-2' } + ] + }, + { title: '正在开发 2' }, + { title: '正在开发 3' } + ] + }, { path: `${pre}page-cache`, title: '页面缓存',