@tarojs/plugin-platform-harmony-ets 4.0.0-beta.106 → 4.0.0-beta.108
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.
|
@@ -222,6 +222,7 @@ export function setSpecialTextAttributeIntoInstance(instance: TextAttribute, sty
|
|
|
222
222
|
}
|
|
223
223
|
if (!isUndefined(style.WebkitLineClamp)) {
|
|
224
224
|
instance.maxLines(style.WebkitLineClamp)
|
|
225
|
+
instance.textOverflow({overflow: TextOverflow.Ellipsis})
|
|
225
226
|
}
|
|
226
227
|
if (!isUndefined(style.letterSpacing)) {
|
|
227
228
|
instance.letterSpacing(style.letterSpacing)
|
|
@@ -34,7 +34,26 @@ export class TaroElement<
|
|
|
34
34
|
layer: 0 // 渲染层级
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
public
|
|
37
|
+
public _hm_instance: TaroAny
|
|
38
|
+
public weak_hm_instance: WeakRef<TaroAny>
|
|
39
|
+
public use_weak_hm_instance: boolean = true
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
public get hm_instance(): TaroAny {
|
|
43
|
+
if (this.use_weak_hm_instance) {
|
|
44
|
+
return this.weak_hm_instance?.deref()
|
|
45
|
+
}
|
|
46
|
+
return this._hm_instance
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
public set hm_instance(v) {
|
|
50
|
+
if (this.use_weak_hm_instance) {
|
|
51
|
+
this.weak_hm_instance = new WeakRef(v);
|
|
52
|
+
return
|
|
53
|
+
}
|
|
54
|
+
this._hm_instance = v
|
|
55
|
+
}
|
|
56
|
+
|
|
38
57
|
|
|
39
58
|
public get _instance () {
|
|
40
59
|
return this.hm_instance
|
|
@@ -173,10 +173,9 @@ function initNativeComponentEntry (params: InitNativeComponentEntryParams) {
|
|
|
173
173
|
app?.appendChild(nativeApp)
|
|
174
174
|
app = nativeApp
|
|
175
175
|
}
|
|
176
|
-
|
|
177
|
-
ReactDOM.
|
|
178
|
-
|
|
179
|
-
// root.render?.(h(Entry))
|
|
176
|
+
|
|
177
|
+
const root = ReactDOM.createRoot(app)
|
|
178
|
+
root.render?.(h(Entry))
|
|
180
179
|
}
|
|
181
180
|
|
|
182
181
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/plugin-platform-harmony-ets",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.108",
|
|
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/
|
|
31
|
-
"@tarojs/runner-utils": "4.0.0-beta.
|
|
32
|
-
"@tarojs/
|
|
33
|
-
"@tarojs/
|
|
34
|
-
"@tarojs/
|
|
35
|
-
"@tarojs/
|
|
36
|
-
"@tarojs/taro": "4.0.0-beta.
|
|
30
|
+
"@tarojs/components": "4.0.0-beta.108",
|
|
31
|
+
"@tarojs/runner-utils": "4.0.0-beta.108",
|
|
32
|
+
"@tarojs/runtime": "4.0.0-beta.108",
|
|
33
|
+
"@tarojs/helper": "4.0.0-beta.108",
|
|
34
|
+
"@tarojs/shared": "4.0.0-beta.108",
|
|
35
|
+
"@tarojs/service": "4.0.0-beta.108",
|
|
36
|
+
"@tarojs/taro": "4.0.0-beta.108"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"fast-glob": "^3.3.1",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"rollup-plugin-ts": "^3.0.2",
|
|
43
43
|
"solid-js": "^1.8.16",
|
|
44
44
|
"tslib": "^2.4.0",
|
|
45
|
-
"rollup-plugin-copy": "4.0.0-beta.
|
|
45
|
+
"rollup-plugin-copy": "4.0.0-beta.108"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"prod": "pnpm run build",
|