@tarojs/taro 3.5.7-alpha.9 → 3.5.8
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/taro",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.8",
|
|
4
4
|
"description": "Taro framework",
|
|
5
5
|
"homepage": "https://github.com/nervjs/taro/tree/master/packages/taro#readme",
|
|
6
6
|
"main": "index.js",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"author": "O2Team",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@tarojs/api": "3.5.
|
|
25
|
-
"@tarojs/runtime": "3.5.
|
|
24
|
+
"@tarojs/api": "3.5.8",
|
|
25
|
+
"@tarojs/runtime": "3.5.8"
|
|
26
26
|
},
|
|
27
27
|
"peerDependenciesMeta": {
|
|
28
28
|
"@types/react": {
|
|
@@ -1,12 +1,26 @@
|
|
|
1
1
|
import Taro from '../../index'
|
|
2
2
|
|
|
3
3
|
declare module '../../index' {
|
|
4
|
+
namespace getOpenUserInfo {
|
|
5
|
+
interface Option {
|
|
6
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
7
|
+
complete?:(res: TaroGeneral.CallbackResult) => void
|
|
8
|
+
/** 接口调用失败的回调函数 */
|
|
9
|
+
fail?: (res: TaroGeneral.CallbackResult) => void
|
|
10
|
+
/** 接口调用成功的回调函数 */
|
|
11
|
+
success?: (res: SuccessCallbackResult) => void
|
|
12
|
+
}
|
|
13
|
+
interface SuccessCallbackResult {
|
|
14
|
+
/** 返回一个 Object 类型的对象 res。使用 JSON.parse(res.response).response 解析 */
|
|
15
|
+
response: string
|
|
16
|
+
}
|
|
17
|
+
}
|
|
4
18
|
interface TaroStatic {
|
|
5
19
|
/**
|
|
6
20
|
* 此接口可获取支付宝会员的基础信息(头像图片地址、昵称、性别、国家码、省份、所在市区),接入方法请参考 获取会员基础信息介绍。如需获取支付宝会员标识(user_id),请调用 my.getAuthCode 和 alipay.system.oauth.token 接口。
|
|
7
21
|
* @supported alipay
|
|
8
22
|
* @see https://docs.alipay.com/mini/api/ch8chh
|
|
9
23
|
*/
|
|
10
|
-
getOpenUserInfo(): Promise<
|
|
24
|
+
getOpenUserInfo(Option: getOpenUserInfo.Option): Promise<getOpenUserInfo.SuccessCallbackResult>
|
|
11
25
|
}
|
|
12
26
|
}
|
|
@@ -100,7 +100,7 @@ declare module '../../index' {
|
|
|
100
100
|
* @supported weapp
|
|
101
101
|
* @see https://developers.weixin.qq.com/miniprogram/dev/api/device/contact/wx.chooseContact.html
|
|
102
102
|
*/
|
|
103
|
-
chooseContact(option: chooseContact.Option): Promise<
|
|
103
|
+
chooseContact(option: chooseContact.Option): Promise<chooseContact.SuccessCallbackResult>
|
|
104
104
|
/** 添加手机通讯录联系人。用户可以选择将该表单以「新增联系人」或「添加到已有联系人」的方式,写入手机系统通讯录。
|
|
105
105
|
* @supported weapp
|
|
106
106
|
* @see https://developers.weixin.qq.com/miniprogram/dev/api/device/contact/wx.addPhoneContact.html
|
|
@@ -62,7 +62,8 @@ declare module '../../index' {
|
|
|
62
62
|
/** 实际设置的缩放级别。由于系统限制,某些机型可能无法设置成指定值,会改用最接近的可设值。 */
|
|
63
63
|
zoom: number
|
|
64
64
|
/**
|
|
65
|
-
* @supported alipay
|
|
65
|
+
* @supported alipay
|
|
66
|
+
* @alipay on android
|
|
66
67
|
*/
|
|
67
68
|
setZoom:number
|
|
68
69
|
}
|
|
@@ -86,19 +87,19 @@ declare module '../../index' {
|
|
|
86
87
|
/** 视频的文件的临时路径 */
|
|
87
88
|
tempVideoPath: string
|
|
88
89
|
/** 视频文件的高度。
|
|
89
|
-
* @supported alipay
|
|
90
|
+
* @supported alipay
|
|
90
91
|
*/
|
|
91
92
|
height: string
|
|
92
93
|
/** 视频文件的宽度。
|
|
93
|
-
* @supported alipay
|
|
94
|
+
* @supported alipay
|
|
94
95
|
*/
|
|
95
96
|
width: string
|
|
96
97
|
/** 视频文件的尺寸。
|
|
97
|
-
* @supported alipay
|
|
98
|
+
* @supported alipay
|
|
98
99
|
*/
|
|
99
100
|
size: string
|
|
100
101
|
/** 录制的持续时间。
|
|
101
|
-
* @supported alipay
|
|
102
|
+
* @supported alipay
|
|
102
103
|
*/
|
|
103
104
|
duration: string
|
|
104
105
|
}
|
|
@@ -198,7 +199,6 @@ declare module '../../index' {
|
|
|
198
199
|
* ```
|
|
199
200
|
* @see https://developers.weixin.qq.com/miniprogram/dev/api/media/camera/wx.createCameraContext.html
|
|
200
201
|
*/
|
|
201
|
-
createCameraContext(): CameraContext
|
|
202
|
-
createCameraContext(id: string): CameraContext
|
|
202
|
+
createCameraContext(id?: string): CameraContext
|
|
203
203
|
}
|
|
204
204
|
}
|
|
@@ -505,7 +505,7 @@ declare module '../../index' {
|
|
|
505
505
|
* ```tsx
|
|
506
506
|
* const observer = Taro.createIntersectionObserver(this, { thresholds: [0], observeAll: true })
|
|
507
507
|
* ```
|
|
508
|
-
* @see https://developers.weixin.qq.com/miniprogram/dev/api/wxml/wx.
|
|
508
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/api/wxml/wx.createIntersectionObserver.html
|
|
509
509
|
*/
|
|
510
510
|
createIntersectionObserver(
|
|
511
511
|
/** 自定义组件实例 */
|