@dcloudio/uni-app-x 0.5.2 → 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.2",
3
+ "version": "0.5.3",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
6
  "author": "DCloud",
@@ -1,4 +1,5 @@
1
1
  /// <reference path='./IDocument.d.ts' />
2
+ /// <reference path='./NodeData.d.ts' />
2
3
 
3
4
  /**
4
5
  * @package io.dcloud.uniapp.runtime
@@ -68,4 +69,6 @@ interface IPage {
68
69
  loadFontFace(options: LoadFontFaceOptions): void
69
70
 
70
71
  updateStyle(style: Map<String, any | null>): void
72
+
73
+ createDocument(documentData: INodeData): IDocument
71
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
  }