mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-16 01:41:14 +08:00
29 lines
561 B
Plaintext
29 lines
561 B
Plaintext
@namespace AntBlazor
|
|
@inherits AntDomComponentBase
|
|
|
|
|
|
<CascadingValue Value="this">
|
|
<div class="@ClassMapper.Class" style="@Style" @attributes="Attributes" Id="@Id">
|
|
@ChildContent
|
|
</div>
|
|
</CascadingValue>
|
|
|
|
@code
|
|
{
|
|
[Parameter]
|
|
public RenderFragment ChildContent { get; set; }
|
|
|
|
[Parameter]
|
|
public bool HasSider { get; set; }
|
|
|
|
|
|
protected override void OnInitialized()
|
|
{
|
|
base.OnInitialized();
|
|
ClassMapper
|
|
.Add("ant-layout")
|
|
.If("ant-layout-has-sider", () => HasSider);
|
|
}
|
|
|
|
}
|