ant-design-blazor/components/comment/Comment.razor.cs
Zhuangkh 225358982e feat: add comment component (#80)
* feat:add AntComment

* refactor(comment): change namespcae to AntDesign

* docs: fix comment de
2020-06-30 15:25:21 +08:00

38 lines
959 B
C#

using Microsoft.AspNetCore.Components;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using OneOf;
namespace AntDesign
{
public partial class Comment : AntDomComponentBase
{
[Parameter]
public OneOf<string, RenderFragment> Author { get; set; }
[Parameter]
public OneOf<string, RenderFragment> Avatar { get; set; }
[Parameter]
public OneOf<string, RenderFragment> Content { get; set; }
[Parameter]
public RenderFragment ChildContent { get; set; }
[Parameter]
public OneOf<string, RenderFragment> Datetime { get; set; }
[Parameter]
public IList<RenderFragment> Actions { get; set; } = new List<RenderFragment>();
protected override void OnInitialized()
{
base.OnInitialized();
this.ClassMapper.Clear()
.Add("ant-comment");
}
}
}