ant-design-blazor/components/timeline/Timeline.razor
Henry.zhang f9b615c2ca feat: add more demos (#197)
...for affix,back-top,breadcrumb,card,divider,typogragpy and timeline

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-06-07 19:41:00 +08:00

31 lines
852 B
C#

@namespace AntDesign
@inherits AntDomComponentBase
<CascadingValue Value="this">
<ul class="@ClassMapper.Class" style="@Style" id="@Id">
@ChildContent
@foreach (var item in DisplayItems)
{
<li class="@item.ItemClass" @ref="item.Ref" style="@item.Style" 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{
private RenderFragment _loadingDot = @<Icon type="loading"></Icon>;
}