ant-design-blazor/components/space/SpaceItem.razor
anranruye 1ec582bff3 fix(module: space): fix space items behavior when they are inside if block (#1684)
* fix(module:space): fix space item margin

* remove Index parameter

* remove additional using

* Update Customize.razor space demo

* Update SpaceItem.raz
2021-06-30 13:41:38 +08:00

14 lines
329 B
C#

@namespace AntDesign
@inherits AntDomComponentBase
@{ ChangeSize(); }
@if (Parent?.Split != null && _index != 0)
{
<span class="ant-space-item-split" style="margin-right: 4px;">
@Parent.Split
</span>
}
<div class="@ClassMapper.Class" style="@Style @_marginStyle" @ref="Ref" id="@Id">
@ChildContent
</div>