- 底部导航栏调试信息
+ GlassBottomNav 调试信息
- TabBar 存在性检查
+ 容器检查 (.glass-nav-container)
- TabBar 元素存在: {{ debugInfo.tabbarExists ? '✓ 是' : '✗ 否' }}
-
-
- TabBar 可见: {{ debugInfo.tabbarVisible ? '✓ 是' : '✗ 否' }}
+ 元素存在: {{ debugInfo.containerExists ? '✓ 是' : '✗ 否' }}
- display: {{ debugInfo.tabbarDisplay }}
+ position: {{ debugInfo.containerPosition }}
- opacity: {{ debugInfo.tabbarOpacity }}
-
-
-
-
- TabBar 位置样式
-
-
- position: {{ debugInfo.tabbarPosition }}
-
-
- top (CSS): {{ debugInfo.tabbarTopStyle }}
-
-
- bottom (CSS): {{ debugInfo.tabbarBottomStyle }}
-
-
- left (实际): {{ debugInfo.tabbarLeft }}px
-
-
- right (实际): {{ debugInfo.tabbarRight }}px
+ bottom (CSS): {{ debugInfo.containerBottomStyle }}
- top (实际): {{ debugInfo.tabbarTop }}px
+ bottom (实际): {{ debugInfo.containerRectBottom }}px
+
+
+ width: {{ debugInfo.containerWidth }}px
+
+
+ height: {{ debugInfo.containerHeight }}px
+
+
+ z-index: {{ debugInfo.containerZIndex }}
+
+
+
+
+ 药丸导航 (.nav-pill)
+
+
+ 元素存在: {{ debugInfo.pillExists ? '✓ 是' : '✗ 否' }}
+
+
+ width: {{ debugInfo.pillWidth }}px
+
+
+ height: {{ debugInfo.pillHeight }}px
- bottom (实际): {{ debugInfo.tabbarBottom }}px
+ bottom (实际): {{ debugInfo.pillRectBottom }}px
- TabBar 尺寸
+ 父容器 (.app-root)
- width: {{ debugInfo.tabbarWidth }}px
+ overflow: {{ debugInfo.appRootOverflow }}
- height: {{ debugInfo.tabbarHeight }}px
+ height: {{ debugInfo.appRootHeight }}px
- padding-bottom: {{ debugInfo.tabbarPaddingBottom }}
+ position: {{ debugInfo.appRootPosition }}
+
+
+
+
+ 视口信息
- box-sizing: {{ debugInfo.tabbarBoxSizing }}
+ window.innerHeight: {{ debugInfo.windowHeight }}px
+
+
+ --vh: {{ debugInfo.vhVar }}
+
+
+ safe-area-bottom: {{ debugInfo.safeAreaBottom }}
@@ -164,9 +130,10 @@
- 距离底部: {{ debugInfo.distanceFromBottom }}px {{ debugInfo.distanceFromBottom === '0.00' ? '✓ 已贴底' : '✗ 未贴底' }}
+ 距离底部: {{ debugInfo.distanceFromBottom }}px
+ {{ parseFloat(debugInfo.distanceFromBottom) < 2 ? '✓ 已贴底' : '✗ 未贴底' }}