import { ComponentData } from "maishu-jueying"; import "./component-editor.scss"; import { ComposeEditor, Props, State } from "./compose-editor"; export type TComponentData = ComponentData & { props: T; }; export type ComponentEditorProps = Props>; /** * 组件编辑器基类:子类以 static 属性声明 propertyEditors(参考 node-shop-v2 的 HeroBannerEditor 写法), * 由基类负责渲染属性编辑行(支持分组、内嵌模式、子组件跳转)。 */ export declare class ComponentEditor extends ComposeEditor> { static getDerivedStateFromProps(props: Props, state: State>): { value: ComponentData | undefined; } | null; /** * 写入单个属性并回传:值的形态保持不变 *(组件数据形态回传组件数据,普通对象形态回传对象本身)。 */ changeProperty(propertyName: string, newValue: any): void; }