@dcloudio/uni-app-x 0.5.17 → 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 +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 +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/index.d.ts +3 -3
- 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/interface.d.ts +1 -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 +2 -2
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +27 -6
- 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 +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/types/shims-vue.d.ts +0 -14
|
@@ -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
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @package io.dcloud.uniapp.runtime
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import { Event } from './Event'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @package io.dcloud.uniapp.runtime
|
|
5
|
+
*/
|
|
6
|
+
export class InputEvent extends Event {
|
|
7
|
+
detail: {
|
|
8
|
+
/**
|
|
9
|
+
* 输入框内容
|
|
10
|
+
*/
|
|
11
|
+
value: string,
|
|
12
|
+
/**
|
|
13
|
+
* 光标的位置
|
|
14
|
+
*/
|
|
15
|
+
cursor: number,
|
|
16
|
+
/**
|
|
17
|
+
* 输入字符的Unicode值
|
|
18
|
+
*/
|
|
19
|
+
keyCode: number
|
|
20
|
+
}
|
|
21
21
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
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
|
-
}
|
|
6
|
+
export class InputFocusEvent extends Event {
|
|
7
|
+
detail: {
|
|
8
|
+
/**
|
|
9
|
+
* 键盘高度
|
|
10
|
+
*/
|
|
11
|
+
height: number,
|
|
12
|
+
/**
|
|
13
|
+
* 输入框内容
|
|
14
|
+
*/
|
|
15
|
+
value: string
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
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
|
-
|
|
6
|
+
export class InputKeyboardHeightChangeEvent extends Event {
|
|
7
|
+
detail: {
|
|
8
|
+
/**
|
|
9
|
+
* 键盘高度
|
|
10
|
+
*/
|
|
11
|
+
height: number,
|
|
12
|
+
/**
|
|
13
|
+
* 持续时间
|
|
14
|
+
*/
|
|
15
|
+
duration: number
|
|
16
|
+
}
|
|
17
17
|
}
|
|
@@ -1,63 +1,63 @@
|
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
6
|
+
export class MouseEvent extends Event {
|
|
7
|
+
/**
|
|
8
|
+
* 相对于页面可显示区域左边的距离
|
|
9
|
+
*/
|
|
10
|
+
clientX: number
|
|
11
|
+
/**
|
|
12
|
+
* 相对于页面可显示区域顶部的距离
|
|
13
|
+
*/
|
|
14
|
+
clientY: number
|
|
15
|
+
/**
|
|
16
|
+
* 相对于页面可显示区域左边的距离,同`clientX`
|
|
17
|
+
*/
|
|
18
|
+
x: number
|
|
19
|
+
/**
|
|
20
|
+
* 相对于页面可显示区域顶部的距离,同`clientY`
|
|
21
|
+
*/
|
|
22
|
+
y: number
|
|
23
|
+
/**
|
|
24
|
+
相对于文档左边的距离
|
|
25
|
+
*/
|
|
26
|
+
pageX: number
|
|
27
|
+
/**
|
|
28
|
+
* 相对于文档顶部的距离
|
|
29
|
+
*/
|
|
30
|
+
pageY: number
|
|
31
|
+
/**
|
|
32
|
+
* 相对于屏幕左边距离
|
|
33
|
+
*/
|
|
34
|
+
screenX: number
|
|
35
|
+
/**
|
|
36
|
+
* 相对于屏幕顶部的距离
|
|
37
|
+
*/
|
|
38
|
+
screenY: number
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* 创建一个新的 MouseEvent 对象
|
|
42
|
+
* @param {string} type 事件类型
|
|
43
|
+
* @param {number} x 相对于页面可显示区域左边的距离
|
|
44
|
+
* @param {number} y 相对于页面可显示区域顶部的距离
|
|
45
|
+
* @param {number} clientX 相对于页面可显示区域左边的距离
|
|
46
|
+
* @param {number} clientY 相对于页面可显示区域顶部的距离
|
|
47
|
+
* @param {number} pageX 相对于文档顶部的距离
|
|
48
|
+
* @param {number} pageY 相对于文档顶部的距离
|
|
49
|
+
* @param {number} screenX 相对于屏幕左边距离
|
|
50
|
+
* @param {number} screenY 相对于屏幕顶部的距离
|
|
51
|
+
*/
|
|
52
|
+
constructor (
|
|
53
|
+
type: string,
|
|
54
|
+
x: number,
|
|
55
|
+
y: number,
|
|
56
|
+
clientX: number,
|
|
57
|
+
clientY: number,
|
|
58
|
+
pageX: number,
|
|
59
|
+
pageY: number,
|
|
60
|
+
screenX: number,
|
|
61
|
+
screenY: number
|
|
62
|
+
)
|
|
63
63
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @package io.dcloud.uniapp.runtime
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import { Event } from './Event'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @package io.dcloud.uniapp.runtime
|
|
5
|
+
*/
|
|
6
|
+
export class NestedPreScrollEvent extends Event {
|
|
7
|
+
/**
|
|
8
|
+
* x轴滚动距离
|
|
9
|
+
*/
|
|
10
|
+
deltaX: number
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* y轴滚动距离
|
|
14
|
+
*/
|
|
15
|
+
deltaY: number
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* 通知到子节点x,y轴滚动距离的消耗
|
|
19
|
+
* @param {number} consumedX x轴消耗的滚动距离
|
|
20
|
+
* @param {number} consumedY y轴消耗的滚动距离
|
|
21
|
+
*/
|
|
22
|
+
consumed(consumedX: number, consumedY: number): void
|
|
23
23
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @package io.dcloud.uniapp.interfaces
|
|
3
3
|
* @autodoc false
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
export interface INodeData {
|
|
6
6
|
id: string
|
|
7
7
|
name: string
|
|
8
8
|
attrs?: Map<string, any | null>
|
|
@@ -13,7 +13,7 @@ declare interface INodeData {
|
|
|
13
13
|
* @package io.dcloud.uniapp.native.node
|
|
14
14
|
* @autodoc false
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
export class NodeData implements INodeData {
|
|
17
17
|
id: string
|
|
18
18
|
name: string
|
|
19
19
|
attrs?: Map<string, any | null>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { PageEvent } from "./PageEvent";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @package io.dcloud.uniapp.runtime
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
export class PageScrollEvent extends PageEvent {
|
|
7
|
+
/**
|
|
8
|
+
* 竖向滚动的距离
|
|
9
|
+
*/
|
|
10
10
|
scrollTop: number
|
|
11
11
|
}
|