From 18a313fa4a64c5debf419230d7f348f9814427c1 Mon Sep 17 00:00:00 2001 From: wangyunfei888 <1224056307@qq.com> Date: Mon, 15 Dec 2025 18:05:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/nav_system_content/SystemContentList.js | 12 ++++++------ .../nav_system_content/SystemContentList.less | 14 ++++++++++++++ 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/src/pages/nav_system_content/SystemContentList.js b/src/pages/nav_system_content/SystemContentList.js index dccb23e..915dca3 100644 --- a/src/pages/nav_system_content/SystemContentList.js +++ b/src/pages/nav_system_content/SystemContentList.js @@ -121,7 +121,7 @@ const SystemContentList = (props) => { }, { - "path": "/topnavbar00/business/envInformationMonthly", + "path": "/topnavbar00/business/envInformationMfonthly", icon: 环保月报管理 { style={{ width: 192, height: 42, - borderColor: '#fff', - backgroundColor: 'rgba(88, 88, 88, 0.34)', + borderColor: 'rgba(255, 255, 255, 1)', + backgroundColor: 'rgba(88, 88, 88, 0.54)', borderRadius: 8, color: '#fff', fontSize: 22, @@ -270,7 +270,7 @@ const SystemContentList = (props) => { ]} dropdownStyle={{ backgroundColor: 'rgba(88, 88, 88, 0.54)', - borderColor: 'rgba(45, 45, 45, 0.22)' + borderColor: 'rgba(255, 255, 255, 1)' }} popupClassName="custom-select-dropdown" className="custom-select" @@ -281,8 +281,8 @@ const SystemContentList = (props) => { .custom-select .ant-select-selector { height: 42px !important; border-radius: 8px !important; - border-color: #fff !important; - background-color: rgba(88, 88, 88, 0.34) !important; + border-color: rgba(255, 255, 255, 1) !important; + background-color: rgba(88, 88, 88, 0.54) !important; color: #fff !important; fontSize: 22px !important; fontWeight: 600 !important; diff --git a/src/pages/nav_system_content/SystemContentList.less b/src/pages/nav_system_content/SystemContentList.less index ea1270a..886b068 100644 --- a/src/pages/nav_system_content/SystemContentList.less +++ b/src/pages/nav_system_content/SystemContentList.less @@ -133,4 +133,18 @@ // height: 100%; overflow: auto; } + + /* 强制覆盖 Ant Select 默认白色背景 */ + :global(.custom-select .ant-select-selector) { + background-color: rgba(88, 88, 88, 0.54) !important; + border-color: rgba(255, 255, 255, 1) !important; + border-radius: 8px !important; + box-shadow: none !important; + } + + :global(.custom-select .ant-select-selector:hover), + :global(.custom-select.ant-select-focused .ant-select-selector) { + background-color: rgba(88, 88, 88, 0.54) !important; + border-color: rgba(255, 255, 255, 1) !important; + } } \ No newline at end of file