refactor: 密码框改用 BootstrapPassword 组件

This commit is contained in:
Argo-Tianyi 2022-01-13 12:44:48 +08:00
parent d683f392f2
commit 8b280cef15
2 changed files with 4 additions and 4 deletions

View File

@ -31,10 +31,10 @@
<div class="col-12 col-sm-6 d-none d-sm-block">
</div>
<div class="col-12 col-sm-6">
<BootstrapInput @bind-Value="@CurrentUser.NewPassword" Readonly="IsDemo" />
<BootstrapPassword @bind-Value="@CurrentUser.NewPassword" Readonly="IsDemo" />
</div>
<div class="col-12 col-sm-6">
<BootstrapInput @bind-Value="@CurrentUser.ConfirmPassword" Readonly="IsDemo" />
<BootstrapPassword @bind-Value="@CurrentUser.ConfirmPassword" Readonly="IsDemo" />
</div>
<Block Condition="!IsDemo">
<div class="col-12 text-end">

View File

@ -25,10 +25,10 @@
<BootstrapInput @bind-Value="@context.DisplayName" placeholder="不可为空20字以内" maxlength="20" />
</div>
<div class="col-12 col-sm-6">
<BootstrapInput @bind-Value="@context.NewPassword" placeholder="不可为空16字以内" maxlength="16" />
<BootstrapPassword @bind-Value="@context.NewPassword" placeholder="不可为空16字以内" maxlength="16" />
</div>
<div class="col-12 col-sm-6">
<BootstrapInput @bind-Value="@context.ConfirmPassword" placeholder="与登陆密码一致" ShowLabel="true" maxlength="16" />
<BootstrapPassword @bind-Value="@context.ConfirmPassword" placeholder="与登陆密码一致" maxlength="16" />
</div>
</div>
</EditTemplate>