@dcloudio/uni-app-x 0.7.6 → 0.7.8
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 +1 -1
- package/types/native/IUniElement.d.ts +17 -25
- package/types/native/{UniForm.d.ts → IUniForm.d.ts} +2 -1
- package/types/native/UniInputEvent.d.ts +24 -15
- package/types/native/{UniPage.d.ts → UniNativePage.d.ts} +49 -4
- package/types/native/UniPageManager.d.ts +4 -4
- package/types/native/UniPointerEvent.d.ts +1 -0
- package/types/native/UniRefresherEvent.d.ts +8 -4
- package/types/native/UniScrollEvent.d.ts +33 -27
- package/types/native/UniScrollToLowerEvent.d.ts +14 -7
- package/types/native/UniScrollToUpperEvent.d.ts +14 -7
- package/types/native/UniTouchEvent.d.ts +5 -1
- package/types/native/global.d.ts +23 -4
- package/types/native/index.d.ts +2 -2
- package/types/uni/core/lib/route/interface.d.ts +1 -1
- package/types/uni/core/lib/ui/load-font-face/interface.d.ts +1 -1
- package/types/uni/core/lib/ui/set-navigation-bar-color/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/global.d.ts +4 -1
- package/types/uni/uts-plugin-api/index.d.ts +4 -1
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +6 -2
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +87 -0
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +12 -0
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +6 -0
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +40 -8
- package/types/uni/uts-plugin-api/lib/uni-requestPayment-alipay/utssdk/global.d.ts +28 -0
- package/types/uni/uts-plugin-api/lib/uni-requestPayment-alipay/utssdk/index.d.ts +13 -0
- package/types/uni/uts-plugin-api/lib/uni-requestPayment-alipay/utssdk/interface.d.ts +82 -0
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/global.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +33 -0
- package/types/uni/uts-plugin-biz/global.d.ts +2 -2
- package/types/uni/uts-plugin-biz/index.d.ts +2 -2
- package/types/vue/UniFormElement.d.ts +2 -2
- package/types/vue/UniButtonElement.d.ts +0 -7
package/package.json
CHANGED
|
@@ -27,7 +27,7 @@ export interface UniElement {
|
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* 只读属性 获取当前元素在 DOM 树中的父元素,如果没有父元素(如未添加到DOM树中),则返回null。
|
|
30
|
-
* @
|
|
30
|
+
* @internal
|
|
31
31
|
*/
|
|
32
32
|
readonly parentNode: UniElement | null
|
|
33
33
|
|
|
@@ -43,7 +43,7 @@ export interface UniElement {
|
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* 只读属性 获取在 DOM 树中紧跟在其后面的同级元素,如果指定的元素为最后一个元素,则返回 null。
|
|
46
|
-
* @
|
|
46
|
+
* @internal
|
|
47
47
|
*/
|
|
48
48
|
readonly nextSibling: UniElement | null
|
|
49
49
|
|
|
@@ -59,7 +59,7 @@ export interface UniElement {
|
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* 只读属性 获取当前节点包含的子节点的集合
|
|
62
|
-
* @
|
|
62
|
+
* @internal
|
|
63
63
|
*/
|
|
64
64
|
readonly childNodes: UniElement[]
|
|
65
65
|
|
|
@@ -70,9 +70,8 @@ export interface UniElement {
|
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* 只读属性 获取当前元素的元素名称
|
|
73
|
-
* @autodoc false
|
|
74
73
|
*/
|
|
75
|
-
readonly nodeName: string
|
|
74
|
+
readonly nodeName: string
|
|
76
75
|
|
|
77
76
|
/**
|
|
78
77
|
* 只读属性 获取元素上自定义数据属性(data-*)的集合
|
|
@@ -136,7 +135,7 @@ export interface UniElement {
|
|
|
136
135
|
|
|
137
136
|
/**
|
|
138
137
|
* 获取元素标识。
|
|
139
|
-
* @
|
|
138
|
+
* @internal
|
|
140
139
|
*/
|
|
141
140
|
getNodeId(): string
|
|
142
141
|
|
|
@@ -197,7 +196,7 @@ export interface UniElement {
|
|
|
197
196
|
* 设置指定元素上的某个属性值。功能等同setAttribute value支持任意类型
|
|
198
197
|
* @param {string} key 属性名称
|
|
199
198
|
* @param {string} value 属性值域
|
|
200
|
-
* @
|
|
199
|
+
* @internal
|
|
201
200
|
*/
|
|
202
201
|
setAnyAttribute(key: string, value: any): void
|
|
203
202
|
|
|
@@ -210,7 +209,7 @@ export interface UniElement {
|
|
|
210
209
|
/**
|
|
211
210
|
* 返回元素上一个指定的属性值。如果指定的属性不存在,则返回 null
|
|
212
211
|
* @param {string} key 属性名称
|
|
213
|
-
* @
|
|
212
|
+
* @internal
|
|
214
213
|
*/
|
|
215
214
|
getAnyAttribute(key: string): any | null
|
|
216
215
|
|
|
@@ -228,7 +227,7 @@ export interface UniElement {
|
|
|
228
227
|
|
|
229
228
|
/**
|
|
230
229
|
* 更新元素的样式。
|
|
231
|
-
* @
|
|
230
|
+
* @internal
|
|
232
231
|
*/
|
|
233
232
|
updateStyle(map: Map<string, any | null>): void
|
|
234
233
|
|
|
@@ -335,7 +334,6 @@ export type Element = UniElement
|
|
|
335
334
|
/**
|
|
336
335
|
* view元素对象
|
|
337
336
|
* @package io.dcloud.uniapp.runtime
|
|
338
|
-
* @autodoc false
|
|
339
337
|
*/
|
|
340
338
|
export interface UniViewElement extends UniElement {
|
|
341
339
|
}
|
|
@@ -343,7 +341,6 @@ export interface UniViewElement extends UniElement {
|
|
|
343
341
|
/**
|
|
344
342
|
* scroll-view元素对象
|
|
345
343
|
* @package io.dcloud.uniapp.runtime
|
|
346
|
-
* @autodoc false
|
|
347
344
|
*/
|
|
348
345
|
export interface UniScrollViewElement extends UniElement {
|
|
349
346
|
}
|
|
@@ -351,7 +348,6 @@ export interface UniScrollViewElement extends UniElement {
|
|
|
351
348
|
/**
|
|
352
349
|
* list-view元素对象
|
|
353
350
|
* @package io.dcloud.uniapp.runtime
|
|
354
|
-
* @autodoc false
|
|
355
351
|
*/
|
|
356
352
|
export interface UniListViewElement extends UniScrollViewElement {
|
|
357
353
|
}
|
|
@@ -359,7 +355,6 @@ export interface UniListViewElement extends UniScrollViewElement {
|
|
|
359
355
|
/**
|
|
360
356
|
* list-item元素对象
|
|
361
357
|
* @package io.dcloud.uniapp.runtime
|
|
362
|
-
* @autodoc false
|
|
363
358
|
*/
|
|
364
359
|
export interface UniListItemElement extends UniElement {
|
|
365
360
|
}
|
|
@@ -367,7 +362,6 @@ export interface UniListItemElement extends UniElement {
|
|
|
367
362
|
/**
|
|
368
363
|
* swiper元素对象
|
|
369
364
|
* @package io.dcloud.uniapp.runtime
|
|
370
|
-
* @autodoc false
|
|
371
365
|
*/
|
|
372
366
|
export interface UniSwiperElement extends UniElement {
|
|
373
367
|
}
|
|
@@ -375,7 +369,6 @@ export interface UniSwiperElement extends UniElement {
|
|
|
375
369
|
/**
|
|
376
370
|
* swiper-item元素对象
|
|
377
371
|
* @package io.dcloud.uniapp.runtime
|
|
378
|
-
* @autodoc false
|
|
379
372
|
*/
|
|
380
373
|
export interface UniSwiperItemElement extends UniElement {
|
|
381
374
|
}
|
|
@@ -383,7 +376,6 @@ export interface UniSwiperItemElement extends UniElement {
|
|
|
383
376
|
/**
|
|
384
377
|
* image元素对象
|
|
385
378
|
* @package io.dcloud.uniapp.runtime
|
|
386
|
-
* @autodoc false
|
|
387
379
|
*/
|
|
388
380
|
export interface UniImageElement extends UniElement {
|
|
389
381
|
}
|
|
@@ -391,7 +383,6 @@ export interface UniImageElement extends UniElement {
|
|
|
391
383
|
/**
|
|
392
384
|
* input元素对象
|
|
393
385
|
* @package io.dcloud.uniapp.runtime
|
|
394
|
-
* @autodoc false
|
|
395
386
|
*/
|
|
396
387
|
export interface UniInputElement extends UniElement {
|
|
397
388
|
/**
|
|
@@ -494,7 +485,6 @@ export interface UniInputElement extends UniElement {
|
|
|
494
485
|
/**
|
|
495
486
|
* textarea元素对象
|
|
496
487
|
* @package io.dcloud.uniapp.runtime
|
|
497
|
-
* @autodoc false
|
|
498
488
|
*/
|
|
499
489
|
export interface UniTextareaElement extends UniElement {
|
|
500
490
|
/**
|
|
@@ -597,7 +587,6 @@ export interface UniTextareaElement extends UniElement {
|
|
|
597
587
|
/**
|
|
598
588
|
* rich-text元素对象
|
|
599
589
|
* @package io.dcloud.uniapp.runtime
|
|
600
|
-
* @autodoc false
|
|
601
590
|
*/
|
|
602
591
|
export interface UniRichTextElement extends UniElement {
|
|
603
592
|
}
|
|
@@ -605,7 +594,6 @@ export interface UniRichTextElement extends UniElement {
|
|
|
605
594
|
/**
|
|
606
595
|
* sticky-header元素对象
|
|
607
596
|
* @package io.dcloud.uniapp.runtime
|
|
608
|
-
* @autodoc false
|
|
609
597
|
*/
|
|
610
598
|
export interface UniStickyHeaderElement extends UniElement {
|
|
611
599
|
}
|
|
@@ -614,7 +602,6 @@ export interface UniStickyHeaderElement extends UniElement {
|
|
|
614
602
|
/**
|
|
615
603
|
* sticky-section元素对象
|
|
616
604
|
* @package io.dcloud.uniapp.runtime
|
|
617
|
-
* @autodoc false
|
|
618
605
|
*/
|
|
619
606
|
export interface UniStickySectionElement extends UniElement {
|
|
620
607
|
}
|
|
@@ -623,7 +610,7 @@ export interface UniStickySectionElement extends UniElement {
|
|
|
623
610
|
/**
|
|
624
611
|
* tabs元素对象
|
|
625
612
|
* @package io.dcloud.uniapp.runtime
|
|
626
|
-
* @
|
|
613
|
+
* @internal
|
|
627
614
|
*/
|
|
628
615
|
export interface UniTabsElement extends UniElement {
|
|
629
616
|
/**
|
|
@@ -717,7 +704,6 @@ export type ITabsNode = UniTabsElement
|
|
|
717
704
|
/**
|
|
718
705
|
* text元素对象
|
|
719
706
|
* @package io.dcloud.uniapp.runtime
|
|
720
|
-
* @autodoc false
|
|
721
707
|
*/
|
|
722
708
|
export interface UniTextElement extends UniElement {
|
|
723
709
|
/**
|
|
@@ -732,7 +718,6 @@ export type TextElement = UniTextElement
|
|
|
732
718
|
/**
|
|
733
719
|
* web-view元素对象
|
|
734
720
|
* @package io.dcloud.uniapp.runtime
|
|
735
|
-
* @autodoc false
|
|
736
721
|
*/
|
|
737
722
|
export interface UniWebViewElement extends UniElement {
|
|
738
723
|
/**
|
|
@@ -761,10 +746,17 @@ export type IWebViewNode = UniWebViewElement
|
|
|
761
746
|
|
|
762
747
|
/**
|
|
763
748
|
* 注释节点
|
|
764
|
-
* @
|
|
749
|
+
* @internal
|
|
765
750
|
*/
|
|
766
751
|
export interface UniCommentElement extends UniElement {
|
|
767
752
|
text: string
|
|
768
753
|
}
|
|
769
754
|
|
|
770
755
|
export type IComment = UniCommentElement
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* button元素对象
|
|
759
|
+
* @package io.dcloud.uniapp.runtime
|
|
760
|
+
*/
|
|
761
|
+
interface UniButtonElement extends UniElement {
|
|
762
|
+
}
|
|
@@ -1,24 +1,33 @@
|
|
|
1
1
|
import { UniEvent } from './UniEvent'
|
|
2
2
|
|
|
3
|
+
export class UniInputEventDetail {
|
|
4
|
+
/**
|
|
5
|
+
* 输入框内容
|
|
6
|
+
*/
|
|
7
|
+
value: string
|
|
8
|
+
/**
|
|
9
|
+
* 光标的位置
|
|
10
|
+
*/
|
|
11
|
+
cursor: number
|
|
12
|
+
/**
|
|
13
|
+
* 输入字符的Unicode值
|
|
14
|
+
*/
|
|
15
|
+
keyCode: number
|
|
16
|
+
}
|
|
17
|
+
|
|
3
18
|
/**
|
|
4
19
|
* @package io.dcloud.uniapp.runtime
|
|
5
20
|
*/
|
|
6
21
|
export class UniInputEvent extends UniEvent {
|
|
7
|
-
detail:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* 光标的位置
|
|
14
|
-
*/
|
|
15
|
-
cursor: number,
|
|
16
|
-
/**
|
|
17
|
-
* 输入字符的Unicode值
|
|
18
|
-
*/
|
|
19
|
-
keyCode: number
|
|
20
|
-
}
|
|
22
|
+
detail: UniInputEventDetail
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
constructor (type: string, detail: UniInputEventDetail)
|
|
21
27
|
}
|
|
22
28
|
|
|
23
29
|
export type InputEvent = UniInputEvent
|
|
24
|
-
export const InputEvent: typeof UniInputEvent
|
|
30
|
+
export const InputEvent: typeof UniInputEvent
|
|
31
|
+
|
|
32
|
+
export type InputEventDetail = UniInputEventDetail
|
|
33
|
+
export const InputEventDetail: typeof UniInputEventDetail
|
|
@@ -9,43 +9,57 @@ import { ViewToTempFilePathOptions } from "./ViewToTempFilePathOptions"
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @package io.dcloud.uniapp.runtime
|
|
12
|
-
* @
|
|
12
|
+
* @internal
|
|
13
13
|
*/
|
|
14
|
-
export interface
|
|
14
|
+
export interface UniNativePage {
|
|
15
15
|
readonly pageUrl: string;
|
|
16
16
|
/**
|
|
17
17
|
* 页面id
|
|
18
18
|
*/
|
|
19
19
|
readonly pageId: string
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
20
23
|
readonly document: UniDocument
|
|
21
24
|
/**
|
|
22
25
|
* 开启排版渲染
|
|
26
|
+
* @internal
|
|
23
27
|
*/
|
|
24
28
|
startRender(): void
|
|
25
29
|
/**
|
|
26
30
|
* 开启排版渲染
|
|
27
31
|
* @param callback 首次排版回调监听器
|
|
32
|
+
* @internal
|
|
28
33
|
*/
|
|
29
34
|
startRender(callback?: (() => void) | null): void
|
|
30
35
|
/**
|
|
31
36
|
* 显示页面
|
|
32
37
|
* @param options 显示配置项
|
|
33
38
|
* @param callback 显示完毕监听器
|
|
39
|
+
* @internal
|
|
34
40
|
*/
|
|
35
41
|
show(options?: Map<String, any | null> | null, callback?: (() => void) | null): void
|
|
42
|
+
/**
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
36
45
|
show(options?: Map<String, any | null> | null): void
|
|
37
46
|
|
|
38
47
|
/**
|
|
39
48
|
* 关闭页面
|
|
40
49
|
* @param options 关闭配置项
|
|
41
50
|
* @param callback 关闭完毕监听器
|
|
51
|
+
* @internal
|
|
42
52
|
*/
|
|
43
53
|
close(options?: Map<String, any | null> | null, callback?: (() => void) | null): void
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
*/
|
|
44
57
|
close(options?: Map<String, any | null> | null): void
|
|
45
58
|
|
|
46
59
|
updateStyle(style: Map<string, any | null>): void
|
|
47
60
|
/**
|
|
48
61
|
* 创建Document 已废弃
|
|
62
|
+
* @internal
|
|
49
63
|
*/
|
|
50
64
|
createDocument(documentData: INodeData): UniDocument
|
|
51
65
|
/**
|
|
@@ -70,9 +84,14 @@ export interface UniPage {
|
|
|
70
84
|
* 监听页面onPageScroll事件
|
|
71
85
|
*/
|
|
72
86
|
addPageScrollEventListener(callback: (event: UniPageScrollEvent) => void): UniCallbackWrapper
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
73
91
|
viewToTempFilePath(options: ViewToTempFilePathOptions): void
|
|
74
92
|
/**
|
|
75
93
|
* 加载自定义字体
|
|
94
|
+
* @internal
|
|
76
95
|
*/
|
|
77
96
|
loadFontFace(options: NativeLoadFontFaceOptions): void
|
|
78
97
|
/**
|
|
@@ -83,14 +102,40 @@ export interface UniPage {
|
|
|
83
102
|
* 停止当前页面下拉刷新
|
|
84
103
|
*/
|
|
85
104
|
stopPullDownRefresh(): void
|
|
105
|
+
/**
|
|
106
|
+
* @internal
|
|
107
|
+
*/
|
|
86
108
|
getPageRenderDuration(): number
|
|
109
|
+
/**
|
|
110
|
+
* @internal
|
|
111
|
+
*/
|
|
87
112
|
getPageLayoutDuration(): number
|
|
113
|
+
/**
|
|
114
|
+
* @internal
|
|
115
|
+
*/
|
|
88
116
|
getPageRenderCount(): number
|
|
117
|
+
/**
|
|
118
|
+
* @internal
|
|
119
|
+
*/
|
|
89
120
|
getPageLayoutCount(): number
|
|
121
|
+
/**
|
|
122
|
+
* @internal
|
|
123
|
+
*/
|
|
90
124
|
getFirstRenderStartTime(): number
|
|
125
|
+
/**
|
|
126
|
+
* @internal
|
|
127
|
+
*/
|
|
91
128
|
getFirstLayoutStartTime(): number
|
|
129
|
+
/**
|
|
130
|
+
* @internal
|
|
131
|
+
*/
|
|
92
132
|
getFirstPageRenderDuration(): number
|
|
133
|
+
/**
|
|
134
|
+
* @internal
|
|
135
|
+
*/
|
|
93
136
|
getFirstPageLayoutDuration(): number
|
|
94
|
-
}
|
|
95
137
|
|
|
96
|
-
|
|
138
|
+
getAndroidActivity(): Activity | null
|
|
139
|
+
}
|
|
140
|
+
export type UniPage = UniNativePage
|
|
141
|
+
export type IPage = UniNativePage
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UniNativePage } from "./UniNativePage";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @package io.dcloud.uniapp.runtime
|
|
5
|
-
* @
|
|
5
|
+
* @internal
|
|
6
6
|
*/
|
|
7
7
|
export interface UniPageManager {
|
|
8
8
|
createPage(
|
|
9
9
|
pageUrl: string,
|
|
10
10
|
pageId: string,
|
|
11
11
|
pageStyle: Map<string, any | null>
|
|
12
|
-
):
|
|
12
|
+
): UniNativePage
|
|
13
13
|
|
|
14
|
-
findPageById(pageId: string):
|
|
14
|
+
findPageById(pageId: string): UniNativePage | null
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export type IPageManager = UniPageManager
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { UniEvent } from './UniEvent'
|
|
2
2
|
|
|
3
|
+
export class UniRefresherEventDetail{
|
|
4
|
+
dy: number
|
|
5
|
+
constructor(dy: number)
|
|
6
|
+
}
|
|
7
|
+
|
|
3
8
|
/**
|
|
4
9
|
* @package io.dcloud.uniapp.runtime
|
|
5
10
|
*/
|
|
6
11
|
export class UniRefresherEvent extends UniEvent {
|
|
7
|
-
detail:
|
|
8
|
-
|
|
9
|
-
}
|
|
12
|
+
detail: UniRefresherEventDetail
|
|
13
|
+
constructor(type: string, detail: UniRefresherEventDetail)
|
|
10
14
|
}
|
|
11
15
|
|
|
12
16
|
|
|
13
17
|
export type RefresherEvent = UniRefresherEvent
|
|
14
|
-
export const RefresherEvent: typeof UniRefresherEvent
|
|
18
|
+
export const RefresherEvent: typeof UniRefresherEvent
|
|
@@ -1,36 +1,42 @@
|
|
|
1
1
|
import { UniEvent } from "./UniEvent"
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @package io.dcloud.uniapp.runtime
|
|
5
|
+
*/
|
|
6
|
+
declare class UniScrollEventDetail {
|
|
7
|
+
/**
|
|
8
|
+
* 竖向滚动的距离
|
|
9
|
+
*/
|
|
10
|
+
scrollTop: number
|
|
11
|
+
/**
|
|
12
|
+
* 横向滚动的距离
|
|
13
|
+
*/
|
|
14
|
+
scrollLeft: number
|
|
15
|
+
/**
|
|
16
|
+
* 滚动区域的高度
|
|
17
|
+
*/
|
|
18
|
+
scrollHeight: number
|
|
19
|
+
/**
|
|
20
|
+
* 滚动区域的宽度
|
|
21
|
+
*/
|
|
22
|
+
scrollWidth: number
|
|
23
|
+
/**
|
|
24
|
+
* 当次滚动事件竖向滚动量
|
|
25
|
+
*/
|
|
26
|
+
deltaY: number
|
|
27
|
+
/**
|
|
28
|
+
* 当次滚动事件横向滚动量
|
|
29
|
+
*/
|
|
30
|
+
deltaX: number
|
|
31
|
+
constructor()
|
|
32
|
+
}
|
|
3
33
|
/**
|
|
4
34
|
* @package io.dcloud.uniapp.runtime
|
|
5
35
|
*/
|
|
6
36
|
export class UniScrollEvent extends UniEvent {
|
|
7
|
-
detail:
|
|
8
|
-
|
|
9
|
-
* 竖向滚动的距离
|
|
10
|
-
*/
|
|
11
|
-
scrollTop: number
|
|
12
|
-
/**
|
|
13
|
-
* 横向滚动的距离
|
|
14
|
-
*/
|
|
15
|
-
scrollLeft: number
|
|
16
|
-
/**
|
|
17
|
-
* 滚动区域的高度
|
|
18
|
-
*/
|
|
19
|
-
scrollHeight: number
|
|
20
|
-
/**
|
|
21
|
-
* 滚动区域的宽度
|
|
22
|
-
*/
|
|
23
|
-
scrollWidth: number
|
|
24
|
-
/**
|
|
25
|
-
* 当次滚动事件竖向滚动量
|
|
26
|
-
*/
|
|
27
|
-
deltaY: number
|
|
28
|
-
/**
|
|
29
|
-
* 当次滚动事件横向滚动量
|
|
30
|
-
*/
|
|
31
|
-
deltaX: number
|
|
32
|
-
}
|
|
37
|
+
detail: UniScrollEventDetail
|
|
38
|
+
constructor(type: String, detail: UniScrollEventDetail)
|
|
33
39
|
}
|
|
34
40
|
|
|
35
41
|
export type ScrollEvent = UniScrollEvent
|
|
36
|
-
export const ScrollEvent: typeof UniScrollEvent
|
|
42
|
+
export const ScrollEvent: typeof UniScrollEvent
|
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
import { UniEvent } from "./UniEvent"
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @package io.dcloud.uniapp.runtime
|
|
5
|
+
*/
|
|
6
|
+
export class UniScrollToLowerEventDetail {
|
|
7
|
+
/**
|
|
8
|
+
* 滚动方向 bottom 或 right
|
|
9
|
+
*/
|
|
10
|
+
direction: string
|
|
11
|
+
constructor (direction: string)
|
|
12
|
+
}
|
|
13
|
+
|
|
3
14
|
/**
|
|
4
15
|
* @package io.dcloud.uniapp.runtime
|
|
5
16
|
*/
|
|
6
17
|
export class UniScrollToLowerEvent extends UniEvent {
|
|
7
|
-
detail:
|
|
8
|
-
|
|
9
|
-
* 滚动方向 bottom 或 right
|
|
10
|
-
*/
|
|
11
|
-
direction: string
|
|
12
|
-
}
|
|
18
|
+
detail: UniScrollToLowerEventDetail
|
|
19
|
+
constructor(type: string, detail: UniScrollToLowerEventDetail)
|
|
13
20
|
}
|
|
14
21
|
|
|
15
22
|
export type ScrollToLowerEvent = UniScrollToLowerEvent
|
|
16
|
-
export const ScrollToLowerEvent: typeof UniScrollToLowerEvent
|
|
23
|
+
export const ScrollToLowerEvent: typeof UniScrollToLowerEvent
|
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
import { UniEvent } from "./UniEvent"
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @package io.dcloud.uniapp.runtime
|
|
5
|
+
*/
|
|
6
|
+
export class UniScrollToUpperEventDetail {
|
|
7
|
+
/**
|
|
8
|
+
* 滚动方向 top 或 left
|
|
9
|
+
*/
|
|
10
|
+
direction: string
|
|
11
|
+
constructor (direction: string)
|
|
12
|
+
}
|
|
13
|
+
|
|
3
14
|
/**
|
|
4
15
|
* @package io.dcloud.uniapp.runtime
|
|
5
16
|
*/
|
|
6
17
|
export class UniScrollToUpperEvent extends UniEvent {
|
|
7
|
-
detail:
|
|
8
|
-
|
|
9
|
-
* 滚动方向 top 或 left
|
|
10
|
-
*/
|
|
11
|
-
direction: string
|
|
12
|
-
}
|
|
18
|
+
detail: UniScrollToUpperEventDetail
|
|
19
|
+
constructor(type: string, detail: UniScrollToUpperEventDetail)
|
|
13
20
|
}
|
|
14
21
|
|
|
15
22
|
export type ScrollToUpperEvent = UniScrollToUpperEvent
|
|
16
|
-
export const ScrollToUpperEvent: typeof UniScrollToUpperEvent
|
|
23
|
+
export const ScrollToUpperEvent: typeof UniScrollToUpperEvent
|
|
@@ -50,6 +50,10 @@ export class UniTouchEvent extends UniEvent {
|
|
|
50
50
|
* 当前变化的触摸点信息的数组
|
|
51
51
|
*/
|
|
52
52
|
changedTouches: UniTouch[]
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
constructor (type: string, touches: UniTouch[], changedTouches: UniTouch[])
|
|
53
57
|
}
|
|
54
58
|
|
|
55
59
|
|
|
@@ -57,4 +61,4 @@ export type Touch = UniTouch
|
|
|
57
61
|
export const Touch: typeof UniTouch
|
|
58
62
|
|
|
59
63
|
export type TouchEvent = UniTouchEvent
|
|
60
|
-
export const TouchEvent: typeof UniTouchEvent
|
|
64
|
+
export const TouchEvent: typeof UniTouchEvent
|