@tarojs/taro 3.6.20 → 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 CHANGED
@@ -128,6 +128,15 @@
128
128
  font-size: 0.75em;
129
129
  }
130
130
 
131
+ .h5-h1,
132
+ .h5-h2,
133
+ .h5-h3,
134
+ .h5-h4,
135
+ .h5-h5,
136
+ .h5-h6 {
137
+ line-height: 1;
138
+ }
139
+
131
140
  .h5-h1,
132
141
  .h5-h2,
133
142
  .h5-h3,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/taro",
3
- "version": "3.6.20",
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.20",
25
- "@tarojs/runtime": "3.6.20"
24
+ "@tarojs/api": "3.6.21",
25
+ "@tarojs/runtime": "3.6.21"
26
26
  },
27
27
  "devDependencies": {
28
- "@tarojs/helper": "3.6.20"
28
+ "@tarojs/helper": "3.6.21"
29
29
  },
30
30
  "peerDependenciesMeta": {
31
31
  "@types/react": {
@@ -6,7 +6,7 @@ declare module '../../index' {
6
6
  /** 是否正在充电中 */
7
7
  isCharging: boolean
8
8
  /** 设备电量,范围 1 - 100 */
9
- level: string
9
+ level: number
10
10
  }
11
11
  }
12
12
 
@@ -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
- setClipboardData(option: setClipboardData.Option): Promise<setClipboardData.Promised>
63
+ setClipboardData(option: setClipboardData.Option): Promise<setClipboardData.Promised>
64
64
 
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>
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: string
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: string
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: string
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: string
168
+ apFilePath?: string
169
169
  /**
170
170
  * 计算文件摘要的算法
171
171
  * @default 'md5'
@@ -818,7 +818,7 @@ declare module '../../index' {
818
818
  /** 本地缓存文件路径
819
819
  * @supported alipay
820
820
  */
821
- apFilePath: string
821
+ apFilePath?: string
822
822
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
823
823
  complete?: (res: TaroGeneral.CallbackResult) => void
824
824
  /** 接口调用失败的回调函数 */
@@ -503,7 +503,7 @@ declare module '../../index' {
503
503
  * @supported weapp, h5, tt
504
504
  * @example
505
505
  * ```tsx
506
- * const observer = Taro.createIntersectionObserver(this, { thresholds: [0], observeAll: true })
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