@dcloudio/uni-app-x 0.7.59 → 0.7.60
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/app.d.ts +16 -8
- package/types/native/IUniElement.d.ts +0 -2
- package/types/native/UniFormControl.d.ts +1 -1
- package/types/native/UniSwiperAnimationFinishEvent.d.ts +1 -0
- package/types/native/UniSwiperChangeEvent.d.ts +1 -0
- package/types/native/WebViewStyles.d.ts +1 -1
- package/types/native/global.d.ts +2 -0
- package/types/page.d.ts +134 -22
- package/types/uni/uni-camera-global.d.ts +4 -0
- package/types/uni/uni-camera.d.ts +10 -9
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +3 -2
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +3 -2
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +9 -6
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +3 -2
- package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +10 -8
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +3 -2
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +7 -6
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +5 -3
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +8 -8
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +4 -1
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +26 -11
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +11 -10
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +8 -8
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +8 -6
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +7 -7
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +246 -236
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +3 -2
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +141 -243
- package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +80 -696
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +10 -8
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +387 -95
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +401 -344
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +52 -52
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +11 -11
- package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +24 -24
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +39 -25
- package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +20 -20
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +18 -18
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +49 -49
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +26 -26
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +14 -14
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +16 -2
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +8 -1
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +153 -6
- package/types/uni-cloud/interface.d.ts +13 -9
- package/types/uni/uts-plugin-api/.temp/uni-actionSheet/utssdk/interface.uts +0 -554
- package/types/uni/uts-plugin-api/.temp/uni-addPhoneContact/utssdk/interface.uts +0 -224
- package/types/uni/uts-plugin-api/.temp/uni-arrayBufferToBase64/utssdk/interface.uts +0 -77
- package/types/uni/uts-plugin-api/.temp/uni-authentication/utssdk/interface.uts +0 -365
- package/types/uni/uts-plugin-api/.temp/uni-base64ToArrayBuffer/utssdk/interface.uts +0 -77
- package/types/uni/uts-plugin-api/.temp/uni-canvas/utssdk/interface.uts +0 -972
- package/types/uni/uts-plugin-api/.temp/uni-chooseLocation/utssdk/interface.uts +0 -410
- package/types/uni/uts-plugin-api/.temp/uni-chooseMedia/utssdk/interface.uts +0 -459
- package/types/uni/uts-plugin-api/.temp/uni-clipboard/utssdk/interface.uts +0 -203
- package/types/uni/uts-plugin-api/.temp/uni-createInnerAudioContext/utssdk/interface.uts +0 -2613
- package/types/uni/uts-plugin-api/.temp/uni-createIntersectionObserver/utssdk/interface.uts +0 -152
- package/types/uni/uts-plugin-api/.temp/uni-createRequestPermissionListener/utssdk/interface.uts +0 -61
- package/types/uni/uts-plugin-api/.temp/uni-createSelectorQuery/utssdk/interface.uts +0 -548
- package/types/uni/uts-plugin-api/.temp/uni-createWebviewContext/utssdk/interface.uts +0 -137
- package/types/uni/uts-plugin-api/.temp/uni-dialogPage/utssdk/interface.uts +0 -1380
- package/types/uni/uts-plugin-api/.temp/uni-document/utssdk/interface.uts +0 -76
- package/types/uni/uts-plugin-api/.temp/uni-event/utssdk/interface.uts +0 -338
- package/types/uni/uts-plugin-api/.temp/uni-exit/utssdk/interface.uts +0 -102
- package/types/uni/uts-plugin-api/.temp/uni-file/utssdk/interface.uts +0 -384
- package/types/uni/uts-plugin-api/.temp/uni-fileSystemManager/utssdk/interface.uts +0 -5316
- package/types/uni/uts-plugin-api/.temp/uni-getAccessibilityInfo/utssdk/interface.uts +0 -35
- package/types/uni/uts-plugin-api/.temp/uni-getAppAuthorizeSetting/utssdk/interface.uts +0 -616
- package/types/uni/uts-plugin-api/.temp/uni-getAppBaseInfo/utssdk/interface.uts +0 -2157
- package/types/uni/uts-plugin-api/.temp/uni-getBackgroundAudioManager/utssdk/interface.uts +0 -895
- package/types/uni/uts-plugin-api/.temp/uni-getDeviceInfo/utssdk/interface.uts +0 -1755
- package/types/uni/uts-plugin-api/.temp/uni-getElementById/utssdk/interface.uts +0 -82
- package/types/uni/uts-plugin-api/.temp/uni-getEnterOptionsSync/utssdk/interface.uts +0 -295
- package/types/uni/uts-plugin-api/.temp/uni-getLaunchOptionsSync/utssdk/interface.uts +0 -299
- package/types/uni/uts-plugin-api/.temp/uni-getLocation/utssdk/interface.uts +0 -1764
- package/types/uni/uts-plugin-api/.temp/uni-getLocation-system/utssdk/interface.uts +0 -1
- package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent/utssdk/interface.uts +0 -1
- package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent-uni1/utssdk/interface.uts +0 -736
- package/types/uni/uts-plugin-api/.temp/uni-getNetworkType/utssdk/interface.uts +0 -274
- package/types/uni/uts-plugin-api/.temp/uni-getPerformance/utssdk/interface.uts +0 -198
- package/types/uni/uts-plugin-api/.temp/uni-getProvider/utssdk/interface.uts +0 -634
- package/types/uni/uts-plugin-api/.temp/uni-getRecorderManager/utssdk/interface.uts +0 -980
- package/types/uni/uts-plugin-api/.temp/uni-getSystemInfo/utssdk/interface.uts +0 -5550
- package/types/uni/uts-plugin-api/.temp/uni-getSystemSetting/utssdk/interface.uts +0 -501
- package/types/uni/uts-plugin-api/.temp/uni-installApk/utssdk/interface.uts +0 -83
- package/types/uni/uts-plugin-api/.temp/uni-interceptor/utssdk/interface.uts +0 -169
- package/types/uni/uts-plugin-api/.temp/uni-keyboard/utssdk/interface.uts +0 -102
- package/types/uni/uts-plugin-api/.temp/uni-loadFontFace/utssdk/interface.uts +0 -580
- package/types/uni/uts-plugin-api/.temp/uni-makePhoneCall/utssdk/interface.uts +0 -100
- package/types/uni/uts-plugin-api/.temp/uni-media/utssdk/interface.uts +0 -2980
- package/types/uni/uts-plugin-api/.temp/uni-modal/utssdk/interface.uts +0 -190
- package/types/uni/uts-plugin-api/.temp/uni-navigationBar/utssdk/interface.uts +0 -1002
- package/types/uni/uts-plugin-api/.temp/uni-network/utssdk/interface.uts +0 -3620
- package/types/uni/uts-plugin-api/.temp/uni-oauth/utssdk/interface.uts +0 -1592
- package/types/uni/uts-plugin-api/.temp/uni-oauth-huawei/utssdk/interface.uts +0 -1
- package/types/uni/uts-plugin-api/.temp/uni-openAppAuthorizeSetting/utssdk/interface.uts +0 -254
- package/types/uni/uts-plugin-api/.temp/uni-openDocument/utssdk/interface.uts +0 -112
- package/types/uni/uts-plugin-api/.temp/uni-pageScrollTo/utssdk/interface.uts +0 -153
- package/types/uni/uts-plugin-api/.temp/uni-payment/utssdk/interface.uts +0 -833
- package/types/uni/uts-plugin-api/.temp/uni-payment-alipay/utssdk/interface.uts +0 -1
- package/types/uni/uts-plugin-api/.temp/uni-payment-huawei/utssdk/interface.uts +0 -1
- package/types/uni/uts-plugin-api/.temp/uni-payment-wxpay/utssdk/interface.uts +0 -3
- package/types/uni/uts-plugin-api/.temp/uni-previewImage/utssdk/interface.uts +0 -518
- package/types/uni/uts-plugin-api/.temp/uni-privacy/utssdk/interface.uts +0 -560
- package/types/uni/uts-plugin-api/.temp/uni-prompt/utssdk/interface.uts +0 -2607
- package/types/uni/uts-plugin-api/.temp/uni-pullDownRefresh/utssdk/interface.uts +0 -189
- package/types/uni/uts-plugin-api/.temp/uni-requestMerchantTransfer/utssdk/interface.uts +0 -710
- package/types/uni/uts-plugin-api/.temp/uni-route/utssdk/interface.uts +0 -2695
- package/types/uni/uts-plugin-api/.temp/uni-rpx2px/utssdk/interface.uts +0 -80
- package/types/uni/uts-plugin-api/.temp/uni-scanCode/utssdk/interface.uts +0 -130
- package/types/uni/uts-plugin-api/.temp/uni-shareWithSystem/utssdk/interface.uts +0 -719
- package/types/uni/uts-plugin-api/.temp/uni-sse/utssdk/interface.uts +0 -277
- package/types/uni/uts-plugin-api/.temp/uni-storage/utssdk/interface.uts +0 -1020
- package/types/uni/uts-plugin-api/.temp/uni-tabBar/utssdk/interface.uts +0 -1148
- package/types/uni/uts-plugin-api/.temp/uni-theme/utssdk/interface.uts +0 -1059
- package/types/uni/uts-plugin-api/.temp/uni-virtualPayment/utssdk/interface.uts +0 -1660
- package/types/uni/uts-plugin-api/.temp/uni-websocket/utssdk/interface.uts +0 -1941
- package/types/uni/uts-plugin-biz/.temp/uni-ad/utssdk/interface.uts +0 -726
- package/types/uni/uts-plugin-biz/.temp/uni-crash/utssdk/interface.uts +0 -89
- package/types/uni/uts-plugin-biz/.temp/uni-facialRecognitionVerify/utssdk/interface.uts +0 -212
- package/types/uni/uts-plugin-biz/.temp/uni-map-tencent/utssdk/interface.uts +0 -2359
- package/types/uni/uts-plugin-biz/.temp/uni-push/utssdk/interface.uts +0 -960
- package/types/uni/uts-plugin-biz/.temp/uni-secure-network/utssdk/interface.uts +0 -204
- package/types/uni/uts-plugin-biz/.temp/uni-verify/utssdk/interface.uts +0 -730
- package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +0 -221
- package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +0 -935
package/package.json
CHANGED
package/types/app.d.ts
CHANGED
|
@@ -402,8 +402,8 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
|
|
|
402
402
|
* 1. 如果开发者没有添加 `onPageNotFound` 监听,当跳转页面不存在时,将推入微信客户端原生的页面不存在提示页面。
|
|
403
403
|
* 2. 如果 `onPageNotFound` 回调中又重定向到另一个不存在的页面,将推入微信客户端原生的页面不存在提示页面,并且不再回调 `onPageNotFound`。
|
|
404
404
|
*
|
|
405
|
-
* @tutorial https://
|
|
406
|
-
* @
|
|
405
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
|
|
406
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
|
|
407
407
|
* @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
|
|
408
408
|
* @uniPlatform {
|
|
409
409
|
* "app": {
|
|
@@ -472,7 +472,8 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
|
|
|
472
472
|
*
|
|
473
473
|
* nvue 页面使用 `uni.postMessage` 发送消息时触发
|
|
474
474
|
*
|
|
475
|
-
* @tutorial https://
|
|
475
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
|
|
476
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
|
|
476
477
|
* @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
|
|
477
478
|
* @internal
|
|
478
479
|
* @uniPlatform {
|
|
@@ -623,7 +624,7 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
|
|
|
623
624
|
*/
|
|
624
625
|
onExit?(): void;
|
|
625
626
|
/**
|
|
626
|
-
* 最后一个页面按下Android back键,常用于自定义退出。
|
|
627
|
+
* 最后一个页面按下Android back键,常用于自定义退出。
|
|
627
628
|
*
|
|
628
629
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
|
|
629
630
|
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
|
|
@@ -639,7 +640,12 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
|
|
|
639
640
|
* "osVer": "x",
|
|
640
641
|
* "uniVer": "x",
|
|
641
642
|
* "unixVer": "x"
|
|
642
|
-
* }
|
|
643
|
+
* },
|
|
644
|
+
* "harmony": {
|
|
645
|
+
* "osVer": "5.0.0",
|
|
646
|
+
* "uniVer": "x",
|
|
647
|
+
* "unixVer": "4.71"
|
|
648
|
+
* }
|
|
643
649
|
* },
|
|
644
650
|
* "mp": {
|
|
645
651
|
* "weixin": {
|
|
@@ -1067,7 +1073,9 @@ declare global {
|
|
|
1067
1073
|
export interface AppCreateVueAppComponentDefault {}
|
|
1068
1074
|
/**
|
|
1069
1075
|
* `getApp()` 函数用于获取当前应用实例,可通过应用实例调用 App.uvue methods 中定义的方法, [详见](#appmethods)。
|
|
1070
|
-
* @tutorial https://
|
|
1076
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
|
|
1077
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
|
|
1078
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/tutorial/page.html#getapp
|
|
1071
1079
|
* @uniPlatform {
|
|
1072
1080
|
* "app": {
|
|
1073
1081
|
* "android": {
|
|
@@ -1114,9 +1122,9 @@ declare global {
|
|
|
1114
1122
|
/**
|
|
1115
1123
|
* 首次启动时的Scheme。返回值与App.onLaunch的回调参数一致
|
|
1116
1124
|
*
|
|
1117
|
-
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/getLaunchOptionsSync.html
|
|
1118
|
-
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
|
|
1119
1125
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
|
|
1126
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
|
|
1127
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/getLaunchOptionsSync.html
|
|
1120
1128
|
* @uniPlatform {
|
|
1121
1129
|
* "app": {
|
|
1122
1130
|
* "android": {
|
|
@@ -1058,7 +1058,6 @@ export interface UniElement {
|
|
|
1058
1058
|
* 设置指定元素上的某个属性值。功能等同setAttribute value支持任意类型
|
|
1059
1059
|
* @param {string} key 属性名称
|
|
1060
1060
|
* @param {string} value 属性值域
|
|
1061
|
-
* @internal
|
|
1062
1061
|
* @uniPlatform {
|
|
1063
1062
|
* "app": {
|
|
1064
1063
|
* "android": {
|
|
@@ -1123,7 +1122,6 @@ export interface UniElement {
|
|
|
1123
1122
|
/**
|
|
1124
1123
|
* 返回元素上一个指定的属性值。如果指定的属性不存在,则返回 null
|
|
1125
1124
|
* @param {string} key 属性名称
|
|
1126
|
-
* @internal
|
|
1127
1125
|
* @uniPlatform {
|
|
1128
1126
|
* "app": {
|
|
1129
1127
|
* "android": {
|
package/types/native/global.d.ts
CHANGED
|
@@ -144,6 +144,7 @@ import {
|
|
|
144
144
|
ImageErrorEventDetail as ImageErrorEventDetailOrigin,
|
|
145
145
|
ImageErrorEvent as ImageErrorEventOrigin,
|
|
146
146
|
UniFormControlElement as UniFormControlElementOrigin,
|
|
147
|
+
UniFormControl as UniFormControlOrigin,
|
|
147
148
|
UniEvent as UniEventOrigin,
|
|
148
149
|
UniKeyEvent as UniKeyEventOrigin,
|
|
149
150
|
Event as EventOrigin,
|
|
@@ -524,6 +525,7 @@ declare global {
|
|
|
524
525
|
type ImageErrorEvent = ImageErrorEventOrigin
|
|
525
526
|
const UniFormControlElement: typeof UniFormControlElementOrigin
|
|
526
527
|
type UniFormControlElement<T> = UniFormControlElementOrigin<T>
|
|
528
|
+
type UniFormControl<T> = UniFormControlOrigin<T>
|
|
527
529
|
const UniEvent: typeof UniEventOrigin
|
|
528
530
|
type UniEvent = UniEventOrigin
|
|
529
531
|
const UniKeyEvent: typeof UniKeyEventOrigin
|
package/types/page.d.ts
CHANGED
|
@@ -239,7 +239,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
239
239
|
* 页面加载时触发。一个页面只会调用一次,可以在 onLoad 的参数中获取打开当前页面路径中的参数。
|
|
240
240
|
* @param query 打开当前页面路径中的参数
|
|
241
241
|
*
|
|
242
|
-
* @tutorial [https://
|
|
242
|
+
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
243
243
|
* @uniPlatform {
|
|
244
244
|
* "app": {
|
|
245
245
|
* "android": {
|
|
@@ -251,6 +251,11 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
251
251
|
* "osVer": "10.0",
|
|
252
252
|
* "uniVer": "√",
|
|
253
253
|
* "unixVer": "4.11"
|
|
254
|
+
* },
|
|
255
|
+
* "harmony": {
|
|
256
|
+
* "osVer": "3.0",
|
|
257
|
+
* "uniVer": "4.23",
|
|
258
|
+
* "unixVer": "4.61"
|
|
254
259
|
* }
|
|
255
260
|
* },
|
|
256
261
|
* "mp": {
|
|
@@ -307,7 +312,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
307
312
|
*
|
|
308
313
|
* 页面显示/切入前台时触发。
|
|
309
314
|
*
|
|
310
|
-
* @tutorial [https://
|
|
315
|
+
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
311
316
|
* @uniPlatform {
|
|
312
317
|
* "app": {
|
|
313
318
|
* "android": {
|
|
@@ -319,6 +324,11 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
319
324
|
* "osVer": "10.0",
|
|
320
325
|
* "uniVer": "√",
|
|
321
326
|
* "unixVer": "4.11"
|
|
327
|
+
* },
|
|
328
|
+
* "harmony": {
|
|
329
|
+
* "osVer": "3.0",
|
|
330
|
+
* "uniVer": "4.23",
|
|
331
|
+
* "unixVer": "4.61"
|
|
322
332
|
* }
|
|
323
333
|
* },
|
|
324
334
|
* "mp": {
|
|
@@ -375,7 +385,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
375
385
|
*
|
|
376
386
|
* 页面初次渲染完成时触发。一个页面只会调用一次,代表页面已经准备妥当,可以和视图层进行交互。
|
|
377
387
|
*
|
|
378
|
-
* @tutorial [https://
|
|
388
|
+
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
379
389
|
* @uniPlatform {
|
|
380
390
|
* "app": {
|
|
381
391
|
* "android": {
|
|
@@ -387,6 +397,11 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
387
397
|
* "osVer": "10.0",
|
|
388
398
|
* "uniVer": "√",
|
|
389
399
|
* "unixVer": "4.11"
|
|
400
|
+
* },
|
|
401
|
+
* "harmony": {
|
|
402
|
+
* "osVer": "3.0",
|
|
403
|
+
* "uniVer": "4.23",
|
|
404
|
+
* "unixVer": "4.61"
|
|
390
405
|
* }
|
|
391
406
|
* },
|
|
392
407
|
* "mp": {
|
|
@@ -443,7 +458,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
443
458
|
*
|
|
444
459
|
* 页面隐藏/切入后台时触发。 如 `navigateTo` 或底部 `tab` 切换到其他页面,应用切入后台等。
|
|
445
460
|
*
|
|
446
|
-
* @tutorial [https://
|
|
461
|
+
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
447
462
|
* @uniPlatform {
|
|
448
463
|
* "app": {
|
|
449
464
|
* "android": {
|
|
@@ -455,6 +470,11 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
455
470
|
* "osVer": "10.0",
|
|
456
471
|
* "uniVer": "√",
|
|
457
472
|
* "unixVer": "4.11"
|
|
473
|
+
* },
|
|
474
|
+
* "harmony": {
|
|
475
|
+
* "osVer": "3.0",
|
|
476
|
+
* "uniVer": "4.23",
|
|
477
|
+
* "unixVer": "4.61"
|
|
458
478
|
* }
|
|
459
479
|
* },
|
|
460
480
|
* "mp": {
|
|
@@ -511,7 +531,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
511
531
|
*
|
|
512
532
|
* 页面卸载时触发。如 `redirectTo` 或 `navigateBack` 到其他页面时。
|
|
513
533
|
*
|
|
514
|
-
* @tutorial [https://
|
|
534
|
+
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
515
535
|
* @uniPlatform {
|
|
516
536
|
* "app": {
|
|
517
537
|
* "android": {
|
|
@@ -523,6 +543,11 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
523
543
|
* "osVer": "10.0",
|
|
524
544
|
* "uniVer": "√",
|
|
525
545
|
* "unixVer": "4.11"
|
|
546
|
+
* },
|
|
547
|
+
* "harmony": {
|
|
548
|
+
* "osVer": "3.0",
|
|
549
|
+
* "uniVer": "4.23",
|
|
550
|
+
* "unixVer": "4.61"
|
|
526
551
|
* }
|
|
527
552
|
* },
|
|
528
553
|
* "mp": {
|
|
@@ -580,7 +605,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
580
605
|
* - 可以通过 `uni.startPullDownRefresh` 触发下拉刷新,调用后触发下拉刷新动画,效果与用户手动下拉刷新一致。
|
|
581
606
|
* - 当处理完数据刷新后,`uni.stopPullDownRefresh` 可以停止当前页面的下拉刷新。
|
|
582
607
|
*
|
|
583
|
-
* @tutorial [https://
|
|
608
|
+
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
584
609
|
* @uniPlatform {
|
|
585
610
|
* "app": {
|
|
586
611
|
* "android": {
|
|
@@ -592,6 +617,11 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
592
617
|
* "osVer": "10.0",
|
|
593
618
|
* "uniVer": "√",
|
|
594
619
|
* "unixVer": "4.11"
|
|
620
|
+
* },
|
|
621
|
+
* "harmony": {
|
|
622
|
+
* "osVer": "3.0",
|
|
623
|
+
* "uniVer": "4.23",
|
|
624
|
+
* "unixVer": "4.61"
|
|
595
625
|
* }
|
|
596
626
|
* },
|
|
597
627
|
* "mp": {
|
|
@@ -648,7 +678,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
648
678
|
* - 可以在 `pages.json` 的页面配置中设置触发距离 `onReachBottomDistance` 。
|
|
649
679
|
* - 在触发距离内滑动期间,本事件只会被触发一次。
|
|
650
680
|
*
|
|
651
|
-
* @tutorial [https://
|
|
681
|
+
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
652
682
|
* @uniPlatform {
|
|
653
683
|
* "app": {
|
|
654
684
|
* "android": {
|
|
@@ -660,6 +690,11 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
660
690
|
* "osVer": "10.0",
|
|
661
691
|
* "uniVer": "√",
|
|
662
692
|
* "unixVer": "4.11"
|
|
693
|
+
* },
|
|
694
|
+
* "harmony": {
|
|
695
|
+
* "osVer": "3.0",
|
|
696
|
+
* "uniVer": "4.23",
|
|
697
|
+
* "unixVer": "4.61"
|
|
663
698
|
* }
|
|
664
699
|
* },
|
|
665
700
|
* "mp": {
|
|
@@ -717,7 +752,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
717
752
|
* 监听用户滑动页面事件。
|
|
718
753
|
* @param options 页面滚动参数
|
|
719
754
|
*
|
|
720
|
-
* @tutorial [https://
|
|
755
|
+
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
721
756
|
* @uniPlatform {
|
|
722
757
|
* "app": {
|
|
723
758
|
* "android": {
|
|
@@ -729,6 +764,11 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
729
764
|
* "osVer": "10.0",
|
|
730
765
|
* "uniVer": "√",
|
|
731
766
|
* "unixVer": "4.13"
|
|
767
|
+
* },
|
|
768
|
+
* "harmony": {
|
|
769
|
+
* "osVer": "3.0",
|
|
770
|
+
* "uniVer": "4.23",
|
|
771
|
+
* "unixVer": "4.61"
|
|
732
772
|
* }
|
|
733
773
|
* },
|
|
734
774
|
* "mp": {
|
|
@@ -784,7 +824,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
784
824
|
* 页面尺寸改变时触发
|
|
785
825
|
* @param options 页面滚动参数
|
|
786
826
|
*
|
|
787
|
-
* @tutorial [https://
|
|
827
|
+
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
788
828
|
* @uniPlatform {
|
|
789
829
|
* "app": {
|
|
790
830
|
* "android": {
|
|
@@ -796,6 +836,11 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
796
836
|
* "osVer": "10.0",
|
|
797
837
|
* "uniVer": "√",
|
|
798
838
|
* "unixVer": "4.11"
|
|
839
|
+
* },
|
|
840
|
+
* "harmony": {
|
|
841
|
+
* "osVer": "3.0",
|
|
842
|
+
* "uniVer": "4.23",
|
|
843
|
+
* "unixVer": "4.61"
|
|
799
844
|
* }
|
|
800
845
|
* },
|
|
801
846
|
* "mp": {
|
|
@@ -852,7 +897,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
852
897
|
* @param options tab 点击参数
|
|
853
898
|
* @return 返回 `true` 时阻止页面返回
|
|
854
899
|
*
|
|
855
|
-
* @tutorial [https://
|
|
900
|
+
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
856
901
|
* @uniPlatform {
|
|
857
902
|
* "app": {
|
|
858
903
|
* "android": {
|
|
@@ -864,6 +909,11 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
864
909
|
* "osVer": "10.0",
|
|
865
910
|
* "uniVer": "√",
|
|
866
911
|
* "unixVer": "4.11"
|
|
912
|
+
* },
|
|
913
|
+
* "harmony": {
|
|
914
|
+
* "osVer": "3.0",
|
|
915
|
+
* "uniVer": "4.23",
|
|
916
|
+
* "unixVer": "4.61"
|
|
867
917
|
* }
|
|
868
918
|
* },
|
|
869
919
|
* "mp": {
|
|
@@ -921,7 +971,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
921
971
|
* 页面初始化时触发。一个页面只会调用一次,可以在 onInit 的参数中获取打开当前页面路径中的参数。
|
|
922
972
|
* @param query 打开当前页面路径中的参数
|
|
923
973
|
*
|
|
924
|
-
* @tutorial [https://
|
|
974
|
+
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
925
975
|
* @uniPlatform {
|
|
926
976
|
* "app": {
|
|
927
977
|
* "android": {
|
|
@@ -933,6 +983,11 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
933
983
|
* "osVer": "x",
|
|
934
984
|
* "uniVer": "x",
|
|
935
985
|
* "unixVer": "x"
|
|
986
|
+
* },
|
|
987
|
+
* "harmony": {
|
|
988
|
+
* "osVer": "3.0",
|
|
989
|
+
* "uniVer": "4.23",
|
|
990
|
+
* "unixVer": "4.61"
|
|
936
991
|
* }
|
|
937
992
|
* },
|
|
938
993
|
* "mp": {
|
|
@@ -991,7 +1046,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
991
1046
|
* @param options 分享发起来源参数
|
|
992
1047
|
* @return 转发内容
|
|
993
1048
|
*
|
|
994
|
-
* @tutorial [https://
|
|
1049
|
+
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
995
1050
|
* @uniPlatform {
|
|
996
1051
|
* "app": {
|
|
997
1052
|
* "android": {
|
|
@@ -1003,6 +1058,11 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1003
1058
|
* "osVer": "x",
|
|
1004
1059
|
* "uniVer": "x",
|
|
1005
1060
|
* "unixVer": "x"
|
|
1061
|
+
* },
|
|
1062
|
+
* "harmony": {
|
|
1063
|
+
* "osVer": "3.0",
|
|
1064
|
+
* "uniVer": "4.23",
|
|
1065
|
+
* "unixVer": "4.61"
|
|
1006
1066
|
* }
|
|
1007
1067
|
* },
|
|
1008
1068
|
* "mp": {
|
|
@@ -1059,7 +1119,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1059
1119
|
*
|
|
1060
1120
|
* 监听右上角菜单“分享到朋友圈”按钮的行为,并自定义发享内容。
|
|
1061
1121
|
*
|
|
1062
|
-
* @tutorial [https://
|
|
1122
|
+
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
1063
1123
|
* @uniPlatform {
|
|
1064
1124
|
* "app": {
|
|
1065
1125
|
* "android": {
|
|
@@ -1071,6 +1131,11 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1071
1131
|
* "osVer": "x",
|
|
1072
1132
|
* "uniVer": "x",
|
|
1073
1133
|
* "unixVer": "x"
|
|
1134
|
+
* },
|
|
1135
|
+
* "harmony": {
|
|
1136
|
+
* "osVer": "3.0",
|
|
1137
|
+
* "uniVer": "4.23",
|
|
1138
|
+
* "unixVer": "4.61"
|
|
1074
1139
|
* }
|
|
1075
1140
|
* },
|
|
1076
1141
|
* "mp": {
|
|
@@ -1127,7 +1192,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1127
1192
|
*
|
|
1128
1193
|
* 监听用户点击右上角菜单“收藏”按钮的行为,并自定义收藏内容。
|
|
1129
1194
|
*
|
|
1130
|
-
* @tutorial [https://
|
|
1195
|
+
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
1131
1196
|
* @uniPlatform {
|
|
1132
1197
|
* "app": {
|
|
1133
1198
|
* "android": {
|
|
@@ -1139,6 +1204,11 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1139
1204
|
* "osVer": "x",
|
|
1140
1205
|
* "uniVer": "x",
|
|
1141
1206
|
* "unixVer": "x"
|
|
1207
|
+
* },
|
|
1208
|
+
* "harmony": {
|
|
1209
|
+
* "osVer": "3.0",
|
|
1210
|
+
* "uniVer": "4.23",
|
|
1211
|
+
* "unixVer": "4.61"
|
|
1142
1212
|
* }
|
|
1143
1213
|
* },
|
|
1144
1214
|
* "mp": {
|
|
@@ -1194,7 +1264,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1194
1264
|
* 当前是 tab 页时,点击 tab 时触发
|
|
1195
1265
|
* @param options tab 点击参数
|
|
1196
1266
|
*
|
|
1197
|
-
* @tutorial [https://
|
|
1267
|
+
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
1198
1268
|
* @uniPlatform {
|
|
1199
1269
|
* "app": {
|
|
1200
1270
|
* "android": {
|
|
@@ -1206,6 +1276,11 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1206
1276
|
* "osVer": "10.0",
|
|
1207
1277
|
* "uniVer": "√",
|
|
1208
1278
|
* "unixVer": "x"
|
|
1279
|
+
* },
|
|
1280
|
+
* "harmony": {
|
|
1281
|
+
* "osVer": "3.0",
|
|
1282
|
+
* "uniVer": "4.23",
|
|
1283
|
+
* "unixVer": "4.61"
|
|
1209
1284
|
* }
|
|
1210
1285
|
* },
|
|
1211
1286
|
* "mp": {
|
|
@@ -1261,7 +1336,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1261
1336
|
* 监听原生标题栏按钮点击事件
|
|
1262
1337
|
* @param options tab 点击参数
|
|
1263
1338
|
*
|
|
1264
|
-
* @tutorial [https://
|
|
1339
|
+
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
1265
1340
|
* @uniPlatform {
|
|
1266
1341
|
* "app": {
|
|
1267
1342
|
* "android": {
|
|
@@ -1273,6 +1348,11 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1273
1348
|
* "osVer": "10.0",
|
|
1274
1349
|
* "uniVer": "√",
|
|
1275
1350
|
* "unixVer": "x"
|
|
1351
|
+
* },
|
|
1352
|
+
* "harmony": {
|
|
1353
|
+
* "osVer": "3.0",
|
|
1354
|
+
* "uniVer": "4.23",
|
|
1355
|
+
* "unixVer": "4.61"
|
|
1276
1356
|
* }
|
|
1277
1357
|
* },
|
|
1278
1358
|
* "mp": {
|
|
@@ -1327,7 +1407,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1327
1407
|
/**
|
|
1328
1408
|
* 监听原生标题栏搜索输入框输入内容变化事件
|
|
1329
1409
|
*
|
|
1330
|
-
* @tutorial [https://
|
|
1410
|
+
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
1331
1411
|
* @uniPlatform {
|
|
1332
1412
|
* "app": {
|
|
1333
1413
|
* "android": {
|
|
@@ -1339,6 +1419,11 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1339
1419
|
* "osVer": "10.0",
|
|
1340
1420
|
* "uniVer": "√",
|
|
1341
1421
|
* "unixVer": "x"
|
|
1422
|
+
* },
|
|
1423
|
+
* "harmony": {
|
|
1424
|
+
* "osVer": "3.0",
|
|
1425
|
+
* "uniVer": "4.23",
|
|
1426
|
+
* "unixVer": "4.61"
|
|
1342
1427
|
* }
|
|
1343
1428
|
* },
|
|
1344
1429
|
* "mp": {
|
|
@@ -1393,7 +1478,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1393
1478
|
/**
|
|
1394
1479
|
* 监听原生标题栏搜索输入框搜索事件,用户点击软键盘上的“搜索”按钮时触发。
|
|
1395
1480
|
*
|
|
1396
|
-
* @tutorial [https://
|
|
1481
|
+
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
1397
1482
|
* @uniPlatform {
|
|
1398
1483
|
* "app": {
|
|
1399
1484
|
* "android": {
|
|
@@ -1405,6 +1490,11 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1405
1490
|
* "osVer": "10.0",
|
|
1406
1491
|
* "uniVer": "√",
|
|
1407
1492
|
* "unixVer": "x"
|
|
1493
|
+
* },
|
|
1494
|
+
* "harmony": {
|
|
1495
|
+
* "osVer": "3.0",
|
|
1496
|
+
* "uniVer": "4.23",
|
|
1497
|
+
* "unixVer": "4.61"
|
|
1408
1498
|
* }
|
|
1409
1499
|
* },
|
|
1410
1500
|
* "mp": {
|
|
@@ -1459,7 +1549,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1459
1549
|
/**
|
|
1460
1550
|
* 监听原生标题栏搜索输入框点击事件
|
|
1461
1551
|
*
|
|
1462
|
-
* @tutorial [https://
|
|
1552
|
+
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
1463
1553
|
* @uniPlatform {
|
|
1464
1554
|
* "app": {
|
|
1465
1555
|
* "android": {
|
|
@@ -1471,6 +1561,11 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1471
1561
|
* "osVer": "10.0",
|
|
1472
1562
|
* "uniVer": "√",
|
|
1473
1563
|
* "unixVer": "x"
|
|
1564
|
+
* },
|
|
1565
|
+
* "harmony": {
|
|
1566
|
+
* "osVer": "3.0",
|
|
1567
|
+
* "uniVer": "4.23",
|
|
1568
|
+
* "unixVer": "4.61"
|
|
1474
1569
|
* }
|
|
1475
1570
|
* },
|
|
1476
1571
|
* "mp": {
|
|
@@ -1547,7 +1642,12 @@ interface Page {
|
|
|
1547
1642
|
* "osVer": "12.0",
|
|
1548
1643
|
* "uniVer": "x",
|
|
1549
1644
|
* "unixVer": "4.13"
|
|
1550
|
-
* }
|
|
1645
|
+
* },
|
|
1646
|
+
* "harmony": {
|
|
1647
|
+
* "osVer": "3.0",
|
|
1648
|
+
* "uniVer": "x",
|
|
1649
|
+
* "unixVer": "4.61"
|
|
1650
|
+
* }
|
|
1551
1651
|
* }
|
|
1552
1652
|
* }
|
|
1553
1653
|
*/
|
|
@@ -1567,7 +1667,12 @@ interface Page {
|
|
|
1567
1667
|
* "osVer": "12.0",
|
|
1568
1668
|
* "uniVer": "x",
|
|
1569
1669
|
* "unixVer": "4.13"
|
|
1570
|
-
* }
|
|
1670
|
+
* },
|
|
1671
|
+
* "harmony": {
|
|
1672
|
+
* "osVer": "3.0",
|
|
1673
|
+
* "uniVer": "x",
|
|
1674
|
+
* "unixVer": "4.61"
|
|
1675
|
+
* }
|
|
1571
1676
|
* },
|
|
1572
1677
|
* "web": {
|
|
1573
1678
|
* "uniVer": "x",
|
|
@@ -1591,6 +1696,11 @@ interface Page {
|
|
|
1591
1696
|
* "osVer": "12.0",
|
|
1592
1697
|
* "uniVer": "x",
|
|
1593
1698
|
* "unixVer": "4.13"
|
|
1699
|
+
* },
|
|
1700
|
+
* "harmony": {
|
|
1701
|
+
* "osVer": "3.0",
|
|
1702
|
+
* "uniVer": "x",
|
|
1703
|
+
* "unixVer": "4.61"
|
|
1594
1704
|
* }
|
|
1595
1705
|
* },
|
|
1596
1706
|
* "web": {
|
|
@@ -1614,7 +1724,9 @@ export { UniDialogPage }
|
|
|
1614
1724
|
declare global {
|
|
1615
1725
|
/**
|
|
1616
1726
|
* `getCurrentPages()` 函数用于获取当前页面栈的实例,以数组形式按栈的顺序给出,数组中的元素为页面实例,第一个元素为首页,最后一个元素为当前页面。
|
|
1617
|
-
* @tutorial https://
|
|
1727
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#getcurrentpages
|
|
1728
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#getcurrentpages
|
|
1729
|
+
* @tutorial_uni-app https://uniapp.dcloud.net.cn/tutorial/page.html#getcurrentpages
|
|
1618
1730
|
* @uniPlatform {
|
|
1619
1731
|
* "app": {
|
|
1620
1732
|
* "android": {
|
|
@@ -5,6 +5,8 @@ import {
|
|
|
5
5
|
UniCameraErrorEvent as UniCameraErrorEventOrigin,
|
|
6
6
|
UniCameraInitDoneEventDetail as UniCameraInitDoneEventDetailOrigin,
|
|
7
7
|
UniCameraInitDoneEvent as UniCameraInitDoneEventOrigin,
|
|
8
|
+
UniCameraScanCodeEventDetail as UniCameraScanCodeEventDetailOrigin,
|
|
9
|
+
UniCameraScanCodeEvent as UniCameraScanCodeEventOrigin
|
|
8
10
|
} from './uni-camera'
|
|
9
11
|
|
|
10
12
|
|
|
@@ -16,4 +18,6 @@ declare global {
|
|
|
16
18
|
type UniCameraErrorEvent = UniCameraErrorEventOrigin
|
|
17
19
|
type UniCameraInitDoneEventDetail = UniCameraInitDoneEventDetailOrigin
|
|
18
20
|
type UniCameraInitDoneEvent = UniCameraInitDoneEventOrigin
|
|
21
|
+
type UniCameraScanCodeEventDetail = UniCameraScanCodeEventDetailOrigin
|
|
22
|
+
type UniCameraScanCodeEvent = UniCameraScanCodeEventOrigin
|
|
19
23
|
}
|
|
@@ -22,13 +22,14 @@ export declare class UniCameraInitDoneEvent extends UniCustomEvent<UniCameraInit
|
|
|
22
22
|
constructor(type: string, detail: UniCameraInitDoneEventDetail)
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
export declare type UniCameraScanCodeEventDetail = {
|
|
26
|
+
type?: string | null;
|
|
27
|
+
result?: string | null;
|
|
28
|
+
rawData?: string | null;
|
|
29
|
+
charSet?: string | null;
|
|
30
|
+
scanArea?: Array<number> | null;
|
|
31
|
+
}
|
|
31
32
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
export declare class UniCameraScanCodeEvent extends UniCustomEvent<UniCameraScanCodeEventDetail> {
|
|
34
|
+
constructor(type : string, detail : UniCameraScanCodeEventDetail)
|
|
35
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export interface Uni {
|
|
2
2
|
/**
|
|
3
3
|
* 手机通讯录联系人和联系方式的增加
|
|
4
|
-
* @tutorial https://
|
|
5
|
-
* @
|
|
4
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/add-phone-contact.html
|
|
5
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/add-phone-contact.html
|
|
6
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/system/contact.html
|
|
6
7
|
*
|
|
7
8
|
* @uniPlatform {
|
|
8
9
|
* "app": {
|
|
@@ -2,8 +2,9 @@ export interface Uni {
|
|
|
2
2
|
/**
|
|
3
3
|
* 将 ArrayBuffer 对象转成 Base64 字符串
|
|
4
4
|
*
|
|
5
|
-
* @tutorial https://
|
|
6
|
-
* @
|
|
5
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/base64.html#arraybuffertobase64
|
|
6
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/base64.html#arraybuffertobase64
|
|
7
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/arrayBufferToBase64.html
|
|
7
8
|
*
|
|
8
9
|
* @uniPlatform {
|
|
9
10
|
* "app": {
|