style: format codes

This commit is contained in:
duanhongbo committed 2020-11-12 17:24:08 +08:00
1 parent c3ea18e307
commit 00e79d641e
14 files changed
+2152 -2186

No files matched your search

+28 -33
View File
@@ -1,33 +1,28 @@
import React from 'react';
import { Card } from 'antd';
import { INode } from '@antv/g6/lib/interface/item';
import { BehaviorTreeModel } from '../../common/BehaviorTreeModel';
interface TreePanelProps {
model?: BehaviorTreeModel;
}
interface TreePanelState {
}
export default class TreePanel extends React.Component<TreePanelProps, TreePanelState> {
state: TreePanelState = {};
componentDidMount() {
}
render() {
const { model } = this.props;
if(!model) {
return (<div/>)
}
return (
<Card title="概况" style={{ height: "100%" }}>
行为树:{model.name}
</Card>
)
}
}
import React from "react";
import { Card } from "antd";
import { INode } from "@antv/g6/lib/interface/item";
import { BehaviorTreeModel } from "../../common/BehaviorTreeModel";
interface TreePanelProps {
model?: BehaviorTreeModel;
}
interface TreePanelState {}
export default class TreePanel extends React.Component<TreePanelProps, TreePanelState> {
state: TreePanelState = {};
componentDidMount() {}
render() {
const { model } = this.props;
if (!model) {
return <div />;
}
return (
<Card title="概况" style={{ height: "100%" }}>
行为树:{model.name}
</Card>
);
}
}