mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-16 01:41:14 +08:00
66f6183e0f
feat: add max count style feat(module: avatar): add avatar group
26 lines
876 B
C#
26 lines
876 B
C#
@namespace AntDesign
|
|
@inherits AntDomComponentBase
|
|
|
|
<CascadingValue Value="this">
|
|
<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>
|
|
<ChildContent>
|
|
<Avatar Style=@MaxStyle>@($"+{_shownAvatarList.Count - MaxCount}")</Avatar>
|
|
</ChildContent>
|
|
</Popover>
|
|
}
|
|
</div>
|
|
</CascadingValue>
|