From 20974a19bde076192a45adb81f5f38d2230ccf3d Mon Sep 17 00:00:00 2001 From: yupeng Date: Tue, 23 Sep 2025 14:02:56 +0800 Subject: [PATCH] =?UTF-8?q?menu=E6=A0=B7=E5=BC=8F=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/img/下拉箭头.svg | 3 +++ src/components/GlobalComponent/breadcrumb.less | 3 ++- src/pages/nav_system_content/SystemContentList.js | 6 +++++- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 src/assets/img/下拉箭头.svg diff --git a/src/assets/img/下拉箭头.svg b/src/assets/img/下拉箭头.svg new file mode 100644 index 0000000..85c6468 --- /dev/null +++ b/src/assets/img/下拉箭头.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/GlobalComponent/breadcrumb.less b/src/components/GlobalComponent/breadcrumb.less index 8efef5b..5695a96 100644 --- a/src/components/GlobalComponent/breadcrumb.less +++ b/src/components/GlobalComponent/breadcrumb.less @@ -115,6 +115,7 @@ overflow: hidden; text-overflow: ellipsis; width: 100%; + gap: 20px; } // 面包屑项文本样式 @@ -135,7 +136,7 @@ .breadcrumb-close-icon { font-size: 14px; // color: #7D9CD8; - margin-left: 8px; + // margin-left: 8px; display: flex; align-items: center; justify-content: center; diff --git a/src/pages/nav_system_content/SystemContentList.js b/src/pages/nav_system_content/SystemContentList.js index 80ae4f6..9fcbb5f 100644 --- a/src/pages/nav_system_content/SystemContentList.js +++ b/src/pages/nav_system_content/SystemContentList.js @@ -6,7 +6,7 @@ import { formatRoute, getDefaultRoute } from '@/utils/routeUtils' import styles from './TopNavBar.less' import { Row, Col, Avatar, Dropdown, Button } from 'antd' import { userInfo } from '@/utils/globalCommon' -import { HomeOutlined, LogoutOutlined, AppstoreOutlined, UserOutlined, SettingOutlined, DatabaseOutlined, FileTextOutlined, LockOutlined, AreaChartOutlined } from '@ant-design/icons' +import { HomeOutlined, LogoutOutlined, AppstoreOutlined, UserOutlined, SettingOutlined, DatabaseOutlined, FileTextOutlined, LockOutlined, AreaChartOutlined, CaretDownOutlined } from '@ant-design/icons' import { getPageQuery } from '@/utils/utils' import menuTitle from '@/assets/img/智能管控平台.svg' import menuTitle1 from '@/assets/img/智能管控平台-1.svg' @@ -21,6 +21,7 @@ import people from '@/assets/img/people.svg' import risk from '@/assets/img/risk.svg' import { CustomBreadcrumb } from '@/components/GlobalComponent' + // 自定义菜单项渲染组件,支持根据激活状态显示不同图片 const CustomMenuItem = ({ item, selectedKeys }) => { const isActive = selectedKeys.includes(item.key); @@ -241,6 +242,7 @@ const SystemContentList = (props) => { }} popupClassName="custom-select-dropdown" className="custom-select" + suffixIcon={} />