@mpxjs/api-proxy 2.10.6-beta.3 → 2.10.6-beta.4

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/api-proxy",
3
- "version": "2.10.6-beta.3",
3
+ "version": "2.10.6-beta.4",
4
4
  "description": "convert miniprogram API at each end",
5
5
  "module": "src/index.js",
6
6
  "types": "@types/index.d.ts",
@@ -4,7 +4,8 @@ import {
4
4
  dash2hump,
5
5
  collectDataset,
6
6
  hump2dash,
7
- isArray
7
+ isArray,
8
+ getFocusedNavigation
8
9
  } from '@mpxjs/utils'
9
10
 
10
11
  const flushRefFns = (nodeInstances, fns, single) => {
@@ -40,8 +41,10 @@ const wrapFn = (fn) => {
40
41
  const getMeasureProps = (measureProps = []) => {
41
42
  return wrapFn((nodeInstance, resolve) => {
42
43
  const nodeRef = nodeInstance.nodeRef.current
44
+ const navigation = getFocusedNavigation()
43
45
  setTimeout(() => {
44
46
  nodeRef.measure(function (x, y, width, height, pageX, pageY) {
47
+ pageY = pageY - navigation.layout.top
45
48
  const rectAndSize = {
46
49
  width,
47
50
  height,