import type { Component } from 'vue' // 模板布局注册表:slug → 懒加载 Layout export const TEMPLATE_LAYOUTS: Record Promise> = { 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)