feat: 增加可视化模板页面编辑器
This commit is contained in:
1 parent
9d2038cc93
commit
c5af790554
24 files changed
+773
-129
No files matched your search
@@ -66,6 +66,8 @@ export type TemplateAdminField = {
|
||||
maxLength?: number;
|
||||
placeholder?: string;
|
||||
options?: Array<{ value: string; label: string }>;
|
||||
/** Stable visual-region identifier declared by the owning Admin section. */
|
||||
previewTarget?: string;
|
||||
};
|
||||
|
||||
/** 模板自己的浅层品牌字段,值存于 BrandProfile.config.templateData。 */
|
||||
@@ -83,6 +85,8 @@ export type TemplateAdminSection = {
|
||||
/** Exact Mini Program page that displays this section's content. */
|
||||
page: TemplatePageKey;
|
||||
target: "brand" | "offering" | "trust" | "inquiry";
|
||||
/** Visual regions rendered by this section's page. */
|
||||
previewTargets?: Array<{ key: string; label: string }>;
|
||||
fields: TemplateAdminField[];
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user