@tarojs/plugin-platform-harmony-ets 4.0.0-beta.65 → 4.0.0-beta.66

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.
@@ -29,8 +29,8 @@ export default struct TaroMovableView {
29
29
  this.node._instance = this
30
30
 
31
31
  setTimeout(() => {
32
- const x = this.node.getAttribute('x') ? +this.node.getAttribute('x') : 0
33
- const y = this.node.getAttribute('y') ? +this.node.getAttribute('y') : 0
32
+ const x = this.node.getAttribute('x') ? Number(this.node.getAttribute('x')) : 0
33
+ const y = this.node.getAttribute('y') ? Number(this.node.getAttribute('y')) : 0
34
34
  this.node.checkPositionBoundary({ x, y }, this.node.scaleValue)
35
35
  }, 0)
36
36
  }
@@ -32,6 +32,7 @@ export class TaroNode extends TaroDataSourceElement {
32
32
  public parentNode: TaroNode | null = null
33
33
  public _nid: string = genId()
34
34
  public _doc: TaroDocument | null = null
35
+ public _instance?: TaroAny
35
36
 
36
37
  private _textContent = ''
37
38
 
@@ -78,7 +79,7 @@ export class TaroNode extends TaroDataSourceElement {
78
79
  // 更新对应的 ArkUI 组件
79
80
  public updateComponent () {
80
81
  // 非半编译模式或者半编译模式下拥有自主更新权力的节点走 @State 的更新模式
81
- if (this._isDynamicNode || !this._isCompileMode) {
82
+ if (this._isDynamicNode || (!this._isCompileMode && this._instance)) {
82
83
  this._updateTrigger++
83
84
  } else {
84
85
  this.parentNode?.updateComponent()
@@ -131,6 +132,9 @@ export class TaroNode extends TaroDataSourceElement {
131
132
  public set textContent (value: string) {
132
133
  if (this.nodeType === NodeType.TEXT_NODE) {
133
134
  this._textContent = value
135
+ if (!this._instance) {
136
+ this.updateComponent()
137
+ }
134
138
  } else if (this.nodeType === NodeType.ELEMENT_NODE) {
135
139
  const node = new TaroTextNode(value)
136
140
  node._doc = this.ownerDocument
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/plugin-platform-harmony-ets",
3
- "version": "4.0.0-beta.65",
3
+ "version": "4.0.0-beta.66",
4
4
  "description": "OpenHarmony & 鸿蒙系统插件",
5
5
  "author": "O2Team",
6
6
  "homepage": "https://gitee.com/openharmony-sig/taro",
@@ -25,13 +25,13 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "webpack-sources": "^3.2.3",
28
- "@tarojs/components": "4.0.0-beta.65",
29
- "@tarojs/helper": "4.0.0-beta.65",
30
- "@tarojs/runner-utils": "4.0.0-beta.65",
31
- "@tarojs/runtime": "4.0.0-beta.65",
32
- "@tarojs/shared": "4.0.0-beta.65",
33
- "@tarojs/taro": "4.0.0-beta.65",
34
- "@tarojs/service": "4.0.0-beta.65"
28
+ "@tarojs/components": "4.0.0-beta.66",
29
+ "@tarojs/helper": "4.0.0-beta.66",
30
+ "@tarojs/runner-utils": "4.0.0-beta.66",
31
+ "@tarojs/shared": "4.0.0-beta.66",
32
+ "@tarojs/runtime": "4.0.0-beta.66",
33
+ "@tarojs/taro": "4.0.0-beta.66",
34
+ "@tarojs/service": "4.0.0-beta.66"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@rollup/plugin-commonjs": "^25.0.7",
@@ -44,7 +44,7 @@
44
44
  "solid-js": "^1.8.16",
45
45
  "tslib": "^2.4.0",
46
46
  "typescript": "^4.8.2",
47
- "rollup-plugin-copy": "4.0.0-beta.65"
47
+ "rollup-plugin-copy": "4.0.0-beta.66"
48
48
  },
49
49
  "scripts": {
50
50
  "prebuild": "rimraf ./dist",