feat: add router to detail and ignore css order problem

This commit is contained in:
2025-08-26 17:58:01 +08:00
parent 2a38b88d86
commit e51015b447
16 changed files with 209 additions and 608 deletions

View File

@@ -18,6 +18,7 @@ export interface CommonPopupProps {
zIndex?: number
children?: React.ReactNode
className?: string
style?: React.CSSProperties
}
const CommonPopup: React.FC<CommonPopupProps> = ({
@@ -34,6 +35,7 @@ const CommonPopup: React.FC<CommonPopupProps> = ({
position = 'bottom',
round = true,
zIndex,
style,
children
}) => {
const handleCancel = () => {
@@ -52,7 +54,7 @@ const CommonPopup: React.FC<CommonPopupProps> = ({
closeable={false}
onClose={onClose}
className={`${styles['common-popup']} ${className ? className : ''}`}
style={zIndex ? { zIndex } : undefined}
style={{ ...style, zIndex: zIndex ? zIndex : undefined }}
>
{showHeader && (
<View className={styles['common-popup__header']}>
@@ -78,4 +80,4 @@ const CommonPopup: React.FC<CommonPopupProps> = ({
)
}
export default CommonPopup
export default CommonPopup