2020-05-29 00:33:49 +08:00
|
|
|
@namespace AntDesign
|
2020-05-22 00:05:26 +08:00
|
|
|
@inherits AntDomComponentBase
|
|
|
|
|
2020-06-03 23:11:02 +08:00
|
|
|
<aside class="@ClassMapper.Class" style="@SiderStyles @Style">
|
2021-01-20 18:23:48 +08:00
|
|
|
@if (_showTrigger && CollapsedWidth == 0)
|
2020-06-03 23:11:02 +08:00
|
|
|
{
|
|
|
|
<span class="ant-layout-sider-zero-width-trigger ant-layout-sider-zero-width-trigger-left"
|
|
|
|
@onclick="ToggleCollapsed">
|
2020-06-07 19:41:00 +08:00
|
|
|
<Icon Type="bars" />
|
2020-06-03 23:11:02 +08:00
|
|
|
</span>
|
|
|
|
}
|
2021-01-21 17:20:10 +08:00
|
|
|
<CascadingValue Value="this" IsFixed="@true">
|
2020-05-22 00:05:26 +08:00
|
|
|
<div class="ant-layout-sider-children">
|
|
|
|
@ChildContent
|
|
|
|
</div>
|
2020-06-03 23:11:02 +08:00
|
|
|
</CascadingValue>
|
2020-06-04 14:48:13 +08:00
|
|
|
@if (Collapsible && !NoTrigger)
|
2020-06-03 23:11:02 +08:00
|
|
|
{
|
2020-08-18 18:05:44 +08:00
|
|
|
<div class="ant-layout-sider-trigger" style="width: @($"{ComputedWidth}px")" @onclick="ToggleCollapsed">
|
2020-06-03 23:11:02 +08:00
|
|
|
@Trigger
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
</aside>
|