2020-03-20 18:06:21 +08:00
|
|
|
const rootDebugRoutes = [
|
2020-12-12 13:51:22 +08:00
|
|
|
{
|
2021-04-20 12:49:47 +08:00
|
|
|
path: '/popover-debug',
|
2021-01-13 12:01:02 +08:00
|
|
|
component: () => import('../debug-pages/popoverDebug.vue')
|
2020-12-12 13:51:22 +08:00
|
|
|
},
|
|
|
|
{
|
2021-04-20 12:49:47 +08:00
|
|
|
path: '/back-top-debug',
|
2021-01-13 12:01:02 +08:00
|
|
|
component: () => import('../debug-pages/backTopDebug/index.vue')
|
2020-12-12 13:51:22 +08:00
|
|
|
},
|
|
|
|
{
|
2021-04-20 12:49:47 +08:00
|
|
|
path: '/cascader-debug',
|
2021-01-13 12:01:02 +08:00
|
|
|
component: () => import('../debug-pages/cascaderDebug/index.vue')
|
2020-12-12 13:51:22 +08:00
|
|
|
}
|
2020-03-20 18:06:21 +08:00
|
|
|
]
|
|
|
|
|
|
|
|
const childDebugRoutes = [
|
2020-12-12 13:51:22 +08:00
|
|
|
{
|
2021-04-20 12:49:47 +08:00
|
|
|
path: 'scrollbar-debug2',
|
2021-01-13 12:01:02 +08:00
|
|
|
component: () => import('../debug-pages/scrollbarDebug2/index.vue')
|
2020-12-12 13:51:22 +08:00
|
|
|
},
|
|
|
|
{
|
2021-04-20 12:49:47 +08:00
|
|
|
path: 'date-picker-debug',
|
2021-01-13 12:01:02 +08:00
|
|
|
component: () => import('../debug-pages/datePickerDebug/index.vue')
|
2020-12-12 13:51:22 +08:00
|
|
|
},
|
|
|
|
{
|
2021-04-20 12:49:47 +08:00
|
|
|
path: 'suffix-debug',
|
2021-01-13 12:01:02 +08:00
|
|
|
component: () => import('../debug-pages/suffixDebug/index.vue')
|
2020-12-12 13:51:22 +08:00
|
|
|
},
|
|
|
|
{
|
2021-04-20 12:49:47 +08:00
|
|
|
path: 'vertical-align-debug',
|
2021-01-13 12:01:02 +08:00
|
|
|
component: () => import('../debug-pages/verticalAlignDebug.vue')
|
2020-12-12 13:51:22 +08:00
|
|
|
},
|
|
|
|
{
|
2021-04-20 12:49:47 +08:00
|
|
|
path: 'icon-transition-debug',
|
2021-01-13 12:01:02 +08:00
|
|
|
component: () => import('../debug-pages/iconTransitionDebug.vue')
|
2020-12-12 13:51:22 +08:00
|
|
|
},
|
|
|
|
{
|
2021-04-20 12:49:47 +08:00
|
|
|
path: 'select-debug',
|
2021-01-13 12:01:02 +08:00
|
|
|
component: () => import('../debug-pages/selectDebug.vue')
|
2020-12-12 13:51:22 +08:00
|
|
|
},
|
|
|
|
{
|
2021-04-20 12:49:47 +08:00
|
|
|
path: 'router-debug',
|
2021-01-13 12:01:02 +08:00
|
|
|
component: () => import('../debug-pages/routerDebug.vue')
|
2020-12-12 13:51:22 +08:00
|
|
|
},
|
|
|
|
{
|
2021-04-20 12:49:47 +08:00
|
|
|
path: 'modal-debug',
|
2021-01-13 12:01:02 +08:00
|
|
|
component: () => import('../debug-pages/modalDebug/index.vue')
|
2020-12-12 13:51:22 +08:00
|
|
|
},
|
|
|
|
{
|
2021-04-20 12:49:47 +08:00
|
|
|
path: 'scrollbar-debug',
|
2021-01-13 12:01:02 +08:00
|
|
|
component: () => import('../debug-pages/scrollbarDebug/index.vue')
|
2020-12-12 13:51:22 +08:00
|
|
|
}
|
2020-03-19 18:26:48 +08:00
|
|
|
]
|
|
|
|
|
|
|
|
export default function debugRouteMixin (routes, childRoutes) {
|
2021-03-23 19:46:32 +08:00
|
|
|
childRoutes.push(...childDebugRoutes)
|
|
|
|
routes.push(...rootDebugRoutes)
|
2020-03-19 18:26:48 +08:00
|
|
|
}
|