update pay function
This commit is contained in:
@@ -42,8 +42,6 @@ export interface KLineChartModalProps {
|
||||
eventTime?: string | null;
|
||||
/** 模态框大小 */
|
||||
size?: string;
|
||||
/** z-index 层级(用于嵌套 Modal 场景) */
|
||||
zIndex?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -64,7 +62,6 @@ const KLineChartModal: React.FC<KLineChartModalProps> = ({
|
||||
stock,
|
||||
eventTime,
|
||||
size = '5xl',
|
||||
zIndex,
|
||||
}) => {
|
||||
const chartRef = useRef<HTMLDivElement>(null);
|
||||
const chartInstance = useRef<echarts.ECharts | null>(null);
|
||||
@@ -459,15 +456,7 @@ const KLineChartModal: React.FC<KLineChartModalProps> = ({
|
||||
|
||||
if (!stock) return null;
|
||||
|
||||
// 计算实际使用的 z-index(使用超高值确保在最上层)
|
||||
const overlayZIndex = zIndex || 9998;
|
||||
const contentZIndex = zIndex ? zIndex + 1 : 9999;
|
||||
|
||||
console.log('[KLineChartModal] z-index 设置:', {
|
||||
overlayZIndex,
|
||||
contentZIndex,
|
||||
isOpen,
|
||||
});
|
||||
console.log('[KLineChartModal] 渲染 Modal, isOpen:', isOpen);
|
||||
|
||||
return (
|
||||
<Modal
|
||||
@@ -477,15 +466,11 @@ const KLineChartModal: React.FC<KLineChartModalProps> = ({
|
||||
blockScrollOnMount={false}
|
||||
isCentered
|
||||
>
|
||||
<ModalOverlay
|
||||
bg="blackAlpha.700"
|
||||
zIndex={overlayZIndex}
|
||||
/>
|
||||
<ModalOverlay bg="blackAlpha.700" />
|
||||
<ModalContent
|
||||
maxW="90vw"
|
||||
maxH="85vh"
|
||||
bg="#1a1a1a"
|
||||
zIndex={contentZIndex}
|
||||
border="2px solid #ffd700"
|
||||
boxShadow="0 0 30px rgba(255, 215, 0, 0.5)"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user