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.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

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