2020-10-14 13:56:59 +08:00
|
|
|
|
@namespace AntDesign
|
|
|
|
|
@inherits AntDomComponentBase
|
|
|
|
|
|
2021-01-21 17:20:10 +08:00
|
|
|
|
<CascadingValue Value="this" IsFixed="@true">
|
2020-10-14 13:56:59 +08:00
|
|
|
|
<div class="ant-avatar-group">
|
|
|
|
|
<CascadingValue Value=@("shown") Name="position">
|
|
|
|
|
@ChildContent
|
|
|
|
|
</CascadingValue>
|
|
|
|
|
@if (_overflow)
|
|
|
|
|
{
|
|
|
|
|
<Popover Trigger="new[] { TriggerType.Hover}"
|
|
|
|
|
Placement=MaxPopoverPlacement
|
|
|
|
|
OverlayClassName=@($"{_prefixCls}-popover")>
|
|
|
|
|
<ContentTemplate>
|
|
|
|
|
<CascadingValue Value=@("hidden") Name="position">
|
|
|
|
|
@ChildContent
|
|
|
|
|
</CascadingValue>
|
|
|
|
|
</ContentTemplate>
|
2021-01-21 17:20:10 +08:00
|
|
|
|
<Unbound>
|
|
|
|
|
<Avatar RefBack="@context" Style=@MaxStyle>@($"+{_shownAvatarList.Count - MaxCount}")</Avatar>
|
|
|
|
|
</Unbound>
|
2020-10-14 13:56:59 +08:00
|
|
|
|
</Popover>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
</CascadingValue>
|