ant-design-blazor/components/message/MessageItem.razor.cs

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;
}
}
}