nuke-helper
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -30,3 +30,3 @@ # demo | ||
<Text>border:{JSON.stringify(borderSeperate({ borderWidth: 1, borderTopWidth: 3 }))}</Text> | ||
<Text>font:{JSON.stringify(calcTextSize( {fontSize: 28}))}</Text> | ||
<Text>font:{JSON.stringify(calcTextSize( {fontSize: '28rem'}))}</Text> | ||
</View> | ||
@@ -33,0 +33,0 @@ |
# Changelog | ||
## 0.0.4 / 2017-12-18 | ||
* [[2a07625](http://gitlab.alibaba-inc.com/nuke/helper/commit/2a076254467c62e045958d844a54f003e1e2494a)] - `fix` fix parse error | ||
## 0.0.3 / 2017-12-18 | ||
@@ -5,0 +9,0 @@ |
@@ -18,3 +18,3 @@ 'use strict'; | ||
if (typeof fontSize === 'string' && fontSize.indexOf('rem') > 0 || typeof fontSize === 'number') { | ||
fontSize = Math.floor(+fontSize / 2); | ||
fontSize = Math.floor(parseInt(fontSize, 10) / 2); | ||
} | ||
@@ -21,0 +21,0 @@ result.fontSize = fontSize + (_universalEnv.isWeb ? 'px' : 'wx'); |
{ | ||
"name": "nuke-helper", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "辅助函数", | ||
@@ -5,0 +5,0 @@ "main": "lib/index", |
9937