rmc-cascader
Advanced tools
Comparing version 2.2.3 to 2.2.4
@@ -60,3 +60,3 @@ 'use strict'; | ||
_this.onPickerChange = function (value) { | ||
console.log('inner onPickerChange', value); | ||
// console.log('inner onPickerChange', value); | ||
_this.setState({ | ||
@@ -72,4 +72,4 @@ pickerValue: value | ||
var data = _this$props.data; | ||
// console.log('inner onOk', this.state.pickerValue); | ||
console.log('inner onOk', _this.state.pickerValue); | ||
_this.props.onChange((0, _utils.getDefaultValue)(data, _this.state.pickerValue || value, cols).filter(function (c) { | ||
@@ -76,0 +76,0 @@ return !!c; |
@@ -6,14 +6,5 @@ "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) { | ||
@@ -37,3 +28,3 @@ var data = d; | ||
var ret = {}; | ||
(0, _keys2["default"])(props).forEach(function (k) { | ||
Object.keys(props).forEach(function (k) { | ||
if (!bl[k]) { | ||
@@ -40,0 +31,0 @@ ret[k] = props[k]; |
{ | ||
"name": "rmc-cascader", | ||
"version": "2.2.3", | ||
"version": "2.2.4", | ||
"description": "m-cascader ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
21919
445