g6-editor icon indicating copy to clipboard operation
g6-editor copied to clipboard

卡片与节点删除的回调没有作用

Open PatrickChou opened this issue 6 years ago • 1 comments

用了itemremove的监听,但没有作用。 代码如下: this.page = new G6Editor.Flow({ graph: { container: 'page', } }); this.page.on('itemremove', function(ev){ console.log(ev); })

PatrickChou avatar Sep 19 '18 02:09 PatrickChou

目前的解决办法是: this.editor = new G6Editor(); this.editor.on('aftercommandexecute', ev=>{ if(ev.command.name == 'delete') { ...statement } });

PatrickChou avatar Sep 19 '18 07:09 PatrickChou