Skip to content

Commit

Permalink
fix(module:descriptions): fix DOM structure (#6112)
Browse files Browse the repository at this point in the history
Co-authored-by: wendellhu95 <wendellhu95@gmail.com>
  • Loading branch information
Wendell Hu and wendellhu95 committed Nov 28, 2020
1 parent 1d7964e commit 5e42d71
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions components/descriptions/descriptions.component.ts
Expand Up @@ -62,14 +62,16 @@ const defaultColumnMap: { [key in NzBreakpointEnum]: number } = {
<!-- Horizontal & NOT Bordered -->
<ng-container *ngIf="!nzBordered">
<td class="ant-descriptions-item" [colSpan]="item.span">
<span class="ant-descriptions-item-label" [class.ant-descriptions-item-colon]="nzColon">
<ng-container *nzStringTemplateOutlet="item.title">
{{ item.title }}
</ng-container>
</span>
<span class="ant-descriptions-item-content">
<ng-template [ngTemplateOutlet]="item.content"></ng-template>
</span>
<div class="ant-descriptions-item-container">
<span class="ant-descriptions-item-label" [class.ant-descriptions-item-colon]="nzColon">
<ng-container *nzStringTemplateOutlet="item.title">
{{ item.title }}
</ng-container>
</span>
<span class="ant-descriptions-item-content">
<ng-template [ngTemplateOutlet]="item.content"></ng-template>
</span>
</div>
</td>
</ng-container>
<!-- Horizontal & Bordered -->
Expand Down

0 comments on commit 5e42d71

Please sign in to comment.