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(module:notification): add close icon prop #4495
Conversation
This preview will be available after the checks is complete. |
<i nz-icon nzType="close" class="ant-notification-close-icon"></i> | ||
<ng-container *ngIf="nzMessage.options?.nzCloseIcon"> | ||
<ng-container *nzStringTemplateOutlet="nzMessage.options?.nzCloseIcon"> | ||
<i nz-icon [nzType]="nzMessage.options?.nzCloseIcon"></i> |
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.
上面安全取值了,下面的 ?.
操作符是不是可以不要了
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.
不行,试过了,没那么智能……
Deploy preview for ng-zorro-master ready! Built with commit a7a8886 |
Codecov Report
@@ Coverage Diff @@
## master #4495 +/- ##
=======================================
Coverage 92.01% 92.01%
=======================================
Files 519 519
Lines 10925 10925
Branches 1983 1983
=======================================
Hits 10053 10053
Misses 448 448
Partials 424 424
Continue to review full report at Codecov.
|
<i nz-icon [nzType]="nzMessage.options?.nzCloseIcon"></i> | ||
</ng-container> | ||
</ng-container> | ||
<ng-container *ngIf="!nzMessage.options?.nzCloseIcon"> |
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.
用 else?
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.
也行……
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.
LGTM
* feat(module:notification): add close icon prop close NG-ZORRO#4494 * fix: use else instead
* feat(module:notification): add close icon prop close NG-ZORRO#4494 * fix: use else instead
close #4494
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: #4494
What is the new behavior?
Does this PR introduce a breaking change?
Other information