@dcloudio/uni-app-x 0.7.13 → 0.7.15
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 +1 -1
- package/package.json +1 -1
- package/types/app.d.ts +5 -6
- package/types/index.d.ts +1 -1
- package/types/native/CanvasRenderingContext2D.d.ts +378 -0
- package/types/native/IUniElement.d.ts +40 -12
- package/types/native/Path2D.d.ts +74 -0
- package/types/native/UniApp.d.ts +17 -1
- package/types/native/UniCanvasElement.d.ts +9 -0
- package/types/native/UniEvent.d.ts +30 -0
- package/types/native/UniNativePage.d.ts +31 -1
- package/types/native/UniPageManager.d.ts +4 -1
- package/types/native/UniProvider.d.ts +14 -0
- package/types/native/UniResizeObserver.d.ts +10 -10
- package/types/native/UniScrollEvent.d.ts +1 -1
- package/types/native/UniSwiperAnimationFinishEvent.d.ts +24 -2
- package/types/native/UniSwiperChangeEvent.d.ts +24 -2
- package/types/native/UniSwiperTransitionEvent.d.ts +2 -2
- package/types/native/UniWebViewErrorEvent.d.ts +3 -3
- package/types/native/UniWebViewLoadEvent.d.ts +2 -2
- package/types/native/UniWebViewLoadingEvent.d.ts +2 -2
- package/types/native/UniWebViewMessageEvent.d.ts +1 -1
- package/types/native/global.d.ts +40 -9
- package/types/native/index.d.ts +4 -0
- package/types/page.d.ts +85 -0
- package/types/shim-uts-basic.d.ts +4495 -0
- package/types/uni/env/index.d.ts +21 -0
- package/types/uni/global.d.ts +1 -0
- package/types/uni/index.d.ts +2 -1
- package/types/uni/uts-plugin-api/global.d.ts +14 -2
- package/types/uni/uts-plugin-api/index.d.ts +14 -2
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +77 -0
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +77 -0
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -0
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -0
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +203 -0
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -0
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +152 -0
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +20 -3
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +19 -8
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +13 -6
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +30 -2
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +12 -3
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +6 -0
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +64 -8
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +20 -17
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +111 -27
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +465 -45
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +651 -115
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +7 -1
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +10 -1
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +173 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +2 -14
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +1 -6
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -151
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/interface.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +12 -5
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +11 -5
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +176 -72
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +1728 -59
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +123 -16
- package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +9 -6
- package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +18 -2
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -0
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +60 -0
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +8 -1
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +100 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +2 -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 +459 -67
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +34 -5
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +909 -101
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +20 -15
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +70 -0
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +16 -6
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +26 -16
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/interface.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/interface.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +120 -42
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +16 -1
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +251 -42
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +7 -2
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +73 -0
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +114 -45
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +16 -0
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +167 -7
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +42 -0
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +20 -0
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +516 -0
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +320 -83
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +4 -4
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +2 -2
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +48 -39
- package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +33 -15
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +777 -394
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +19 -15
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +132 -15
- package/types/uni/uts-plugin-extend/README.md +3 -0
- package/types/uni/uts-plugin-extend/global.d.ts +13 -0
- package/types/uni/uts-plugin-extend/index.d.ts +13 -0
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +12 -0
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +365 -0
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/global.d.ts +23 -0
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +710 -0
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +151 -0
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/global.d.ts +25 -0
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +363 -0
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +11 -0
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +224 -0
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +53 -0
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +25 -0
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +486 -0
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +7 -0
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +296 -0
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/global.d.ts +15 -0
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +229 -0
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +14 -0
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +559 -0
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +163 -0
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +143 -0
- package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/global.d.ts +7 -0
- package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +106 -0
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +165 -0
- package/types/uni-cloud/index.d.ts +4 -0
- package/types/uni-cloud/interface.d.ts +163 -20
- package/types/vue/CheckboxGroupChangeEvent.d.ts +10 -13
- package/types/vue/LifeCycle.d.ts +32 -32
- package/types/vue/PickerViewChangeEvent.d.ts +10 -13
- package/types/vue/ProgressActiveendEvent.d.ts +9 -11
- package/types/vue/RadioGroupChangeEvent.d.ts +10 -13
- package/types/vue/SliderChangeEvent.d.ts +9 -10
- package/types/vue/SwitchChangeEvent.d.ts +11 -13
- package/types/vue/UniCloudDBElement.d.ts +72 -75
- package/types/vue/UniFormElement.d.ts +17 -19
- package/types/vue/UniNavigatorElement.d.ts +1 -2
- package/types/vue/global.d.ts +190 -0
- package/types/vue/index.d.ts +10 -11
- package/types/vue-global/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/global.d.ts +0 -78
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/index.d.ts +0 -38
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +0 -643
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference path="../native/UniElement.d.ts" />
|
|
2
2
|
|
|
3
|
-
type SuccessCallback<T> = (res
|
|
4
|
-
type FailCallback = (err
|
|
3
|
+
type SuccessCallback<T> = (res: T | null) => void | null
|
|
4
|
+
type FailCallback = (err: any | null) => void | null
|
|
5
5
|
type CompleteCallback = () => void | null
|
|
6
6
|
|
|
7
7
|
type GetSuccessCallback = SuccessCallback<UniCloudDBGetResult>
|
|
@@ -13,15 +13,15 @@ export type UniCloudDBComponentPaginationType = {
|
|
|
13
13
|
/**
|
|
14
14
|
* 当前页
|
|
15
15
|
*/
|
|
16
|
-
current
|
|
16
|
+
current: number
|
|
17
17
|
/**
|
|
18
18
|
* 每页数据量大小
|
|
19
19
|
*/
|
|
20
|
-
size
|
|
20
|
+
size: number
|
|
21
21
|
/**
|
|
22
22
|
* 数据库的总数据量,设置 :getcount="true" 时有效
|
|
23
23
|
*/
|
|
24
|
-
count
|
|
24
|
+
count: number
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export type UniCloudDBComponentLoadDataOptions = {
|
|
@@ -29,23 +29,23 @@ export type UniCloudDBComponentLoadDataOptions = {
|
|
|
29
29
|
* 是否清空数据
|
|
30
30
|
* @defaultValue false
|
|
31
31
|
*/
|
|
32
|
-
clear
|
|
32
|
+
clear?: boolean | null
|
|
33
33
|
/**
|
|
34
34
|
* 当前第几页
|
|
35
35
|
*/
|
|
36
|
-
current
|
|
36
|
+
current?: number | null
|
|
37
37
|
/**
|
|
38
38
|
* 成功回调
|
|
39
39
|
*/
|
|
40
|
-
success
|
|
40
|
+
success?: GetSuccessCallback
|
|
41
41
|
/**
|
|
42
42
|
* 失败回调
|
|
43
43
|
*/
|
|
44
|
-
fail
|
|
44
|
+
fail?: FailCallback
|
|
45
45
|
/**
|
|
46
46
|
* 完成回调
|
|
47
47
|
*/
|
|
48
|
-
complete
|
|
48
|
+
complete?: CompleteCallback
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
export type UniCloudDBComponentAddOptions = {
|
|
@@ -53,69 +53,69 @@ export type UniCloudDBComponentAddOptions = {
|
|
|
53
53
|
* 是否显示 Toast
|
|
54
54
|
* @defaultValue true
|
|
55
55
|
*/
|
|
56
|
-
showToast
|
|
56
|
+
showToast?: boolean | null
|
|
57
57
|
/**
|
|
58
58
|
* Toast 标题
|
|
59
59
|
*/
|
|
60
|
-
toastTitle
|
|
60
|
+
toastTitle?: string | null
|
|
61
61
|
/**
|
|
62
62
|
* 是否需要 Loading
|
|
63
63
|
* @defaultValue true
|
|
64
64
|
*/
|
|
65
|
-
needLoading
|
|
65
|
+
needLoading?: boolean | null
|
|
66
66
|
/**
|
|
67
67
|
* Loading 标题
|
|
68
68
|
*/
|
|
69
|
-
loadingTitle
|
|
69
|
+
loadingTitle?: string | null
|
|
70
70
|
/**
|
|
71
71
|
* 成功回调
|
|
72
72
|
*/
|
|
73
|
-
success
|
|
73
|
+
success?: AddSuccessCallback
|
|
74
74
|
/**
|
|
75
75
|
* 失败回调
|
|
76
76
|
*/
|
|
77
|
-
fail
|
|
77
|
+
fail?: FailCallback
|
|
78
78
|
/**
|
|
79
79
|
* 完成回调
|
|
80
80
|
*/
|
|
81
|
-
complete
|
|
81
|
+
complete?: CompleteCallback
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
export type UniCloudDBComponentRemoveOptions = {
|
|
85
85
|
/**
|
|
86
86
|
* 确认框标题
|
|
87
87
|
*/
|
|
88
|
-
confirmTitle
|
|
88
|
+
confirmTitle?: string | null
|
|
89
89
|
/**
|
|
90
90
|
* 确认框内容
|
|
91
91
|
*/
|
|
92
|
-
confirmContent
|
|
92
|
+
confirmContent?: string | null
|
|
93
93
|
/**
|
|
94
94
|
* 是否显示删除确认框
|
|
95
95
|
* @defaultValue true
|
|
96
96
|
*/
|
|
97
|
-
needConfirm
|
|
97
|
+
needConfirm?: boolean | null
|
|
98
98
|
/**
|
|
99
99
|
* 是否需要 Loading
|
|
100
100
|
* @defaultValue true
|
|
101
101
|
*/
|
|
102
|
-
needLoading
|
|
102
|
+
needLoading?: boolean | null
|
|
103
103
|
/**
|
|
104
104
|
* Loading 标题
|
|
105
105
|
*/
|
|
106
|
-
loadingTitle
|
|
106
|
+
loadingTitle?: string | null
|
|
107
107
|
/**
|
|
108
108
|
* 成功回调
|
|
109
109
|
*/
|
|
110
|
-
success
|
|
110
|
+
success?: RemoveSuccessCallback
|
|
111
111
|
/**
|
|
112
112
|
* 失败回调
|
|
113
113
|
*/
|
|
114
|
-
fail
|
|
114
|
+
fail?: FailCallback
|
|
115
115
|
/**
|
|
116
116
|
* 完成回调
|
|
117
117
|
*/
|
|
118
|
-
complete
|
|
118
|
+
complete?: CompleteCallback
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
export type UniCloudDBComponentUpdateOptions = {
|
|
@@ -123,93 +123,90 @@ export type UniCloudDBComponentUpdateOptions = {
|
|
|
123
123
|
* 是否显示更新后 Toast
|
|
124
124
|
* @defaultValue true
|
|
125
125
|
*/
|
|
126
|
-
showToast
|
|
126
|
+
showToast?: boolean | null
|
|
127
127
|
/**
|
|
128
128
|
* 更新成功后 Toast 标题
|
|
129
129
|
* @defaultValue ""
|
|
130
130
|
*/
|
|
131
|
-
toastTitle
|
|
131
|
+
toastTitle?: string | null
|
|
132
132
|
/**
|
|
133
133
|
* 确认框标题
|
|
134
134
|
*/
|
|
135
|
-
confirmTitle
|
|
135
|
+
confirmTitle?: string | null
|
|
136
136
|
/**
|
|
137
137
|
* 确认框内容
|
|
138
138
|
*/
|
|
139
|
-
confirmContent
|
|
139
|
+
confirmContent?: string | null
|
|
140
140
|
/**
|
|
141
141
|
* 是否显示更新确认框
|
|
142
142
|
* @defaultValue true
|
|
143
143
|
*/
|
|
144
|
-
needConfirm
|
|
144
|
+
needConfirm?: boolean | null
|
|
145
145
|
/**
|
|
146
146
|
* 是否需要 Loading
|
|
147
147
|
* @defaultValue true
|
|
148
148
|
*/
|
|
149
|
-
needLoading
|
|
149
|
+
needLoading?: boolean | null
|
|
150
150
|
/**
|
|
151
151
|
* Loading 标题
|
|
152
152
|
*/
|
|
153
|
-
loadingTitle
|
|
153
|
+
loadingTitle?: string | null
|
|
154
154
|
/**
|
|
155
155
|
* 成功回调
|
|
156
156
|
*/
|
|
157
|
-
success
|
|
157
|
+
success?: UpdateSuccessCallback
|
|
158
158
|
/**
|
|
159
159
|
* 失败回调
|
|
160
160
|
*/
|
|
161
|
-
fail
|
|
161
|
+
fail?: FailCallback
|
|
162
162
|
/**
|
|
163
163
|
* 完成回调
|
|
164
164
|
*/
|
|
165
|
-
complete
|
|
165
|
+
complete?: CompleteCallback
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
|
|
168
|
+
/**
|
|
169
|
+
* @package io.dcloud.uniapp.framework
|
|
170
|
+
*/
|
|
171
|
+
export interface UniCloudDBElement extends UniElement {
|
|
169
172
|
/**
|
|
170
|
-
*
|
|
173
|
+
* 已加载的数据
|
|
171
174
|
*/
|
|
172
|
-
|
|
175
|
+
dataList: Array<UTSJSONObject>
|
|
173
176
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
* 加载数据
|
|
181
|
-
* 当 <unicloud-db> 组件的 manual 属性设为 true 或者 loadtime 属性设置为 manual 时,不会在页面初始化时联网查询数据,此时需要通过本方法在需要的时候手动加载数据。
|
|
182
|
-
* @param {UniCloudDBComponentLoadDataOptions} options 可选参数
|
|
183
|
-
*/
|
|
184
|
-
loadData(options ?: UTSJSONObject | null) : void
|
|
177
|
+
/**
|
|
178
|
+
* 加载数据
|
|
179
|
+
* 当 <unicloud-db> 组件的 manual 属性设为 true 或者 loadtime 属性设置为 manual 时,不会在页面初始化时联网查询数据,此时需要通过本方法在需要的时候手动加载数据。
|
|
180
|
+
* @param {UniCloudDBComponentLoadDataOptions} options 可选参数
|
|
181
|
+
*/
|
|
182
|
+
loadData(options?: UTSJSONObject | null): void
|
|
185
183
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
184
|
+
/**
|
|
185
|
+
* 加载更多数据
|
|
186
|
+
* 在列表的加载下一页场景下,使用ref方式访问组件方法,加载更多数据,每加载成功一次,当前页 +1
|
|
187
|
+
*/
|
|
188
|
+
loadMore(): void
|
|
191
189
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
190
|
+
/**
|
|
191
|
+
* 新增数据
|
|
192
|
+
* @param value 新增数据.
|
|
193
|
+
* @param {UniCloudDBComponentAddOptions} options 可选参数
|
|
194
|
+
*/
|
|
195
|
+
add(value: UTSJSONObject, options?: UTSJSONObject | null): void
|
|
198
196
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
197
|
+
/**
|
|
198
|
+
* 移除数据
|
|
199
|
+
* @param id 传入数据库的 _id 或 _id 数组.
|
|
200
|
+
* @param {UniCloudDBComponentRemoveOptions} options 可选参数
|
|
201
|
+
*/
|
|
202
|
+
remove(): void
|
|
203
|
+
remove(id?: any, options?: UTSJSONObject | null): void
|
|
206
204
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
}
|
|
205
|
+
/**
|
|
206
|
+
* 更新数据
|
|
207
|
+
* @param id 数据库字段的唯一标识.
|
|
208
|
+
* @param value 需要修改的新数据.
|
|
209
|
+
* @param {UniCloudDBComponentUpdateOptions} options 可选参数
|
|
210
|
+
*/
|
|
211
|
+
update(id: string, value: UTSJSONObject, options?: UTSJSONObject | null): void
|
|
215
212
|
}
|
|
@@ -5,47 +5,45 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @package io.dcloud.uniapp.framework
|
|
7
7
|
*/
|
|
8
|
-
interface UniFormElement extends UniElement, IUniForm {
|
|
9
|
-
}
|
|
8
|
+
interface UniFormElement extends UniElement, IUniForm {}
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* @package io.dcloud.uniapp.framework
|
|
13
12
|
*/
|
|
14
|
-
|
|
13
|
+
export class UniFormSubmitEventDetail {
|
|
15
14
|
value: UTSJSONObject
|
|
16
|
-
constructor
|
|
15
|
+
constructor(value: UTSJSONObject)
|
|
17
16
|
}
|
|
18
17
|
|
|
19
18
|
/**
|
|
20
19
|
* @package io.dcloud.uniapp.framework
|
|
21
20
|
*/
|
|
22
|
-
|
|
23
|
-
constructor
|
|
21
|
+
export class UniFormSubmitEvent extends UniCustomEvent<UniFormSubmitEventDetail> {
|
|
22
|
+
constructor(value: UTSJSONObject)
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
/**
|
|
27
26
|
* @package io.dcloud.uniapp.framework
|
|
28
27
|
*/
|
|
29
|
-
|
|
30
|
-
constructor
|
|
28
|
+
export class UniFormResetEventDetail {
|
|
29
|
+
constructor()
|
|
31
30
|
}
|
|
32
31
|
|
|
33
32
|
/**
|
|
34
33
|
* @package io.dcloud.uniapp.framework
|
|
35
34
|
*/
|
|
36
|
-
|
|
37
|
-
constructor
|
|
35
|
+
export class UniFormResetEvent extends UniCustomEvent<UniFormResetEventDetail> {
|
|
36
|
+
constructor()
|
|
38
37
|
}
|
|
39
38
|
|
|
39
|
+
export type FormSubmitEvent = UniFormSubmitEvent
|
|
40
|
+
export const FormSubmitEvent: typeof UniFormSubmitEvent
|
|
40
41
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
declare type FormSubmitEventDetail = UniFormSubmitEventDetail
|
|
45
|
-
declare const FormSubmitEventDetail: typeof UniFormSubmitEventDetail
|
|
42
|
+
export type FormSubmitEventDetail = UniFormSubmitEventDetail
|
|
43
|
+
export const FormSubmitEventDetail: typeof UniFormSubmitEventDetail
|
|
46
44
|
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
export type FormResetEvent = UniFormResetEvent
|
|
46
|
+
export const FormResetEvent: typeof UniFormResetEvent
|
|
49
47
|
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
export type FormResetEventDetail = UniFormResetEventDetail
|
|
49
|
+
export const FormResetEventDetail: typeof UniFormResetEventDetail
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import {
|
|
2
|
+
// slider
|
|
3
|
+
SliderChangeEvent as SliderChangeEventOrigin,
|
|
4
|
+
SliderChangeEventDetail as SliderChangeEventDetailOrigin,
|
|
5
|
+
UniSliderChangeEvent as UniSliderChangeEventOrigin,
|
|
6
|
+
UniSliderChangeEventDetail as UniSliderChangeEventDetailOrigin,
|
|
7
|
+
UniSliderElement as UniSliderElementOrigin,
|
|
8
|
+
// switch
|
|
9
|
+
UniSwitchChangeEvent as UniSwitchChangeEventOrigin,
|
|
10
|
+
UniSwitchChangeEventDetail as UniSwitchChangeEventDetailOrigin,
|
|
11
|
+
UniSwitchElement as UniSwitchElementOrigin,
|
|
12
|
+
SwitchChangeEvent as SwitchChangeEventOrigin,
|
|
13
|
+
SwitchChangeEventDetail as SwitchChangeEventDetailOrigin,
|
|
14
|
+
// checkbox
|
|
15
|
+
UniCheckboxGroupChangeEventDetail as UniCheckboxGroupChangeEventDetailOrigin,
|
|
16
|
+
UniCheckboxElement as UniCheckboxElementOrigin,
|
|
17
|
+
UniCheckboxGroupChangeEvent as UniCheckboxGroupChangeEventOrigin,
|
|
18
|
+
CheckboxGroupChangeEvent as CheckboxGroupChangeEventOrigin,
|
|
19
|
+
CheckboxGroupChangeEventDetail as CheckboxGroupChangeEventDetailOrigin,
|
|
20
|
+
// picker view
|
|
21
|
+
UniPickerViewColumnElement as UniPickerViewColumnElementOrigin,
|
|
22
|
+
UniPickerViewElement as UniPickerViewElementOrigin,
|
|
23
|
+
UniPickerViewChangeEventDetail as UniPickerViewChangeEventDetailOrigin,
|
|
24
|
+
UniPickerViewChangeEvent as UniPickerViewChangeEventOrigin,
|
|
25
|
+
PickerViewChangeEvent as PickerViewChangeEventOrigin,
|
|
26
|
+
PickerViewChangeEventDetail as PickerViewChangeEventDetailOrigin,
|
|
27
|
+
// progress
|
|
28
|
+
UniProgressElement as UniProgressElementOrigin,
|
|
29
|
+
UniProgressActiveendEvent as UniProgressActiveendEventOrigin,
|
|
30
|
+
UniProgressActiveendEventDetail as UniProgressActiveendEventDetailOrigin,
|
|
31
|
+
ProgressActiveendEvent as ProgressActiveendEventOrigin,
|
|
32
|
+
ProgressActiveendEventDetail as ProgressActiveendEventDetailOrigin,
|
|
33
|
+
// radio
|
|
34
|
+
UniRadioGroupElement as UniRadioGroupElementOrigin,
|
|
35
|
+
RadioGroupChangeEvent as RadioGroupChangeEventOrigin,
|
|
36
|
+
RadioGroupChangeEventDetail as RadioGroupChangeEventDetailOrigin,
|
|
37
|
+
UniRadioGroupChangeEvent as UniRadioGroupChangeEventOrigin,
|
|
38
|
+
UniRadioGroupChangeEventDetail as UniRadioGroupChangeEventDetailOrigin,
|
|
39
|
+
// navigator
|
|
40
|
+
UniNavigatorElement as UniNavigatorElementOrigin,
|
|
41
|
+
// form
|
|
42
|
+
UniFormElement as UniFormElementOrigin,
|
|
43
|
+
UniFormSubmitEventDetail as UniFormSubmitEventDetailOrigin,
|
|
44
|
+
UniFormSubmitEvent as UniFormSubmitEventOrigin,
|
|
45
|
+
UniFormResetEventDetail as UniFormResetEventDetailOrigin,
|
|
46
|
+
UniFormResetEvent as UniFormResetEventOrigin,
|
|
47
|
+
FormSubmitEvent as FormSubmitEventOrigin,
|
|
48
|
+
FormSubmitEventDetail as FormSubmitEventDetailOrigin,
|
|
49
|
+
FormResetEvent as FormResetEventOrigin,
|
|
50
|
+
FormResetEventDetail as FormResetEventDetailOrigin,
|
|
51
|
+
UniCloudDBComponentAddOptions as UniCloudDBComponentAddOptionsOrigin,
|
|
52
|
+
UniCloudDBComponentRemoveOptions as UniCloudDBComponentRemoveOptionsOrigin,
|
|
53
|
+
UniCloudDBComponentLoadDataOptions as UniCloudDBComponentLoadDataOptionsOrigin,
|
|
54
|
+
UniCloudDBComponentPaginationType as UniCloudDBComponentPaginationTypeOrigin,
|
|
55
|
+
UniCloudDBComponentUpdateOptions as UniCloudDBComponentUpdateOptionsOrigin,
|
|
56
|
+
UniCloudDBElement as UniCloudDBElementOrigin,
|
|
57
|
+
// lifecycle
|
|
58
|
+
onHide as onHideOrigin,
|
|
59
|
+
onLaunch as onLaunchOrigin,
|
|
60
|
+
onAppHide as onAppHideOrigin,
|
|
61
|
+
onAppShow as onAppShowOrigin,
|
|
62
|
+
onLastPageBackPress as onLastPageBackPressOrigin,
|
|
63
|
+
onExit as onExitOrigin,
|
|
64
|
+
onBackPress as onBackPressOrigin,
|
|
65
|
+
onLoad as onLoadOrigin,
|
|
66
|
+
onPageHide as onPageHideOrigin,
|
|
67
|
+
onPageScroll as onPageScrollOrigin,
|
|
68
|
+
onPageShow as onPageShowOrigin,
|
|
69
|
+
onPullDownRefresh as onPullDownRefreshOrigin,
|
|
70
|
+
onReachBottom as onReachBottomOrigin,
|
|
71
|
+
onReady as onReadyOrigin,
|
|
72
|
+
onResize as onResizeOrigin,
|
|
73
|
+
onUnload as onUnloadOrigin,
|
|
74
|
+
} from "./index"
|
|
75
|
+
|
|
76
|
+
declare global {
|
|
77
|
+
// slider
|
|
78
|
+
var UniSliderChangeEvent: typeof UniSliderChangeEventOrigin
|
|
79
|
+
type UniSliderChangeEvent = UniSliderChangeEventOrigin
|
|
80
|
+
var UniSliderChangeEventDetail: typeof UniSliderChangeEventDetailOrigin
|
|
81
|
+
type UniSliderChangeEventDetail = UniSliderChangeEventDetailOrigin
|
|
82
|
+
var UniSliderElement: UniSliderElementOrigin
|
|
83
|
+
type UniSliderElement = UniSliderElementOrigin
|
|
84
|
+
var SliderChangeEvent: typeof SliderChangeEventOrigin
|
|
85
|
+
type SliderChangeEvent = SliderChangeEventOrigin
|
|
86
|
+
var SliderChangeEventDetail: typeof SliderChangeEventDetailOrigin
|
|
87
|
+
type SliderChangeEventDetail = SliderChangeEventDetailOrigin
|
|
88
|
+
// switch
|
|
89
|
+
var UniSwitchChangeEvent: typeof UniSwitchChangeEventOrigin
|
|
90
|
+
type UniSwitchChangeEvent = UniSwitchChangeEventOrigin
|
|
91
|
+
var UniSwitchChangeEventDetail: typeof UniSwitchChangeEventDetailOrigin
|
|
92
|
+
type UniSwitchChangeEventDetail = UniSwitchChangeEventDetailOrigin
|
|
93
|
+
var UniSwitchElement: UniSwitchElementOrigin
|
|
94
|
+
type UniSwitchElement = UniSwitchElementOrigin
|
|
95
|
+
var SwitchChangeEvent: typeof SwitchChangeEventOrigin
|
|
96
|
+
type SwitchChangeEvent = SwitchChangeEventOrigin
|
|
97
|
+
var SwitchChangeEventDetail: typeof SwitchChangeEventDetailOrigin
|
|
98
|
+
type SwitchChangeEventDetail = SwitchChangeEventDetailOrigin
|
|
99
|
+
// checkbox
|
|
100
|
+
var UniCheckboxGroupChangeEventDetail: typeof UniCheckboxGroupChangeEventDetailOrigin
|
|
101
|
+
type UniCheckboxGroupChangeEventDetail = UniCheckboxGroupChangeEventDetailOrigin
|
|
102
|
+
var UniCheckboxGroupChangeEvent: typeof UniCheckboxGroupChangeEventOrigin
|
|
103
|
+
type UniCheckboxGroupChangeEvent = UniCheckboxGroupChangeEventOrigin
|
|
104
|
+
var UniCheckboxElement: UniCheckboxElementOrigin
|
|
105
|
+
type UniCheckboxElement = UniCheckboxElementOrigin
|
|
106
|
+
var CheckboxGroupChangeEvent: typeof CheckboxGroupChangeEventOrigin
|
|
107
|
+
type CheckboxGroupChangeEvent = CheckboxGroupChangeEventOrigin
|
|
108
|
+
var CheckboxGroupChangeEventDetail: typeof CheckboxGroupChangeEventDetailOrigin
|
|
109
|
+
type CheckboxGroupChangeEventDetail = CheckboxGroupChangeEventDetailOrigin
|
|
110
|
+
// pickerview
|
|
111
|
+
var UniPickerViewColumnElement: UniPickerViewColumnElementOrigin
|
|
112
|
+
type UniPickerViewColumnElement = UniPickerViewColumnElementOrigin
|
|
113
|
+
var UniPickerViewElement: UniPickerViewElementOrigin
|
|
114
|
+
type UniPickerViewElement = UniPickerViewElementOrigin
|
|
115
|
+
var UniPickerViewChangeEventDetail: UniPickerViewChangeEventDetailOrigin
|
|
116
|
+
type UniPickerViewChangeEventDetail = UniPickerViewChangeEventDetailOrigin
|
|
117
|
+
var UniPickerViewChangeEvent: UniPickerViewChangeEventOrigin
|
|
118
|
+
type UniPickerViewChangeEvent = UniPickerViewChangeEventOrigin
|
|
119
|
+
var PickerViewChangeEvent: typeof PickerViewChangeEventOrigin
|
|
120
|
+
type PickerViewChangeEvent = PickerViewChangeEventOrigin
|
|
121
|
+
var PickerViewChangeEventDetail: typeof PickerViewChangeEventDetailOrigin
|
|
122
|
+
type PickerViewChangeEventDetail = PickerViewChangeEventDetailOrigin
|
|
123
|
+
// Progress
|
|
124
|
+
var UniProgressElement: UniProgressElementOrigin
|
|
125
|
+
type UniProgressElement = UniProgressElementOrigin
|
|
126
|
+
var UniProgressActiveendEvent: typeof UniProgressActiveendEventOrigin
|
|
127
|
+
type UniProgressActiveendEvent = UniProgressActiveendEventOrigin
|
|
128
|
+
var UniProgressActiveendEventDetail: typeof UniProgressActiveendEventDetailOrigin
|
|
129
|
+
type UniProgressActiveendEventDetail = UniProgressActiveendEventDetailOrigin
|
|
130
|
+
var ProgressActiveendEvent: typeof ProgressActiveendEventOrigin
|
|
131
|
+
type ProgressActiveendEvent = ProgressActiveendEventOrigin
|
|
132
|
+
var ProgressActiveendEventDetail: typeof ProgressActiveendEventDetailOrigin
|
|
133
|
+
type ProgressActiveendEventDetail = ProgressActiveendEventDetailOrigin
|
|
134
|
+
// radio
|
|
135
|
+
var UniRadioGroupElement: UniRadioGroupElementOrigin
|
|
136
|
+
type UniRadioGroupElement = UniRadioGroupElementOrigin
|
|
137
|
+
var UniRadioGroupChangeEvent: UniRadioGroupChangeEventOrigin
|
|
138
|
+
type UniRadioGroupChangeEvent = UniRadioGroupChangeEventOrigin
|
|
139
|
+
var UniRadioGroupChangeEventDetail: UniRadioGroupChangeEventDetailOrigin
|
|
140
|
+
type UniRadioGroupChangeEventDetail = UniRadioGroupChangeEventDetailOrigin
|
|
141
|
+
var RadioGroupChangeEvent: RadioGroupChangeEventOrigin
|
|
142
|
+
type RadioGroupChangeEvent = RadioGroupChangeEventOrigin
|
|
143
|
+
var RadioGroupChangeEventDetail: RadioGroupChangeEventDetailOrigin
|
|
144
|
+
type RadioGroupChangeEventDetail = RadioGroupChangeEventDetailOrigin
|
|
145
|
+
// navigator
|
|
146
|
+
var UniNavigatorElement: UniNavigatorElementOrigin
|
|
147
|
+
// form
|
|
148
|
+
var UniFormElement: UniFormElementOrigin
|
|
149
|
+
type UniFormElement = UniFormElementOrigin
|
|
150
|
+
var UniFormSubmitEventDetail: UniFormSubmitEventDetailOrigin
|
|
151
|
+
type UniFormSubmitEventDetail = UniFormSubmitEventDetailOrigin
|
|
152
|
+
var UniFormSubmitEvent: UniFormSubmitEventOrigin
|
|
153
|
+
type UniFormSubmitEvent = UniFormSubmitEventOrigin
|
|
154
|
+
var UniFormResetEventDetail: UniFormResetEventDetailOrigin
|
|
155
|
+
type UniFormResetEventDetail = UniFormResetEventDetailOrigin
|
|
156
|
+
var UniFormResetEvent: UniFormResetEventOrigin
|
|
157
|
+
type UniFormResetEvent = UniFormResetEventOrigin
|
|
158
|
+
var FormSubmitEvent: FormSubmitEventOrigin
|
|
159
|
+
type FormSubmitEvent = FormSubmitEventOrigin
|
|
160
|
+
var FormSubmitEventDetail: FormSubmitEventDetailOrigin
|
|
161
|
+
type FormSubmitEventDetail = FormSubmitEventDetailOrigin
|
|
162
|
+
var FormResetEvent: FormResetEventOrigin
|
|
163
|
+
type FormResetEvent = FormResetEventOrigin
|
|
164
|
+
var FormResetEventDetail: FormResetEventDetailOrigin
|
|
165
|
+
type FormResetEventDetail = FormResetEventDetailOrigin
|
|
166
|
+
// uni cloud
|
|
167
|
+
type UniCloudDBComponentAddOptions = UniCloudDBComponentAddOptionsOrigin
|
|
168
|
+
type UniCloudDBComponentRemoveOptions = UniCloudDBComponentRemoveOptionsOrigin
|
|
169
|
+
type UniCloudDBComponentLoadDataOptions = UniCloudDBComponentLoadDataOptionsOrigin
|
|
170
|
+
type UniCloudDBComponentPaginationType = UniCloudDBComponentPaginationTypeOrigin
|
|
171
|
+
type UniCloudDBComponentUpdateOptions = UniCloudDBComponentUpdateOptionsOrigin
|
|
172
|
+
type UniCloudDBElement = UniCloudDBElementOrigin
|
|
173
|
+
// lifecycle
|
|
174
|
+
var onHide: typeof onHideOrigin
|
|
175
|
+
var onLaunch: typeof onLaunchOrigin
|
|
176
|
+
var onAppHide: typeof onAppHideOrigin
|
|
177
|
+
var onAppShow: typeof onAppShowOrigin
|
|
178
|
+
var onLastPageBackPress: typeof onLastPageBackPressOrigin
|
|
179
|
+
var onExit: typeof onExitOrigin
|
|
180
|
+
var onBackPress: typeof onBackPressOrigin
|
|
181
|
+
var onLoad: typeof onLoadOrigin
|
|
182
|
+
var onPageHide: typeof onPageHideOrigin
|
|
183
|
+
var onPageScroll: typeof onPageScrollOrigin
|
|
184
|
+
var onPageShow: typeof onPageShowOrigin
|
|
185
|
+
var onPullDownRefresh: typeof onPullDownRefreshOrigin
|
|
186
|
+
var onReachBottom: typeof onReachBottomOrigin
|
|
187
|
+
var onReady: typeof onReadyOrigin
|
|
188
|
+
var onResize: typeof onResizeOrigin
|
|
189
|
+
var onUnload: typeof onUnloadOrigin
|
|
190
|
+
}
|
package/types/vue/index.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/// <reference path='./LifeCycle.d.ts' />
|
|
1
|
+
export * from "./CheckboxGroupChangeEvent"
|
|
2
|
+
export * from "./PickerViewChangeEvent"
|
|
3
|
+
export * from "./ProgressActiveendEvent"
|
|
4
|
+
export * from "./RadioGroupChangeEvent"
|
|
5
|
+
export * from "./SliderChangeEvent"
|
|
6
|
+
export * from "./SwitchChangeEvent"
|
|
7
|
+
export * from "./UniNavigatorElement"
|
|
8
|
+
export * from "./UniCloudDBElement"
|
|
9
|
+
export * from "./UniFormElement"
|
|
10
|
+
export * from "./LifeCycle"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference path='../vue/global.d.ts' />
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
// 本文件为自动构建生成
|
|
2
|
-
import {
|
|
3
|
-
Request as RequestOrigin,
|
|
4
|
-
RequestOptions as RequestOptionsOrigin,
|
|
5
|
-
RequestSuccess as RequestSuccessOrigin,
|
|
6
|
-
RequestMethod as RequestMethodOrigin,
|
|
7
|
-
RequestErrorCode as RequestErrorCodeOrigin,
|
|
8
|
-
RequestFail as RequestFailOrigin,
|
|
9
|
-
RequestFail as RequestFailOrigin,
|
|
10
|
-
RequestSuccessCallback as RequestSuccessCallbackOrigin,
|
|
11
|
-
RequestFailCallback as RequestFailCallbackOrigin,
|
|
12
|
-
RequestCompleteCallback as RequestCompleteCallbackOrigin,
|
|
13
|
-
RequestTask as RequestTaskOrigin,
|
|
14
|
-
UploadFile as UploadFileOrigin,
|
|
15
|
-
UploadFileOptionFiles as UploadFileOptionFilesOrigin,
|
|
16
|
-
UploadFileSuccess as UploadFileSuccessOrigin,
|
|
17
|
-
UploadFileSuccessCallback as UploadFileSuccessCallbackOrigin,
|
|
18
|
-
UploadFileFail as UploadFileFailOrigin,
|
|
19
|
-
UploadFileFail as UploadFileFailOrigin,
|
|
20
|
-
UploadFileFailCallback as UploadFileFailCallbackOrigin,
|
|
21
|
-
UploadFileCompleteCallback as UploadFileCompleteCallbackOrigin,
|
|
22
|
-
UploadFileOptions as UploadFileOptionsOrigin,
|
|
23
|
-
OnProgressUpdateResult as OnProgressUpdateResultOrigin,
|
|
24
|
-
UploadFileProgressUpdateCallback as UploadFileProgressUpdateCallbackOrigin,
|
|
25
|
-
UploadTask as UploadTaskOrigin,
|
|
26
|
-
DownloadFile as DownloadFileOrigin,
|
|
27
|
-
DownloadFileSuccess as DownloadFileSuccessOrigin,
|
|
28
|
-
DownloadFileSuccessCallback as DownloadFileSuccessCallbackOrigin,
|
|
29
|
-
DownloadFileFail as DownloadFileFailOrigin,
|
|
30
|
-
DownloadFileFail as DownloadFileFailOrigin,
|
|
31
|
-
DownloadFileFailCallback as DownloadFileFailCallbackOrigin,
|
|
32
|
-
DownloadFileComplete as DownloadFileCompleteOrigin,
|
|
33
|
-
DownloadFileCompleteCallback as DownloadFileCompleteCallbackOrigin,
|
|
34
|
-
DownloadFileOptions as DownloadFileOptionsOrigin,
|
|
35
|
-
OnProgressDownloadResult as OnProgressDownloadResultOrigin,
|
|
36
|
-
DownloadFileProgressUpdateCallback as DownloadFileProgressUpdateCallbackOrigin,
|
|
37
|
-
DownloadTask as DownloadTaskOrigin,
|
|
38
|
-
Uni as UniOrigin
|
|
39
|
-
} from './interface'
|
|
40
|
-
|
|
41
|
-
declare global {
|
|
42
|
-
type Request = RequestOrigin
|
|
43
|
-
type RequestOptions = RequestOptionsOrigin
|
|
44
|
-
type RequestSuccess = RequestSuccessOrigin
|
|
45
|
-
type RequestMethod = RequestMethodOrigin
|
|
46
|
-
type RequestErrorCode = RequestErrorCodeOrigin
|
|
47
|
-
type RequestFail = RequestFailOrigin
|
|
48
|
-
type RequestFail = RequestFailOrigin
|
|
49
|
-
type RequestSuccessCallback = RequestSuccessCallbackOrigin
|
|
50
|
-
type RequestFailCallback = RequestFailCallbackOrigin
|
|
51
|
-
type RequestCompleteCallback = RequestCompleteCallbackOrigin
|
|
52
|
-
type RequestTask = RequestTaskOrigin
|
|
53
|
-
type UploadFile = UploadFileOrigin
|
|
54
|
-
type UploadFileOptionFiles = UploadFileOptionFilesOrigin
|
|
55
|
-
type UploadFileSuccess = UploadFileSuccessOrigin
|
|
56
|
-
type UploadFileSuccessCallback = UploadFileSuccessCallbackOrigin
|
|
57
|
-
type UploadFileFail = UploadFileFailOrigin
|
|
58
|
-
type UploadFileFail = UploadFileFailOrigin
|
|
59
|
-
type UploadFileFailCallback = UploadFileFailCallbackOrigin
|
|
60
|
-
type UploadFileCompleteCallback = UploadFileCompleteCallbackOrigin
|
|
61
|
-
type UploadFileOptions = UploadFileOptionsOrigin
|
|
62
|
-
type OnProgressUpdateResult = OnProgressUpdateResultOrigin
|
|
63
|
-
type UploadFileProgressUpdateCallback = UploadFileProgressUpdateCallbackOrigin
|
|
64
|
-
type UploadTask = UploadTaskOrigin
|
|
65
|
-
type DownloadFile = DownloadFileOrigin
|
|
66
|
-
type DownloadFileSuccess = DownloadFileSuccessOrigin
|
|
67
|
-
type DownloadFileSuccessCallback = DownloadFileSuccessCallbackOrigin
|
|
68
|
-
type DownloadFileFail = DownloadFileFailOrigin
|
|
69
|
-
type DownloadFileFail = DownloadFileFailOrigin
|
|
70
|
-
type DownloadFileFailCallback = DownloadFileFailCallbackOrigin
|
|
71
|
-
type DownloadFileComplete = DownloadFileCompleteOrigin
|
|
72
|
-
type DownloadFileCompleteCallback = DownloadFileCompleteCallbackOrigin
|
|
73
|
-
type DownloadFileOptions = DownloadFileOptionsOrigin
|
|
74
|
-
type OnProgressDownloadResult = OnProgressDownloadResultOrigin
|
|
75
|
-
type DownloadFileProgressUpdateCallback = DownloadFileProgressUpdateCallbackOrigin
|
|
76
|
-
type DownloadTask = DownloadTaskOrigin
|
|
77
|
-
interface Uni extends UniOrigin { }
|
|
78
|
-
}
|