@@ -109,13 +109,15 @@ import { getStatusClassNames, InputBoolean, isNotNil } from 'ng-zorro-antd/core/
109109 '[class.ant-input-number-sm]' : `nzSize === 'small'` ,
110110 '[class.ant-input-number-disabled]' : 'nzDisabled' ,
111111 '[class.ant-input-number-readonly]' : 'nzReadOnly' ,
112- '[class.ant-input-number-rtl]' : `dir === 'rtl'`
112+ '[class.ant-input-number-rtl]' : `dir === 'rtl'` ,
113+ '[class.ant-input-number-borderless]' : `nzBorderless`
113114 }
114115} )
115116export class NzInputNumberComponent implements ControlValueAccessor , AfterViewInit , OnChanges , OnInit , OnDestroy {
116117 static ngAcceptInputType_nzDisabled : BooleanInput ;
117118 static ngAcceptInputType_nzReadOnly : BooleanInput ;
118119 static ngAcceptInputType_nzAutoFocus : BooleanInput ;
120+ static ngAcceptInputType_nzBorderless : BooleanInput ;
119121
120122 private autoStepTimer ?: number ;
121123 private parsedValue ?: string | number ;
@@ -133,6 +135,7 @@ export class NzInputNumberComponent implements ControlValueAccessor, AfterViewIn
133135 hasFeedback : boolean = false ;
134136 onChange : OnChangeType = ( ) => { } ;
135137 onTouched : OnTouchedType = ( ) => { } ;
138+
136139 @Output ( ) readonly nzBlur = new EventEmitter ( ) ;
137140 @Output ( ) readonly nzFocus = new EventEmitter ( ) ;
138141 /** The native `<span class="ant-input-number-handler-up"></span>` element. */
@@ -159,6 +162,7 @@ export class NzInputNumberComponent implements ControlValueAccessor, AfterViewIn
159162 @Input ( ) @InputBoolean ( ) nzDisabled = false ;
160163 @Input ( ) @InputBoolean ( ) nzReadOnly = false ;
161164 @Input ( ) @InputBoolean ( ) nzAutoFocus = false ;
165+ @Input ( ) @InputBoolean ( ) nzBorderless : boolean = false ;
162166 @Input ( ) nzFormatter : ( value : number ) => string | number = value => value ;
163167
164168 onModelChange ( value : string ) : void {
0 commit comments