zorro组价总结
程序员文章站
2022-06-07 13:35:39
...
密码输入框
html
<nz-input-group nzPrefixIcon="lock" [nzSuffix]="eyeIconTemp">
<input nz-input [type]="isVisible ? 'text' : 'password'"/>
</nz-input-group>
<ng-template #eyeIconTemp>
<i nz-icon [type]="isVisible ? 'eye-invisible' : 'eye'" (click)="isVisible = !isVisible"></i>
</ng-template>
ts
isVisible : boolean = false;