Showing
2 changed files
with
4 additions
and
0 deletions
| @@ -56,6 +56,7 @@ struct ModifyPasswordPage { | @@ -56,6 +56,7 @@ struct ModifyPasswordPage { | ||
| 56 | Row() { | 56 | Row() { |
| 57 | Row() { | 57 | Row() { |
| 58 | TextInput({ placeholder: "请输入原密码" }) | 58 | TextInput({ placeholder: "请输入原密码" }) |
| 59 | + .passwordIcon({onIconSrc:$r("app.media.login_password_on"),offIconSrc:$r("app.media.login_password_off")}) | ||
| 59 | .placeholderColor("#CCCCCC") | 60 | .placeholderColor("#CCCCCC") |
| 60 | .type(InputType.Password) | 61 | .type(InputType.Password) |
| 61 | .showPasswordIcon(true) | 62 | .showPasswordIcon(true) |
| @@ -78,6 +79,7 @@ struct ModifyPasswordPage { | @@ -78,6 +79,7 @@ struct ModifyPasswordPage { | ||
| 78 | Row() { | 79 | Row() { |
| 79 | Row() { | 80 | Row() { |
| 80 | TextInput({ placeholder: "请输入新密码" }) | 81 | TextInput({ placeholder: "请输入新密码" }) |
| 82 | + .passwordIcon({onIconSrc:$r("app.media.login_password_on"),offIconSrc:$r("app.media.login_password_off")}) | ||
| 81 | .placeholderColor("#CCCCCC") | 83 | .placeholderColor("#CCCCCC") |
| 82 | .type(InputType.Password) | 84 | .type(InputType.Password) |
| 83 | .showPasswordIcon(true) | 85 | .showPasswordIcon(true) |
| @@ -102,6 +104,7 @@ struct ModifyPasswordPage { | @@ -102,6 +104,7 @@ struct ModifyPasswordPage { | ||
| 102 | TextInput({ placeholder: "再次输入新密码" }) | 104 | TextInput({ placeholder: "再次输入新密码" }) |
| 103 | .placeholderColor("#CCCCCC") | 105 | .placeholderColor("#CCCCCC") |
| 104 | .type(InputType.Password) | 106 | .type(InputType.Password) |
| 107 | + .passwordIcon({onIconSrc:$r("app.media.login_password_on"),offIconSrc:$r("app.media.login_password_off")}) | ||
| 105 | .showPasswordIcon(true) | 108 | .showPasswordIcon(true) |
| 106 | .backgroundColor('#00000000') | 109 | .backgroundColor('#00000000') |
| 107 | .onChange((value: string) => { | 110 | .onChange((value: string) => { |
| @@ -200,6 +200,7 @@ export struct SettingPasswordLayout { | @@ -200,6 +200,7 @@ export struct SettingPasswordLayout { | ||
| 200 | Row() { | 200 | Row() { |
| 201 | TextInput({ placeholder: item.inputPlacholder }) | 201 | TextInput({ placeholder: item.inputPlacholder }) |
| 202 | .placeholderColor("#CCCCCC") | 202 | .placeholderColor("#CCCCCC") |
| 203 | + .passwordIcon({onIconSrc:$r("app.media.login_password_on"),offIconSrc:$r("app.media.login_password_off")}) | ||
| 203 | .type(InputType.Password) | 204 | .type(InputType.Password) |
| 204 | .showPasswordIcon(true) | 205 | .showPasswordIcon(true) |
| 205 | .backgroundColor('#00000000') | 206 | .backgroundColor('#00000000') |
-
Please register or login to post a comment