2020-05-29 00:33:49 +08:00
|
|
|
|
@namespace AntDesign.Internal
|
2020-05-19 20:35:48 +08:00
|
|
|
|
@inherits OverlayTrigger
|
|
|
|
|
|
|
|
|
|
@{
|
|
|
|
|
string prefixCls = $"{SubMenuComponent.RootMenu.PrefixCls}-submenu";
|
|
|
|
|
}
|
|
|
|
|
<li class="@TriggerClass"
|
|
|
|
|
role="menuitem"
|
|
|
|
|
style="position:relative;@SubMenuComponent.Style"
|
|
|
|
|
@key="SubMenuComponent.Key"
|
|
|
|
|
@ref="@Ref"
|
|
|
|
|
@onclick="OnClickDiv"
|
|
|
|
|
@onmouseenter="OnTriggerMouseEnter"
|
|
|
|
|
@onmouseleave="OnTriggerMouseLeave"
|
|
|
|
|
@oncontextmenu="OnTriggerContextmenu"
|
|
|
|
|
@oncontextmenu:preventDefault>
|
|
|
|
|
@ChildContent
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<CascadingValue Value="this" Name="Trigger">
|
|
|
|
|
<Overlay @ref="_overlay"
|
|
|
|
|
OverlayChildPrefixCls="@($"{prefixCls}-menu")"
|
|
|
|
|
OnOverlayMouseEnter="OnOverlayMouseEnter"
|
2021-06-03 18:54:41 +08:00
|
|
|
|
OnOverlayMouseLeave="OnOverlayMouseLeave"
|
|
|
|
|
OnOverlayMouseUp="OnOverlayMouseUp" />
|
2020-05-19 20:35:48 +08:00
|
|
|
|
</CascadingValue>
|