nuke-helper
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -31,2 +31,3 @@ # demo | ||
<Text>font:{JSON.stringify(calcTextSize( {fontSize: '28rem'}))}</Text> | ||
<Text>font:{JSON.stringify(calcTextSize( {fontSize: '14px'}))}</Text> | ||
</View> | ||
@@ -33,0 +34,0 @@ |
# Changelog | ||
## 0.0.5 / 2017-12-25 | ||
* [[e26c23c](http://gitlab.alibaba-inc.com/nuke/helper/commit/e26c23cfffee19800d0cc9773ddcd741af4ba8b0)] - `fix` add px string support | ||
## 0.0.4 / 2017-12-18 | ||
@@ -5,0 +9,0 @@ |
@@ -20,2 +20,5 @@ 'use strict'; | ||
} | ||
if (typeof fontSize === 'string' && fontSize.indexOf('px') > 0) { | ||
fontSize = parseInt(fontSize, 10); | ||
} | ||
result.fontSize = fontSize + (_universalEnv.isWeb ? 'px' : 'wx'); | ||
@@ -22,0 +25,0 @@ return result; |
{ | ||
"name": "nuke-helper", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "辅助函数", | ||
@@ -5,0 +5,0 @@ "main": "lib/index", |
10289
169