feat: add router to detail and ignore css order problem
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user