feat(CheckboxGroup): add checked-color prop (#4531)

This commit is contained in:
neverland
2019-09-22 17:36:39 +08:00
committed by GitHub
parent 3f4ec83145
commit a64c607d71
6 changed files with 34 additions and 10 deletions

View File

@@ -28,7 +28,7 @@ export const CheckboxMixin = ({ parent, bem, role }) => ({
},
iconStyle() {
const { checkedColor } = this;
const checkedColor = this.checkedColor || (this.parent && this.parent.checkedColor);
if (checkedColor && this.checked && !this.isDisabled) {
return {
borderColor: checkedColor,