Browse Source
Merge pull request #19388 from abpframework/maliming-patch-3
Add `close button` to `PageAlert` component.
pull/19389/head
liangshiwei
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
2 deletions
-
framework/src/Volo.Abp.BlazoriseUI/Components/PageAlert.razor
|
|
|
@ -1,4 +1,4 @@ |
|
|
|
@foreach (var alert in Alerts) |
|
|
|
@foreach (var alert in Alerts) |
|
|
|
{ |
|
|
|
<Alert Visible="@alert.IsVisible" Dismisable="@alert.AlertMessage.Dismissible" Color="@GetAlertColor(alert.AlertMessage.Type)"> |
|
|
|
@if (!string.IsNullOrEmpty(alert.AlertMessage.Title)) |
|
|
|
@ -12,5 +12,9 @@ |
|
|
|
</Heading> |
|
|
|
} |
|
|
|
<Paragraph>@alert.AlertMessage.Text</Paragraph> |
|
|
|
@if (alert.AlertMessage.Dismissible) |
|
|
|
{ |
|
|
|
<CloseButton /> |
|
|
|
} |
|
|
|
</Alert> |
|
|
|
} |
|
|
|
} |
|
|
|
|