解决方法1:
参考链接:https://blog.51cto.com/u_15064644/4338712
解决方法二:changeDetectorRef.detectChanges()
<nz-select nzMode="tags" name="tests" [(ngModel)]="testSetupInfo.tests" (ngModelChange)="testsChange(testSetupInfo)" nzPlaceHolder="请选择考试试题" nzAllowClear> <nz-option *ngFor="let option of editData.testsList" [nzValue]="option.id" [nzLabel]="option.title"></nz-option> </nz-select> testsChange(testSetupInfo: any) { this.changeDetectorRef.detectChanges(); // 实时检测数据的变化并更新视图数据 } 标签:allowClear,changeDetectorRef,detectChanges,design,antd,选择器 From: https://www.cnblogs.com/gaosj20210301/p/16843188.html