feat: 增加视觉模板布局声明
This commit is contained in:
1 parent
f9c63a6895
commit
5b55f2424e
2 files changed
+8
No files matched your search
@@ -73,6 +73,7 @@ export interface VisualTemplateDefinition {
|
||||
description: string;
|
||||
variants: Record<string, string>;
|
||||
theme: { colors: Record<string, string>; radius: Record<string, string> };
|
||||
layout?: { home: string[]; offerings: string[]; detail: string[]; profile: string[] };
|
||||
}
|
||||
|
||||
export const visualTemplates: Record<VisualTemplateKey, VisualTemplateDefinition> = {
|
||||
|
||||
@@ -20,6 +20,12 @@ export interface ThemeManifest {
|
||||
spacing?: Record<string, string>;
|
||||
radius?: Record<string, string>;
|
||||
}
|
||||
export interface LayoutManifest {
|
||||
home: string[];
|
||||
offerings: string[];
|
||||
detail: string[];
|
||||
profile: string[];
|
||||
}
|
||||
|
||||
export interface TemplateManifest {
|
||||
templateKey: string;
|
||||
@@ -115,6 +121,7 @@ export interface RuntimeWorkspace {
|
||||
inquiryForms: RuntimeInquiryForm[];
|
||||
capabilities: RuntimeCapability[];
|
||||
theme: ThemeManifest;
|
||||
layout?: LayoutManifest;
|
||||
}
|
||||
|
||||
export function validateTemplateManifest(manifest: TemplateManifest): string[] {
|
||||
|
||||
Reference in new issue
Block a user