Skip to content

Commit

Permalink
fix(radio-group): fix not inheriting the injected size (#3267)
Browse files Browse the repository at this point in the history
  • Loading branch information
wehuss authored Sep 13, 2024
1 parent 82a4fba commit 4fe44f4
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 4fe44f4

Please sign in to comment.