@dcloudio/uni-app-x 0.7.8 → 0.7.10
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 +15 -0
- package/types/native/UniImageErrorEvent.d.ts +24 -6
- package/types/native/UniImageLoadEvent.d.ts +28 -10
- package/types/native/UniInputBlurEvent.d.ts +28 -11
- package/types/native/UniInputConfirmEvent.d.ts +22 -7
- package/types/native/UniInputEvent.d.ts +6 -1
- package/types/native/UniInputFocusEvent.d.ts +38 -23
- package/types/native/UniInputKeyboardHeightChangeEvent.d.ts +26 -11
- package/types/native/UniNativePage.d.ts +24 -11
- package/types/native/UniRichTextItemClickEvent.d.ts +32 -14
- package/types/native/UniSwiperAnimationFinishEvent.d.ts +13 -11
- package/types/native/UniSwiperChangeEvent.d.ts +13 -11
- package/types/native/UniSwiperTransitionEvent.d.ts +15 -11
- package/types/native/UniTextareaBlurEvent.d.ts +26 -11
- package/types/native/UniTextareaFocusEvent.d.ts +38 -23
- package/types/native/UniTextareaLineChangeEvent.d.ts +30 -15
- package/types/native/UniWebViewDownloadEvent.d.ts +10 -0
- package/types/native/UniWebViewErrorEvent.d.ts +10 -0
- package/types/native/UniWebViewLoadEvent.d.ts +10 -0
- package/types/native/UniWebViewLoadingEvent.d.ts +11 -2
- package/types/native/UniWebViewMessageEvent.d.ts +10 -0
- package/types/native/ViewToTempFilePathOptions.d.ts +4 -4
- package/types/native/global.d.ts +73 -0
- package/types/page.d.ts +1 -1
- package/types/uni/core/lib/base/event/interface.d.ts +4 -4
- package/types/uni/core/lib/base/interceptor/interface.d.ts +2 -2
- package/types/uni/core/lib/lifecycle/interface.d.ts +1 -1
- package/types/uni/core/lib/route/interface.d.ts +24 -24
- package/types/uni/core/lib/ui/create-selector-query/interface.d.ts +1 -1
- package/types/uni/core/lib/ui/get-element-by-id/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/page-scroll-to/interface.d.ts +1 -1
- package/types/uni/core/lib/ui/pull-down-refresh/interface.d.ts +2 -2
- package/types/uni/core/lib/ui/set-navigation-bar-color/interface.d.ts +1 -1
- package/types/uni/core/lib/ui/set-navigation-bar-title/interface.d.ts +1 -1
- package/types/uni/core/lib/ui/tab-bar/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/global.d.ts +1 -1
- package/types/uni/uts-plugin-api/index.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +5 -4
- package/types/uni/uts-plugin-api/lib/{uni-requestPayment-alipay → uni-payment}/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/{uni-requestPayment-alipay → uni-payment}/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/{uni-requestPayment-alipay → uni-payment}/utssdk/interface.d.ts +5 -2
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +6 -6
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-biz/global.d.ts +1 -1
- package/types/uni/uts-plugin-biz/index.d.ts +1 -1
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +0 -2
package/package.json
CHANGED
|
@@ -760,3 +760,18 @@ export type IComment = UniCommentElement
|
|
|
760
760
|
*/
|
|
761
761
|
interface UniButtonElement extends UniElement {
|
|
762
762
|
}
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* 嵌套 scroll-view 场景中属于外层 scroll-view 的节点
|
|
767
|
+
* @package io.dcloud.uniapp.runtime
|
|
768
|
+
*/
|
|
769
|
+
export interface UniNestedScrollHeaderElement extends UniElement {
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
/**
|
|
773
|
+
* 嵌套 scroll-view 场景中属于里层 scroll-view 的节点
|
|
774
|
+
* @package io.dcloud.uniapp.runtime
|
|
775
|
+
*/
|
|
776
|
+
export interface UniNestedScrollBodyElement extends UniElement {
|
|
777
|
+
}
|
|
@@ -1,16 +1,34 @@
|
|
|
1
1
|
import { UniEvent } from './UniEvent'
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @package io.dcloud.uniapp.runtime
|
|
5
|
+
*/
|
|
6
|
+
export class UniImageErrorEventDetail {
|
|
7
|
+
/**
|
|
8
|
+
* 错误信息
|
|
9
|
+
*/
|
|
10
|
+
errMsg: string
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
constructor(errMsg: string)
|
|
16
|
+
}
|
|
17
|
+
|
|
3
18
|
/**
|
|
4
19
|
* @package io.dcloud.uniapp.runtime
|
|
5
20
|
*/
|
|
6
21
|
export class UniImageErrorEvent extends UniEvent {
|
|
7
|
-
detail:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
22
|
+
detail: UniImageErrorEventDetail
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
constructor(type: string, detail: UniImageErrorEventDetail)
|
|
13
28
|
}
|
|
14
29
|
|
|
30
|
+
export type ImageErrorEventDetail = UniImageErrorEventDetail
|
|
31
|
+
export const ImageErrorEventDetail: typeof UniImageErrorEventDetail
|
|
32
|
+
|
|
15
33
|
export type ImageErrorEvent = UniImageErrorEvent
|
|
16
34
|
export const ImageErrorEvent: typeof UniImageErrorEvent
|
|
@@ -1,20 +1,38 @@
|
|
|
1
1
|
import { UniEvent } from './UniEvent'
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @package io.dcloud.uniapp.runtime
|
|
5
|
+
*/
|
|
6
|
+
export class UniImageLoadEventDetail {
|
|
7
|
+
/**
|
|
8
|
+
* 图片宽度
|
|
9
|
+
*/
|
|
10
|
+
width: number
|
|
11
|
+
/**
|
|
12
|
+
* 图片高度
|
|
13
|
+
*/
|
|
14
|
+
height: number
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
constructor(width: number, height: number)
|
|
20
|
+
}
|
|
21
|
+
|
|
3
22
|
/**
|
|
4
23
|
* @package io.dcloud.uniapp.runtime
|
|
5
24
|
*/
|
|
6
25
|
export class UniImageLoadEvent extends UniEvent {
|
|
7
|
-
detail:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* 图片高度
|
|
14
|
-
*/
|
|
15
|
-
height: number
|
|
16
|
-
}
|
|
26
|
+
detail: UniImageLoadEventDetail
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
constructor(type: string, detail: UniImageLoadEventDetail)
|
|
17
32
|
}
|
|
18
33
|
|
|
34
|
+
export type ImageLoadEventDetail = UniImageLoadEventDetail
|
|
35
|
+
export const ImageLoadEventDetail: typeof UniImageLoadEventDetail
|
|
36
|
+
|
|
19
37
|
export type ImageLoadEvent = UniImageLoadEvent
|
|
20
38
|
export const ImageLoadEvent: typeof UniImageLoadEvent
|
|
@@ -1,20 +1,37 @@
|
|
|
1
1
|
import { UniEvent } from './UniEvent'
|
|
2
2
|
|
|
3
|
+
export class UniInputBlurEventDetail {
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 输入框内容
|
|
7
|
+
*/
|
|
8
|
+
value: string
|
|
9
|
+
/**
|
|
10
|
+
* 选择区域的起始位置
|
|
11
|
+
*/
|
|
12
|
+
cursor: number
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
constructor(value: string, cursor: number)
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
3
21
|
/**
|
|
4
22
|
* @package io.dcloud.uniapp.runtime
|
|
5
23
|
*/
|
|
6
24
|
export class UniInputBlurEvent extends UniEvent {
|
|
7
|
-
detail:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* 选择区域的起始位置
|
|
14
|
-
*/
|
|
15
|
-
cursor: number
|
|
16
|
-
}
|
|
25
|
+
detail: UniInputBlurEventDetail
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
constructor(type: string, detail: UniInputBlurEventDetail)
|
|
17
31
|
}
|
|
18
32
|
|
|
19
33
|
export type InputBlurEvent = UniInputBlurEvent
|
|
20
|
-
export const InputBlurEvent: typeof UniInputBlurEvent
|
|
34
|
+
export const InputBlurEvent: typeof UniInputBlurEvent
|
|
35
|
+
|
|
36
|
+
export type InputBlurEventDetail = UniInputBlurEventDetail
|
|
37
|
+
export const InputBlurEventDetail: typeof UniInputBlurEventDetail
|
|
@@ -1,16 +1,31 @@
|
|
|
1
1
|
import { UniEvent } from "./UniEvent";
|
|
2
2
|
|
|
3
|
+
export class UniInputConfirmEventDetail {
|
|
4
|
+
/**
|
|
5
|
+
* 输入框内容
|
|
6
|
+
*/
|
|
7
|
+
value: string
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
constructor(value: string)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
3
16
|
/**
|
|
4
17
|
* @package io.dcloud.uniapp.runtime
|
|
5
18
|
*/
|
|
6
19
|
export class UniInputConfirmEvent extends UniEvent {
|
|
7
|
-
detail:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
20
|
+
detail: UniInputConfirmEventDetail
|
|
21
|
+
/**
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
constructor(type: string, detail: UniInputConfirmEventDetail)
|
|
13
25
|
}
|
|
14
26
|
|
|
15
27
|
export type InputConfirmEvent = UniInputConfirmEvent
|
|
16
|
-
export const InputConfirmEvent: typeof UniInputConfirmEvent
|
|
28
|
+
export const InputConfirmEvent: typeof UniInputConfirmEvent
|
|
29
|
+
|
|
30
|
+
export type InputConfirmEventDetail = UniInputConfirmEventDetail
|
|
31
|
+
export const InputConfirmEventDetail: typeof UniInputConfirmEventDetail
|
|
@@ -13,6 +13,11 @@ export class UniInputEventDetail {
|
|
|
13
13
|
* 输入字符的Unicode值
|
|
14
14
|
*/
|
|
15
15
|
keyCode: number
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
constructor(value: string, cursor: number, keyCode: number)
|
|
16
21
|
}
|
|
17
22
|
|
|
18
23
|
/**
|
|
@@ -23,7 +28,7 @@ export class UniInputEvent extends UniEvent {
|
|
|
23
28
|
/**
|
|
24
29
|
* @internal
|
|
25
30
|
*/
|
|
26
|
-
constructor
|
|
31
|
+
constructor(type: string, detail: UniInputEventDetail)
|
|
27
32
|
}
|
|
28
33
|
|
|
29
34
|
export type InputEvent = UniInputEvent
|
|
@@ -1,33 +1,48 @@
|
|
|
1
1
|
import { UniEvent } from "./UniEvent";
|
|
2
2
|
|
|
3
|
+
export class UniInputFocusEventDetail {
|
|
4
|
+
/**
|
|
5
|
+
* 键盘高度
|
|
6
|
+
* @uniPlatform {
|
|
7
|
+
* "app": {
|
|
8
|
+
* "android": {
|
|
9
|
+
* "osVer": "5.0",
|
|
10
|
+
* "uniVer": "√",
|
|
11
|
+
* "unixVer": "√"
|
|
12
|
+
* }
|
|
13
|
+
* },
|
|
14
|
+
* "web": {
|
|
15
|
+
* "uniVer": "x",
|
|
16
|
+
* "unixVer": "4.0"
|
|
17
|
+
* }
|
|
18
|
+
* }
|
|
19
|
+
*/
|
|
20
|
+
height: number
|
|
21
|
+
/**
|
|
22
|
+
* 输入框内容
|
|
23
|
+
*/
|
|
24
|
+
value: string
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
constructor(height: number, value: string)
|
|
30
|
+
}
|
|
31
|
+
|
|
3
32
|
/**
|
|
4
33
|
* @package io.dcloud.uniapp.runtime
|
|
5
34
|
*/
|
|
6
35
|
export class UniInputFocusEvent extends UniEvent {
|
|
7
|
-
detail:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* "osVer": "5.0",
|
|
14
|
-
* "uniVer": "√",
|
|
15
|
-
* "unixVer": "√"
|
|
16
|
-
* }
|
|
17
|
-
* },
|
|
18
|
-
* "web": {
|
|
19
|
-
* "uniVer": "x",
|
|
20
|
-
* "unixVer": "4.0"
|
|
21
|
-
* }
|
|
22
|
-
* }
|
|
23
|
-
*/
|
|
24
|
-
height: number,
|
|
25
|
-
/**
|
|
26
|
-
* 输入框内容
|
|
27
|
-
*/
|
|
28
|
-
value: string
|
|
29
|
-
}
|
|
36
|
+
detail: UniInputFocusEventDetail
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
constructor(type: string, detail: UniInputFocusEventDetail)
|
|
30
42
|
}
|
|
31
43
|
|
|
32
44
|
export type InputFocusEvent = UniInputFocusEvent
|
|
33
45
|
export const InputFocusEvent: typeof UniInputFocusEvent
|
|
46
|
+
|
|
47
|
+
export type InputFocusEventDetail = UniInputFocusEventDetail
|
|
48
|
+
export const InputFocusEventDetail: typeof UniInputFocusEventDetail
|
|
@@ -1,20 +1,35 @@
|
|
|
1
1
|
import { UniEvent } from "./UniEvent";
|
|
2
2
|
|
|
3
|
+
export class UniInputKeyboardHeightChangeEventDetail {
|
|
4
|
+
/**
|
|
5
|
+
* 键盘高度
|
|
6
|
+
*/
|
|
7
|
+
height: number
|
|
8
|
+
/**
|
|
9
|
+
* 持续时间
|
|
10
|
+
*/
|
|
11
|
+
duration: number
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
constructor(height: number, duration: number)
|
|
17
|
+
}
|
|
18
|
+
|
|
3
19
|
/**
|
|
4
20
|
* @package io.dcloud.uniapp.runtime
|
|
5
21
|
*/
|
|
6
22
|
export class UniInputKeyboardHeightChangeEvent extends UniEvent {
|
|
7
|
-
detail:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* 持续时间
|
|
14
|
-
*/
|
|
15
|
-
duration: number
|
|
16
|
-
}
|
|
23
|
+
detail: UniInputKeyboardHeightChangeEventDetail
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
constructor(type: string, detail: UniInputKeyboardHeightChangeEventDetail)
|
|
17
29
|
}
|
|
18
30
|
|
|
19
31
|
export type InputKeyboardHeightChangeEvent = UniInputKeyboardHeightChangeEvent
|
|
20
|
-
export const InputKeyboardHeightChangeEvent: typeof UniInputKeyboardHeightChangeEvent
|
|
32
|
+
export const InputKeyboardHeightChangeEvent: typeof UniInputKeyboardHeightChangeEvent
|
|
33
|
+
|
|
34
|
+
export type InputKeyboardHeightChangeEventDetail = UniInputKeyboardHeightChangeEventDetail
|
|
35
|
+
export const InputKeyboardHeightChangeEventDetail: typeof UniInputKeyboardHeightChangeEventDetail
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { UniDocument } from
|
|
2
|
-
import { INodeData } from
|
|
3
|
-
import { UniPageEvent } from
|
|
4
|
-
import { UniPageScrollEvent } from
|
|
1
|
+
import { UniDocument } from './UniDocument'
|
|
2
|
+
import { INodeData } from './NodeData'
|
|
3
|
+
import { UniPageEvent } from './UniPageEvent'
|
|
4
|
+
import { UniPageScrollEvent } from './UniPageScrollEvent'
|
|
5
5
|
import { NativeLoadFontFaceOptions } from './NativeLoadFontFaceOptions'
|
|
6
|
-
import { UniCallbackWrapper } from
|
|
7
|
-
import { ViewToTempFilePathOptions } from
|
|
8
|
-
|
|
6
|
+
import { UniCallbackWrapper } from './UniCallbackWrapper'
|
|
7
|
+
import { ViewToTempFilePathOptions } from './ViewToTempFilePathOptions'
|
|
8
|
+
import { StartPullDownRefreshOptions } from '../uni/core/lib/ui/pull-down-refresh/interface'
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @package io.dcloud.uniapp.runtime
|
|
12
12
|
* @internal
|
|
13
13
|
*/
|
|
14
14
|
export interface UniNativePage {
|
|
15
|
-
readonly pageUrl: string
|
|
15
|
+
readonly pageUrl: string
|
|
16
16
|
/**
|
|
17
17
|
* 页面id
|
|
18
18
|
*/
|
|
@@ -38,7 +38,10 @@ export interface UniNativePage {
|
|
|
38
38
|
* @param callback 显示完毕监听器
|
|
39
39
|
* @internal
|
|
40
40
|
*/
|
|
41
|
-
show(
|
|
41
|
+
show(
|
|
42
|
+
options?: Map<String, any | null> | null,
|
|
43
|
+
callback?: (() => void) | null
|
|
44
|
+
): void
|
|
42
45
|
/**
|
|
43
46
|
* @internal
|
|
44
47
|
*/
|
|
@@ -50,7 +53,10 @@ export interface UniNativePage {
|
|
|
50
53
|
* @param callback 关闭完毕监听器
|
|
51
54
|
* @internal
|
|
52
55
|
*/
|
|
53
|
-
close(
|
|
56
|
+
close(
|
|
57
|
+
options?: Map<String, any | null> | null,
|
|
58
|
+
callback?: (() => void) | null
|
|
59
|
+
): void
|
|
54
60
|
/**
|
|
55
61
|
* @internal
|
|
56
62
|
*/
|
|
@@ -83,7 +89,9 @@ export interface UniNativePage {
|
|
|
83
89
|
/**
|
|
84
90
|
* 监听页面onPageScroll事件
|
|
85
91
|
*/
|
|
86
|
-
addPageScrollEventListener(
|
|
92
|
+
addPageScrollEventListener(
|
|
93
|
+
callback: (event: UniPageScrollEvent) => void
|
|
94
|
+
): UniCallbackWrapper
|
|
87
95
|
|
|
88
96
|
/**
|
|
89
97
|
* @internal
|
|
@@ -98,6 +106,11 @@ export interface UniNativePage {
|
|
|
98
106
|
* 开始页面下拉刷新
|
|
99
107
|
*/
|
|
100
108
|
startPullDownRefresh(): void
|
|
109
|
+
/**
|
|
110
|
+
* 仅 iOS 支持 options 参数
|
|
111
|
+
* @internal
|
|
112
|
+
*/
|
|
113
|
+
startPullDownRefresh(options: StartPullDownRefreshOptions): void
|
|
101
114
|
/**
|
|
102
115
|
* 停止当前页面下拉刷新
|
|
103
116
|
*/
|
|
@@ -1,24 +1,42 @@
|
|
|
1
1
|
import { UniEvent } from "./UniEvent"
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @package io.dcloud.uniapp.runtime
|
|
5
|
+
*/
|
|
6
|
+
export class UniRichTextItemClickEventDetail {
|
|
7
|
+
/**
|
|
8
|
+
* 自定义数据
|
|
9
|
+
*/
|
|
10
|
+
ref: string | null
|
|
11
|
+
/**
|
|
12
|
+
* <img/>图片链接
|
|
13
|
+
*/
|
|
14
|
+
src: string | null
|
|
15
|
+
/**
|
|
16
|
+
* <a/>超链接
|
|
17
|
+
*/
|
|
18
|
+
href: string | null
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
constructor(ref: string | null, src: string | null, href: string | null)
|
|
24
|
+
}
|
|
25
|
+
|
|
3
26
|
/**
|
|
4
27
|
* @package io.dcloud.uniapp.runtime
|
|
5
28
|
*/
|
|
6
29
|
export class UniRichTextItemClickEvent extends UniEvent {
|
|
7
|
-
detail:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* <img/>图片链接
|
|
14
|
-
*/
|
|
15
|
-
src: string | null,
|
|
16
|
-
/**
|
|
17
|
-
* <a/>超链接
|
|
18
|
-
*/
|
|
19
|
-
href: string | null
|
|
20
|
-
}
|
|
30
|
+
detail: UniRichTextItemClickEventDetail
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
constructor(type: string, detail: UniRichTextItemClickEventDetail)
|
|
21
36
|
}
|
|
22
37
|
|
|
38
|
+
export type RichTextItemClickEventDetail = UniRichTextItemClickEventDetail
|
|
39
|
+
export const RichTextItemClickEventDetail: typeof UniRichTextItemClickEventDetail
|
|
40
|
+
|
|
23
41
|
export type RichTextItemClickEvent = UniRichTextItemClickEvent
|
|
24
42
|
export const RichTextItemClickEvent: typeof UniRichTextItemClickEvent
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import { UniEvent } from "./UniEvent"
|
|
2
2
|
|
|
3
|
+
export class UniSwiperAnimationFinishDetail {
|
|
4
|
+
/**
|
|
5
|
+
* 发生动画结束事件的滑块下标
|
|
6
|
+
*/
|
|
7
|
+
current: number
|
|
8
|
+
/**
|
|
9
|
+
* autoplay 自动播放导致swiper变化;touch 用户划动引起swiper变化
|
|
10
|
+
*/
|
|
11
|
+
source: string
|
|
12
|
+
}
|
|
13
|
+
|
|
3
14
|
/**
|
|
4
15
|
* @package io.dcloud.uniapp.runtime
|
|
5
16
|
*/
|
|
6
17
|
export class UniSwiperAnimationFinishEvent extends UniEvent {
|
|
7
|
-
detail:
|
|
8
|
-
/**
|
|
9
|
-
* 发生动画结束事件的滑块下标
|
|
10
|
-
*/
|
|
11
|
-
current: number
|
|
12
|
-
/**
|
|
13
|
-
* autoplay 自动播放导致swiper变化;touch 用户划动引起swiper变化
|
|
14
|
-
*/
|
|
15
|
-
source: string
|
|
16
|
-
}
|
|
18
|
+
detail: UniSwiperAnimationFinishDetail
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
export type SwiperAnimationFinishEvent = UniSwiperAnimationFinishEvent
|
|
20
|
-
export const SwiperAnimationFinishEvent: typeof UniSwiperAnimationFinishEvent
|
|
22
|
+
export const SwiperAnimationFinishEvent: typeof UniSwiperAnimationFinishEvent
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import { UniEvent } from "./UniEvent"
|
|
2
2
|
|
|
3
|
+
export class UniSwiperChangeDetail {
|
|
4
|
+
/**
|
|
5
|
+
* 发生change事件的滑块下标
|
|
6
|
+
*/
|
|
7
|
+
current: number
|
|
8
|
+
/**
|
|
9
|
+
* autoplay 自动播放导致swiper变化;touch 用户划动引起swiper变化
|
|
10
|
+
*/
|
|
11
|
+
source: string
|
|
12
|
+
}
|
|
13
|
+
|
|
3
14
|
/**
|
|
4
15
|
* @package io.dcloud.uniapp.runtime
|
|
5
16
|
*/
|
|
6
17
|
export class UniSwiperChangeEvent extends UniEvent {
|
|
7
|
-
detail:
|
|
8
|
-
/**
|
|
9
|
-
* 发生change事件的滑块下标
|
|
10
|
-
*/
|
|
11
|
-
current: number
|
|
12
|
-
/**
|
|
13
|
-
* autoplay 自动播放导致swiper变化;touch 用户划动引起swiper变化
|
|
14
|
-
*/
|
|
15
|
-
source: string
|
|
16
|
-
}
|
|
18
|
+
detail: UniSwiperChangeDetail
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
export type SwiperChangeEvent = UniSwiperChangeEvent
|
|
20
|
-
export const SwiperChangeEvent: typeof UniSwiperChangeEvent
|
|
22
|
+
export const SwiperChangeEvent: typeof UniSwiperChangeEvent
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import { UniEvent } from "./UniEvent"
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
export class UniSwiperTransitionDetail {
|
|
5
|
+
/**
|
|
6
|
+
* 横向偏移量,单位是逻辑像素px
|
|
7
|
+
*/
|
|
8
|
+
dx: number
|
|
9
|
+
/**
|
|
10
|
+
* 纵向偏移量,单位是逻辑像素px
|
|
11
|
+
*/
|
|
12
|
+
dy: number
|
|
13
|
+
|
|
14
|
+
}
|
|
15
|
+
|
|
3
16
|
/**
|
|
4
17
|
* @package io.dcloud.uniapp.runtime
|
|
5
18
|
*/
|
|
6
19
|
export class UniSwiperTransitionEvent extends UniEvent {
|
|
7
|
-
detail:
|
|
8
|
-
/**
|
|
9
|
-
* 横向偏移量,单位是逻辑像素px
|
|
10
|
-
*/
|
|
11
|
-
dx: number
|
|
12
|
-
/**
|
|
13
|
-
* 纵向偏移量,单位是逻辑像素px
|
|
14
|
-
*/
|
|
15
|
-
dy: number
|
|
16
|
-
}
|
|
20
|
+
detail: UniSwiperTransitionDetail
|
|
17
21
|
}
|
|
18
22
|
|
|
19
23
|
export type SwiperTransitionEvent = UniSwiperTransitionEvent
|
|
20
|
-
export const SwiperTransitionEvent: typeof UniSwiperTransitionEvent
|
|
24
|
+
export const SwiperTransitionEvent: typeof UniSwiperTransitionEvent
|
|
@@ -1,20 +1,35 @@
|
|
|
1
1
|
import { UniEvent } from "./UniEvent"
|
|
2
2
|
|
|
3
|
+
export class UniTextareaBlurEventDetail {
|
|
4
|
+
/**
|
|
5
|
+
* 输入框内容
|
|
6
|
+
*/
|
|
7
|
+
value: string
|
|
8
|
+
/**
|
|
9
|
+
* 选择区域的起始位置
|
|
10
|
+
*/
|
|
11
|
+
cursor: number
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
constructor(value: string, cursor: number)
|
|
17
|
+
}
|
|
18
|
+
|
|
3
19
|
/**
|
|
4
20
|
* @package io.dcloud.uniapp.runtime
|
|
5
21
|
*/
|
|
6
22
|
export class UniTextareaBlurEvent extends UniEvent {
|
|
7
|
-
detail:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* 选择区域的起始位置
|
|
14
|
-
*/
|
|
15
|
-
cursor: number
|
|
16
|
-
}
|
|
23
|
+
detail: UniTextareaBlurEventDetail
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
constructor(type: string, detail: UniTextareaBlurEventDetail)
|
|
17
29
|
}
|
|
18
30
|
|
|
19
31
|
export type TextareaBlurEvent = UniTextareaBlurEvent
|
|
20
|
-
export const TextareaBlurEvent: typeof UniTextareaBlurEvent
|
|
32
|
+
export const TextareaBlurEvent: typeof UniTextareaBlurEvent
|
|
33
|
+
|
|
34
|
+
export type TextareaBlurEventDetail = UniTextareaBlurEventDetail
|
|
35
|
+
export const TextareaBlurEventDetail: typeof UniTextareaBlurEventDetail
|