mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 05:27:37 +08:00
29 lines
906 B
C#
29 lines
906 B
C#
@namespace AntDesign
|
|
@inherits AntDomComponentBase
|
|
|
|
<CascadingValue Value="this" IsFixed>
|
|
<ul class="@ClassMapper.Class" style="@Style" id="@Id" @ref="Ref">
|
|
@ChildContent
|
|
|
|
@foreach (var item in _displayItems)
|
|
{
|
|
<li class="@item.ItemClass" @ref="item.Ref" style="@item.Style" id="@item.Id">
|
|
@if (!string.IsNullOrEmpty(item.Label))
|
|
{
|
|
<div class="ant-timeline-item-label">@item.Label</div>
|
|
}
|
|
<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>
|