Browse Source
Merge pull request #20011 from abpframework/auto-merge/rel-8-2/2768
Merge branch dev with rel-8.2
pull/20023/head
maliming
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
6 additions and
3 deletions
-
framework/src/Volo.Abp.BlazoriseUI/Components/UiPageProgress.razor.cs
|
|
|
@ -7,7 +7,7 @@ namespace Volo.Abp.BlazoriseUI.Components; |
|
|
|
|
|
|
|
public partial class UiPageProgress : ComponentBase, IDisposable |
|
|
|
{ |
|
|
|
protected PageProgress PageProgressRef { get; set; } = default!; |
|
|
|
protected PageProgress? PageProgressRef { get; set; } |
|
|
|
|
|
|
|
protected int? Percentage { get; set; } |
|
|
|
|
|
|
|
@ -33,8 +33,11 @@ public partial class UiPageProgress : ComponentBase, IDisposable |
|
|
|
Visible = e.Percentage == null || (e.Percentage >= 0 && e.Percentage <= 100); |
|
|
|
Color = GetColor(e.Options.Type); |
|
|
|
|
|
|
|
await PageProgressRef.SetValueAsync(e.Percentage); |
|
|
|
|
|
|
|
if(PageProgressRef != null) |
|
|
|
{ |
|
|
|
await PageProgressRef.SetValueAsync(e.Percentage); |
|
|
|
} |
|
|
|
|
|
|
|
await InvokeAsync(StateHasChanged); |
|
|
|
} |
|
|
|
|
|
|
|
|