From e64fb339051ec7f41f3007176fe1cf2a08fbfa73 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Tue, 6 Jul 2021 10:02:26 +0800 Subject: [PATCH] fix: space style error when not support flex --- components/space/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/space/index.tsx b/components/space/index.tsx index 09e9400f8..c4c6e56df 100644 --- a/components/space/index.tsx +++ b/components/space/index.tsx @@ -68,7 +68,7 @@ const Space = defineComponent({ ); const style = computed(() => { const gapStyle: CSSProperties = {}; - if (supportFlexGap) { + if (supportFlexGap.value) { gapStyle.columnGap = `${horizontalSize.value}px`; gapStyle.rowGap = `${verticalSize.value}px`; } @@ -94,7 +94,7 @@ const Space = defineComponent({
{items.map((child, index) => { let itemStyle: CSSProperties = {}; - if (!supportFlexGap) { + if (!supportFlexGap.value) { if (direction === 'vertical') { if (index < latestIndex) { itemStyle = { marginBottom: `${horizontalSizeVal / (split ? 2 : 1)}px` };