@dcloudio/uni-app-x 0.5.1 → 0.5.3

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.5.1",
3
+ "version": "0.5.3",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
6
  "author": "DCloud",
@@ -1,37 +1,38 @@
1
1
  /// <reference path='./IDocument.d.ts' />
2
+ /// <reference path='./NodeData.d.ts' />
2
3
 
3
4
  /**
4
5
  * @package io.dcloud.uniapp.runtime
5
6
  * @autodoc false
6
7
  */
7
- interface IPage {
8
- /**
9
- * 页面id
8
+ interface IPage {
9
+ /**
10
+ * 页面id
10
11
  */
11
- pageId: string
12
- /**
13
- * document对象
12
+ pageId: string
13
+ /**
14
+ * document对象
14
15
  */
15
16
  document: IDocument
16
- /**
17
- * 显示页面
18
- * @param {Map<String, Any>} options 显示配置项
19
- * @param {() => void} callback 显示完毕监听器
17
+ /**
18
+ * 显示页面
19
+ * @param {Map<String, Any>} options 显示配置项
20
+ * @param {() => void} callback 显示完毕监听器
20
21
  */
21
22
  show(options?: any, callback?: () => void): void
22
- /**
23
- * 关闭页面
24
- * @param {Map<String, Any>} options 关闭配置项
25
- * @param {() => void} callback 关闭完毕监听器
23
+ /**
24
+ * 关闭页面
25
+ * @param {Map<String, Any>} options 关闭配置项
26
+ * @param {() => void} callback 关闭完毕监听器
26
27
  */
27
28
  close(options?: any, callback?: () => void): void
28
- /**
29
- * 开启排版渲染
30
- * @param {() => void} callback 首次排版回调监听器
29
+ /**
30
+ * 开启排版渲染
31
+ * @param {() => void} callback 首次排版回调监听器
31
32
  */
32
33
  startRender(callback?: () => void): void
33
- /**
34
- * 停止排版渲染
34
+ /**
35
+ * 停止排版渲染
35
36
  */
36
37
  stopRender(): void
37
38
 
@@ -66,4 +67,8 @@ interface IPage {
66
67
  stopPullDownRefresh(): void
67
68
 
68
69
  loadFontFace(options: LoadFontFaceOptions): void
70
+
71
+ updateStyle(style: Map<String, any | null>): void
72
+
73
+ createDocument(documentData: INodeData): IDocument
69
74
  }
@@ -1,10 +1,21 @@
1
+ /**
2
+ * @package io.dcloud.uniapp.interfaces
3
+ * @autodoc false
4
+ */
5
+ interface INodeData {
6
+ id: string
7
+ name: string
8
+ attrs?: Map<string, any | null>
9
+ style: Map<string, any | null>
10
+ }
11
+
1
12
  /**
2
13
  * @package io.dcloud.uniapp.native.node
3
14
  * @autodoc false
4
15
  */
5
- declare class NodeData {
16
+ declare class NodeData implements INodeData {
6
17
  id: string
7
18
  name: string
8
19
  attrs?: Map<string, any | null>
9
- style?: Map<string, any | null>
20
+ style: Map<string, any | null>
10
21
  }