feat: 按视觉模板 manifest 驱动小程序运行时

This commit is contained in:
que01 committed 2026-09-23 14:26:39 +08:00
1 parent 031c81a7c1
commit ce958fc1ae
17 files changed
+149 -26

No files matched your search

+30
View File
@@ -229,6 +229,36 @@ export interface PublicWorkspace {
name: string;
variants: Record<string, string>;
} | null;
visualTemplateManifest?: {
schemaVersion: "1.0";
key: string;
version: string;
name: string;
brandFirst: true;
tokens: {
colors: Record<string, string>;
spacing: Record<string, string>;
typography: Record<string, string>;
radius: Record<string, string>;
shadows?: Record<string, string>;
};
pages: Array<{
key: string;
title: string;
modules: Array<{
key: string;
type: string;
variant: string;
required: boolean;
dataSlots?: string[];
assetSlots?: string[];
capability?: string;
}>;
}>;
assets: Array<Record<string, unknown>>;
dataSlots: Array<Record<string, unknown>>;
capabilities: string[];
};
capabilities: string[];
modules: BrandModule[];
runtimeModules: Array<{