ant-design-blazor/components/popover/Popover.razor
anranruye 477c57f9db feat(module: table): filter enhancement (#1563)
* feat(module: table): allow access to filter operator and condition

* feat(module: table): allow access to filter operator and condition

* feat(module:table): allow remove the first filter

* Update Column.razor

* feat(module:table): modify closing button position

* feat(module:table): match new style

* feat(module:table): add header column divider

* fix(module:table): apply filter when close the filter panel by clicking the filter icon

* Update Column.razor

* style(module:table): trim Column.razor

* Update Column.razor

* Update Column.razor

* Update Column.razor

* Update Column.razor

* fix(module:overlaytrigger): fix overlay not close after overlay size changes

* unify muiltiple filter popup containers to one
2021-06-03 18:54:41 +08:00

51 lines
1.8 KiB
C#

@namespace AntDesign
@inherits OverlayTrigger
@using AntDesign.Internal
@if (ChildContent != null)
{
<div class="@ClassMapper.Class" @ref="@Ref" Id="@Id" style="display: inline-flex; @Style"
@onclick="OnClickDiv"
@onmouseenter="OnTriggerMouseEnter"
@onmouseleave="OnTriggerMouseLeave"
@oncontextmenu="OnTriggerContextmenu"
@onfocusin="OnTriggerFocusIn"
@onfocusout="OnTriggerFocusOut"
@oncontextmenu:preventDefault>
@ChildContent
</div>
}
@if (Unbound != null)
{
@Unbound(RefBack)
}
<CascadingValue Value="this" Name="Trigger" IsFixed="@true">
<CascadingValue Value="@ArrowPointAtCenter" Name="ArrowPointAtCenter">
<Overlay @ref="_overlay"
HideMillisecondsDelay="10"
WaitForHideAnimMilliseconds="100"
OnOverlayMouseEnter="OnOverlayMouseEnter"
OnOverlayMouseLeave="OnOverlayMouseLeave"
OnOverlayMouseUp="OnOverlayMouseUp">
<div class="ant-popover-content">
<div class="ant-popover-arrow">
<span class="ant-popover-arrow-content"></span>
</div>
<div class="ant-popover-inner" role="tooltip">
@if (TitleTemplate != null || !string.IsNullOrWhiteSpace(Title))
{
<div class="ant-popover-title">
@if (TitleTemplate != null)@TitleTemplate else @Title
</div>
}
<div class="ant-popover-inner-content">
@if (ContentTemplate != null)@ContentTemplate else @Content
</div>
</div>
</div>
</Overlay>
</CascadingValue>
</CascadingValue>