@tarojs/plugin-platform-harmony-ets 4.0.0-beta.121 → 4.0.0-beta.122

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.
@@ -6,8 +6,8 @@
6
6
  * 文档地址 https://developer.harmonyos.com/cn/docs/documentation/doc-references/js-framework-syntax-js-0000000000611432
7
7
  */
8
8
  import { AREA_CHANGE_EVENT_NAME, Current, findChildNodeWithDFS, getPageScrollerOrNode, setNodeEventCallbackAndTriggerComponentUpdate } from '@tarojs/runtime'
9
+ import { pxTransformHelper } from '@tarojs/taro'
9
10
 
10
- import { pxTransformHelper } from '../../index'
11
11
  import { MethodHandler } from '../../utils/handler'
12
12
 
13
13
  import type Taro from '@tarojs/taro/types'
@@ -31,6 +31,7 @@ import router from '@ohos.router';
31
31
  import bundleManager from '@ohos.bundle.bundleManager';
32
32
  import distributedKVStore from '@ohos.data.distributedKVStore';
33
33
  import matrix4 from '@ohos.matrix4';
34
+ import { pxTransformHelper as pxTransformHelper$1 } from '@tarojs/taro';
34
35
 
35
36
  class MethodHandler {
36
37
  constructor({ name, success, fail, complete }) {
@@ -4038,7 +4039,7 @@ const pageScrollTo = (options) => {
4038
4039
  scroller = getPageScrollerOrNode(scroller, page);
4039
4040
  const { yOffset } = scroller.currentOffset();
4040
4041
  if (areaInfo) {
4041
- scrollValue = areaInfo.globalPosition.y + yOffset + pxTransformHelper(offsetTop, 'px', true);
4042
+ scrollValue = areaInfo.globalPosition.y + yOffset + pxTransformHelper$1(offsetTop, 'px', true);
4042
4043
  }
4043
4044
  }
4044
4045
  if (!scroller || scrollValue === -1) {