@tarojs/api 4.0.0-beta.9 → 4.0.0-beta.90
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/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/taro.js +2 -2
- package/dist/tools.js +2 -2
- package/package.json +3 -3
package/dist/index.cjs.js
CHANGED
|
@@ -194,9 +194,9 @@ function getPxTransform(taro) {
|
|
|
194
194
|
const config = taro.config || {};
|
|
195
195
|
const baseFontSize = config.baseFontSize;
|
|
196
196
|
const deviceRatio = config.deviceRatio || defaultDesignRatio;
|
|
197
|
-
const designWidth = ((
|
|
197
|
+
const designWidth = ((input = 0) => shared.isFunction(config.designWidth)
|
|
198
198
|
? config.designWidth(input)
|
|
199
|
-
: config.designWidth || defaultDesignWidth)
|
|
199
|
+
: config.designWidth || defaultDesignWidth)(size);
|
|
200
200
|
if (!(designWidth in deviceRatio)) {
|
|
201
201
|
throw new Error(`deviceRatio 配置中不存在 ${designWidth} 的设置!`);
|
|
202
202
|
}
|
package/dist/index.esm.js
CHANGED
|
@@ -192,9 +192,9 @@ function getPxTransform(taro) {
|
|
|
192
192
|
const config = taro.config || {};
|
|
193
193
|
const baseFontSize = config.baseFontSize;
|
|
194
194
|
const deviceRatio = config.deviceRatio || defaultDesignRatio;
|
|
195
|
-
const designWidth = ((
|
|
195
|
+
const designWidth = ((input = 0) => isFunction(config.designWidth)
|
|
196
196
|
? config.designWidth(input)
|
|
197
|
-
: config.designWidth || defaultDesignWidth)
|
|
197
|
+
: config.designWidth || defaultDesignWidth)(size);
|
|
198
198
|
if (!(designWidth in deviceRatio)) {
|
|
199
199
|
throw new Error(`deviceRatio 配置中不存在 ${designWidth} 的设置!`);
|
|
200
200
|
}
|
package/dist/taro.js
CHANGED
|
@@ -195,9 +195,9 @@
|
|
|
195
195
|
const config = taro.config || {};
|
|
196
196
|
const baseFontSize = config.baseFontSize;
|
|
197
197
|
const deviceRatio = config.deviceRatio || defaultDesignRatio;
|
|
198
|
-
const designWidth = ((
|
|
198
|
+
const designWidth = ((input = 0) => shared.isFunction(config.designWidth)
|
|
199
199
|
? config.designWidth(input)
|
|
200
|
-
: config.designWidth || defaultDesignWidth)
|
|
200
|
+
: config.designWidth || defaultDesignWidth)(size);
|
|
201
201
|
if (!(designWidth in deviceRatio)) {
|
|
202
202
|
throw new Error(`deviceRatio 配置中不存在 ${designWidth} 的设置!`);
|
|
203
203
|
}
|
package/dist/tools.js
CHANGED
|
@@ -37,9 +37,9 @@ function getPxTransform(taro) {
|
|
|
37
37
|
const config = taro.config || {};
|
|
38
38
|
const baseFontSize = config.baseFontSize;
|
|
39
39
|
const deviceRatio = config.deviceRatio || defaultDesignRatio;
|
|
40
|
-
const designWidth = ((
|
|
40
|
+
const designWidth = ((input = 0) => isFunction(config.designWidth)
|
|
41
41
|
? config.designWidth(input)
|
|
42
|
-
: config.designWidth || defaultDesignWidth)
|
|
42
|
+
: config.designWidth || defaultDesignWidth)(size);
|
|
43
43
|
if (!(designWidth in deviceRatio)) {
|
|
44
44
|
throw new Error(`deviceRatio 配置中不存在 ${designWidth} 的设置!`);
|
|
45
45
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/api",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.90",
|
|
4
4
|
"description": "Taro common API",
|
|
5
5
|
"author": "yuche <i@yuche.me>",
|
|
6
6
|
"homepage": "https://github.com/nervjs/taro/tree/master/packages/api#readme",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@babel/runtime": "^7.14.5",
|
|
29
|
-
"@tarojs/runtime": "4.0.0-beta.
|
|
30
|
-
"@tarojs/shared": "4.0.0-beta.
|
|
29
|
+
"@tarojs/runtime": "4.0.0-beta.90",
|
|
30
|
+
"@tarojs/shared": "4.0.0-beta.90"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@babel/core": "^7.14.5",
|