Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip设置了value不展示,实际鼠标悬浮上依然会展示 #1039

Closed
junqiyue opened this issue Sep 12, 2024 · 7 comments
Closed
Labels
bug Something isn't working

Comments

@junqiyue
Copy link

junqiyue commented Sep 12, 2024

CodeSandbox
https://stackblitz.com/edit/vitejs-vite-pemmux?file=src%2FApp.vue

Description
Tooltip设置了value不展示,实际鼠标悬浮上依然会展示;场景:想根据变量控制Tooltip显隐

@warrior-bing
Copy link
Collaborator

value属性是控制默认是否是展示的,需求根据变量控制Tooltip显隐,可以使用disabled属性 @junqiyue

@Javey
Copy link
Member

Javey commented Sep 19, 2024

image
添加always属性能够根据value控制显隐

@junqiyue
Copy link
Author

image @Javey

@Javey
Copy link
Member

Javey commented Sep 23, 2024

@warrior-bing 冰哥,有时间看看这个bug

@Javey Javey added the bug Something isn't working label Sep 23, 2024
@Javey
Copy link
Member

Javey commented Sep 23, 2024

value属性是控制默认是否是展示的,需求根据变量控制Tooltip显隐,可以使用disabled属性 @junqiyue

这个方案亲测有效
https://stackblitz.com/edit/vitejs-vite-qy3jzo?file=src%2FApp.vue

@junqiyue
Copy link
Author

value属性是控制默认是否是展示的,需求根据变量控制Tooltip显隐,可以使用disabled属性 @junqiyue

这个方案亲测有效 https://stackblitz.com/edit/vitejs-vite-qy3jzo?file=src%2FApp.vue

okk,加diabled是可以的,上次我也加了disabled没生效,估计页面没刷新,感谢两位大佬

@warrior-bing
Copy link
Collaborator

Fix by v3.4.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants