Skip to content

Commit

Permalink
fix(antd/next): form-grid and layout props optional with default value (
Browse files Browse the repository at this point in the history
  • Loading branch information
gwsbhqt authored Jul 16, 2021
1 parent 7fc5af2 commit 2738e41
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions packages/antd/src/form-grid/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ interface ILayoutProps {
maxColumns: number | number[]
intervals: Array<number[]>
colWrap: boolean[]
columnGap: number
rowGap: number
columnGap?: number
rowGap?: number
}

export interface IFormGridProps {
Expand All @@ -43,8 +43,8 @@ export interface IFormGridProps {
maxColumns?: number | number[]
colWrap?: boolean | boolean[]
breakpoints?: number[]
columnGap: number
rowGap: number
columnGap?: number
rowGap?: number
}

interface IStyle {
Expand All @@ -65,7 +65,7 @@ interface IStyleProps extends IFormGridProps {
}

export interface IGridColumnProps {
gridSpan: number
gridSpan?: number
}

type ComposedFormGrid = React.FC<IFormGridProps> & {
Expand Down
10 changes: 5 additions & 5 deletions packages/next/src/form-grid/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ interface ILayoutProps {
maxColumns: number | number[]
intervals: Array<number[]>
colWrap: boolean[]
columnGap: number
rowGap: number
columnGap?: number
rowGap?: number
}

export interface IFormGridProps {
Expand All @@ -43,8 +43,8 @@ export interface IFormGridProps {
maxColumns?: number | number[]
colWrap?: boolean | boolean[]
breakpoints?: number[]
columnGap: number
rowGap: number
columnGap?: number
rowGap?: number
}

interface IStyle {
Expand All @@ -65,7 +65,7 @@ interface IStyleProps extends IFormGridProps {
}

export interface IGridColumnProps {
gridSpan: number
gridSpan?: number
}

type ComposedFormGrid = React.FC<IFormGridProps> & {
Expand Down

0 comments on commit 2738e41

Please sign in to comment.