Skip to content

Commit

Permalink
fix(radio-group): fix not inheriting the injected size
Browse files Browse the repository at this point in the history
  • Loading branch information
wehuss committed Aug 14, 2024
1 parent 867cca0 commit b8044cd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/web-vue/components/radio/radio-group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
import { useFormItem } from '../_hooks/use-form-item';
import { RadioOption } from './interface';
import Radio from './radio';
import { useSize } from '../_hooks/use-size';

export default defineComponent({
name: 'RadioGroup',
Expand Down Expand Up @@ -112,10 +113,15 @@ export default defineComponent({
setup(props, { emit, slots }) {
const prefixCls = getPrefixCls('radio-group');
const { size, type, disabled, modelValue } = toRefs(props);
const { mergedDisabled, mergedSize, eventHandlers } = useFormItem({
const {
mergedDisabled,
mergedSize: _mergedSize,
eventHandlers,
} = useFormItem({
size,
disabled,
});
const { mergedSize } = useSize(_mergedSize);

const _value = ref(props.defaultValue);

Expand Down

0 comments on commit b8044cd

Please sign in to comment.