@huanban/rulego-editor-react 1.0.14 → 1.1.0

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.
@@ -90,6 +90,8 @@ export interface RuleGoEditorProps {
90
90
  showRunHistory?: boolean;
91
91
  /** 运行记录 URL (支持 {chainId} 占位符) */
92
92
  runHistoryUrl?: string;
93
+ /** 是否在工具栏显示「链追溯」按钮, 默认 false */
94
+ showTraceButton?: boolean;
93
95
  /** 是否显示调试日志 Tab */
94
96
  showDebugTab?: boolean;
95
97
  /** 语言设置, 默认 'zh_cn' */
@@ -124,6 +126,8 @@ export interface RuleGoEditorProps {
124
126
  }) => void;
125
127
  /** 劫持运行 */
126
128
  onRunClick?: (chainId: string) => void;
129
+ /** 点击「链追溯」按钮回调,回传当前完整的规则链数据 (用于构建追溯底图) */
130
+ onTraceClick?: (chainInfo: any) => void;
127
131
  /** 劫持组件管理 */
128
132
  onComponentManage?: () => void;
129
133
  /** 语言切换回调 */