unibest/patches/@dcloudio__uni-h5.patch
feige996 c47564e51a build: 添加对@dcloudio/uni-h5的补丁支持
添加pnpm-workspace.yaml配置文件并创建补丁文件,修复uni-h5组件中tabBar高度可能为undefined的问题
2025-06-21 10:11:39 +08:00

14 lines
497 B
Diff

diff --git a/dist/uni-h5.es.js b/dist/uni-h5.es.js
index 7421bad97d94ad34a3d4d94292a9ee9071430662..19c6071ee4036ceb8d1cfa09030e471c002d2cda 100644
--- a/dist/uni-h5.es.js
+++ b/dist/uni-h5.es.js
@@ -23410,7 +23410,7 @@ function useShowTabBar(emit2) {
const tabBar2 = useTabBar();
const showTabBar2 = computed(() => route.meta.isTabBar && tabBar2.shown);
updateCssVar({
- "--tab-bar-height": tabBar2.height
+ "--tab-bar-height": tabBar2?.height || 0
});
return showTabBar2;
}