mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-04 21:17:36 +08:00
d2e9c4b247
* feat(module: config-provider): support RTL * add rtl for each component * fix rtl for pagination * add rtl for overlay
50 lines
1.7 KiB
C#
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> |