@tarojs/taro 3.6.9-alpha.13 → 3.6.9-alpha.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/taro",
|
|
3
|
-
"version": "3.6.9-alpha.
|
|
3
|
+
"version": "3.6.9-alpha.15",
|
|
4
4
|
"description": "Taro framework",
|
|
5
5
|
"homepage": "https://github.com/nervjs/taro/tree/master/packages/taro#readme",
|
|
6
6
|
"main": "index.js",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"author": "O2Team",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@tarojs/api": "3.6.9-alpha.
|
|
25
|
-
"@tarojs/runtime": "3.6.9-alpha.
|
|
24
|
+
"@tarojs/api": "3.6.9-alpha.15",
|
|
25
|
+
"@tarojs/runtime": "3.6.9-alpha.15"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@tarojs/helper": "3.6.9-alpha.
|
|
28
|
+
"@tarojs/helper": "3.6.9-alpha.15"
|
|
29
29
|
},
|
|
30
30
|
"peerDependenciesMeta": {
|
|
31
31
|
"@types/react": {
|
|
@@ -4,32 +4,34 @@ declare module '../../index' {
|
|
|
4
4
|
namespace chooseAddress {
|
|
5
5
|
interface Option {
|
|
6
6
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
7
|
-
complete?: (res:
|
|
7
|
+
complete?: (res: SuccessCallbackResult) => void
|
|
8
8
|
/** 接口调用失败的回调函数 */
|
|
9
9
|
fail?: (res: TaroGeneral.CallbackResult) => void
|
|
10
10
|
/** 接口调用成功的回调函数 */
|
|
11
11
|
success?: (result: SuccessCallbackResult) => void
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
interface SuccessCallbackResult {
|
|
14
|
+
interface SuccessCallbackResult extends TaroGeneral.CallbackResult {
|
|
15
|
+
/** 收货人姓名 */
|
|
16
|
+
userName: string
|
|
17
|
+
/** 邮编 */
|
|
18
|
+
postalCode: string
|
|
19
|
+
/** 国标收货地址第一级地址 */
|
|
20
|
+
provinceName: string
|
|
15
21
|
/** 国标收货地址第二级地址 */
|
|
16
22
|
cityName: string
|
|
17
23
|
/** 国标收货地址第三级地址 */
|
|
18
24
|
countyName: string
|
|
25
|
+
/** 国标收货地址第四级地址 */
|
|
26
|
+
streetName: string
|
|
19
27
|
/** 详细收货地址信息 */
|
|
20
28
|
detailInfo: string
|
|
21
|
-
/**
|
|
22
|
-
|
|
29
|
+
/** 新选择器详细收货地址信息 */
|
|
30
|
+
detailInfoNew: string
|
|
23
31
|
/** 收货地址国家码 */
|
|
24
32
|
nationalCode: string
|
|
25
|
-
/** 邮编 */
|
|
26
|
-
postalCode: string
|
|
27
|
-
/** 国标收货地址第一级地址 */
|
|
28
|
-
provinceName: string
|
|
29
33
|
/** 收货人手机号码 */
|
|
30
34
|
telNumber: string
|
|
31
|
-
/** 收货人姓名 */
|
|
32
|
-
userName: string
|
|
33
35
|
}
|
|
34
36
|
}
|
|
35
37
|
|
|
@@ -31,11 +31,11 @@ declare module '../index' {
|
|
|
31
31
|
namespace setGlobalDataPlugin {
|
|
32
32
|
/** Vue3 插件,用于设置 `getApp()` 中的全局变量 */
|
|
33
33
|
interface Plugin {
|
|
34
|
-
install
|
|
34
|
+
install(app: any, data: any): void
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
/** @ignore */
|
|
39
39
|
interface TARO_ENV_TYPE {
|
|
40
40
|
[TaroGeneral.ENV_TYPE.WEAPP]: TaroGeneral.ENV_TYPE.WEAPP
|
|
41
41
|
[TaroGeneral.ENV_TYPE.WEB]: TaroGeneral.ENV_TYPE.WEB
|
|
@@ -56,7 +56,7 @@ declare module '../index' {
|
|
|
56
56
|
type InterceptorifyInterceptor<T, R> = (chain: InterceptorifyChain<T, R>) => Promise<R>
|
|
57
57
|
interface Interceptorify<T, R> {
|
|
58
58
|
request(requestParams: T): Promise<R>
|
|
59
|
-
addInterceptor(
|
|
59
|
+
addInterceptor(interceptor: InterceptorifyInterceptor<T, R>): void
|
|
60
60
|
cleanInterceptors(): void
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -101,6 +101,29 @@ declare module '../index' {
|
|
|
101
101
|
*/
|
|
102
102
|
getAppInfo(): getAppInfo.AppInfo
|
|
103
103
|
|
|
104
|
+
getEnvInfoSync(): {
|
|
105
|
+
/** 小程序信息 */
|
|
106
|
+
microapp: {
|
|
107
|
+
/** 小程序版本号 */
|
|
108
|
+
mpVersion: string
|
|
109
|
+
/** 小程序环境 */
|
|
110
|
+
envType: string
|
|
111
|
+
/** 小程序appId */
|
|
112
|
+
appId: string
|
|
113
|
+
}
|
|
114
|
+
/** 插件信息 */
|
|
115
|
+
plugin: Record<string, unknown>
|
|
116
|
+
/** 通用参数 */
|
|
117
|
+
common: {
|
|
118
|
+
/** 用户数据存储的路径 */
|
|
119
|
+
USER_DATA_PATH: string
|
|
120
|
+
/** 校验白名单属性中的appInfoLaunchFrom后返回额外信息 */
|
|
121
|
+
location: string | undefined
|
|
122
|
+
launchFrom: string | undefined
|
|
123
|
+
schema: string | undefined
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
104
127
|
/** 小程序引用插件 JS 接口
|
|
105
128
|
* @supported weapp, alipay, h5, rn, jd, qq, swan, tt, quickapp
|
|
106
129
|
*/
|
|
@@ -130,7 +153,7 @@ declare module '../index' {
|
|
|
130
153
|
setGlobalDataPlugin: setGlobalDataPlugin.Plugin
|
|
131
154
|
|
|
132
155
|
/** 获取自定义 TabBar 对应的 React 或 Vue 组件实例
|
|
133
|
-
* @supported weapp
|
|
156
|
+
* @supported weapp, jd
|
|
134
157
|
* @param page 小程序页面对象,可以通过 Taro.getCurrentInstance().page 获取
|
|
135
158
|
*/
|
|
136
159
|
getTabBar<T>(page: getCurrentInstance.Current['page']): T | undefined
|