@aliretail/react-materials-components
Version:
15 lines (14 loc) • 666 B
TypeScript
import OriginLogicalEditor, { Value } from './LogicalEditor';
import { registerConditionComponent } from './map';
import Single from './Single';
declare type OriginLogicalEditorType = typeof OriginLogicalEditor;
declare type ValidatorInterface = (rule: any, value: Value, required?: boolean) => Promise<void>;
interface LogicalEditorInterface extends OriginLogicalEditorType {
validator: ValidatorInterface;
/** 注册一个新的表单条件组件 */
registerConditionComponent: typeof registerConditionComponent;
/** 单层的组件 */
Single: typeof Single;
}
declare const LogicalEditor: LogicalEditorInterface;
export default LogicalEditor;