feat: 输出视觉模板布局顺序
This commit is contained in:
1 parent
5b55f2424e
commit
8ecd94c26a
3 files changed
+14
No files matched your search
@@ -269,6 +269,7 @@ export class PublicWorkspaceController {
|
||||
theme: visualTemplate?.theme ?? {
|
||||
colors: { background: "#F7F5F1", foreground: "#252525", accent: "#8A6846" },
|
||||
},
|
||||
...(visualTemplate?.layout ? { layout: visualTemplate.layout } : {}),
|
||||
};
|
||||
return {
|
||||
...runtimeWorkspace,
|
||||
|
||||
@@ -199,6 +199,7 @@ export interface PublicWorkspace {
|
||||
spacing?: Record<string, string>;
|
||||
radius?: Record<string, string>;
|
||||
};
|
||||
layout?: { home: string[]; offerings: string[]; detail: string[]; profile: string[] };
|
||||
contractVersion: string;
|
||||
brand: BrandProfile | null;
|
||||
template: { key: BrandTemplateKey; version: string; name: string } | null;
|
||||
|
||||
@@ -87,6 +87,12 @@ export const visualTemplates: Record<VisualTemplateKey, VisualTemplateDefinition
|
||||
colors: { background: "#F7F5F1", foreground: "#252525", accent: "#8A6846", dark: "#202221" },
|
||||
radius: { card: "16rpx" },
|
||||
},
|
||||
layout: {
|
||||
home: ["founder-card", "brand-hero", "trust-proof", "trust-manifesto", "offering-list"],
|
||||
offerings: ["offering-list"],
|
||||
detail: ["offering-detail"],
|
||||
profile: ["profile"],
|
||||
},
|
||||
},
|
||||
"minimal-neutral": {
|
||||
key: "minimal-neutral",
|
||||
@@ -98,6 +104,12 @@ export const visualTemplates: Record<VisualTemplateKey, VisualTemplateDefinition
|
||||
colors: { background: "#FAFAF8", foreground: "#202221", accent: "#4B5563", dark: "#202221" },
|
||||
radius: { card: "8rpx" },
|
||||
},
|
||||
layout: {
|
||||
home: ["brand-hero", "founder-card", "offering-list", "trust-proof"],
|
||||
offerings: ["offering-list"],
|
||||
detail: ["offering-detail"],
|
||||
profile: ["profile"],
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user