feat: support mobile platfrom

This commit is contained in:
felinae98
2022-10-14 18:09:37 +08:00
parent 5e36b7d7ec
commit 1716ecb0f4
5 changed files with 59 additions and 26 deletions
+6 -3
View File
@@ -89,7 +89,10 @@ export default function Home() {
</span>
</Layout.Header>
<Layout className="layout-collapse-demo">
<Layout.Sider>
<Layout.Sider
collapsible
breakpoint="lg"
>
<Menu
defaultSelectedKeys={[selectedTab]}
onClickMenuItem={(key) => { handleTabSelect(key); }}
@@ -104,10 +107,10 @@ export default function Home() {
</Menu.Item>
</Menu>
</Layout.Sider>
<Layout.Content style={{ padding: '0 24px' }}>
<Layout.Content style={{ padding: '0 1em' }}>
<Layout style={{ height: '100%' }}>
{ breadcrumbContent }
<Layout.Content style={{ margin: '10px', padding: '40px' }}>
<Layout.Content style={{ margin: '0.5em', padding: '2em' }}>
<Outlet />
</Layout.Content>
</Layout>