Skip to content

Commit

Permalink
fix: space size=0 not work, close #5101
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Jan 4, 2022
1 parent 3fc7a05 commit 5c90cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/space/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<number>();
const verticalSize = ref<number>();
watch(
Expand Down

0 comments on commit 5c90cc2

Please sign in to comment.