From c86338542d4e504ead540436d991dd55f327d54b Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sun, 20 Mar 2022 10:05:44 +0800 Subject: [PATCH] style: checkbox.tsx #5363 --- components/checkbox/Checkbox.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/components/checkbox/Checkbox.tsx b/components/checkbox/Checkbox.tsx index 8383b2fd2..f08ce38f2 100644 --- a/components/checkbox/Checkbox.tsx +++ b/components/checkbox/Checkbox.tsx @@ -59,20 +59,13 @@ export default defineComponent({ }); return () => { const children = flattenChildren(slots.default?.()); - const { - indeterminate, - skipGroup, - id = formItemContext.id.value, - onClick, - ...restProps - } = props; + const { indeterminate, skipGroup, id = formItemContext.id.value, ...restProps } = props; const { onMouseenter, onMouseleave, onInput, class: className, style, ...restAttrs } = attrs; const checkboxProps: CheckboxProps = { ...restProps, id, prefixCls: prefixCls.value, ...restAttrs, - onClick, }; if (checkboxGroup && !skipGroup) { checkboxProps.onChange = (...args) => {