@tarojs/plugin-platform-harmony-ets 4.0.7-alpha.3 → 4.0.7

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.
@@ -36,6 +36,9 @@ function getAttributes (node: TaroScrollViewElement): ScrollViewAttrs {
36
36
 
37
37
  function getScrollable (node: TaroScrollViewElement) {
38
38
  const _attrs = node._attrs
39
+ if (node?.hmStyle?.overflow === "scroll" || node?.hmStyle?.overflow === "auto") {
40
+ return ScrollDirection.Vertical
41
+ }
39
42
  if (_attrs.scrollX) {
40
43
  return ScrollDirection.Horizontal
41
44
  } else if (_attrs.scrollY) {
@@ -47,11 +50,11 @@ function getScrollable (node: TaroScrollViewElement) {
47
50
 
48
51
  function handleScrollEvent (node: TaroScrollViewElement, eventName = 'scroll', xOffset?: number, yOffset?: number) {
49
52
  if (!node || !node.scroller) return
50
-
53
+
51
54
  const currentOffset = node.scroller.currentOffset() as ScrollViewCurrentOffset
52
-
55
+
53
56
  if (!currentOffset) return
54
-
57
+
55
58
  const currentXOffset = currentOffset.xOffset
56
59
  const currentYOffset = currentOffset.yOffset
57
60
  const value: ScrollViewEvent = {
@@ -190,6 +190,11 @@ export class TaroNode extends TaroDataSourceElement {
190
190
  this.childNodes.push(child)
191
191
  this.notifyDataAdd(this.childNodes.length - 1)
192
192
 
193
+ if (this.nodeName === 'TEXT') {
194
+ // 修复beta2版本文字从undefined -> 有值时的 不更新问题
195
+ this.updateComponent()
196
+ }
197
+
193
198
  // @ts-ignore
194
199
  child.toggleLayer?.(true)
195
200
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/plugin-platform-harmony-ets",
3
- "version": "4.0.7-alpha.3",
3
+ "version": "4.0.7",
4
4
  "description": "OpenHarmony & 鸿蒙系统插件",
5
5
  "author": "O2Team",
6
6
  "homepage": "https://gitee.com/openharmony-sig/taro",
@@ -27,13 +27,13 @@
27
27
  "webpack-sources": "^3.2.3",
28
28
  "@babel/preset-react": "^7.24.1",
29
29
  "webpack": "5.91.0",
30
- "@tarojs/components": "4.0.7-alpha.3",
31
- "@tarojs/helper": "4.0.7-alpha.3",
32
- "@tarojs/runtime": "4.0.7-alpha.3",
33
- "@tarojs/service": "4.0.7-alpha.3",
34
- "@tarojs/runner-utils": "4.0.7-alpha.3",
35
- "@tarojs/taro": "4.0.7-alpha.3",
36
- "@tarojs/shared": "4.0.7-alpha.3"
30
+ "@tarojs/components": "4.0.7",
31
+ "@tarojs/helper": "4.0.7",
32
+ "@tarojs/runner-utils": "4.0.7",
33
+ "@tarojs/service": "4.0.7",
34
+ "@tarojs/shared": "4.0.7",
35
+ "@tarojs/runtime": "4.0.7",
36
+ "@tarojs/taro": "4.0.7"
37
37
  },
38
38
  "devDependencies": {
39
39
  "fast-glob": "^3.3.1",
@@ -42,7 +42,7 @@
42
42
  "rollup-plugin-ts": "^3.4.5",
43
43
  "solid-js": "^1.8.16",
44
44
  "tslib": "^2.4.0",
45
- "rollup-plugin-copy": "4.0.7-alpha.3"
45
+ "rollup-plugin-copy": "4.0.7"
46
46
  },
47
47
  "scripts": {
48
48
  "prod": "pnpm run build",