From 5c90cc251e0826d2ff2e02914131b966ff04c724 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Tue, 4 Jan 2022 09:51:23 +0800 Subject: [PATCH] fix: space size=0 not work, close #5101 --- components/space/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(