-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(module:input): fix antd input style change & input password demo (#…
- Loading branch information
Showing
4 changed files
with
40 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
order: 10 | ||
title: | ||
zh-CN: 密码框 | ||
en-US: Password box | ||
--- | ||
|
||
## zh-CN | ||
|
||
密码框。 | ||
|
||
## en-US | ||
|
||
Input type of password. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'nz-demo-input-password-input', | ||
template: ` | ||
<nz-input-group [nzSuffix]="suffixTemplate"> | ||
<input [type]="passwordVisible?'text':'password'" nz-input placeholder="input password" [(ngModel)]="password"> | ||
</nz-input-group> | ||
<ng-template #suffixTemplate> | ||
<i nz-icon [nzType]="passwordVisible? 'eye-invisible':'eye'" (click)="passwordVisible = !passwordVisible"></i> | ||
</ng-template> | ||
`, | ||
styles : [ | ||
` | ||
i { | ||
cursor: pointer; | ||
} | ||
` | ||
] | ||
}) | ||
export class NzDemoInputPasswordInputComponent { | ||
passwordVisible = false; | ||
password; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters