@hlw-uni/mp-vue 2.2.3 → 2.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -87,7 +87,7 @@ const top = computed(() => {
|
|
|
87
87
|
const menuButtonInfo = uni.getMenuButtonBoundingClientRect();
|
|
88
88
|
if (menuButtonInfo && menuButtonInfo.bottom > 0) {
|
|
89
89
|
// 胶囊底部高度 + 6px 作为气泡定位的顶部基准,使箭头离胶囊更近
|
|
90
|
-
return `${menuButtonInfo.bottom +
|
|
90
|
+
return `${menuButtonInfo.bottom + 2}px`;
|
|
91
91
|
}
|
|
92
92
|
} catch (e) {
|
|
93
93
|
// 跨端环境不支持或报错时,执行安全降级计算
|