mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-16 01:41:14 +08:00
f710fdae11
* fix(module: menu): multiple and accordion demo Co-authored-by: Lars Diederich <diederich@evodata.de> Co-authored-by: ElderJames <shunjiey@hotmail.com>
22 lines
612 B
C#
22 lines
612 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)
|
|
{
|
|
if (Title != null)
|
|
{
|
|
@Title
|
|
}
|
|
else
|
|
{
|
|
@ChildContent
|
|
}
|
|
}
|
|
else
|
|
{
|
|
<MenuLink Href="@RouterLink" Match="@RouterMatch">@ChildContent</MenuLink>
|
|
}
|
|
</li>
|
|
</CascadingValue> |