Skip to Content
参考类型

NodeMouseHandler

GitHub上的源代码 

NodeMouseHandler 类型定义了在节点上发生鼠标事件时调用的回调函数。该回调函数接收事件和触发它的节点。

🌐 The NodeMouseHandler type defines the callback function that is called when mouse events occur on a node. This callback receives the event and the node that triggered it.

export type NodeMouseHandler = (event: React.MouseEvent, node: Node) => void;
Parameters:
NameTypeDefault
eventMouseEvent<Element, MouseEvent>
nodeNodeType
Returns:
void
Last updated on