mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-02 03:57:38 +08:00
feat(module: layout): add DefaultCollapsed
for sider (#3260)
This commit is contained in:
parent
08b162059f
commit
f728324b66
@ -54,6 +54,9 @@ namespace AntDesign
|
||||
[Parameter]
|
||||
public EventCallback<bool> OnBreakpoint { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public bool DefaultCollapsed { get; set; }
|
||||
|
||||
[Inject]
|
||||
private IDomEventListener DomEventListener { get; set; }
|
||||
|
||||
@ -103,6 +106,11 @@ namespace AntDesign
|
||||
Trigger = DefaultTrigger;
|
||||
}
|
||||
|
||||
if (DefaultCollapsed)
|
||||
{
|
||||
Collapsed = true;
|
||||
}
|
||||
|
||||
SetClass();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user