@@ -28,8 +28,8 @@ import {
2828} from '@angular/forms' ;
2929import { debounceTime , distinctUntilChanged , filter } from 'rxjs/operators' ;
3030
31- import { NzInputDirective , NzInputGroupComponent } from 'ng-zorro-antd/input' ;
32- import { NzInputNumberComponent } from 'ng-zorro-antd/input-number' ;
31+ import { NzInputModule } from 'ng-zorro-antd/input' ;
32+ import { NzInputNumberModule } from 'ng-zorro-antd/input-number' ;
3333import { NzSelectModule } from 'ng-zorro-antd/select' ;
3434
3535import { generateColor } from './src/util/util' ;
@@ -39,7 +39,7 @@ import { NzColorPickerFormatType, ValidFormKey } from './typings';
3939 selector : 'nz-color-format' ,
4040 exportAs : 'nzColorFormat' ,
4141 changeDetection : ChangeDetectionStrategy . OnPush ,
42- imports : [ ReactiveFormsModule , NzSelectModule , NzInputDirective , NzInputGroupComponent , NzInputNumberComponent ] ,
42+ imports : [ ReactiveFormsModule , NzSelectModule , NzInputModule , NzInputNumberModule ] ,
4343 template : `
4444 <div [formGroup]="validateForm" class="ant-color-picker-input-container">
4545 <div class="ant-color-picker-format-select">
@@ -54,9 +54,9 @@ import { NzColorPickerFormatType, ValidFormKey } from './typings';
5454 @switch (validateForm.controls.isFormat.value) {
5555 @case ('hex') {
5656 <div class="ant-color-picker-hex-input">
57- <nz-input-group nzPrefix="#" nzSize="small ">
57+ <nz-input-wrapper nzPrefix="#">
5858 <input nz-input nzSize="small" formControlName="hex" />
59- </nz-input-group >
59+ </nz-input-wrapper >
6060 </div>
6161 }
6262 @case ('hsb') {
0 commit comments