Skip to content

Commit

Permalink
fix(module:space): fix deprecated warning for nz-space-item (#6549) (#…
Browse files Browse the repository at this point in the history
…6561)

close #6549
  • Loading branch information
lsbbd authored Apr 3, 2021
1 parent 097cb6c commit f80a5bb
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 f80a5bb

Please sign in to comment.