You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
2.7 KiB

/*路由表:演示用例*/
6 years ago
import Layout from '@/layout'
const router = {
path: '/example',
component: Layout,
meta: {title: '演示用例', icon: 'show', noCache: true},
6 years ago
children: [
{
path: 'style-page',
name: 'stylePage',
component: () => import('@/views/example/stylePage'),
meta: {title: '样 式'}
6 years ago
},
{
path: 'icons',
name: 'icons',
component: () => import('@/views/example/icons'),
meta: {title: '图 标'}
6 years ago
},
{
path: 'taobao',
name: 'taobao',
meta: {title: '淘宝iframe', iframe: 'https://www.taobao.com'}
6 years ago
},
{
path: 'cool',
component: {render: h => h('router-view')},
meta: {title: '好玩的东东'},
6 years ago
children: [
{
path: 'fluid',
name: 'fluid',
component: () => import('@/views/example/cool/fluid'),
meta: {title: '流体动画'}
},
{
path: 'l2d',
name: 'l2d',
component: () => import('@/views/example/cool/l2d'),
meta: {title: '看板娘'}
},
]
},
{
path: 'components',
component: {render: h => h('router-view')},
meta: {title: '组件'},
6 years ago
children: [
{
path: 'upload',
name: 'upload',
component: () => import('@/views/example/components/upload'),
meta: {title: '上传文件'}
},
{
path: 'picture-preview',
name: 'picturePreview',
component: () => import('@/views/example/components/picturePreview'),
meta: {title: '图片预览'}
},
{
path: 'skeleton',
name: 'skeleton',
component: () => import('@/views/example/components/skeleton'),
meta: {title: '骨架屏'}
},
{
path: 'ripple',
name: 'ripple',
component: () => import('@/views/example/components/ripple'),
meta: {title: '波纹'}
}
]
},
{
path: 'developing-test',
name: 'developingTest',
component: () => import('@/views/example/developingTest'),
meta: {title: '开发测试'}
6 years ago
}
]
}
export default router