示例页面

Former-commit-id: d30535016ca9ff279ae0fcb56813578fffd74fde
This commit is contained in:
liyang
2018-07-25 11:24:27 +08:00
parent 16833cdcb5
commit f95fc7b90c
6 changed files with 55 additions and 6 deletions
+8 -3
View File
@@ -1,8 +1,13 @@
// 菜单 侧边栏
export default [
{ path: '/index', title: '首页', icon: 'home' },
{
path: '/index',
title: '首页',
icon: 'home'
title: '页面',
icon: 'folder-o',
children: [
{ path: '/page1', title: '页面 1' },
{ path: '/page2', title: '页面 2' },
{ path: '/page3', title: '页面 3' }
]
}
]
+8 -3
View File
@@ -1,8 +1,13 @@
// 菜单 顶栏
export default [
{ path: '/index', title: '首页', icon: 'home' },
{
path: '/index',
title: '首页',
icon: 'home'
title: '页面',
icon: 'folder-o',
children: [
{ path: '/page1', title: '页面 1' },
{ path: '/page2', title: '页面 2' },
{ path: '/page3', title: '页面 3' }
]
}
]
+7
View File
@@ -0,0 +1,7 @@
<template>
<d2-container>
<template slot="header">Page 1 header</template>
Hello World
<template slot="footer">footer</template>
</d2-container>
</template>
+7
View File
@@ -0,0 +1,7 @@
<template>
<d2-container>
<template slot="header">Page 2 header</template>
Hello World
<template slot="footer">footer</template>
</d2-container>
</template>
+7
View File
@@ -0,0 +1,7 @@
<template>
<d2-container>
<template slot="header">Page 3 header</template>
Hello World
<template slot="footer">footer</template>
</d2-container>
</template>
+18
View File
@@ -18,6 +18,24 @@ const frameIn = [
name: 'index',
meta,
component: () => import('@/pages/index')
},
{
path: '/page1',
name: 'page1',
component: () => import('@/pages/page1'),
meta: { meta, title: '页面 1' }
},
{
path: '/page2',
name: 'page2',
component: () => import('@/pages/page2'),
meta: { meta, title: '页面 2' }
},
{
path: '/page3',
name: 'page3',
component: () => import('@/pages/page3'),
meta: { meta, title: '页面 3' }
}
]
}