rc-checkbox
Advanced tools
Comparing version 2.1.4 to 2.1.5
@@ -61,2 +61,3 @@ import _extends from 'babel-runtime/helpers/extends'; | ||
name = _props.name, | ||
id = _props.id, | ||
type = _props.type, | ||
@@ -71,3 +72,3 @@ disabled = _props.disabled, | ||
value = _props.value, | ||
others = _objectWithoutProperties(_props, ['prefixCls', 'className', 'style', 'name', 'type', 'disabled', 'readOnly', 'tabIndex', 'onClick', 'onFocus', 'onBlur', 'autoFocus', 'value']); | ||
others = _objectWithoutProperties(_props, ['prefixCls', 'className', 'style', 'name', 'id', 'type', 'disabled', 'readOnly', 'tabIndex', 'onClick', 'onFocus', 'onBlur', 'autoFocus', 'value']); | ||
@@ -90,2 +91,3 @@ var globalProps = Object.keys(others).reduce(function (prev, key) { | ||
name: name, | ||
id: id, | ||
type: type, | ||
@@ -117,2 +119,3 @@ readOnly: readOnly, | ||
name: PropTypes.string, | ||
id: PropTypes.string, | ||
type: PropTypes.string, | ||
@@ -165,3 +168,5 @@ defaultChecked: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]), | ||
e.preventDefault(); | ||
} | ||
}, | ||
nativeEvent: e.nativeEvent | ||
}); | ||
@@ -168,0 +173,0 @@ }; |
@@ -93,2 +93,3 @@ 'use strict'; | ||
name = _props.name, | ||
id = _props.id, | ||
type = _props.type, | ||
@@ -103,3 +104,3 @@ disabled = _props.disabled, | ||
value = _props.value, | ||
others = (0, _objectWithoutProperties3['default'])(_props, ['prefixCls', 'className', 'style', 'name', 'type', 'disabled', 'readOnly', 'tabIndex', 'onClick', 'onFocus', 'onBlur', 'autoFocus', 'value']); | ||
others = (0, _objectWithoutProperties3['default'])(_props, ['prefixCls', 'className', 'style', 'name', 'id', 'type', 'disabled', 'readOnly', 'tabIndex', 'onClick', 'onFocus', 'onBlur', 'autoFocus', 'value']); | ||
@@ -123,2 +124,3 @@ | ||
name: name, | ||
id: id, | ||
type: type, | ||
@@ -150,2 +152,3 @@ readOnly: readOnly, | ||
name: _propTypes2['default'].string, | ||
id: _propTypes2['default'].string, | ||
type: _propTypes2['default'].string, | ||
@@ -198,3 +201,5 @@ defaultChecked: _propTypes2['default'].oneOfType([_propTypes2['default'].number, _propTypes2['default'].bool]), | ||
e.preventDefault(); | ||
} | ||
}, | ||
nativeEvent: e.nativeEvent | ||
}); | ||
@@ -201,0 +206,0 @@ }; |
{ | ||
"name": "rc-checkbox", | ||
"version": "2.1.4", | ||
"version": "2.1.5", | ||
"description": "checkbox ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
20453
442