ant-design-blazor/components/notification/Notification.razor
zxyao 68d9743fe3 refactor(notification): using a common global container (#116)
* refactor: using a common global container

* refactor: notification remove instance
2020-05-16 16:52:44 +08:00

19 lines
521 B
Plaintext

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