rmc-cascader
Advanced tools
Comparing version 4.2.0 to 4.2.1
@@ -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" | ||
} | ||
} |
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
19035
24
385
Updatedrmc-picker@^3.9.3