历史回述单击
Showing
1 changed file
with
4 additions
and
0 deletions
... | @@ -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 | }); | ... | ... |
-
Please register or sign in to post a comment