mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-14 17:01:18 +08:00
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");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|