@dcloudio/uni-app-x 0.5.17 → 0.6.1
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/options.d.ts +9 -0
- package/package.json +4 -3
- package/types/app.d.ts +59 -166
- package/types/index.d.ts +1 -2
- package/types/native/AsyncApiResult.d.ts +1 -1
- package/types/native/CSSStyleDeclaration.d.ts +1 -1
- package/types/native/CustomEvent.d.ts +3 -3
- package/types/native/DOMRect.d.ts +2 -2
- package/types/native/DrawableContext.d.ts +149 -149
- package/types/native/Element.d.ts +11 -9
- package/types/native/Event.d.ts +38 -38
- package/types/native/IApp.d.ts +2 -2
- package/types/native/IComment.d.ts +5 -0
- package/types/native/IDocument.d.ts +5 -4
- package/types/native/INavigationBar.d.ts +1 -1
- package/types/native/IPage.d.ts +15 -10
- package/types/native/IPageManager.d.ts +2 -2
- package/types/native/ITextNode.d.ts +6 -0
- package/types/native/IUniError.d.ts +18 -18
- package/types/native/ImageErrorEvent.d.ts +2 -2
- package/types/native/ImageLoadEvent.d.ts +2 -2
- package/types/native/InputBlurEvent.d.ts +8 -8
- package/types/native/InputConfirmEvent.d.ts +8 -8
- package/types/native/InputEvent.d.ts +20 -20
- package/types/native/InputFocusEvent.d.ts +13 -13
- package/types/native/InputKeyboardHeightChangeEvent.d.ts +12 -12
- package/types/native/MouseEvent.d.ts +58 -58
- package/types/native/NestedPreScrollEvent.d.ts +41 -22
- package/types/native/NodeData.d.ts +2 -2
- package/types/native/PageEvent.d.ts +2 -2
- package/types/native/PageScrollEvent.d.ts +5 -5
- package/types/native/RefresherEvent.d.ts +2 -2
- package/types/native/ResizeEvent.d.ts +27 -27
- package/types/native/RichTextItemClickEvent.d.ts +2 -2
- package/types/native/ScrollEvent.d.ts +28 -28
- package/types/native/ScrollToLowerEvent.d.ts +6 -6
- package/types/native/ScrollToUpperEvent.d.ts +6 -6
- package/types/native/SnapshotOptions.d.ts +8 -8
- package/types/native/SourceError.d.ts +1 -1
- package/types/native/StartNestedScrollEvent.d.ts +26 -7
- package/types/native/StopNestedScrollEvent.d.ts +26 -0
- package/types/native/SwiperAnimationFinishEvent.d.ts +12 -6
- package/types/native/SwiperChangeEvent.d.ts +12 -6
- package/types/native/SwiperTransitionEvent.d.ts +12 -6
- package/types/native/TabTapEvent.d.ts +11 -9
- package/types/native/TextareaBlurEvent.d.ts +12 -12
- package/types/native/TextareaFocusEvent.d.ts +12 -12
- package/types/native/TextareaLineChangeEvent.d.ts +16 -16
- package/types/native/TouchEvent.d.ts +43 -43
- package/types/native/UTSAndroidHookProxy.d.ts +6 -6
- package/types/native/UniAggregateError.d.ts +4 -2
- package/types/native/UniAppManager.d.ts +3 -3
- package/types/native/UniElement.d.ts +30 -15
- package/types/native/UniError.d.ts +7 -7
- package/types/native/UniTabsElement.d.ts +4 -3
- package/types/native/UniTextElement.d.ts +3 -3
- package/types/native/UniVideoElement.d.ts +4 -4
- package/types/native/UniWebViewElement.d.ts +3 -3
- package/types/native/WebViewDownloadEvent.d.ts +3 -3
- package/types/native/WebViewErrorEvent.d.ts +3 -3
- package/types/native/WebViewLoadedEvent.d.ts +3 -3
- package/types/native/WebViewLoadingEvent.d.ts +4 -3
- package/types/native/WebViewMessageEvent.d.ts +3 -3
- package/types/native/WebViewStyles.d.ts +3 -3
- package/types/native/global.d.ts +262 -0
- package/types/native/index.d.ts +61 -58
- package/types/native-global/index.d.ts +1 -0
- package/types/page.d.ts +26 -8
- package/types/uni/core/index.d.ts +3 -3
- package/types/uni/core/lib/base/event/index.d.ts +1 -0
- package/types/uni/core/lib/base/interceptor/index.d.ts +1 -0
- package/types/uni/core/lib/lifecycle/index.d.ts +1 -0
- package/types/uni/core/lib/performance/index.d.ts +1 -0
- package/types/uni/core/lib/route/index.d.ts +13 -0
- package/types/uni/core/lib/route/interface.d.ts +31 -5
- package/types/uni/core/lib/ui/create-selector-query/index.d.ts +1 -0
- package/types/uni/core/lib/ui/get-element-by-id/index.d.ts +1 -0
- package/types/uni/core/lib/ui/get-element-by-id/interface.d.ts +1 -1
- package/types/uni/core/lib/ui/load-font-face/index.d.ts +1 -0
- package/types/uni/core/lib/ui/page-scroll-to/index.d.ts +1 -0
- package/types/uni/core/lib/ui/page-scroll-to/interface.d.ts +1 -1
- package/types/uni/core/lib/ui/pull-down-refresh/index.d.ts +1 -0
- package/types/uni/core/lib/ui/set-navigation-bar-color/index.d.ts +5 -0
- package/types/uni/core/lib/ui/set-navigation-bar-color/interface.d.ts +9 -1
- package/types/uni/core/lib/ui/set-navigation-bar-title/index.d.ts +5 -0
- package/types/uni/core/lib/ui/set-navigation-bar-title/interface.d.ts +10 -1
- package/types/uni/core/lib/ui/tab-bar/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +27 -6
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-push/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-verify/utssdk/index.d.ts +46 -0
- package/types/uni/uts-plugin-api/lib/uni-verify/utssdk/interface.d.ts +201 -0
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-modules/lib/uni-facialRecognitionVerify/utssdk/index.d.ts +13 -0
- package/types/uni/uts-plugin-modules/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +88 -13
- package/types/vue/UniCloudDBElement.d.ts +1 -1
- package/uts-plugin.d.ts +17 -4
- package/types/shims-vue.d.ts +0 -14
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
|
|
1
|
+
import { Event } from "./Event"
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @package io.dcloud.uniapp.runtime
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
6
|
+
export class Touch {
|
|
7
|
+
/**
|
|
8
|
+
* 相对于页面可显示区域左边的距离
|
|
9
|
+
*/
|
|
10
|
+
clientX: number
|
|
11
|
+
/**
|
|
12
|
+
* 相对于页面可显示区域顶部的距离
|
|
13
|
+
*/
|
|
14
|
+
clientY: number
|
|
15
|
+
/**
|
|
16
|
+
* 触摸点的标识符。这个值在这根手指所引发的所有事件中保持一致,直到手指抬起。
|
|
17
|
+
*/
|
|
18
|
+
identifier: number
|
|
19
|
+
/**
|
|
20
|
+
* 相对于文档左边的距离
|
|
21
|
+
*/
|
|
22
|
+
pageX: number
|
|
23
|
+
/**
|
|
24
|
+
* 相对于文档顶部的距离
|
|
25
|
+
*/
|
|
26
|
+
pageY: number
|
|
27
|
+
/**
|
|
28
|
+
* 相对于屏幕左边距离
|
|
29
|
+
*/
|
|
30
|
+
screenX: number
|
|
31
|
+
/**
|
|
32
|
+
* 相对于屏幕顶部的距离
|
|
33
|
+
*/
|
|
34
|
+
screenY: number
|
|
35
|
+
/**
|
|
36
|
+
* 返回当前触摸点按下的压力大小
|
|
37
|
+
*/
|
|
38
|
+
force?: number
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* @package io.dcloud.uniapp.runtime
|
|
43
43
|
*/
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
44
|
+
export class TouchEvent extends Event {
|
|
45
|
+
/**
|
|
46
|
+
* 当前停留在屏幕中的触摸点信息的数组
|
|
47
|
+
*/
|
|
48
|
+
touches: Touch[]
|
|
49
|
+
/**
|
|
50
|
+
* 当前变化的触摸点信息的数组
|
|
51
|
+
*/
|
|
52
|
+
changedTouches: Touch[]
|
|
53
53
|
}
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* @package io.dcloud.uts
|
|
6
6
|
* @autodoc false
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
export interface UTSAndroidHookProxy {
|
|
9
|
+
/**
|
|
10
|
+
* 安卓原生应用初始化时会调用此接口 可在此处进行相关资源数据初始化 和 模块注册逻辑
|
|
11
|
+
* @param application 安卓原生上下文
|
|
12
|
+
*/
|
|
13
|
+
onCreate(application: Application): void
|
|
14
14
|
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
+
import { SourceError } from "./SourceError";
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* 由多个SourceError源错误组成的错误信息对象
|
|
3
5
|
* @package io.dcloud.uniapp
|
|
4
6
|
*/
|
|
5
|
-
|
|
7
|
+
export class UniAggregateError extends SourceError {
|
|
6
8
|
|
|
7
9
|
/**
|
|
8
10
|
* 创建由多个源错误组成的 UniAggregateError 对象
|
|
9
11
|
* @param message 源错误描述信息
|
|
10
12
|
*/
|
|
11
|
-
constructor(errors: Array<SourceError>);
|
|
13
|
+
constructor (errors: Array<SourceError>);
|
|
12
14
|
|
|
13
15
|
/**
|
|
14
16
|
* 源错误描述信息
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import { IPage } from "./IPage"
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @package io.dcloud.uniapp.appframe
|
|
5
5
|
* @autodoc false
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
export const UniAppManager: {
|
|
8
8
|
getCurrentApp(): CurrentApp
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
export interface CurrentApp {
|
|
12
12
|
pageManager: {
|
|
13
13
|
createPage(url: string, id: unknown, styles: unknown): IPage
|
|
14
14
|
}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import { CSSStyleDeclaration } from "./CSSStyleDeclaration";
|
|
2
|
+
import { DOMRect } from "./DOMRect";
|
|
3
|
+
import { DrawableContext } from "./DrawableContext";
|
|
4
|
+
import { Element } from "./Element";
|
|
5
|
+
import { Event } from './Event'
|
|
6
|
+
import { TakeSnapshotOptions } from "./SnapshotOptions";
|
|
2
7
|
|
|
3
8
|
/**
|
|
4
9
|
* view元素对象
|
|
5
10
|
* @package io.dcloud.uniapp.runtime
|
|
6
11
|
* @autodoc false
|
|
7
12
|
*/
|
|
8
|
-
|
|
13
|
+
export class UniElement implements Element {
|
|
14
|
+
classList: string[];
|
|
9
15
|
firstChild: Element;
|
|
10
16
|
lastChild: Element;
|
|
11
17
|
parentNode: Element;
|
|
@@ -17,8 +23,8 @@ declare class UniElement implements Element {
|
|
|
17
23
|
childNodes: Element[];
|
|
18
24
|
tagName: string;
|
|
19
25
|
nodeName: string;
|
|
20
|
-
dataset: Map<string, any>;
|
|
21
|
-
attributes: Map<string, any>;
|
|
26
|
+
dataset: Map<string, any | null>;
|
|
27
|
+
attributes: Map<string, any | null>;
|
|
22
28
|
style: CSSStyleDeclaration;
|
|
23
29
|
scrollWidth: number;
|
|
24
30
|
scrollHeight: number;
|
|
@@ -56,7 +62,7 @@ declare class UniElement implements Element {
|
|
|
56
62
|
* @package io.dcloud.uniapp.runtime
|
|
57
63
|
* @autodoc false
|
|
58
64
|
*/
|
|
59
|
-
|
|
65
|
+
export interface UniViewElement extends UniElement {
|
|
60
66
|
}
|
|
61
67
|
|
|
62
68
|
/**
|
|
@@ -64,7 +70,7 @@ declare interface UniViewElement extends UniElement {
|
|
|
64
70
|
* @package io.dcloud.uniapp.runtime
|
|
65
71
|
* @autodoc false
|
|
66
72
|
*/
|
|
67
|
-
|
|
73
|
+
export interface UniScrollViewElement extends UniElement {
|
|
68
74
|
}
|
|
69
75
|
|
|
70
76
|
/**
|
|
@@ -72,7 +78,7 @@ declare interface UniScrollViewElement extends UniElement {
|
|
|
72
78
|
* @package io.dcloud.uniapp.runtime
|
|
73
79
|
* @autodoc false
|
|
74
80
|
*/
|
|
75
|
-
|
|
81
|
+
export interface UniListViewElement extends UniScrollViewElement {
|
|
76
82
|
}
|
|
77
83
|
|
|
78
84
|
/**
|
|
@@ -80,7 +86,7 @@ declare interface UniListViewElement extends UniScrollViewElement {
|
|
|
80
86
|
* @package io.dcloud.uniapp.runtime
|
|
81
87
|
* @autodoc false
|
|
82
88
|
*/
|
|
83
|
-
|
|
89
|
+
export interface UniListItemElement extends UniElement {
|
|
84
90
|
}
|
|
85
91
|
|
|
86
92
|
/**
|
|
@@ -88,7 +94,7 @@ declare interface UniListItemElement extends UniElement {
|
|
|
88
94
|
* @package io.dcloud.uniapp.runtime
|
|
89
95
|
* @autodoc false
|
|
90
96
|
*/
|
|
91
|
-
|
|
97
|
+
export interface UniSwiperElement extends UniElement {
|
|
92
98
|
}
|
|
93
99
|
|
|
94
100
|
/**
|
|
@@ -96,7 +102,7 @@ declare interface UniSwiperElement extends UniElement {
|
|
|
96
102
|
* @package io.dcloud.uniapp.runtime
|
|
97
103
|
* @autodoc false
|
|
98
104
|
*/
|
|
99
|
-
|
|
105
|
+
export interface UniSwiperItemElement extends UniElement {
|
|
100
106
|
}
|
|
101
107
|
|
|
102
108
|
/**
|
|
@@ -104,7 +110,7 @@ declare interface UniSwiperItemElement extends UniElement {
|
|
|
104
110
|
* @package io.dcloud.uniapp.runtime
|
|
105
111
|
* @autodoc false
|
|
106
112
|
*/
|
|
107
|
-
|
|
113
|
+
export interface UniImageElement extends UniElement {
|
|
108
114
|
}
|
|
109
115
|
|
|
110
116
|
/**
|
|
@@ -112,7 +118,7 @@ declare interface UniImageElement extends UniElement {
|
|
|
112
118
|
* @package io.dcloud.uniapp.runtime
|
|
113
119
|
* @autodoc false
|
|
114
120
|
*/
|
|
115
|
-
|
|
121
|
+
export interface UniInputElement extends UniElement {
|
|
116
122
|
}
|
|
117
123
|
|
|
118
124
|
/**
|
|
@@ -120,7 +126,7 @@ declare interface UniInputElement extends UniElement {
|
|
|
120
126
|
* @package io.dcloud.uniapp.runtime
|
|
121
127
|
* @autodoc false
|
|
122
128
|
*/
|
|
123
|
-
|
|
129
|
+
export interface UniTextareaElement extends UniElement {
|
|
124
130
|
}
|
|
125
131
|
|
|
126
132
|
/**
|
|
@@ -128,7 +134,7 @@ declare interface UniTextareaElement extends UniElement {
|
|
|
128
134
|
* @package io.dcloud.uniapp.runtime
|
|
129
135
|
* @autodoc false
|
|
130
136
|
*/
|
|
131
|
-
|
|
137
|
+
export interface UniRichTextElement extends UniElement {
|
|
132
138
|
}
|
|
133
139
|
|
|
134
140
|
/**
|
|
@@ -136,5 +142,14 @@ declare interface UniRichTextElement extends UniElement {
|
|
|
136
142
|
* @package io.dcloud.uniapp.runtime
|
|
137
143
|
* @autodoc false
|
|
138
144
|
*/
|
|
139
|
-
|
|
145
|
+
export interface UniStickyHeaderElement extends UniElement {
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* sticky-section元素对象
|
|
151
|
+
* @package io.dcloud.uniapp.runtime
|
|
152
|
+
* @autodoc false
|
|
153
|
+
*/
|
|
154
|
+
export interface UniStickySectionElement extends UniElement {
|
|
140
155
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
import { IUniError } from "./IUniError";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* uni api统一错误信息对象
|
|
5
5
|
* @package io.dcloud.uniapp
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
export class UniError extends Error implements IUniError {
|
|
8
8
|
/**
|
|
9
9
|
* 创建一个新的 UniError 对象
|
|
10
10
|
*/
|
|
11
|
-
constructor();
|
|
11
|
+
constructor ();
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* 创建一个指定错误描述信息的 UniError 对象
|
|
15
15
|
* @param message 统一错误描述信息
|
|
16
16
|
*/
|
|
17
|
-
constructor(message: string);
|
|
17
|
+
constructor (message: string);
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* 创建一个指定错误描述信息和源错误的 UniError 对象
|
|
@@ -29,7 +29,7 @@ declare class UniError extends Error implements IUniError {
|
|
|
29
29
|
}
|
|
30
30
|
```
|
|
31
31
|
*/
|
|
32
|
-
constructor(message: string, options: UTSJSONObject);
|
|
32
|
+
constructor (message: string, options: UTSJSONObject);
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
* 创建一个指定错误主题、错误码和错误描述信息的 UniError 对象
|
|
@@ -41,7 +41,7 @@ declare class UniError extends Error implements IUniError {
|
|
|
41
41
|
let uerr = new UniError("uni-testAPI", 12001, "system not support");
|
|
42
42
|
```
|
|
43
43
|
*/
|
|
44
|
-
constructor(errSubject: string, errCode: number, errMsg: string);
|
|
44
|
+
constructor (errSubject: string, errCode: number, errMsg: string);
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
47
|
* 统一错误主题(模块)名称
|
|
@@ -62,7 +62,7 @@ declare class UniError extends Error implements IUniError {
|
|
|
62
62
|
* 错误信息中包含的数据
|
|
63
63
|
*/
|
|
64
64
|
data: any | null;
|
|
65
|
-
|
|
65
|
+
|
|
66
66
|
/**
|
|
67
67
|
* 源错误信息,可以包含多个错误,详见SourceError
|
|
68
68
|
*/
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { Element } from "./Element";
|
|
2
|
+
import { UniElement } from "./UniElement";
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* tabs元素对象
|
|
5
6
|
* @package io.dcloud.uniapp.runtime
|
|
6
7
|
* @autodoc false
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
+
export interface UniTabsElement extends UniElement {
|
|
9
10
|
/**
|
|
10
11
|
* 添加item
|
|
11
12
|
* @param pageId 页面id
|
|
@@ -86,4 +87,4 @@ declare interface UniTabsElement extends UniElement {
|
|
|
86
87
|
currentItemId: string | null
|
|
87
88
|
}
|
|
88
89
|
|
|
89
|
-
type ITabsNode = UniTabsElement
|
|
90
|
+
export type ITabsNode = UniTabsElement
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { UniElement } from "./UniElement"
|
|
2
2
|
|
|
3
|
-
interface TextElement {
|
|
3
|
+
export interface TextElement {
|
|
4
4
|
/**
|
|
5
5
|
* 只读属性 text元素的文案内容
|
|
6
6
|
*/
|
|
@@ -13,7 +13,7 @@ interface TextElement {
|
|
|
13
13
|
* @package io.dcloud.uniapp.runtime
|
|
14
14
|
* @autodoc false
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
export class UniTextElement extends UniElement implements TextElement {
|
|
17
17
|
/**
|
|
18
18
|
* 只读属性 text元素的文案内容
|
|
19
19
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { Element } from "./Element"
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* video元素对象
|
|
5
5
|
* @package io.dcloud.uniapp.runtime
|
|
6
6
|
* @autodoc false
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
export interface UniVideoElement extends Element {
|
|
9
9
|
/**
|
|
10
10
|
* 播放
|
|
11
11
|
*/
|
|
@@ -44,7 +44,7 @@ declare interface UniVideoElement extends Element {
|
|
|
44
44
|
exitFullScreen(): void
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
export type Danmu = {
|
|
48
48
|
/**
|
|
49
49
|
* 弹幕文字
|
|
50
50
|
*/
|
|
@@ -59,7 +59,7 @@ declare type Danmu = {
|
|
|
59
59
|
time: number | null
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
export type RequestFullScreenOptions = {
|
|
63
63
|
/**
|
|
64
64
|
* direction
|
|
65
65
|
* - 0: 正常竖向
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { UniElement } from "./UniElement"
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* web-view元素对象
|
|
5
5
|
* @package io.dcloud.uniapp.runtime
|
|
6
6
|
* @autodoc false
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
export interface UniWebViewElement extends UniElement {
|
|
9
9
|
/**
|
|
10
10
|
* 后退
|
|
11
11
|
*/
|
|
@@ -28,4 +28,4 @@ declare interface UniWebViewElement extends UniElement {
|
|
|
28
28
|
evalJS(js: string): void
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
type IWebViewNode = UniWebViewElement
|
|
31
|
+
export type IWebViewNode = UniWebViewElement
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { CustomEvent } from "./CustomEvent"
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @package io.dcloud.uniapp.runtime
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
export class WebViewDownloadEventDetail {
|
|
7
7
|
/**
|
|
8
8
|
* 下载链接
|
|
9
9
|
*/
|
|
@@ -29,7 +29,7 @@ declare class WebViewDownloadEventDetail {
|
|
|
29
29
|
/**
|
|
30
30
|
* @package io.dcloud.uniapp.runtime
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
export class WebViewDownloadEvent extends CustomEvent<WebViewDownloadEventDetail> {
|
|
33
33
|
/**
|
|
34
34
|
* 事件类型,固定值download
|
|
35
35
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { CustomEvent } from "./CustomEvent"
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @package io.dcloud.uniapp.runtime
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
export class WebViewErrorEventDetail {
|
|
7
7
|
/**
|
|
8
8
|
* 统一错误主题(模块)名称,固定值uni-web-view
|
|
9
9
|
*/
|
|
@@ -24,7 +24,7 @@ declare class WebViewErrorEventDetail {
|
|
|
24
24
|
/**
|
|
25
25
|
* @package io.dcloud.uniapp.runtime
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
export class WebViewErrorEvent extends CustomEvent<WebViewErrorEventDetail> {
|
|
28
28
|
/**
|
|
29
29
|
* 事件类型,固定值error
|
|
30
30
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { CustomEvent } from "./CustomEvent"
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @package io.dcloud.uniapp.runtime
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
export class WebViewLoadedEventDetail {
|
|
7
7
|
/**
|
|
8
8
|
* 加载完成的网页链接
|
|
9
9
|
*/
|
|
@@ -13,7 +13,7 @@ declare class WebViewLoadedEventDetail {
|
|
|
13
13
|
/**
|
|
14
14
|
* @package io.dcloud.uniapp.runtime
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
export class WebViewLoadedEvent extends CustomEvent<WebViewLoadedEventDetail> {
|
|
17
17
|
/**
|
|
18
18
|
* 事件类型,固定值loaded
|
|
19
19
|
*/
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { CustomEvent } from "./CustomEvent"
|
|
2
|
+
import { Event } from "./Event"
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* @package io.dcloud.uniapp.runtime
|
|
5
6
|
*/
|
|
6
|
-
|
|
7
|
+
export class WebViewLoadingEventDetail extends Event {
|
|
7
8
|
/**
|
|
8
9
|
* 加载中的网页链接
|
|
9
10
|
*/
|
|
@@ -13,7 +14,7 @@ declare class WebViewLoadingEventDetail extends Event {
|
|
|
13
14
|
/**
|
|
14
15
|
* @package io.dcloud.uniapp.runtime
|
|
15
16
|
*/
|
|
16
|
-
|
|
17
|
+
export class WebViewLoadingEvent extends CustomEvent<WebViewLoadingEventDetail> {
|
|
17
18
|
/**
|
|
18
19
|
* 事件类型,固定值loading
|
|
19
20
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { CustomEvent } from "./CustomEvent"
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @package io.dcloud.uniapp.runtime
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
export class WebViewMessageEventDetail {
|
|
7
7
|
/**
|
|
8
8
|
* 消息包含的数据
|
|
9
9
|
*/
|
|
@@ -13,7 +13,7 @@ declare class WebViewMessageEventDetail {
|
|
|
13
13
|
/**
|
|
14
14
|
* @package io.dcloud.uniapp.runtime
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
export class WebViewMessageEvent extends CustomEvent<WebViewMessageEventDetail> {
|
|
17
17
|
/**
|
|
18
18
|
* 事件类型,固定值message
|
|
19
19
|
*/
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* web-view组件的样式
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
export class WebViewStyles {
|
|
5
5
|
/**
|
|
6
6
|
* 网络地址页面加载进度条样式,设置为 false 时表示不显示加载进度条。
|
|
7
7
|
* @default false
|
|
8
8
|
*/
|
|
9
|
-
progress: WebViewProgressStyles|boolean
|
|
9
|
+
progress: WebViewProgressStyles | boolean
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* web-view组件的进度条样式
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
export class WebViewProgressStyles {
|
|
16
16
|
/**
|
|
17
17
|
* 网页加载进度条颜色,默认值为 #00FF00 。
|
|
18
18
|
*/
|