1. 增加了几种模板
This commit is contained in:
17
client/src/templates/registry.ts
Normal file
17
client/src/templates/registry.ts
Normal 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)
|
||||
Reference in New Issue
Block a user