mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-16 01:41:14 +08:00
225358982e
* feat:add AntComment * refactor(comment): change namespcae to AntDesign * docs: fix comment de
38 lines
959 B
C#
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");
|
|
}
|
|
}
|
|
}
|