2018-04-09 14:49:58 +00:00
|
|
|
import Layout from './components/layout.vue'
|
2018-04-20 08:58:40 +00:00
|
|
|
import Iframe from './components/iframe.vue'
|
2018-04-09 14:49:58 +00:00
|
|
|
|
2018-04-04 10:39:21 +00:00
|
|
|
export default [
|
2018-04-09 14:49:58 +00:00
|
|
|
{ path: '/ant-design/components/:name/', component: Layout, props: true },
|
2018-04-20 08:58:40 +00:00
|
|
|
{ path: '/ant-design/iframe/:name/', component: Iframe, props: true },
|
2018-04-09 14:49:58 +00:00
|
|
|
{
|
|
|
|
path: '/ant-design',
|
|
|
|
component: Layout,
|
|
|
|
props: (route) => {
|
2018-04-10 04:08:41 +00:00
|
|
|
const name = route.path.split('/docs/vue/')[1].split('/')[0]
|
2018-04-09 14:49:58 +00:00
|
|
|
return { name }
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
2018-04-10 04:08:41 +00:00
|
|
|
path: 'docs/vue/customize-theme',
|
2018-04-09 14:49:58 +00:00
|
|
|
component: () => import('../docs/vue/customize-theme.en-US.md'),
|
|
|
|
},
|
|
|
|
{
|
2018-04-10 04:08:41 +00:00
|
|
|
path: 'docs/vue/customize-theme-cn',
|
2018-04-09 14:49:58 +00:00
|
|
|
component: () => import('../docs/vue/customize-theme.zh-CN.md'),
|
|
|
|
},
|
|
|
|
{
|
2018-04-10 04:08:41 +00:00
|
|
|
path: 'docs/vue/getting-started',
|
2018-04-09 14:49:58 +00:00
|
|
|
component: () => import('../docs/vue/getting-started.en-US.md'),
|
|
|
|
},
|
|
|
|
{
|
2018-04-10 04:08:41 +00:00
|
|
|
path: 'docs/vue/getting-started-cn',
|
2018-04-09 14:49:58 +00:00
|
|
|
component: () => import('../docs/vue/getting-started.zh-CN.md'),
|
|
|
|
},
|
|
|
|
{
|
2018-04-10 04:08:41 +00:00
|
|
|
path: 'docs/vue/i18n',
|
2018-04-09 14:49:58 +00:00
|
|
|
component: () => import('../docs/vue/i18n.en-US.md'),
|
|
|
|
},
|
|
|
|
{
|
2018-04-10 04:08:41 +00:00
|
|
|
path: 'docs/vue/i18n-cn',
|
2018-04-09 14:49:58 +00:00
|
|
|
component: () => import('../docs/vue/i18n.zh-CN.md'),
|
|
|
|
},
|
|
|
|
{
|
2018-04-10 04:08:41 +00:00
|
|
|
path: 'docs/vue/introduce',
|
2018-04-09 14:49:58 +00:00
|
|
|
component: () => import('../docs/vue/introduce.en-US.md'),
|
|
|
|
},
|
|
|
|
{
|
2018-04-10 04:08:41 +00:00
|
|
|
path: 'docs/vue/introduce-cn',
|
2018-04-09 14:49:58 +00:00
|
|
|
component: () => import('../docs/vue/introduce.zh-CN.md'),
|
|
|
|
},
|
|
|
|
{
|
2018-04-10 04:08:41 +00:00
|
|
|
path: 'docs/vue/use-with-vue-cli',
|
2018-04-09 14:49:58 +00:00
|
|
|
component: () => import('../docs/vue/use-with-vue-cli.en-US.md'),
|
|
|
|
},
|
|
|
|
{
|
2018-04-10 04:08:41 +00:00
|
|
|
path: 'docs/vue/use-with-vue-cli-cn',
|
2018-04-09 14:49:58 +00:00
|
|
|
component: () => import('../docs/vue/use-with-vue-cli.zh-CN.md'),
|
|
|
|
},
|
2018-04-21 10:50:10 +00:00
|
|
|
{
|
|
|
|
path: 'docs/vue/changelog',
|
|
|
|
component: () => import('../CHANGELOG.en-US.md'),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'docs/vue/changelog-cn',
|
|
|
|
component: () => import('../CHANGELOG.zh-CN.md'),
|
|
|
|
},
|
2018-04-10 04:08:41 +00:00
|
|
|
{ path: '', redirect: '/ant-design/vue/docs/introduce/' },
|
2018-04-09 14:49:58 +00:00
|
|
|
],
|
|
|
|
},
|
2018-04-10 04:08:41 +00:00
|
|
|
{ path: '/*', redirect: '/ant-design/docs/vue/introduce/' },
|
2018-04-04 10:39:21 +00:00
|
|
|
]
|