Former-commit-id: 09afa0275b79bac197f18abe19f5136f74a56a15 [formerly 09afa0275b79bac197f18abe19f5136f74a56a15 [formerly 09afa0275b79bac197f18abe19f5136f74a56a15 [formerly 09afa0275b79bac197f18abe19f5136f74a56a15 [formerly 56ed017756f203a99f6f8214886d8c42bf6e7c45 [formerly 1ee3dca2bd17cf0cdd50d0ae1b2d72b643c5c13b]]]]] Former-commit-id: 162b2efa6c1f40d2f82a60e6d46ca83f341b6e47 Former-commit-id: 63edc60bdf591ee34689102938c850596762ddf3 Former-commit-id: 524ace56fa7e3c219b0e317f57eacdb8819d5d8e [formerly 68e8b0adba042d31c389a5c477763af9f4c94d1a] Former-commit-id: 20da1e8d1891bd4089b230f935260e88071c90e6 Former-commit-id: c978394b78ed728429205110b1b89be2651a42ab Former-commit-id: 3ef346993eae5c049a866793ac015b19148d3e57 Former-commit-id: 1537e533b448fee2f0d94160e344b3515c0f4c3a Former-commit-id: cdb3d246e64e1fd684beaf50981bfde7138de903
111 lines
4.0 KiB
JavaScript
111 lines
4.0 KiB
JavaScript
export default {
|
|
path: '/demo/playground',
|
|
title: '试验台',
|
|
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}store`,
|
|
title: '全局状态管理',
|
|
icon: 'bolt',
|
|
children: [
|
|
{ path: `${pre}store/page`, title: '多标签页控制', icon: 'window-restore' },
|
|
{ path: `${pre}store/menu`, title: '菜单控制', icon: 'bars' },
|
|
{ path: `${pre}store/size`, title: '全局尺寸', icon: 'font' },
|
|
{ path: `${pre}store/ua`, title: '浏览器信息', icon: 'info-circle' },
|
|
{ path: `${pre}store/gray`, title: '灰度模式', icon: 'eye' },
|
|
{ path: `${pre}store/fullscreen`, title: '全屏', icon: 'arrows-alt' },
|
|
{ path: `${pre}store/theme`, title: '主题', icon: 'diamond' },
|
|
{ path: `${pre}store/transition`, title: '页面过渡开关', icon: 'toggle-on' }
|
|
]
|
|
},
|
|
{
|
|
path: `${pre}page-cache`,
|
|
title: '页面缓存',
|
|
icon: 'hdd-o',
|
|
children: [
|
|
{ path: `${pre}page-cache/on`, title: '开启缓存' },
|
|
{ path: `${pre}page-cache/off`, title: '关闭缓存' },
|
|
{ path: `${pre}page-cache/params/1`, title: '带参路由缓存 1' },
|
|
{ path: `${pre}page-cache/params/2`, title: '带参路由缓存 2' }
|
|
]
|
|
},
|
|
{
|
|
path: `${pre}page-argu`,
|
|
title: '参数传递和留存',
|
|
icon: 'assistive-listening-systems',
|
|
children: [
|
|
{ path: `${pre}page-argu/send`, title: '发送' },
|
|
{ path: `${pre}page-argu/get/username-from-menu?userid=userid-from-menu`, title: '接收' }
|
|
]
|
|
},
|
|
{
|
|
path: `${pre}db`,
|
|
title: '数据持久化',
|
|
icon: 'database',
|
|
children: [
|
|
{ path: `${pre}db/all`, title: '总览', icon: 'table' },
|
|
{ path: `${pre}db/public`, title: '公共存储', icon: 'users' },
|
|
{ path: `${pre}db/user`, title: '私有数据', icon: 'user' },
|
|
{ path: `${pre}db/page-public`, title: '路由存储', icon: 'file-o' },
|
|
{ path: `${pre}db/page-user`, title: '私有路由存储', icon: 'file-o' },
|
|
{ path: `${pre}db/page-snapshot-public`, title: '路由快照', icon: 'file' },
|
|
{ path: `${pre}db/page-snapshot-user`, title: '私有路由快照', icon: 'file' }
|
|
]
|
|
},
|
|
{
|
|
path: `${pre}log`,
|
|
title: '日志',
|
|
icon: 'bullseye',
|
|
children: [
|
|
{ path: `${pre}log/log`, title: '日志记录', icon: 'dot-circle-o' },
|
|
{ path: `${pre}log/error`, title: '错误捕捉', icon: 'bug' },
|
|
{ path: `${pre}log/ajax`, title: 'Ajax 错误', icon: 'bug' },
|
|
{ path: `${pre}log/console`, title: '控制台日志', icon: 'lightbulb-o' }
|
|
]
|
|
},
|
|
{
|
|
path: `${pre}add-routes`,
|
|
title: '动态添加路由',
|
|
icon: 'plus-square',
|
|
children: [
|
|
{ path: `${pre}add-routes/routes`, title: '添加页面', icon: 'file-o' }
|
|
]
|
|
},
|
|
{ path: `${pre}env`, title: '环境信息', icon: 'exclamation-circle' }
|
|
])('/demo/playground/')
|
|
}
|