From 2f2b57008f8313e32e7d1ecc39e2257e320b4e30 Mon Sep 17 00:00:00 2001 From: mmc <1556375442@qq.com> Date: Mon, 18 May 2026 12:55:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=A7=E8=BE=B9=E6=A0=8F=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=9C=BA=E7=AB=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Layout.tsx | 72 +++++++++++++++++++------ src/components/alerts/AlarmOverview.tsx | 8 +-- 2 files changed, 60 insertions(+), 20 deletions(-) diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index 8882055..60e5829 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -1,7 +1,7 @@ import React, { useState, useEffect } from 'react'; import { Outlet, useNavigate, useLocation } from 'react-router-dom'; import { - Layout, Menu, Button, Space, ConfigProvider, theme, Select, Avatar + Layout, Menu, Button, Space, ConfigProvider, theme, Select, Avatar, Card, Tag } from 'antd'; import zhCN from 'antd/locale/zh_CN'; import { @@ -106,7 +106,6 @@ export default function AppLayout() { token: { colorPrimary: '#1890ff', borderRadius: 2, - // 全局紧凑设置 padding: 12, paddingLG: 16, margin: 12, @@ -116,17 +115,17 @@ export default function AppLayout() { Layout: { headerBg: '#fff', siderBg: '#fff' }, Menu: { itemBg: '#fff', itemSelectedBg: '#e6f4ff' }, Card: { - paddingLG: 12, // 减小 Card 默认内边距 + paddingLG: 12, }, Table: { - padding: 8, // 减小 Table 单元格边距 + padding: 8, paddingXS: 4, }, Form: { - itemMarginBottom: 12, // 减小表单项间距 + itemMarginBottom: 12, }, Space: { - gap: 8, // 减小 Space 间距 + gap: 8, } } }} @@ -135,18 +134,17 @@ export default function AppLayout() {
- {/* ====================== 收起/展开按钮 ====================== */}