@tarojs/taro 3.5.6-alpha.0 → 3.5.6-alpha.2

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.6-alpha.0",
3
+ "version": "3.5.6-alpha.2",
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.6-alpha.0",
25
- "@tarojs/runtime": "3.5.6-alpha.0"
24
+ "@tarojs/api": "3.5.6-alpha.2",
25
+ "@tarojs/runtime": "3.5.6-alpha.2"
26
26
  },
27
27
  "peerDependenciesMeta": {
28
28
  "@types/react": {
@@ -195,6 +195,10 @@ declare module '../../index' {
195
195
  fail?: (res: TaroGeneral.CallbackResult) => void
196
196
  /** 压缩质量,范围0~100,数值越小,质量越低,压缩率越高(仅对jpg有效)。 */
197
197
  quality?: number
198
+ /** 压缩后图片的宽度,单位为px,若不填写则默认以 compressedHeight 为准等比缩放。 */
199
+ compressedWidth?: number
200
+ /** 压缩后图片的高度,单位为px,若不填写则默认以 compressedWidth 为准等比缩放。 */
201
+ compressHeight?: number
198
202
  /** 接口调用成功的回调函数 */
199
203
  success?: (result: SuccessCallbackResult) => void
200
204
  }