ant-design-blazor/components/message/MessageItem.razor
James Yeung d2e9c4b247 feat(module: config-provider): support RTL (#1238)
* feat(module: config-provider): support RTL

* add rtl for each component

* fix rtl for pagination

* add rtl for overlay
2021-03-31 19:23:26 +08:00

50 lines
1.7 KiB
C#

@namespace AntDesign
@inherits AntDomComponentBase
<div class="@PrefixCls-notice @Config.AnimationClass">
<div class="@PrefixCls-notice-content" @ref="Ref">
<div class="@PrefixCls-custom-content @GetClassName()">
@{
switch (Config.Type)
{
case MessageType.Success:
{
<Icon Type="check-circle" Theme="fill" Class="anticon anticon-check-circle" ></Icon>
break;
}
case MessageType.Warning:
{
<Icon Type="exclamation-circle" Theme="fill" Class="anticon anticon-exclamation-circle"></Icon>
break;
}
case MessageType.Error:
{
<Icon Type="close-circle" Theme="fill" Class="anticon anticon-close-circle"></Icon>
break;
}
case MessageType.Info:
{
<Icon Type="info-circle" Theme="fill" Class="anticon anticon-info-circle"></Icon>
break;
}
default:
{
<Icon Type="loading" Theme="outline" Class="anticon anticon-loading"></Icon>
break;
}
}
}
<span>
@if (Config.Content.IsT0)
{
@Config.Content.AsT0;
}
else
{
@Config.Content.AsT1;
}
</span>
</div>
</div>
</div>