Skip to content

Commit

Permalink
style: checkbox.tsx #5363
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Mar 20, 2022
1 parent ecda0a1 commit c863385
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions components/checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit c863385

Please sign in to comment.