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
commit 52833f50f5
2 changed files with 2 additions and 1 deletions

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;

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>>) {}