g6-editor
g6-editor copied to clipboard
卡片与节点删除的回调没有作用
用了itemremove的监听,但没有作用。 代码如下: this.page = new G6Editor.Flow({ graph: { container: 'page', } }); this.page.on('itemremove', function(ev){ console.log(ev); })
目前的解决办法是: this.editor = new G6Editor(); this.editor.on('aftercommandexecute', ev=>{ if(ev.command.name == 'delete') { ...statement } });