We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a35235 commit 8007c93Copy full SHA for 8007c93
src/G6/behaviorConfig.ts
@@ -2,7 +2,6 @@ import {IG6GraphEvent} from "@antv/g6-core/lib/types";
2
import {BehaviorOption} from "@antv/g6";
3
import {useNodeStore} from "@/store/node.ts";
4
import pinia from "@/store";
5
-import {INode} from "@antv/g6-core/lib/interface/item";
6
7
const nodeStore = useNodeStore(pinia);
8
@@ -13,7 +12,7 @@ export const activateNodeBehavior: BehaviorOption = {
13
12
};
14
},
15
async onNodeClick(evt: IG6GraphEvent) {
16
- const node: INode = evt.item;
+ const node = evt.item!;
17
console.log(node.getModel().id);
18
await nodeStore.updateData(node.getModel())
19
0 commit comments