mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-04 21:17:36 +08:00
28 lines
657 B
C#
28 lines
657 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Globalization;
|
|
using System.Text;
|
|
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace AntDesign
|
|
{
|
|
public partial class MessageItem : AntDomComponentBase
|
|
{
|
|
[Parameter]
|
|
public MessageConfig Config { get; set; }
|
|
|
|
protected const string PrefixCls = "ant-message";
|
|
|
|
private string GetClassName()
|
|
{
|
|
var className = $"{PrefixCls}-{Config.Type.ToString().ToLower(CultureInfo.InvariantCulture)}";
|
|
|
|
if (RTL)
|
|
{
|
|
className += " ant-message-rtl";
|
|
}
|
|
return className;
|
|
}
|
|
}
|
|
}
|