-
Notifications
You must be signed in to change notification settings - Fork 4k
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
chore(module:message,notification): refactor #4723
Conversation
This preview will be available after the AzureCI is passed. |
Codecov Report
@@ Coverage Diff @@
## master #4723 +/- ##
==========================================
+ Coverage 92.93% 92.96% +0.02%
==========================================
Files 505 511 +6
Lines 12718 13027 +309
Branches 1963 1971 +8
==========================================
+ Hits 11819 12110 +291
- Misses 474 484 +10
- Partials 425 433 +8
Continue to review full report at Codecov.
|
818ef65
to
ecd1be4
Compare
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.
Preview 打不开组件,不知道是不是样式没同步的原因。
private eraseTimingStart: number; | ||
private eraseTTL: number; // Time to live. | ||
|
||
constructor(private _messageContainer: NzMessageContainerComponent, protected cdr: ChangeDetectorRef) {} |
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.
constructor(private _messageContainer: NzMessageContainerComponent, protected cdr: ChangeDetectorRef) {} | |
constructor(private messageContainer: NzMessageContainerComponent, protected cdr: ChangeDetectorRef) {} |
this.nzConfigService | ||
.getConfigChangeEventForComponent(NZ_CONFIG_COMPONENT_NAME) | ||
.subscribe(() => this.updateConfig()); | ||
this.nzConfigService.getConfigChangeEventForComponent(NZ_CONFIG_COMPONENT_NAME).subscribe(() => this.updateConfig()); |
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.
这里不需要取消订阅吗?
@@ -32,7 +32,20 @@ const NZ_NOTIFICATION_DEFAULT_CONFIG: Required<NotificationConfig> = { | |||
selector: 'nz-notification-container', | |||
exportAs: 'nzNotificationContainer', | |||
preserveWhitespaces: false, | |||
templateUrl: './nz-notification-container.component.html' | |||
template: ` | |||
<div class="ant-notification ant-notification-topLeft" [style.top]="top" [style.left]="'0px'"> |
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.
4eebbec
to
6045d99
Compare
close NG-ZORRO#4338 chore(module:message,notification): refactor
* feat(module:notification): support opening at different places close NG-ZORRO#4338 chore(module:message,notification): refactor * chore: test with cdr * chore: remove console
* feat(module:notification): support opening at different places close NG-ZORRO#4338 chore(module:message,notification): refactor * chore: test with cdr * chore: remove console
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: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information