rb-component
Advanced tools
Comparing version 0.2.20 to 0.2.21
@@ -114,3 +114,3 @@ 'use strict'; | ||
}), | ||
'全部' | ||
this.props.allLabel() | ||
) | ||
@@ -175,3 +175,4 @@ ); | ||
itemRef: _react2.default.PropTypes.func, | ||
contentRef: _react2.default.PropTypes.func | ||
contentRef: _react2.default.PropTypes.func, | ||
allLabel: _react2.default.PropTypes.func | ||
}; | ||
@@ -186,4 +187,7 @@ CheckboxGroup.defaultProps = { | ||
defaultCheckedValues: [], | ||
label: '' | ||
label: '', | ||
allLabel: function allLabel() { | ||
return '全部'; | ||
} | ||
}; | ||
exports.default = CheckboxGroup; |
@@ -97,3 +97,3 @@ 'use strict'; | ||
}), | ||
'全部' | ||
this.props.allLabel() | ||
) | ||
@@ -152,8 +152,12 @@ ); | ||
items: _react2.default.PropTypes.array.isRequired, | ||
onChange: _react2.default.PropTypes.func.isRequired | ||
onChange: _react2.default.PropTypes.func.isRequired, | ||
allLabel: _react2.default.PropTypes.func | ||
}; | ||
RBRadioGroup.defaultProps = { | ||
checkAll: false | ||
checkAll: false, | ||
allLabel: function allLabel() { | ||
return '全部'; | ||
} | ||
}; | ||
exports.default = RBRadioGroup; | ||
exports.RBRadioGroup = RBRadioGroup; |
{ | ||
"name": "rb-component", | ||
"version": "0.2.20", | ||
"version": "0.2.21", | ||
"description": "components built with React", | ||
@@ -5,0 +5,0 @@ "repository": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
144300
3135
4