mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-06 12:17:13 +08:00
59 lines
1.5 KiB
JavaScript
59 lines
1.5 KiB
JavaScript
const rootDebugRoutes = [
|
|
{
|
|
path: '/n-popover-debug',
|
|
component: () => import('../debug-pages/popoverDebug.vue')
|
|
},
|
|
{
|
|
path: '/n-back-top-debug',
|
|
component: () => import('../debug-pages/backTopDebug/index.vue')
|
|
},
|
|
{
|
|
path: '/n-cascader-debug',
|
|
component: () => import('../debug-pages/cascaderDebug/index.vue')
|
|
}
|
|
]
|
|
|
|
const childDebugRoutes = [
|
|
{
|
|
path: 'n-scrollbar-debug2',
|
|
component: () => import('../debug-pages/scrollbarDebug2/index.vue')
|
|
},
|
|
{
|
|
path: 'n-date-picker-debug',
|
|
component: () => import('../debug-pages/datePickerDebug/index.vue')
|
|
},
|
|
{
|
|
path: 'n-suffix-debug',
|
|
component: () => import('../debug-pages/suffixDebug/index.vue')
|
|
},
|
|
{
|
|
path: 'n-vertical-align-debug',
|
|
component: () => import('../debug-pages/verticalAlignDebug.vue')
|
|
},
|
|
{
|
|
path: 'n-icon-transition-debug',
|
|
component: () => import('../debug-pages/iconTransitionDebug.vue')
|
|
},
|
|
{
|
|
path: 'n-select-debug',
|
|
component: () => import('../debug-pages/selectDebug.vue')
|
|
},
|
|
{
|
|
path: 'n-router-debug',
|
|
component: () => import('../debug-pages/routerDebug.vue')
|
|
},
|
|
{
|
|
path: 'n-modal-debug',
|
|
component: () => import('../debug-pages/modalDebug/index.vue')
|
|
},
|
|
{
|
|
path: 'n-scrollbar-debug',
|
|
component: () => import('../debug-pages/scrollbarDebug/index.vue')
|
|
}
|
|
]
|
|
|
|
export default function debugRouteMixin (routes, childRoutes) {
|
|
childRoutes.push(...childDebugRoutes)
|
|
routes.push(...rootDebugRoutes)
|
|
}
|