Skip to content

Add plugin event bus to tooltip #16151

Description

@TCOTC

事件1
时机:tooltip 显示(移除 fn__none)之前
传递:触发 tooltip 的元素、tooltip 显示文本、tooltip 元素本身

事件2
时机:tooltip 隐藏(添加 fn__none)之后
传递:tooltip 元素本身

一直以来都是靠监听实现,突然想起来可以加事件总线……

我有空再看看。


比如可以做一个阻止特定元素显示 tooltip 的插件,解决 https://ld246.com/article/1772190225050 的需求

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions