@namespace AntDesign
@inherits AntDomComponentBase
@using AntDesign.Internal
@{
string prefixCls = $"{RootMenu.PrefixCls}-submenu";
}
@if (RootMenu.InternalMode == MenuMode.Inline)
{
@if (TitleTemplate != null)
{
@TitleTemplate
}
else if (Title != null)
{
@Title
}
}
else
{
if (Placement == null)
{
Placement = (RootMenu.Mode == MenuMode.Horizontal && Parent == null) ? PlacementType.BottomLeft : PlacementType.RightTop;
}
@if (TitleTemplate != null)
{
@TitleTemplate
}
else if (Title != null)
{
@Title
}
@GetArrow()
}
@code
{
private RenderFragment GetArrow()
{
string prefixCls = $"{RootMenu.PrefixCls}-submenu";
if (RootMenu.PrefixCls.Contains("dropdown"))
{
return@
;
}
return @;
}
}