682cf5fc by 焦泽平

历史回述单击

1 parent b161f9db
...@@ -186,6 +186,10 @@ export default { ...@@ -186,6 +186,10 @@ export default {
186 graph.data(data); 186 graph.data(data);
187 graph.render(); 187 graph.render();
188 188
189 graph.on('node:click', e => {
190 alert(e);
191 });
192
189 graph.on('node:mouseenter', e => { 193 graph.on('node:mouseenter', e => {
190 graph.setItemState(e.item, 'active', true) 194 graph.setItemState(e.item, 'active', true)
191 }); 195 });
......