@tarojs/plugin-platform-harmony-ets 4.1.8 → 4.1.9-beta.0
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.
|
@@ -7,7 +7,7 @@ export declare function isElement(node: TaroNode): node is TaroElement;
|
|
|
7
7
|
* @param node 当前组件
|
|
8
8
|
* @param type 事件类型
|
|
9
9
|
*/
|
|
10
|
-
export declare function
|
|
10
|
+
export declare function isParentBound(node: TaroElement | null, type: string): boolean;
|
|
11
11
|
export declare function convertNumber2PX(value: number): string | number;
|
|
12
12
|
export declare function convertNumber2VP(value: number, unit?: string): string | number;
|
|
13
13
|
export declare function parseClasses(classNames?: string): string[];
|
|
@@ -19,7 +19,7 @@ export function isElement (node: TaroNode): node is TaroElement {
|
|
|
19
19
|
* @param node 当前组件
|
|
20
20
|
* @param type 事件类型
|
|
21
21
|
*/
|
|
22
|
-
export function
|
|
22
|
+
export function isParentBound (node: TaroElement | null, type: string): boolean {
|
|
23
23
|
let res = false
|
|
24
24
|
|
|
25
25
|
while (node?.parentElement) {
|
|
@@ -319,7 +319,7 @@ export function createNativePageConfig (
|
|
|
319
319
|
[ONUNLOAD] () {
|
|
320
320
|
const $taroPath = this.$taroPath
|
|
321
321
|
// 销毁当前页面的上下文信息
|
|
322
|
-
window.trigger(CONTEXT_ACTIONS.
|
|
322
|
+
window.trigger(CONTEXT_ACTIONS.DESTROY, $taroPath)
|
|
323
323
|
// 触发 onUnload 生命周期
|
|
324
324
|
safeExecute($taroPath, ONUNLOAD)
|
|
325
325
|
|
|
@@ -152,7 +152,7 @@ export function createPageConfig (component: any, pageName?: string, pageConfig?
|
|
|
152
152
|
[ONUNLOAD] () {
|
|
153
153
|
const $taroPath = this.$taroPath
|
|
154
154
|
// 销毁当前页面的上下文信息
|
|
155
|
-
window.trigger(CONTEXT_ACTIONS.
|
|
155
|
+
window.trigger(CONTEXT_ACTIONS.DESTROY, $taroPath)
|
|
156
156
|
|
|
157
157
|
// 触发onUnload生命周期
|
|
158
158
|
safeExecute($taroPath, ON_UNLOAD)
|
|
@@ -152,7 +152,7 @@ export function createPageConfig (component: any, pageName?: string, pageConfig?
|
|
|
152
152
|
[ONUNLOAD] () {
|
|
153
153
|
const $taroPath = this.$taroPath
|
|
154
154
|
// 销毁当前页面的上下文信息
|
|
155
|
-
window.trigger(CONTEXT_ACTIONS.
|
|
155
|
+
window.trigger(CONTEXT_ACTIONS.DESTROY, $taroPath)
|
|
156
156
|
|
|
157
157
|
// 触发onUnload生命周期
|
|
158
158
|
safeExecute($taroPath, ON_UNLOAD)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/plugin-platform-harmony-ets",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.9-beta.0",
|
|
4
4
|
"description": "OpenHarmony & 鸿蒙系统插件",
|
|
5
5
|
"author": "O2Team",
|
|
6
6
|
"homepage": "https://gitee.com/openharmony-sig/taro",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"webpack-sources": "^3.2.3",
|
|
29
29
|
"@babel/preset-react": "^7.24.1",
|
|
30
30
|
"webpack": "5.91.0",
|
|
31
|
-
"@tarojs/
|
|
32
|
-
"@tarojs/
|
|
33
|
-
"@tarojs/
|
|
34
|
-
"@tarojs/
|
|
35
|
-
"@tarojs/service": "4.1.
|
|
36
|
-
"@tarojs/shared": "4.1.
|
|
37
|
-
"@tarojs/taro": "4.1.
|
|
31
|
+
"@tarojs/helper": "4.1.9-beta.0",
|
|
32
|
+
"@tarojs/runner-utils": "4.1.9-beta.0",
|
|
33
|
+
"@tarojs/components": "4.1.9-beta.0",
|
|
34
|
+
"@tarojs/runtime": "4.1.9-beta.0",
|
|
35
|
+
"@tarojs/service": "4.1.9-beta.0",
|
|
36
|
+
"@tarojs/shared": "4.1.9-beta.0",
|
|
37
|
+
"@tarojs/taro": "4.1.9-beta.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"fast-glob": "^3.3.1",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
44
44
|
"solid-js": "^1.8.16",
|
|
45
45
|
"tslib": "^2.4.0",
|
|
46
|
-
"rollup-plugin-copy": "4.1.
|
|
46
|
+
"rollup-plugin-copy": "4.1.9-beta.0"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"prod": "pnpm run build",
|