复制粘贴节点

This commit is contained in:
zhandouxiaojiji committed 2020-11-11 10:46:38 +08:00
1 parent 0c5d62157b
commit f0b785a168
4 files changed
+64 -1

No files matched your search

+11 -1
View File
@@ -36,7 +36,17 @@ export default class TreeTabs extends Component<TreeTabsProps, TreeTabsState> {
ipcRenderer.on(MainEventType.DELETE_NODE, () => {
const editor = this.getCurEditor();
editor?.deleteNode();
})
});
ipcRenderer.on(MainEventType.COPY_NODE, () => {
const editor = this.getCurEditor();
editor?.copyNode();
});
ipcRenderer.on(MainEventType.PASTE_NODE, () => {
const editor = this.getCurEditor();
editor?.pasteNode();
});
ipcRenderer.on(MainEventType.SAVE, (event: any) => {
const { curPath } = this.state;