fix: tips

This commit is contained in:
Fine 2024-01-12 19:15:55 +08:00
parent a827c492ba
commit 986b428768

View File

@ -149,6 +149,7 @@ limitations under the License. -->
function stopMoveNode(event: MouseEvent) { function stopMoveNode(event: MouseEvent) {
event.stopPropagation(); event.stopPropagation();
currentNode.value = null; currentNode.value = null;
hideTip();
} }
function showNodeTip(event: MouseEvent, data: Node) { function showNodeTip(event: MouseEvent, data: Node) {
@ -156,7 +157,7 @@ limitations under the License. -->
} }
function hideTip() { function hideTip() {
emits("showNodeTip"); emits("hideTip");
} }
function handleNodeClick(event: MouseEvent, d: Node & { x: number; y: number }) { function handleNodeClick(event: MouseEvent, d: Node & { x: number; y: number }) {