@tarojs/taro 3.6.19 → 3.6.21
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/html.css +9 -0
- package/package.json +4 -4
- package/types/api/device/battery.d.ts +1 -1
- package/types/api/device/clipboard.d.ts +16 -16
- package/types/api/files/index.d.ts +6 -6
- package/types/api/navigate/index.d.ts +2 -0
- package/types/api/wxml/index.d.ts +2 -2
- package/types/taro.component.d.ts +1 -0
package/html.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/taro",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.21",
|
|
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.
|
|
25
|
-
"@tarojs/runtime": "3.6.
|
|
24
|
+
"@tarojs/api": "3.6.21",
|
|
25
|
+
"@tarojs/runtime": "3.6.21"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@tarojs/helper": "3.6.
|
|
28
|
+
"@tarojs/helper": "3.6.21"
|
|
29
29
|
},
|
|
30
30
|
"peerDependenciesMeta": {
|
|
31
31
|
"@types/react": {
|
|
@@ -60,22 +60,22 @@ declare module '../../index' {
|
|
|
60
60
|
* ```
|
|
61
61
|
* @see https://developers.weixin.qq.com/miniprogram/dev/api/device/clipboard/wx.setClipboardData.html
|
|
62
62
|
*/
|
|
63
|
-
|
|
63
|
+
setClipboardData(option: setClipboardData.Option): Promise<setClipboardData.Promised>
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
65
|
+
/**
|
|
66
|
+
* 获取系统剪贴板内容
|
|
67
|
+
* @supported weapp, swan, jd, qq, h5, rn, tt
|
|
68
|
+
* @h5 部分实现
|
|
69
|
+
* @example
|
|
70
|
+
* ```tsx
|
|
71
|
+
* Taro.getClipboardData({
|
|
72
|
+
* success: function (res){
|
|
73
|
+
* console.log(res.data)
|
|
74
|
+
* }
|
|
75
|
+
* })
|
|
76
|
+
* ```
|
|
77
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/api/device/clipboard/wx.getClipboardData.html
|
|
78
|
+
*/
|
|
79
|
+
getClipboardData(res?: getClipboardData.Option): Promise<getClipboardData.Promised>
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -27,7 +27,7 @@ declare module '../../index' {
|
|
|
27
27
|
/** 要保存的本地临时文件路径
|
|
28
28
|
* @supported alipay
|
|
29
29
|
*/
|
|
30
|
-
apFilePath
|
|
30
|
+
apFilePath?: string
|
|
31
31
|
/** 接口调用成功的回调函数 */
|
|
32
32
|
success?: (result: SuccessCallbackResult) => void
|
|
33
33
|
}
|
|
@@ -127,7 +127,7 @@ declare module '../../index' {
|
|
|
127
127
|
/** 文件路径
|
|
128
128
|
* @supported alipay
|
|
129
129
|
*/
|
|
130
|
-
apFilePath
|
|
130
|
+
apFilePath?: string
|
|
131
131
|
/** 本地文件大小,以字节为单位 */
|
|
132
132
|
size: number
|
|
133
133
|
}
|
|
@@ -140,7 +140,7 @@ declare module '../../index' {
|
|
|
140
140
|
/** 文件路径
|
|
141
141
|
* @supported alipay
|
|
142
142
|
*/
|
|
143
|
-
apFilePath
|
|
143
|
+
apFilePath?: string
|
|
144
144
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
145
145
|
complete?: (res: TaroGeneral.CallbackResult) => void
|
|
146
146
|
/** 接口调用失败的回调函数 */
|
|
@@ -165,7 +165,7 @@ declare module '../../index' {
|
|
|
165
165
|
/** 本地文件路径
|
|
166
166
|
* @supported alipay
|
|
167
167
|
*/
|
|
168
|
-
apFilePath
|
|
168
|
+
apFilePath?: string
|
|
169
169
|
/**
|
|
170
170
|
* 计算文件摘要的算法
|
|
171
171
|
* @default 'md5'
|
|
@@ -664,7 +664,7 @@ declare module '../../index' {
|
|
|
664
664
|
/** 创建的目录路径 */
|
|
665
665
|
dirPath: string
|
|
666
666
|
/** 是否在递归创建该目录的上级目录后再创建该目录。如果对应的上级目录已经存在,则不创建该上级目录。
|
|
667
|
-
* 如 dirPath 为 a/b/c/d 且 recursive 为 true,将创建 a 目录,再在 a 目录下创建 b 目录,以此类推直至创建 a/b/c 目录下的 d 目录。
|
|
667
|
+
* 如 dirPath 为 a/b/c/d 且 recursive 为 true,将创建 a 目录,再在 a 目录下创建 b 目录,以此类推直至创建 a/b/c 目录下的 d 目录。
|
|
668
668
|
* @default false
|
|
669
669
|
*/
|
|
670
670
|
recursive?: boolean
|
|
@@ -818,7 +818,7 @@ declare module '../../index' {
|
|
|
818
818
|
/** 本地缓存文件路径
|
|
819
819
|
* @supported alipay
|
|
820
820
|
*/
|
|
821
|
-
apFilePath
|
|
821
|
+
apFilePath?: string
|
|
822
822
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
823
823
|
complete?: (res: TaroGeneral.CallbackResult) => void
|
|
824
824
|
/** 接口调用失败的回调函数 */
|
|
@@ -17,6 +17,8 @@ declare module '../../index' {
|
|
|
17
17
|
verify?: keyof Verify
|
|
18
18
|
/** 不 reLaunch 目标小程序,直接打开目标跳转的小程序退后台时的页面,需满足以下条件:1. 目标跳转的小程序生命周期未被销毁;2. 且目标当次启动的path、query、apiCategory与上次启动相同。默认值为 false 。 */
|
|
19
19
|
noRelaunchIfPathUnchanged?: boolean
|
|
20
|
+
/** 打开的小程序是否支持全屏 */
|
|
21
|
+
allowFullScreen?: boolean
|
|
20
22
|
/** 接口调用成功的回调函数 */
|
|
21
23
|
success?: (res: TaroGeneral.CallbackResult) => void
|
|
22
24
|
/** 接口调用失败的回调函数 */
|
|
@@ -503,7 +503,7 @@ declare module '../../index' {
|
|
|
503
503
|
* @supported weapp, h5, tt
|
|
504
504
|
* @example
|
|
505
505
|
* ```tsx
|
|
506
|
-
* const
|
|
506
|
+
* const observer = Taro.createIntersectionObserver(this, { thresholds: [0], observeAll: true })
|
|
507
507
|
* ```
|
|
508
508
|
* @see https://developers.weixin.qq.com/miniprogram/dev/api/wxml/wx.createIntersectionObserver.html
|
|
509
509
|
*/
|
|
@@ -525,7 +525,7 @@ declare module '../../index' {
|
|
|
525
525
|
* } else if (process.env.TARO_ENV === 'h5') {
|
|
526
526
|
* createMediaQueryObserver= Taro.createMediaQueryObserver
|
|
527
527
|
* }
|
|
528
|
-
* const mediaQueryObserver = createMediaQueryObserver()
|
|
528
|
+
* const mediaQueryObserver = createMediaQueryObserver()
|
|
529
529
|
* ```
|
|
530
530
|
* @see https://developers.weixin.qq.com/miniprogram/dev/framework/view/resizable.html#Media%20Query
|
|
531
531
|
*/
|
|
@@ -51,6 +51,7 @@ declare module './index' {
|
|
|
51
51
|
onReachBottom?(): void
|
|
52
52
|
onResize?(opt: PageResizeObject): void
|
|
53
53
|
onShareAppMessage?(opt: ShareAppMessageObject): ShareAppMessageReturn
|
|
54
|
+
onShareTimeline?(): ShareTimelineReturnObject
|
|
54
55
|
onTabItemTap?(opt: TabItemTapObject): void
|
|
55
56
|
onTitleClick?(): void
|
|
56
57
|
onUnload(): void
|