@huanban/rulego-editor-vue 1.3.3 → 1.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -157,6 +157,18 @@ async function openEditor(id: string) {
157
157
 
158
158
  默认新建弹窗包含 ID、名称、主链/子链、初始状态、调试模式、分类、描述。ID 自动生成,也可手动输入;为兼容后台路由,ID 不能包含 `/`、`\` 或 `.`。
159
159
 
160
+ `WorkflowInfoPanel` 默认只显示基础信息、输入定义、变量和应用集成。维护验证是扩展能力,不是默认工作流详情的一部分;只有宿主后端已经实现 `validate-upstream`、`schema-diff`、`repair-plan`、`patch-preview` 这组分析接口时才开启:
161
+
162
+ ```vue
163
+ <WorkflowInfoPanel
164
+ :api-base="apiBase"
165
+ :workflow="selectedWorkflow"
166
+ show-maintenance
167
+ />
168
+ ```
169
+
170
+ 如果后台没有这些接口,保持默认关闭,避免用户点击后出现 `404 Not Found`。
171
+
160
172
  ### 服务地址、设置和登录
161
173
 
162
174
  Vue 版通过 `:options` 传入后台地址、认证和设置回调:
@@ -28,6 +28,8 @@ export interface WorkflowInfoPanelProps {
28
28
  icons?: Partial<WorkflowInfoIcons>;
29
29
  /** 默认激活 Tab */
30
30
  defaultTab?: string;
31
+ /** 显示维护验证扩展 Tab;该能力依赖宿主后端提供 validate-upstream/schema-diff/repair-plan/patch-preview 扩展接口,默认关闭 */
32
+ showMaintenance?: boolean;
31
33
  /** 额外 Tab 列表 */
32
34
  extraTabs?: ExtraTab[];
33
35
  /** Current locale. Defaults to zh-CN. */
@@ -59,6 +61,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
59
61
  theme: string;
60
62
  className: string;
61
63
  defaultTab: string;
64
+ showMaintenance: boolean;
62
65
  }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
63
66
  save: (type: string) => void;
64
67
  error: (error: Error) => void;
@@ -67,6 +70,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
67
70
  theme: string;
68
71
  className: string;
69
72
  defaultTab: string;
73
+ showMaintenance: boolean;
70
74
  }>>> & Readonly<{
71
75
  onSave?: ((type: string) => any) | undefined;
72
76
  onError?: ((error: Error) => any) | undefined;
@@ -75,6 +79,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
75
79
  theme: WorkflowTheme;
76
80
  className: string;
77
81
  defaultTab: string;
82
+ showMaintenance: boolean;
78
83
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
79
84
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
80
85
  declare const _default: typeof __VLS_export;