ant-design-blazor/components/timeline/Timeline.razor

25 lines
771 B
C#
Raw Normal View History

@namespace AntDesign
@inherits AntDomComponentBase
2019-12-20 00:20:53 +08:00
<CascadingValue Value="this">
<ul class="@ClassMapper.Class" style="@Style" id="@Id">
2019-12-20 00:20:53 +08:00
@ChildContent
@foreach (var item in _displayItems)
2019-12-20 00:20:53 +08:00
{
<li class="@item.ItemClass" @ref="item.Ref" style="@item.Style" id="@item.Id">
2019-12-20 00:20:53 +08:00
<div class="ant-timeline-item-tail"></div>
<div class="@item._headClassMapper.Class" style="@item.HeadStyle">
2019-12-20 00:20:53 +08:00
@if (item.Dot != null)
{
@item.Dot
}
</div>
<div class="ant-timeline-item-content">
@item.ChildContent
</div>
</li>
}
</ul>
</CascadingValue>