refactor: 删除fs-tree-view组件,用antd Tree重新实现
This commit is contained in:
1 parent
130aec7363
commit
fcb27ff156
14 files changed
+224
-1762
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user