18 lines
791 B
TypeScript
18 lines
791 B
TypeScript
|
|
import type { Component } from 'vue'
|
|||
|
|
|
|||
|
|
// 模板布局注册表:slug → 懒加载 Layout
|
|||
|
|
export const TEMPLATE_LAYOUTS: Record<string, () => Promise<Component>> = {
|
|||
|
|
classic: () => import('../layouts/ClassicLayout.vue'),
|
|||
|
|
'ubuntu-terminal': () => import('../layouts/TerminalLayout.vue'),
|
|||
|
|
pixel: () => import('./pixel/PixelLayout.vue'),
|
|||
|
|
magazine: () => import('./magazine/MagazineLayout.vue'),
|
|||
|
|
newspaper: () => import('./newspaper/NewspaperLayout.vue'),
|
|||
|
|
bento: () => import('./bento/BentoLayout.vue'),
|
|||
|
|
glass: () => import('./glass/GlassLayout.vue'),
|
|||
|
|
retro: () => import('./retro/RetroLayout.vue'),
|
|||
|
|
guofeng: () => import('./guofeng/GuofengLayout.vue'),
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// 内置模板 slug(与后端保留字一致)
|
|||
|
|
export const BUILTIN_TEMPLATE_SLUGS = Object.keys(TEMPLATE_LAYOUTS)
|