@dcloudio/uni-app-x 0.6.3 → 0.6.5

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.
Files changed (32) hide show
  1. package/package.json +3 -3
  2. package/types/app.d.ts +843 -842
  3. package/types/index.d.ts +1 -0
  4. package/types/native/Element.d.ts +12 -0
  5. package/types/native/IDocument.d.ts +12 -0
  6. package/types/native/IPage.d.ts +4 -3
  7. package/types/native/SnapshotOptions.d.ts +4 -4
  8. package/types/native/WebViewStyles.d.ts +1 -1
  9. package/types/page.d.ts +1593 -1587
  10. package/types/process.d.ts +5 -0
  11. package/types/uni/env/index.d.ts +64 -0
  12. package/types/uni/index.d.ts +2 -1
  13. package/types/uni/uts-plugin-api/index.d.ts +2 -2
  14. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +66 -0
  15. package/types/uni/uts-plugin-api/lib/{uni-file-manager → uni-fileSystemManager}/utssdk/interface.d.ts +87 -11
  16. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +1 -1
  17. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/index.d.ts +24 -0
  18. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +76 -0
  19. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +16 -7
  20. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +6 -6
  21. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +9 -9
  22. package/types/uni/uts-plugin-biz/index.d.ts +3 -0
  23. package/types/uni/{uts-plugin-modules → uts-plugin-biz}/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +2 -1
  24. package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-push/utssdk/interface.d.ts +1 -1
  25. package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-verify/utssdk/index.d.ts +2 -0
  26. package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-verify/utssdk/interface.d.ts +7 -3
  27. package/types/uni-cloud/interface.d.ts +21 -6
  28. package/types/uni-cloud/unicloud-db/index.ts +314 -0
  29. package/uts-plugin.d.ts +2 -0
  30. package/types/uni/uts-plugin-modules/index.d.ts +0 -1
  31. /package/types/uni/{uts-plugin-modules → uts-plugin-biz}/lib/uni-facialRecognitionVerify/utssdk/index.d.ts +0 -0
  32. /package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-push/utssdk/index.d.ts +0 -0
package/types/index.d.ts CHANGED
@@ -4,3 +4,4 @@
4
4
  /// <reference path='./uni-cloud/index.d.ts' />
5
5
  /// <reference path='./app.d.ts' />
6
6
  /// <reference path='./page.d.ts' />
7
+ /// <reference path='./process.d.ts' />
@@ -262,6 +262,18 @@ export interface Element {
262
262
  */
263
263
  scrollBy(x: number, y: number): void
264
264
 
265
+ /**
266
+ * 返回文档中与指定选择器或选择器组匹配的第一个 Element对象。如果找不到匹配项,则返回null
267
+ * @param {string.cssSelectorString}selector CSS 选择器字符串
268
+ */
269
+ querySelector(selector: string.cssSelectorString): Element | null
270
+
271
+ /**
272
+ * 返回与指定的选择器组匹配的文档中的元素列表
273
+ * @param {string.cssSelectorString}selector CSS 选择器字符串
274
+ */
275
+ querySelectorAll(selector: string.cssSelectorString): Element[] | null
276
+
265
277
  /**
266
278
  * 使元素获取焦点 仅input、Textarea组件支持
267
279
  */
@@ -22,4 +22,16 @@ export interface IDocument extends Element {
22
22
  notifyLayout(): void
23
23
 
24
24
  runAsyncDomTask(fn: () => any | null, callback: (value: any | null) => void): void
25
+
26
+ /**
27
+ * 返回文档中与指定选择器或选择器组匹配的第一个 Element对象。如果找不到匹配项,则返回null
28
+ * @param {string.cssSelectorString}selector CSS 选择器字符串
29
+ */
30
+ querySelector(selector: string.cssSelectorString): Element | null
31
+
32
+ /**
33
+ * 返回与指定的选择器组匹配的文档中的元素列表
34
+ * @param {string.cssSelectorString}selector CSS 选择器字符串
35
+ */
36
+ querySelectorAll(selector: string.cssSelectorString): Element[] | null
25
37
  }
@@ -6,6 +6,7 @@ import { PageEvent } from "./PageEvent";
6
6
  import { PageScrollEvent } from "./PageScrollEvent";
7
7
  import { ResizeEvent } from "./ResizeEvent";
8
8
  import { ITabsNode } from "./UniTabsElement";
9
+ import { NativeLoadFontFaceOptions } from './NativeLoadFontFaceOptions'
9
10
 
10
11
  export enum Type {
11
12
  DEFAULT,
@@ -99,7 +100,8 @@ export interface IPage {
99
100
  | 'onPullDownRefresh'
100
101
  | 'onPageScroll'
101
102
  | 'onResize'
102
- | 'onWebViewServiceMessage',
103
+ | 'onWebViewServiceMessage'
104
+ | 'onPopGesture',
103
105
  callback: (event: PageEvent) => void
104
106
  ): void
105
107
  addEventListener<T extends Event>(event: string, callback: (event: T) => void): UniCallbackWrapper
@@ -115,8 +117,7 @@ export interface IPage {
115
117
  dispatchPageEvent(event: string, data: PageEvent): void
116
118
  viewToTempFilePath(options: ViewToTempFilePathOptions): void
117
119
  dispatchActivityState(key: number, ...params: any[]): void
118
- // LoadFontFaceOptions 类型全局命名冲突
119
- // loadFontFace(options: LoadFontFaceOptions): void
120
+ loadFontFace(options: NativeLoadFontFaceOptions): void
120
121
  /**
121
122
  * 停止排版渲染
122
123
  */
@@ -36,14 +36,14 @@ export class TakeSnapshotOptions {
36
36
 
37
37
  /**
38
38
  * 截图导出类型,目前仅支持 'file' 保存到临时文件目录
39
- * @default "file"
39
+ * @defaultValue "file"
40
40
  */
41
- type: string
41
+ type?: string | null
42
42
  /**
43
43
  * 截图文件格式,目前仅支持 'png'
44
- * @default "png"
44
+ * @defaultValue "png"
45
45
  */
46
- format: string
46
+ format?: string | null
47
47
 
48
48
  /**
49
49
  * 接口调用成功的回调函数
@@ -4,7 +4,7 @@
4
4
  export class WebViewStyles {
5
5
  /**
6
6
  * 网络地址页面加载进度条样式,设置为 false 时表示不显示加载进度条。
7
- * @default false
7
+ * @defaultValue false
8
8
  */
9
9
  progress: WebViewProgressStyles | boolean
10
10
  }