Browse Source

fix: type check failed #1356

pull/1370/head
tanjinzhou 5 years ago
parent
commit
2e9b3000ac
  1. 2
      components/checkbox/Checkbox.jsx

2
components/checkbox/Checkbox.jsx

@ -46,7 +46,7 @@ export default {
const { checkboxGroupContext: checkboxGroup, $listeners, $slots } = this;
const props = getOptionProps(this);
const children = $slots.default;
const { mouseenter = noop, mouseleave = noop, ...restListeners } = $listeners;
const { mouseenter = noop, mouseleave = noop, input, ...restListeners } = $listeners;
const { prefixCls: customizePrefixCls, indeterminate, ...restProps } = props;
const getPrefixCls = this.configProvider.getPrefixCls;
const prefixCls = getPrefixCls('checkbox', customizePrefixCls);

Loading…
Cancel
Save