@solar-taro/core 4.4.0 → 4.6.0
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/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/utils/window.js +3 -2
- package/utils/window.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## 4.5.0 (2026-11-17)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for core to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
5
|
+
## 4.4.0 (2026-11-12)
|
|
6
|
+
|
|
7
|
+
This was a version bump only for core to align it with other projects, there were no code changes.
|
|
8
|
+
|
|
1
9
|
## 4.3.10 (2026-11-07)
|
|
2
10
|
|
|
3
11
|
This was a version bump only for core to align it with other projects, there were no code changes.
|
package/package.json
CHANGED
package/utils/window.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { getMenuButtonBoundingClientRect,
|
|
1
|
+
import { getMenuButtonBoundingClientRect, getSystemSetting, getWindowInfo } from '@tarojs/taro';
|
|
2
2
|
export function getNavbarRect() {
|
|
3
|
-
const {
|
|
3
|
+
const { deviceOrientation } = getSystemSetting();
|
|
4
|
+
const { statusBarHeight, windowWidth } = getWindowInfo();
|
|
4
5
|
const { height, width, left, top } = getMenuButtonBoundingClientRect();
|
|
5
6
|
const safeAreaTop = deviceOrientation === 'landscape' ? 0 : statusBarHeight; // 横屏时,状态栏隐藏,安全区顶部为0,竖屏时为状态栏高度
|
|
6
7
|
const bottom = top - safeAreaTop;
|
package/utils/window.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"window.js","sourceRoot":"","sources":["../../../../packages/core/src/utils/window.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,
|
|
1
|
+
{"version":3,"file":"window.js","sourceRoot":"","sources":["../../../../packages/core/src/utils/window.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAEhG,MAAM,UAAU,aAAa;IAC3B,MAAM,EAAE,iBAAiB,EAAE,GAAG,gBAAgB,EAAE,CAAA;IAChD,MAAM,EAAE,eAAe,EAAE,WAAW,EAAE,GAAG,aAAa,EAAE,CAAC;IACzD,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,+BAA+B,EAAE,CAAC;IACvE,MAAM,WAAW,GAAG,iBAAiB,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,eAAgB,CAAC,CAAC,8BAA8B;IAC5G,MAAM,MAAM,GAAG,GAAG,GAAG,WAAY,CAAC;IAElC,OAAO;QACL,MAAM,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,CAAC;QACzC,UAAU,EAAE,WAAW,GAAG,MAAM;QAChC,aAAa,EAAE,MAAM;QACrB,WAAW,EAAE,WAAW,GAAG,KAAK,GAAG,IAAI;QACvC,YAAY,EAAE,WAAW,GAAG,KAAK,GAAG,IAAI;QACxC,YAAY,EAAE,MAAM;KACrB,CAAC;AACJ,CAAC;AAAA,CAAC"}
|