Skip to content

Commit 5c90cc2

Browse files
committed
fix: space size=0 not work, close #5101
1 parent 3fc7a05 commit 5c90cc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/space/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const Space = defineComponent({
3737
setup(props, { slots }) {
3838
const { prefixCls, space, direction: directionConfig } = useConfigInject('space', props);
3939
const supportFlexGap = useFlexGapSupport();
40-
const size = computed(() => props.size || space.value?.size || 'small');
40+
const size = computed(() => props.size ?? space.value?.size ?? 'small');
4141
const horizontalSize = ref<number>();
4242
const verticalSize = ref<number>();
4343
watch(

0 commit comments

Comments
 (0)