Skip to content

Commit

Permalink
fix(module:select): fix select empty status (#4907)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yadong Xie authored Mar 19, 2020
1 parent fd636f0 commit f295c10
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion components/empty/demo/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ import { NzConfigService } from 'ng-zorro-antd/core/config';
<nz-transfer></nz-transfer>
<h3>Table</h3>
<nz-table>
<nz-table [nzData]="[]">
<thead>
<tr>
<th>Title</th>
<th>Age</th>
</tr>
</thead>
<tbody></tbody>
</nz-table>
<h3>List</h3>
Expand Down
2 changes: 1 addition & 1 deletion components/select/option-container.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ import { NzSelectItemInterface, NzSelectModeType } from './select.types';
}
})
export class NzOptionContainerComponent implements OnChanges {
@Input() notFoundContent: string | null = null;
@Input() notFoundContent: string | undefined = undefined;
@Input() menuItemSelectedIcon: TemplateRef<NzSafeAny> | null = null;
@Input() dropdownRender: TemplateRef<NzSafeAny> | null = null;
@Input() activatedValue: NzSafeAny | null = null;
Expand Down
2 changes: 1 addition & 1 deletion components/select/select.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export class NzSelectComponent implements ControlValueAccessor, OnInit, AfterVie
@Input() nzDropdownClassName: string | null = null;
@Input() nzDropdownMatchSelectWidth = true;
@Input() nzDropdownStyle: { [key: string]: string } | null = null;
@Input() nzNotFoundContent: string | null = null;
@Input() nzNotFoundContent: string | undefined = undefined;
@Input() nzPlaceHolder: string | TemplateRef<NzSafeAny> | null = null;
@Input() nzMaxTagCount = Infinity;
@Input() nzDropdownRender: TemplateRef<NzSafeAny> | null = null;
Expand Down

0 comments on commit f295c10

Please sign in to comment.