@dcloudio/uni-app-x 0.6.6 → 0.6.8
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.
package/package.json
CHANGED
|
@@ -34,4 +34,9 @@ export interface IDocument extends Element {
|
|
|
34
34
|
* @param {string.cssSelectorString}selector CSS 选择器字符串
|
|
35
35
|
*/
|
|
36
36
|
querySelectorAll(selector: string.cssSelectorString): Element[] | null
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* 页面排版完毕回调callback
|
|
40
|
+
*/
|
|
41
|
+
waitNativeRender(callback: () => void): void
|
|
37
42
|
}
|
package/types/native/IPage.d.ts
CHANGED
|
@@ -71,20 +71,20 @@ export interface IPage {
|
|
|
71
71
|
* 开启排版渲染
|
|
72
72
|
* @param callback 首次排版回调监听器
|
|
73
73
|
*/
|
|
74
|
-
startRender(callback?: () => void): void
|
|
74
|
+
startRender(callback?: (() => void) | null): void
|
|
75
75
|
/**
|
|
76
76
|
* 显示页面
|
|
77
77
|
* @param options 显示配置项
|
|
78
78
|
* @param callback 显示完毕监听器
|
|
79
79
|
*/
|
|
80
|
-
show(options?: Map<String, any
|
|
81
|
-
hide(options?: Map<string, any>): void
|
|
80
|
+
show(options?: Map<String, any> | null, callback?: (() => void) | null): void
|
|
81
|
+
hide(options?: Map<string, any> | null): void
|
|
82
82
|
/**
|
|
83
83
|
* 关闭页面
|
|
84
84
|
* @param options 关闭配置项
|
|
85
85
|
* @param callback 关闭完毕监听器
|
|
86
86
|
*/
|
|
87
|
-
close(options?: Map<String, any
|
|
87
|
+
close(options?: Map<String, any> | null, callback?: (() => void) | null): void
|
|
88
88
|
destroy(): void;
|
|
89
89
|
updateStyle(style: Map<string, any>): void
|
|
90
90
|
createDocument(documentData: INodeData): IDocument
|