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.
67 lines
1.9 KiB
67 lines
1.9 KiB
import Layout from './components/layout.vue'
|
|
|
|
const AsyncTestComp = () => {
|
|
const d = window.location.hash.replace('#', '')
|
|
return {
|
|
component: import(`../components/transfer/demo/${d}`),
|
|
}
|
|
}
|
|
|
|
export default [
|
|
{ path: '/ant-design/components/:name/', component: Layout, props: true },
|
|
{
|
|
path: '/ant-design',
|
|
component: Layout,
|
|
props: (route) => {
|
|
const name = route.path.split('/docs/')[1].split('/')[0]
|
|
return { name }
|
|
},
|
|
children: [
|
|
{
|
|
path: 'docs/customize-theme',
|
|
component: () => import('../docs/vue/customize-theme.en-US.md'),
|
|
},
|
|
{
|
|
path: 'docs/customize-theme-cn',
|
|
component: () => import('../docs/vue/customize-theme.zh-CN.md'),
|
|
},
|
|
{
|
|
path: 'docs/getting-started',
|
|
component: () => import('../docs/vue/getting-started.en-US.md'),
|
|
},
|
|
{
|
|
path: 'docs/getting-started-cn',
|
|
component: () => import('../docs/vue/getting-started.zh-CN.md'),
|
|
},
|
|
{
|
|
path: 'docs/i18n',
|
|
component: () => import('../docs/vue/i18n.en-US.md'),
|
|
},
|
|
{
|
|
path: 'docs/i18n-cn',
|
|
component: () => import('../docs/vue/i18n.zh-CN.md'),
|
|
},
|
|
{
|
|
path: 'docs/introduce',
|
|
component: () => import('../docs/vue/introduce.en-US.md'),
|
|
},
|
|
{
|
|
path: 'docs/introduce-cn',
|
|
component: () => import('../docs/vue/introduce.zh-CN.md'),
|
|
},
|
|
{
|
|
path: 'docs/use-with-vue-cli',
|
|
component: () => import('../docs/vue/use-with-vue-cli.en-US.md'),
|
|
},
|
|
{
|
|
path: 'docs/use-with-vue-cli-cn',
|
|
component: () => import('../docs/vue/use-with-vue-cli.zh-CN.md'),
|
|
},
|
|
{ path: '', redirect: '/ant-design/docs/introduce/' },
|
|
],
|
|
},
|
|
|
|
{ path: '/:prefix?/test/:demo?/', component: AsyncTestComp },
|
|
{ path: '/*', redirect: '/ant-design/docs/introduce/' },
|
|
]
|