diff --git a/components/space/index.tsx b/components/space/index.tsx index c4c6e56df..a14eb8acf 100644 --- a/components/space/index.tsx +++ b/components/space/index.tsx @@ -37,7 +37,7 @@ const Space = defineComponent({ setup(props, { slots }) { const { prefixCls, space, direction: directionConfig } = useConfigInject('space', props); const supportFlexGap = useFlexGapSupport(); - const size = computed(() => props.size || space.value?.size || 'small'); + const size = computed(() => props.size ?? space.value?.size ?? 'small'); const horizontalSize = ref(); const verticalSize = ref(); watch(