@dcloudio/uni-app-x 0.5.16 → 0.6.0
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 +15 -12
- 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 +7 -5
- package/types/native/Event.d.ts +38 -38
- package/types/native/IApp.d.ts +2 -2
- package/types/native/IDocument.d.ts +3 -3
- 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/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 +22 -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 +7 -7
- package/types/native/SwiperAnimationFinishEvent.d.ts +6 -6
- package/types/native/SwiperChangeEvent.d.ts +6 -6
- package/types/native/SwiperTransitionEvent.d.ts +6 -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 +254 -0
- package/types/native/index.d.ts +57 -58
- package/types/native-global/index.d.ts +1 -0
- package/types/page.d.ts +26 -8
- package/types/uni/core/lib/route/index.d.ts +12 -0
- package/types/uni/core/lib/route/interface.d.ts +31 -5
- package/types/uni/core/lib/ui/get-element-by-id/interface.d.ts +1 -1
- package/types/uni/core/lib/ui/page-scroll-to/index.d.ts +4 -0
- package/types/uni/core/lib/ui/page-scroll-to/interface.d.ts +10 -1
- package/types/uni/core/lib/ui/set-navigation-bar-color/index.d.ts +4 -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 +4 -0
- package/types/uni/core/lib/ui/set-navigation-bar-title/interface.d.ts +10 -1
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +27 -6
- package/types/uni/uts-plugin-api/lib/uni-push/utssdk/interface.d.ts +10 -10
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +4 -4
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +21 -11
- package/types/uni/uts-plugin-modules/lib/uni-facialRecognitionVerify/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-modules/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +63 -12
- package/types/vue/UniCloudDBElement.d.ts +1 -1
- package/uts-plugin.d.ts +1 -0
- package/types/shims-vue.d.ts +0 -14
|
@@ -2,162 +2,162 @@
|
|
|
2
2
|
* @package io.dcloud.uniapp.runtime
|
|
3
3
|
*/
|
|
4
4
|
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
5
|
+
export class DrawableContext {
|
|
6
|
+
/**
|
|
7
|
+
* 设置字体大小
|
|
8
|
+
* @defaultValue 10px
|
|
9
|
+
*/
|
|
10
|
+
font: string
|
|
11
|
+
/**
|
|
12
|
+
* 设置填充颜色
|
|
13
|
+
* @defaultValue #000 (黑色)
|
|
14
|
+
*/
|
|
15
|
+
fillStyle: string.ColorString
|
|
16
|
+
/**
|
|
17
|
+
* 指定如何绘制每一条线条末端的属性,可选值:`butt`线段末端以方形结束;`round`线段末端以圆形结束;`square`线段末端以方形结束,但是会增加一个一半宽度的矩形区域。
|
|
18
|
+
* @defaultValue butt
|
|
19
|
+
*/
|
|
20
|
+
lineCap: string
|
|
21
|
+
/**
|
|
22
|
+
* 设置虚线偏移量
|
|
23
|
+
*/
|
|
24
|
+
lineDashOffset: number
|
|
25
|
+
/**
|
|
26
|
+
* 设置 2 个长度不为 0 的线条相连部分如何连接在一起的属性,可选值:`bevel`斜角;`round`圆角;`miter`尖角。
|
|
27
|
+
* @defaultValue miter
|
|
28
|
+
*/
|
|
29
|
+
lineJoin: string
|
|
30
|
+
/**
|
|
31
|
+
* 设置线条的宽度
|
|
32
|
+
* @defaultValue 1px
|
|
33
|
+
*/
|
|
34
|
+
lineWidth: number
|
|
35
|
+
/**
|
|
36
|
+
* 设置边框的颜色
|
|
37
|
+
* @defaultValue #000 (黑色)
|
|
38
|
+
*/
|
|
39
|
+
strokeStyle: string.ColorString
|
|
40
|
+
/**
|
|
41
|
+
* 设置文本的对齐方式,可取值:`left`左对齐;`center`居中对齐;`right`右对齐。
|
|
42
|
+
* @defaultValue left
|
|
43
|
+
*/
|
|
44
|
+
textAlign: string
|
|
45
|
+
/**
|
|
46
|
+
* 创建一个新的空路径
|
|
47
|
+
*/
|
|
48
|
+
beginPath(): void
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
50
|
+
/**
|
|
51
|
+
* 绘制一段弧线
|
|
52
|
+
* @param {number} x 圆心的X轴坐标
|
|
53
|
+
* @param {number} y 圆心的Y轴坐标
|
|
54
|
+
* @param {number} radius 圆弧的半径
|
|
55
|
+
* @param {number} startAngle 圆弧的起始点,x 轴方向开始计算,单位为弧度
|
|
56
|
+
* @param {number} endAngle 圆弧的终点,单位为弧度
|
|
57
|
+
* @param {number} [anticlockwise=true] 圆弧绘制方向,true:逆时针绘制,false:顺时针绘制。
|
|
58
|
+
*/
|
|
59
|
+
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean | null): void
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
/**
|
|
62
|
+
* 将一个新的路径的起始点移动到 (x,y) 坐标
|
|
63
|
+
* @param {number} x 点的X轴坐标
|
|
64
|
+
* @param {number} y 点的Y轴坐标
|
|
65
|
+
*/
|
|
66
|
+
moveTo(x: number, y: number): void
|
|
67
67
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
68
|
+
/**
|
|
69
|
+
* 创建一个矩形路径
|
|
70
|
+
* @param {number} x 矩形起点的X轴坐标
|
|
71
|
+
* @param {number} y 矩形起点的Y轴坐标
|
|
72
|
+
* @param {number} width 矩形宽度
|
|
73
|
+
* @param {number} height 矩形高度
|
|
74
|
+
*/
|
|
75
|
+
rect(x: number, y: number, width: number, height: number): void
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
77
|
+
/**
|
|
78
|
+
* 将路径的最后一个点连接到 (x,y) 坐标
|
|
79
|
+
* @param {number} x 线终点的X轴坐标
|
|
80
|
+
* @param {number} y 线终点的Y轴坐标
|
|
81
|
+
*/
|
|
82
|
+
lineTo(x: number, y: number): void
|
|
83
|
+
/**
|
|
84
|
+
* 闭合路径,将最后一个点与起点连接起来。如果图形已经封闭,或者只有一个点,那么此方法不会产生任何效果。
|
|
85
|
+
*/
|
|
86
|
+
closePath(): void
|
|
87
|
+
/**
|
|
88
|
+
* 绘制当前或已经存在的路径的边框。
|
|
89
|
+
*/
|
|
90
|
+
stroke(): void
|
|
91
|
+
/**
|
|
92
|
+
* 绘制一个矩形框
|
|
93
|
+
* @param {number} x 矩形起点的X轴坐标
|
|
94
|
+
* @param {number} y 矩形起点的Y轴坐标
|
|
95
|
+
* @param {number} width 矩形宽度
|
|
96
|
+
* @param {number} height 矩形高度
|
|
97
|
+
*/
|
|
98
|
+
strokeRect(x: number, y: number, width: number, height: number): void
|
|
99
|
+
/**
|
|
100
|
+
* 绘制空心字符
|
|
101
|
+
* @param {string} text 要绘制的字符
|
|
102
|
+
* @param {number} x 字符开始绘制的X轴坐标
|
|
103
|
+
* @param {number} y 字符开始绘制的Y轴坐标
|
|
104
|
+
*/
|
|
105
|
+
strokeText(text: string, x: number, y: number): void
|
|
106
106
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
107
|
+
/**
|
|
108
|
+
* 填充当前或已存在的路径
|
|
109
|
+
* @param {string} [fillRule=nonzero] 填充规则。可取值:`nonzero`非零环绕规则;`evenodd`奇偶环绕规则。
|
|
110
|
+
*/
|
|
111
|
+
fill(fillRule?: string | null): void
|
|
112
112
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
113
|
+
/**
|
|
114
|
+
* 绘制一个实心矩形
|
|
115
|
+
* @param {number} x 矩形起点的X轴坐标
|
|
116
|
+
* @param {number} y 矩形起点的Y轴坐标
|
|
117
|
+
* @param {number} width 矩形宽度
|
|
118
|
+
* @param {number} height 矩形高度
|
|
119
|
+
*/
|
|
120
|
+
fillRect(x: number, y: number, width: number, height: number): void
|
|
121
121
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
122
|
+
/**
|
|
123
|
+
* 绘制实心字符
|
|
124
|
+
* @param {string} text 要绘制的字符
|
|
125
|
+
* @param {number} x 字符开始绘制的X轴坐标
|
|
126
|
+
* @param {number} y 字符开始绘制的Y轴坐标
|
|
127
|
+
*/
|
|
128
|
+
fillText(text: string, x: number, y: number): void
|
|
129
|
+
/**
|
|
130
|
+
* 清空绘制数据
|
|
131
|
+
*/
|
|
132
|
+
reset(): void
|
|
133
|
+
/**
|
|
134
|
+
* 将所有绘制内容更新到画布上
|
|
135
|
+
*/
|
|
136
|
+
update(): void
|
|
137
|
+
/**
|
|
138
|
+
* 设置虚线样式
|
|
139
|
+
* @param {Array<number>} segments 一组描述交替绘制线段和间距长度的数字。
|
|
140
|
+
*/
|
|
141
|
+
setLineDash(segments: Array<number>): void
|
|
142
142
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
143
|
+
/**
|
|
144
|
+
* 根据控制点和半径绘制圆弧路径
|
|
145
|
+
* @param {number} x1 第一个控制点的 x 轴坐标
|
|
146
|
+
* @param {number} y1 第一个控制点的 y 轴坐标
|
|
147
|
+
* @param {number} x2 第二个控制点的 x 轴坐标
|
|
148
|
+
* @param {number} y2 第二个控制点的 y 轴坐标
|
|
149
|
+
* @param {number} radius 圆弧的半径
|
|
150
|
+
*/
|
|
151
|
+
// arcTo(x1 : number, y1 : number, x2 : number, y2 : number, radius : number) : void
|
|
152
152
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
153
|
+
/**
|
|
154
|
+
* 创建三次方贝塞尔曲线路径
|
|
155
|
+
* @param {number} cp1x 第一个贝塞尔控制点的 x 坐标
|
|
156
|
+
* @param {number} cp1y 第一个贝塞尔控制点的 y 坐标
|
|
157
|
+
* @param {number} cp2x 第二个贝塞尔控制点的 x 坐标
|
|
158
|
+
* @param {number} cp2y 第二个贝塞尔控制点的 y 坐标
|
|
159
|
+
* @param {number} x 结束点的 x 坐标
|
|
160
|
+
* @param {number} y 结束点的 y 坐标
|
|
161
|
+
*/
|
|
162
|
+
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void
|
|
163
163
|
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { DrawableContext } from "./DrawableContext"
|
|
2
|
+
import { TakeSnapshotOptions } from "./SnapshotOptions"
|
|
3
|
+
import { Event } from './Event'
|
|
4
|
+
import { CSSStyleDeclaration } from "./CSSStyleDeclaration"
|
|
5
|
+
import { DOMRect } from "./DOMRect"
|
|
3
6
|
|
|
4
7
|
/**
|
|
5
8
|
* UVUE DOM 元素对象,描述了 UVUE DOM 元素所普通具有的属性和方法。
|
|
6
9
|
* @package io.dcloud.uniapp.runtime
|
|
7
10
|
*/
|
|
8
|
-
|
|
11
|
+
export interface Element {
|
|
9
12
|
/**
|
|
10
13
|
* 只读属性 获取当前元素的的 class 属性的动态集合。
|
|
11
14
|
*/
|
|
@@ -270,5 +273,4 @@ declare interface Element {
|
|
|
270
273
|
blur(): void
|
|
271
274
|
}
|
|
272
275
|
|
|
273
|
-
type INode = Element
|
|
274
|
-
|
|
276
|
+
export type INode = Element
|
package/types/native/Event.d.ts
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
|
|
1
|
+
import { Element } from "./Element"
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
6
|
+
export class Event {
|
|
7
|
+
/**
|
|
8
|
+
* 创建一个新的事件对象
|
|
9
|
+
* @param {string} type 事件的名称
|
|
10
|
+
*/
|
|
11
|
+
constructor (type: string)
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* 创建一个新的事件对象
|
|
15
|
+
* @param {string} type 事件的名称
|
|
16
|
+
* @param {string} eventInit 事件初始参数。支持字段:`bubbles`表明该事件是否冒泡。可选,默认为false;`cancelable`表明该事件是否可以被取消。可选,默认为false。
|
|
17
|
+
*/
|
|
18
|
+
constructor (type: string, eventInit: UTSJSONObject)
|
|
19
|
+
/**
|
|
20
|
+
* 事件类型
|
|
21
|
+
*/
|
|
22
|
+
type: string
|
|
23
|
+
/**
|
|
24
|
+
* 触发事件的组件
|
|
25
|
+
*/
|
|
26
|
+
target: Element
|
|
27
|
+
/**
|
|
28
|
+
* 当前组件
|
|
29
|
+
*/
|
|
30
|
+
currentTarget: Element
|
|
31
|
+
/**
|
|
32
|
+
* 事件发生时的时间戳
|
|
33
|
+
*/
|
|
34
|
+
timeStamp: number
|
|
35
|
+
/**
|
|
36
|
+
* 阻止当前事件的进一步传播
|
|
37
|
+
*/
|
|
38
|
+
stopPropagation(): void
|
|
39
|
+
/**
|
|
40
|
+
* 阻止当前事件的默认行为
|
|
41
|
+
*/
|
|
42
|
+
preventDefault(): void
|
|
43
43
|
}
|
package/types/native/IApp.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { NodeData } from "./NodeData";
|
|
2
|
+
import { Element } from "./Element";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @package io.dcloud.uniapp.runtime
|
|
6
6
|
* @autodoc false
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
export interface IDocument extends Element {
|
|
9
9
|
body: Element
|
|
10
10
|
|
|
11
11
|
getRealDomNodeById<T>(tag: string): T | null
|
package/types/native/IPage.d.ts
CHANGED
|
@@ -1,34 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Event } from "./Event";
|
|
2
|
+
import { IDocument } from "./IDocument";
|
|
3
|
+
import { INavigationBar } from "./INavigationBar";
|
|
4
|
+
import { INodeData } from "./NodeData";
|
|
5
|
+
import { PageEvent } from "./PageEvent";
|
|
6
|
+
import { PageScrollEvent } from "./PageScrollEvent";
|
|
7
|
+
import { ResizeEvent } from "./ResizeEvent";
|
|
8
|
+
import { ITabsNode } from "./UniTabsElement";
|
|
4
9
|
|
|
5
|
-
|
|
10
|
+
export enum Type {
|
|
6
11
|
DEFAULT,
|
|
7
12
|
POPUP
|
|
8
13
|
}
|
|
9
14
|
|
|
10
15
|
// TODO
|
|
11
|
-
|
|
16
|
+
export class UniCallbackWrapper {
|
|
12
17
|
|
|
13
18
|
}
|
|
14
19
|
|
|
15
20
|
// TODO
|
|
16
|
-
|
|
21
|
+
export class NavigationBarButtonTapEvent {
|
|
17
22
|
|
|
18
23
|
}
|
|
19
24
|
|
|
20
25
|
// TODO
|
|
21
|
-
|
|
26
|
+
export class WebViewServiceMessageEvent {
|
|
22
27
|
|
|
23
28
|
}
|
|
24
29
|
|
|
25
30
|
// TODO
|
|
26
|
-
|
|
31
|
+
export class ViewToTempFilePathOptions {
|
|
27
32
|
|
|
28
33
|
}
|
|
29
34
|
|
|
30
35
|
// TODO
|
|
31
|
-
|
|
36
|
+
export class NavigationBarSearchInputEvent {
|
|
32
37
|
|
|
33
38
|
}
|
|
34
39
|
|
|
@@ -36,7 +41,7 @@ declare class NavigationBarSearchInputEvent {
|
|
|
36
41
|
* @package io.dcloud.uniapp.runtime
|
|
37
42
|
* @autodoc false
|
|
38
43
|
*/
|
|
39
|
-
|
|
44
|
+
export interface IPage {
|
|
40
45
|
pageUrl: string;
|
|
41
46
|
type: Type;
|
|
42
47
|
// 不适合出现在 interface
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { IPage } from "./IPage";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @package io.dcloud.uniapp.runtime
|
|
5
5
|
* @autodoc false
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
export class IPageManager {
|
|
8
8
|
createPage(
|
|
9
9
|
pageUrl: string,
|
|
10
10
|
pageId: string,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
import { AsyncApiResult } from "./AsyncApiResult";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
3
|
+
export interface IUniError extends AsyncApiResult {
|
|
4
|
+
/**
|
|
5
|
+
* 统一错误码
|
|
6
|
+
*/
|
|
7
|
+
errCode: number;
|
|
8
|
+
/**
|
|
9
|
+
* 统一错误主题(模块)名称
|
|
10
|
+
*/
|
|
11
|
+
errSubject: string;
|
|
12
|
+
/**
|
|
13
|
+
* 错误信息中包含的数据
|
|
14
|
+
*/
|
|
15
|
+
data: any | null;
|
|
16
|
+
/**
|
|
17
|
+
* 源错误信息,可以包含多个错误,详见SourceError
|
|
18
|
+
*/
|
|
19
|
+
cause: Error | null;
|
|
20
20
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
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
|
-
|
|
6
|
+
export class InputBlurEvent extends Event {
|
|
7
|
+
detail: {
|
|
8
|
+
/**
|
|
9
|
+
* 输入框内容
|
|
10
|
+
*/
|
|
11
|
+
value: string,
|
|
12
|
+
}
|
|
13
13
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
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
|
-
|
|
6
|
+
export class InputConfirmEvent extends Event {
|
|
7
|
+
detail: {
|
|
8
|
+
/**
|
|
9
|
+
* 输入框内容
|
|
10
|
+
*/
|
|
11
|
+
value: string,
|
|
12
|
+
}
|
|
13
13
|
}
|