Merge pull request #6291 from jch254/ts-fixes

Badge and Table TypeScript fixes
This commit is contained in:
偏右
2017-05-29 18:24:52 +08:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import warning from '../_util/warning';
export interface BadgeProps {
/** Number to show in badge */
count: number | string;
count?: number | string;
showZero?: boolean;
/** Max count to show */
overflowCount?: number;
+1
View File
@@ -21,6 +21,7 @@ export interface ColumnProps<T> {
filteredValue?: any[];
sortOrder?: boolean | ('ascend' | 'descend');
children?: ColumnProps<T>[];
onCellClick?: (record: T, event: any) => void;
}
export default class Column<T> extends (RcTable.Column as React.ComponentClass<ColumnProps<T>>) {}