fix(manifest): 新增首页的动态组件
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
export const BuilderComponentGroupConst = {
|
||||
HomeTemplate: 'homeTemplate',
|
||||
Layout: 'layout',
|
||||
Base: 'base',
|
||||
} as const
|
||||
|
||||
export type BuilderComponentGroupType =
|
||||
(typeof BuilderComponentGroupConst)[keyof typeof BuilderComponentGroupConst]
|
||||
@@ -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 // 提示信息
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user