import React from "react"; import type { ComponentData } from "../../component-parser"; import ObjectArrayEditor, { Props as ObjectArrayEditorProps } from "./object-array"; import { PropertyEditorProps } from "../../type"; import type { ComponentEditors } from "./object-editor"; import { ObjectAppender } from "../../component-designer"; export interface Props extends PropertyEditorProps, Omit { /** 按组件类型索引的编辑器集合:类型名 → 编辑器条目;不传时默认使用组件编辑器注册表(configData.componentEditors) */ editors?: ComponentEditors | (() => ComponentEditors); /** 配置组件的 props */ components?: { [key: string]: ComponentData["props"]; }; } export declare function Footer(props: { children?: React.ReactNode; }): React.JSX.Element; export declare class ComponentArrayEditor extends ObjectArrayEditor { constructor(props: Props); /** 未传 editors 时默认使用组件编辑器注册表 */ protected getDefaultEditors(): Record>>; protected getPropertyValue(target: ComponentData, property: string): any; protected setPropertyValue(target: ComponentData, property: string, value: any): void; protected newItem(id: string, typeName: string, pageData: ComponentData): ComponentData; protected renderAppender(onAdd: ObjectAppender["props"]["onAdd"]): React.JSX.Element; protected renderPropertyEditors(target: ComponentData, onPropertyChange: (propertyName: string, propertyValue: any) => void, typeName?: string): React.ReactNode; } export default ComponentArrayEditor;