mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 09:21:24 +08:00
f9b615c2ca
...for affix,back-top,breadcrumb,card,divider,typogragpy and timeline Co-authored-by: ElderJames <shunjiey@hotmail.com>
23 lines
704 B
C#
23 lines
704 B
C#
@namespace AntDesign
|
|
@inherits AntDomComponentBase
|
|
|
|
<aside class="@ClassMapper.Class" style="@SiderStyles @Style">
|
|
@if (isCollapsed && CollapsedWidth == 0)
|
|
{
|
|
<span class="ant-layout-sider-zero-width-trigger ant-layout-sider-zero-width-trigger-left"
|
|
@onclick="ToggleCollapsed">
|
|
<Icon Type="bars" />
|
|
</span>
|
|
}
|
|
<CascadingValue Value="this">
|
|
<div class="ant-layout-sider-children">
|
|
@ChildContent
|
|
</div>
|
|
</CascadingValue>
|
|
@if (Collapsible && !NoTrigger)
|
|
{
|
|
<div class="ant-layout-sider-trigger" style="width: @($"{width}px")" @onclick="ToggleCollapsed">
|
|
@Trigger
|
|
</div>
|
|
}
|
|
</aside> |