This commit is contained in:
zhandouxiaojiji committed 2020-10-16 18:01:09 +08:00
1 parent 6fc77ad797
commit 46123a9b83
5 files changed
+2900 -212

No files matched your search

+9 -2
View File
@@ -7,10 +7,13 @@ import BehaviorTree from './BehaviorTree';
import './Editor.css';
export interface EditorProps {
filepath: string;
}
export default class Editor extends React.Component<EditorProps> {
componentWillMount() {
}
componentDidMount() {
console.log("props", this.props);
}
@@ -20,7 +23,11 @@ export default class Editor extends React.Component<EditorProps> {
<GGEditor className="editor">
<Row className="editorBd">
<Col span={18} className="editorContent">
<BehaviorTree />
<BehaviorTree
onSelectNode={(node) => {
console.log("onSelectNode", node)
}}
/>
</Col>
<Col span={6} className="editorSidebar">
<NodePanel />