From a618ec070ff2dccd01072fb7876d529d2cf12bb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Fri, 6 Dec 2024 15:03:31 +0800 Subject: [PATCH] fix: finalPlacement --- src/radio/radio.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/radio/radio.tsx b/src/radio/radio.tsx index 32ced7acc..a13dbced7 100644 --- a/src/radio/radio.tsx +++ b/src/radio/radio.tsx @@ -37,7 +37,7 @@ export default defineComponent({ }); const finalPlacement = computed(() => { if (props.placement == null && 'placement' in rootGroupProps) return rootGroupProps.placement; - return props.placement; + return props.placement || 'left'; }); const finalAllowUncheck = computed(() => Boolean(props.allowUncheck || rootGroupProps?.allowUncheck));