Add system setting

This commit is contained in:
2023-11-01 10:31:41 +08:00
parent d26c4da45f
commit 9b6ab39ea1
6 changed files with 76 additions and 4 deletions

View File

@@ -9,6 +9,7 @@ interface SidebarProps extends React.PropsWithChildren {
title: string
width?: string
onSidebarSwitch?: (hidden: boolean) => void
bottomFixed?: React.ReactNode
}
const Sidebar: React.FC<SidebarProps> = (props) => {
@@ -34,6 +35,9 @@ const Sidebar: React.FC<SidebarProps> = (props) => {
</div>
<SidebarSeparate style={{ marginTop: 0 }} />
<div className={'content'}>{props.children}</div>
<div className={'bottom-fixed'} style={{ flex: 'none' }}>
{props.bottomFixed}
</div>
<SidebarSeparate style={{ marginTop: 0, marginBottom: 0 }} />
<SidebarFooter />
</div>