mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
add checkbox wrapper state classname
This commit is contained in:
parent
ddb331a6a9
commit
7038b9215d
@ -97,6 +97,8 @@ export default class Checkbox extends React.Component<CheckboxProps, {}, {}> {
|
|||||||
}
|
}
|
||||||
const classString = classNames(className, {
|
const classString = classNames(className, {
|
||||||
[`${prefixCls}-wrapper`]: true,
|
[`${prefixCls}-wrapper`]: true,
|
||||||
|
[`${prefixCls}-wrapper-checked`]: checkboxProps.checked,
|
||||||
|
[`${prefixCls}-wrapper-disabled`]: checkboxProps.disabled,
|
||||||
});
|
});
|
||||||
const checkboxClass = classNames({
|
const checkboxClass = classNames({
|
||||||
[`${prefixCls}-indeterminate`]: indeterminate,
|
[`${prefixCls}-indeterminate`]: indeterminate,
|
||||||
|
Loading…
Reference in New Issue
Block a user