fix(manifest): 新增首页的动态组件

This commit is contained in:
chengcheng
2025-08-29 18:02:27 +08:00
parent 6e3253af8c
commit 68d0048393
10 changed files with 1281 additions and 5 deletions
@@ -0,0 +1,8 @@
export const BuilderComponentGroupConst = {
HomeTemplate: 'homeTemplate',
Layout: 'layout',
Base: 'base',
} as const
export type BuilderComponentGroupType =
(typeof BuilderComponentGroupConst)[keyof typeof BuilderComponentGroupConst]
+11 -1
View File
@@ -2,6 +2,7 @@ import type {
ComfyUIProperties,
ComponentGroupType,
} from "~/composables/meta/interface/drawPanne.interface";
import type {BuilderComponentGroupType} from "~/composables/meta/interface/dynamicPage.interface";
export const ComponentSceneConst = {
DynamicPage: "dynamicPage", // 自定义页面
@@ -28,7 +29,7 @@ export interface IComponentMateInfo<
export type ComponentDataMap = {
[ComponentSceneConst.DrawPanne]: IDrawPanneData;
[ComponentSceneConst.DynamicPage]?: never;
[ComponentSceneConst.DynamicPage]: IDynamicPageData;
[ComponentSceneConst.Workflow]?: never;
};
@@ -53,3 +54,12 @@ export interface IDrawPanneData {
type?: "number" | "string" | "boolean";
isUnique?: boolean;
}
export interface IDynamicPageData {
icon: string // 图标
label: string // 标签
group: BuilderComponentGroupType //分组
props?: Record<string, unknown> // 组件属性
hint?: string // 提示信息
}