You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The properties of the tooltip component, such as nzTitle nzPlacement, do not see the source and are prone to conflicts.
Like an element with attributes such as nzTitle nzPlacement nzContent, it looks like the element's own property or some global property, but it is actually introduced because of the existence of nz-tooltip, very unfriendly, not very readable.
Like nzTitle nzContent, other components are easy to have properties of this name, it is easy to conflict
What does the proposed API look like?
The nzTitle attribute has no meaning and should be removed: You can use nz-tooltip="XXX" directly. No need to set up nzTitle
What problem does this feature solve?
tooltip组件的属性,如nzTitle nzPlacement看不出来源,且容易造成冲突
像某个元素上有 nzTitle nzPlacement nzContent 等属性,看上去好像是元素自己的属性或者某种全局属性,但实际上是由于 nz-tooltip的存在才引入的,非常不友好,可读性不强
像 nzTitle nzContent 这种属性,其它组件很容易也存在此名字的属性,很容易冲突
What does the proposed API look like?
(请参考其它框架:如 https://material.angular.io/components/tooltip/examples
https://akveo.github.io/nebular/docs/components/tooltip/overview#nbtooltipdirective)
The text was updated successfully, but these errors were encountered: