update pay function
This commit is contained in:
@@ -15,6 +15,7 @@ import {
|
|||||||
CircularProgress,
|
CircularProgress,
|
||||||
Alert,
|
Alert,
|
||||||
AlertIcon,
|
AlertIcon,
|
||||||
|
Portal,
|
||||||
} from '@chakra-ui/react';
|
} from '@chakra-ui/react';
|
||||||
import * as echarts from 'echarts';
|
import * as echarts from 'echarts';
|
||||||
import { stockService } from '@services/eventService';
|
import { stockService } from '@services/eventService';
|
||||||
@@ -459,20 +460,30 @@ const KLineChartModal: React.FC<KLineChartModalProps> = ({
|
|||||||
|
|
||||||
if (!stock) return null;
|
if (!stock) return null;
|
||||||
|
|
||||||
|
// 计算实际使用的 z-index
|
||||||
|
const overlayZIndex = zIndex || 1400;
|
||||||
|
const contentZIndex = zIndex ? zIndex + 1 : 1401;
|
||||||
|
|
||||||
|
console.log('[KLineChartModal] z-index 设置:', {
|
||||||
|
overlayZIndex,
|
||||||
|
contentZIndex,
|
||||||
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal isOpen={isOpen} onClose={onClose} size={size}>
|
<Portal>
|
||||||
<ModalOverlay
|
<Modal isOpen={isOpen} onClose={onClose} size={size}>
|
||||||
bg="blackAlpha.700"
|
<ModalOverlay
|
||||||
sx={zIndex ? { zIndex: zIndex } : undefined}
|
bg="blackAlpha.700"
|
||||||
/>
|
style={{ zIndex: overlayZIndex }}
|
||||||
<ModalContent
|
/>
|
||||||
maxW="90vw"
|
<ModalContent
|
||||||
maxH="85vh"
|
maxW="90vw"
|
||||||
bg="#1a1a1a"
|
maxH="85vh"
|
||||||
borderColor="#404040"
|
bg="#1a1a1a"
|
||||||
borderWidth="1px"
|
borderColor="#404040"
|
||||||
sx={zIndex ? { zIndex: zIndex + 1 } : undefined}
|
borderWidth="1px"
|
||||||
>
|
style={{ zIndex: contentZIndex }}
|
||||||
|
>
|
||||||
<ModalHeader pb={3} borderBottomWidth="1px" borderColor="#404040">
|
<ModalHeader pb={3} borderBottomWidth="1px" borderColor="#404040">
|
||||||
<VStack align="flex-start" spacing={1}>
|
<VStack align="flex-start" spacing={1}>
|
||||||
<HStack spacing={3}>
|
<HStack spacing={3}>
|
||||||
@@ -528,6 +539,7 @@ const KLineChartModal: React.FC<KLineChartModalProps> = ({
|
|||||||
</ModalBody>
|
</ModalBody>
|
||||||
</ModalContent>
|
</ModalContent>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
</Portal>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user