1. 增加了几种模板

This commit is contained in:
李琦
2026-08-24 13:06:04 +08:00
parent 1617baec19
commit 287e428e87
124 changed files with 11330 additions and 142 deletions

View File

@@ -0,0 +1,17 @@
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)