rmc-picker
Advanced tools
Comparing version 4.0.3 to 4.0.4
@@ -123,3 +123,4 @@ import _defineProperty from 'babel-runtime/helpers/defineProperty'; | ||
_props$indicatorClass = props.indicatorClassName, | ||
indicatorClassName = _props$indicatorClass === undefined ? '' : _props$indicatorClass; | ||
indicatorClassName = _props$indicatorClass === undefined ? '' : _props$indicatorClass, | ||
children = props.children; | ||
var selectedValue = this.state.selectedValue; | ||
@@ -129,4 +130,3 @@ | ||
var selectedItemClassName = itemClassName + ' ' + prefixCls + '-item-selected'; | ||
// compatibility for preact | ||
var items = [].concat(props.children).map(function (item) { | ||
var map = function map(item) { | ||
var _item$props = item.props, | ||
@@ -143,3 +143,5 @@ _item$props$className = _item$props.className, | ||
); | ||
}); | ||
}; | ||
// compatibility for preact | ||
var items = React.Children ? React.Children.map(children, map) : [].concat(children).map(map); | ||
var pickerCls = (_pickerCls = {}, _defineProperty(_pickerCls, props.className, !!props.className), _defineProperty(_pickerCls, prefixCls, true), _pickerCls); | ||
@@ -146,0 +148,0 @@ return React.createElement( |
@@ -152,3 +152,4 @@ 'use strict'; | ||
_props$indicatorClass = props.indicatorClassName, | ||
indicatorClassName = _props$indicatorClass === undefined ? '' : _props$indicatorClass; | ||
indicatorClassName = _props$indicatorClass === undefined ? '' : _props$indicatorClass, | ||
children = props.children; | ||
var selectedValue = this.state.selectedValue; | ||
@@ -158,4 +159,3 @@ | ||
var selectedItemClassName = itemClassName + ' ' + prefixCls + '-item-selected'; | ||
// compatibility for preact | ||
var items = [].concat(props.children).map(function (item) { | ||
var map = function map(item) { | ||
var _item$props = item.props, | ||
@@ -172,3 +172,5 @@ _item$props$className = _item$props.className, | ||
); | ||
}); | ||
}; | ||
// compatibility for preact | ||
var items = _react2['default'].Children ? _react2['default'].Children.map(children, map) : [].concat(children).map(map); | ||
var pickerCls = (_pickerCls = {}, (0, _defineProperty3['default'])(_pickerCls, props.className, !!props.className), (0, _defineProperty3['default'])(_pickerCls, prefixCls, true), _pickerCls); | ||
@@ -175,0 +177,0 @@ return _react2['default'].createElement( |
{ | ||
"name": "rmc-picker", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"description": "React Mobile Picker Component(web and react-native)", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84616
2207