import React from 'react'; import { Card } from 'antd'; import { DetailPanel, withEditorContext } from 'gg-editor'; import { EditorContextProps } from 'gg-editor/lib/components/EditorContext'; interface NodePanelProps extends EditorContextProps { } interface NodePanelState { } class Panel extends React.Component { componentDidMount() { console.log(this.props); this.props.graph.on("click", (ev: any) => { console.log("on click", ev); }) } render() { console.log("NodePanel render", this.props); return ( 未选中fefqwefqwefwewef ) } } export default withEditorContext(Panel);