mirror of
https://gitee.com/ShopeX/ECShopX_mobile-frontend
synced 2026-08-11 14:05:32 +08:00
fix(home): 吸顶导航 top 与 navSticky 对齐,移除调试日志
- content-partition / location-module:sticky 时 top 用 navBarHeight,改为依赖 base.navSticky 而非 immersive - location-module:删除 console.log - navStyle useMemo 依赖去掉已无用的 immersive Made-with: Cursor
This commit is contained in:
@@ -129,9 +129,9 @@ export default function WgtContentPartition(props) {
|
||||
return {
|
||||
...getGlobalBaseStyle(base.outerMargin),
|
||||
position: base.navSticky ? 'sticky' : 'relative',
|
||||
top: immersive ? `${navBarHeight}px` : 0
|
||||
top: base.navSticky ? `${navBarHeight}px` : 0
|
||||
}
|
||||
}, [base.outerMargin, base.navSticky, immersive, navBarHeight])
|
||||
}, [base.outerMargin, base.navSticky, navBarHeight])
|
||||
|
||||
// 获取导航项区域样式(navitemarea)
|
||||
const navItemAreaStyle = useMemo(() => {
|
||||
|
||||
@@ -51,13 +51,12 @@ export default function WgtLocationModule(props) {
|
||||
|
||||
// 获取导航栏样式
|
||||
const navStyle = useMemo(() => {
|
||||
console.log(immersive, navBarHeight, 'immersive,navBarHeight')
|
||||
return {
|
||||
...getGlobalBaseStyle(base.outerMargin),
|
||||
position: base.navSticky ? 'sticky' : 'relative',
|
||||
top: immersive ? `${navBarHeight}px` : 0
|
||||
top: base.navSticky ? `${navBarHeight}px` : 0
|
||||
}
|
||||
}, [base.outerMargin, base.navSticky, immersive, navBarHeight])
|
||||
}, [base.outerMargin, base.navSticky, navBarHeight])
|
||||
|
||||
// 获取导航项区域样式(navitemarea)
|
||||
const navItemAreaStyle = useMemo(() => {
|
||||
|
||||
Reference in New Issue
Block a user