@tarojs/taro-h5 3.6.26-alpha.2 → 3.6.27
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/api/device/calendar.js.map +1 -1
- package/dist/api/location/chooseLocation.js.map +1 -1
- package/dist/api/location/locationChange.js.map +1 -1
- package/dist/api/media/audio/InnerAudioContext.js.map +1 -1
- package/dist/api/media/background-audio/BackgroundAudioManager.js.map +1 -1
- package/dist/api/media/video/chooseMedia.js.map +1 -1
- package/dist/api/network/upload.js.map +1 -1
- package/dist/api/taro.js +2 -2
- package/dist/api/taro.js.map +1 -1
- package/dist/api/wxml/IntersectionObserver.js.map +1 -1
- package/dist/api/wxml/MediaQueryObserver.js.map +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +7 -7
package/dist/index.esm.js
CHANGED
|
@@ -6043,9 +6043,9 @@ const pxTransform = function (size = 0) {
|
|
|
6043
6043
|
const config = getConfig.call(this);
|
|
6044
6044
|
const baseFontSize = config.baseFontSize || defaultBaseFontSize;
|
|
6045
6045
|
const deviceRatio = config.deviceRatio || defaultDesignRatio;
|
|
6046
|
-
const designWidth = ((
|
|
6046
|
+
const designWidth = ((input = 0) => isFunction(config.designWidth)
|
|
6047
6047
|
? config.designWidth(input)
|
|
6048
|
-
: config.designWidth)
|
|
6048
|
+
: config.designWidth)(size);
|
|
6049
6049
|
if (!(designWidth in config.deviceRatio)) {
|
|
6050
6050
|
throw new Error(`deviceRatio 配置中不存在 ${designWidth} 的设置!`);
|
|
6051
6051
|
}
|