2020-09-16 13:58:16 +08:00
|
|
|
|
using System;
|
2020-06-30 15:25:21 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
2020-09-16 13:58:16 +08:00
|
|
|
|
using Microsoft.AspNetCore.Components;
|
2020-06-30 15:25:21 +08:00
|
|
|
|
using OneOf;
|
|
|
|
|
|
|
|
|
|
namespace AntDesign
|
|
|
|
|
{
|
|
|
|
|
public partial class Comment : AntDomComponentBase
|
|
|
|
|
{
|
|
|
|
|
[Parameter]
|
2020-09-16 13:58:16 +08:00
|
|
|
|
public string Author { get; set; }
|
2020-06-30 15:25:21 +08:00
|
|
|
|
|
|
|
|
|
[Parameter]
|
2020-09-16 13:58:16 +08:00
|
|
|
|
public RenderFragment AuthorTemplate { get; set; }
|
2020-06-30 15:25:21 +08:00
|
|
|
|
|
|
|
|
|
[Parameter]
|
2020-09-16 13:58:16 +08:00
|
|
|
|
public string Avatar { get; set; }
|
|
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
|
public RenderFragment AvatarTemplate { get; set; }
|
|
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
|
public string Content { get; set; }
|
|
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
|
public RenderFragment ContentTemplate { get; set; }
|
2020-06-30 15:25:21 +08:00
|
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
|
public RenderFragment ChildContent { get; set; }
|
|
|
|
|
|
|
|
|
|
[Parameter]
|
2020-09-16 13:58:16 +08:00
|
|
|
|
public string Datetime { get; set; }
|
|
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
|
public RenderFragment DatetimeTemplate { get; set; }
|
2020-06-30 15:25:21 +08:00
|
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
|
public IList<RenderFragment> Actions { get; set; } = new List<RenderFragment>();
|
|
|
|
|
|
|
|
|
|
protected override void OnInitialized()
|
|
|
|
|
{
|
|
|
|
|
base.OnInitialized();
|
|
|
|
|
this.ClassMapper.Clear()
|
|
|
|
|
.Add("ant-comment");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|