ant-design-blazor/components/breadcrumb/BreadcrumbItem.razor

42 lines
818 B
C#
Raw Normal View History

@namespace AntDesign
2020-03-08 22:32:30 +08:00
@inherits AntDomComponentBase
<span>
2020-03-08 22:32:30 +08:00
@if (Overlay != null)
2020-03-08 22:32:30 +08:00
{
<span class="ant-breadcrumb-overlay-link" nz-dropdown [nzDropdownMenu]="nzOverlay">
<span class="ant-breadcrumb-link">
@ChildContent
</span>
<Icon Type="down"></Icon>
2020-03-08 22:32:30 +08:00
</span>
}
else
{
<span class="ant-breadcrumb-link">
@ChildContent
</span>
}
@if (BreadCrumb?.Separator != null)
2020-03-08 22:32:30 +08:00
{
<span class="ant-breadcrumb-separator">
@BreadCrumb.Separator
2020-03-08 22:32:30 +08:00
</span>
}
</span>
@code {
[Parameter]
public RenderFragment ChildContent { get; set; }
[Parameter]
public object Overlay { get; set; }
2020-03-08 22:32:30 +08:00
[CascadingParameter]
public Breadcrumb BreadCrumb { get; set; }
2020-03-08 22:32:30 +08:00
}