deeke-script-app 1.8.5 → 1.8.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.
|
@@ -94,7 +94,12 @@ declare global {
|
|
|
94
94
|
* @param url URL地址
|
|
95
95
|
* @param packageName 包名(可选,用于指定打开URL的应用)
|
|
96
96
|
*/
|
|
97
|
-
|
|
97
|
+
/**
|
|
98
|
+
* 打开URL地址。如果提供了packageName,则优先使用指定应用打开,如果应用未安装则使用浏览器打开;如果未提供packageName,则直接使用浏览器打开。
|
|
99
|
+
* @param url URL地址
|
|
100
|
+
* @param packageName 包名(可选,用于指定打开URL的应用)
|
|
101
|
+
*/
|
|
102
|
+
openUrl(url: string, packageName?: string): void;
|
|
98
103
|
}
|
|
99
104
|
}
|
|
100
105
|
|
package/deekeScript.schema.json
CHANGED
|
@@ -61,6 +61,25 @@
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
|
+
"hooks": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"description": "生命周期钩子函数配置",
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"properties": {
|
|
69
|
+
"app_start_before": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"description": "应用启动前执行的钩子函数文件路径"
|
|
72
|
+
},
|
|
73
|
+
"app_start": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"description": "应用启动时执行的钩子函数文件路径"
|
|
76
|
+
},
|
|
77
|
+
"app_active_after": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"description": "应用激活后执行的钩子函数文件路径"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
64
83
|
"groups": {
|
|
65
84
|
"type": "array",
|
|
66
85
|
"description": "主界面的功能组,每组都会包含若干个功能",
|