ant-design-blazor/components/avatar/AvatarGroup.razor
James Yeung d2e9c4b247 feat(module: config-provider): support RTL (#1238)
* feat(module: config-provider): support RTL

* add rtl for each component

* fix rtl for pagination

* add rtl for overlay
2021-03-31 19:23:26 +08:00

26 lines
906 B
C#

@namespace AntDesign
@inherits AntDomComponentBase
<CascadingValue Value="this" IsFixed="@true">
<div class="@ClassMapper.Class">
<CascadingValue Value=@("shown") Name="position">
@ChildContent
</CascadingValue>
@if (_overflow)
{
<Popover Trigger="new[] { TriggerType.Hover }"
Placement=MaxPopoverPlacement
OverlayClassName="@_popoverClassMapper.Class">
<ContentTemplate>
<CascadingValue Value=@("hidden") Name="position">
@ChildContent
</CascadingValue>
</ContentTemplate>
<Unbound>
<Avatar RefBack="@context" Style=@MaxStyle>@($"+{_shownAvatarList.Count - MaxCount}")</Avatar>
</Unbound>
</Popover>
}
</div>
</CascadingValue>