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

rmc-cascader

Package Overview
Dependencies
Maintainers
2
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 2.2.4 to 2.2.5

11

lib/Cascader.web.js

@@ -7,2 +7,6 @@ 'use strict';

var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _react = require('react');

@@ -24,6 +28,6 @@

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj; return newObj; } }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj; return newObj; } }
var Cascader = React.createClass({

@@ -47,2 +51,3 @@ displayName: 'Cascader',

var className = props.className;
var rootNativeProps = props.rootNativeProps;

@@ -64,3 +69,3 @@ var value = this.state.value;

'div',
{ className: (0, _classnames2["default"])(className, prefixCls) },
(0, _extends3["default"])({}, rootNativeProps, { className: (0, _classnames2["default"])(className, prefixCls) }),
cols

@@ -67,0 +72,0 @@ );

@@ -14,2 +14,4 @@ export declare type CascaderOneValue = string | number;

cols?: number;
disabled?: boolean;
rootNativeProps?: {};
/** web only */

@@ -16,0 +18,0 @@ prefixCls?: string;

@@ -6,2 +6,4 @@ import * as React from 'react';

popupPrefixCls?: string;
pickerRootNativeProps?: {};
rootNativeProps?: {};
pickerPrefixCls?: string;

@@ -8,0 +10,0 @@ visible?: boolean;

@@ -43,2 +43,3 @@ 'use strict';

popupPrefixCls: 1,
pickerRootNativeProps: 1,
pickerPrefixCls: 1,

@@ -117,2 +118,3 @@ visible: 1,

var value = _props.value;
var pickerRootNativeProps = _props.pickerRootNativeProps;

@@ -128,2 +130,5 @@ var extraProps = {

}
if (pickerRootNativeProps) {
extraProps.rootNativeProps = pickerRootNativeProps;
}
return React.createElement(_Cascader2["default"], (0, _extends3["default"])({ value: this.state.pickerValue || value, cols: cols, onChange: this.onPickerChange }, extraProps));

@@ -130,0 +135,0 @@ };

@@ -6,5 +6,14 @@ "use strict";

});
exports.COLS = undefined;
var _keys = require("babel-runtime/core-js/object/keys");
var _keys2 = _interopRequireDefault(_keys);
exports.getDefaultValue = getDefaultValue;
exports.exclude = exclude;
exports.noop = noop;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function getDefaultValue(d, val, cols) {

@@ -28,3 +37,3 @@ var data = d;

var ret = {};
Object.keys(props).forEach(function (k) {
(0, _keys2["default"])(props).forEach(function (k) {
if (!bl[k]) {

@@ -31,0 +40,0 @@ ret[k] = props[k];

{
"name": "rmc-cascader",
"version": "2.2.4",
"version": "2.2.5",
"description": "m-cascader ui component for react",

@@ -5,0 +5,0 @@ "keywords": [

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