Comparing version 1.0.0 to 1.0.1
22
index.js
@@ -332,7 +332,2 @@ 'use strict'; | ||
if (_this3.props.rotateEffect) { | ||
Array.prototype.forEach.call(col.items, function (itemNode) { | ||
(0, _transition.setTransitionDur)(itemNode, transition); | ||
}); | ||
} | ||
var selectedItem = col.items[activeIndex]; | ||
@@ -616,10 +611,15 @@ selectedItem.classList.add('active'); | ||
var others = _objectWithoutProperties(_props3, ['onChange', 'cols', 'readOnly', 'value', 'defaultValue', 'className']); | ||
var others = _objectWithoutProperties(_props3, ['onChange', 'cols', 'readOnly', 'value', 'defaultValue', 'className', 'updateValuesOnMomentum', 'updateValuesOnTouchmove', 'onOpen', 'onClose', 'toolbar', 'toolbarTitle', 'showSubmitBtn', 'showClearBtn', 'momentumRatio', 'freeMode']); | ||
var clazz = (0, _classnames2.default)('picker-input', className); | ||
others.__extraDOM = this.renderMask(); | ||
others.onClick = _util2.default.createChainedFunction(this.handleInputClick, others.onClick); | ||
var __extraDOM = this.renderMask(); | ||
others.onTouchStart = _util2.default.createChainedFunction(this.handleInputClick, others.onClick); | ||
return _react2.default.createElement('input', _extends({ ref: 'inputRef', className: clazz, readOnly: true, value: this.state.inputValue }, others)); | ||
return _react2.default.createElement( | ||
'div', | ||
{ }, | ||
__extraDOM || null, | ||
_react2.default.createElement('input', _extends({ ref: 'inputRef', className: clazz, readOnly: true, value: this.state.inputValue }, others)) | ||
) | ||
} | ||
@@ -658,3 +658,2 @@ }], [{ | ||
updateValuesOnTouchmove: _react.PropTypes.bool, | ||
rotateEffect: _react.PropTypes.bool, | ||
momentumRatio: _react.PropTypes.number, | ||
@@ -675,4 +674,3 @@ freeMode: _react.PropTypes.bool | ||
updateValuesOnTouchmove: true, | ||
rotateEffect: false, | ||
momentumRatio: 7, | ||
momentumRatio: 5, | ||
freeMode: false | ||
@@ -679,0 +677,0 @@ }; |
{ | ||
"name": "m-picker", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "m-picker 模拟ios原生select的选择器", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
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
48957
567