在el-button标签中绑定mouseenter事件,同时调用throttleGetSyncStatus函数进行节流处理: <el-button @mouseenter="throttleGetSyncStatus(row)" /> 1. 这样就能实现每 3 秒执行一次getSyncStatus函数的效果。
MouseEnter Occurs when the mouse pointer enters the control. (Inherited from Control) MouseHover Occurs when the mouse pointer rests on the control. (Inherited from Control) MouseLeave Occurs when the mouse pointer leaves the control. (Inherited from Control) MouseMove Occurs when the ...
MouseEnter Occurs when the mouse pointer enters the item. (Inherited from ToolStripItem) MouseHover Occurs when the mouse pointer hovers over the item. (Inherited from ToolStripItem) MouseLeave Occurs when the mouse pointer leaves the item. (Inherited from ToolStripItem) MouseMove Occurs...