/** * 规则组编辑器组件 - 紧凑版 * * 生产环境优化:紧凑布局,小尺寸,优化空间利用 */ import React from 'react'; import type { RuleGroupDto, RulePath } from './types'; export interface RuleGroupEditorProps { /** 当前规则组的路径 */ path: RulePath; /** 当前嵌套层级(从 0 开始) */ level: number; /** 最大允许嵌套层级 */ maxLevel: number; /** 是否只读模式 */ readonly?: boolean; /** 是否允许与另一个字段比较 @author nokecy */ allowFieldComparison?: boolean; /** 规则组变更回调(可选) */ onChange?: (group: RuleGroupDto) => void; } /** * 规则组编辑器组件 - 紧凑版 * 移除Card组件,使用轻量级div布局 */ export declare const RuleGroupEditor: React.FC; export default RuleGroupEditor;