Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
注册验证邮箱时显示目标邮箱,分页组件响应主题更新,修复轮播图闪烁的bug
- Loading branch information
1 parent
0f2f4c6
commit 65d53b9
Showing
12 changed files
with
118 additions
and
64 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
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
32 changes: 15 additions & 17 deletions
32
CnGalWebSite/CnGalWebSite.Shared/MasaComponent/Shared/Components/MasaCarousel.razor
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
46 changes: 46 additions & 0 deletions
46
CnGalWebSite/CnGalWebSite.Shared/MasaComponent/Shared/Components/MasaPagination.razor
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,46 @@ | ||
@inject IDataCacheService _dataCacheService | ||
@implements IDisposable | ||
|
||
|
||
@if (TotalPages > 1) | ||
{ | ||
|
||
<MPagination Value="@Value" Class="my-4" Length="@TotalPages" ValueChanged="OnPageClick" Color="@_dataCacheService.ThemeSetting.Theme"></MPagination> | ||
} | ||
@code { | ||
[Parameter] | ||
public int Length { get; set; } | ||
[Parameter] | ||
public int Value { get; set; } | ||
[Parameter] | ||
public EventCallback<int> ValueChanged { get; set; } | ||
|
||
private async Task OnPageClick(int pageIndex) | ||
{ | ||
await ValueChanged.InvokeAsync(pageIndex); | ||
} | ||
|
||
|
||
protected override async Task OnInitializedAsync() | ||
{ | ||
|
||
_dataCacheService.RefreshRequsted += RefreshRequsted; | ||
|
||
} | ||
|
||
public async void RefreshRequsted(object sender, EventArgs args) | ||
{ | ||
await InvokeAsync(StateHasChanged); | ||
|
||
} | ||
#region 释放实例 | ||
|
||
public void Dispose() | ||
{ | ||
|
||
_dataCacheService.RefreshRequsted -= RefreshRequsted; | ||
|
||
GC.SuppressFinalize(this); | ||
} | ||
#endregion | ||
} |
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
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
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
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