@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.
- package/package.json +3 -3
- package/types/app.d.ts +843 -842
- package/types/index.d.ts +1 -0
- package/types/native/Element.d.ts +12 -0
- package/types/native/IDocument.d.ts +12 -0
- package/types/native/IPage.d.ts +4 -3
- package/types/native/SnapshotOptions.d.ts +4 -4
- package/types/native/WebViewStyles.d.ts +1 -1
- package/types/page.d.ts +1593 -1587
- package/types/process.d.ts +5 -0
- package/types/uni/env/index.d.ts +64 -0
- package/types/uni/index.d.ts +2 -1
- package/types/uni/uts-plugin-api/index.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +66 -0
- package/types/uni/uts-plugin-api/lib/{uni-file-manager → uni-fileSystemManager}/utssdk/interface.d.ts +87 -11
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/index.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +76 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +16 -7
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +6 -6
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +9 -9
- package/types/uni/uts-plugin-biz/index.d.ts +3 -0
- package/types/uni/{uts-plugin-modules → uts-plugin-biz}/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +2 -1
- package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-push/utssdk/interface.d.ts +1 -1
- package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-verify/utssdk/index.d.ts +2 -0
- package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-verify/utssdk/interface.d.ts +7 -3
- package/types/uni-cloud/interface.d.ts +21 -6
- package/types/uni-cloud/unicloud-db/index.ts +314 -0
- package/uts-plugin.d.ts +2 -0
- package/types/uni/uts-plugin-modules/index.d.ts +0 -1
- /package/types/uni/{uts-plugin-modules → uts-plugin-biz}/lib/uni-facialRecognitionVerify/utssdk/index.d.ts +0 -0
- /package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-push/utssdk/index.d.ts +0 -0
package/types/index.d.ts
CHANGED
|
@@ -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
|
}
|
package/types/native/IPage.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
-
* @
|
|
39
|
+
* @defaultValue "file"
|
|
40
40
|
*/
|
|
41
|
-
type
|
|
41
|
+
type?: string | null
|
|
42
42
|
/**
|
|
43
43
|
* 截图文件格式,目前仅支持 'png'
|
|
44
|
-
* @
|
|
44
|
+
* @defaultValue "png"
|
|
45
45
|
*/
|
|
46
|
-
format
|
|
46
|
+
format?: string | null
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* 接口调用成功的回调函数
|