@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-app-x",
3
- "version": "0.6.6",
3
+ "version": "0.6.8",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
6
  "author": "DCloud",
@@ -283,11 +283,6 @@ export interface Element {
283
283
  * 使元素丢失焦点 仅input、Textarea组件支持
284
284
  */
285
285
  blur(): void
286
-
287
- /**
288
- * 页面排版完毕回调callback
289
- */
290
- waitNativeRender(callback: () => void): void
291
286
  }
292
287
 
293
288
  export type INode = Element
@@ -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
  }
@@ -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>, callback?: () => void): void
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>, callback?: () => void): void
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