ant-design-blazor/components/menu/MenuItem.razor

15 lines
469 B
C#
Raw Normal View History

@namespace AntDesign
@inherits AntDomComponentBase
2019-12-09 00:25:22 +08:00
<CascadingValue Value="this">
<li class="@ClassMapper.Class" role="menuitem" style=" @(PaddingLeft>0? $"padding-left:{PaddingLeft}px;":"") @Style" @onclick="HandleOnClick" @key="Key">
@if (RouterLink == null)
{
@ChildContent
}
else
{
<MenuLink Href="@RouterLink" Match="@RouterMatch">@ChildContent</MenuLink>
}
2019-12-09 00:25:22 +08:00
</li>
</CascadingValue>