style: checkbox.tsx #5363
parent
ecda0a1084
commit
c86338542d
|
@ -59,20 +59,13 @@ export default defineComponent({
|
||||||
});
|
});
|
||||||
return () => {
|
return () => {
|
||||||
const children = flattenChildren(slots.default?.());
|
const children = flattenChildren(slots.default?.());
|
||||||
const {
|
const { indeterminate, skipGroup, id = formItemContext.id.value, ...restProps } = props;
|
||||||
indeterminate,
|
|
||||||
skipGroup,
|
|
||||||
id = formItemContext.id.value,
|
|
||||||
onClick,
|
|
||||||
...restProps
|
|
||||||
} = props;
|
|
||||||
const { onMouseenter, onMouseleave, onInput, class: className, style, ...restAttrs } = attrs;
|
const { onMouseenter, onMouseleave, onInput, class: className, style, ...restAttrs } = attrs;
|
||||||
const checkboxProps: CheckboxProps = {
|
const checkboxProps: CheckboxProps = {
|
||||||
...restProps,
|
...restProps,
|
||||||
id,
|
id,
|
||||||
prefixCls: prefixCls.value,
|
prefixCls: prefixCls.value,
|
||||||
...restAttrs,
|
...restAttrs,
|
||||||
onClick,
|
|
||||||
};
|
};
|
||||||
if (checkboxGroup && !skipGroup) {
|
if (checkboxGroup && !skipGroup) {
|
||||||
checkboxProps.onChange = (...args) => {
|
checkboxProps.onChange = (...args) => {
|
||||||
|
|
Loading…
Reference in New Issue