mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-02 12:07:44 +08:00
49 lines
1.0 KiB
Plaintext
49 lines
1.0 KiB
Plaintext
@namespace AntBlazor
|
|
@inherits AntDomComponentBase
|
|
|
|
<span class="@ClassMapper.Class" style="@Style" @attributes="Attributes" id="@Id" @ref="Ref">
|
|
|
|
@if (overlay != null)
|
|
{
|
|
<span class="ant-breadcrumb-overlay-link" nz-dropdown [nzDropdownMenu]="nzOverlay">
|
|
<span class="ant-breadcrumb-link">
|
|
@ChildContent
|
|
</span>
|
|
<AntIcon type="down"></AntIcon>
|
|
</span>
|
|
}
|
|
else
|
|
{
|
|
<span class="ant-breadcrumb-link">
|
|
@ChildContent
|
|
</span>
|
|
}
|
|
|
|
@if (BreadCrumb.separator != null)
|
|
{
|
|
<span class="ant-breadcrumb-separator">
|
|
@BreadCrumb.separator
|
|
</span>
|
|
}
|
|
|
|
</span>
|
|
|
|
@code {
|
|
|
|
[Parameter]
|
|
public RenderFragment ChildContent { get; set; }
|
|
|
|
[Parameter]
|
|
public object overlay { get; set; }
|
|
|
|
[CascadingParameter]
|
|
public AntBreadcrumb BreadCrumb { get; set; }
|
|
|
|
protected override void OnInitialized()
|
|
{
|
|
base.OnInitialized();
|
|
ClassMapper.Add("ant-blazor-breadcrumb-item");
|
|
}
|
|
|
|
}
|