-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
feat: tooltip will change the position with the change of origin in custom element #4613
Conversation
This preview will be available after the TravisCI is passed. |
Codecov Report
@@ Coverage Diff @@
## master #4613 +/- ##
=========================================
Coverage ? 93.23%
=========================================
Files ? 520
Lines ? 12828
Branches ? 2014
=========================================
Hits ? 11960
Misses ? 452
Partials ? 416
Continue to review full report at Codecov.
|
@@ -116,6 +125,7 @@ export abstract class NzTooltipBaseDirective implements OnChanges, OnInit, OnDes | |||
protected hostView: ViewContainerRef, | |||
protected resolver: ComponentFactoryResolver, | |||
protected renderer: Renderer2, | |||
protected nzTooltipScrollDirective: NzTooltipScrollDirective, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be optional.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have add @optional in NzTooltipDirective
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
另外这个不是个 fix,而是个 feat,因为你引入了新的 API
I have written a test named I don't know why, who can help me? |
Hi there! Could you please rebase to the lattest commit on the master branch? We've refactored this comopnent. |
Emmmm 似乎使用 CDK 提供的 CdkScrollable 就可以了 |
I'll rebase it when I am free. And I will find some information about CdkScrollable to make up a better resolution. |
先关闭这个PR了, 手头已安排的事情较多, 最近都没时间. 之后有空了我会重新基于现有版本提一个PR. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #3842
What is the new behavior?
Does this PR introduce a breaking change?
Other information