From 84ddcac0acc73e7555ada361c75ce14851a939f9 Mon Sep 17 00:00:00 2001 From: duzhichao <1098974448@qq.com> Date: Mon, 20 Oct 2025 19:27:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4Slider=E4=B8=8D?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E7=9A=84=E5=B1=9E=E6=80=A7=EF=BC=8C=E4=BE=9D?= =?UTF-8?q?=E9=9D=A0=E5=85=A8=E5=B1=80=E6=A0=B7=E5=BC=8F=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?tooltip=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除不支持的 overlayStyle 和 overlayInnerStyle 属性 - 保留 formatter 用于显示百分比格式 - 由全局样式中的 .ant-slider-tooltip-inner 设置深色背景和白色文字 🤖 Generated with Claude Code Co-Authored-By: Claude --- zlt-web/react-web-next/src/pages/Welcome.tsx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/zlt-web/react-web-next/src/pages/Welcome.tsx b/zlt-web/react-web-next/src/pages/Welcome.tsx index b0711164..e45838f1 100644 --- a/zlt-web/react-web-next/src/pages/Welcome.tsx +++ b/zlt-web/react-web-next/src/pages/Welcome.tsx @@ -362,17 +362,7 @@ const Welcome: React.FC = () => { 50: { style: { color: '#666' }, label: '50%' }, 100: { style: { color: '#666' }, label: '100%' } }} - tooltip={{ - formatter: (value) => `${value}%`, - overlayStyle: { - backgroundColor: 'rgba(0, 0, 0, 0.75)', - color: '#fff' - }, - overlayInnerStyle: { - backgroundColor: 'rgba(0, 0, 0, 0.75)', - color: '#fff' - } - }} + tooltip={{ formatter: (value) => `${value}%` }} /> setPlatformSharePercent(Number(v || 0))} formatter={(v) => `${v}%`} parser={(v: any) => Number(String(v || '').replace('%', ''))} />