refactor: 密码框改用 BootstrapPassword 组件
This commit is contained in:
parent
d683f392f2
commit
8b280cef15
|
@ -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">
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue