From d8ae462e6488e27181a9693f6759f82e08939223 Mon Sep 17 00:00:00 2001 From: wwsun Date: Tue, 18 Jan 2022 14:53:49 +0800 Subject: [PATCH] fix: pass gap --- src/core/flexbox.ts | 4 ++++ src/types/system.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/src/core/flexbox.ts b/src/core/flexbox.ts index 349a5cb..ec204dc 100644 --- a/src/core/flexbox.ts +++ b/src/core/flexbox.ts @@ -15,6 +15,10 @@ const config: StylePropConfig = { property: 'rowGap', scale: 'space', }, + gap: { + property: 'gap', + scale: 'space', + }, // item flex: true, flexGrow: true, diff --git a/src/types/system.ts b/src/types/system.ts index 463b833..88b0d83 100644 --- a/src/types/system.ts +++ b/src/types/system.ts @@ -107,6 +107,7 @@ export interface FlexboxProps { flexDirection?: CSS.Property.FlexDirection; columnGap?: CSS.Property.ColumnGap; rowGap?: CSS.Property.RowGap; + gap?: CSS.Property.Gap; // item flex?: CSS.Property.Flex; flexGrow?: CSS.Property.FlexGrow;