Skip to content
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

fix(module:description): fix description not accept TemplateRef #5139

Merged
merged 2 commits into from
Apr 26, 2020

Conversation

wzhudev
Copy link
Member

@wzhudev wzhudev commented Apr 24, 2020

close #5127

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

@zorro-bot
Copy link

zorro-bot bot commented Apr 24, 2020

This preview will be available after the AzureCI is passed.

@wzhudev
Copy link
Member Author

wzhudev commented Apr 24, 2020

Clearly I didn't implement that in previous versions...

@codecov
Copy link

codecov bot commented Apr 24, 2020

Codecov Report

Merging #5139 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #5139   +/-   ##
=======================================
  Coverage   91.46%   91.47%           
=======================================
  Files         547      547           
  Lines       13747    13768   +21     
  Branches     2130     2137    +7     
=======================================
+ Hits        12574    12594   +20     
+ Misses        708      707    -1     
- Partials      465      467    +2     
Impacted Files Coverage Δ
components/descriptions/descriptions.component.ts 100.00% <ø> (ø)
...onents/descriptions/descriptions-item.component.ts 100.00% <100.00%> (ø)
...s/notification/notification-container.component.ts 94.23% <0.00%> (-5.77%) ⬇️
components/select/select.module.ts 100.00% <0.00%> (ø)
components/select/select.component.ts 90.60% <0.00%> (ø)
components/date-picker/date-picker.component.ts 96.47% <0.00%> (+0.07%) ⬆️
components/form/form-control.component.ts 95.08% <0.00%> (+0.21%) ⬆️
components/select/option-container.component.ts 91.66% <0.00%> (+0.75%) ⬆️
components/select/select-search.component.ts 87.50% <0.00%> (+1.13%) ⬆️
components/table/src/table-data.service.ts 81.25% <0.00%> (+3.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1eca795...a1ec9b5. Read the comment docs.

@@ -107,7 +117,9 @@ const defaultColumnMap: { [key in NzBreakpointEnum]: number } = {
<tr class="ant-descriptions-row">
<ng-container *ngFor="let item of row; let isLast = last">
<td class="ant-descriptions-item-label" [colSpan]="item.span">
{{ item.title }}
<ng-container *nzStringTemplateOutlet="item.title">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the type definition of nzTitle also need to update

Copy link
Member

@vthinkxie vthinkxie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@vthinkxie vthinkxie merged commit 90d2ec5 into NG-ZORRO:master Apr 26, 2020
@wzhudev wzhudev deleted the description-title branch April 26, 2020 09:03
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this pull request Aug 5, 2020
…ORRO#5139)

* fix(module:description): fix description not accept TemplateRef

close NG-ZORRO#5127

* fix: fix nzTitle type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nz-descriptions-item nzTitle的模板功能无效
3 participants