Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

m-picker

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

m-picker - npm Package Compare versions

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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc