style: checkbox.tsx #5363

cssinjs
tangjinzhou 3 years ago
parent ecda0a1084
commit c86338542d

@ -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) => {

Loading…
Cancel
Save