Skip to content

Commit

Permalink
fix(module:descriptions): fix DOM structure
Browse files Browse the repository at this point in the history
  • Loading branch information
wendellhu95 committed Nov 28, 2020
1 parent 167bf15 commit b170bf8
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions components/descriptions/descriptions.component.ts
Original file line number Diff line number Diff line change
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 b170bf8

Please sign in to comment.