mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 01:11:52 +08:00
cbc5e823f0
* fix: card title template * fix: template:badge,collapse * fix: comment refactor template * fix: ribbonTests * feat: descriptions refactor template * feat: empty refactor template * feat: list refactor template * feat: menu refactor template * feat: confirm add question icon * feat: pageHeader and statistic refactor template * feat: popconfirm refactor template * feat: popver refactor template * feat: result refactor template * feat: step refactor template * feat: switch refactor template * feat: table refactor template * feat: transfer refactor template * feat: optimized code * fix: pageheader * refactor(module: empty): remove empty image constant images Co-authored-by: ElderJames <shunjiey@hotmail.com>
79 lines
2.7 KiB
C#
79 lines
2.7 KiB
C#
@namespace AntDesign
|
|
@inherits AntDomComponentBase
|
|
|
|
<CascadingValue Value="this">
|
|
<div class="@ClassMapper.Class" style="@Style" id="@Id">
|
|
<div class="ant-comment-inner">
|
|
@if ((Avatar != null || AvatarTemplate != null) && (Content != null || ContentTemplate != null))
|
|
{
|
|
<div class="ant-comment-avatar">
|
|
@if (AvatarTemplate != null)
|
|
{
|
|
@AvatarTemplate
|
|
}
|
|
else
|
|
{
|
|
<Avatar Src="@Avatar" />
|
|
|
|
}
|
|
</div>
|
|
<div class="ant-comment-content">
|
|
<div class="ant-comment-content-author">
|
|
@if (Author != null || AuthorTemplate != null)
|
|
{
|
|
<span class="ant-comment-content-author-name">
|
|
|
|
@if (AuthorTemplate != null)
|
|
{
|
|
@AuthorTemplate
|
|
}
|
|
else
|
|
{
|
|
<a>@Author</a>
|
|
}
|
|
</span>
|
|
}
|
|
|
|
@if (Datetime != null || DatetimeTemplate != null)
|
|
{
|
|
<span class="ant-comment-content-author-time">
|
|
@if (DatetimeTemplate != null)
|
|
{
|
|
@DatetimeTemplate
|
|
}
|
|
else
|
|
{
|
|
<span>@Datetime</span>
|
|
}
|
|
</span>
|
|
}
|
|
</div>
|
|
<div class="ant-comment-content-detail">
|
|
@if (ContentTemplate != null)
|
|
{
|
|
@ContentTemplate
|
|
|
|
}
|
|
else
|
|
{
|
|
<p>@Content</p>
|
|
}
|
|
</div>
|
|
@if (Actions.Count > 0)
|
|
{
|
|
<ul class="ant-comment-actions">
|
|
@foreach (RenderFragment action in Actions)
|
|
{
|
|
<li>@action</li>
|
|
}
|
|
</ul>
|
|
}
|
|
</div>
|
|
}
|
|
</div>
|
|
<div class="ant-comment-nested">
|
|
@ChildContent
|
|
</div>
|
|
</div>
|
|
</CascadingValue>
|