Skip to content

Commit

Permalink
fix: some props of TableProps should be optional. (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
vingeraycn committed Sep 6, 2021
1 parent 6e4a816 commit f8bf9c8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,16 @@ export interface TableProps extends Omit<StandardProps, 'onScroll'> {
height?: number;

/** The minimum height of the table. The height is maintained even when the content is not stretched. */
minHeight: number;
minHeight?: number;

/** The row of the table has a mouseover effect */
hover: boolean;
hover?: boolean;

/** The height of the table header */
headerHeight: number;
headerHeight?: number;

/** The component localized character set. */
locale: TableLocaleType;
locale?: TableLocaleType;

/** Show loading */
loading?: boolean;
Expand All @@ -94,7 +94,7 @@ export interface TableProps extends Omit<StandardProps, 'onScroll'> {
loadAnimation?: boolean;

/** The row height of the table */
rowHeight: number | ((rowData: RowDataType) => number);
rowHeight?: number | ((rowData: RowDataType) => number);

/** Each row corresponds to the unique key in data */
rowKey?: RowKeyType;
Expand Down

0 comments on commit f8bf9c8

Please sign in to comment.