ant-design-blazor/components/notification/Notification.razor
2020-05-29 00:33:49 +08:00

19 lines
521 B
C#

@namespace AntDesign
@inherits NotificationBase
@foreach (var configKv in _configDict)
{
var placement = configKv.Key;
var configs = configKv.Value;
var className = GetClassName(placement);
var style = GetStyle(placement);
<div @key="placement" class="@className" style="@style">
<span>
@foreach (var itemConfig in configs)
{
<NotificationItem @key="itemConfig" Config="itemConfig" OnClose="RemoveItem" />
}
</span>
</div>
}