ant-design-blazor/components/notification/Notification.razor

19 lines
521 B
C#
Raw Normal View History

@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>
}