mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 17:31:42 +08:00
31 lines
918 B
Plaintext
31 lines
918 B
Plaintext
@namespace AntBlazor
|
|
@inherits AntTimelineBase
|
|
|
|
<CascadingValue Value="this">
|
|
<ul class="@ClassMapper.Class" style="@Style" @attributes="Attributes" Id="@Id">
|
|
@ChildContent
|
|
|
|
@foreach (var item in displayItems)
|
|
{
|
|
<li class="@item.Class" @ref="item.Ref" style="@item.Style" @attributes="item.Attributes" Id="@item.Id">
|
|
<div class="ant-timeline-item-tail"></div>
|
|
<div class="@item.HeadClassMapper.Class" style="@item.headStyle">
|
|
@if (item.Dot != null)
|
|
{
|
|
@item.Dot
|
|
}
|
|
</div>
|
|
<div class="ant-timeline-item-content">
|
|
@item.ChildContent
|
|
</div>
|
|
</li>
|
|
}
|
|
</ul>
|
|
</CascadingValue>
|
|
|
|
@code{
|
|
|
|
protected override RenderFragment LoadingDot => @<AntIcon type="loading"></AntIcon>;
|
|
|
|
}
|