@dcloudio/uni-app-x 0.5.17 → 0.6.1
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 +11 -9
- package/types/native/Event.d.ts +38 -38
- package/types/native/IApp.d.ts +2 -2
- package/types/native/IComment.d.ts +5 -0
- package/types/native/IDocument.d.ts +5 -4
- 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/ITextNode.d.ts +6 -0
- 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 +41 -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 +26 -7
- package/types/native/StopNestedScrollEvent.d.ts +26 -0
- package/types/native/SwiperAnimationFinishEvent.d.ts +12 -6
- package/types/native/SwiperChangeEvent.d.ts +12 -6
- package/types/native/SwiperTransitionEvent.d.ts +12 -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 +262 -0
- package/types/native/index.d.ts +61 -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/base/event/index.d.ts +1 -0
- package/types/uni/core/lib/base/interceptor/index.d.ts +1 -0
- package/types/uni/core/lib/lifecycle/index.d.ts +1 -0
- package/types/uni/core/lib/performance/index.d.ts +1 -0
- package/types/uni/core/lib/route/index.d.ts +13 -0
- package/types/uni/core/lib/route/interface.d.ts +31 -5
- package/types/uni/core/lib/ui/create-selector-query/index.d.ts +1 -0
- package/types/uni/core/lib/ui/get-element-by-id/index.d.ts +1 -0
- package/types/uni/core/lib/ui/get-element-by-id/interface.d.ts +1 -1
- package/types/uni/core/lib/ui/load-font-face/index.d.ts +1 -0
- package/types/uni/core/lib/ui/page-scroll-to/index.d.ts +1 -0
- package/types/uni/core/lib/ui/page-scroll-to/interface.d.ts +1 -1
- package/types/uni/core/lib/ui/pull-down-refresh/index.d.ts +1 -0
- package/types/uni/core/lib/ui/set-navigation-bar-color/index.d.ts +5 -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 +5 -0
- package/types/uni/core/lib/ui/set-navigation-bar-title/interface.d.ts +10 -1
- package/types/uni/core/lib/ui/tab-bar/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +27 -6
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-push/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-verify/utssdk/index.d.ts +46 -0
- package/types/uni/uts-plugin-api/lib/uni-verify/utssdk/interface.d.ts +201 -0
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +1 -0
- 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 +13 -0
- package/types/uni/uts-plugin-modules/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +88 -13
- package/types/vue/UniCloudDBElement.d.ts +1 -1
- package/uts-plugin.d.ts +17 -4
- package/types/shims-vue.d.ts +0 -14
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
import {
|
|
3
|
+
WebViewStyles as WebViewStylesOrigin,
|
|
4
|
+
WebViewProgressStyles as WebViewProgressStylesOrigin,
|
|
5
|
+
WebViewMessageEventDetail as WebViewMessageEventDetailOrigin,
|
|
6
|
+
WebViewMessageEvent as WebViewMessageEventOrigin,
|
|
7
|
+
WebViewLoadingEventDetail as WebViewLoadingEventDetailOrigin,
|
|
8
|
+
WebViewLoadingEvent as WebViewLoadingEventOrigin,
|
|
9
|
+
WebViewLoadedEventDetail as WebViewLoadedEventDetailOrigin,
|
|
10
|
+
WebViewLoadedEvent as WebViewLoadedEventOrigin,
|
|
11
|
+
WebViewErrorEventDetail as WebViewErrorEventDetailOrigin,
|
|
12
|
+
WebViewErrorEvent as WebViewErrorEventOrigin,
|
|
13
|
+
WebViewDownloadEventDetail as WebViewDownloadEventDetailOrigin,
|
|
14
|
+
WebViewDownloadEvent as WebViewDownloadEventOrigin,
|
|
15
|
+
UniWebViewElement as UniWebViewElementOrigin,
|
|
16
|
+
IWebViewNode as IWebViewNodeOrigin,
|
|
17
|
+
UniVideoElement as UniVideoElementOrigin,
|
|
18
|
+
Danmu as DanmuOrigin,
|
|
19
|
+
RequestFullScreenOptions as RequestFullScreenOptionsOrigin,
|
|
20
|
+
UniTextElement as UniTextElementOrigin,
|
|
21
|
+
TextElement as TextElementOrigin,
|
|
22
|
+
UniTabsElement as UniTabsElementOrigin,
|
|
23
|
+
ITabsNode as ITabsNodeOrigin,
|
|
24
|
+
UniError as UniErrorOrigin,
|
|
25
|
+
UniElement as UniElementOrigin,
|
|
26
|
+
UniViewElement as UniViewElementOrigin,
|
|
27
|
+
UniScrollViewElement as UniScrollViewElementOrigin,
|
|
28
|
+
UniListViewElement as UniListViewElementOrigin,
|
|
29
|
+
UniListItemElement as UniListItemElementOrigin,
|
|
30
|
+
UniSwiperElement as UniSwiperElementOrigin,
|
|
31
|
+
UniSwiperItemElement as UniSwiperItemElementOrigin,
|
|
32
|
+
UniImageElement as UniImageElementOrigin,
|
|
33
|
+
UniInputElement as UniInputElementOrigin,
|
|
34
|
+
UniTextareaElement as UniTextareaElementOrigin,
|
|
35
|
+
UniRichTextElement as UniRichTextElementOrigin,
|
|
36
|
+
UniStickyHeaderElement as UniStickyHeaderElementOrigin,
|
|
37
|
+
UniStickySectionElement as UniStickySectionElementOrigin,
|
|
38
|
+
UniAppManager as UniAppManagerOrigin,
|
|
39
|
+
CurrentApp as CurrentAppOrigin,
|
|
40
|
+
UniAggregateError as UniAggregateErrorOrigin,
|
|
41
|
+
UTSAndroidHookProxy as UTSAndroidHookProxyOrigin,
|
|
42
|
+
Touch as TouchOrigin,
|
|
43
|
+
TouchEvent as TouchEventOrigin,
|
|
44
|
+
TextareaLineChangeEvent as TextareaLineChangeEventOrigin,
|
|
45
|
+
TextareaFocusEvent as TextareaFocusEventOrigin,
|
|
46
|
+
TextareaBlurEvent as TextareaBlurEventOrigin,
|
|
47
|
+
TabTapEvent as TabTapEventOrigin,
|
|
48
|
+
SwiperTransitionEvent as SwiperTransitionEventOrigin,
|
|
49
|
+
SwiperChangeEvent as SwiperChangeEventOrigin,
|
|
50
|
+
SwiperAnimationFinishEvent as SwiperAnimationFinishEventOrigin,
|
|
51
|
+
StopNestedScrollEvent as StopNestedScrollEventOrigin,
|
|
52
|
+
StartNestedScrollEvent as StartNestedScrollEventOrigin,
|
|
53
|
+
SourceError as SourceErrorOrigin,
|
|
54
|
+
TakeSnapshotOptions as TakeSnapshotOptionsOrigin,
|
|
55
|
+
TakeSnapshotSuccess as TakeSnapshotSuccessOrigin,
|
|
56
|
+
TakeSnapshotFail as TakeSnapshotFailOrigin,
|
|
57
|
+
TakeSnapshotSuccessCallback as TakeSnapshotSuccessCallbackOrigin,
|
|
58
|
+
TakeSnapshotFailCallback as TakeSnapshotFailCallbackOrigin,
|
|
59
|
+
TakeSnapshotCompleteCallback as TakeSnapshotCompleteCallbackOrigin,
|
|
60
|
+
ScrollToUpperEvent as ScrollToUpperEventOrigin,
|
|
61
|
+
ScrollToLowerEvent as ScrollToLowerEventOrigin,
|
|
62
|
+
ScrollEvent as ScrollEventOrigin,
|
|
63
|
+
RichTextItemClickEvent as RichTextItemClickEventOrigin,
|
|
64
|
+
ResizeEvent as ResizeEventOrigin,
|
|
65
|
+
RefresherEvent as RefresherEventOrigin,
|
|
66
|
+
PageScrollEvent as PageScrollEventOrigin,
|
|
67
|
+
PageEvent as PageEventOrigin,
|
|
68
|
+
NodeData as NodeDataOrigin,
|
|
69
|
+
INodeData as INodeDataOrigin,
|
|
70
|
+
NestedPreScrollEvent as NestedPreScrollEventOrigin,
|
|
71
|
+
MouseEvent as MouseEventOrigin,
|
|
72
|
+
InputKeyboardHeightChangeEvent as InputKeyboardHeightChangeEventOrigin,
|
|
73
|
+
InputFocusEvent as InputFocusEventOrigin,
|
|
74
|
+
InputEvent as InputEventOrigin,
|
|
75
|
+
InputConfirmEvent as InputConfirmEventOrigin,
|
|
76
|
+
InputBlurEvent as InputBlurEventOrigin,
|
|
77
|
+
ImageLoadEvent as ImageLoadEventOrigin,
|
|
78
|
+
ImageErrorEvent as ImageErrorEventOrigin,
|
|
79
|
+
IUniError as IUniErrorOrigin,
|
|
80
|
+
ITextNode as ITextNodeOrigin,
|
|
81
|
+
IPageManager as IPageManagerOrigin,
|
|
82
|
+
UniCallbackWrapper as UniCallbackWrapperOrigin,
|
|
83
|
+
NavigationBarButtonTapEvent as NavigationBarButtonTapEventOrigin,
|
|
84
|
+
WebViewServiceMessageEvent as WebViewServiceMessageEventOrigin,
|
|
85
|
+
ViewToTempFilePathOptions as ViewToTempFilePathOptionsOrigin,
|
|
86
|
+
NavigationBarSearchInputEvent as NavigationBarSearchInputEventOrigin,
|
|
87
|
+
IPage as IPageOrigin,
|
|
88
|
+
INavigationBar as INavigationBarOrigin,
|
|
89
|
+
IDocument as IDocumentOrigin,
|
|
90
|
+
IComment as ICommentOrigin,
|
|
91
|
+
IApp as IAppOrigin,
|
|
92
|
+
Event as EventOrigin,
|
|
93
|
+
Element as ElementOrigin,
|
|
94
|
+
INode as INodeOrigin,
|
|
95
|
+
DrawableContext as DrawableContextOrigin,
|
|
96
|
+
DOMRect as DOMRectOrigin,
|
|
97
|
+
CustomEventOptions as CustomEventOptionsOrigin,
|
|
98
|
+
CustomEvent as CustomEventOrigin,
|
|
99
|
+
CSSStyleDeclaration as CSSStyleDeclarationOrigin,
|
|
100
|
+
AsyncApiResult as AsyncApiResultOrigin,
|
|
101
|
+
} from './index'
|
|
102
|
+
|
|
103
|
+
declare global {
|
|
104
|
+
const WebViewStyles: typeof WebViewStylesOrigin
|
|
105
|
+
type WebViewStyles = WebViewStylesOrigin
|
|
106
|
+
const WebViewProgressStyles: typeof WebViewProgressStylesOrigin
|
|
107
|
+
type WebViewProgressStyles = WebViewProgressStylesOrigin
|
|
108
|
+
const WebViewMessageEventDetail: typeof WebViewMessageEventDetailOrigin
|
|
109
|
+
type WebViewMessageEventDetail = WebViewMessageEventDetailOrigin
|
|
110
|
+
const WebViewMessageEvent: typeof WebViewMessageEventOrigin
|
|
111
|
+
type WebViewMessageEvent = WebViewMessageEventOrigin
|
|
112
|
+
const WebViewLoadingEventDetail: typeof WebViewLoadingEventDetailOrigin
|
|
113
|
+
type WebViewLoadingEventDetail = WebViewLoadingEventDetailOrigin
|
|
114
|
+
const WebViewLoadingEvent: typeof WebViewLoadingEventOrigin
|
|
115
|
+
type WebViewLoadingEvent = WebViewLoadingEventOrigin
|
|
116
|
+
const WebViewLoadedEventDetail: typeof WebViewLoadedEventDetailOrigin
|
|
117
|
+
type WebViewLoadedEventDetail = WebViewLoadedEventDetailOrigin
|
|
118
|
+
const WebViewLoadedEvent: typeof WebViewLoadedEventOrigin
|
|
119
|
+
type WebViewLoadedEvent = WebViewLoadedEventOrigin
|
|
120
|
+
const WebViewErrorEventDetail: typeof WebViewErrorEventDetailOrigin
|
|
121
|
+
type WebViewErrorEventDetail = WebViewErrorEventDetailOrigin
|
|
122
|
+
const WebViewErrorEvent: typeof WebViewErrorEventOrigin
|
|
123
|
+
type WebViewErrorEvent = WebViewErrorEventOrigin
|
|
124
|
+
const WebViewDownloadEventDetail: typeof WebViewDownloadEventDetailOrigin
|
|
125
|
+
type WebViewDownloadEventDetail = WebViewDownloadEventDetailOrigin
|
|
126
|
+
const WebViewDownloadEvent: typeof WebViewDownloadEventOrigin
|
|
127
|
+
type WebViewDownloadEvent = WebViewDownloadEventOrigin
|
|
128
|
+
type UniWebViewElement = UniWebViewElementOrigin
|
|
129
|
+
type IWebViewNode = IWebViewNodeOrigin
|
|
130
|
+
type UniVideoElement = UniVideoElementOrigin
|
|
131
|
+
type Danmu = DanmuOrigin
|
|
132
|
+
type RequestFullScreenOptions = RequestFullScreenOptionsOrigin
|
|
133
|
+
const UniTextElement: typeof UniTextElementOrigin
|
|
134
|
+
type UniTextElement = UniTextElementOrigin
|
|
135
|
+
type TextElement = TextElementOrigin
|
|
136
|
+
type UniTabsElement = UniTabsElementOrigin
|
|
137
|
+
type ITabsNode = ITabsNodeOrigin
|
|
138
|
+
const UniError: typeof UniErrorOrigin
|
|
139
|
+
type UniError = UniErrorOrigin
|
|
140
|
+
const UniElement: typeof UniElementOrigin
|
|
141
|
+
type UniElement = UniElementOrigin
|
|
142
|
+
type UniViewElement = UniViewElementOrigin
|
|
143
|
+
type UniScrollViewElement = UniScrollViewElementOrigin
|
|
144
|
+
type UniListViewElement = UniListViewElementOrigin
|
|
145
|
+
type UniListItemElement = UniListItemElementOrigin
|
|
146
|
+
type UniSwiperElement = UniSwiperElementOrigin
|
|
147
|
+
type UniSwiperItemElement = UniSwiperItemElementOrigin
|
|
148
|
+
type UniImageElement = UniImageElementOrigin
|
|
149
|
+
type UniInputElement = UniInputElementOrigin
|
|
150
|
+
type UniTextareaElement = UniTextareaElementOrigin
|
|
151
|
+
type UniRichTextElement = UniRichTextElementOrigin
|
|
152
|
+
type UniStickyHeaderElement = UniStickyHeaderElementOrigin
|
|
153
|
+
type UniStickySectionElement = UniStickySectionElementOrigin
|
|
154
|
+
const UniAppManager: typeof UniAppManagerOrigin
|
|
155
|
+
type CurrentApp = CurrentAppOrigin
|
|
156
|
+
const UniAggregateError: typeof UniAggregateErrorOrigin
|
|
157
|
+
type UniAggregateError = UniAggregateErrorOrigin
|
|
158
|
+
type UTSAndroidHookProxy = UTSAndroidHookProxyOrigin
|
|
159
|
+
const Touch: typeof TouchOrigin
|
|
160
|
+
type Touch = TouchOrigin
|
|
161
|
+
const TouchEvent: typeof TouchEventOrigin
|
|
162
|
+
type TouchEvent = TouchEventOrigin
|
|
163
|
+
const TextareaLineChangeEvent: typeof TextareaLineChangeEventOrigin
|
|
164
|
+
type TextareaLineChangeEvent = TextareaLineChangeEventOrigin
|
|
165
|
+
const TextareaFocusEvent: typeof TextareaFocusEventOrigin
|
|
166
|
+
type TextareaFocusEvent = TextareaFocusEventOrigin
|
|
167
|
+
const TextareaBlurEvent: typeof TextareaBlurEventOrigin
|
|
168
|
+
type TextareaBlurEvent = TextareaBlurEventOrigin
|
|
169
|
+
const TabTapEvent: typeof TabTapEventOrigin
|
|
170
|
+
type TabTapEvent = TabTapEventOrigin
|
|
171
|
+
const SwiperTransitionEvent: typeof SwiperTransitionEventOrigin
|
|
172
|
+
type SwiperTransitionEvent = SwiperTransitionEventOrigin
|
|
173
|
+
const SwiperChangeEvent: typeof SwiperChangeEventOrigin
|
|
174
|
+
type SwiperChangeEvent = SwiperChangeEventOrigin
|
|
175
|
+
const SwiperAnimationFinishEvent: typeof SwiperAnimationFinishEventOrigin
|
|
176
|
+
type SwiperAnimationFinishEvent = SwiperAnimationFinishEventOrigin
|
|
177
|
+
const StopNestedScrollEvent: typeof StopNestedScrollEventOrigin
|
|
178
|
+
type StopNestedScrollEvent = StopNestedScrollEventOrigin
|
|
179
|
+
const StartNestedScrollEvent: typeof StartNestedScrollEventOrigin
|
|
180
|
+
type StartNestedScrollEvent = StartNestedScrollEventOrigin
|
|
181
|
+
const SourceError: typeof SourceErrorOrigin
|
|
182
|
+
type SourceError = SourceErrorOrigin
|
|
183
|
+
const TakeSnapshotOptions: typeof TakeSnapshotOptionsOrigin
|
|
184
|
+
type TakeSnapshotOptions = TakeSnapshotOptionsOrigin
|
|
185
|
+
type TakeSnapshotSuccess = TakeSnapshotSuccessOrigin
|
|
186
|
+
type TakeSnapshotFail = TakeSnapshotFailOrigin
|
|
187
|
+
type TakeSnapshotSuccessCallback = TakeSnapshotSuccessCallbackOrigin
|
|
188
|
+
type TakeSnapshotFailCallback = TakeSnapshotFailCallbackOrigin
|
|
189
|
+
type TakeSnapshotCompleteCallback = TakeSnapshotCompleteCallbackOrigin
|
|
190
|
+
const ScrollToUpperEvent: typeof ScrollToUpperEventOrigin
|
|
191
|
+
type ScrollToUpperEvent = ScrollToUpperEventOrigin
|
|
192
|
+
const ScrollToLowerEvent: typeof ScrollToLowerEventOrigin
|
|
193
|
+
type ScrollToLowerEvent = ScrollToLowerEventOrigin
|
|
194
|
+
const ScrollEvent: typeof ScrollEventOrigin
|
|
195
|
+
type ScrollEvent = ScrollEventOrigin
|
|
196
|
+
const RichTextItemClickEvent: typeof RichTextItemClickEventOrigin
|
|
197
|
+
type RichTextItemClickEvent = RichTextItemClickEventOrigin
|
|
198
|
+
const ResizeEvent: typeof ResizeEventOrigin
|
|
199
|
+
type ResizeEvent = ResizeEventOrigin
|
|
200
|
+
const RefresherEvent: typeof RefresherEventOrigin
|
|
201
|
+
type RefresherEvent = RefresherEventOrigin
|
|
202
|
+
const PageScrollEvent: typeof PageScrollEventOrigin
|
|
203
|
+
type PageScrollEvent = PageScrollEventOrigin
|
|
204
|
+
const PageEvent: typeof PageEventOrigin
|
|
205
|
+
type PageEvent = PageEventOrigin
|
|
206
|
+
const NodeData: typeof NodeDataOrigin
|
|
207
|
+
type NodeData = NodeDataOrigin
|
|
208
|
+
type INodeData = INodeDataOrigin
|
|
209
|
+
const NestedPreScrollEvent: typeof NestedPreScrollEventOrigin
|
|
210
|
+
type NestedPreScrollEvent = NestedPreScrollEventOrigin
|
|
211
|
+
const MouseEvent: typeof MouseEventOrigin
|
|
212
|
+
type MouseEvent = MouseEventOrigin
|
|
213
|
+
const InputKeyboardHeightChangeEvent: typeof InputKeyboardHeightChangeEventOrigin
|
|
214
|
+
type InputKeyboardHeightChangeEvent = InputKeyboardHeightChangeEventOrigin
|
|
215
|
+
const InputFocusEvent: typeof InputFocusEventOrigin
|
|
216
|
+
type InputFocusEvent = InputFocusEventOrigin
|
|
217
|
+
const InputEvent: typeof InputEventOrigin
|
|
218
|
+
type InputEvent = InputEventOrigin
|
|
219
|
+
const InputConfirmEvent: typeof InputConfirmEventOrigin
|
|
220
|
+
type InputConfirmEvent = InputConfirmEventOrigin
|
|
221
|
+
const InputBlurEvent: typeof InputBlurEventOrigin
|
|
222
|
+
type InputBlurEvent = InputBlurEventOrigin
|
|
223
|
+
const ImageLoadEvent: typeof ImageLoadEventOrigin
|
|
224
|
+
type ImageLoadEvent = ImageLoadEventOrigin
|
|
225
|
+
const ImageErrorEvent: typeof ImageErrorEventOrigin
|
|
226
|
+
type ImageErrorEvent = ImageErrorEventOrigin
|
|
227
|
+
type IUniError = IUniErrorOrigin
|
|
228
|
+
type ITextNode = ITextNodeOrigin
|
|
229
|
+
const IPageManager: typeof IPageManagerOrigin
|
|
230
|
+
type IPageManager = IPageManagerOrigin
|
|
231
|
+
const UniCallbackWrapper: typeof UniCallbackWrapperOrigin
|
|
232
|
+
type UniCallbackWrapper = UniCallbackWrapperOrigin
|
|
233
|
+
const NavigationBarButtonTapEvent: typeof NavigationBarButtonTapEventOrigin
|
|
234
|
+
type NavigationBarButtonTapEvent = NavigationBarButtonTapEventOrigin
|
|
235
|
+
const WebViewServiceMessageEvent: typeof WebViewServiceMessageEventOrigin
|
|
236
|
+
type WebViewServiceMessageEvent = WebViewServiceMessageEventOrigin
|
|
237
|
+
const ViewToTempFilePathOptions: typeof ViewToTempFilePathOptionsOrigin
|
|
238
|
+
type ViewToTempFilePathOptions = ViewToTempFilePathOptionsOrigin
|
|
239
|
+
const NavigationBarSearchInputEvent: typeof NavigationBarSearchInputEventOrigin
|
|
240
|
+
type NavigationBarSearchInputEvent = NavigationBarSearchInputEventOrigin
|
|
241
|
+
type IPage = IPageOrigin
|
|
242
|
+
type INavigationBar = INavigationBarOrigin
|
|
243
|
+
type IDocument = IDocumentOrigin
|
|
244
|
+
type IComment = ICommentOrigin
|
|
245
|
+
const IApp: typeof IAppOrigin
|
|
246
|
+
type IApp = IAppOrigin
|
|
247
|
+
const Event: typeof EventOrigin
|
|
248
|
+
type Event = EventOrigin
|
|
249
|
+
type Element = ElementOrigin
|
|
250
|
+
type INode = INodeOrigin
|
|
251
|
+
const DrawableContext: typeof DrawableContextOrigin
|
|
252
|
+
type DrawableContext = DrawableContextOrigin
|
|
253
|
+
const DOMRect: typeof DOMRectOrigin
|
|
254
|
+
type DOMRect = DOMRectOrigin
|
|
255
|
+
const CustomEventOptions: typeof CustomEventOptionsOrigin
|
|
256
|
+
type CustomEventOptions<T> = CustomEventOptionsOrigin<T>
|
|
257
|
+
const CustomEvent: typeof CustomEventOrigin
|
|
258
|
+
type CustomEvent<T> = CustomEventOrigin<T>
|
|
259
|
+
const CSSStyleDeclaration: typeof CSSStyleDeclarationOrigin
|
|
260
|
+
type CSSStyleDeclaration = CSSStyleDeclarationOrigin
|
|
261
|
+
type AsyncApiResult = AsyncApiResultOrigin
|
|
262
|
+
}
|
package/types/native/index.d.ts
CHANGED
|
@@ -1,58 +1,61 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
export * from './WebViewStyles'
|
|
3
|
+
export * from './WebViewMessageEvent'
|
|
4
|
+
export * from './WebViewLoadingEvent'
|
|
5
|
+
export * from './WebViewLoadedEvent'
|
|
6
|
+
export * from './WebViewErrorEvent'
|
|
7
|
+
export * from './WebViewDownloadEvent'
|
|
8
|
+
export * from './UniWebViewElement'
|
|
9
|
+
export * from './UniVideoElement'
|
|
10
|
+
export * from './UniTextElement'
|
|
11
|
+
export * from './UniTabsElement'
|
|
12
|
+
export * from './UniError'
|
|
13
|
+
export * from './UniElement'
|
|
14
|
+
export * from './UniAppManager'
|
|
15
|
+
export * from './UniAggregateError'
|
|
16
|
+
export * from './UTSAndroidHookProxy'
|
|
17
|
+
export * from './TouchEvent'
|
|
18
|
+
export * from './TextareaLineChangeEvent'
|
|
19
|
+
export * from './TextareaFocusEvent'
|
|
20
|
+
export * from './TextareaBlurEvent'
|
|
21
|
+
export * from './TabTapEvent'
|
|
22
|
+
export * from './SwiperTransitionEvent'
|
|
23
|
+
export * from './SwiperChangeEvent'
|
|
24
|
+
export * from './SwiperAnimationFinishEvent'
|
|
25
|
+
export * from './StopNestedScrollEvent'
|
|
26
|
+
export * from './StartNestedScrollEvent'
|
|
27
|
+
export * from './SourceError'
|
|
28
|
+
export * from './SnapshotOptions'
|
|
29
|
+
export * from './ScrollToUpperEvent'
|
|
30
|
+
export * from './ScrollToLowerEvent'
|
|
31
|
+
export * from './ScrollEvent'
|
|
32
|
+
export * from './RichTextItemClickEvent'
|
|
33
|
+
export * from './ResizeEvent'
|
|
34
|
+
export * from './RefresherEvent'
|
|
35
|
+
export * from './PageScrollEvent'
|
|
36
|
+
export * from './PageEvent'
|
|
37
|
+
export * from './NodeData'
|
|
38
|
+
export * from './NestedPreScrollEvent'
|
|
39
|
+
export * from './MouseEvent'
|
|
40
|
+
export * from './InputKeyboardHeightChangeEvent'
|
|
41
|
+
export * from './InputFocusEvent'
|
|
42
|
+
export * from './InputEvent'
|
|
43
|
+
export * from './InputConfirmEvent'
|
|
44
|
+
export * from './InputBlurEvent'
|
|
45
|
+
export * from './ImageLoadEvent'
|
|
46
|
+
export * from './ImageErrorEvent'
|
|
47
|
+
export * from './IUniError'
|
|
48
|
+
export * from './ITextNode'
|
|
49
|
+
export * from './IPageManager'
|
|
50
|
+
export * from './IPage'
|
|
51
|
+
export * from './INavigationBar'
|
|
52
|
+
export * from './IDocument'
|
|
53
|
+
export * from './IComment'
|
|
54
|
+
export * from './IApp'
|
|
55
|
+
export * from './Event'
|
|
56
|
+
export * from './Element'
|
|
57
|
+
export * from './DrawableContext'
|
|
58
|
+
export * from './DOMRect'
|
|
59
|
+
export * from './CustomEvent'
|
|
60
|
+
export * from './CSSStyleDeclaration'
|
|
61
|
+
export * from './AsyncApiResult'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference path='../native/global.d.ts' />
|
package/types/page.d.ts
CHANGED
|
@@ -237,7 +237,17 @@ interface NavigationBarButtonTapOption {
|
|
|
237
237
|
index: number;
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
|
|
240
|
+
/**
|
|
241
|
+
* Construct a type with a set of properties K of type T
|
|
242
|
+
*/
|
|
243
|
+
type Record<K extends keyof any, T> = {
|
|
244
|
+
[P in K]: T;
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
type NativeMap<K extends string, V> = Map<K, V> & Record<K, V>
|
|
248
|
+
|
|
249
|
+
type OnLoadOptions = NativeMap<string, any>
|
|
250
|
+
|
|
241
251
|
interface OnBackPressOptions {
|
|
242
252
|
/**
|
|
243
253
|
* - backbutton 顶部导航栏左边的返回按钮或 Android 实体返回键
|
|
@@ -406,7 +416,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
406
416
|
* }
|
|
407
417
|
*}
|
|
408
418
|
*/
|
|
409
|
-
onLoad?(query
|
|
419
|
+
onLoad?(query: OnLoadOptions): void;
|
|
410
420
|
/**
|
|
411
421
|
* 生命周期回调 监听页面显示
|
|
412
422
|
*
|
|
@@ -1565,10 +1575,18 @@ interface BasePage {
|
|
|
1565
1575
|
options: Map<string, string | null>
|
|
1566
1576
|
}
|
|
1567
1577
|
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1578
|
+
declare global {
|
|
1579
|
+
/**
|
|
1580
|
+
* `getCurrentPages()` 函数用于获取当前页面栈的实例,以数组形式按栈的顺序给出,数组中的元素为页面实例,第一个元素为首页,最后一个元素为当前页面。
|
|
1581
|
+
* @tutorial https://uniapp.dcloud.net.cn/tutorial/page.html#getcurrentpages
|
|
1582
|
+
*/
|
|
1583
|
+
const getCurrentPages: () => BasePage[]
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
declare module '@vue/runtime-core' {
|
|
1587
|
+
interface ComponentCustomOptions extends PageInstance {
|
|
1588
|
+
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1573
1591
|
|
|
1574
|
-
|
|
1592
|
+
export { }
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
/// <reference path='./lib/route/index.d.ts' />
|
|
1
2
|
/// <reference path='./lib/performance/index.d.ts' />
|
|
2
3
|
/// <reference path='./lib/lifecycle/index.d.ts' />
|
|
3
|
-
/// <reference path='./lib/route/index.d.ts' />
|
|
4
|
-
/// <reference path='./lib/ui/set-navigation-bar-title/index.d.ts' />
|
|
5
4
|
/// <reference path='./lib/ui/tab-bar/index.d.ts' />
|
|
5
|
+
/// <reference path='./lib/ui/set-navigation-bar-title/index.d.ts' />
|
|
6
6
|
/// <reference path='./lib/ui/set-navigation-bar-color/index.d.ts' />
|
|
7
7
|
/// <reference path='./lib/ui/pull-down-refresh/index.d.ts' />
|
|
8
8
|
/// <reference path='./lib/ui/page-scroll-to/index.d.ts' />
|
|
9
|
-
/// <reference path='./lib/ui/get-element-by-id/index.d.ts' />
|
|
10
9
|
/// <reference path='./lib/ui/load-font-face/index.d.ts' />
|
|
10
|
+
/// <reference path='./lib/ui/get-element-by-id/index.d.ts' />
|
|
11
11
|
/// <reference path='./lib/ui/create-selector-query/index.d.ts' />
|
|
12
12
|
/// <reference path='./lib/base/interceptor/index.d.ts' />
|
|
13
13
|
/// <reference path='./lib/base/event/index.d.ts' />
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
1
2
|
import {
|
|
3
|
+
RouteErrorCode as RouteErrorCodeOrigin,
|
|
4
|
+
NavigateBackError as NavigateBackErrorOrigin,
|
|
5
|
+
NavigateToError as NavigateToErrorOrigin,
|
|
6
|
+
RedirectToError as RedirectToErrorOrigin,
|
|
7
|
+
ReLaunchError as ReLaunchErrorOrigin,
|
|
8
|
+
SwitchTabError as SwitchTabErrorOrigin,
|
|
2
9
|
EventChannel as EventChannelOrigin,
|
|
3
10
|
NavigateToSuccess as NavigateToSuccessOrigin,
|
|
4
11
|
NavigateToFail as NavigateToFailOrigin,
|
|
@@ -27,6 +34,12 @@ import {
|
|
|
27
34
|
} from './interface'
|
|
28
35
|
|
|
29
36
|
declare global {
|
|
37
|
+
type RouteErrorCode = RouteErrorCodeOrigin
|
|
38
|
+
type NavigateBackError = NavigateBackErrorOrigin
|
|
39
|
+
type NavigateToError = NavigateToErrorOrigin
|
|
40
|
+
type RedirectToError = RedirectToErrorOrigin
|
|
41
|
+
type ReLaunchError = ReLaunchErrorOrigin
|
|
42
|
+
type SwitchTabError = SwitchTabErrorOrigin
|
|
30
43
|
type EventChannel = EventChannelOrigin
|
|
31
44
|
type NavigateToSuccess = NavigateToSuccessOrigin
|
|
32
45
|
type NavigateToFail = NavigateToFailOrigin
|
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
import { AsyncApiSuccessResult } from '../interface'
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* 路由错误码
|
|
5
|
+
* - 4: 框架内部异常
|
|
6
|
+
*/
|
|
7
|
+
export type RouteErrorCode = 4
|
|
8
|
+
|
|
9
|
+
export interface NavigateBackError extends IUniError {
|
|
10
|
+
errCode: RouteErrorCode
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface NavigateToError extends IUniError {
|
|
14
|
+
errCode: RouteErrorCode
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface RedirectToError extends IUniError {
|
|
18
|
+
errCode: RouteErrorCode
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface ReLaunchError extends IUniError {
|
|
22
|
+
errCode: RouteErrorCode
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface SwitchTabError extends IUniError {
|
|
26
|
+
errCode: RouteErrorCode
|
|
27
|
+
}
|
|
28
|
+
|
|
3
29
|
/**
|
|
4
30
|
*
|
|
5
31
|
* @tutorial http://uniapp.dcloud.io/api/router.html#event-channel
|
|
@@ -7,7 +33,7 @@ import { AsyncApiSuccessResult } from '../interface'
|
|
|
7
33
|
export type EventChannel = {}
|
|
8
34
|
export type NavigateToSuccess = AsyncApiSuccessResult
|
|
9
35
|
type NavigateToSuccessCallback = (result: NavigateToSuccess) => void
|
|
10
|
-
export type NavigateToFail =
|
|
36
|
+
export type NavigateToFail = NavigateToError
|
|
11
37
|
|
|
12
38
|
type NavigateToFailCallback = (result: NavigateToFail) => void
|
|
13
39
|
export type NavigateToComplete = AsyncApiResult
|
|
@@ -475,7 +501,7 @@ export type NavigateToOptions = {
|
|
|
475
501
|
}
|
|
476
502
|
export type RedirectToSuccess = AsyncApiSuccessResult
|
|
477
503
|
type RedirectToSuccessCallback = (result: AsyncApiSuccessResult) => void
|
|
478
|
-
export type RedirectToFail =
|
|
504
|
+
export type RedirectToFail = RedirectToError
|
|
479
505
|
type RedirectToFailCallback = (result: RedirectToFail) => void
|
|
480
506
|
export type RedirectToComplete = AsyncApiResult
|
|
481
507
|
type RedirectToCompleteCallback = (result: RedirectToComplete) => void
|
|
@@ -739,7 +765,7 @@ export type RedirectToOptions = {
|
|
|
739
765
|
}
|
|
740
766
|
export type ReLaunchSuccess = AsyncApiSuccessResult
|
|
741
767
|
type ReLaunchSuccessCallback = (result: ReLaunchSuccess) => void
|
|
742
|
-
export type ReLaunchFail =
|
|
768
|
+
export type ReLaunchFail = ReLaunchError
|
|
743
769
|
type ReLaunchFailCallback = (result: ReLaunchFail) => void
|
|
744
770
|
export type ReLaunchComplete = AsyncApiResult
|
|
745
771
|
type ReLaunchCompleteCallback = (result: ReLaunchComplete) => void
|
|
@@ -1003,7 +1029,7 @@ export type ReLaunchOptions = {
|
|
|
1003
1029
|
}
|
|
1004
1030
|
export type SwitchTabSuccess = AsyncApiSuccessResult
|
|
1005
1031
|
export type SwitchTabSuccessCallback = (result: SwitchTabSuccess) => void
|
|
1006
|
-
export type SwitchTabFail =
|
|
1032
|
+
export type SwitchTabFail = SwitchTabError
|
|
1007
1033
|
export type SwitchTabFailCallback = (result: SwitchTabFail) => void
|
|
1008
1034
|
export type SwitchTabComplete = AsyncApiResult
|
|
1009
1035
|
export type SwitchTabCompleteCallback = (result: SwitchTabComplete) => void
|
|
@@ -1267,7 +1293,7 @@ export type SwitchTabOptions = {
|
|
|
1267
1293
|
}
|
|
1268
1294
|
export type NavigateBackSuccess = AsyncApiSuccessResult
|
|
1269
1295
|
type NavigateBackSuccessCallback = (result: NavigateBackSuccess) => void
|
|
1270
|
-
export type NavigateBackFail =
|
|
1296
|
+
export type NavigateBackFail = NavigateBackError
|
|
1271
1297
|
type NavigateBackFailCallback = (result: NavigateBackFail) => void
|
|
1272
1298
|
export type NavigateBackComplete = AsyncApiResult
|
|
1273
1299
|
type NavigateBackCompleteCallback = (result: NavigateBackComplete) => void
|
|
@@ -6,7 +6,7 @@ export interface Uni {
|
|
|
6
6
|
* 如果需要获取指定的节点类型,需要使用 as 进行类型转换。\
|
|
7
7
|
* ID 区分大小写,且应该是唯一的。如果存在多个匹配的元素,则返回第一个匹配的元素。
|
|
8
8
|
*
|
|
9
|
-
* @tutorial https://uniapp.dcloud.net.cn/uni-app-x/api/get-element
|
|
9
|
+
* @tutorial https://uniapp.dcloud.net.cn/uni-app-x/api/get-element.html
|
|
10
10
|
* @uniPlatform {
|
|
11
11
|
* "app": {
|
|
12
12
|
* "android": {
|
|
@@ -11,7 +11,7 @@ export interface PageScrollToError extends IUniError {
|
|
|
11
11
|
|
|
12
12
|
export type PageScrollToSuccess = AsyncApiSuccessResult
|
|
13
13
|
export type PageScrollToSuccessCallback = (result: PageScrollToSuccess) => void
|
|
14
|
-
export type PageScrollToFail =
|
|
14
|
+
export type PageScrollToFail = PageScrollToError
|
|
15
15
|
export type PageScrollToFailCallback = (result: PageScrollToFail) => void
|
|
16
16
|
export type PageScrollToComplete = AsyncApiResult
|
|
17
17
|
export type PageScrollToCompleteCallback = (
|