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

rmc-cascader

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rmc-cascader - npm Package Compare versions

Comparing version 4.2.0 to 4.2.1

es/Cascader.d.ts

12

lib/Cascader.js

@@ -19,5 +19,5 @@ 'use strict';

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var Cascader = _react2["default"].createClass({
var Cascader = _react2['default'].createClass({
displayName: 'Cascader',

@@ -46,3 +46,3 @@ getDefaultProps: function getDefaultProps() {

onValueChange: function onValueChange(value, index) {
var children = (0, _arrayTreeFilter2["default"])(this.props.data, function (c, level) {
var children = (0, _arrayTreeFilter2['default'])(this.props.data, function (c, level) {
return level <= index && c.value === value[level];

@@ -84,3 +84,3 @@ });

var value = this.state.value;
var childrenTree = (0, _arrayTreeFilter2["default"])(data, function (c, level) {
var childrenTree = (0, _arrayTreeFilter2['default'])(data, function (c, level) {
return c.value === value[level];

@@ -109,6 +109,6 @@ }).map(function (c) {

return _react2["default"].createElement(_MultiPicker2["default"], { prefixCls: prefixCls, pickerPrefixCls: pickerPrefixCls, disabled: disabled, className: className, selectedValue: this.state.value, rootNativeProps: rootNativeProps, pickerItemStyle: pickerItemStyle, onValueChange: this.onValueChange }, this.getCols());
return _react2['default'].createElement(_MultiPicker2['default'], { prefixCls: prefixCls, pickerPrefixCls: pickerPrefixCls, disabled: disabled, className: className, selectedValue: this.state.value, rootNativeProps: rootNativeProps, pickerItemStyle: pickerItemStyle, onValueChange: this.onValueChange }, this.getCols());
}
});
exports["default"] = Cascader;
exports['default'] = Cascader;
module.exports = exports['default'];

@@ -12,8 +12,8 @@ 'use strict';

get: function get() {
return _interopRequireDefault(_Cascader)["default"];
return _interopRequireDefault(_Cascader)['default'];
}
});
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
module.exports = exports['default'];

@@ -15,3 +15,3 @@ 'use strict';

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

@@ -28,3 +28,3 @@ var __assign = undefined && undefined.__assign || Object.assign || function (t) {

var PopupCascader = _react2["default"].createClass({
var PopupCascader = _react2['default'].createClass({
displayName: 'PopupCascader',

@@ -50,6 +50,6 @@ getDefaultProps: function getDefaultProps() {

render: function render() {
return _react2["default"].createElement(_Popup2["default"], __assign({ picker: this.props.cascader }, this.props, { onOk: this.onOk }));
return _react2['default'].createElement(_Popup2['default'], __assign({ picker: this.props.cascader }, this.props, { onOk: this.onOk }));
}
});
exports["default"] = PopupCascader;
exports['default'] = PopupCascader;
module.exports = exports['default'];

@@ -12,8 +12,8 @@ 'use strict';

get: function get() {
return _interopRequireDefault(_PopupStyles)["default"];
return _interopRequireDefault(_PopupStyles)['default'];
}
});
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
module.exports = exports['default'];
{
"name": "rmc-cascader",
"version": "4.2.0",
"version": "4.2.1",
"description": "m-cascader ui component for react",

@@ -21,2 +21,3 @@ "keywords": [

"lib",
"es",
"assets/*.css"

@@ -26,2 +27,3 @@ ],

"main": "./lib/index",
"module": "./es/index",
"config": {

@@ -32,3 +34,3 @@ "port": 8005

"watch-tsc": "rc-tools run watch-tsc",
"compile": "rc-tools run compile",
"compile": "rc-tools run compile --babel-runtime",
"build": "rc-tools run build",

@@ -67,4 +69,4 @@ "gh-pages": "rc-tools run gh-pages",

"babel-runtime": "6.x",
"rmc-picker": "^3.8.0"
"rmc-picker": "^3.9.3"
}
}
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