feat: fs tree component

This commit is contained in:
duanhongbo committed 2020-11-19 18:18:45 +08:00
1 parent 6c57df23f2
commit 278255efd7
18 files changed
+2427 -94

No files matched your search

+4 -3
View File
@@ -34,12 +34,10 @@ export default class Main extends Component {
settings: Settings;
tabs: TreeTabs;
componentWillMount() {
componentDidMount() {
this.updateSettings();
RegisterNode(this.settings);
}
componentDidMount() {
ipcRenderer.on(MainEventType.OPEN_FILE, (event: any, path: any) => {
this.setState({ curPath: path });
});
@@ -73,6 +71,9 @@ export default class Main extends Component {
onOpenTree={(path) => {
this.tabs.openFile(path);
}}
onDeleteTree={(path) => {
this.tabs.closeFile(path);
}}
/>
</Sider>
<Content className="content">