add checkbox wrapper state classname

This commit is contained in:
wa1k3r 2018-11-20 15:10:50 +08:00 committed by 偏右
parent ddb331a6a9
commit 7038b9215d

View File

@ -97,6 +97,8 @@ export default class Checkbox extends React.Component<CheckboxProps, {}, {}> {
}
const classString = classNames(className, {
[`${prefixCls}-wrapper`]: true,
[`${prefixCls}-wrapper-checked`]: checkboxProps.checked,
[`${prefixCls}-wrapper-disabled`]: checkboxProps.disabled,
});
const checkboxClass = classNames({
[`${prefixCls}-indeterminate`]: indeterminate,