From b8044cd85cd96417b7f6fbd858ca42ecfb51cefb Mon Sep 17 00:00:00 2001 From: wehuss <1245613916@qq.com> Date: Wed, 14 Aug 2024 21:00:35 +0800 Subject: [PATCH] fix(radio-group): fix not inheriting the injected size --- packages/web-vue/components/radio/radio-group.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/web-vue/components/radio/radio-group.tsx b/packages/web-vue/components/radio/radio-group.tsx index 5ae634736..60ed032c8 100644 --- a/packages/web-vue/components/radio/radio-group.tsx +++ b/packages/web-vue/components/radio/radio-group.tsx @@ -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', @@ -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);