{/* 输入框 */}
{renderInput()}
- {/* 变量高亮预览 */}
- {hasVariables && !showSuggestions && (
-
- )}
-
- {/* 变量提示弹窗 - 绝对定位 */}
+ {/* 变量提示弹窗 - 绝对定位,使用更高的 z-index */}
{showSuggestions && (
{renderSuggestions()}
diff --git a/frontend/src/pages/Workflow/Design/nodes/NotificationNode.tsx b/frontend/src/pages/Workflow/Design/nodes/NotificationNode.tsx
index 02ad5e41..133fa2bb 100644
--- a/frontend/src/pages/Workflow/Design/nodes/NotificationNode.tsx
+++ b/frontend/src/pages/Workflow/Design/nodes/NotificationNode.tsx
@@ -1,4 +1,4 @@
-import { ConfigurableNodeDefinition, NodeType, NodeCategory } from './types';
+import {ConfigurableNodeDefinition, NodeType, NodeCategory} from './types';
/**
* 通知节点定义
@@ -14,7 +14,7 @@ export const NotificationNodeDefinition: ConfigurableNodeDefinition = {
// 渲染配置
renderConfig: {
shape: 'rounded-rect',
- size: { width: 120, height: 60 },
+ size: {width: 120, height: 60},
icon: {
type: 'emoji',
content: '🔔',
@@ -29,7 +29,7 @@ export const NotificationNodeDefinition: ConfigurableNodeDefinition = {
},
handles: {
input: true,
- output: true
+ output: true
},
features: {
showBadge: true,
@@ -85,35 +85,14 @@ export const NotificationNodeDefinition: ConfigurableNodeDefinition = {
},
required: ["nodeName", "nodeCode", "notificationType", "title", "content", "recipients"]
},
-
- // 输入映射 Schema(可以引用上游节点的输出)
- inputMappingSchema: {
- type: "object",
- title: "输入映射",
- description: "配置从上游节点获取的数据",
- properties: {
- dynamicTitle: {
- type: "string",
- title: "动态标题",
- description: "使用上游节点输出动态设置标题,如 ${upstream.buildStatus}",
- default: ""
- },
- dynamicContent: {
- type: "string",
- title: "动态内容",
- description: "使用上游节点输出动态设置内容,如 构建结果: ${upstream.buildStatus}",
- format: "textarea",
- default: ""
- },
- dynamicRecipients: {
- type: "string",
- title: "动态收件人",
- description: "使用上游节点输出动态设置收件人",
- default: ""
- }
- }
- }
-
- // ✅ 通知节点没有输出能力(不定义 outputs 字段)
+ outputs: [{
+ name: "status",
+ title: "执行状态",
+ type: "string",
+ enum: ["SUCCESS", "FAILURE"],
+ description: "执行的结果状态",
+ example: "SUCCESS",
+ required: true
+ }]
};