@cicada/render
Advanced tools
Comparing version 1.1.8-alpha6 to 1.1.8-alpha7
@@ -31,3 +31,3 @@ 'use strict'; | ||
var content = (0, _util.reduce)(style, function (arr, o, key) { | ||
return arr.concat(toLowerCaseKey(key) + ': ' + o); | ||
return arr.concat(toLowerCaseKey(key) + ': ' + (typeof o === 'number' ? o + 'px' : o)); | ||
}, []).join('; '); | ||
@@ -34,0 +34,0 @@ return '{ ' + content + ' }'; |
@@ -54,7 +54,8 @@ 'use strict'; | ||
var children = _ref.children, | ||
props = _ref.props, | ||
_ref$props = _ref.props, | ||
props = _ref$props === undefined ? {} : _ref$props, | ||
listeners = _ref.listeners; | ||
return _react2.default.createElement( | ||
Tag, | ||
(0, _extends3.default)({}, props, listeners), | ||
(0, _extends3.default)({}, (0, _util.pick)(props, ['style', 'className']), listeners), | ||
children | ||
@@ -61,0 +62,0 @@ ); |
{ | ||
"name": "@cicada/render", | ||
"version": "1.1.8-alpha6", | ||
"version": "1.1.8-alpha7", | ||
"main": "./lib/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
367571
8924