修复个人页问题
This commit is contained in:
@@ -5,5 +5,5 @@
|
||||
overflow: hidden;
|
||||
z-index: 9991;
|
||||
width: 100%;
|
||||
background-color: #fff;
|
||||
// 背景颜色通过 style 动态设置,默认透明
|
||||
}
|
||||
|
||||
@@ -4,17 +4,22 @@ import { useGlobalState } from "@/store/global";
|
||||
|
||||
interface IProps {
|
||||
children: any;
|
||||
backgroundColor?: string; // 背景颜色,不设置则透明
|
||||
}
|
||||
|
||||
const CustomNavbar = (props: IProps) => {
|
||||
const { children } = props;
|
||||
const { children, backgroundColor } = props;
|
||||
const { statusNavbarHeightInfo } = useGlobalState();
|
||||
const { statusBarHeight, navBarHeight } = statusNavbarHeightInfo;
|
||||
|
||||
return (
|
||||
<View
|
||||
className={styles.customerNavbar}
|
||||
style={{ height: `${navBarHeight}px`, paddingTop: `${statusBarHeight}px`, }}
|
||||
style={{
|
||||
height: `${navBarHeight}px`,
|
||||
paddingTop: `${statusBarHeight}px`,
|
||||
backgroundColor: backgroundColor || 'transparent'
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user