mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 01:11:52 +08:00
26 lines
758 B
C#
26 lines
758 B
C#
|
@namespace AntBlazor.Internal
|
|||
|
@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"
|
|||
|
OnOverlayMouseLeave="OnOverlayMouseLeave" />
|
|||
|
</CascadingValue>
|