feat(AppGuide): 新增应用指南组件

This commit is contained in:
chengcheng
2025-08-30 14:56:20 +08:00
parent 68d0048393
commit 368c90f327
10 changed files with 101 additions and 7 deletions
+3 -1
View File
@@ -8,6 +8,7 @@ export const ComponentSceneConst = {
DynamicPage: "dynamicPage", // 自定义页面
Workflow: "workflow", // 工作流
DrawPanne: "drawPanne", // 绘画面板
AppGuide: "appGuide" // 应用引导
} as const;
export type ComponentSceneType =
@@ -24,12 +25,13 @@ export interface IComponentMateInfo<
path: string; // 组件路径
description: string; // 描述
scenes: T; // 所属场景
data?: ComponentDataMap[T]; // 组件数据
data: ComponentDataMap[T]; // 组件数据
}
export type ComponentDataMap = {
[ComponentSceneConst.DrawPanne]: IDrawPanneData;
[ComponentSceneConst.DynamicPage]: IDynamicPageData;
[ComponentSceneConst.AppGuide]: undefined;
[ComponentSceneConst.Workflow]?: never;
};