refactor: 删除fs-tree-view组件,用antd Tree重新实现

This commit is contained in:
duanhongbo committed 2020-11-20 18:24:34 +08:00
1 parent 130aec7363
commit fcb27ff156
14 files changed
+224 -1762

No files matched your search

+13 -9
View File
@@ -81,15 +81,19 @@ export default class Main extends Component {
return (
<Layout className="body">
<Sider className="sider" width={250}>
<Properties
workdir={workdir}
onOpenTree={(path) => {
this.tabs.openFile(path);
}}
onDeleteTree={(path) => {
this.tabs.closeFile(path);
}}
/>
{workdir !== "" ? (
<Properties
workdir={workdir}
onOpenTree={(path) => {
this.tabs.openFile(path);
}}
onDeleteTree={(path) => {
this.tabs.closeFile(path);
}}
/>
) : (
"Please Open Workspace"
)}
</Sider>
<Content className="content">
<TreeTabs