2020-05-29 00:33:49 +08:00
|
|
|
|
@namespace AntDesign
|
2021-03-12 17:02:11 +08:00
|
|
|
|
@inherits AntDomComponentBase
|
2020-05-19 20:08:49 +08:00
|
|
|
|
|
|
|
|
|
<div class="@PrefixCls-notice @Config.AnimationClass">
|
2021-01-21 17:20:10 +08:00
|
|
|
|
<div class="@PrefixCls-notice-content" @ref="Ref">
|
2020-05-19 20:08:49 +08:00
|
|
|
|
<div class="@PrefixCls-custom-content @GetClassName()">
|
|
|
|
|
@{
|
|
|
|
|
switch (Config.Type)
|
|
|
|
|
{
|
|
|
|
|
case MessageType.Success:
|
|
|
|
|
{
|
2020-06-07 19:41:00 +08:00
|
|
|
|
<Icon Type="check-circle" Theme="fill" Class="anticon anticon-check-circle" ></Icon>
|
2020-05-19 20:08:49 +08:00
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case MessageType.Warning:
|
|
|
|
|
{
|
2020-06-07 19:41:00 +08:00
|
|
|
|
<Icon Type="exclamation-circle" Theme="fill" Class="anticon anticon-exclamation-circle"></Icon>
|
2020-05-19 20:08:49 +08:00
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case MessageType.Error:
|
|
|
|
|
{
|
2020-06-07 19:41:00 +08:00
|
|
|
|
<Icon Type="close-circle" Theme="fill" Class="anticon anticon-close-circle"></Icon>
|
2020-05-19 20:08:49 +08:00
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case MessageType.Info:
|
|
|
|
|
{
|
2020-06-07 19:41:00 +08:00
|
|
|
|
<Icon Type="info-circle" Theme="fill" Class="anticon anticon-info-circle"></Icon>
|
2020-05-19 20:08:49 +08:00
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
default:
|
|
|
|
|
{
|
2020-06-07 19:41:00 +08:00
|
|
|
|
<Icon Type="loading" Theme="outline" Class="anticon anticon-loading"></Icon>
|
2020-05-19 20:08:49 +08:00
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
<span>
|
|
|
|
|
@if (Config.Content.IsT0)
|
|
|
|
|
{
|
|
|
|
|
@Config.Content.AsT0;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
@Config.Content.AsT1;
|
|
|
|
|
}
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|