导航栏引用公共组件

This commit is contained in:
2025-10-28 22:10:35 +08:00
parent c485c7fd64
commit ce31b6914f
9 changed files with 113 additions and 32 deletions

View File

@@ -9,6 +9,7 @@ interface BackNavbarProps {
title?: string;
showAvatar?: boolean;
showBackButton?: boolean;
backgroundColor?: string;
onBack?: () => void;
className?: string;
}
@@ -17,6 +18,7 @@ const BackNavbar: React.FC<BackNavbarProps> = ({
title = '消息',
showAvatar = true,
showBackButton = false,
backgroundColor,
onBack,
className = ''
}) => {
@@ -36,7 +38,8 @@ const BackNavbar: React.FC<BackNavbarProps> = ({
className={`back-navbar ${className}`}
style={{
paddingTop: `${statusBarHeight}px`,
height: `${totalHeight}px`
height: `${totalHeight}px`,
backgroundColor: backgroundColor || "#ffffff"
}}
>
<View