From 761fe5d2f058e4b82e0734e6291d0e6ce9772231 Mon Sep 17 00:00:00 2001 From: zzlgreat Date: Tue, 25 Nov 2025 07:50:33 +0800 Subject: [PATCH] update pay function --- src/components/StockChart/KLineChartModal.tsx | 38 ++++++++++++------- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/src/components/StockChart/KLineChartModal.tsx b/src/components/StockChart/KLineChartModal.tsx index ade4f696..69e109c1 100644 --- a/src/components/StockChart/KLineChartModal.tsx +++ b/src/components/StockChart/KLineChartModal.tsx @@ -15,6 +15,7 @@ import { CircularProgress, Alert, AlertIcon, + Portal, } from '@chakra-ui/react'; import * as echarts from 'echarts'; import { stockService } from '@services/eventService'; @@ -459,20 +460,30 @@ const KLineChartModal: React.FC = ({ if (!stock) return null; + // 计算实际使用的 z-index + const overlayZIndex = zIndex || 1400; + const contentZIndex = zIndex ? zIndex + 1 : 1401; + + console.log('[KLineChartModal] z-index 设置:', { + overlayZIndex, + contentZIndex, + }); + return ( - - - + + + + @@ -528,6 +539,7 @@ const KLineChartModal: React.FC = ({ + ); };