|
|
@@ -125,11 +125,12 @@ export const MainLayout = () => {
|
|
|
zIndex: 100,
|
|
|
transition: 'all 0.2s ease',
|
|
|
boxShadow: '2px 0 8px 0 rgba(29, 35, 41, 0.05)',
|
|
|
+ background: 'linear-gradient(180deg, #001529 0%, #003a6c 100%)',
|
|
|
}}
|
|
|
>
|
|
|
<div className="p-4">
|
|
|
<Typography.Title level={2} className="text-xl font-bold truncate">
|
|
|
- {collapsed ? '应用' : appName}
|
|
|
+ <span className="text-white">{collapsed ? '应用' : appName}</span>
|
|
|
</Typography.Title>
|
|
|
|
|
|
{/* 菜单搜索框 */}
|
|
|
@@ -147,7 +148,7 @@ export const MainLayout = () => {
|
|
|
|
|
|
{/* 菜单列表 */}
|
|
|
<Menu
|
|
|
- theme='light'
|
|
|
+ theme='dark'
|
|
|
mode="inline"
|
|
|
items={filteredMenuItems}
|
|
|
openKeys={openKeys}
|
|
|
@@ -155,13 +156,18 @@ export const MainLayout = () => {
|
|
|
onOpenChange={onOpenChange}
|
|
|
onClick={({ key }) => handleMenuClick(key)}
|
|
|
inlineCollapsed={collapsed}
|
|
|
+ style={{
|
|
|
+ backgroundColor: 'transparent',
|
|
|
+ borderRight: 'none'
|
|
|
+ }}
|
|
|
/>
|
|
|
</Sider>
|
|
|
|
|
|
<Layout style={{ marginLeft: collapsed ? 80 : 240, transition: 'margin-left 0.2s' }}>
|
|
|
<div className="sticky top-0 z-50 bg-white shadow-sm transition-all duration-200 h-16 flex items-center justify-between pl-2"
|
|
|
style={{
|
|
|
- boxShadow: '0 1px 4px rgba(0,21,41,0.08)'
|
|
|
+ boxShadow: '0 1px 8px rgba(0,21,41,0.12)',
|
|
|
+ borderBottom: '1px solid #f0f0f0'
|
|
|
}}
|
|
|
>
|
|
|
<Button
|
|
|
@@ -194,7 +200,7 @@ export const MainLayout = () => {
|
|
|
</div>
|
|
|
|
|
|
<Content className="m-6" style={{ overflow: 'initial', transition: 'all 0.2s ease' }}>
|
|
|
- <div className="site-layout-content p-6 rounded-lg bg-white shadow-sm">
|
|
|
+ <div className="site-layout-content p-6 rounded-lg bg-white shadow-sm transition-all duration-300 hover:shadow-md">
|
|
|
<Outlet />
|
|
|
</div>
|
|
|
|