Home > SYS_Message > removeFollowMouseTip
SYS_Message.removeFollowMouseTip() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Remove the follow-mouse tip
Signature
typescript
function removeFollowMouseTip(tip?: string): Promise<void>;1
Parameters
Parameter | Type | Description |
|---|---|---|
tip | string | (Optional) Tip content. If passed in, the tip is only removed when the current tip matches the specified content |
Returns
Promise<void>
Remarks
Remove the current or specified follow-mouse tip
Example
javascript
// 1. 展示一条持续提示(不传时间参数,不会自动消失)
eda.sys_Message.showFollowMouseTip('嘉立创示例_待移除的提示');
console.log('鼠标提示已显示');
// 2. 传入不匹配的内容:当前提示内容不同,不会被移除
eda.sys_Message.removeFollowMouseTip('嘉立创示例_另一条提示');
console.log('传入内容与当前提示不匹配,提示仍在显示');
// 3. 传入匹配的内容:内容一致时移除
eda.sys_Message.removeFollowMouseTip('嘉立创示例_待移除的提示');
console.log('传入内容与当前提示一致,提示已移除');
// 4. 不传参数:无论内容直接移除当前提示
eda.sys_Message.showFollowMouseTip('嘉立创示例_新的提示');
eda.sys_Message.removeFollowMouseTip();
console.log('不传参数已直接移除当前提示');1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16