From 6b7772f1787cc1b53396c40e65d8b10494f95a17 Mon Sep 17 00:00:00 2001 From: cipchk Date: Fri, 26 Feb 2021 19:42:53 +0800 Subject: [PATCH] fix(module:rate): fix invalid type of `nzCount` in `strictTemplates` --- components/rate/rate.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/rate/rate.component.ts b/components/rate/rate.component.ts index fd6bd6da11f..1417b58f451 100644 --- a/components/rate/rate.component.ts +++ b/components/rate/rate.component.ts @@ -26,7 +26,7 @@ import { } from '@angular/core'; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; import { NzConfigKey, NzConfigService, WithConfig } from 'ng-zorro-antd/core/config'; -import { BooleanInput, NgClassType } from 'ng-zorro-antd/core/types'; +import { BooleanInput, NgClassType, NumberInput } from 'ng-zorro-antd/core/types'; import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; @@ -85,7 +85,7 @@ export class NzRateComponent implements OnInit, OnDestroy, ControlValueAccessor, static ngAcceptInputType_nzAllowHalf: BooleanInput; static ngAcceptInputType_nzDisabled: BooleanInput; static ngAcceptInputType_nzAutoFocus: BooleanInput; - static ngAcceptInputType_nzCount: BooleanInput; + static ngAcceptInputType_nzCount: NumberInput; @ViewChild('ulElement', { static: false }) private ulElement?: ElementRef;