fix: row gutter ts type

This commit is contained in:
tangjinzhou 2022-03-15 09:50:19 +08:00
parent 9707506c5a
commit 2efe1af6b6

View File

@ -21,7 +21,10 @@ export const rowProps = () => ({
align: String as PropType<typeof RowAligns[number]>,
justify: String as PropType<typeof RowJustify[number]>,
prefixCls: String,
gutter: { type: [Number, Array, Object] as PropType<Gutter | [Gutter, Gutter]>, default: 0 },
gutter: {
type: [Number, Array] as PropType<Gutter | [Gutter, Gutter]>,
default: 0 as Gutter | [Gutter, Gutter],
},
wrap: { type: Boolean, default: undefined },
});