node add desc

This commit is contained in:
zhandouxiaojiji committed 2020-10-23 18:04:54 +08:00
1 parent ad320d73a5
commit 1c7ef5903d
4 files changed
+35 -27

No files matched your search

+6
View File
@@ -80,11 +80,17 @@ export default class Editor extends React.Component<EditorProps, EditorState> {
graph.on('node:mouseenter', (e: G6GraphEvent) => {
const { item } = e;
if(item.hasState('selected')) {
return;
}
graph.setItemState(item, 'hover', true);
});
graph.on('node:mouseleave', (e: G6GraphEvent) => {
const { item } = e;
if(item.hasState('selected')) {
return;
}
graph.setItemState(item, 'hover', false);
});