紧凑样式
This commit is contained in:
@@ -103,10 +103,31 @@ export default function AppLayout() {
|
||||
locale={zhCN}
|
||||
theme={{
|
||||
algorithm: theme.defaultAlgorithm,
|
||||
token: { colorPrimary: '#1890ff', borderRadius: 2 },
|
||||
token: {
|
||||
colorPrimary: '#1890ff',
|
||||
borderRadius: 2,
|
||||
// 全局紧凑设置
|
||||
padding: 12,
|
||||
paddingLG: 16,
|
||||
margin: 12,
|
||||
marginLG: 16,
|
||||
},
|
||||
components: {
|
||||
Layout: { headerBg: '#fff', siderBg: '#fff' },
|
||||
Menu: { itemBg: '#fff', itemSelectedBg: '#e6f4ff' }
|
||||
Menu: { itemBg: '#fff', itemSelectedBg: '#e6f4ff' },
|
||||
Card: {
|
||||
paddingLG: 12, // 减小 Card 默认内边距
|
||||
},
|
||||
Table: {
|
||||
padding: 8, // 减小 Table 单元格边距
|
||||
paddingXS: 4,
|
||||
},
|
||||
Form: {
|
||||
itemMarginBottom: 12, // 减小表单项间距
|
||||
},
|
||||
Space: {
|
||||
gap: 8, // 减小 Space 间距
|
||||
}
|
||||
}
|
||||
}}
|
||||
>
|
||||
@@ -114,14 +135,14 @@ export default function AppLayout() {
|
||||
<Header style={{
|
||||
background: '#0837a8',
|
||||
color: '#fff',
|
||||
minHeight: "50px",
|
||||
minHeight: "40px", // 减小 Header 高度
|
||||
height: "auto",
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'space-between',
|
||||
padding: '4px 16px',
|
||||
padding: '2px 12px', // 减小 Header 边距
|
||||
flexWrap: 'wrap',
|
||||
gap: '8px'
|
||||
gap: '4px'
|
||||
}}>
|
||||
<Space size="large" style={{ display: 'flex', alignItems: 'center', flexWrap: 'wrap' }}>
|
||||
|
||||
@@ -200,7 +221,7 @@ export default function AppLayout() {
|
||||
/>
|
||||
</Sider>
|
||||
|
||||
<Content style={{ background: '#f4f7f9', overflowY: 'auto', padding: '0px 16px' }}>
|
||||
<Content style={{ background: '#f4f7f9', overflowY: 'auto', padding: '4px 8px' }}>
|
||||
<Outlet />
|
||||
</Content>
|
||||
</Layout>
|
||||
|
||||
Reference in New Issue
Block a user