@namespace AntDesign
@inherits AntDomComponentBase
@using AntDesign.Internal
@{
string prefixCls = $"{RootMenu.PrefixCls}-submenu";
}
@if (RootMenu.InternalMode == MenuMode.Inline)
{
@if (Title.IsT0)
{
@Title.AsT0
}
else
{
@Title.AsT1
}
}
else
{
string placementName = RootMenu.Mode == MenuMode.Horizontal ? "bottomLeft" : "rightTop";
@if (Title.IsT0)
{
@Title.AsT0
}
else
{
@Title.AsT1
}
@GetArrow()
}
@code
{
private RenderFragment GetArrow()
{
string prefixCls = $"{RootMenu.PrefixCls}-submenu";
if (RootMenu.PrefixCls.Contains("dropdown"))
{
return@
;
}
return @;
}
}