@dcloudio/uni-app-x 0.6.8 → 0.7.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/package.json +1 -1
- package/types/native/CustomEvent.d.ts +2 -1
- package/types/native/Event.d.ts +8 -3
- package/types/native/IUniElement.d.ts +748 -0
- package/types/native/InputFocusEvent.d.ts +30 -17
- package/types/native/SourceError.d.ts +10 -0
- package/types/native/StartNestedScrollEvent.d.ts +2 -2
- package/types/native/UniApp.d.ts +66 -0
- package/types/native/UniCallbackWrapper.d.ts +7 -0
- package/types/native/UniDocument.d.ts +33 -0
- package/types/native/UniElement.d.ts +24 -108
- package/types/native/UniPage.d.ts +96 -0
- package/types/native/UniPageManager.d.ts +17 -0
- package/types/native/UniTabsElement.d.ts +20 -81
- package/types/native/UniTextElement.d.ts +3 -11
- package/types/native/UniVideoElement.d.ts +2 -2
- package/types/native/UniWebViewElement.d.ts +3 -24
- package/types/native/ViewToTempFilePathOptions.d.ts +38 -0
- package/types/native/global.d.ts +92 -76
- package/types/native/index.d.ts +7 -8
- package/types/uni/core/lib/ui/tab-bar/interface.d.ts +1 -0
- package/types/uni/uts-plugin-api/index.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-biz/index.d.ts +1 -0
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +34 -0
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +128 -0
- package/types/vue/UniCanvasElement.d.ts +270 -0
- package/types/native/Element.d.ts +0 -288
- package/types/native/IApp.d.ts +0 -28
- package/types/native/IComment.d.ts +0 -5
- package/types/native/IDocument.d.ts +0 -42
- package/types/native/IPage.d.ts +0 -135
- package/types/native/IPageManager.d.ts +0 -15
- package/types/native/ITextNode.d.ts +0 -6
- package/types/native/UniAppManager.d.ts +0 -15
package/types/native/IPage.d.ts
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
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";
|
|
9
|
-
import { NativeLoadFontFaceOptions } from './NativeLoadFontFaceOptions'
|
|
10
|
-
|
|
11
|
-
export enum Type {
|
|
12
|
-
DEFAULT,
|
|
13
|
-
POPUP
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
// TODO
|
|
17
|
-
export class UniCallbackWrapper {
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// TODO
|
|
22
|
-
export class NavigationBarButtonTapEvent {
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// TODO
|
|
27
|
-
export class WebViewServiceMessageEvent {
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// TODO
|
|
32
|
-
export class ViewToTempFilePathOptions {
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// TODO
|
|
37
|
-
export class NavigationBarSearchInputEvent {
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @package io.dcloud.uniapp.runtime
|
|
43
|
-
* @autodoc false
|
|
44
|
-
*/
|
|
45
|
-
export interface IPage {
|
|
46
|
-
pageUrl: string;
|
|
47
|
-
type: Type;
|
|
48
|
-
// 不适合出现在 interface
|
|
49
|
-
// pageEventHelper: PageEventHelper
|
|
50
|
-
animationOption: Map<string, any> | null;
|
|
51
|
-
animDuration: number;
|
|
52
|
-
isDestroy: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* 页面id
|
|
55
|
-
*/
|
|
56
|
-
pageId: string
|
|
57
|
-
// 不适合出现在 interface
|
|
58
|
-
// containerView: View | null
|
|
59
|
-
/**
|
|
60
|
-
* document对象
|
|
61
|
-
*/
|
|
62
|
-
document: IDocument
|
|
63
|
-
isChild: boolean;
|
|
64
|
-
navigationBar: INavigationBar | null
|
|
65
|
-
// 不适合出现在 interface
|
|
66
|
-
// pageActivity: UniPageActivity | null
|
|
67
|
-
tabsNode: ITabsNode | null;
|
|
68
|
-
// 不适合出现在 interface
|
|
69
|
-
// fonts: Map<string, Typeface | null>
|
|
70
|
-
/**
|
|
71
|
-
* 开启排版渲染
|
|
72
|
-
* @param callback 首次排版回调监听器
|
|
73
|
-
*/
|
|
74
|
-
startRender(callback?: (() => void) | null): void
|
|
75
|
-
/**
|
|
76
|
-
* 显示页面
|
|
77
|
-
* @param options 显示配置项
|
|
78
|
-
* @param callback 显示完毕监听器
|
|
79
|
-
*/
|
|
80
|
-
show(options?: Map<String, any> | null, callback?: (() => void) | null): void
|
|
81
|
-
hide(options?: Map<string, any> | null): void
|
|
82
|
-
/**
|
|
83
|
-
* 关闭页面
|
|
84
|
-
* @param options 关闭配置项
|
|
85
|
-
* @param callback 关闭完毕监听器
|
|
86
|
-
*/
|
|
87
|
-
close(options?: Map<String, any> | null, callback?: (() => void) | null): void
|
|
88
|
-
destroy(): void;
|
|
89
|
-
updateStyle(style: Map<string, any>): void
|
|
90
|
-
createDocument(documentData: INodeData): IDocument
|
|
91
|
-
// createDocument(tagName: string, data: Map<string, any>): IDocument
|
|
92
|
-
addPageEventListener(
|
|
93
|
-
type:
|
|
94
|
-
| 'onReady'
|
|
95
|
-
| 'onShow'
|
|
96
|
-
| 'onHide'
|
|
97
|
-
| 'onTabItemTap'
|
|
98
|
-
| 'onUnload'
|
|
99
|
-
| 'onReachBottom'
|
|
100
|
-
| 'onPullDownRefresh'
|
|
101
|
-
| 'onPageScroll'
|
|
102
|
-
| 'onResize'
|
|
103
|
-
| 'onWebViewServiceMessage'
|
|
104
|
-
| 'onPopGesture',
|
|
105
|
-
callback: (event: PageEvent) => void
|
|
106
|
-
): void
|
|
107
|
-
addEventListener<T extends Event>(event: string, callback: (event: T) => void): UniCallbackWrapper
|
|
108
|
-
addResizeEventListener(callback: (event: ResizeEvent) => void): UniCallbackWrapper
|
|
109
|
-
addNavigationBarButtonTapListener(callback: (event: NavigationBarButtonTapEvent) => void): UniCallbackWrapper
|
|
110
|
-
addNavigationBarSearchInputChangedListener(callback: (event: NavigationBarSearchInputEvent) => void): UniCallbackWrapper
|
|
111
|
-
addNavigationBarSearchInputConfirmedListener(callback: (event: NavigationBarSearchInputEvent) => void): UniCallbackWrapper
|
|
112
|
-
addNavigationBarSearchInputClickedListener(callback: (event: PageEvent) => void): UniCallbackWrapper
|
|
113
|
-
addPageScrollEventListener(callback: (event: PageScrollEvent) => void): void
|
|
114
|
-
addWebViewServiceMessageEventListener(callback: (event: WebViewServiceMessageEvent) => void): UniCallbackWrapper
|
|
115
|
-
removeEventListener(callbackWrapper: UniCallbackWrapper): void
|
|
116
|
-
removeEventListener(event: string, callbackWrapper: UniCallbackWrapper): void
|
|
117
|
-
dispatchPageEvent(event: string, data: PageEvent): void
|
|
118
|
-
viewToTempFilePath(options: ViewToTempFilePathOptions): void
|
|
119
|
-
dispatchActivityState(key: number, ...params: any[]): void
|
|
120
|
-
loadFontFace(options: NativeLoadFontFaceOptions): void
|
|
121
|
-
/**
|
|
122
|
-
* 停止排版渲染
|
|
123
|
-
*/
|
|
124
|
-
stopRender(): void
|
|
125
|
-
startPullDownRefresh(): void
|
|
126
|
-
stopPullDownRefresh(): void
|
|
127
|
-
getPageRenderDuration(): number
|
|
128
|
-
getPageLayoutDuration(): number
|
|
129
|
-
getPageRenderCount(): number
|
|
130
|
-
getPageLayoutCount(): number
|
|
131
|
-
getFirstRenderStartTime(): number
|
|
132
|
-
getFirstLayoutStartTime(): number
|
|
133
|
-
getFirstPageRenderDuration(): number
|
|
134
|
-
getFirstPageLayoutDuration(): number
|
|
135
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IPage } from "./IPage";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @package io.dcloud.uniapp.runtime
|
|
5
|
-
* @autodoc false
|
|
6
|
-
*/
|
|
7
|
-
export class IPageManager {
|
|
8
|
-
createPage(
|
|
9
|
-
pageUrl: string,
|
|
10
|
-
pageId: string,
|
|
11
|
-
pageStyle: Map<string, any | null>
|
|
12
|
-
): IPage
|
|
13
|
-
|
|
14
|
-
findPageById(pageId: string): IPage | null
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IPage } from "./IPage"
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @package io.dcloud.uniapp.appframe
|
|
5
|
-
* @autodoc false
|
|
6
|
-
*/
|
|
7
|
-
export const UniAppManager: {
|
|
8
|
-
getCurrentApp(): CurrentApp
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface CurrentApp {
|
|
12
|
-
pageManager: {
|
|
13
|
-
createPage(url: string, id: unknown, styles: unknown): IPage
|
|
14
|
-
}
|
|
15
|
-
}
|