From c47564e51a653d95c5949096092a5cf098ec72ef Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Sat, 21 Jun 2025 10:11:39 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E6=B7=BB=E5=8A=A0=E5=AF=B9@dcloudio/u?= =?UTF-8?q?ni-h5=E7=9A=84=E8=A1=A5=E4=B8=81=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加pnpm-workspace.yaml配置文件并创建补丁文件,修复uni-h5组件中tabBar高度可能为undefined的问题 --- patches/@dcloudio__uni-h5.patch | 13 +++++++++++++ pnpm-lock.yaml | 11 ++++++++--- pnpm-workspace.yaml | 2 ++ 3 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 patches/@dcloudio__uni-h5.patch create mode 100644 pnpm-workspace.yaml diff --git a/patches/@dcloudio__uni-h5.patch b/patches/@dcloudio__uni-h5.patch new file mode 100644 index 0000000..ff1e37c --- /dev/null +++ b/patches/@dcloudio__uni-h5.patch @@ -0,0 +1,13 @@ +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; + } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 693dc14..cada9c9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,6 +7,11 @@ settings: overrides: bin-wrapper: npm:bin-wrapper-china +patchedDependencies: + '@dcloudio/uni-h5': + hash: 5763725268e9a493075be3c82d91b590b9ae30e997a04a418494dd7d6d327b9d + path: patches/@dcloudio__uni-h5.patch + importers: .: @@ -25,7 +30,7 @@ importers: version: 3.0.0-4060620250520001(postcss@8.4.49)(rollup@4.41.1)(vue@3.5.15(typescript@5.7.2)) '@dcloudio/uni-h5': specifier: 3.0.0-4060620250520001 - version: 3.0.0-4060620250520001(postcss@8.4.49)(rollup@4.41.1)(vue@3.5.15(typescript@5.7.2)) + version: 3.0.0-4060620250520001(patch_hash=5763725268e9a493075be3c82d91b590b9ae30e997a04a418494dd7d6d327b9d)(postcss@8.4.49)(rollup@4.41.1)(vue@3.5.15(typescript@5.7.2)) '@dcloudio/uni-mp-alipay': specifier: 3.0.0-4060620250520001 version: 3.0.0-4060620250520001(postcss@8.4.49)(rollup@4.41.1)(vue@3.5.15(typescript@5.7.2)) @@ -6802,7 +6807,7 @@ snapshots: '@dcloudio/uni-components@3.0.0-4060620250520001(postcss@8.4.49)(rollup@4.41.1)(vue@3.5.15(typescript@5.7.2))': dependencies: '@dcloudio/uni-cloud': 3.0.0-4060620250520001(postcss@8.4.49)(rollup@4.41.1)(vue@3.5.15(typescript@5.7.2)) - '@dcloudio/uni-h5': 3.0.0-4060620250520001(postcss@8.4.49)(rollup@4.41.1)(vue@3.5.15(typescript@5.7.2)) + '@dcloudio/uni-h5': 3.0.0-4060620250520001(patch_hash=5763725268e9a493075be3c82d91b590b9ae30e997a04a418494dd7d6d327b9d)(postcss@8.4.49)(rollup@4.41.1)(vue@3.5.15(typescript@5.7.2)) '@dcloudio/uni-i18n': 3.0.0-4060620250520001 transitivePeerDependencies: - '@nuxt/kit' @@ -6855,7 +6860,7 @@ snapshots: transitivePeerDependencies: - vue - '@dcloudio/uni-h5@3.0.0-4060620250520001(postcss@8.4.49)(rollup@4.41.1)(vue@3.5.15(typescript@5.7.2))': + '@dcloudio/uni-h5@3.0.0-4060620250520001(patch_hash=5763725268e9a493075be3c82d91b590b9ae30e997a04a418494dd7d6d327b9d)(postcss@8.4.49)(rollup@4.41.1)(vue@3.5.15(typescript@5.7.2))': dependencies: '@dcloudio/uni-h5-vite': 3.0.0-4060620250520001(postcss@8.4.49)(rollup@4.41.1)(vue@3.5.15(typescript@5.7.2)) '@dcloudio/uni-h5-vue': 3.0.0-4060620250520001(vue@3.5.15(typescript@5.7.2)) diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 0000000..848a6d9 --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,2 @@ +patchedDependencies: + '@dcloudio/uni-h5': patches/@dcloudio__uni-h5.patch