mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-16 01:41:14 +08:00
15 lines
469 B
C#
15 lines
469 B
C#
@namespace AntDesign
|
|
@inherits AntDomComponentBase
|
|
|
|
<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>
|
|
}
|
|
</li>
|
|
</CascadingValue> |