Skip to content

Commit e64fb33

Browse files
committed
fix: space style error when not support flex
1 parent a1ffe2a commit e64fb33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/space/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const Space = defineComponent({
6868
);
6969
const style = computed(() => {
7070
const gapStyle: CSSProperties = {};
71-
if (supportFlexGap) {
71+
if (supportFlexGap.value) {
7272
gapStyle.columnGap = `${horizontalSize.value}px`;
7373
gapStyle.rowGap = `${verticalSize.value}px`;
7474
}
@@ -94,7 +94,7 @@ const Space = defineComponent({
9494
<div class={cn.value} style={style.value}>
9595
{items.map((child, index) => {
9696
let itemStyle: CSSProperties = {};
97-
if (!supportFlexGap) {
97+
if (!supportFlexGap.value) {
9898
if (direction === 'vertical') {
9999
if (index < latestIndex) {
100100
itemStyle = { marginBottom: `${horizontalSizeVal / (split ? 2 : 1)}px` };

0 commit comments

Comments
 (0)