Skip to content

Commit

Permalink
fix(module:space): fix deprecated warning for nz-space-item (NG-ZORRO…
Browse files Browse the repository at this point in the history
  • Loading branch information
lsbbd committed Mar 27, 2021
1 parent bc0e468 commit e313656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/space/space.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class NzSpaceComponent implements OnChanges, OnDestroy, AfterContentInit
private updateSpaceItems(): void {
const numberSize = typeof this.nzSize === 'string' ? SPACE_SIZE[this.nzSize] : this.nzSize;
this.spaceSize = numberSize / (!!this.nzSplit ? 2 : 1);
if (this.nzSpaceItemComponents) {
if (this.nzSpaceItemComponents?.length) {
warnDeprecation('`nz-space-item` in `nz-space` will be removed in 12.0.0, please use `*nzSpaceItem` instead.');
this.nzSpaceItemComponents.forEach(item => {
item.setDirectionAndSize(this.nzDirection, this.spaceSize!);
Expand Down

0 comments on commit e313656

Please sign in to comment.