Comparing version 1.0.2 to 1.1.0
40
index.js
@@ -20,2 +20,6 @@ 'use strict'; | ||
var _PropTypes = require('prop-types'); | ||
var _PropTypes2 = _interopRequireDefault(_PropTypes); | ||
var _maskM = require('m-mask'); | ||
@@ -634,23 +638,23 @@ | ||
Picker.propTypes = { | ||
onOpen: _react.PropTypes.func, | ||
onClose: _react.PropTypes.func, | ||
defaultValue: _react.PropTypes.array, | ||
onOpen: _PropTypes2.default.PropTypes.func, | ||
onClose: _PropTypes2.default.PropTypes.func, | ||
defaultValue: _PropTypes2.default.PropTypes.array, | ||
toolbar: _react.PropTypes.bool, // 是否显示toolbar | ||
toolbarTitle: _react.PropTypes.node, | ||
showSubmitBtn: _react.PropTypes.bool, | ||
showClearBtn: _react.PropTypes.bool, | ||
toolbar: _PropTypes2.default.PropTypes.bool, // 是否显示toolbar | ||
toolbarTitle: _PropTypes2.default.PropTypes.node, | ||
showSubmitBtn: _PropTypes2.default.PropTypes.bool, | ||
showClearBtn: _PropTypes2.default.PropTypes.bool, | ||
cols: _react.PropTypes.arrayOf(_react.PropTypes.shape({ | ||
className: _react.PropTypes.string, // 用于给某个col加上特定的样式 | ||
textAlign: _react.PropTypes.oneOf(['left', 'right', 'center']), | ||
values: _react.PropTypes.array, | ||
displayValues: _react.PropTypes.array | ||
cols: _PropTypes2.default.arrayOf(_PropTypes2.default.shape({ | ||
className: _PropTypes2.default.string, // 用于给某个col加上特定的样式 | ||
textAlign: _PropTypes2.default.oneOf(['left', 'right', 'center']), | ||
values: _PropTypes2.default.array, | ||
displayValues: _PropTypes2.default.array | ||
})).isRequired, | ||
formatValue: _react.PropTypes.func, // (this, value, displayValue) | ||
updateValuesOnMomentum: _react.PropTypes.bool, | ||
updateValuesOnTouchmove: _react.PropTypes.bool, | ||
momentumRatio: _react.PropTypes.number, | ||
freeMode: _react.PropTypes.bool | ||
formatValue: _PropTypes2.default.func, // (this, value, displayValue) | ||
updateValuesOnMomentum: _PropTypes2.default.bool, | ||
updateValuesOnTouchmove: _PropTypes2.default.bool, | ||
momentumRatio: _PropTypes2.default.number, | ||
freeMode: _PropTypes2.default.bool | ||
}; | ||
@@ -669,3 +673,3 @@ | ||
updateValuesOnTouchmove: true, | ||
momentumRatio: 5, | ||
momentumRatio: 7, | ||
freeMode: false | ||
@@ -672,0 +676,0 @@ }; |
{ | ||
"name": "m-picker", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "m-picker 模拟ios原生select的选择器", | ||
@@ -29,7 +29,8 @@ "main": "index.js", | ||
"dependencies": { | ||
"react": "~15.2.0", | ||
"react-dom": "~15.2.0", | ||
"react": "~15.5.4", | ||
"react-dom": "~15.5.4", | ||
"prop-types": "^15.5.8", | ||
"m-base": "^1.0.0", | ||
"m-mask": "^1.0.0", | ||
"m-input": "^1.0.0", | ||
"m-mask": "^1.1.0", | ||
"m-input": "^1.1.0", | ||
"classnames": "~2.2.3" | ||
@@ -36,0 +37,0 @@ }, |
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
48871
565
7
+ Addedprop-types@^15.5.8
+ Addedprop-types@15.5.10(transitive)
+ Addedreact-dom@15.5.4(transitive)
- Removedm-input@1.0.1(transitive)
- Removedreact@15.2.1(transitive)
- Removedreact-dom@15.2.1(transitive)
Updatedm-input@^1.1.0
Updatedm-mask@^1.1.0
Updatedreact@~15.5.4
Updatedreact-dom@~15.5.4