ksc-fe / kpc

A UI Components Library for Intact, Vue, React and Angular.
https://design.ksyun.com/
MIT License
362 stars 53 forks source link

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

Closed junqiyue closed 6 days ago

junqiyue commented 1 month ago

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

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

warrior-bing commented 1 month ago

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

Javey commented 1 month ago

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

junqiyue commented 3 weeks ago
image

@Javey

Javey commented 3 weeks ago

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

Javey commented 3 weeks ago

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

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

junqiyue commented 3 weeks ago

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

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

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

warrior-bing commented 6 days ago

Fix by v3.4.4